Giter VIP home page Giter VIP logo

c4d-resedit's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bonsak

c4d-resedit's Issues

[MacOS] Editor windows overlap

screen shot 2015-11-03 at 21 11 11

The main problem is the toolbox window which can not be moved and hides the Structure and Dialog Preview windows. You can move the Dialog Preview window by adding any element, causing the window to get bigger and the title bar to appear behind the dialog. But the Structure window is inaccessible.

Present meaningful info when opening description files

As ResEdit can't edit description files the plugin should present the user with a plain text warning when opening such files instead of todays message: "There was an error loading the file: Line: 1 Symbol: CONTAINER"

BITMAPBUTTON SIZE is rendered invalid

The BITMAPBUTTON custom gui SIZE parameter is rendered invalid in the dialog resource.

      BITMAPBUTTON IDC_CUSTOM1
      {
        ALIGN_TOP; ALIGN_LEFT; 
        ICONID1 0; 
        ICONID2 0; 
        SIZE 0;   // <--- needs to be a tuple, eg. "SIZE 0, 0;"
        SPECIAL 0; 
      }

Fix clang warnings

niklas ~/Applications/Cinema 4D R16/plugins/resedit/build $ craftr -c.. export && ninja
[maxon.c4d] SDK Version: R16, Target: x86_64, Compiler: Clang v6.1.0
ninja export (build.ninja)...
[145/200] Building Object maxon.c4d.resedit/obj/coffeelib.o
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/coffeelib.cpp:31:6: warning: no previous prototype for function 'CompileCoffeeFile' [-Wmissing-prototypes]
Bool CompileCoffeeFile(const Filename &file,Filename *res)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/coffeelib.cpp:33:20: warning: declaration shadows a variable in the global namespace [-Wshadow]
        PrivateCoffeeLib *lib = CheckLib(LIBOFFSET(PrivateCoffeeLib,CompileCoffeeFile));
                          ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/coffeelib.cpp:22:26: note: previous declaration is here
static PrivateCoffeeLib *lib = nullptr;
                         ^
2 warnings generated.
[146/200] Building Object maxon.c4d.resedit/obj/BrowserMenu.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/BrowserMenu.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[148/200] Building Object maxon.c4d.resedit/obj/CompareMenu.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/CompareMenu.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[149/200] Building Object maxon.c4d.resedit/obj/DialogArrow.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogArrow.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[150/200] Building Object maxon.c4d.resedit/obj/CompareTableDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/CompareTableDialog.cpp:14:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[151/200] Building Object maxon.c4d.resedit/obj/crc.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.cpp:7:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:45:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:59:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:69:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:83:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 n = (UInt32)u;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:84:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:94:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 n = (UInt32)b;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:95:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:105:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 n = *((UInt32*)&r);
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:106:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:116:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt64 n = *((UInt64*)&r);
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:117:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:140:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt64 n = *((UInt64*)&r);
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:141:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:157:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt64 n = (UInt64)p;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:158:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:182:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt64 n = (UInt64)p;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:183:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
17 warnings generated.
[152/200] Building Object maxon.c4d.resedit/obj/DialogButton.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogButton.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[153/200] Building Object maxon.c4d.resedit/obj/DialogCheckBox.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogCheckBox.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[154/200] Building Object maxon.c4d.resedit/obj/DialogGroup.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogGroup.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[155/200] Building Object maxon.c4d.resedit/obj/DialogItem.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogItem.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogItem.cpp:167:6: warning: no previous prototype for function 'CreateControlIDVisitCallback' [-Wmissing-prototypes]
void CreateControlIDVisitCallback(TreeViewItem* pItem, void* pData)
     ^
2 warnings generated.
[156/200] Building Object maxon.c4d.resedit/obj/DialogIO8.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO8.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO8.cpp:297:12: warning: declaration shadows a local variable [-Wshadow]
                                        Int32 type;
                                              ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO8.cpp:31:74: note: previous declaration is here
Bool CDialogDoc::LoadDialogParts(DialogParser &p,BaseContainer *bc,Int32 type, PROGRESS_ID      progressID)
                                                                         ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO8.cpp:570:14: warning: declaration shadows a local variable [-Wshadow]
                                                        Int32 type;
                                                              ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO8.cpp:31:74: note: previous declaration is here
Bool CDialogDoc::LoadDialogParts(DialogParser &p,BaseContainer *bc,Int32 type, PROGRESS_ID      progressID)
                                                                         ^
3 warnings generated.
[157/200] Building Object maxon.c4d.resedit/obj/DialogIO.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:875:6: warning: no previous prototype for function 'AddItemCheckNameCallback' [-Wmissing-prototypes]
void AddItemCheckNameCallback(TreeViewItem* pItem, void* pData)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:1007:14: warning: declaration shadows a local variable [-Wshadow]
                                Filename fnRes = fnStart + fn + strTitle;
                                         ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:982:11: note: previous declaration is here
        Filename fnRes;
                 ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:1283:6: warning: no previous prototype for function 'WriteDialogItemIDsCallback' [-Wmissing-prototypes]
void WriteDialogItemIDsCallback(TreeViewItem* pItem, void* pData)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:1446:9: warning: declaration shadows a local variable [-Wshadow]
                Int32 lPos;
                      ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:1428:8: note: previous declaration is here
        Int32 lPos;
              ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:1542:10: warning: declaration shadows a local variable [-Wshadow]
                String str = GeLoadString(IDS_WRITE_PROTECTION, (m_fnStringTableStart + String("c4d_symbols.h")).GetString());
                       ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:1441:9: note: previous declaration is here
        String str;
               ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:1605:6: warning: no previous prototype for function 'ExportMacroWriteStringCallback' [-Wmissing-prototypes]
void ExportMacroWriteStringCallback(TreeViewItem* pItem, void* pData)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:1745:6: warning: no previous prototype for function 'ImportMacroSetNameIDCallback' [-Wmissing-prototypes]
void ImportMacroSetNameIDCallback(TreeViewItem* pItem, void* pData)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:2096:13: warning: declaration shadows a local variable [-Wshadow]
                                String &str = pStringItem->str;
                                        ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogIO.cpp:2018:9: note: previous declaration is here
        String str;
               ^
9 warnings generated.
[158/200] Building Object maxon.c4d.resedit/obj/DialogListBox.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogListBox.cpp:11:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[159/200] Building Object maxon.c4d.resedit/obj/DialogPreview.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogPreview.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[160/200] Building Object maxon.c4d.resedit/obj/DialogColor.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogColor.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[161/200] Building Object maxon.c4d.resedit/obj/DialogComboBox.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogComboBox.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[162/200] Building Object maxon.c4d.resedit/obj/DialogDlgGroup.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogDlgGroup.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[163/200] Building Object maxon.c4d.resedit/obj/DialogCustomElement.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogCustomElement.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[164/200] Building Object maxon.c4d.resedit/obj/DialogEditBox.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogEditBox.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[165/200] Building Object maxon.c4d.resedit/obj/DialogDoc.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogDoc.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogDoc.cpp:293:6: warning: no previous prototype for function 'UpdateTreeViewCallback' [-Wmissing-prototypes]
void UpdateTreeViewCallback(TreeViewItem* pItem, void* pData)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogDoc.cpp:553:6: warning: no previous prototype for function 'StoreInStringtableCallback' [-Wmissing-prototypes]
void StoreInStringtableCallback(TreeViewItem* pItem, void* pData)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogDoc.cpp:608:6: warning: no previous prototype for function 'ChangeLanguageCallback' [-Wmissing-prototypes]
void ChangeLanguageCallback(TreeViewItem* pItem, void* pData)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogDoc.cpp:962:6: warning: no previous prototype for function 'DeleteUnusedCallback' [-Wmissing-prototypes]
void DeleteUnusedCallback(TreeViewItem* pItem, void* pData)
     ^
5 warnings generated.
[166/200] Building Object maxon.c4d.resedit/obj/DialogRadioBtn.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogRadioBtn.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[167/200] Building Object maxon.c4d.resedit/obj/DiffDistriDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:8:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.h:10:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:8:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.h:28:79: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 Compare(const ZipArrayEntry* a, const ZipArrayEntry* b) const { return a->strName.LexCompare(b->strName); }
                                                                              ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.h:29:76: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 CompareSearch(const ZipArrayEntry* a, const void* b) const { return a->strName.LexCompare(*((String*)b)); }
                                                                           ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:17:11: warning: no previous prototype for function 'GetFile' [-Wmissing-prototypes]
Filename* GetFile(void* pRoot, void* pObj)
          ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:114:6: warning: no previous prototype for function 'DiffZipFiles' [-Wmissing-prototypes]
Bool DiffZipFiles(const CDynamicFilenameSet &arFiles, const Filename &fnNew, const Filename &fnDestZip, const char* pchPassword)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:144:19: warning: declaration shadows a local variable [-Wshadow]
                        ZipArrayEntry* pEntry = arStrings.SearchObject(&strName);
                                       ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:123:17: note: previous declaration is here
        ZipArrayEntry* pEntry;
                       ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:181:20: warning: declaration shadows a local variable [-Wshadow]
                                ZipArrayEntry* pEntry = arStrings.SearchObject(&strName);
                                               ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:123:17: note: previous declaration is here
        ZipArrayEntry* pEntry;
                       ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:268:60: warning: comparison of integers of different signs: 'Int32' (aka 'int') and 'UInt32' (aka 'unsigned int') [-Wsign-compare]
                        if (pNewZip->ReadCurrentFile(pchData, pEntry->lNewSize) != pEntry->lNewSize)
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:495:6: warning: no previous prototype for function 'RegisterDiffZipCommand' [-Wmissing-prototypes]
Bool RegisterDiffZipCommand()
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DiffDistriDialog.cpp:501:6: warning: no previous prototype for function 'FreeDiffZipCommand' [-Wmissing-prototypes]
void FreeDiffZipCommand()
     ^
10 warnings generated.
[168/200] Building Object maxon.c4d.resedit/obj/DialogSeparator.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogSeparator.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[169/200] Building Object maxon.c4d.resedit/obj/DialogSettings.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogSettings.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[170/200] Building Object maxon.c4d.resedit/obj/DialogSlider.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogSlider.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[171/200] Building Object maxon.c4d.resedit/obj/DialogStatic.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogStatic.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[172/200] Building Object maxon.c4d.resedit/obj/DialogTemplate.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogTemplate.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[173/200] Building Object maxon.c4d.resedit/obj/DirectListView.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DirectListView.cpp:11:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[174/200] Building Object maxon.c4d.resedit/obj/DialogUserArea.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogUserArea.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogUserArea.cpp:117:7: warning: no previous prototype for function 'GetPix' [-Wmissing-prototypes]
Int32 GetPix(Int32 packedsize)
      ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DialogUserArea.cpp:122:7: warning: no previous prototype for function 'GetChr' [-Wmissing-prototypes]
Int32 GetChr(Int32 packedsize)
      ^
3 warnings generated.
[176/200] Building Object maxon.c4d.resedit/obj/DistriCompressProgr.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/DistriCompressProgr.cpp:5:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[177/200] Building Object maxon.c4d.resedit/obj/Distri.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:2:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:4:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:45:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:59:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:69:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:83:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 n = (UInt32)u;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:84:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:94:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 n = (UInt32)b;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:95:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:105:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 n = *((UInt32*)&r);
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:106:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:116:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt64 n = *((UInt64*)&r);
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:117:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:140:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt64 n = *((UInt64*)&r);
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:141:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:157:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt64 n = (UInt64)p;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:158:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:182:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt64 n = (UInt64)p;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/crc.h:183:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                register UInt32 c = crc;
                ^~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:38:6: warning: no previous prototype for function 'UpdateCRC' [-Wmissing-prototypes]
void UpdateCRC(Crc32 &crc, const String &str)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:49:8: warning: no previous prototype for function 'GetPresetCrc' [-Wmissing-prototypes]
UInt32 GetPresetCrc(PresetElement* pPreset)
       ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:81:8: warning: no previous prototype for function 'EncryptPassword' [-Wmissing-prototypes]
String EncryptPassword(const String& str)
       ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:137:8: warning: no previous prototype for function 'DecryptPassword' [-Wmissing-prototypes]
String DecryptPassword(const String &str)
       ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:207:6: warning: no previous prototype for function 'ReadString' [-Wmissing-prototypes]
void ReadString(char *&pszString, String &str)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:228:6: warning: no previous prototype for function 'ReadBool' [-Wmissing-prototypes]
void ReadBool(char *&pszString, Bool &b)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:248:6: warning: no previous prototype for function 'ReadInt32' [-Wmissing-prototypes]
void ReadInt32(char *&pszString, Int32 &b)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:266:6: warning: no previous prototype for function 'WriteLine' [-Wmissing-prototypes]
void WriteLine(CDynamicArray<char>& arLine, BaseFile* pFile)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:273:6: warning: no previous prototype for function 'ReadLine' [-Wmissing-prototypes]
Bool ReadLine(BaseFile* pFile, CDynamicArray<char>& arLine)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:310:6: warning: no previous prototype for function 'AppendString' [-Wmissing-prototypes]
Bool AppendString(CDynamicArray<char>& arLine, const char* pchLine)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:329:6: warning: no previous prototype for function 'AppendString' [-Wmissing-prototypes]
Bool AppendString(CDynamicArray<char>& arLine, CDynamicArray<char>& arTempString, const String &str)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:344:6: warning: no previous prototype for function 'WriteElement' [-Wmissing-prototypes]
void WriteElement(PresetElement* pElement)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:361:96: warning: illegal character encoding in character literal [-Winvalid-source-encoding]
                if (('0' <= w && w <= '9') || ('A' <= w && w <= 'z') || w == ' ' || w == '_' || w == (UInt16)'<8A>' || w == (UInt16)'<9A>' || w == (UInt16)'<9F>' ||
                                                                                                             ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:361:116: warning: illegal character encoding in character literal [-Winvalid-source-encoding]
                if (('0' <= w && w <= '9') || ('A' <= w && w <= 'z') || w == ' ' || w == '_' || w == (UInt16)'<8A>' || w == (UInt16)'<9A>' || w == (UInt16)'<9F>' ||
                                                                                                                                    ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:361:136: warning: illegal character encoding in character literal [-Winvalid-source-encoding]
                if (('0' <= w && w <= '9') || ('A' <= w && w <= 'z') || w == ' ' || w == '_' || w == (UInt16)'<8A>' || w == (UInt16)'<9A>' || w == (UInt16)'<9F>' ||
                                                                                                                                                           ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:362:18: warning: illegal character encoding in character literal [-Winvalid-source-encoding]
                                w == (UInt16)'<80>' || w == (UInt16)'<85>' || w == (UInt16)'<86>' || w == (UInt16)'<A7>')
                                             ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:362:38: warning: illegal character encoding in character literal [-Winvalid-source-encoding]
                                w == (UInt16)'<80>' || w == (UInt16)'<85>' || w == (UInt16)'<86>' || w == (UInt16)'<A7>')
                                                                    ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:362:58: warning: illegal character encoding in character literal [-Winvalid-source-encoding]
                                w == (UInt16)'<80>' || w == (UInt16)'<85>' || w == (UInt16)'<86>' || w == (UInt16)'<A7>')
                                                                                           ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:362:78: warning: illegal character encoding in character literal [-Winvalid-source-encoding]
                                w == (UInt16)'<80>' || w == (UInt16)'<85>' || w == (UInt16)'<86>' || w == (UInt16)'<A7>')
                                                                                                                  ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:480:6: warning: no previous prototype for function 'WriteDistriPrefs' [-Wmissing-prototypes]
void WriteDistriPrefs()
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Distri.cpp:508:6: warning: no previous prototype for function 'ReadDistriPrefs' [-Wmissing-prototypes]
void ReadDistriPrefs()
     ^
39 warnings generated.
[178/200] Building Object maxon.c4d.resedit/obj/dynarray.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.cpp:7:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.cpp:245:9: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        return a->GetString().LexCompare(b->GetString());
        ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.cpp:371:9: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        return a->LexCompare(*b);
        ~~~~~~ ^~~~~~~~~~~~~~~~~
3 warnings generated.
[179/200] Building Object maxon.c4d.resedit/obj/ExtractZipDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ExtractZipDialog.cpp:4:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ExtractZipDialog.cpp:375:7: warning: no previous prototype for function 'ZipExtractDirectoryCallback' [-Wmissing-prototypes]
Int32 ZipExtractDirectoryCallback(const Filename &fnSrc, const Filename &fnDest, void* pData, Int32 lInfo)
      ^
2 warnings generated.
[180/200] Building Object maxon.c4d.resedit/obj/globals.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.cpp:257:13: warning: no previous prototype for function 'FindCustomGUIPlugin' [-Wmissing-prototypes]
BasePlugin* FindCustomGUIPlugin(CCustomElements* pPlug, Int32 id)
            ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.cpp:265:6: warning: no previous prototype for function 'RecSearchPlugin' [-Wmissing-prototypes]
void RecSearchPlugin(BasePlugin *plug)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.cpp:293:7: warning: no previous prototype for function 'SortCustomGuiByName' [-Wmissing-prototypes]
Int32 SortCustomGuiByName(const Int32 a, const Int32 b)
      ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.cpp:298:9: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        return pa->m_strName.Compare(pb->m_strName);
        ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.cpp:400:6: warning: no previous prototype for function 'AddFilename1' [-Wmissing-prototypes]
void AddFilename1(Filename &fn, const Filename fnDir, const Filename fnFile)
     ^
6 warnings generated.
[181/200] Building Object maxon.c4d.resedit/obj/HelpMenu.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/HelpMenu.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[182/200] Building Object maxon.c4d.resedit/obj/ItemSettingsDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ItemSettingsDialog.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[184/200] Building Object maxon.c4d.resedit/obj/LanguageList.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/LanguageList.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/LanguageList.cpp:79:18: warning: implicit conversion loses integer precision: 'Int64' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                                        Int32 len = pFile->GetLength();
                                              ~~~   ^~~~~~~~~~~~~~~~~~
2 warnings generated.
[185/200] Building Object maxon.c4d.resedit/obj/Menu.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Menu.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[186/200] Building Object maxon.c4d.resedit/obj/StringtableDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringtableDialog.cpp:11:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringtableDialog.cpp:236:20: warning: declaration shadows a local variable [-Wshadow]
                                        BaseContainer data;
                                                      ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringtableDialog.cpp:230:19: note: previous declaration is here
                                BaseContainer data;
                                              ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringtableDialog.cpp:397:6: warning: no previous prototype for function 'UpdateStringIDCallback' [-Wmissing-prototypes]
void UpdateStringIDCallback(TreeViewItem* pItem, void *pData)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringtableDialog.cpp:688:21: warning: declaration shadows a local variable [-Wshadow]
                                                BaseContainer msg;
                                                              ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringtableDialog.cpp:665:56: note: previous declaration is here
Int32 CStringtableDialog::Message(const BaseContainer &msg, BaseContainer &result)
                                                       ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringtableDialog.cpp:705:21: warning: declaration shadows a local variable [-Wshadow]
                                                BaseContainer msg;
                                                              ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringtableDialog.cpp:665:56: note: previous declaration is here
Int32 CStringtableDialog::Message(const BaseContainer &msg, BaseContainer &result)
                                                       ^
5 warnings generated.
[187/200] Building Object maxon.c4d.resedit/obj/OptionsDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/OptionsDialog.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[188/200] Building Object maxon.c4d.resedit/obj/MakeDistriDialogParse.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialogParse.cpp:5:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialogParse.cpp:181:8: warning: declaration shadows a field of 'SymbolParser' [-Wshadow]
        Int32 error=ERROR_NULL;
              ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialogParse.cpp:70:16: note: previous declaration is here
                parser_error    error;
                                ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialogParse.cpp:193:28: warning: implicit conversion loses integer precision: 'Int64' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                m_lTotalsize=m_lFilesize=m_pFile->GetLength();
                                        ~^~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialogParse.cpp:471:41: warning: declaration shadows a field of 'SymbolParser' [-Wshadow]
SYMBOL SymbolParser::CompareIdent(Char *m_pchBuf)
                                        ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialogParse.cpp:87:13: note: previous declaration is here
                Char                                    *m_pchBuf;                                                      // Puffer des aktuellen Symbols
                                                         ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialogParse.cpp:498:6: warning: no previous prototype for function 'CheckVal' [-Wmissing-prototypes]
Bool CheckVal(Parser *parse, const String &assignment, Int32 *res, Float *resfloat)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialogParse.cpp:643:6: warning: no previous prototype for function 'ParseFile' [-Wmissing-prototypes]
void ParseFile(Identifier *identtable, Int32 &identcnt, const Filename &fn, Int32 &cnt, BaseFile *tf, Bool second)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialogParse.cpp:998:6: warning: no previous prototype for function 'FillFnList' [-Wmissing-prototypes]
void FillFnList(Filename *fnlist, Int32 &fncount, const Filename &name)
     ^
7 warnings generated.
[189/200] Building Object maxon.c4d.resedit/obj/Register.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Register.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Register.cpp:151:6: warning: no previous prototype for function 'RegisterResEdit' [-Wmissing-prototypes]
Bool RegisterResEdit(void)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/Register.cpp:278:6: warning: no previous prototype for function 'FreeMenuItems' [-Wmissing-prototypes]
void FreeMenuItems()
     ^
3 warnings generated.
[190/200] Building Object maxon.c4d.resedit/obj/MakeDistriDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialog.cpp:5:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialog.cpp:20:6: warning: no previous prototype for function 'CopyPreset' [-Wmissing-prototypes]
void CopyPreset(PresetElement* pSrc, PresetElement* pDest)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialog.cpp:1209:6: warning: no previous prototype for function 'Insert' [-Wmissing-prototypes]
void Insert(Char *at, const Char *q)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialog.cpp:1218:6: warning: no previous prototype for function 'Delete' [-Wmissing-prototypes]
void Delete(Char *s, Int32 anz)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialog.cpp:1253:13: warning: implicit conversion loses integer precision: 'Int64' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                Int32 len=bf1->GetLength();
                      ~~~ ^~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialog.cpp:1290:13: warning: implicit conversion loses integer precision: 'Int64' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                Int32 len=bf1->GetLength();
                      ~~~ ^~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/MakeDistriDialog.cpp:1318:13: warning: implicit conversion loses integer precision: 'Int64' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                Int32 len=bf1->GetLength();
                      ~~~ ^~~~~~~~~~~~~~~~
7 warnings generated.
[191/200] Building Object maxon.c4d.resedit/obj/res_textparser.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.cpp:16:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.cpp:24:6: warning: no previous prototype for function 'StrToReal' [-Wmissing-prototypes]
void StrToReal(char* pChString, Float &val)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.cpp:31:6: warning: no previous prototype for function 'StrToVal' [-Wmissing-prototypes]
void StrToVal(char* pChString, Int32 &val)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.cpp:103:8: warning: declaration shadows a field of 'ASCIIParser' [-Wshadow]
        Int32 error=ERROR_NULL;
              ^
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.cpp:18:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.h:54:16: note: previous declaration is here
                parser_error    error;
                                ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.cpp:114:28: warning: implicit conversion loses integer precision: 'Int64' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                m_lTotalsize=m_lFilesize=m_pFile->GetLength();
                                        ~^~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.cpp:389:40: warning: declaration shadows a field of 'ASCIIParser' [-Wshadow]
SYMBOL ASCIIParser::CompareIdent(Char *m_pchBuf)
                                       ^
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.cpp:18:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/res_textparser.h:70:13: note: previous declaration is here
                Char                                    *m_pchBuf;                                                      // Puffer des aktuellen Symbols
                                                         ^
6 warnings generated.
[192/200] Building Object maxon.c4d.resedit/obj/ResEditBrowser.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ResEditBrowser.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[193/200] Building Object maxon.c4d.resedit/obj/ResEdit.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ResEdit.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ResEdit.cpp:30:6: warning: no previous prototype for function 'SaveResEditPrefs' [-Wmissing-prototypes]
void SaveResEditPrefs()
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ResEdit.cpp:123:6: warning: no previous prototype for function 'EndActivity' [-Wmissing-prototypes]
void EndActivity()
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ResEdit.cpp:257:16: warning: declaration shadows a local variable [-Wshadow]
                                                                        Int32 i;
                                                                              ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ResEdit.cpp:172:11: note: previous declaration is here
                                Int32 i;
                                      ^
4 warnings generated.
[194/200] Building Object maxon.c4d.resedit/obj/ResEditMenu.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ResEditMenu.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ResEditMenu.cpp:93:6: warning: no previous prototype for function 'DeleteDialogs' [-Wmissing-prototypes]
void DeleteDialogs()
     ^
2 warnings generated.
[195/200] Building Object maxon.c4d.resedit/obj/ResEditToolBar.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/ResEditToolBar.cpp:11:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[196/200] Building Object maxon.c4d.resedit/obj/SearchDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/SearchDialog.cpp:5:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[197/200] Building Object maxon.c4d.resedit/obj/system.o
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/system.cpp:4:7: warning: no previous prototype for function 'DeprecatedSysMemAlloc' [-Wmissing-prototypes]
void *DeprecatedSysMemAlloc(Int s)
      ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/system.cpp:14:6: warning: no previous prototype for function 'DeprecatedSysMemFree' [-Wmissing-prototypes]
void DeprecatedSysMemFree(void *mem)
     ^
2 warnings generated.
[198/200] Building Object maxon.c4d.resedit/obj/windowflags.o
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/windowflags.cpp:95:6: warning: no previous prototype for function 'ChangeWindowFlags' [-Wmissing-prototypes]
void ChangeWindowFlags(void* pHandle)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/windowflags.cpp:99:6: warning: no previous prototype for function 'SetModalResizeFlag' [-Wmissing-prototypes]
void SetModalResizeFlag(void* pHandle)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/windowflags.cpp:103:6: warning: no previous prototype for function 'ChangeWindowWidth' [-Wmissing-prototypes]
void ChangeWindowWidth(void* pHandle, long lDiffX, long lDiffY)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/windowflags.cpp:107:6: warning: no previous prototype for function 'RedrawWindow' [-Wmissing-prototypes]
void RedrawWindow(void* pHandle)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/windowflags.cpp:111:7: warning: no previous prototype for function 'GetOSEnvironmentVariable' [-Wmissing-prototypes]
char* GetOSEnvironmentVariable(const char* pszVarName, char* pszVar, unsigned int nVarLen)
      ^
5 warnings generated.
[199/200] Building Object maxon.c4d.resedit/obj/StringTable.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTable.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTable.cpp:146:7: warning: no previous prototype for function 'CompareStringTableElement' [-Wmissing-prototypes]
Int32 CompareStringTableElement(CStringTableElement* const* a, CStringTableElement* const* b)
      ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTable.cpp:151:10: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        return ((*a)->GetID().LexCompare((*b)->GetID()));
        ~~~~~~  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTable.cpp:242:19: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 lCompare = strCenter.LexCompare(strID);
              ~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTable.cpp:306:16: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                                lCompare = strID.LexCompare(m_ppElements[c]->m_strID);
                                         ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
[199/200] Building Object maxon.c4d.resedit/obj/SubDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/SubDialog.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[199/200] Building Object maxon.c4d.resedit/obj/TreeDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/TreeDialog.cpp:10:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/TreeDialog.cpp:63:6: warning: no previous prototype for function 'DestroyTreeItem' [-Wmissing-prototypes]
void DestroyTreeItem(BaseContainer* pData)
     ^
2 warnings generated.
[199/200] Building Object maxon.c4d.resedit/obj/TreeView.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/TreeView.cpp:16:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/TreeView.cpp:247:7: warning: no previous prototype for function 'CompareTreeViewItemSort' [-Wmissing-prototypes]
Int32 CompareTreeViewItemSort(TreeViewItem* const* pItem1, TreeViewItem* const* pItem2)
      ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/TreeView.cpp:252:10: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        return (str1.LexCompare(str2));
        ~~~~~~  ^~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
[199/200] Building Object maxon.c4d.resedit/obj/StringTableTranslateDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:6:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:32:6: warning: no previous prototype for function 'FreeListCallback' [-Wmissing-prototypes]
void FreeListCallback(CListItem* pItem)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:43:10: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                return a->pItem->strID.Compare(b->pItem->strID);
                ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:544:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = a->pItem->strName.LexCompare(b->pItem->strName);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:552:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = b->pItem->strName.LexCompare(a->pItem->strName);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:561:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = a->pItem->fnRelPath.GetString().LexCompare(b->pItem->fnRelPath.GetString());
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:569:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = b->pItem->fnRelPath.GetString().LexCompare(a->pItem->fnRelPath.GetString());
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:641:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 c = a->pItem->strMissing.LexCompare(b->pItem->strMissing);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:654:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 c = a->pItem->strMissing.LexCompare(b->pItem->strMissing);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:668:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = a->pItem->strType.LexCompare(b->pItem->strType);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:676:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = b->pItem->strType.LexCompare(a->pItem->strType);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:685:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = a->pItem->strID.LexCompare(b->pItem->strID);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:693:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = b->pItem->strID.LexCompare(a->pItem->strID);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:721:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = a->pItem->strUSOld.LexCompare(b->pItem->strUSOld);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:729:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = b->pItem->strUSOld.LexCompare(a->pItem->strUSOld);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:738:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = a->pItem->strUSNew.LexCompare(b->pItem->strUSNew);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:746:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = b->pItem->strUSNew.LexCompare(a->pItem->strUSNew);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:755:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = a->pItem->strCountry.LexCompare(b->pItem->strCountry);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:763:12: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 l = b->pItem->strCountry.LexCompare(a->pItem->strCountry);
              ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:1470:13: warning: declaration shadows a local variable [-Wshadow]
        for (Int32 a = 0; a < arErrors.GetElementCount(); a++)
                   ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:1449:8: note: previous declaration is here
        Int32 a;
              ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/StringTableTranslateDialog.cpp:1959:25: warning: comparison of integers of different signs: 'Int32' (aka 'int') and 'unsigned long' [-Wsign-compare]
                                for (Int32 l = 0; l < sizeof(ptrlist) / sizeof(ptrlist[0]); l++)
                                                  ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 warnings generated.
[199/200] Building Object maxon.c4d.resedit/obj/WizardDialog.o
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:11:
In file included from /Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/globals.h:33:
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/dynarray.h:2509:18: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                        Int32 lComp = ppElements[c]->m_strKey.Compare(strKey);
                              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:133:10: warning: implicit conversion loses integer precision: 'Int' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                return a->m_strName.LexCompare(b->m_strName);
                ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:150:8: warning: no previous prototype for function 'GetSuffix' [-Wmissing-prototypes]
String GetSuffix(const Filename &fn)
       ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:487:6: warning: no previous prototype for function 'BrowseScripts' [-Wmissing-prototypes]
Bool BrowseScripts(String &strError)
     ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:716:7: warning: no previous prototype for function 'SkipLineBreak' [-Wmissing-prototypes]
Int32 SkipLineBreak(Int32 lCurrent, Int32 lLen, char* pFile)
      ^
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:741:15: warning: implicit conversion loses integer precision: 'Int64' (aka 'long long') to 'Int32' (aka 'int') [-Wshorten-64-to-32]
        Int32 lLen = pFile->GetLength();
              ~~~~   ^~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:780:35: warning: implicit conversion loses integer precision: 'unsigned long long' to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                                                        lIDLen = ((UInt)(pchNext)) - ((UInt)(&(pChFile[a + 2])));
                                                               ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:798:33: warning: implicit conversion loses integer precision: 'unsigned long long' to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                                        lIDLen = ((UInt)(pchNext)) - ((UInt)(&(pChFile[a + 2])));
                                               ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:817:48: warning: implicit conversion loses integer precision: 'unsigned long long' to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                                                        a = (((UInt)pchNext) - ((UInt)pChFile)) + 1;
                                                          ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:832:73: warning: implicit conversion loses integer precision: 'unsigned long long' to 'Int32' (aka 'int') [-Wshorten-64-to-32]
                                                        a = (((UInt)pchNext) - ((UInt)pChFile)) + arID.GetElementCount() - 2; // 2 weniger, weil Schleife inkrementiert und an ID ein \0 dran h<E4>ngt
                                                          ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/source/WizardDialog.cpp:897:6: warning: no previous prototype for function 'RegisterWizardCommand' [-Wmissing-prototypes]
Bool RegisterWizardCommand()
     ^
11 warnings generated.
[200/200] Building Plugin '/Users/niklas/Applications/Cinema 4D R16/plugins/resedit/resedit.dylib'

Update item default values

  • The dialog root and group items should be scalefit by default
  • A group should have a default border space of 6, 6, 6, 6
  • Set listbox element to horizontal scalefit
  • Set dlg group element to horizontal center
  • Set edit number/text to left aligned
  • Set sub dialog to scalefit
  • Set user area to horizontal scalefit and 40 height

Update icons in toolbar

Icons should be updated to 32x32px icons and also match more closely the look and feel of Cinema in general.

Not sure what version of craftr to use on OSX

I've tried mostly all of them to get this to build and nothing's working. Latest version wants a "manifest.cson" file, 1.0.3 is missing "requirements.txt", and 1.1.0 throws an error on line 245 of ext.py in the craftr package. Any ideas? I'd love to get this up and running on my system

Invalid delete [] in TRACE_STRING

// globals.cpp
void TRACE_STRING(String str)
{
    Int32 lLen = str.GetCStringLen();
    char* pCh = bNewDeprecatedUseArraysInstead<char>(lLen + 2);
    str.GetCString(pCh, lLen + 1);
    TRACE("%s\n", pCh);
    delete [] pCh;  // <-- should be bDelete(pCh);
}

image

CLanguageList::Init() assumes pre-R16 resource directory structure

This causes CLanguageList g_LanguageList; in globals.cpp to be initialized with zero languages, effectively causing a crash in CStringTableElement::SetItemText() (if not earlier) when a description is being saved with ResEdit.

This is the respective code in LanguageList.cpp

/*********************************************************************\
    Function name    : CLanguageList::Init
    Description      :
    Created at       : 26.09.01, @ 16:11:23
    Created by       : Thomas Kunert
    Modified by      :
\*********************************************************************/
void CLanguageList::Init()
{
    Filename resourcepath = GeGetStartupPath() + Filename("resource");
    AutoAlloc <BrowseFiles> pBrowse;
    pBrowse->Init(resourcepath, false);

    while (pBrowse->GetNext())
    {
        if (pBrowse->IsDir())
        {
            Filename fn = pBrowse->GetFilename();
            if (fn.GetString().SubStr(0, 8).ToLower() == "strings_")
            {
                String idx = fn.GetString();
                idx.Delete(0, 8);

                Filename stringname = resourcepath + fn+Filename("c4d_language.str");
                AutoAlloc <BaseFile> pFile;
                if (!pFile)
                    return;
                if (!GeFExist(stringname))
                {
                    GeOutString("Missing c4d_language.str to identify the string directory!!!", GEMB_ICONEXCLAMATION);
                }
                else if (pFile->Open(stringname))
                {
                    Int32 len = pFile->GetLength();
                    Char *buffer = NewMemClear(Char,len + 2);
                    if (buffer)
                    {
                        pFile->ReadBytes(buffer,len);
                        buffer[len]=0;

                        Int32 i;

                        for (i = 0; i < len && buffer[i] >= ' '; i++) { }
                        buffer[i] = 0;

                        for (i--; i > 0 && buffer[i]== ' '; i--) { }
                        buffer[i + 1] = 0;

                        AddLanguage(buffer, idx);
                        DeleteMem(buffer);
                    }
                }
            }
        }
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.