emacs-lisp: add missing '\' in template
Fixes the generated setup_message_id_table(...) implementation. Without a level of quoting in the emacs lisp skeleton, the underscore macro used to generate calls to vl_msg_api_add_msg_name_crc produces "fooCRC" instead of "foo_CRC". That confuses the Python language binding. Punctuation saves lives: "Let's eat Grandma" vs. "Let's eat, Grandma." Or some such. Change-Id: Ibecc20337092199d6757165ac96b70c830511bb3 Signed-off-by: Dave Barach <dave@barachs.net>
This commit is contained in:
@ -210,7 +210,7 @@ static void
|
||||
setup_message_id_table (" plugin-name "_main_t * " main-p ", api_main_t * am)
|
||||
{
|
||||
#define _(id,n,crc) \
|
||||
vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id + " main-p "->msg_id_base);
|
||||
vl_msg_api_add_msg_name_crc (am, #n \"_\" #crc, id + " main-p "->msg_id_base);
|
||||
foreach_vl_msg_name_crc_" plugin-name" ;
|
||||
#undef _
|
||||
}
|
||||
@ -267,4 +267,3 @@ VLIB_PLUGIN_REGISTER () =
|
||||
* End:
|
||||
*/
|
||||
")
|
||||
|
||||
|
Reference in New Issue
Block a user