From 444745f71ef72d973094df036c1ad0d50003c7ee Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Mon, 15 Apr 2013 19:16:55 +0200 Subject: [PATCH] Added new macro for reading last character of vString. Import of CTags revision 719. --- tagmanager/ctags/vstring.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tagmanager/ctags/vstring.h b/tagmanager/ctags/vstring.h index b88b511b..23ff123b 100644 --- a/tagmanager/ctags/vstring.h +++ b/tagmanager/ctags/vstring.h @@ -33,6 +33,7 @@ #define vStringValue(vs) ((vs)->buffer) #define vStringItem(vs,i) ((vs)->buffer[i]) +#define vStringLast(vs) ((vs)->buffer[(vs)->length - 1]) #define vStringLength(vs) ((vs)->length) #define vStringSize(vs) ((vs)->size) #define vStringCat(vs,s) vStringCatS((vs), vStringValue((s)))