فهرست منبع

ncd: static_strings, NCDStringIndex: add a few more strings

ambrop7 13 سال پیش
والد
کامیت
093757350c
2فایلهای تغییر یافته به همراه16 افزوده شده و 2 حذف شده
  1. 8 1
      ncd/NCDStringIndex.c
  2. 8 1
      ncd/static_strings.h

+ 8 - 1
ncd/NCDStringIndex.c

@@ -75,7 +75,14 @@ static const char *static_strings[] = {
     "_arg19",
     "true",
     "false",
-    "<none>"
+    "<none>",
+    "_caller",
+    "succeeded",
+    "is_error",
+    "not_eof",
+    "length",
+    "type",
+    "exit_status"
 };
 
 static NCD_string_id_t do_get (NCDStringIndex *o, const char *str, size_t str_len)

+ 8 - 1
ncd/static_strings.h

@@ -56,7 +56,14 @@ enum {
     NCD_STRING_ARG19,
     NCD_STRING_TRUE,
     NCD_STRING_FALSE,
-    NCD_STRING_NONE
+    NCD_STRING_NONE,
+    NCD_STRING_CALLER,
+    NCD_STRING_SUCCEEDED,
+    NCD_STRING_IS_ERROR,
+    NCD_STRING_NOT_EOF,
+    NCD_STRING_LENGTH,
+    NCD_STRING_TYPE,
+    NCD_STRING_EXIT_STATUS
 };
 
 #endif