/* Copyright 1998 DJ Delorie Distributed under the terms of the GNU GPL http://www.delorie.com/store/hcalc/ Revisions copyright 2007, Theodore Kilgore More revisions copyright 2023, B. Watson */ #include #include #include #include #include #define SELF "HCalc" #include "version.h" extern Display *display; extern int screen; extern Visual *visual; extern Colormap cmap; extern Window window; extern Window rootwin; extern GC gc; extern Atom wm_protocols_atom; extern Atom delete_atom; extern Atom paste_atom; extern XEvent event; extern Pixmap face; extern Pixmap chars; extern int base; extern int bit_on; extern int bit_off; extern int char_to_x[256]; extern char charmap[]; extern int widths[3]; extern int heights[3]; extern int winsize; extern int scale_factor; extern double value, saved, stored; extern int quiet; void set_bits(int b); void set_string(char *s); void redraw(); void key(char c); void button(int b, int x, int y); void complete_paste(unsigned char *s, int n); void send_current_display(); void setup_x(void); void load_pixmaps(void); void process_input(); void load_config(void); void save_config(void); void show_value(); void bell(void); #define MAXCHARS 15