|
|
@ -456,6 +456,8 @@ prompt(void) |
|
|
s = "-> "; |
|
|
s = "-> "; |
|
|
|
|
|
|
|
|
while (*s) { |
|
|
while (*s) { |
|
|
|
|
|
/* NOTE: The FALLTHROUGH comment is used to suppress a GCC warning |
|
|
|
|
|
* when flag -Wimplicit-fallthrough is present */ |
|
|
switch (*s) { |
|
|
switch (*s) { |
|
|
case '!': |
|
|
case '!': |
|
|
fprintf(cp_out, "%d", cp_event); |
|
|
fprintf(cp_out, "%d", cp_event); |
|
|
@ -463,6 +465,7 @@ prompt(void) |
|
|
case '\\': |
|
|
case '\\': |
|
|
if (s[1]) |
|
|
if (s[1]) |
|
|
(void) putc((*++s), cp_out); |
|
|
(void) putc((*++s), cp_out); |
|
|
|
|
|
/* FALLTHROUGH */ |
|
|
default: |
|
|
default: |
|
|
(void) putc((*s), cp_out); |
|
|
(void) putc((*s), cp_out); |
|
|
} |
|
|
} |
|
|
|