* tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger

value or to PATH_MAX when possible.
This commit is contained in:
Joel Brobecker 2007-12-21 07:37:26 +00:00
parent 3463063964
commit 2d42f9a81c
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-12-21 Denis Pilat <denis.pilat@st.com>
* tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
value or to PATH_MAX when possible.
2007-12-20 Joel Brobecker <brobecker@adacore.com>
* rs6000-tdep.h: Remove defs.h #include.

View File

@ -195,8 +195,11 @@ struct tui_command_element
char *line;
};
#define MAX_LOCATOR_ELEMENT_LEN 100
#ifdef PATH_MAX
# define MAX_LOCATOR_ELEMENT_LEN PATH_MAX
#else
# define MAX_LOCATOR_ELEMENT_LEN 1024
#endif
/* Elements in the locator window content. */
struct tui_locator_element