Select Git revision
bignum-random-prime.c
Forked from
Nettle / nettle
Source project has a limited visibility.
-
Niels Möller authored
argument top_bits_set, to optionally generate primes with the two most significant bits set. Reordered argument list. (nettle_random_prime): Likewise, added top_bits_set argument. Invoke progress callback when a prime is generated. Rev: nettle/bignum-random-prime.c:1.6 Rev: nettle/bignum.h:1.7
Niels Möller authoredargument top_bits_set, to optionally generate primes with the two most significant bits set. Reordered argument list. (nettle_random_prime): Likewise, added top_bits_set argument. Invoke progress callback when a prime is generated. Rev: nettle/bignum-random-prime.c:1.6 Rev: nettle/bignum.h:1.7
main.c 11.07 KiB
/*\
||| This file a part of Pike, and is copyright by Fredrik Hubinette
||| Pike is distributed as GPL (General Public License)
||| See the files COPYING and DISCLAIMER for more information.
\*/
#include "global.h"
RCSID("$Id: main.c,v 1.58 1998/09/02 01:05:45 grubba Exp $");
#include "fdlib.h"
#include "backend.h"
#include "module.h"
#include "object.h"
#include "lex.h"
#include "pike_types.h"
#include "builtin_functions.h"
#include "array.h"
#include "stralloc.h"
#include "interpret.h"
#include "error.h"
#include "pike_macros.h"
#include "callback.h"
#include "signal_handler.h"
#include "threads.h"
#include "dynamic_load.h"
#include "gc.h"
#include "multiset.h"
#include "mapping.h"
#include "cpp.h"
#include "main.h"
#include "operators.h"
#include <errno.h>
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
#include "time_stuff.h"
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
char *master_file;
char **ARGV;
int debug_options=0;
int d_flag=0;
int c_flag=0;
int t_flag=0;
int default_t_flag=0;
int a_flag=0;
int l_flag=0;
int p_flag=0;
#ifdef YYDEBUG
extern int yydebug;
#endif /* YYDEBUG */
static long instructions_left;
static void time_to_exit(struct callback *cb,void *tmp,void *ignored)
{
if(instructions_left-- < 0)
{
push_int(0);
f_exit(1);
}
}
static struct callback_list post_master_callbacks;