#include <fcntl.h>
#include <cstdio>
-// FIXME: do we need any of this horrible gook ?
+// FIXME: do we need any of this horrible gook ?
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <ctime>
int * in, int * out)
: params(p), lang(l), pipein(in), pipeout(out) {}
///
- virtual ForkedProcess * clone() const {
+ virtual ForkedProcess * clone() const {
return new LaunchIspell(*this);
}
///
int LaunchIspell::generateChild()
-{
+{
isp_pid = fork();
if (isp_pid != 0) {
string("-w").copy(tmp, 2); tmp[2] = '\0';
argv[argc++] = tmp;
// Put the escape chars in ""s
- string tms = "\"" + lyxrc.isp_esc_chars + "\"";
+ string tms = '"' + lyxrc.isp_esc_chars + '"';
tmp = new char[tms.length() + 1];
tms.copy(tmp, tms.length()); tmp[tms.length()] = '\0';
argv[argc++] = tmp;
// Actually I used it to tell if it's truly Ispell or if it's
// aspell -- (kevinatk@home.com)
// But no code actually used the results for anything useful
- // so I removed it again. Perhaps we can remove this code too.
+ // so I removed it again. Perhaps we can remove this code too.
// - jbl
char buf[2048];
fd_set infds;
// FIXME Please rewrite to use string.
Result res;
-
+
::fputs(word.word().c_str(), out);
::fputc('\n', out);