~ubuntu-branches/debian/sid/x11-apps/sid

« back to all changes in this revision

Viewing changes to xedit/ispell.c

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2015-04-30 23:57:18 UTC
  • Revision ID: package-import@ubuntu.com-20150430235718-gm4akh8letheag2v
Tags: 7.7+5
* bitmap 1.0.8.
* x11perf 1.6.0.
* xcalc 1.0.6.
* xditview 1.0.4.
* xedit 1.2.2.
* xgc 1.0.5.
* xmag 1.0.6.
* xman 1.1.4.
* Remove cpp from Depends (closes: #778804).
* Bump debhelper compat level to 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
static void RevertIspell(Widget, XtPointer, XtPointer);
182
182
static void SelectIspell(Widget, XtPointer, XtPointer);
183
183
static void ToggleTerseIspell(Widget, XtPointer, XtPointer);
184
 
#ifndef SIGNALRETURNSINT
185
184
static void timeout_signal(int);
186
185
static void (*old_timeout)(int);
187
 
#else
188
 
static int timeout_signal(int);
189
 
static int (*old_timeout)(int);
190
 
#endif
191
186
static void UndoIspell(Widget, XtPointer, XtPointer);
192
187
 
193
188
Bool _XawTextSrcUndo(TextSrcObject, XawTextPosition*);
312
307
#endif
313
308
 
314
309
/*ARGSUSED*/
315
 
#ifndef SIGNALRETURNSINT
316
310
static void
317
311
timeout_signal(int unused)
318
312
{
322
316
    kill(ispell.pid, SIGTERM);
323
317
    errno = olderrno;
324
318
}
325
 
#else
326
 
static int
327
 
timeout_signal(int unused)
328
 
{
329
 
    int olderrno = errno;
330
 
 
331
 
    WRITES("Warning: Timeout waiting ispell process to die.\n");
332
 
    kill(ispell.pid, SIGTERM);
333
 
    
334
 
    errno = olderrno;
335
 
    return (0);
336
 
}
337
 
#endif
338
319
 
339
320
static void
340
321
IspellSetSelection(XawTextPosition left, XawTextPosition right)