Skip to content
Snippets Groups Projects
  • Luigi Rizzo's avatar
    e43bc663
    This rather large commit changes the way modules are loaded. · e43bc663
    Luigi Rizzo authored
     
    As partly documented in loader.c and include/asterisk/module.h,
    modules are now expected to return all of their methods and flags
    into a structure 'mod_data', and are normally loaded with RTLD_NOW
    | RTLD_LOCAL, so symbols are resolved immediately and conflicts
    should be less likely.  Only in a small number of cases (res_*,
    typically) modules are loaded RTLD_GLOBAL, so they can export
    symbols.
     
    The core of the change is only the two files loader.c and
    include/asterisk/module.h, all the rest is simply adaptation of the
    existing modules to the new API, a rather mechanical (but believe
    me, time and finger-consuming!) process whose detail you can figure
    out by svn diff'ing any single module.
    
    Expect some minor compilation issue after this change, please
    report it on mantis http://bugs.digium.com/view.php?id=6968
    so we collect all the feedback in one place.
    
    I am just sorry that this change missed SVN version number 20000!
    
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    e43bc663
    History
    This rather large commit changes the way modules are loaded.
    Luigi Rizzo authored
     
    As partly documented in loader.c and include/asterisk/module.h,
    modules are now expected to return all of their methods and flags
    into a structure 'mod_data', and are normally loaded with RTLD_NOW
    | RTLD_LOCAL, so symbols are resolved immediately and conflicts
    should be less likely.  Only in a small number of cases (res_*,
    typically) modules are loaded RTLD_GLOBAL, so they can export
    symbols.
     
    The core of the change is only the two files loader.c and
    include/asterisk/module.h, all the rest is simply adaptation of the
    existing modules to the new API, a rather mechanical (but believe
    me, time and finger-consuming!) process whose detail you can figure
    out by svn diff'ing any single module.
    
    Expect some minor compilation issue after this change, please
    report it on mantis http://bugs.digium.com/view.php?id=6968
    so we collect all the feedback in one place.
    
    I am just sorry that this change missed SVN version number 20000!
    
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
preemp.c 4.10 KiB
/*

$Log$
Revision 1.15  2004/06/26 03:50:14  markster
Merge source cleanups (bug #1911)

Revision 1.14  2003/02/12 13:59:15  matteo
mer feb 12 14:56:57 CET 2003

Revision 1.1.1.1  2003/02/12 13:59:15  matteo
mer feb 12 14:56:57 CET 2003

Revision 1.2  2000/01/05 08:20:39  markster
Some OSS fixes and a few lpc changes to make it actually work

 * Revision 1.1  1996/08/19  22:30:58  jaf
 * Initial revision
 *

*/

/*  -- translated by f2c (version 19951025).
   You must link the resulting object file with the libraries:
	-lf2c -lm   (in that order)
*/

#include "f2c.h"

#ifdef P_R_O_T_O_T_Y_P_E_S
extern int preemp_(real *inbuf, real *pebuf, integer *nsamp, real *coef, real *z__);
#endif

/* ******************************************************************* */

/* 	PREEMP Version 55 */

/* $Log$
 * Revision 1.15  2004/06/26 03:50:14  markster
 * Merge source cleanups (bug #1911)
 *
 * Revision 1.14  2003/02/12 13:59:15  matteo
 * mer feb 12 14:56:57 CET 2003
 *
 * Revision 1.1.1.1  2003/02/12 13:59:15  matteo
 * mer feb 12 14:56:57 CET 2003
 *
 * Revision 1.2  2000/01/05 08:20:39  markster
 * Some OSS fixes and a few lpc changes to make it actually work
 *
 * Revision 1.1  1996/08/19  22:30:58  jaf
 * Initial revision
 * */
/* Revision 1.3  1996/03/14  23:16:29  jaf */
/* Just added a few comments about which array indices of the arguments */
/* are used, and mentioning that this subroutine has no local state. */

/* Revision 1.2  1996/03/11  23:23:34  jaf */
/* Added a bunch of comments to an otherwise simple subroutine. */

/* Revision 1.1  1996/02/07 14:48:48  jaf */
/* Initial revision */


/* ******************************************************************* */

/*   Preemphasize speech with a single-zero filter. */
/*  (When coef = .9375, preemphasis is as in LPC43.) */

/* Inputs: */
/*  NSAMP  - Number of samples to filter */