1
0
mirror of https://github.com/simh/simh.git synced 2026-05-05 15:33:34 +00:00

3B2: Header refactoring and cleanup

This change signficantly improves header hygiene in the 3B2 project by
moving global symbols out of 3b2_defs.h and into the appropriate
individual module header files.

Each compilation unit now includes:

  - its appropriate matching .h file
  - any other .h files necessary for linting and compilation

Each header file in turn includes 3b2_defs.h, which contains truly
global symbols, and which pulls in sim_defs.h and exports global
devices.
This commit is contained in:
Seth Morabito
2021-08-11 19:43:51 -07:00
parent 78d3d1b560
commit c02491f733
40 changed files with 235 additions and 131 deletions

View File

@@ -31,7 +31,7 @@
#ifndef __3B2_ID_H__
#define __3B2_ID_H__
#include "sim_defs.h"
#include "3b2_defs.h"
#define ID0 0
#define ID1 1
@@ -174,4 +174,6 @@ void id_handle_data(uint8 val);
void id_handle_command(uint8 val);
void id_after_dma();
extern t_bool id_drq;
#endif