* Copyright (c) 1988 Regents of the University of California.
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Berkeley. The name of the
* University may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
static char sccsid
[] = "@(#)options.c 4.1 (Berkeley) %G%";
* this file contains the definitions, initialization, and processing of
* commands to handle the various local options (APL ON, etc.)
#include "../general/globals.h"
OptNullProcessing
= 1; /* improved null processing */
OptZonesMode
= 0; /* zones mode off */
OptEnterNL
= 0; /* regular enter/new line keys */
OptColFieldTab
= 0; /* regular column/field tab keys */
OptPacing
= 1; /* do pacing */
OptAlphaInNumeric
= 0; /* allow alpha in numeric fields */
for (i
= 0; i
< sizeof OptColTabs
; i
++) {
OptColTabs
[i
] = ((i
%8) == 0); /* every 8 columns */
OptOrder(pointer
, count
, control
)
int i
, j
, character
, origCount
;
character
= *pointer
&0xff;
if (!control
&& count
< 30) {
return(0); /* want more! */
for (i
= 0; i
< sizeof OptColTabs
; i
++) {
j
= (*pointer
&0xff)-0x40;
j
= (*pointer
&0xff)-0x40;
j
= (*pointer
&0xff)-0x40;
if (j
< 0 || j
>= sizeof OptColTabs
) {
return(origCount
- count
);