Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: third_party/protobuf/objectivec/GPBWireFormat.h

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 enum { 46 enum {
47 GPBWireFormatMessageSetItem = 1, 47 GPBWireFormatMessageSetItem = 1,
48 GPBWireFormatMessageSetTypeId = 2, 48 GPBWireFormatMessageSetTypeId = 2,
49 GPBWireFormatMessageSetMessage = 3 49 GPBWireFormatMessageSetMessage = 3
50 }; 50 };
51 51
52 uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType) 52 uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType)
53 __attribute__((const)); 53 __attribute__((const));
54 GPBWireFormat GPBWireFormatGetTagWireType(uint32_t tag) __attribute__((const)); 54 GPBWireFormat GPBWireFormatGetTagWireType(uint32_t tag) __attribute__((const));
55 uint32_t GPBWireFormatGetTagFieldNumber(uint32_t tag) __attribute__((const)); 55 uint32_t GPBWireFormatGetTagFieldNumber(uint32_t tag) __attribute__((const));
56 BOOL GPBWireFormatIsValidTag(uint32_t tag) __attribute__((const));
57 56
58 GPBWireFormat GPBWireFormatForType(GPBDataType dataType, BOOL isPacked) 57 GPBWireFormat GPBWireFormatForType(GPBDataType dataType, BOOL isPacked)
59 __attribute__((const)); 58 __attribute__((const));
60 59
61 #define GPBWireFormatMessageSetItemTag \ 60 #define GPBWireFormatMessageSetItemTag \
62 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatStartGroup)) 61 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatStartGroup))
63 #define GPBWireFormatMessageSetItemEndTag \ 62 #define GPBWireFormatMessageSetItemEndTag \
64 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatEndGroup)) 63 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatEndGroup))
65 #define GPBWireFormatMessageSetTypeIdTag \ 64 #define GPBWireFormatMessageSetTypeIdTag \
66 (GPBWireFormatMakeTag(GPBWireFormatMessageSetTypeId, GPBWireFormatVarint)) 65 (GPBWireFormatMakeTag(GPBWireFormatMessageSetTypeId, GPBWireFormatVarint))
67 #define GPBWireFormatMessageSetMessageTag \ 66 #define GPBWireFormatMessageSetMessageTag \
68 (GPBWireFormatMakeTag(GPBWireFormatMessageSetMessage, \ 67 (GPBWireFormatMakeTag(GPBWireFormatMessageSetMessage, \
69 GPBWireFormatLengthDelimited)) 68 GPBWireFormatLengthDelimited))
70 69
71 NS_ASSUME_NONNULL_END 70 NS_ASSUME_NONNULL_END
72 71
73 CF_EXTERN_C_END 72 CF_EXTERN_C_END
OLDNEW
« no previous file with comments | « third_party/protobuf/objectivec/GPBWellKnownTypes.m ('k') | third_party/protobuf/objectivec/GPBWireFormat.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698