Bug 1438257, part 2 - Get rid of extern. r=froydnj draft
authorAndrew McCreight <continuation@gmail.com>
Wed, 14 Feb 2018 09:54:04 -0800
changeset 754980 aa9ab3bb9b298fffc09dfe9cb9299af2b27717b7
parent 754979 901be461cb31e63355c9374e84b1a92be814fd82
child 754981 76c146643e7a0535fcf7716377a7a7f15a28152a
push id99082
push userbmo:continuation@gmail.com
push dateWed, 14 Feb 2018 19:47:59 +0000
reviewersfroydnj
bugs1438257
milestone60.0a1
Bug 1438257, part 2 - Get rid of extern. r=froydnj We don't export these any more, so I don't think there's a reason to mark them extern. MozReview-Commit-ID: GbkF7HdRUT6
xpcom/typelib/xpt/xpt_xdr.h
--- a/xpcom/typelib/xpt/xpt_xdr.h
+++ b/xpcom/typelib/xpt/xpt_xdr.h
@@ -17,39 +17,39 @@ using mozilla::NotNull;
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 typedef struct XPTState         XPTState;
 typedef struct XPTCursor        XPTCursor;
 
-extern bool
+bool
 XPT_SkipStringInline(NotNull<XPTCursor*> cursor);
 
-extern bool
+bool
 XPT_DoCString(XPTArena *arena, NotNull<XPTCursor*> cursor, char **strp,
               bool ignore = false);
 
-extern bool
+bool
 XPT_DoIID(NotNull<XPTCursor*> cursor, nsID *iidp);
 
-extern bool
+bool
 XPT_Do64(NotNull<XPTCursor*> cursor, int64_t *u64p);
 
-extern bool
+bool
 XPT_Do32(NotNull<XPTCursor*> cursor, uint32_t *u32p);
 
-extern bool
+bool
 XPT_Do16(NotNull<XPTCursor*> cursor, uint16_t *u16p);
 
-extern bool
+bool
 XPT_Do8(NotNull<XPTCursor*> cursor, uint8_t *u8p);
 
-extern bool
+bool
 XPT_DoHeader(XPTArena *arena, NotNull<XPTCursor*> cursor, XPTHeader **headerp);
 
 typedef enum {
     XPT_HEADER = 0,
     XPT_DATA = 1
 } XPTPool;
 
 struct XPTState {
@@ -61,26 +61,26 @@ struct XPTState {
 
 struct XPTCursor {
     XPTState    *state;
     XPTPool     pool;
     uint32_t    offset;
     uint8_t     bits;
 };
 
-extern void
+void
 XPT_InitXDRState(XPTState* state, char* data, uint32_t len);
 
-extern bool
+bool
 XPT_MakeCursor(XPTState *state, XPTPool pool, uint32_t len,
                NotNull<XPTCursor*> cursor);
 
-extern bool
+bool
 XPT_SeekTo(NotNull<XPTCursor*> cursor, uint32_t offset);
 
-extern void
+void
 XPT_SetDataOffset(XPTState *state, uint32_t data_offset);
 
 #ifdef __cplusplus
 }
 #endif
 
 #endif /* __xpt_xdr_h__ */