add reminders in code
authorOlivier Matz <zer0@droids-corp.org>
Wed, 31 Oct 2018 18:43:51 +0000 (19:43 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Wed, 31 Oct 2018 18:43:51 +0000 (19:43 +0100)
libecoli/ecoli_log.c
libecoli/ecoli_parse.c
libecoli/ecoli_parse.h

index e7577cd..aefba83 100644 (file)
@@ -95,6 +95,7 @@ ec_log_type_register(const char *name)
        if (id >= 0)
                return id;
 
+       // XXX not that good to allocate in constructor
        new_types = ec_realloc(log_types,
                sizeof(*new_types) * (log_types_len + 1));
        if (new_types == NULL)
index 917af3a..3d6be77 100644 (file)
@@ -91,6 +91,7 @@ int ec_node_parse_child(const struct ec_node *node, struct ec_parse *state,
        return __ec_node_parse_child(node, state, false, strvec);
 }
 
+// XXX what is returned if no match ??
 struct ec_parse *ec_node_parse_strvec(const struct ec_node *node,
                                const struct ec_strvec *strvec)
 {
index 9d6d5d5..a431ba2 100644 (file)
@@ -56,6 +56,7 @@ struct ec_parse *ec_parse_dup(const struct ec_parse *parse);
  *
  *
  */
+// _get_ XXX
 const struct ec_strvec *ec_parse_strvec(const struct ec_parse *parse);
 
 /* a NULL return value is an error, with errno set