From c5d37ce028fa90a564ff84cc5050996933792df8 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 23 Apr 2022 10:03:51 +0200 Subject: [PATCH] Update comments --- m-core.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/m-core.h b/m-core.h index 6249323a..d7b186e3 100644 --- a/m-core.h +++ b/m-core.h @@ -3857,7 +3857,7 @@ m_core_parse2_enum (const char str[], const char **endptr) /* Initialize the container 'dest' as per 'oplist' INIT operator - and fill it with the given VA arguments with the PUSH operator. + and fill it with the given VA_ARGS arguments with the PUSH operator. NOTE: If the REVERSE operator exists, it assumes a list, so it reverses the final order. */ @@ -3871,8 +3871,12 @@ m_core_parse2_enum (const char str[], const char **endptr) /* Initialize the container 'dest' as per 'oplist' INIT operator - and fill it with the given VA arguments with the _push_raw method - allowing INIT_WITH operator for the pushed argument. + and fill it with the given VA_ARGS arguments with the _push_raw method + allowing INIT_WITH operator for the pushed argument if the given + argument is between parenthesis, otherwise an INIT_SET is performed. + NOTE: Parenthesis detection is the best we can do to detect a special + argument. The argument may start with '*' or a '+' and we cannot use + M_KEYWORD_P with such arguments (as it cannot be concatened). NOTE: If the REVERSE operator exists, it assumes a list, so it reverses the final order. */