remove __ProtoType__ macro

This commit is contained in:
Gwenhael Le Moine 2023-04-27 12:30:36 +02:00
parent 4d8afad2c4
commit 66fb6ec2c0
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
19 changed files with 220 additions and 255 deletions

View file

@ -10,6 +10,5 @@
"*printWarranty: False", "*useTerminal: True",
"*useSerial: False", "*serialLine: /dev/ttyS0",
"*completeInitialize: False", "*resetOnStartup: False",
"*romFileName: rom.dump",
"*homeDirectory: .hp48", "*useDebugger: True",
"*disassemblerMnemonics: class",
"*romFileName: rom.dump", "*homeDirectory: .hp48",
"*useDebugger: True", "*disassemblerMnemonics: class",

View file

@ -38,8 +38,8 @@
#include "global.h"
extern char* append_str __ProtoType__( ( char* buf, char* string ) );
extern char* append_tab __ProtoType__( ( char* buf ) );
extern char* append_tab_16 __ProtoType__( ( char* buf ) );
extern char* append_str( char* buf, char* string );
extern char* append_tab( char* buf );
extern char* append_tab_16( char* buf );
#endif /* !_APPEND_H */

View file

@ -115,27 +115,27 @@ bkpt_tbl[ MAX_BREAKPOINTS + 1 ];
/*
* command functions
*/
static void do_break __ProtoType__( ( int, char** ));
static void do_continue __ProtoType__( ( int, char** ));
static void do_delete __ProtoType__( ( int, char** ));
static void do_exit __ProtoType__( ( int, char** ));
static void do_go __ProtoType__( ( int, char** ));
static void do_help __ProtoType__( ( int, char** ));
static void do_load __ProtoType__( ( int, char** ));
static void do_mode __ProtoType__( ( int, char** ));
static void do_quit __ProtoType__( ( int, char** ));
static void do_regs __ProtoType__( ( int, char** ));
static void do_save __ProtoType__( ( int, char** ));
static void do_stack __ProtoType__( ( int, char** ));
static void do_stat __ProtoType__( ( int, char** ));
static void do_step __ProtoType__( ( int, char** ));
static void do_ram __ProtoType__( ( int, char** ));
static void do_reset __ProtoType__( ( int, char** ));
static void do_rstk __ProtoType__( ( int, char** ));
static void do_break( int, char** );
static void do_continue( int, char** );
static void do_delete( int, char** );
static void do_exit( int, char** );
static void do_go( int, char** );
static void do_help( int, char** );
static void do_load( int, char** );
static void do_mode( int, char** );
static void do_quit( int, char** );
static void do_regs( int, char** );
static void do_save( int, char** );
static void do_stack( int, char** );
static void do_stat( int, char** );
static void do_step( int, char** );
static void do_ram( int, char** );
static void do_reset( int, char** );
static void do_rstk( int, char** );
struct cmd {
char* name;
void( *func ) __ProtoType__( ( int, char** ));
void ( *func )( int, char** );
char* help;
}

View file

@ -57,10 +57,10 @@ extern int enter_debugger;
extern int in_debugger;
extern int exec_flags;
extern void init_debugger __ProtoType__( ( void ));
extern int debug __ProtoType__( ( void ));
extern int emulate_debug __ProtoType__( ( void ));
extern void init_debugger( void );
extern int debug( void );
extern int emulate_debug( void );
extern char* str_nibbles __ProtoType__( ( word_20 addr, int n ) );
extern char* str_nibbles( word_20 addr, int n );
#endif /* !_DEBUGGER_H */

View file

@ -117,16 +117,16 @@ typedef struct device_t {
} device_t;
extern device_t device;
extern void check_devices __ProtoType__( ( void ));
extern void check_devices( void );
#if 0
extern void check_out_register __ProtoType__((void));
extern void check_out_register(void);
#endif
extern void update_display __ProtoType__( ( void ));
extern void redraw_display __ProtoType__( ( void ));
extern void disp_draw_nibble __ProtoType__( ( word_20 addr, word_4 val ) );
extern void menu_draw_nibble __ProtoType__( ( word_20 addr, word_4 val ) );
extern void draw_annunc __ProtoType__( ( void ));
extern void redraw_annunc __ProtoType__( ( void ));
extern void update_display( void );
extern void redraw_display( void );
extern void disp_draw_nibble( word_20 addr, word_4 val );
extern void menu_draw_nibble( word_20 addr, word_4 val );
extern void draw_annunc( void );
extern void redraw_annunc( void );
#endif /* !_DEVICE_H */

View file

@ -46,6 +46,6 @@
extern int disassembler_mode;
extern char* mode_name[];
extern word_20 disassemble __ProtoType__( ( word_20 addr, char* out ) );
extern word_20 disassemble( word_20 addr, char* out );
#endif /* !_DISASM_H */

View file

@ -32,6 +32,6 @@
extern char errbuf[ 1024 ];
extern char fixbuf[ 1024 ];
extern void fatal_exit __ProtoType__( ( void ));
extern void fatal_exit( void );
#endif /* !_ERRORS_H */

View file

@ -45,8 +45,6 @@
#include "config.h"
#define __ProtoType__( x ) x
#if !defined( __GNUC__ ) || defined( __STRICT_ANSI__ )
#define inline
#if !defined( __STDC__ )
@ -108,28 +106,26 @@
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
extern int printf __ProtoType__( ( char*, ... ) );
extern int fprintf __ProtoType__( ( FILE*, char*, ... ) );
extern int sscanf __ProtoType__( ( char*, char*, ... ) );
extern void fflush __ProtoType__( ( FILE* ));
extern int fseek __ProtoType__( ( FILE*, long, int ));
extern int fread __ProtoType__( ( void*, int, int, FILE* ));
extern int fwrite __ProtoType__( ( void*, int, int, FILE* ));
extern void fclose __ProtoType__( ( FILE* ));
extern int fgetc __ProtoType__( ( FILE* ));
extern void bzero __ProtoType__( ( void*, int ));
extern time_t time __ProtoType__( ( time_t* ));
extern int select __ProtoType__( ( int, fd_set*, fd_set*, fd_set*,
struct timeval* ));
extern int setitimer __ProtoType__( ( int, struct itimerval*,
struct itimerval* ));
extern int gethostname __ProtoType__( ( char*, int ));
extern int printf( char*, ... );
extern int fprintf( FILE*, char*, ... );
extern int sscanf( char*, char*, ... );
extern void fflush( FILE* );
extern int fseek( FILE*, long, int );
extern int fread( void*, int, int, FILE* );
extern int fwrite( void*, int, int, FILE* );
extern void fclose( FILE* );
extern int fgetc( FILE* );
extern void bzero( void*, int );
extern time_t time( time_t* );
extern int select( int, fd_set*, fd_set*, fd_set*, struct timeval* );
extern int setitimer( int, struct itimerval*, struct itimerval* );
extern int gethostname( char*, int );
#ifdef HAVE_XSHM
#include <sys/ipc.h>
#include <sys/shm.h>
extern int shmget __ProtoType__( ( key_t, int, int ));
extern int shmat __ProtoType__( ( int, void*, int ));
extern int shmctl __ProtoType__( ( int, int, struct shmid_ds* ));
extern int shmget( key_t, int, int );
extern int shmat( int, void*, int );
extern int shmctl( int, int, struct shmid_ds* );
#endif
#endif

View file

@ -260,33 +260,33 @@ extern long sched_adjtime;
extern long schedule_event;
extern display_t display;
extern void init_display __ProtoType__( ( void ));
extern void init_display( void );
extern saturn_t saturn;
extern int exit_emulator __ProtoType__( ( void ));
extern int init_emulator __ProtoType__( ( void ));
extern void init_active_stuff __ProtoType__( ( void ));
extern int exit_emulator( void );
extern int init_emulator( void );
extern void init_active_stuff( void );
extern int serial_init __ProtoType__( ( void ));
extern void serial_baud __ProtoType__( ( int baud ) );
extern void transmit_char __ProtoType__( ( void ));
extern void receive_char __ProtoType__( ( void ));
extern int serial_init( void );
extern void serial_baud( int baud );
extern void transmit_char( void );
extern void receive_char( void );
extern void do_kbd_int __ProtoType__( ( void ));
extern void do_interupt __ProtoType__( ( void ));
extern void do_kbd_int( void );
extern void do_interupt( void );
extern void( *write_nibble ) __ProtoType__( ( long addr, int val ) );
extern int( *read_nibble ) __ProtoType__( ( long addr ) );
extern int( *read_nibble_crc ) __ProtoType__( ( long addr ) );
extern void ( *write_nibble )( long addr, int val );
extern int ( *read_nibble )( long addr );
extern int ( *read_nibble_crc )( long addr );
extern int emulate __ProtoType__( ( void ));
extern int step_instruction __ProtoType__( ( void ));
extern void schedule __ProtoType__( ( void ));
extern int emulate( void );
extern int step_instruction( void );
extern void schedule( void );
extern int read_rom __ProtoType__( ( const char* fname ) );
extern int read_files __ProtoType__( ( void ));
extern int write_files __ProtoType__( ( void ));
extern int read_rom( const char* fname );
extern int read_files( void );
extern int write_files( void );
extern void load_addr __ProtoType__( ( word_20 * dat, long addr, int n ) );
extern void load_addr( word_20* dat, long addr, int n );
#endif /* !_HP48_H */

View file

@ -68,128 +68,103 @@ extern Display* dpy;
extern Window dispW;
extern GC gc;
extern void push_return_addr __ProtoType__( ( long addr ) );
extern long pop_return_addr __ProtoType__( ( void ));
extern void push_return_addr( long addr );
extern long pop_return_addr( void );
extern void init_annunc __ProtoType__( ( void ));
extern void init_annunc( void );
extern void init_saturn __ProtoType__( ( void ));
extern void init_saturn( void );
extern void check_timer __ProtoType__( ( void ));
extern void check_timer( void );
extern void register_to_status __ProtoType__( ( unsigned char* r ) );
extern void status_to_register __ProtoType__( ( unsigned char* r ) );
extern void swap_register_status __ProtoType__( ( unsigned char* r ) );
extern void clear_status __ProtoType__( ( void ));
extern void register_to_status( unsigned char* r );
extern void status_to_register( unsigned char* r );
extern void swap_register_status( unsigned char* r );
extern void clear_status( void );
extern long read_nibbles __ProtoType__( ( long addr, int len ) );
extern void write_nibbles __ProtoType__( ( long addr, long val, int len ) );
extern void dev_memory_init __ProtoType__( ( void ));
extern long read_nibbles( long addr, int len );
extern void write_nibbles( long addr, long val, int len );
extern void dev_memory_init( void );
extern void set_program_stat __ProtoType__( ( int n ) );
extern void clear_program_stat __ProtoType__( ( int n ) );
extern int get_program_stat __ProtoType__( ( int n ) );
extern void set_program_stat( int n );
extern void clear_program_stat( int n );
extern int get_program_stat( int n );
extern void set_hardware_stat __ProtoType__( ( int op ) );
extern void clear_hardware_stat __ProtoType__( ( int op ) );
extern int is_zero_hardware_stat __ProtoType__( ( int op ) );
extern void set_hardware_stat( int op );
extern void clear_hardware_stat( int op );
extern int is_zero_hardware_stat( int op );
extern void set_register_bit __ProtoType__( ( unsigned char* reg, int n ) );
extern void clear_register_bit __ProtoType__( ( unsigned char* reg, int n ) );
extern int get_register_bit __ProtoType__( ( unsigned char* reg, int n ) );
extern void set_register_bit( unsigned char* reg, int n );
extern void clear_register_bit( unsigned char* reg, int n );
extern int get_register_bit( unsigned char* reg, int n );
extern void set_register_nibble __ProtoType__( ( unsigned char* reg, int n,
unsigned char val ) );
extern unsigned char get_register_nibble __ProtoType__( ( unsigned char* reg,
int n ) );
extern void set_register_nibble( unsigned char* reg, int n, unsigned char val );
extern unsigned char get_register_nibble( unsigned char* reg, int n );
extern void register_to_address __ProtoType__( ( unsigned char* reg,
word_20* dat, int s ) );
extern void address_to_register __ProtoType__( ( word_20 dat,
unsigned char* reg, int s ) );
extern void add_address __ProtoType__( ( word_20 * dat, int add ) );
extern void register_to_address( unsigned char* reg, word_20* dat, int s );
extern void address_to_register( word_20 dat, unsigned char* reg, int s );
extern void add_address( word_20* dat, int add );
extern char* make_hexstr __ProtoType__( ( long addr, int n ) );
extern void load_constant __ProtoType__( ( unsigned char* reg, int n,
long addr ) );
extern void load_address __ProtoType__( ( unsigned char* reg, long addr,
int n ) );
extern char* make_hexstr( long addr, int n );
extern void load_constant( unsigned char* reg, int n, long addr );
extern void load_address( unsigned char* reg, long addr, int n );
extern void store __ProtoType__( ( word_20 dat, unsigned char* reg,
int code ) );
extern void store_n __ProtoType__( ( word_20 dat, unsigned char* reg, int n ) );
extern void recall __ProtoType__( ( unsigned char* reg, word_20 dat,
int code ) );
extern void recall_n __ProtoType__( ( unsigned char* reg, word_20 dat,
int n ) );
extern void store( word_20 dat, unsigned char* reg, int code );
extern void store_n( word_20 dat, unsigned char* reg, int n );
extern void recall( unsigned char* reg, word_20 dat, int code );
extern void recall_n( unsigned char* reg, word_20 dat, int n );
extern long dat_to_addr __ProtoType__( ( unsigned char* dat ) );
extern void addr_to_dat __ProtoType__( ( long addr, unsigned char* dat ) );
extern long dat_to_addr( unsigned char* dat );
extern void addr_to_dat( long addr, unsigned char* dat );
extern void do_in __ProtoType__( ( void ));
extern void do_reset __ProtoType__( ( void ));
extern void do_configure __ProtoType__( ( void ));
extern void do_unconfigure __ProtoType__( ( void ));
extern void do_inton __ProtoType__( ( void ));
extern void do_intoff __ProtoType__( ( void ));
extern void do_return_interupt __ProtoType__( ( void ));
extern void do_reset_interrupt_system __ProtoType__( ( void ));
extern void do_shutdown __ProtoType__( ( void ));
extern int get_identification __ProtoType__( ( void ));
extern void do_in( void );
extern void do_reset( void );
extern void do_configure( void );
extern void do_unconfigure( void );
extern void do_inton( void );
extern void do_intoff( void );
extern void do_return_interupt( void );
extern void do_reset_interrupt_system( void );
extern void do_shutdown( void );
extern int get_identification( void );
extern void add_p_plus_one __ProtoType__( ( unsigned char* r ) );
extern void add_register_constant __ProtoType__( ( unsigned char* res, int code,
int val ) );
extern void sub_register_constant __ProtoType__( ( unsigned char* res, int code,
int val ) );
extern void add_register __ProtoType__( ( unsigned char* res, unsigned char* r1,
unsigned char* r2, int code ) );
extern void sub_register __ProtoType__( ( unsigned char* res, unsigned char* r1,
unsigned char* r2, int code ) );
extern void complement_2_register __ProtoType__( ( unsigned char* r,
int code ) );
extern void complement_1_register __ProtoType__( ( unsigned char* r,
int code ) );
extern void inc_register __ProtoType__( ( unsigned char* r, int code ) );
extern void dec_register __ProtoType__( ( unsigned char* r, int code ) );
extern void zero_register __ProtoType__( ( unsigned char* r, int code ) );
extern void or_register __ProtoType__( ( unsigned char* res, unsigned char* r1,
unsigned char* r2, int code ) );
extern void and_register __ProtoType__( ( unsigned char* res, unsigned char* r1,
unsigned char* r2, int code ) );
extern void copy_register __ProtoType__( ( unsigned char* to,
unsigned char* from, int code ) );
extern void exchange_register __ProtoType__( ( unsigned char* r1,
unsigned char* r2, int code ) );
extern void add_p_plus_one( unsigned char* r );
extern void add_register_constant( unsigned char* res, int code, int val );
extern void sub_register_constant( unsigned char* res, int code, int val );
extern void add_register( unsigned char* res, unsigned char* r1,
unsigned char* r2, int code );
extern void sub_register( unsigned char* res, unsigned char* r1,
unsigned char* r2, int code );
extern void complement_2_register( unsigned char* r, int code );
extern void complement_1_register( unsigned char* r, int code );
extern void inc_register( unsigned char* r, int code );
extern void dec_register( unsigned char* r, int code );
extern void zero_register( unsigned char* r, int code );
extern void or_register( unsigned char* res, unsigned char* r1,
unsigned char* r2, int code );
extern void and_register( unsigned char* res, unsigned char* r1,
unsigned char* r2, int code );
extern void copy_register( unsigned char* to, unsigned char* from, int code );
extern void exchange_register( unsigned char* r1, unsigned char* r2, int code );
extern void exchange_reg __ProtoType__( ( unsigned char* r, word_20* d,
int code ) );
extern void exchange_reg( unsigned char* r, word_20* d, int code );
extern void shift_left_register __ProtoType__( ( unsigned char* r, int code ) );
extern void shift_left_circ_register __ProtoType__( ( unsigned char* r,
int code ) );
extern void shift_right_register __ProtoType__( ( unsigned char* r,
int code ) );
extern void shift_right_circ_register __ProtoType__( ( unsigned char* r,
int code ) );
extern void shift_right_bit_register __ProtoType__( ( unsigned char* r,
int code ) );
extern int is_zero_register __ProtoType__( ( unsigned char* r, int code ) );
extern int is_not_zero_register __ProtoType__( ( unsigned char* r, int code ) );
extern int is_equal_register __ProtoType__( ( unsigned char* r1,
unsigned char* r2, int code ) );
extern int is_not_equal_register __ProtoType__( ( unsigned char* r1,
unsigned char* r2,
int code ) );
extern int is_less_register __ProtoType__( ( unsigned char* r1,
unsigned char* r2, int code ) );
extern int is_less_or_equal_register __ProtoType__( ( unsigned char* r1,
unsigned char* r2,
int code ) );
extern int is_greater_register __ProtoType__( ( unsigned char* r1,
unsigned char* r2, int code ) );
extern int is_greater_or_equal_register __ProtoType__( ( unsigned char* r1,
unsigned char* r2,
int code ) );
extern void shift_left_register( unsigned char* r, int code );
extern void shift_left_circ_register( unsigned char* r, int code );
extern void shift_right_register( unsigned char* r, int code );
extern void shift_right_circ_register( unsigned char* r, int code );
extern void shift_right_bit_register( unsigned char* r, int code );
extern int is_zero_register( unsigned char* r, int code );
extern int is_not_zero_register( unsigned char* r, int code );
extern int is_equal_register( unsigned char* r1, unsigned char* r2, int code );
extern int is_not_equal_register( unsigned char* r1, unsigned char* r2,
int code );
extern int is_less_register( unsigned char* r1, unsigned char* r2, int code );
extern int is_less_or_equal_register( unsigned char* r1, unsigned char* r2,
int code );
extern int is_greater_register( unsigned char* r1, unsigned char* r2,
int code );
extern int is_greater_or_equal_register( unsigned char* r1, unsigned char* r2,
int code );
#endif /* !_HP48_EMU_H */

View file

@ -105,9 +105,9 @@ long nibble_masks[ 16 ] = { 0x0000000f, 0x000000f0, 0x00000f00, 0x0000f000,
0x0000000f, 0x000000f0, 0x00000f00, 0x0000f000,
0x000f0000, 0x00f00000, 0x0f000000, 0xf0000000 };
void( *write_nibble ) __ProtoType__( ( long addr, int val ) );
int( *read_nibble ) __ProtoType__( ( long addr ) );
int( *read_nibble_crc ) __ProtoType__( ( long addr ) );
void ( *write_nibble )( long addr, int val );
int ( *read_nibble )( long addr );
int ( *read_nibble_crc )( long addr );
static int line_counter = -1;

View file

@ -44,8 +44,8 @@
#define MCTL_SysROM_GX 5
#if 0
extern void init_mmu __ProtoType__((void));
extern void reset_mmu __ProtoType__((void));
extern void init_mmu(void);
extern void reset_mmu(void);
#endif
#endif /* !_MMU_H */

View file

@ -61,23 +61,20 @@ extern char* res_class;
extern XrmDatabase rdb;
extern void usage __ProtoType__( ( void ));
extern void show_version __ProtoType__( ( void ));
extern void show_copyright __ProtoType__( ( void ));
extern void show_warranty __ProtoType__( ( void ));
extern void get_resources __ProtoType__( ( void ));
extern char* get_string_resource_from_db __ProtoType__( ( XrmDatabase db,
char* name,
char* class ) );
extern char* get_string_resource __ProtoType__( ( char* name, char* class ) );
extern int get_boolean_resource __ProtoType__( ( char* name, char* class ) );
extern int get_mnemonic_resource __ProtoType__( ( char* name, char* class ) );
extern Visual* get_visual_resource __ProtoType__( ( Display * dpy, char* name,
char* class,
unsigned int* depth ) );
extern XFontStruct* get_font_resource __ProtoType__( ( Display * dpy,
char* res_name,
char* res_class ) );
extern void usage( void );
extern void show_version( void );
extern void show_copyright( void );
extern void show_warranty( void );
extern void get_resources( void );
extern char* get_string_resource_from_db( XrmDatabase db, char* name,
char* class );
extern char* get_string_resource( char* name, char* class );
extern int get_boolean_resource( char* name, char* class );
extern int get_mnemonic_resource( char* name, char* class );
extern Visual* get_visual_resource( Display* dpy, char* name, char* class,
unsigned int* depth );
extern XFontStruct* get_font_resource( Display* dpy, char* res_name,
char* res_class );
#ifndef isupper
#define isupper( c ) ( ( c ) >= 'A' && ( c ) <= 'Z' )

View file

@ -36,7 +36,6 @@
extern unsigned int opt_gx;
extern unsigned int rom_size;
extern int read_rom_file __ProtoType__( ( char* name, unsigned char** mem,
int* size ) );
extern int read_rom_file( char* name, unsigned char** mem, int* size );
#endif /* !_ROMIO_H */

View file

@ -56,7 +56,7 @@ struct objfunc {
char* name;
short length;
word_20 prolog;
char*( *func )__ProtoType__( ( word_20 * addr, char* string ) );
char* ( *func )( word_20* addr, char* string );
} objects[] = { { "System Binary", 0, DOBINT, dec_bin_int },
{ "Real", 0, DOREAL, dec_real },
{ "Long Real", 0, DOEREL, dec_long_real },

View file

@ -100,33 +100,32 @@ typedef struct hp_real {
word_1 s;
} hp_real;
extern char* decode_rpl_obj __ProtoType__( ( word_20 addr, char* buf ) );
extern void decode_rpl_obj_2 __ProtoType__( ( word_20 addr, char* typ,
char* dat ) );
extern char* decode_rpl_obj( word_20 addr, char* buf );
extern void decode_rpl_obj_2( word_20 addr, char* typ, char* dat );
extern char* skip_ob __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_rpl_obj __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_bin_int __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_real __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_long_real __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_complex __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_long_complex __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_char __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_array __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_lnk_array __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_string __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_hex_string __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_list __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_symb __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_unit __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_library __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_library_data __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_acptr __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_prog __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_code __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_global_ident __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_local_ident __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_xlib_name __ProtoType__( ( word_20 * addr, char* string ) );
extern char* dec_unit_op __ProtoType__( ( word_20 * addr, char* string ) );
extern char* skip_ob( word_20* addr, char* string );
extern char* dec_rpl_obj( word_20* addr, char* string );
extern char* dec_bin_int( word_20* addr, char* string );
extern char* dec_real( word_20* addr, char* string );
extern char* dec_long_real( word_20* addr, char* string );
extern char* dec_complex( word_20* addr, char* string );
extern char* dec_long_complex( word_20* addr, char* string );
extern char* dec_char( word_20* addr, char* string );
extern char* dec_array( word_20* addr, char* string );
extern char* dec_lnk_array( word_20* addr, char* string );
extern char* dec_string( word_20* addr, char* string );
extern char* dec_hex_string( word_20* addr, char* string );
extern char* dec_list( word_20* addr, char* string );
extern char* dec_symb( word_20* addr, char* string );
extern char* dec_unit( word_20* addr, char* string );
extern char* dec_library( word_20* addr, char* string );
extern char* dec_library_data( word_20* addr, char* string );
extern char* dec_acptr( word_20* addr, char* string );
extern char* dec_prog( word_20* addr, char* string );
extern char* dec_code( word_20* addr, char* string );
extern char* dec_global_ident( word_20* addr, char* string );
extern char* dec_local_ident( word_20* addr, char* string );
extern char* dec_xlib_name( word_20* addr, char* string );
extern char* dec_unit_op( word_20* addr, char* string );
#endif /* !_RPL_H */

View file

@ -49,14 +49,14 @@ typedef struct t1_t2_ticks {
unsigned long t2_ticks;
} t1_t2_ticks;
extern void reset_timer __ProtoType__( ( int timer ) );
extern void start_timer __ProtoType__( ( int timer ) );
extern void restart_timer __ProtoType__( ( int timer ) );
extern void stop_timer __ProtoType__( ( int timer ) );
extern word_64 get_timer __ProtoType__( ( int timer ) );
extern long diff_timer __ProtoType__( ( word_64 * t1, word_64* t2 ) );
extern void reset_timer( int timer );
extern void start_timer( int timer );
extern void restart_timer( int timer );
extern void stop_timer( int timer );
extern word_64 get_timer( int timer );
extern long diff_timer( word_64* t1, word_64* t2 );
extern t1_t2_ticks get_t1_t2 __ProtoType__( ( void ));
extern void set_accesstime __ProtoType__( ( void ));
extern t1_t2_ticks get_t1_t2( void );
extern void set_accesstime( void );
#endif /* !_TIMER_H */

View file

@ -109,8 +109,8 @@ static char* defaults[] = {
0 };
#ifdef HAVE_XSHM
extern int XShmQueryExtension __ProtoType__( ( Display* ));
extern int XShmGetEventBase __ProtoType__( ( Display* ));
extern int XShmQueryExtension( Display* );
extern int XShmGetEventBase( Display* );
static int CompletionType = -1;
#endif

View file

@ -131,19 +131,19 @@ extern int shm_flag;
extern Display* dpy;
extern int screen;
extern int InitDisplay __ProtoType__( ( int argc, char** argv ) );
extern int CreateWindows __ProtoType__( ( int argc, char** argv ) );
extern int GetEvent __ProtoType__( ( void ));
extern int InitDisplay( int argc, char** argv );
extern int CreateWindows( int argc, char** argv );
extern int GetEvent( void );
extern void adjust_contrast __ProtoType__( ( int contrast ) );
extern void refresh_icon __ProtoType__( ( void ));
extern void adjust_contrast( int contrast );
extern void refresh_icon( void );
extern void ShowConnections __ProtoType__( ( char* w, char* i ) );
extern void ShowConnections( char* w, char* i );
extern void exit_x48 __ProtoType__( ( int tell_x11 ) );
extern void exit_x48( int tell_x11 );
#ifdef HAVE_XSHM
extern void refresh_display __ProtoType__( ( void ));
extern void refresh_display( void );
#endif
#endif /* !_X48_X11_H */