cpitf.c, sharedspice.c, add debug output by defining OUTDEBUG preprocessor flag
This commit is contained in:
parent
9f8c168281
commit
d4d37cf323
|
|
@ -269,6 +269,9 @@ ft_cpinit(void)
|
||||||
/* jump over leading spaces */
|
/* jump over leading spaces */
|
||||||
for (copys = s = cp_tildexpand(Lib_Path); copys && *copys; ) {
|
for (copys = s = cp_tildexpand(Lib_Path); copys && *copys; ) {
|
||||||
s = skip_ws(s);
|
s = skip_ws(s);
|
||||||
|
#ifdef OUTDEBUG
|
||||||
|
printf("cpitf.c, spinit path is %s\n", s);
|
||||||
|
#endif
|
||||||
/* copy s into buf until space is seen, r is the actual position */
|
/* copy s into buf until space is seen, r is the actual position */
|
||||||
for (r = buf; *s && !isspace_c(*s); r++, s++)
|
for (r = buf; *s && !isspace_c(*s); r++, s++)
|
||||||
*r = *s;
|
*r = *s;
|
||||||
|
|
|
||||||
|
|
@ -1177,6 +1177,13 @@ sh_fputsll(const char *input, FILE* outf)
|
||||||
if (noprintfwanted)
|
if (noprintfwanted)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
#ifdef OUTDEBUG
|
||||||
|
/* debug: print into file */
|
||||||
|
FILE *fd = fopen("ng-string-out.txt", "a");
|
||||||
|
fprintf(fd, "%s", input);
|
||||||
|
fclose(fd);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (outf == stderr) {
|
if (outf == stderr) {
|
||||||
if (!outstringerr)
|
if (!outstringerr)
|
||||||
delstring = outstringerr = copy(input);
|
delstring = outstringerr = copy(input);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue