Removed superflous code.
[deliverable/binutils-gdb.git] / gdb / mac-xdep.c
index 59219068727480e0727c9f453155fe73f1d3d019..20a79a53c88a5e9f40c91d90310581214e9b4a8f 100644 (file)
@@ -16,14 +16,13 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
 
 #include "readline.h"
 #include "history.h"
 
-#include <Values.h>
 #include <Types.h>
 #include <Resources.h>
 #include <QuickDraw.h>
@@ -45,7 +44,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <Packages.h>
 #include <Traps.h>
 #include <Lists.h>
-#include <GestaltEqu.h>
+#include <Gestalt.h>
 #include <PPCToolbox.h>
 #include <AppleEvents.h>
 #include <StandardFile.h>
@@ -54,7 +53,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #ifdef MPW
 #define QD(whatever) (qd.##whatever)
 #define QDPat(whatever) (&(qd.##whatever))
-#endif
+#endif /* MPW */
 
 #ifdef THINK_C
 #define QD(whatever) (whatever)
@@ -81,6 +80,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "mac-defs.h"
 
+int debug_openp = 0;
+
 /* This is true if we are running as a standalone application.  */
 
 int mac_app;
@@ -123,6 +124,7 @@ mac_init ()
 {
   SysEnvRec se;
   int eventloopdone = 0;
+  char *str;
   Boolean gotevent;
   Point mouse;
   EventRecord event;
@@ -135,6 +137,13 @@ mac_init ()
 
   mac_app = 0;
 
+  str = getenv("DEBUG_GDB");
+  if (str != NULL && str[0] != '\0')
+    {
+      if (strcmp(str, "openp") == 0)
+       debug_openp = 1;
+    }
+  
   /* Don't do anything if we`re running under MPW. */
   if (!StandAlone)
     return;
@@ -532,7 +541,13 @@ do_mouse_down (WindowPtr win, EventRecord *event)
                }
              break;
            default:
+#if 0 /* don't deal with right now */
+#if 1 /* universal headers */
+             value = TrackControl (control, mouse, (ControlActionUPP) v_scroll_proc);
+#else
              value = TrackControl (control, mouse, (ProcPtr) v_scroll_proc);
+#endif
+#endif
              break;
            }
        }
@@ -921,8 +936,6 @@ tilde_expand (char *str)
 
 /* Modified versions of standard I/O. */
 
-#include <stdarg.h>
-
 #undef fprintf
 
 int
This page took 0.024852 seconds and 4 git commands to generate.