~ubuntu-branches/ubuntu/quantal/zaptel/quantal

« back to all changes in this revision

Viewing changes to genconst.c

  • Committer: Bazaar Package Importer
  • Author(s): Tzafrir Cohen
  • Date: 2008-08-28 22:58:23 UTC
  • mfrom: (11.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080828225823-r8bdunirm8hmc76m
Tags: 1:1.4.11~dfsg-2
* Patch xpp_fxs_power: Fixed an issue with hook detection of the Astribank
  FXS module.
* Don't fail init.d script if fxotune fails. This may happen if running it
  when Asterisk is already running.
* Bump standards version to 3.8.0.0 .
* Ignore false lintian warning ("m-a a-i" has "a a").
* Patch xpp_fxo_cid_always: do always pass PCM if that's what the user
  asked.
* Patch vzaphfc_proc_root_dir: fix vzaphfc on 2.6.26.
* Patch wcte12xp_flags: Proper time for irq save flags.
* Patch headers_2627: Fix location of semaphore.h for 2.6.27 .
* Patch xpp_fxs_dtmf_leak: Don't play DTMFs to the wrong channel.
* Patch wctdm_fix_alarm: Fix sending channel alarms.
* Patch device_class_2626: Fix building 2.6.26 (Closes: #493397).
* Using dh_lintian for lintian overrides, hence requiring debhelper 6.0.7.
* Lintian: we know we have direct changes. Too bad we're half-upstream :-(
* Fix doc-base section names. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#define GEN_CONST
2
 
#include "mec-2.h"
3
 
#include <stdio.h>
4
 
 
5
 
int main()
6
 
{
7
 
        FILE *f;
8
 
        /* Initialize constants */
9
 
        ALPHA_ST = _ALPHA_ST;
10
 
        ALPHA_YT = _ALPHA_YT;
11
 
        SIGMA_LU = _SIGMA_LU;
12
 
        SIGMA_LY = _SIGMA_LY;
13
 
        DEFAULT_BETA1 = _DEFAULT_BETA1;
14
 
        MIN_BETA = _MIN_BETA;
15
 
        EC_MIN_VALUE = _EC_MIN_VALUE;
16
 
        CUTOFF = _CUTOFF;
17
 
 
18
 
        f = fopen("mec-2-const.h", "w");
19
 
        if (!f) {
20
 
                fprintf(stderr, "Unable to open const output\n");
21
 
                exit(1);
22
 
        }
23
 
        fprintf(f, "/* Generated by genconst */\n");
24
 
        fprintf(f, "#define ALPHA_ST %e\n", ALPHA_ST);
25
 
        fprintf(f, "#define ALPHA_YT %e\n", ALPHA_YT);
26
 
        fprintf(f, "#define SIGMA_LU %e\n", SIGMA_LU);
27
 
        fprintf(f, "#define SIGMA_LY %e\n", SIGMA_LY);
28
 
        fprintf(f, "#define DEFAULT_BETA1 %e\n", DEFAULT_BETA1);
29
 
        fprintf(f, "#define MIN_BETA %e\n", MIN_BETA);
30
 
        fprintf(f, "#define EC_MIN_VALUE %e\n", EC_MIN_VALUE);
31
 
        fprintf(f, "#define CUTOFF %e\n", CUTOFF);
32
 
        exit(0);
33
 
 
34
 
}