Ver código fonte

ncd: static_strings, NCDStringIndex: add "size" string

ambrop7 13 anos atrás
pai
commit
70a773ab02
2 arquivos alterados com 4 adições e 2 exclusões
  1. 2 1
      ncd/NCDStringIndex.c
  2. 2 1
      ncd/static_strings.h

+ 2 - 1
ncd/NCDStringIndex.c

@@ -82,7 +82,8 @@ static const char *static_strings[] = {
     "not_eof",
     "not_eof",
     "length",
     "length",
     "type",
     "type",
-    "exit_status"
+    "exit_status",
+    "size"
 };
 };
 
 
 static NCD_string_id_t do_get (NCDStringIndex *o, const char *str, size_t str_len)
 static NCD_string_id_t do_get (NCDStringIndex *o, const char *str, size_t str_len)

+ 2 - 1
ncd/static_strings.h

@@ -63,7 +63,8 @@ enum {
     NCD_STRING_NOT_EOF,
     NCD_STRING_NOT_EOF,
     NCD_STRING_LENGTH,
     NCD_STRING_LENGTH,
     NCD_STRING_TYPE,
     NCD_STRING_TYPE,
-    NCD_STRING_EXIT_STATUS
+    NCD_STRING_EXIT_STATUS,
+    NCD_STRING_SIZE
 };
 };
 
 
 #endif
 #endif