@@ -29,18 +29,18 @@ int help(int f, int n)
29
29
fname = flook (pathname [1 ], FALSE);
30
30
if (fname == NULL ) {
31
31
mlwrite ("(Help file is not online)" );
32
- return ( FALSE) ;
32
+ return FALSE;
33
33
}
34
34
}
35
35
36
36
/* split the current window to make room for the help stuff */
37
37
if (splitwind (FALSE, 1 ) == FALSE)
38
- return ( FALSE) ;
38
+ return FALSE;
39
39
40
40
if (bp == NULL ) {
41
41
/* and read the stuff in */
42
42
if (getfile (fname , FALSE) == FALSE)
43
- return ( FALSE) ;
43
+ return FALSE;
44
44
} else
45
45
swbuffer (bp );
46
46
@@ -52,7 +52,7 @@ int help(int f, int n)
52
52
wp -> w_flag |= WFMODE ;
53
53
wp = wp -> w_wndp ;
54
54
}
55
- return ( TRUE) ;
55
+ return TRUE;
56
56
}
57
57
58
58
int deskey (int f , int n )
@@ -78,7 +78,7 @@ int deskey(int f, int n)
78
78
79
79
/* output the command sequence */
80
80
ostring (ptr );
81
- return ( TRUE) ;
81
+ return TRUE;
82
82
}
83
83
84
84
/*
@@ -102,7 +102,7 @@ int bindtokey(int f, int n)
102
102
kfunc = getname ();
103
103
if (kfunc == NULL ) {
104
104
mlwrite ("(No such function)" );
105
- return ( FALSE) ;
105
+ return FALSE;
106
106
}
107
107
ostring (" " );
108
108
@@ -157,7 +157,7 @@ int bindtokey(int f, int n)
157
157
/* if we run out of binding room, bitch */
158
158
if (ktp >= & keytab [NBINDS ]) {
159
159
mlwrite ("Binding table FULL!" );
160
- return ( FALSE) ;
160
+ return FALSE;
161
161
}
162
162
163
163
ktp -> k_code = c ; /* add keycode */
@@ -166,7 +166,7 @@ int bindtokey(int f, int n)
166
166
ktp -> k_code = 0 ;
167
167
ktp -> k_fp = NULL ;
168
168
}
169
- return ( TRUE) ;
169
+ return TRUE;
170
170
}
171
171
172
172
/*
@@ -195,9 +195,9 @@ int unbindkey(int f, int n)
195
195
/* if it isn't bound, bitch */
196
196
if (unbindchar (c ) == FALSE) {
197
197
mlwrite ("(Key not bound)" );
198
- return ( FALSE) ;
198
+ return FALSE;
199
199
}
200
- return ( TRUE) ;
200
+ return TRUE;
201
201
}
202
202
203
203
@@ -225,7 +225,7 @@ int unbindchar(int c)
225
225
226
226
/* if it isn't bound, bitch */
227
227
if (!found )
228
- return ( FALSE) ;
228
+ return FALSE;
229
229
230
230
/* save the pointer and scan to the end of the table */
231
231
sktp = ktp ;
@@ -240,7 +240,7 @@ int unbindchar(int c)
240
240
/* null out the last one */
241
241
ktp -> k_code = 0 ;
242
242
ktp -> k_fp = NULL ;
243
- return ( TRUE) ;
243
+ return TRUE;
244
244
}
245
245
246
246
/* describe bindings
@@ -251,7 +251,7 @@ int desbind(int f, int n)
251
251
#if APROP
252
252
{
253
253
buildlist (TRUE, "" );
254
- return ( TRUE) ;
254
+ return TRUE;
255
255
}
256
256
257
257
int apro (int f , int n )
@@ -261,9 +261,9 @@ int apro(int f, int n)
261
261
262
262
status = mlreply ("Apropos string: " , mstring , NSTRING - 1 );
263
263
if (status != TRUE)
264
- return ( status ) ;
264
+ return status ;
265
265
266
- return ( buildlist (FALSE, mstring ) );
266
+ return buildlist (FALSE, mstring );
267
267
}
268
268
269
269
/*
@@ -284,13 +284,13 @@ int buildlist(int type, char *mstring)
284
284
285
285
/* split the current window to make room for the binding list */
286
286
if (splitwind (FALSE, 1 ) == FALSE)
287
- return ( FALSE) ;
287
+ return FALSE;
288
288
289
289
/* and get a buffer for it */
290
290
bp = bfind ("*Binding list*" , TRUE, 0 );
291
291
if (bp == NULL || bclear (bp ) == FALSE) {
292
292
mlwrite ("Can not display binding list" );
293
- return ( FALSE) ;
293
+ return FALSE;
294
294
}
295
295
296
296
/* let us know this is in progress */
@@ -346,7 +346,7 @@ int buildlist(int type, char *mstring)
346
346
347
347
/* and add it as a line into the buffer */
348
348
if (linstr (outseq ) != TRUE)
349
- return ( FALSE) ;
349
+ return FALSE;
350
350
351
351
cpos = 0 ; /* and clear the line */
352
352
}
@@ -358,7 +358,7 @@ int buildlist(int type, char *mstring)
358
358
outseq [cpos ++ ] = '\n' ;
359
359
outseq [cpos ] = 0 ;
360
360
if (linstr (outseq ) != TRUE)
361
- return ( FALSE) ;
361
+ return FALSE;
362
362
}
363
363
364
364
fail : /* and on to the next name */
@@ -375,7 +375,7 @@ int buildlist(int type, char *mstring)
375
375
wp = wp -> w_wndp ;
376
376
}
377
377
mlwrite ("" ); /* clear the mode line */
378
- return ( TRUE) ;
378
+ return TRUE;
379
379
}
380
380
381
381
#if APROP
@@ -408,12 +408,12 @@ int strinc(char *source, char *sub)
408
408
409
409
/* yes, return a success */
410
410
if (* tp == 0 )
411
- return ( TRUE) ;
411
+ return TRUE;
412
412
413
413
/* no, onward */
414
414
sp ++ ;
415
415
}
416
- return ( FALSE) ;
416
+ return FALSE;
417
417
}
418
418
#endif
419
419
@@ -430,15 +430,15 @@ unsigned int getckey(int mflag)
430
430
/* check to see if we are executing a command line */
431
431
if (clexec ) {
432
432
macarg (tok ); /* get the next token */
433
- return ( stock (tok ) );
433
+ return stock (tok );
434
434
}
435
435
436
436
/* or the normal way */
437
437
if (mflag )
438
438
c = get1key ();
439
439
else
440
440
c = getcmd ();
441
- return ( c ) ;
441
+ return c ;
442
442
}
443
443
444
444
/*
@@ -458,10 +458,10 @@ int startup(char *sfname)
458
458
459
459
/* if it isn't around, don't sweat it */
460
460
if (fname == NULL )
461
- return ( TRUE) ;
461
+ return TRUE;
462
462
463
463
/* otherwise, execute the sucker */
464
- return ( dofile (fname ) );
464
+ return dofile (fname );
465
465
}
466
466
467
467
/*
@@ -493,7 +493,7 @@ char *flook(char *fname, int hflag)
493
493
/* and try it out */
494
494
if (ffropen (fspec ) == FIOSUC ) {
495
495
ffclose ();
496
- return ( fspec ) ;
496
+ return fspec ;
497
497
}
498
498
}
499
499
}
@@ -502,7 +502,7 @@ char *flook(char *fname, int hflag)
502
502
/* always try the current directory first */
503
503
if (ffropen (fname ) == FIOSUC ) {
504
504
ffclose ();
505
- return ( fname ) ;
505
+ return fname ;
506
506
}
507
507
#if ENVFUNC
508
508
/* get the PATH variable */
@@ -524,7 +524,7 @@ char *flook(char *fname, int hflag)
524
524
/* and try it out */
525
525
if (ffropen (fspec ) == FIOSUC ) {
526
526
ffclose ();
527
- return ( fspec ) ;
527
+ return fspec ;
528
528
}
529
529
530
530
if (* path == PATHCHR )
@@ -540,11 +540,11 @@ char *flook(char *fname, int hflag)
540
540
/* and try it out */
541
541
if (ffropen (fspec ) == FIOSUC ) {
542
542
ffclose ();
543
- return ( fspec ) ;
543
+ return fspec ;
544
544
}
545
545
}
546
546
547
- return ( NULL ) ; /* no such luck */
547
+ return NULL ; /* no such luck */
548
548
}
549
549
550
550
/*
@@ -601,12 +601,12 @@ int (*getbind(int c))(int, int)
601
601
ktp = & keytab [0 ]; /* Look in key table. */
602
602
while (ktp -> k_fp != NULL ) {
603
603
if (ktp -> k_code == c )
604
- return ( ktp -> k_fp ) ;
604
+ return ktp -> k_fp ;
605
605
++ ktp ;
606
606
}
607
607
608
608
/* no such binding */
609
- return ( NULL ) ;
609
+ return NULL ;
610
610
}
611
611
612
612
/*
@@ -622,10 +622,10 @@ char *getfname(fn_t func)
622
622
nptr = & names [0 ];
623
623
while (nptr -> n_func != NULL ) {
624
624
if (nptr -> n_func == func )
625
- return ( nptr -> n_name ) ;
625
+ return nptr -> n_name ;
626
626
++ nptr ;
627
627
}
628
- return ( NULL ) ;
628
+ return NULL ;
629
629
}
630
630
631
631
/*
@@ -642,10 +642,10 @@ int (*fncmatch(char *fname)) (int, int)
642
642
ffp = & names [0 ];
643
643
while (ffp -> n_func != NULL ) {
644
644
if (strcmp (fname , ffp -> n_name ) == 0 )
645
- return ( ffp -> n_func ) ;
645
+ return ffp -> n_func ;
646
646
++ ffp ;
647
647
}
648
- return ( NULL ) ;
648
+ return NULL ;
649
649
}
650
650
651
651
/*
@@ -696,7 +696,7 @@ unsigned int stock(char *keyname)
696
696
697
697
/* the final sequence... */
698
698
c |= * keyname ;
699
- return ( c ) ;
699
+ return c ;
700
700
}
701
701
702
702
/*
@@ -712,5 +712,5 @@ char *transbind(char *skey)
712
712
if (bindname == NULL )
713
713
bindname = "ERROR" ;
714
714
715
- return ( bindname ) ;
715
+ return bindname ;
716
716
}
0 commit comments