{"action":"opened","issue":{"url":"https://api.github.com/repos/echronos/echronos/issues/17","labels_url":"https://api.github.com/repos/echronos/echronos/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/echronos/echronos/issues/17/comments","events_url":"https://api.github.com/repos/echronos/echronos/issues/17/events","html_url":"https://github.com/echronos/echronos/issues/17","id":120894899,"number":17,"title":"Fix message queue 'type' parameter","user":{"login":"Schnommus","id":1386830,"avatar_url":"https://avatars.githubusercontent.com/u/1386830?v=3","gravatar_id":"","url":"https://api.github.com/users/Schnommus","html_url":"https://github.com/Schnommus","followers_url":"https://api.github.com/users/Schnommus/followers","following_url":"https://api.github.com/users/Schnommus/following{/other_user}","gists_url":"https://api.github.com/users/Schnommus/gists{/gist_id}","starred_url":"https://api.github.com/users/Schnommus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schnommus/subscriptions","organizations_url":"https://api.github.com/users/Schnommus/orgs","repos_url":"https://api.github.com/users/Schnommus/repos","events_url":"https://api.github.com/users/Schnommus/events{/privacy}","received_events_url":"https://api.github.com/users/Schnommus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T23:36:49Z","updated_at":"2015-12-07T23:36:49Z","closed_at":null,"body":"* I came across this whilst trying to port message queues across from Rigel to Kochab. I'm pretty sure this is a bug in Rigel.\r\n* Take a look at this: (from components/message-queue/implementation.c:34)\r\n```c\r\n{{#message_queues.length}}\r\n{{#message_queues}}\r\nstatic uint8_t message_queue_{{name}}_messages[{{queue_length}}][{{message_size}}];\r\n{{/message_queues}}\r\nstatic struct message_queue message_queues[] =\r\n{\r\n{{#message_queues}}\r\n    {\r\n        (uint8_t*)message_queue_{{name}}_messages,\r\n{{#message_size}}\r\n        {{message_size}},\r\n{{/message_size}}\r\n{{#message_type}}\r\n        sizeof({{message_type}}),\r\n{{/message_type}}\r\n```\r\n* So in the above, line 36 you can see that `{{message_size}}` is used to provide the second dimension of `message_queue_x_messages`\r\n* However, in the documentation it is listed: (and you can also see from line 47):\r\n\r\n> **message_queues/message_queue/message_type**\r\nThis configuration item specifies the C type of each message in the queue from which the size of the messages is derived. This is an optional configuration item with no default. Either message_size or message_type needs to be specified for a message queue.\r\n\r\n* With the above implementation, the absence of message_size results in python replacing it with 'None', hence a compiler error.\r\n* This means that you can't use message_type."}}