Просмотр исходного кода

ncd/modules/to_string.c: support non-ContinuousString strings

ambrop7 13 лет назад
Родитель
Сommit
ac23653034
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      ncd/modules/to_string.c

+ 2 - 1
ncd/modules/to_string.c

@@ -104,7 +104,8 @@ static struct NCDModule modules[] = {
         .func_new2 = func_new,
         .func_die = func_die,
         .func_getvar2 = func_getvar2,
-        .alloc_size = sizeof(struct instance)
+        .alloc_size = sizeof(struct instance),
+        .flags = NCDMODULE_FLAG_ACCEPT_NON_CONTINUOUS_STRINGS
     }, {
         .type = NULL
     }