Closed Bug 792813 Opened 12 years ago Closed 12 years ago

Fill in sessionConstants.h

Categories

(Core :: WebRTC: Signaling, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ekr, Assigned: ehugg)

Details

(Whiteboard: [qa-])

Attachments

(1 file, 2 obsolete files)

Ehugg, This list wasn't updated.
Assignee: nobody → ethanhugg
Comment on attachment 663015 [details] [diff] [review] Fix feature list in sessionConstants.h I moved the feature_names list into ccapi.h to be next to the enum list and updated its values. I would be nice to have a clever way at compile-time to ensure that cc_feature_names[] gets initialized to exactly CC_FEATURE_MAX + 1 in size.
Attachment #663015 - Flags: feedback?(ekr)
Attachment #663015 - Attachment is obsolete: true
Attachment #663015 - Flags: feedback?(ekr)
Comment on attachment 663027 [details] [diff] [review] Fix feature list in sessionConstants.h Also found a bug with cc_msg_names. PR_STATIC_ASSERT is my new friend.
Attachment #663027 - Flags: feedback?(ekr)
Comment on attachment 663027 [details] [diff] [review] Fix feature list in sessionConstants.h Review of attachment 663027 [details] [diff] [review]: ----------------------------------------------------------------- ::: media/webrtc/signaling/src/sipcc/core/includes/ccapi.h @@ +327,5 @@ > + > +/* This checks at compile-time that the cc_msg_names list > + * is the same size as the cc_msgs_t enum > + */ > +PR_STATIC_ASSERT(sizeof(cc_msg_names) / sizeof(char *) == CC_MSG_MAX + 1); You probably want to use PR_ARRAY_SIZE() here instead of the explicit sizeof
Attachment #663027 - Flags: feedback?(ekr) → feedback+
Attachment #663027 - Attachment is obsolete: true
Comment on attachment 663133 [details] [diff] [review] Fix feature list in sessionConstants.h Pushed to Alder: https://hg.mozilla.org/projects/alder/rev/9aaa4d60325c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: