我尝试了一些gcc编译器,以查看默认枚举大小是短(至少一个字节,用{"areas":[{"id":"271341877549072406","name":"XXX","children":[{"id":"271341877549074229","name":"Basement","position":0,"children":[{"id":"271341877549074495","name":"North Basement","position":0,"children":[]},{"id":"271341877549074492","name":"South Basement","position":1,"children":[]},{"id":"271341877549074489","name":"West Basement","position":2,"children":[]}]},{"id":"271341877549074482","name":"Basement","position":1,"children":[]},{"id":"271341877549074521","name":"East Block","position":2,"children":[]},{"id":"271341877549072410","name":"Garden 1","position":3,"children":[]},{"id":"271341877549072411","name":"Garden 2","position":4,"children":[]},{"id":"271341877549072412","name":"Garden 3","position":5,"children":[]},{"id":"271341877549072413","name":"Garden 4","position":6,"children":[]},{"id":"271341877549072414","name":"Garden 5","position":7,"children":[]},{"id":"271341877549072415","name":"Garden 6","position":8,"children":[]},{"id":"271341877549074517","name":"Lobby","position":9,"children":[]},{"id":"271341877549074519","name":"LOT 1 DP 228133","position":10,"children":[{"id":"271341877549074522","name":"Area 1 sssssss dffffffff ggggggggggt rtttttty uuuuuu eeeeeeeeee ssssssss","position":0,"children":[]}]},{"id":"271341877549072407","name":"North Block","position":11,"children":[{"id":"271341877549072425","name":"3 Bedroom Apartment 1","position":0,"children":[{"id":"271341877549074498","name":"Kitchen","position":0,"children":[]}]},{"id":"271341877549072417","name":"Apartment 1","position":1,"children":[{"id":"271341877549074231","name":"Kitchen","position":0,"children":[]}]},{"id":"271341877549072418","name":"Apartment 2","position":2,"children":[]},{"id":"271341877549072419","name":"Apartment 3","position":3,"children":[]},{"id":"271341877549072420","name":"Apartment 4","position":4,"children":[]},{"id":"271341877549072421","name":"Apartment 5","position":5,"children":[]},{"id":"271341877549072422","name":"Apartment 6","position":6,"children":[]},{"id":"271341877549072423","name":"Apartment 7","position":7,"children":[]},{"id":"271341877549072424","name":"Apartment 8","position":8,"children":[]},{"id":"271341877549074499","name":"Garbage Room","position":9,"children":[]}]},{"id":"271341877549072408","name":"Playground","position":12,"children":[{"id":"271341877549074357","name":"Basketball Ground","position":0,"children":[]},{"id":"271341877549074230","name":"Cloakroom","position":1,"children":[]},{"id":"271341877549074344","name":"Indoor Football Ground","position":2,"children":[]},{"id":"271341877549074347","name":"Washrooms","position":3,"children":[]}]},{"id":"271341877549074303","name":"South Block","position":13,"children":[{"id":"271341877549074500","name":"Gym","position":0,"children":[]},{"id":"271341877549074304","name":"Main Power Room","position":1,"children":[{"id":"271341877549074305","name":"Generator Rooms","position":0,"children":[{"id":"271341877549074507","name":"Backup Generator Room","position":0,"children":[]},{"id":"271341877549074306","name":"Generator Room 1","position":1,"children":[]},{"id":"271341877549074508","name":"Generator Room 2","position":2,"children":[]}]}]}]},{"id":"271341877549074520","name":"Swimming Pool","position":14,"children":[]},{"id":"271341877549072409","name":"Theatre Room","position":15,"children":[{"id":"271341877549074346","name":"Mini Cinema","position":0,"children":[]}]},{"id":"271341877549074301","name":"West Block","position":16,"children":[{"id":"271341877549074302","name":"Apartment 1","position":0,"children":[]}]}]}],"issueTypes":[{"id":"271341877549072459","name":"1","customFields":[]},{"id":"271341877549072540","name":"2018","customFields":[]},{"id":"271341877549072462","name":"3","customFields":[]},{"id":"271341877549072460","name":"4","customFields":[]},{"id":"271341877549072461","name":"5","customFields":[]},{"id":"271341877549072400","name":"Carpentry","customFields":[{"order":1,"id":"271341877549072513","label":"Cost-Field","type":{"name":"single_select","specification":{"options":["A100","B100","C100"]}},"familyId":"271341877549072477"},{"order":2,"id":"271341877549072545","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"}]},{"id":"271341877549072541","name":"Clearance","customFields":[{"order":1,"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"order":2,"id":"271341877549072545","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"},{"order":3,"id":"271341877549072521","label":"Priority","type":{"name":"single_select","specification":{"options":["Cat 1","Cat 2","Cat 4","Cat 5"]}},"familyId":"271341877549072440"}]},{"id":"271341877549072399","name":"Damage","customFields":[{"order":1,"id":"271341877549072467","label":"Cost Code","type":{"name":"single_select","specification":{"options":["CC00001","CC00002","CC00003","CC00004"]}},"familyId":"271341877549072446"},{"order":2,"id":"271341877549072468","label":"Hold/Witness Point","type":{"name":"single_select","specification":{"options":["Hold Point","Witness Point"]}},"familyId":"271341877549072447"},{"order":3,"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"order":4,"id":"271341877549072463","label":"Pipes","type":{"name":"single_select","specification":{"options":["1 inch","2 inch"]}},"familyId":"271341877549072442"},{"order":5,"id":"271341877549072545","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"}]},{"id":"271341877549072388","name":"Defect","customFields":[{"order":1,"id":"271341877549072467","label":"Cost Code","type":{"name":"single_select","specification":{"options":["CC00001","CC00002","CC00003","CC00004"]}},"familyId":"271341877549072446"},{"order":2,"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"order":3,"id":"271341877549072521","label":"Priority","type":{"name":"single_select","specification":{"options":["Cat 1","Cat 2","Cat 4","Cat 5"]}},"familyId":"271341877549072440"}]},{"id":"271341877549072389","name":"Design","customFields":[{"order":1,"id":"271341877549072545","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"},{"order":2,"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"}]},{"id":"271341877549072404","name":"Drainage","customFields":[{"order":1,"id":"271341877549072497","label":"Test1 - Rev 1","type":{"name":"single_select","specification":{"options":["1","2","3","4-updated"]}},"familyId":"271341877549072467"},{"order":2,"id":"271341877549072475","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"order":3,"id":"271341877549072500","label":"Autore","type":{"name":"single_select","specification":{"options":["Grandi Bonifiche ATI","Milano Sesto","Impresa 1","Impresa 2","Impresa 3"]}},"familyId":"271341877549072444"}]},{"id":"271341877549072391","name":"Electrical","customFields":[{"order":1,"id":"271341877549072483","label":"Field","type":{"name":"single_select","specification":{"options":["1","2","3"]}},"familyId":"271341877549072460"},{"order":2,"id":"271341877549072472","label":"WBS","type":{"name":"single_select","specification":{"options":["10000","10001","10002","10003","20000","20001","20003","20004"]}},"familyId":"271341877549072451"},{"order":3,"id":"271341877549072471","label":"RFI Type","type":{"name":"single_select","specification":{"options":["Pre-work","Design","Construction"]}},"familyId":"271341877549072450"},{"order":4,"id":"271341877549072470","label":"Model Revision Status","type":{"name":"single_select","specification":{"options":["WIP","Shared","Published","Archive"]}},"familyId":"271341877549072449"},{"order":5,"id":"271341877549072498","label":"DeletionTest","type":{"name":"single_select","specification":{"options":["01","02","03"]}},"familyId":"271341877549072468"},{"order":6,"id":"271341877549072513","label":"Cost-Field","type":{"name":"single_select","specification":{"options":["A100","B100","C100"]}},"familyId":"271341877549072477"},{"order":7,"id":"271341877549072543","label":"Dam 2","type":{"name":"single_select","specification":{"options":["sujai","mohan","sandipan","bhargav"]}},"familyId":"271341877549072490"},{"order":8,"id":"271341877549072546","label":"New Field","type":{"name":"single_select","specification":{"options":["1","2","3","4"]}},"familyId":"271341877549072491"},{"order":9,"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"}]},{"id":"271341877549072393","name":"Environment","customFields":[{"order":1,"id":"271341877549072521","label":"Priority","type":{"name":"single_select","specification":{"options":["Cat 1","Cat 2","Cat 4","Cat 5"]}},"familyId":"271341877549072440"},{"order":2,"id":"271341877549072475","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"order":3,"id":"271341877549072518","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"},{"order":4,"id":"271341877549072463","label":"Pipes","type":{"name":"single_select","specification":{"options":["1 inch","2 inch"]}},"familyId":"271341877549072442"},{"order":5,"id":"271341877549072500","label":"Autore","type":{"name":"single_select","specification":{"options":["Grandi Bonifiche ATI","Milano Sesto","Impresa 1","Impresa 2","Impresa 3"]}},"familyId":"271341877549072444"},{"order":6,"id":"271341877549072483","label":"Field","type":{"name":"single_select","specification":{"options":["1","2","3"]}},"familyId":"271341877549072460"}]},{"id":"271341877549072402","name":"Extensions","customFields":[]},{"id":"271341877549072463","name":"f","customFields":[]},{"id":"271341877549072396","name":"Finishing","customFields":[]},{"id":"271341877549072392","name":"Fire","customFields":[{"order":1,"id":"271341877549072461","label":"Priority","type":{"name":"single_select","specification":{"options":["Cat 1","Cat 2","Cat 4","Cat 5"]}},"familyId":"271341877549072440"}]},{"id":"271341877549072395","name":"Flooring","customFields":[]},{"id":"271341877549072403","name":"Health and Safety","customFields":[{"order":1,"id":"271341877549072518","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"}]},{"id":"271341877549072401","name":"Heating","customFields":[{"order":1,"id":"271341877549072497","label":"Test1 - Rev 1","type":{"name":"single_select","specification":{"options":["1","2","3","4-updated"]}},"familyId":"271341877549072467"},{"order":2,"id":"271341877549072468","label":"Hold/Witness Point","type":{"name":"single_select","specification":{"options":["Hold Point","Witness Point"]}},"familyId":"271341877549072447"},{"order":3,"id":"271341877549072470","label":"Model Revision Status","type":{"name":"single_select","specification":{"options":["WIP","Shared","Published","Archive"]}},"familyId":"271341877549072449"},{"order":4,"id":"271341877549072472","label":"WBS","type":{"name":"single_select","specification":{"options":["10000","10001","10002","10003","20000","20001","20003","20004"]}},"familyId":"271341877549072451"},{"order":5,"id":"271341877549072471","label":"RFI Type","type":{"name":"single_select","specification":{"options":["Pre-work","Design","Construction"]}},"familyId":"271341877549072450"},{"order":6,"id":"271341877549072500","label":"Autore","type":{"name":"single_select","specification":{"options":["Grandi Bonifiche ATI","Milano Sesto","Impresa 1","Impresa 2","Impresa 3"]}},"familyId":"271341877549072444"}]},{"id":"271341877549072398","name":"Maintenance","customFields":[]},{"id":"271341877549072522","name":"Material Defect","customFields":[]},{"id":"271341877549072397","name":"Paint","customFields":[{"order":1,"id":"271341877549072498","label":"DeletionTest","type":{"name":"single_select","specification":{"options":["01","02","03"]}},"familyId":"271341877549072468"},{"order":2,"id":"271341877549072518","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"}]},{"id":"271341877549072394","name":"Plumbing","customFields":[{"order":1,"id":"271341877549072500","label":"Autore","type":{"name":"single_select","specification":{"options":["Grandi Bonifiche ATI","Milano Sesto","Impresa 1","Impresa 2","Impresa 3"]}},"familyId":"271341877549072444"},{"order":2,"id":"271341877549072466","label":"Construction Work Package","type":{"name":"single_select","specification":{"options":["CWP 1","CWP 2","CWP 3","CWP 4"]}},"familyId":"271341877549072445"},{"order":3,"id":"271341877549072467","label":"Cost Code","type":{"name":"single_select","specification":{"options":["CC00001","CC00002","CC00003","CC00004"]}},"familyId":"271341877549072446"},{"order":4,"id":"271341877549072468","label":"Hold/Witness Point","type":{"name":"single_select","specification":{"options":["Hold Point","Witness Point"]}},"familyId":"271341877549072447"},{"order":5,"id":"271341877549072469","label":"Hold / Witness Point Outcome","type":{"name":"single_select","specification":{"options":["Satisfactory","Unsatisfactory"]}},"familyId":"271341877549072448"},{"order":6,"id":"271341877549072470","label":"Model Revision Status","type":{"name":"single_select","specification":{"options":["WIP","Shared","Published","Archive"]}},"familyId":"271341877549072449"},{"order":7,"id":"271341877549072471","label":"RFI Type","type":{"name":"single_select","specification":{"options":["Pre-work","Design","Construction"]}},"familyId":"271341877549072450"},{"order":8,"id":"271341877549072472","label":"WBS","type":{"name":"single_select","specification":{"options":["10000","10001","10002","10003","20000","20001","20003","20004"]}},"familyId":"271341877549072451"},{"order":9,"id":"271341877549072483","label":"Field","type":{"name":"single_select","specification":{"options":["1","2","3"]}},"familyId":"271341877549072460"},{"order":10,"id":"271341877549072541","label":"Dam","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","8","9","10"]}},"familyId":"271341877549072464"},{"order":11,"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"order":12,"id":"271341877549072545","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"},{"order":13,"id":"271341877549072521","label":"Priority","type":{"name":"single_select","specification":{"options":["Cat 1","Cat 2","Cat 4","Cat 5"]}},"familyId":"271341877549072440"},{"order":14,"id":"271341877549072463","label":"Pipes","type":{"name":"single_select","specification":{"options":["1 inch","2 inch"]}},"familyId":"271341877549072442"}]},{"id":"271341877549072453","name":"Rework","customFields":[{"order":1,"id":"271341877549072521","label":"Priority","type":{"name":"single_select","specification":{"options":["Cat 1","Cat 2","Cat 4","Cat 5"]}},"familyId":"271341877549072440"}]},{"id":"271341877549072539","name":"Russia","customFields":[{"order":1,"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"order":2,"id":"271341877549072545","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"},{"order":3,"id":"271341877549072521","label":"Priority","type":{"name":"single_select","specification":{"options":["Cat 1","Cat 2","Cat 4","Cat 5"]}},"familyId":"271341877549072440"}]},{"id":"271341877549072390","name":"Safety","customFields":[{"order":1,"id":"271341877549072510","label":"CF1","type":{"name":"single_select","specification":{"options":["1","2"]}},"familyId":"271341877549072476"}]},{"id":"271341877549072545","name":"Structural","customFields":[{"order":1,"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"order":2,"id":"271341877549072545","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"}]},{"id":"271341877549072458","name":"T","customFields":[]},{"id":"271341877549072447","name":"Technology Adaption","customFields":[]},{"id":"271341877549072428","name":"Type 001","customFields":[{"order":1,"id":"271341877549072483","label":"Field","type":{"name":"single_select","specification":{"options":["1","2","3"]}},"familyId":"271341877549072460"},{"order":2,"id":"271341877549072472","label":"WBS","type":{"name":"single_select","specification":{"options":["10000","10001","10002","10003","20000","20001","20003","20004"]}},"familyId":"271341877549072451"},{"order":3,"id":"271341877549072471","label":"RFI Type","type":{"name":"single_select","specification":{"options":["Pre-work","Design","Construction"]}},"familyId":"271341877549072450"},{"order":4,"id":"271341877549072470","label":"Model Revision Status","type":{"name":"single_select","specification":{"options":["WIP","Shared","Published","Archive"]}},"familyId":"271341877549072449"},{"order":5,"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"order":6,"id":"271341877549072495","label":"ln-test-V1-CF-label-updated","type":{"name":"single_select","specification":{"options":["yes-updated","unknown"]}},"familyId":"271341877549072466"}]},{"id":"271341877549072486","name":"Type 002","customFields":[]},{"id":"271341877549072487","name":"Type 003","customFields":[]},{"id":"271341877549072488","name":"Type 004","customFields":[]},{"id":"271341877549072489","name":"Type 005","customFields":[{"order":1,"id":"271341877549072540","label":"Issue priority field","type":{"name":"single_select","specification":{"options":["High","Medium","Low"]}},"familyId":"271341877549072488"},{"order":2,"id":"271341877549072535","label":"Special Chars","type":{"name":"single_select","specification":{"options":["MCC - DB-5-1-2, ACS & Power Meter","MCC - DB-5-1-2","DB ACS","ACS & Power Meter","DB-5-1-2","MCC - DB"]}},"familyId":"271341877549072487"}]},{"id":"271341877549072521","name":"Type 006","customFields":[]},{"id":"271341877549072454","name":"Water Damage","customFields":[{"order":1,"id":"271341877549072545","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"}]}],"potentialAssignees":{"users":[{"id":"1879049107","name":"Patrick O'Leary","tradingName":"Majestic Builders"},{"id":"1879049122","name":"Abdul Halim","tradingName":"Majestic Builders"},{"id":"1879049123","name":"Tim Yeung","tradingName":"Majestic Builders"},{"id":"1879049124","name":"Sharon Spiteri","tradingName":"Majestic Builders"},{"id":"1879049249","name":"Peter Goh","tradingName":"Majestic Builders"},{"id":"1879049251","name":"Melissa Leung","tradingName":"Majestic Builders"},{"id":"1879049258","name":"Tran Nguyen","tradingName":"Majestic Builders"},{"id":"1879049395","name":"Kenneth McDonald","tradingName":"Majestic Builders"},{"id":"1879049760","name":"Sesha Narasimha","tradingName":"Majestic Builders"},{"id":"1879049764","name":"Daphne Rouvillois","tradingName":"Majestic Builders"},{"id":"1879049765","name":"Sony Joseph","tradingName":"Majestic Builders"},{"id":"1879049767","name":"Tom Moody","tradingName":"Majestic Builders"},{"id":"1879049768","name":"Gopal Krishna","tradingName":"Majestic Builders"},{"id":"1879049769","name":"Hemanth S","tradingName":"Majestic Builders"},{"id":"1879049770","name":"Aconex User","tradingName":"Majestic Builders"},{"id":"1879049789","name":"Roshan Jossey","tradingName":"Majestic Builders"},{"id":"1879049797","name":"Sandipan Banerjee","tradingName":"Majestic Builders"},{"id":"1879049802","name":"alexander popov","tradingName":"Majestic Builders"},{"id":"1879049803","name":"Anna Zinovina","tradingName":"Majestic Builders"},{"id":"1879049809","name":"vyacheslav kibitsky","tradingName":"Majestic Builders"},{"id":"1879049813","name":"Debomita Sen","tradingName":"Majestic Builders"},{"id":"1879049814","name":"Bhupendra Singh","tradingName":"Majestic Builders"}],"organizations":[{"id":"1","tradingName":"Demo Instance Administration","name":"Demo Instance Administration"},{"id":"1879048206","tradingName":"Hings Timber Merchants","name":"Hings Timber Merchants"},{"id":"1879048210","tradingName":"Arkitera","name":"Arkitera"},{"id":"1879048232","tradingName":"Conglomo Corporation","name":"Conglomo Corporation"},{"id":"1879048240","tradingName":"Aramist Consulting","name":"Aramist Consulting"},{"id":"1879048308","tradingName":"Belten Interiors Pty Ltd","name":"Belten Interiors Pty Ltd"},{"id":"1879048437","tradingName":"Super Safe Scaffolding","name":"Super Safe Scaffolding"},{"id":"1879048513","tradingName":"Wirewin Electricals","name":"Wirewin Electricals"},{"id":"1879048514","tradingName":"AJ Hydraulic Services","name":"AJ Hydraulic Services"},{"id":"1879048515","tradingName":"Apex Mechanical","name":"Apex Mechanical"},{"id":"1879048517","tradingName":"Andreas Metal","name":"Andreas Metal Fabrication"},{"id":"1879048492","tradingName":"Majestic Builders","name":"Majestic Project & Construction Management Limited"}]},"customFields":[{"id":"271341877549072533","label":"Category","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","MCC - DB-5-1-2, ACS & Power Meter"]}},"familyId":"271341877549072438"},{"id":"271341877549072545","label":"Disciplines","type":{"name":"single_select","specification":{"options":["HVAC","Piping","Instrumentation","Other"]}},"familyId":"271341877549072439"},{"id":"271341877549072521","label":"Priority","type":{"name":"single_select","specification":{"options":["Cat 1","Cat 2","Cat 4","Cat 5"]}},"familyId":"271341877549072440"},{"id":"271341877549072463","label":"Pipes","type":{"name":"single_select","specification":{"options":["1 inch","2 inch"]}},"familyId":"271341877549072442"},{"id":"271341877549072500","label":"Autore","type":{"name":"single_select","specification":{"options":["Grandi Bonifiche ATI","Milano Sesto","Impresa 1","Impresa 2","Impresa 3"]}},"familyId":"271341877549072444"},{"id":"271341877549072466","label":"Construction Work Package","type":{"name":"single_select","specification":{"options":["CWP 1","CWP 2","CWP 3","CWP 4"]}},"familyId":"271341877549072445"},{"id":"271341877549072467","label":"Cost Code","type":{"name":"single_select","specification":{"options":["CC00001","CC00002","CC00003","CC00004"]}},"familyId":"271341877549072446"},{"id":"271341877549072468","label":"Hold/Witness Point","type":{"name":"single_select","specification":{"options":["Hold Point","Witness Point"]}},"familyId":"271341877549072447"},{"id":"271341877549072469","label":"Hold / Witness Point Outcome","type":{"name":"single_select","specification":{"options":["Satisfactory","Unsatisfactory"]}},"familyId":"271341877549072448"},{"id":"271341877549072470","label":"Model Revision Status","type":{"name":"single_select","specification":{"options":["WIP","Shared","Published","Archive"]}},"familyId":"271341877549072449"},{"id":"271341877549072471","label":"RFI Type","type":{"name":"single_select","specification":{"options":["Pre-work","Design","Construction"]}},"familyId":"271341877549072450"},{"id":"271341877549072472","label":"WBS","type":{"name":"single_select","specification":{"options":["10000","10001","10002","10003","20000","20001","20003","20004"]}},"familyId":"271341877549072451"},{"id":"271341877549072483","label":"Field","type":{"name":"single_select","specification":{"options":["1","2","3"]}},"familyId":"271341877549072460"},{"id":"271341877549072541","label":"Dam","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","8","9","10"]}},"familyId":"271341877549072464"},{"id":"271341877549072495","label":"ln-test-V1-CF-label-updated","type":{"name":"single_select","specification":{"options":["yes-updated","unknown"]}},"familyId":"271341877549072466"},{"id":"271341877549072497","label":"Test1 - Rev 1","type":{"name":"single_select","specification":{"options":["1","2","3","4-updated"]}},"familyId":"271341877549072467"},{"id":"271341877549072498","label":"DeletionTest","type":{"name":"single_select","specification":{"options":["01","02","03"]}},"familyId":"271341877549072468"},{"id":"271341877549072510","label":"CF1","type":{"name":"single_select","specification":{"options":["1","2"]}},"familyId":"271341877549072476"},{"id":"271341877549072513","label":"Cost-Field","type":{"name":"single_select","specification":{"options":["A100","B100","C100"]}},"familyId":"271341877549072477"},{"id":"271341877549072519","label":"test-limit-ln","type":{"name":"single_select","specification":{"options":["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80"]}},"familyId":"271341877549072478"},{"id":"271341877549072529","label":"Imapct Area","type":{"name":"single_select","specification":{"options":["One","Two","three","four"]}},"familyId":"271341877549072483"},{"id":"271341877549072535","label":"Special Chars","type":{"name":"single_select","specification":{"options":["MCC - DB-5-1-2, ACS & Power Meter","MCC - DB-5-1-2","DB ACS","ACS & Power Meter","DB-5-1-2","MCC - DB"]}},"familyId":"271341877549072487"},{"id":"271341877549072540","label":"Issue priority field","type":{"name":"single_select","specification":{"options":["High","Medium","Low"]}},"familyId":"271341877549072488"},{"id":"271341877549072542","label":"Dam 1","type":{"name":"single_select","specification":{"options":["11","12","13","14","15","@","*"]}},"familyId":"271341877549072489"},{"id":"271341877549072543","label":"Dam 2","type":{"name":"single_select","specification":{"options":["sujai","mohan","sandipan","bhargav"]}},"familyId":"271341877549072490"},{"id":"271341877549072546","label":"New Field","type":{"name":"single_select","specification":{"options":["1","2","3","4"]}},"familyId":"271341877549072491"},{"id":"271341877549072552","label":"Type of Approval","type":{"name":"single_select","specification":{"options":["One","Two","Three"]}},"familyId":"271341877549072497"}],"issueDescSuggestions":["Airgrille - damaged","Airgrille - not installed","Airgrille - remove paint chips","Appliances Boiling/Chilled Water - cleaning require"],"issueLocationDescSuggestions":["North","East","South","West","\"\""]}
强制)还是不短(至少4个字节,用let request = NSBatchUpdateRequest(entityName: "ORAFieldMetadataMO")
let predicate = NSPredicate(format: "primaryKey != nil")
request.predicate = predicate
request.issueLocationDescSuggestions = ["issueLocationDescSuggestions" : json["issueLocationDescSuggestions"]]
强制) ):
areas
您会看到,嵌入式目标上的默认值为short,而托管平台上的默认值为no-short。改善托管平台上的二进制兼容性是有意义的。现在:
在构建gcc时,有什么规则告诉我枚举是否短,具体取决于配置选项?
编辑:
如伦丁的答案所指出,the gcc manual指出
在某些目标上,
-fshort-enums
是默认设置;这取决于 ABI。
我的问题是:如何依赖于ABI,它在哪里记录? gcc源代码是否包含一种将架构(例如arm-linux-gnueabihf)映射到ABI的数据库,以及一种为每个ABI指定所有选项(例如short枚举或no-short枚举)的数据库?还是所有硬编码的魔术散布在整个源代码树中?
答案 0 :(得分:4)
在gcc手册中,查找实现定义的行为。 Chapter 4.9。
与每种枚举类型(C90 6.5.2.2,C99和C11 6.7.2.2)兼容的整数类型。
通常,如果枚举中没有负值,则类型为
unsigned int
,否则为int
。如果指定了-fshort-enums
,则如果存在负值,则signed char
,short
和int
的第一个可以代表所有值,否则为第一个。可以代表所有值的unsigned char
,unsigned short
和unsigned int
。在某些目标上,
-fshort-enums
是默认设置;这是由ABI决定的。
斜体部分是从C标准的实现定义的行为中引用的。如您所见,类型是自适应的,取决于存在的枚举常量。对于不同的enum
类型,它不必在您的程序中始终具有相同的大小。
优化设置可能很重要,因为在某些计算机上4字节enum
可能比1字节枚举要快。