comparison intercom/gsm/gsm_opti.c @ 2:13be24d74cd2

import intercom-0.4.1
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 09:57:52 +0200
parents
children
comparison
equal deleted inserted replaced
1:9cadc470e3da 2:13be24d74cd2
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 }

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.