sim: include stdarg.h when used

Avoid implicit include deps with this to help untangle sim headers
so we can get rid of arch-specific sim-main.h.
This commit is contained in:
Mike Frysinger
2021-12-04 21:04:41 -05:00
parent 20a8e078cc
commit 2c29882f83
20 changed files with 22 additions and 0 deletions

View File

@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h" #include "defs.h"
#include <errno.h> #include <errno.h>
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include "bfd.h" #include "bfd.h"

View File

@ -22,6 +22,7 @@
/* This must come before any other includes. */ /* This must come before any other includes. */
#include "defs.h" #include "defs.h"
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -23,6 +23,7 @@
#ifndef HW_DEVICE_H #ifndef HW_DEVICE_H
#define HW_DEVICE_H #define HW_DEVICE_H
#include <stdarg.h>
/* Introduction: /* Introduction:

View File

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* This must come before any other includes. */ /* This must come before any other includes. */
#include "defs.h" #include "defs.h"
#include <stdarg.h>
#include <string.h> #include <string.h>
#include "hw-main.h" #include "hw-main.h"

View File

@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef HW_EVENTS_H #ifndef HW_EVENTS_H
#define HW_EVENTS_H #define HW_EVENTS_H
#include <stdarg.h>
/* Event manager customized for hardware models. /* Event manager customized for hardware models.
This interface is discussed further in sim-events.h. */ This interface is discussed further in sim-events.h. */

View File

@ -23,6 +23,7 @@
#include "defs.h" #include "defs.h"
#include <ctype.h> #include <ctype.h>
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -23,6 +23,7 @@
#ifndef HW_TREE #ifndef HW_TREE
#define HW_TREE #define HW_TREE
#include <stdarg.h>
struct hw *hw_tree_create struct hw *hw_tree_create
(SIM_DESC sd, (SIM_DESC sd,

View File

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* This must come before any other includes. */ /* This must come before any other includes. */
#include "defs.h" #include "defs.h"
#include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* This must come before any other includes. */ /* This must come before any other includes. */
#include "defs.h" #include "defs.h"
#include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef SIM_ENGINE_H #ifndef SIM_ENGINE_H
#define SIM_ENGINE_H #define SIM_ENGINE_H
#include <stdarg.h>
typedef struct _sim_engine sim_engine; typedef struct _sim_engine sim_engine;
struct _sim_engine struct _sim_engine

View File

@ -27,6 +27,7 @@
#include "defs.h" #include "defs.h"
#include <signal.h> /* For SIGPROCMASK et al. */ #include <signal.h> /* For SIGPROCMASK et al. */
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -23,6 +23,7 @@
#ifndef SIM_EVENTS_H #ifndef SIM_EVENTS_H
#define SIM_EVENTS_H #define SIM_EVENTS_H
#include <stdarg.h>
/* Notes: /* Notes:

View File

@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef SIM_HW_H #ifndef SIM_HW_H
#define SIM_HW_H #define SIM_HW_H
#include <stdarg.h>
/* Parse a hardware definition */ /* Parse a hardware definition */

View File

@ -26,6 +26,7 @@
#if HAVE_FCNTL_H #if HAVE_FCNTL_H
#include <fcntl.h> #include <fcntl.h>
#endif #endif
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#if HAVE_UNISTD_H #if HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>

View File

@ -23,6 +23,7 @@
#ifndef SIM_IO_H #ifndef SIM_IO_H
#define SIM_IO_H #define SIM_IO_H
#include <stdarg.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h" #include "defs.h"
#include <ctype.h> #include <ctype.h>
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* This must come before any other includes. */ /* This must come before any other includes. */
#include "defs.h" #include "defs.h"
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -22,6 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef SIM_TRACE_H #ifndef SIM_TRACE_H
#define SIM_TRACE_H #define SIM_TRACE_H
#include <stdarg.h>
#include "dis-asm.h" #include "dis-asm.h"
/* Standard traceable entities. */ /* Standard traceable entities. */

View File

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* This must come before any other includes. */ /* This must come before any other includes. */
#include "defs.h" #include "defs.h"
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>