mirror of
https://github.com/PDP-10/klh10.git
synced 2026-01-21 18:15:17 +00:00
Compiler suggested cleanups (mostly declarations).
This commit is contained in:
parent
639a0cbe4e
commit
79658f9bf8
@ -48,6 +48,7 @@
|
||||
#include "kn10dev.h"
|
||||
#include "dvdte.h"
|
||||
#include "prmstr.h" /* For parameter parsing */
|
||||
#include "fecmd.h"
|
||||
|
||||
#ifdef RCSID
|
||||
RCSID(dvdte_c,"$Id: dvdte.c,v 2.7 2002/04/24 07:56:08 klh Exp $")
|
||||
|
||||
@ -44,6 +44,7 @@
|
||||
#include "prmstr.h"
|
||||
#include "dvcty.h" /* For cty_ functions */
|
||||
#include "fecmd.h"
|
||||
#include "klh10exp.h"
|
||||
|
||||
#if KLH10_CPU_KS
|
||||
# include "dvuba.h" /* So can get at device info */
|
||||
@ -52,10 +53,6 @@
|
||||
#ifdef RCSID
|
||||
RCSID(fecmd_c,"$Id: fecmd.c,v 2.2 2002/05/21 09:43:39 klh Exp $")
|
||||
#endif
|
||||
|
||||
/* Imported data */
|
||||
extern int proc_bkgd; /* From klh10.c */
|
||||
|
||||
|
||||
/*
|
||||
FE command parsing and CTY utilities
|
||||
|
||||
@ -59,6 +59,9 @@ extern void fe_ctycmforce(void);
|
||||
extern void fe_cmpromptset(char *);
|
||||
extern char *fe_cmprompt(int);
|
||||
|
||||
extern enum haltcode fe_haltcode(void);
|
||||
extern void fe_ctyinit(void);
|
||||
|
||||
/* Exported data */
|
||||
extern int feiosignulls;
|
||||
extern int feiosiginps;
|
||||
|
||||
@ -62,6 +62,10 @@
|
||||
# include "dvuba.h" /* So can get at device info */
|
||||
#endif
|
||||
|
||||
#if KLH10_DEV_LITES
|
||||
# include "dvlites.h"
|
||||
#endif
|
||||
|
||||
#ifdef RCSID
|
||||
RCSID(klh10_c,"$Id: klh10.c,v 2.9 2002/05/21 16:54:32 klh Exp $")
|
||||
#endif
|
||||
|
||||
34
src/klh10exp.h
Normal file
34
src/klh10exp.h
Normal file
@ -0,0 +1,34 @@
|
||||
/* KLH10EXP.H - Exports from klh10.c
|
||||
*/
|
||||
/* Copyright © 2015 Olaf "Rhialto" Seibert
|
||||
** All Rights Reserved
|
||||
**
|
||||
** This file is part of the KLH10 Distribution. Use, modification, and
|
||||
** re-distribution is permitted subject to the terms in the file
|
||||
** named "LICENSE", which contains the full text of the legal notices
|
||||
** and should always accompany this Distribution.
|
||||
**
|
||||
** This software is provided "AS IS" with NO WARRANTY OF ANY KIND.
|
||||
**
|
||||
** This notice (including the copyright and warranty disclaimer)
|
||||
** must be included in all copies or derivations of this software.
|
||||
*/
|
||||
|
||||
#ifndef KLH10EXP_INCLUDED
|
||||
#define KLH10EXP_INCLUDED 1
|
||||
|
||||
void klh10_main(int argc, char **argv);
|
||||
void fe_aprcont(int, int, vaddr_t, int);
|
||||
void fe_shutdown(void);
|
||||
void fe_traceprint(w10_t, vaddr_t);
|
||||
void fe_begpcfdbg(FILE *f);
|
||||
void fe_endpcfdbg(FILE *f);
|
||||
void pishow(FILE *);
|
||||
void pcfshow(FILE *, h10_t);
|
||||
void insprint(FILE *, int);
|
||||
void pinstr(FILE *f, register w10_t w, int flags, vaddr_t e);
|
||||
/* void panic(char *, ...); */ /* Declared in kn10def.h */
|
||||
|
||||
extern int proc_bkgd;
|
||||
|
||||
#endif /* ifndef KLH10EXP_INCLUDED */
|
||||
@ -46,6 +46,8 @@
|
||||
#include "kn10ops.h"
|
||||
#include "kn10dev.h" /* For device PI handling */
|
||||
#include "dvcty.h" /* For cty_ stuff */
|
||||
#include "fecmd.h"
|
||||
#include "klh10exp.h"
|
||||
|
||||
#ifdef RCSID
|
||||
RCSID(kn10cpu_c,"$Id: kn10cpu.c,v 2.9 2002/05/21 16:54:32 klh Exp $")
|
||||
@ -65,14 +67,6 @@ void a1pr_undo(void);
|
||||
void afi_undo(void);
|
||||
#endif
|
||||
|
||||
/* Imported functions */
|
||||
extern void fe_begpcfdbg(FILE *);
|
||||
extern void fe_endpcfdbg(FILE *);
|
||||
extern void pishow(FILE *);
|
||||
extern void pcfshow(FILE *, h10_t flags);
|
||||
extern void pinstr(FILE *, w10_t w, int flags, vaddr_t e);
|
||||
extern void fe_traceprint (register w10_t instr, vaddr_t e);
|
||||
|
||||
/* Pre-declarations */
|
||||
static void trap_xct(void);
|
||||
static int pi_check(void);
|
||||
|
||||
@ -242,6 +242,7 @@ void outlink(struct filent *fe);
|
||||
void outfile(struct filent *fe);
|
||||
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
register int i;
|
||||
|
||||
@ -77,6 +77,7 @@ static int getw10(WFILE *wf, w10_t *wp);
|
||||
static char usage[] = "\
|
||||
Usage: %s [-v] < infile.exb > outfile.sav\n";
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
int n;
|
||||
|
||||
@ -77,7 +77,13 @@ int dotests(void);
|
||||
int txtest(void);
|
||||
int tinttypes(void);
|
||||
int tmasks(void);
|
||||
int testfmt(void);
|
||||
int test32(void);
|
||||
#ifdef WORD10_INT
|
||||
int test36(void);
|
||||
#endif
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
char *cp;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user