X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fdefs.h;h=56d8d7b4c80ef2f715aa1c472356ab5990953d39;hb=1f8cc6dbc0da3d3248de330289713ab6cebb21f2;hp=435e47b32ac128cf3cbb6a349bcdc1c89d3873d5;hpb=ca6724c16a360b6297d7827cfd0173441ccd95c2;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/defs.h b/gdb/defs.h index 435e47b32a..56d8d7b4c8 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -698,7 +698,7 @@ extern void print_address (CORE_ADDR, struct ui_file *); /* From source.c */ -extern int openp (char *, int, char *, int, int, char **); +extern int openp (const char *, int, const char *, int, int, char **); extern int source_full_path_of (char *, char **); @@ -920,13 +920,7 @@ typedef struct ptid ptid_t; #include "fopen-same.h" #endif -/* Microsoft C can't deal with const pointers */ - -#ifdef _MSC_VER -#define CONST_PTR -#else #define CONST_PTR const -#endif /* Defaults for system-wide constants (if not defined by xm.h, we fake it). FIXME: Assumes 2's complement arithmetic */ @@ -1092,11 +1086,6 @@ extern char *getenv (const char *); #endif #ifdef HAVE_STDLIB_H -#if defined(_MSC_VER) && !defined(__cplusplus) -/* msvc defines these in stdlib.h for c code */ -#undef min -#undef max -#endif #include #endif #ifndef min @@ -1364,34 +1353,14 @@ extern int use_windows; #define DIRNAME_SEPARATOR ':' #endif -#ifndef SLASH_P -#if defined(__GO32__)||defined(_WIN32) -#define SLASH_P(X) ((X)=='\\') -#else -#define SLASH_P(X) ((X)=='/') -#endif -#endif - -#ifndef SLASH_CHAR -#if defined(__GO32__)||defined(_WIN32) -#define SLASH_CHAR '\\' -#else -#define SLASH_CHAR '/' -#endif -#endif - #ifndef SLASH_STRING -#if defined(__GO32__)||defined(_WIN32) +#ifdef _WIN32 #define SLASH_STRING "\\" #else #define SLASH_STRING "/" #endif #endif -#ifndef ROOTED_P -#define ROOTED_P(X) (SLASH_P((X)[0])) -#endif - /* Provide default definitions of PIDGET, TIDGET, and MERGEPID. The name ``TIDGET'' is a historical accident. Many uses of TIDGET in the code actually refer to a lightweight process id, i.e,