summaryrefslogtreecommitdiffhomepage
path: root/include/stc/csview.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stc/csview.h')
-rw-r--r--include/stc/csview.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/csview.h b/include/stc/csview.h
index 2be30cb0..3d8bd044 100644
--- a/include/stc/csview.h
+++ b/include/stc/csview.h
@@ -28,12 +28,12 @@
#include "utf8.h"
#define csview_null c_sv("")
-#define csview_new(literal) c_sv(literal)
#define csview_npos (SIZE_MAX >> 1)
#define csview_init() csview_null
#define csview_drop c_default_drop
#define csview_clone c_default_clone
+#define csview_from_n c_sv
STC_INLINE csview csview_from(const char* str)
{ return c_make(csview){str, strlen(str)}; }