htext 10037 src/simh/scp.c UNIT *uptr, const char *htext, va_list ap) htext 10058 src/simh/scp.c astrings[asnum++] = (char *) htext; htext 10060 src/simh/scp.c for (hblock = astrings; (htext = *hblock) != NULL; hblock++) { htext 10063 src/simh/scp.c while (*htext) { htext 10067 src/simh/scp.c if (sim_isspace (*htext) || *htext == '+') {/* Topic text, indented topic text */ htext 10069 src/simh/scp.c while (*htext && *htext != '\n') htext 10070 src/simh/scp.c htext++; htext 10071 src/simh/scp.c if (*htext) htext 10072 src/simh/scp.c ++htext; htext 10077 src/simh/scp.c if (*htext == '+') { /* More for each + */ htext 10078 src/simh/scp.c while (*htext == '+') { htext 10081 src/simh/scp.c htext++; htext 10084 src/simh/scp.c while (*htext && *htext != '\n' && sim_isspace (*htext)) htext 10085 src/simh/scp.c htext++; htext 10086 src/simh/scp.c if (!*htext) /* Empty after removing leading spaces */ htext 10088 src/simh/scp.c start = htext; htext 10089 src/simh/scp.c while (*htext) { /* Process line for substitutions */ htext 10090 src/simh/scp.c if (*htext == '%') { htext 10091 src/simh/scp.c appendText (topic, start, htext - start); /* Flush up to escape */ htext 10092 src/simh/scp.c switch (*++htext) { /* Evaluate escape */ htext 10115 src/simh/scp.c if (sim_isdigit (*htext)) { htext 10117 src/simh/scp.c while (sim_isdigit (*htext)) htext 10118 src/simh/scp.c n += (n * 10) + (*htext++ - '0'); htext 10119 src/simh/scp.c if (( *htext != 'H' && *htext != 's') || htext 10122 src/simh/scp.c FAIL (SCPE_ARG, Invalid escape, htext); htext 10128 src/simh/scp.c if (*htext == 'H') { /* Append as more input */ htext 10131 src/simh/scp.c FAIL (SCPE_ARG, Too many blocks, htext); htext 10156 src/simh/scp.c FAIL (SCPE_ARG, Invalid escape, htext); htext 10159 src/simh/scp.c start = ++htext; htext 10162 src/simh/scp.c if (*htext == '\n') { /* End of line, append last segment */ htext 10163 src/simh/scp.c htext++; htext 10164 src/simh/scp.c appendText (topic, start, htext - start); htext 10167 src/simh/scp.c htext++; /* Regular character */ htext 10171 src/simh/scp.c if (sim_isdigit (*htext)) { /* Topic heading */ htext 10177 src/simh/scp.c start = htext; htext 10178 src/simh/scp.c while (sim_isdigit (*htext)) htext 10179 src/simh/scp.c n += (n * 10) + (*htext++ - '0'); htext 10180 src/simh/scp.c if ((htext == start) || !n) { htext 10182 src/simh/scp.c FAIL (SCPE_ARG, Invalid topic heading, htext); htext 10192 src/simh/scp.c FAIL (SCPE_ARG, Level not contiguous, htext); /* E.g. 1 3, not reasonable */ htext 10196 src/simh/scp.c while (*htext && (*htext != '\n') && sim_isspace (*htext)) htext 10197 src/simh/scp.c htext++; htext 10198 src/simh/scp.c if (!*htext || (*htext == '\n')) { /* Name missing */ htext 10200 src/simh/scp.c FAIL (SCPE_ARG, Missing topic name, htext); htext 10203 src/simh/scp.c start = htext; htext 10204 src/simh/scp.c while (*htext && (*htext != '\n')) htext 10205 src/simh/scp.c htext++; htext 10206 src/simh/scp.c if (start == htext) { /* Name NULL */ htext 10208 src/simh/scp.c FAIL (SCPE_ARG, Null topic name, htext); htext 10227 src/simh/scp.c if (*htext) htext 10228 src/simh/scp.c htext++; htext 10238 src/simh/scp.c newt->title = (char *) malloc ((htext - start)+1); htext 10245 src/simh/scp.c memcpy (newt->title, start, htext - start); htext 10246 src/simh/scp.c newt->title[htext - start] = '\0'; htext 10247 src/simh/scp.c if (*htext) htext 10248 src/simh/scp.c htext++; htext 10284 src/simh/scp.c if (*htext == ';') { /* Comment */ htext 10285 src/simh/scp.c while (*htext && *htext != '\n') htext 10286 src/simh/scp.c htext++; htext 10290 src/simh/scp.c FAIL (SCPE_ARG, Unknown line type, htext); /* Unknown line */