Jspice3
mfbalu.c
Go to the documentation of this file.
1 /*************************************************************************
2  MFB graphics and miscellaneous library
3  Copyright (c) Stephen R. Whiteley 1992
4  Author: Stephen R. Whiteley
5  *************************************************************************/
6 
7 #include "mfb.h"
8 #include "mfbP.h"
9 
10 
11 /* ARGSUSED */
12 int
14 
15 /* always nondestructive */
16 Bool mode;
17 {
18  return (MFBOK);
19 }
20 
21 
22 int
24 
25 int mode;
26 {
27  switch (mode) {
28  case MFBALUJAM:
29  pc.alumode = 0x3;
30  break;
31  case MFBALUOR:
32  pc.alumode = 0x1003;
33  break;
34  case MFBALUNOR:
35  pc.alumode = 0x3;
36  break;
37  case MFBALUEOR:
38  pc.alumode = 0x1803;
39  break;
40  case MFBALUAND:
41  pc.alumode = 0x803;
42  break;
43  default:
44  return (MFBBADALU);
45  }
46  return (MFBOK);
47 }
#define MFBALUEOR
Definition: mfb.h:448
int MFBSetTextMode(Bool mode)
Definition: mfbalu.c:13
#define MFBOK
Definition: mfb.h:491
#define MFBALUJAM
Definition: mfb.h:445
#define MFBALUNOR
Definition: mfb.h:447
Bool
Definition: mfb.h:18
#define MFBBADALU
Definition: mfb.h:516
int alumode
Definition: mfbp.h:56
int MFBSetALUMode(int mode)
Definition: mfbalu.c:23
#define MFBALUOR
Definition: mfb.h:446
struct mfbpc pc
Definition: mfbopen.c:14