return ret;
}
+#else /* ! (HAVE_LIBTERMCAP || HAVE_NCURSES) */
+
+static void
+my_putstring(char *s) {
+ fputs(s, stdout);
+}
+
#endif
+
+
const char *term="";
const char *Senter="", *Sexit="";/* enter and exit standout mode */
int Slen; /* strlen of Senter+Sexit */
do_monthly(day, month, year, &out);
for (i = 0; i < FMT_ST_LINES; i++) {
-#if defined(HAVE_NCURSES) || defined(HAVE_LIBTERMCAP)
- my_putstring(out.s[i]);putchar('\n');
-#else
- puts(out.s[i]);
-#endif
+ my_putstring(out.s[i]);
+ putchar('\n');
}
}
w2, out_curm.s[i],
w3, out_next.s[i]);
-#if defined(HAVE_NCURSES) || defined(HAVE_LIBTERMCAP)
my_putstring(lineout);
-#else
- fputs(lineout,stdout);
-#endif
}
}
}
*p = '\0';
trim_trailing_spaces(lineout);
-#if defined(HAVE_NCURSES) || defined(HAVE_LIBTERMCAP)
- my_putstring(lineout);putchar('\n');
-#else
- puts(lineout);
-#endif
+ my_putstring(lineout);
+ putchar('\n');
}
}
printf("\n");
}
*p = '\0';
trim_trailing_spaces(lineout);
-#if defined(HAVE_NCURSES) || defined(HAVE_LIBTERMCAP)
- my_putstring(lineout);putchar('\n');
-#else
- puts(lineout);
-#endif
+ my_putstring(lineout);
+ putchar('\n');
}
}
- printf("\n");
+ putchar('\n');
}
/*