src/javacodegen.c

Tue, 23 Aug 2016 14:24:57 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 23 Aug 2016 14:24:57 +0200
changeset 42
7f2403c637a7
parent 39
ac35daceb24c
child 45
1f3835182aeb
permissions
-rw-r--r--

replaces custom copyfile() function with ucx_stream_copy calls

21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 /*
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 *
35
abaf2489c549 adjusted copyright info
Mike Becker <universe@uap-core.de>
parents: 32
diff changeset
4 * Copyright 2016 Mike Becker. All rights reserved.
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 *
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 * Redistribution and use in source and binary forms, with or without
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 * modification, are permitted provided that the following conditions are met:
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 *
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 * 1. Redistributions of source code must retain the above copyright
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 * notice, this list of conditions and the following disclaimer.
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 *
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 * 2. Redistributions in binary form must reproduce the above copyright
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 * notice, this list of conditions and the following disclaimer in the
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 * documentation and/or other materials provided with the distribution.
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 *
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 * POSSIBILITY OF SUCH DAMAGE.
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 *
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 */
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 #include "javacodegen.h"
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 #include <string.h>
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 #include <ctype.h>
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 const char* jkeywords[] = {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 "abstract", "continue", "for", "new", "switch", "assert", "default", "goto",
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36 "package", "synchronized", "boolean", "do", "if", "private", "this",
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 "break", "double", "implements", "protected", "throw", "byte", "else",
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 "import", "public", "throws", "case", "enum", "instanceof", "return",
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39 "transient", "catch", "extends", "int", "short", "try", "char", "final",
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 "interface", "static", "void", "class", "finally", "long", "strictfp",
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 "volatile", "const", "float", "native", "super", "while", NULL
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 };
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43
36
be60c22cddfe fixed possible naming conflicts with is.* functions
Mike Becker <universe@uap-core.de>
parents: 35
diff changeset
44 int check_jtype(char *word, size_t len) {
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45 return isupper(word[0]);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
47
36
be60c22cddfe fixed possible naming conflicts with is.* functions
Mike Becker <universe@uap-core.de>
parents: 35
diff changeset
48 int check_jdirective(char *word) {
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49 return word[0] == '@';
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
52 #define memcpy_const(darr,doff,str) memcpy(&(darr[doff]), str, sizeof(str)-1); \
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
53 dp += sizeof(str)-1
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
54
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
55 void jparseline(char *src, char *dest, highlighter_t *hltr) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
56 memset(hltr->word, 0, WORDBUF_SIZE);
39
ac35daceb24c adds UCX + changes how the input file is read (uses an consecutive memory area now)
Mike Becker <universe@uap-core.de>
parents: 36
diff changeset
57 size_t wp = 0, sp = (size_t)-1, dp = 0;
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
58 int isstring = 0, iscomment = 0, isimport = 0;
28
1be8ea902ef4 fixed string highlighting when different quote symbol is in string
Mike Becker <universe@uap-core.de>
parents: 26
diff changeset
59 char quote = '\0';
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
60 int isescaping = 0;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
61
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
62 if (hltr->iscommentml) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63 iscomment = 1;
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
64 memcpy_const(dest, dp, "<span class=\"c2html-comment\">");
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
65 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
66
39
ac35daceb24c adds UCX + changes how the input file is read (uses an consecutive memory area now)
Mike Becker <universe@uap-core.de>
parents: 36
diff changeset
67 char c;
ac35daceb24c adds UCX + changes how the input file is read (uses an consecutive memory area now)
Mike Becker <universe@uap-core.de>
parents: 36
diff changeset
68 do {
ac35daceb24c adds UCX + changes how the input file is read (uses an consecutive memory area now)
Mike Becker <universe@uap-core.de>
parents: 36
diff changeset
69 c = src[++sp];
ac35daceb24c adds UCX + changes how the input file is read (uses an consecutive memory area now)
Mike Becker <universe@uap-core.de>
parents: 36
diff changeset
70 if (!c) break;
ac35daceb24c adds UCX + changes how the input file is read (uses an consecutive memory area now)
Mike Becker <universe@uap-core.de>
parents: 36
diff changeset
71
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
72 /* comments */
26
05c3c6842aef fixed wrong comment formatting in strings
Mike Becker <universe@uap-core.de>
parents: 24
diff changeset
73 if (!isstring && c == '/') {
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
74 if (hltr->iscommentml && sp > 0 && src[sp-1] == '*') {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
75 iscomment = 0;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
76 hltr->iscommentml = 0;
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
77 memcpy_const(dest, dp, "/</span>");
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
78 continue;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
79 } else if (!iscomment && (src[sp+1] == '/' || src[sp+1] == '*')) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
80 iscomment = 1;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
81 hltr->iscommentml = (src[sp+1] == '*');
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
82 memcpy_const(dest, dp, "<span class=\"c2html-comment\">");
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
83 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
84 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
85
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
86 if (iscomment) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
87 if (c == '\n') {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
88 memcpy(&(dest[dp]), "</span>", 7);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
89 dp += 7;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
90 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
91 dp = writeescapedchar(dest, dp, c);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
92 } else if (isimport) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
93 // TODO: local imports
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
94 } else {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
95 /* strings */
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
96 if (!isescaping && (c == '\'' || c == '\"')) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
97 if (isstring) {
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
98 dp = writeescapedchar(dest, dp, c);
28
1be8ea902ef4 fixed string highlighting when different quote symbol is in string
Mike Becker <universe@uap-core.de>
parents: 26
diff changeset
99 if (c == quote) {
1be8ea902ef4 fixed string highlighting when different quote symbol is in string
Mike Becker <universe@uap-core.de>
parents: 26
diff changeset
100 isstring = 0;
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
101 memcpy_const(dest, dp, "</span>");
28
1be8ea902ef4 fixed string highlighting when different quote symbol is in string
Mike Becker <universe@uap-core.de>
parents: 26
diff changeset
102 } else {
1be8ea902ef4 fixed string highlighting when different quote symbol is in string
Mike Becker <universe@uap-core.de>
parents: 26
diff changeset
103 dp = writeescapedchar(dest, dp, c);
1be8ea902ef4 fixed string highlighting when different quote symbol is in string
Mike Becker <universe@uap-core.de>
parents: 26
diff changeset
104 }
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
105 } else {
28
1be8ea902ef4 fixed string highlighting when different quote symbol is in string
Mike Becker <universe@uap-core.de>
parents: 26
diff changeset
106 isstring = 1;
1be8ea902ef4 fixed string highlighting when different quote symbol is in string
Mike Becker <universe@uap-core.de>
parents: 26
diff changeset
107 quote = c;
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
108 memcpy_const(dest, dp,
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
109 "<span class=\"c2html-string\">");
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
110 dp = writeescapedchar(dest, dp, c);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
111 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
112 } else {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
113 if (isstring) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
114 dp = writeescapedchar(dest, dp, c);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
115 } else if (!iswordcharacter(c)) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
116 /* interpret word int_t */
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
117 if (wp > 0 && wp < WORDBUF_SIZE) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
118 int closespan = 1;
36
be60c22cddfe fixed possible naming conflicts with is.* functions
Mike Becker <universe@uap-core.de>
parents: 35
diff changeset
119 if (check_keyword(hltr->word, hltr->keywords)) {
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
120 memcpy_const(dest, dp,
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
121 "<span class=\"c2html-keyword\">");
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
122 } else if (hltr->istype(hltr->word, wp)) {
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
123 memcpy_const(dest, dp,
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
124 "<span class=\"c2html-type\">");
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
125 } else if (hltr->isdirective(hltr->word)) {
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
126 memcpy_const(dest, dp,
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
127 "<span class=\"c2html-directive\">");
36
be60c22cddfe fixed possible naming conflicts with is.* functions
Mike Becker <universe@uap-core.de>
parents: 35
diff changeset
128 } else if (check_capsonly(hltr->word, wp)) {
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
129 memcpy_const(dest, dp,
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
130 "<span class=\"c2html-macroconst\">");
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
131 } else {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
132 closespan = 0;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
133 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
134 for (int i = 0 ; i < wp ; i++) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
135 dp = writeescapedchar(dest, dp, hltr->word[i]);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
136 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
137 if (closespan) {
29
ec6e97454e64 introduced macro for constant string memcpy + fixed string highlight fix
Mike Becker <universe@uap-core.de>
parents: 28
diff changeset
138 memcpy_const(dest, dp, "</span>");
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
139 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
140 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
141 memset(hltr->word, 0, WORDBUF_SIZE);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
142 wp = 0;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
143 dp = writeescapedchar(dest, dp, c);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
144 } else {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
145 /* read word */
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
146 if (wp < WORDBUF_SIZE) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
147 hltr->word[wp++] = c;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
148 } else if (wp == WORDBUF_SIZE) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
149 for (int i = 0 ; i < WORDBUF_SIZE ; i++) {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
150 dp = writeescapedchar(dest, dp, hltr->word[i]);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
151 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
152 wp++;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
153 dp = writeescapedchar(dest, dp, c);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
154 } else {
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
155 dp = writeescapedchar(dest, dp, c);
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
156 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
157 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
158 }
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
159
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
160 isescaping = !isescaping & (c == '\\');
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
161 }
39
ac35daceb24c adds UCX + changes how the input file is read (uses an consecutive memory area now)
Mike Becker <universe@uap-core.de>
parents: 36
diff changeset
162 } while (c != '\n');
21
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
163 dest[dp] = 0;
537aec525835 structured source code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
164 }

mercurial