OSDN Git Service

ソースコード整形
authorhikarupsp <hikarupsp@users.sourceforge.jp>
Tue, 11 Mar 2014 12:30:03 +0000 (21:30 +0900)
committerhikarupsp <hikarupsp@users.sourceforge.jp>
Tue, 11 Mar 2014 12:30:03 +0000 (21:30 +0900)
dpndenv.c
function.c
main.c

index 2d317b9..e4dbe4c 100644 (file)
--- a/dpndenv.c
+++ b/dpndenv.c
@@ -20,26 +20,20 @@ void *mallocRWE(int bytes)
 
 NSApplication* app;
 
-@interface OSECPUView : NSView {
+@interface OSECPUView : NSView
+{
     unsigned char *_buf;
     int _sx;
     int _sy;
        CGContextRef _context;
 }
 
-- (id)initWithFrame:(NSRect)frameRect
-buf : (unsigned char *) buf
-sx : (int) sx
-sy : (int) sy;
-
+- (id)initWithFrame:(NSRect)frameRect buf:(unsigned char *)buf sx:(int)sx sy:(int)sy;
 - (void)drawRect:(NSRect)rect;
 @end
 
 @implementation OSECPUView
-- (id)initWithFrame:(NSRect)frameRect
-buf : (unsigned char *) buf
-sx : (int) sx
-sy : (int) sy
+- (id)initWithFrame:(NSRect)frameRect buf:(unsigned char *)buf sx:(int)sx sy:(int)sy
 {
     self = [super initWithFrame:frameRect];
     if (self) {
@@ -60,7 +54,8 @@ sy : (int) sy
 
 @end
 
-@interface Main : NSObject<NSWindowDelegate> {
+@interface Main : NSObject<NSWindowDelegate>
+{
     int argc;
     const unsigned char **argv;
     char *winClosed;
@@ -68,14 +63,10 @@ sy : (int) sy
 }
 
 - (void)runApp;
-- (void)createThread : (int)_argc
-args : (const unsigned char **)_argv;
+- (void)createThread:(int)_argc args:(const unsigned char **)_argv;
 - (BOOL)windowShouldClose:(id)sender;
-- (void)openWin : (unsigned char *)buf
-sx : (int) sx
-sy : (int) sy
-winClosed : (char *)_winClosed;
-- (void)flushWin : (NSRect) rect;
+- (void)openWin:(unsigned char *)buf sx:(int)sx sy:(int)sy winClosed:(char *)_winClosed;
+- (void)flushWin:(NSRect)rect;
 @end
 
 @implementation Main
@@ -87,8 +78,7 @@ winClosed : (char *)_winClosed;
        [pool release];
 }
 
-- (void)createThread : (int)_argc
-args : (const unsigned char **)_argv
+- (void)createThread : (int)_argc args:(const unsigned char **)_argv
 {
     argc = _argc;
     argv = _argv;
@@ -102,10 +92,7 @@ args : (const unsigned char **)_argv
     return YES;
 }
 
-- (void)openWin : (unsigned char *)buf
-sx : (int) sx
-sy : (int) sy
-winClosed : (char *)_winClosed
+- (void)openWin:(unsigned char *)buf sx:(int)sx sy:(int) sy winClosed:(char *)_winClosed
 {
     
        NSWindow* window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, sx, sy) styleMask: NSTitledWindowMask | NSMiniaturizableWindowMask | NSClosableWindowMask backing: NSBackingStoreBuffered defer: NO];
@@ -120,7 +107,7 @@ winClosed : (char *)_winClosed
        [window.contentView addSubview:_view];
 }
 
-- (void)flushWin : (NSRect) rect
+- (void)flushWin : (NSRect)rect
 {
     [_view drawRect:rect];
 }
index c87b381..19ba8d9 100644 (file)
@@ -537,6 +537,7 @@ void devFunc(HOSECPU_RuntimeEnvironment *r)
                break;
 
        case 0xff45:
+        //drawLine
                c = loadColor(r, 0x36);
                if (r->ireg[0x32] < 0 || r->ireg[0x32] >= v_xsiz || r->ireg[0x33] < 0 || r->ireg[0x33] >= v_ysiz)
                        (*(r->errHndl))(r);
diff --git a/main.c b/main.c
index 92905e4..e07b863 100644 (file)
--- a/main.c
+++ b/main.c
@@ -182,7 +182,7 @@ int HeavyOSECPUMain(int argc, char **argv)
        env.preg[0x28].typ = 0; // TYP_CODE
        env.preg[0x28].p0 = p28;
        env.preg[0x28].p1 = p28 + 1;
-       //      env.preg[0x00].p = malloc(1024 * 1024) + (1024 * 1024 - 32);
+       //env.preg[0x00].p = malloc(1024 * 1024) + (1024 * 1024 - 32);
        env.junkStack = malloc(stacksiz << 20);
        env.junkStack1 = env.junkStack + (stacksiz << 20);
        env.winClosed = 0;