From 25b6570bf3fd8f2ea6cbaee3e3051fd69fa1a3bc Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 3 Mar 2013 01:11:10 +0000 Subject: Fix inconsistent return types. Use stdarg.h more. --- cad/magic/patches/patch-netmenu_nmInt.h | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 cad/magic/patches/patch-netmenu_nmInt.h (limited to 'cad/magic/patches/patch-netmenu_nmInt.h') diff --git a/cad/magic/patches/patch-netmenu_nmInt.h b/cad/magic/patches/patch-netmenu_nmInt.h new file mode 100644 index 00000000000..ddc210b10bf --- /dev/null +++ b/cad/magic/patches/patch-netmenu_nmInt.h @@ -0,0 +1,100 @@ +$NetBSD: patch-netmenu_nmInt.h,v 1.1 2013/03/03 01:11:11 joerg Exp $ + +--- netmenu/nmInt.h.orig 2006-04-10 22:03:14.000000000 +0000 ++++ netmenu/nmInt.h +@@ -24,6 +24,8 @@ + #define _NMINT_H + + #include "windows/windows.h" ++#include "textio/txcommands.h" ++#include "tiles/tile.h" + + /* The declarations below define the elements displayed in the + * net-list menu. There are three kinds of things: +@@ -108,26 +110,30 @@ extern void NMAddPoint(); + extern void NMDeletePoint(); + extern void NMClearPoints(); + extern void NMUpdatePoints(); +-extern int NMRedrawPoints(); + +-extern int NMRedrawCell(); + extern void NMShowCell(); + extern void NMUnsetCell(); + extern void NMShowUnderBox(); +-extern int NMShowRoutedNet(); + extern void NMShowLabel(); + +-extern int NMRipup(); + extern int NMRipupList(); +-extern int NMExtract(); + extern void NMSelectNet(); + + extern bool NMCheckWritten(); +-extern int NMWriteAll(); + + extern void NMUndo(); + extern void NMUndoInit(); + ++void NMcommand(MagWindow *w, TxCommand *cmd); ++void NMredisplay(MagWindow *w, Rect *rootArea, Rect *clipArea); ++void NMDeleteTerm(char *name); ++void NMWriteAll(void); ++void NMRedrawPoints(MagWindow *window, Plane *plane); ++void NMRedrawCell(MagWindow *window, Plane *plane); ++void NMShowRoutedNet(char *netName); ++void NMRipup(void); ++void NMExtract(void); ++ + /* Various global variables (within this module): */ + + extern char * NMCurNetName; +$NetBSD: patch-netmenu_nmInt.h,v 1.1 2013/03/03 01:11:11 joerg Exp $ + +--- netmenu/nmInt.h.orig 2006-04-10 22:03:14.000000000 +0000 ++++ netmenu/nmInt.h +@@ -24,6 +24,8 @@ + #define _NMINT_H + + #include "windows/windows.h" ++#include "textio/txcommands.h" ++#include "tiles/tile.h" + + /* The declarations below define the elements displayed in the + * net-list menu. There are three kinds of things: +@@ -108,26 +110,30 @@ extern void NMAddPoint(); + extern void NMDeletePoint(); + extern void NMClearPoints(); + extern void NMUpdatePoints(); +-extern int NMRedrawPoints(); + +-extern int NMRedrawCell(); + extern void NMShowCell(); + extern void NMUnsetCell(); + extern void NMShowUnderBox(); +-extern int NMShowRoutedNet(); + extern void NMShowLabel(); + +-extern int NMRipup(); + extern int NMRipupList(); +-extern int NMExtract(); + extern void NMSelectNet(); + + extern bool NMCheckWritten(); +-extern int NMWriteAll(); + + extern void NMUndo(); + extern void NMUndoInit(); + ++void NMcommand(MagWindow *w, TxCommand *cmd); ++void NMredisplay(MagWindow *w, Rect *rootArea, Rect *clipArea); ++void NMDeleteTerm(char *name); ++void NMWriteAll(void); ++void NMRedrawPoints(MagWindow *window, Plane *plane); ++void NMRedrawCell(MagWindow *window, Plane *plane); ++void NMShowRoutedNet(char *netName); ++void NMRipup(void); ++void NMExtract(void); ++ + /* Various global variables (within this module): */ + + extern char * NMCurNetName; -- cgit v1.2.3