execute.c File Reference

#include "bcdefs.h"
#include <signal.h>
#include "global.h"
#include "proto.h"

Include dependency graph for execute.c:

Go to the source code of this file.

Functions

void stop_execution (int sig)
unsigned char byte (program_counter *pc)
void execute ()
char prog_char ()
char input_char ()
void push_constant (char(*in_char)(VOID), int conv_base)
void push_b10_const (program_counter *pc)
void assign (char c_code)

Variables

int had_sigint


Function Documentation

void assign char  c_code  ) 
 

Definition at line 775 of file execute.c.

References _one_, _zero_, copy_num(), ex_stack, free_num(), and estack_rec::s_num.

Referenced by execute(), forkexec(), and main().

unsigned char byte program_counter pc  ) 
 

Definition at line 52 of file execute.c.

References BC_SEG_LOG, BC_SEG_SIZE, bc_function::f_body, functions, offset, and seg.

void execute void   ) 
 

Definition at line 66 of file execute.c.

References _one_, _zero_, assign(), auto_var(), arg_list::av_name, bc_add(), bc_compare(), bc_divide(), BC_LABEL_GROUP, BC_LABEL_LOG, bc_modulo(), bc_multiply(), bc_raise(), bc_sqrt(), bc_sub(), c_code, check_stack(), decr_array(), decr_var(), ex_stack, exit(), bc_function::f_autos, bc_function::f_label, f_names, bc_function::f_params, FALSE, fflush(), fn_stack, fpop, fpush, functions, had_sigint, i_base, incr_array(), incr_var(), init_num(), input_char(), int2num(), interactive, is_neg(), is_zero(), bc_label_group::l_adrs, bc_label_group::l_next, load_array(), load_var(), bc_struct::n_len, bc_struct::n_scale, bc_struct::n_value, arg_list::next, NULL, o_base, out_char(), out_num(), pc, program_counter::pc_addr, program_counter::pc_func, pop(), pop_vars(), printf, process_params(), prog_char(), push_b10_const(), push_constant(), push_copy(), push_num(), rt_error(), runtime_error, estack_rec::s_next, estack_rec::s_num, fstack_rec::s_val, SIGINT, signal(), stdout, stop_execution(), store_array(), store_var(), and use_quit().

char input_char  ) 
 

Definition at line 562 of file execute.c.

References getchar, and isdigit.

Referenced by execute().

char prog_char  ) 
 

Definition at line 552 of file execute.c.

References pc.

Referenced by execute().

void push_b10_const program_counter pc  ) 
 

Definition at line 690 of file execute.c.

References _one_, _zero_, init_num(), int2num(), bc_struct::n_value, new_num(), ptr, push_copy(), and push_num().

Referenced by execute().

void push_constant char (*)(VOID)  in_char,
int  conv_base
 

Definition at line 598 of file execute.c.

References _one_, _zero_, bc_add(), bc_divide(), bc_multiply(), bc_sub(), copy_num(), digits(), FALSE, free_num(), init_num(), int2num(), push_num(), result, and TRUE.

Referenced by execute().

void stop_execution int  sig  ) 
 

Definition at line 40 of file execute.c.

References had_sigint, printf, rt_error(), and TRUE.

Referenced by execute().


Variable Documentation

int had_sigint
 

Definition at line 37 of file execute.c.

Referenced by execute(), and stop_execution().


Generated on Fri Apr 14 22:59:35 2006 for minix by  doxygen 1.4.6