src/javacodegen.c

changeset 36
be60c22cddfe
parent 35
abaf2489c549
child 39
ac35daceb24c
     1.1 --- a/src/javacodegen.c	Fri Mar 04 14:48:28 2016 +0100
     1.2 +++ b/src/javacodegen.c	Fri Mar 04 15:02:22 2016 +0100
     1.3 @@ -41,11 +41,11 @@
     1.4      "volatile", "const", "float", "native", "super", "while", NULL
     1.5  };
     1.6  
     1.7 -int isjtype(char *word, size_t len) {
     1.8 +int check_jtype(char *word, size_t len) {
     1.9      return isupper(word[0]);
    1.10  }
    1.11  
    1.12 -int isjdirective(char *word) {
    1.13 +int check_jdirective(char *word) {
    1.14      return word[0] == '@';
    1.15  }
    1.16  
    1.17 @@ -112,7 +112,7 @@
    1.18                      /* interpret word int_t */
    1.19                      if (wp > 0 && wp < WORDBUF_SIZE) {
    1.20                          int closespan = 1;
    1.21 -                        if (iskeyword(hltr->word, hltr->keywords)) {
    1.22 +                        if (check_keyword(hltr->word, hltr->keywords)) {
    1.23                              memcpy_const(dest, dp, 
    1.24                                  "<span class=\"c2html-keyword\">");
    1.25                          } else if (hltr->istype(hltr->word, wp)) {
    1.26 @@ -121,7 +121,7 @@
    1.27                          } else if (hltr->isdirective(hltr->word)) {
    1.28                              memcpy_const(dest, dp, 
    1.29                                  "<span class=\"c2html-directive\">");
    1.30 -                        } else if (iscapsonly(hltr->word, wp)) {
    1.31 +                        } else if (check_capsonly(hltr->word, wp)) {
    1.32                              memcpy_const(dest, dp, 
    1.33                                  "<span class=\"c2html-macroconst\">");
    1.34                          } else {

mercurial