From 76de8f3015b12b27a6752db2754578dc12c5a188 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 9 Feb 2018 15:41:50 -0500 Subject: Move gfx interface to header file .o files should technically depend on this, but I don't think it will matter much. --- bin/gfx/cocoa.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bin/gfx/cocoa.m') diff --git a/bin/gfx/cocoa.m b/bin/gfx/cocoa.m index ece79fb5..33252257 100644 --- a/bin/gfx/cocoa.m +++ b/bin/gfx/cocoa.m @@ -21,12 +21,9 @@ #import #import -#define UNUSED __attribute__((unused)) +#import "gfx.h" -extern int init(int argc, char *argv[]); -extern const char *status(void); -extern void draw(uint32_t *buf, size_t xres, size_t yres); -extern bool input(char in); +#define UNUSED __attribute__((unused)) @interface BufferView : NSView { size_t bufSize; -- cgit 1.4.1