pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/pcemu/patches Use standard patch format; spl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4dc3a21549a8
branches:  trunk
changeset: 477795:4dc3a21549a8
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jul 09 12:45:03 2004 +0000

description:
Use standard patch format; split up multi-patch into separate files.

diffstat:

 emulators/pcemu/patches/patch-ac |   86 +++++++++----------------
 emulators/pcemu/patches/patch-ad |  127 +++++++++-----------------------------
 emulators/pcemu/patches/patch-ae |   20 ++---
 emulators/pcemu/patches/patch-af |   52 ++++++---------
 emulators/pcemu/patches/patch-ai |   14 ++++
 emulators/pcemu/patches/patch-aj |   38 +++++++++++
 emulators/pcemu/patches/patch-ak |   12 +++
 7 files changed, 156 insertions(+), 193 deletions(-)

diffs (truncated from 377 to 300 lines):

diff -r a9dc9fae7782 -r 4dc3a21549a8 emulators/pcemu/patches/patch-ac
--- a/emulators/pcemu/patches/patch-ac  Fri Jul 09 12:42:20 2004 +0000
+++ b/emulators/pcemu/patches/patch-ac  Fri Jul 09 12:45:03 2004 +0000
@@ -1,55 +1,31 @@
-$NetBSD: patch-ac,v 1.2 1999/12/29 01:45:39 wiz Exp $
-*** mfs.c.orig Wed Jun 22 16:24:51 1994
---- mfs.c      Tue Jan 24 18:41:20 1995
-***************
-*** 319,325 ****
---- 319,327 ----
-  #include <errno.h>
-  #include <sys/param.h>
-  #include <stdlib.h>
-+ #if !__STDC__
-  #include <malloc.h>
-+ #endif
-  
-  #ifdef SOLARIS
-  #include <fcntl.h>
-***************
-*** 327,335 ****
-  #endif
-  
-  #if defined(SGI) || defined(RS6000)
-! #include <sys/statfs.h>
-  #else
-! #include <sys/vfs.h>
-  #endif
-  
-  
---- 329,342 ----
-  #endif
-  
-  #if defined(SGI) || defined(RS6000)
-! # include <sys/statfs.h>
-  #else
-! # include <sys/param.h>
-! # if BSD >= 199103
-! #  include <sys/mount.h>
-! # else
-! #  include <sys/vfs.h>
-! # endif /* new BSD */
-  #endif
-  
-  
-*** mfs.h.orig Wed Jun 22 16:24:51 1994
---- mfs.h      Tue Jan 24 18:37:18 1995
-***************
-*** 45,51 ****
---- 45,53 ----
-  
-  #include "mfs_link.h"
-  
-+ #if BSD < 199306             /* newer BSDs have it in <stdio.h> */
-  extern char *sys_errlist[];
-+ #endif
-  
-  #if !defined(__hpux) && !defined(SOLARIS) && !defined(SGI) && !defined(RS6000)
-  #define strerror(x) sys_errlist[x]
+$NetBSD: patch-ac,v 1.3 2004/07/09 12:45:03 wiz Exp $
+
+--- mfs.c.orig 1994-06-22 16:24:51.000000000 +0200
++++ mfs.c
+@@ -319,7 +319,9 @@ TODO:
+ #include <errno.h>
+ #include <sys/param.h>
+ #include <stdlib.h>
++#if !__STDC__
+ #include <malloc.h>
++#endif
+ 
+ #ifdef SOLARIS
+ #include <fcntl.h>
+@@ -327,9 +329,14 @@ TODO:
+ #endif
+ 
+ #if defined(SGI) || defined(RS6000)
+-#include <sys/statfs.h>
++# include <sys/statfs.h>
+ #else
+-#include <sys/vfs.h>
++# include <sys/param.h>
++# if BSD >= 199103
++#  include <sys/mount.h>
++# else
++#  include <sys/vfs.h>
++# endif /* new BSD */
+ #endif
+ 
+ 
diff -r a9dc9fae7782 -r 4dc3a21549a8 emulators/pcemu/patches/patch-ad
--- a/emulators/pcemu/patches/patch-ad  Fri Jul 09 12:42:20 2004 +0000
+++ b/emulators/pcemu/patches/patch-ad  Fri Jul 09 12:45:03 2004 +0000
@@ -1,95 +1,32 @@
-$NetBSD: patch-ad,v 1.2 1999/12/29 01:45:39 wiz Exp $
-*** main.c.orig        Wed Jun 22 16:24:50 1994
---- main.c     Tue Jan 24 18:37:18 1995
-***************
-*** 39,44 ****
---- 39,56 ----
-      exit(0);
-  }
-  
-+ static char *set_keymap(char *buf)
-+ {
-+      char c;
-+      int code;
-+      
-+      if(sscanf(buf, " %*s %i=%c", &code, &c) != 2)
-+              return "usage: keymap code=char";
-+      if(put_scan_table(code, (unsigned char)c))
-+              return "bad value for keymap";
-+      return 0;
-+ }
-+ 
-  
-  void check_error(char *msg, int line)
-  {
-***************
-*** 89,94 ****
---- 101,108 ----
-              check_error(set_update_rate(strtol(value, NULL,10)), line);
-          else if (strcasecmp(keyword,"cursorspeed") == 0)
-              check_error(set_cursor_rate(strtol(value, NULL,10)), line);
-+      else if (strcasecmp(keyword,"keymap") == 0)
-+              check_error(set_keymap(buffer), line);
-          else
-              check_error("Syntax error in .pcemu file", line);
-      }
-*** xstuff.c.orig      Wed Jun 22 16:24:51 1994
---- xstuff.c   Tue Jan 24 18:37:19 1995
-***************
-*** 316,322 ****
-  }
-  
-  
-! static BYTE scan_table1[] =
-  {
-      0x39, 0x02, 
-  #ifdef KBUK             /* double quotes, hash symbol */
---- 316,322 ----
-  }
-  
-  
-! static BYTE scan_table1[256 - 0x20] =
-  {
-      0x39, 0x02, 
-  #ifdef KBUK             /* double quotes, hash symbol */
-***************
-*** 360,365 ****
---- 360,366 ----
-  #else
-      0x29,
-  #endif
-+     0
-  };
-  
-  
-***************
-*** 458,463 ****
---- 459,474 ----
-              return (scan_table2[i].scan_code);
-  
-      return 0;
-+ }
-+ 
-+ 
-+ int put_scan_table(BYTE code, unsigned char c)
-+ {
-+      /* interface to overload scan_table1 from .pcemurc */
-+      if(c < ' ' || c >= ' ' + sizeof scan_table1)
-+              return 1;
-+      scan_table1[c - ' '] = code;
-+      return 0;
-  }
-  
-  
-*** xstuff.h.orig      Wed Jun 22 16:24:51 1994
---- xstuff.h   Tue Jan 24 18:37:19 1995
-***************
-*** 17,22 ****
---- 17,23 ----
-  
-  void start_X(void);
-  void end_X(void);
-+ int put_scan_table(BYTE, unsigned char);
-  void process_Xevents(void);
-  void flush_X(void);
-  
+$NetBSD: patch-ad,v 1.3 2004/07/09 12:45:03 wiz Exp $
+
+--- main.c.orig        1994-06-22 16:24:50.000000000 +0200
++++ main.c
+@@ -39,6 +39,18 @@ void exit_emu(void)
+     exit(0);
+ }
+ 
++static char *set_keymap(char *buf)
++{
++      char c;
++      int code;
++      
++      if(sscanf(buf, " %*s %i=%c", &code, &c) != 2)
++              return "usage: keymap code=char";
++      if(put_scan_table(code, (unsigned char)c))
++              return "bad value for keymap";
++      return 0;
++}
++
+ 
+ void check_error(char *msg, int line)
+ {
+@@ -89,6 +101,8 @@ void read_pcemurc(void)
+             check_error(set_update_rate(strtol(value, NULL,10)), line);
+         else if (strcasecmp(keyword,"cursorspeed") == 0)
+             check_error(set_cursor_rate(strtol(value, NULL,10)), line);
++      else if (strcasecmp(keyword,"keymap") == 0)
++              check_error(set_keymap(buffer), line);
+         else
+             check_error("Syntax error in .pcemu file", line);
+     }
diff -r a9dc9fae7782 -r 4dc3a21549a8 emulators/pcemu/patches/patch-ae
--- a/emulators/pcemu/patches/patch-ae  Fri Jul 09 12:42:20 2004 +0000
+++ b/emulators/pcemu/patches/patch-ae  Fri Jul 09 12:45:03 2004 +0000
@@ -1,11 +1,9 @@
-$NetBSD: patch-ae,v 1.2 1999/12/29 01:45:39 wiz Exp $
-*** programs/config.sys.orig   Mon Mar 27 21:27:23 1995
---- programs/config.sys        Mon Mar 27 22:19:26 1995
-***************
-*** 1,2 ****
-! device=emufs.sys /
-! stacks 9,512
---- 1,3 ----
-! device=\emufs.sys /usr/local/lib/pcemu/C
-! stacks 9,512
-! 
+$NetBSD: patch-ae,v 1.3 2004/07/09 12:45:03 wiz Exp $
+
+--- programs/config.sys.orig   1994-06-22 16:29:25.000000000 +0200
++++ programs/config.sys
+@@ -1,2 +1,3 @@
+-device=emufs.sys /
++device=\emufs.sys /usr/local/lib/pcemu/C
+ stacks 9,512
++
diff -r a9dc9fae7782 -r 4dc3a21549a8 emulators/pcemu/patches/patch-af
--- a/emulators/pcemu/patches/patch-af  Fri Jul 09 12:42:20 2004 +0000
+++ b/emulators/pcemu/patches/patch-af  Fri Jul 09 12:45:03 2004 +0000
@@ -1,32 +1,20 @@
-$NetBSD: patch-af,v 1.2 1999/12/29 01:45:39 wiz Exp $
-*** cpu.h~     Sun Apr 11 22:45:18 1999
---- cpu.h      Sun Apr 11 22:46:50 1999
-***************
-*** 113,125 ****
-      format and back again. Obviously there is nothing to do for little-endian
-      machines... */
-  
-! #if defined(LITTLE_ENDIAN)
-  #   define ChangeE(x) (WORD)(x)
-  #else
-  #   define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8)))
-  #endif
-  
-! #if defined(LITTLE_ENDIAN) && !defined(ALIGNED_ACCESS)
-  #   define ReadWord(x) (*(x))
-  #   define WriteWord(x,y) (*(x) = (y))
-  #   define CopyWord(x,y) (*x = *y)
---- 113,125 ----
-      format and back again. Obviously there is nothing to do for little-endian
-      machines... */
-  
-! #if BYTE_ORDER == LITTLE_ENDIAN
-  #   define ChangeE(x) (WORD)(x)
-  #else
-  #   define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8)))
-  #endif
-  
-! #if BYTE_ORDER == LITTLE_ENDIAN && !defined(ALIGNED_ACCESS)
-  #   define ReadWord(x) (*(x))
-  #   define WriteWord(x,y) (*(x) = (y))
-  #   define CopyWord(x,y) (*x = *y)
+$NetBSD: patch-af,v 1.3 2004/07/09 12:45:03 wiz Exp $
+
+--- cpu.h.orig 1994-06-22 16:24:50.000000000 +0200
++++ cpu.h
+@@ -113,13 +113,13 @@
+     format and back again. Obviously there is nothing to do for little-endian
+     machines... */
+ 
+-#if defined(LITTLE_ENDIAN)
++#if BYTE_ORDER == LITTLE_ENDIAN
+ #   define ChangeE(x) (WORD)(x)
+ #else
+ #   define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8)))
+ #endif
+ 
+-#if defined(LITTLE_ENDIAN) && !defined(ALIGNED_ACCESS)
++#if BYTE_ORDER == LITTLE_ENDIAN && !defined(ALIGNED_ACCESS)
+ #   define ReadWord(x) (*(x))
+ #   define WriteWord(x,y) (*(x) = (y))



Home | Main Index | Thread Index | Old Index