2
|
1 /*
|
|
2 * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
|
|
3 * Universitaet Berlin. See the accompanying file "COPYRIGHT" for
|
|
4 * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
|
|
5 */
|
|
6
|
|
7 /* $Header: /home/kbs/jutta/src/gsm/gsm-1.0/src/RCS/gsm_option.c,v 1.1 1992/10/28 00:15:50 jutta Exp $ */
|
|
8
|
|
9 #include "private.h"
|
|
10
|
|
11 #include "gsm.h"
|
|
12 #include "proto.h"
|
|
13
|
|
14 int gsm_option P3((r, opt, val), gsm r, int opt, int *val)
|
|
15 {
|
|
16 int result = -1;
|
|
17
|
|
18 switch (opt) {
|
|
19 case GSM_OPT_VERBOSE:
|
|
20 #ifndef NDEBUG
|
|
21 result = r->verbose;
|
|
22 if (val)
|
|
23 r->verbose = *val;
|
|
24 #endif
|
|
25 break;
|
|
26
|
|
27 case GSM_OPT_FAST:
|
|
28
|
|
29 #if defined(FAST) && defined(USE_FLOAT_MUL)
|
|
30 result = r->fast;
|
|
31 if (val)
|
|
32 r->fast = !!*val;
|
|
33 #endif
|
|
34 break;
|
|
35
|
|
36 default:
|
|
37 break;
|
|
38 }
|
|
39 return result;
|
|
40 }
|