Skip to content

Commit

Permalink
src/impl.h: new file to pull impl.c exports
Browse files Browse the repository at this point in the history
  • Loading branch information
trofi committed Aug 28, 2022
1 parent b9341ab commit f5a2bed
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ libski_la_SOURCES= \
trace.c \
libtrace.c \
impl.c \
impl.h \
os_support.c \
instr.c \
$(NETDEV_C) \
Expand Down
3 changes: 2 additions & 1 deletion src/impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
*
*/

#include "impl.h"

#include "std.h"
#include "types.h"
#include "libsrs.h"

char *getImplStr(void)
const char *getImplStr(void)
{
return "SDM 2.1";
}
Expand Down
6 changes: 6 additions & 0 deletions src/impl.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _SKI_IMPL_H_
#define _SKI_IMPL_H_

const char *getImplStr(void);

#endif /* _SKI_IMPL_H_ */
3 changes: 0 additions & 3 deletions src/libcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,6 @@ void initAppState(int cproc);
/* Sets the ABI to App-mode or Sys-mode */
void setABI(BOOL val);

/* Returns a string indicating the implementation */
char *getImplStr(void);

/* Returns the next static ip after the specified address */
ADDR nextIp(ADDR a);

Expand Down
2 changes: 2 additions & 0 deletions src/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
#include <string.h>
#include <stdarg.h>
#include <unistd.h>

#include "std.h"
#include "bits.h"
#include "types.h"
#include "fields.h"
#include "impl.h"
#include "ski.h"
#include "sim.h"
#include "ssDCmd.h"
Expand Down

0 comments on commit f5a2bed

Please sign in to comment.