trying to fix vs2012 and vs2010 builds
This commit is contained in:
committed by
Andrew Johnson
parent
a2be1c4f4f
commit
b8e70783d8
@@ -63,6 +63,7 @@ epicsReadline (const char *prompt, void *context)
|
||||
int c; /* char is unsigned on some archs, EOF is -ve */
|
||||
int linelen = 0;
|
||||
int linesize = 50;
|
||||
int backslash_seen = 0;
|
||||
|
||||
if (rc->osd)
|
||||
return osdReadline(prompt, rc);
|
||||
@@ -81,7 +82,6 @@ epicsReadline (const char *prompt, void *context)
|
||||
printf("Out of memory!\n");
|
||||
return NULL;
|
||||
}
|
||||
int backslash_seen = 0;
|
||||
do {
|
||||
c = getc(in);
|
||||
if (c == EOF) {
|
||||
|
||||
@@ -74,6 +74,7 @@ osdReadline (const char *prompt, struct readlineContext *context)
|
||||
int c; /* char is unsigned on some archs; EOF is -ve */
|
||||
int linelen = 0;
|
||||
int linesize = 50;
|
||||
int backslash_seen = 0;
|
||||
|
||||
line = malloc(linesize);
|
||||
if (line == NULL) {
|
||||
@@ -84,7 +85,6 @@ osdReadline (const char *prompt, struct readlineContext *context)
|
||||
fputs(prompt, stdout);
|
||||
fflush(stdout);
|
||||
}
|
||||
int backslash_seen = 0;
|
||||
do {
|
||||
c = getc(context->in);
|
||||
if (c == EOF) {
|
||||
|
||||
Reference in New Issue
Block a user