Skip to content
Snippets Groups Projects
Select Git revision
  • bc63438c23cae6d876b4c424cfbe5f37b3468475
  • master default protected
  • hpke
  • ppc-chacha-4core
  • delete-internal-name-mangling
  • master-updates
  • ppc-gcm
  • ppc-chacha-2core
  • refactor-ecc-mod
  • ppc-chacha-core
  • use-mpn_cnd-functions
  • optimize-ecc-invert
  • default-m4-quote-char
  • power-asm-wip
  • test-fat
  • chacha-3core-neon
  • x86_64-salsa20-2core
  • salsa20-2core-neon
  • bcrypt
  • arm-salsa20-chacha-vsra
  • test-shlib-dir
  • nettle_3.6_release_20200429
  • nettle_3.6rc3
  • nettle_3.6rc2
  • nettle_3.6rc1
  • nettle_3.5.1_release_20190627
  • nettle_3.5_release_20190626
  • nettle_3.5rc1
  • nettle_3.4.1_release_20181204
  • nettle_3.4.1rc1
  • nettle_3.4_release_20171119
  • nettle_3.4rc2
  • nettle_3.4rc1
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
41 results

hmac.h

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    module.c 2.33 KiB
    /*
    || This file is part of Pike. For copyright information see COPYRIGHT.
    || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
    || for more information.
    || $Id: module.c,v 1.23 2003/04/02 19:17:50 nilsson Exp $
    */
    
    #include "global.h"
    #include "module.h"
    #include "pike_macros.h"
    #include "pike_error.h"
    #include "builtin_functions.h"
    #include "main.h"
    #include "svalue.h"
    #include "interpret.h"
    #include "stralloc.h"
    #include "object.h"
    #include "mapping.h"
    #include "program_id.h"
    #include "language.h"
    #include "lex.h"
    
    #include "modules/modlist_headers.h"
    #include "post_modules/modlist_headers.h"
    
    RCSID("$Id: module.c,v 1.23 2003/04/02 19:17:50 nilsson Exp $");
    
    /* Define this to trace the initialization and cleanup of static modules. */
    /* #define TRACE_MODULE */
    
    #if defined(TRACE_MAIN) || defined(TRACE_MODULE)
    #define TRACE(X)	fprintf X
    #else /* !TRACE_MAIN */
    #define TRACE(X)
    #endif /* TRACE_MAIN */
    
    typedef void (*modfun)(void);
    
    struct static_module
    {
      char *name;
      modfun init;
      modfun exit;
    };
    
    static struct static_module module_list[] = {
      { "Builtin", low_init_main, low_exit_main }
    #include "modules/modlist.h"
    #include "post_modules/modlist.h"
    };
    
    void init_modules(void)
    {
      struct program *p;
      unsigned int e;
      struct lex save_lex;
    
      save_lex = lex;
      lex.current_line=1;
      lex.current_file=make_shared_string("-");
    
      start_new_program();
      Pike_compiler->new_program->id=PROG___BUILTIN_ID;
    
      for(e=0;e<NELEM(module_list);e++)
      {
        JMP_BUF recovery;
        start_new_program();
        if(SETJMP(recovery)) {
          free_program(end_program());