+ ANSI C conversion
This commit is contained in:
		
							parent
							
								
									3ac4504a5a
								
							
						
					
					
						commit
						8b525f59c3
					
				
					 4 changed files with 78 additions and 0 deletions
				
			
		
							
								
								
									
										30
									
								
								util/int/data.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								util/int/data.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,30 @@
 | 
			
		|||
/*  Copyright (c) 2019 ACK Project.
 | 
			
		||||
 *  See the copyright notice in the ACK home directory, 
 | 
			
		||||
 *  in the file "Copyright".
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
#ifndef DATA_H_
 | 
			
		||||
#define DATA_H_
 | 
			
		||||
 | 
			
		||||
#include "global.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void init_data(ptr hb);
 | 
			
		||||
void newHP(ptr ap);
 | 
			
		||||
void dt_stdp(register ptr addr, ptr ap);
 | 
			
		||||
void dt_stn(register ptr addr, long al, size n);
 | 
			
		||||
void dt_stw(register ptr addr, long al);
 | 
			
		||||
void dt_stip(register ptr addr, ptr ap);
 | 
			
		||||
#ifndef	NOFLOAT
 | 
			
		||||
void dt_stf(register ptr addr, double f, register size n);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
ptr dt_lddp(register ptr addr);
 | 
			
		||||
unsigned long dt_ldu(register ptr addr, size n);
 | 
			
		||||
unsigned long dt_lduw(register ptr addr);
 | 
			
		||||
long dt_lds(register ptr addr, size n);
 | 
			
		||||
long dt_ldsw(register ptr addr);
 | 
			
		||||
void dt_mvd(ptr d2, ptr d1, size n);
 | 
			
		||||
void dt_mvs(ptr d, ptr s, size n);
 | 
			
		||||
 | 
			
		||||
#endif /* DATA_H_ */
 | 
			
		||||
							
								
								
									
										17
									
								
								util/int/dump.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								util/int/dump.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
/*  Copyright (c) 2019 ACK Project.
 | 
			
		||||
 *  See the copyright notice in the ACK home directory, 
 | 
			
		||||
 *  in the file "Copyright".
 | 
			
		||||
 *
 | 
			
		||||
 *  Created on: 2019-03-16
 | 
			
		||||
 *  
 | 
			
		||||
 */
 | 
			
		||||
#ifndef DUMP_H_
 | 
			
		||||
#define DUMP_H_
 | 
			
		||||
 | 
			
		||||
#ifdef LOGGING
 | 
			
		||||
void std_all(long, int);
 | 
			
		||||
void gdad_all(ptr, ptr);
 | 
			
		||||
void hpd_all(void);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif /* DUMP_H_ */
 | 
			
		||||
							
								
								
									
										16
									
								
								util/int/io.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								util/int/io.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,16 @@
 | 
			
		|||
/*  Copyright (c) 2019 ACK Project.
 | 
			
		||||
 *  See the copyright notice in the ACK home directory, 
 | 
			
		||||
 *  in the file "Copyright".
 | 
			
		||||
 *
 | 
			
		||||
 *  Created on: 2019-03-16
 | 
			
		||||
 *  
 | 
			
		||||
 */
 | 
			
		||||
#ifndef IO_H_
 | 
			
		||||
#define IO_H_
 | 
			
		||||
 | 
			
		||||
void fatal(char *fmt, ...);
 | 
			
		||||
void message(char *fmt, ...);
 | 
			
		||||
void init_ofiles(int firsttime);
 | 
			
		||||
void close_down(int rc);
 | 
			
		||||
 | 
			
		||||
#endif /* IO_H_ */
 | 
			
		||||
							
								
								
									
										15
									
								
								util/int/m_sigtrp.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								util/int/m_sigtrp.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
/*  Copyright (c) 2019 ACK Project.
 | 
			
		||||
 *  See the copyright notice in the ACK home directory, 
 | 
			
		||||
 *  in the file "Copyright".
 | 
			
		||||
 *
 | 
			
		||||
 *  Created on: 2019-03-17
 | 
			
		||||
 *  
 | 
			
		||||
 */
 | 
			
		||||
#ifndef M_SIGTRP_H_
 | 
			
		||||
#define M_SIGTRP_H_
 | 
			
		||||
 | 
			
		||||
void init_signals(void);
 | 
			
		||||
int do_sigtrp(int tn, int sn);
 | 
			
		||||
void trap_signal(void);
 | 
			
		||||
 | 
			
		||||
#endif /* M_SIGTRP_H_ */
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue