From 20a4aba11033433895696ef7aa135d93097900af Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Wed, 6 Jan 2010 16:32:44 +0000 Subject: Extended argument handling for message queue blocks. Updates lib/mqueue.c and .h Having concluded that two arguments is really too restrictive, this change: * allows for an indefinite number of arguments. With up to 6 in the body of the message queue block itself. * supports the treatment of arguments from a given argument 'n' onwards as a list of indefinite length. So message queue block may be treated as having 'n' fixed arguments and a variable number of further arguments. Adds a further memory type. --- lib/memtypes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/memtypes.c') diff --git a/lib/memtypes.c b/lib/memtypes.c index c55a2cb7..633ca9bb 100644 --- a/lib/memtypes.c +++ b/lib/memtypes.c @@ -34,13 +34,14 @@ struct memory_list memory_list_lib[] = { MTYPE_QPT_COND, "qpt condition variable" }, { MTYPE_MQUEUE_QUEUE, "Mqueue queue structure" }, { MTYPE_MQUEUE_BLOCKS, "Mqueue message blocks" }, + { MTYPE_MQUEUE_BLOCK_EXT, "Mqueue message block extension"}, { MTYPE_MQUEUE_THREAD_SIGNAL, "Mqueue thread signal" }, { MTYPE_QPS_SELECTION, "qpselect selection" }, { MTYPE_QPS_FILE, "qpselect file" }, { MTYPE_QTIMER_PILE, "qtimer pile structure" }, { MTYPE_QTIMER, "qtimer timer" }, { MTYPE_QPN_NEXUS, "qtn nexus" }, - { MTYPE_MARSHAL, "marshalled commands" }, + { MTYPE_MARSHAL, "marshalled commands" }, { MTYPE_VTY, "VTY" }, { MTYPE_VTY_OUT_BUF, "VTY output buffer" }, { MTYPE_VTY_HIST, "VTY history" }, -- cgit v1.2.3