diff -r 1be8ea902ef4 -r ec6e97454e64 src/javacodegen.c
--- a/src/javacodegen.c Sat Apr 25 19:01:16 2015 +0200
+++ b/src/javacodegen.c Sat Apr 25 19:14:57 2015 +0200
@@ -49,6 +49,9 @@
return word[0] == '@';
}
+#define memcpy_const(darr,doff,str) memcpy(&(darr[doff]), str, sizeof(str)-1); \
+ dp += sizeof(str)-1
+
void jparseline(char *src, char *dest, highlighter_t *hltr) {
size_t sp = 0, dp = 0;
/* indent */
@@ -64,8 +67,7 @@
if (hltr->iscommentml) {
iscomment = 1;
- memcpy(&(dest[dp]), "");
continue;
} else if (!iscomment && (src[sp+1] == '/' || src[sp+1] == '*')) {
iscomment = 1;
hltr->iscommentml = (src[sp+1] == '*');
- memcpy(&(dest[dp]), "