diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-28 21:22:12 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-28 21:22:12 +0000 |
commit | 46e0b24f80426eebbde0bb28e2f9075fc3141a6e (patch) | |
tree | 8ea1a5fdfdba85a8c2a066a09b4a28546171a2b0 /gcc/toplev.h | |
parent | de151bb111bbf09633c3180e529a0f7ff1a35471 (diff) | |
download | gcc-46e0b24f80426eebbde0bb28e2f9075fc3141a6e.tar.gz |
2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
* toplev.h (skip_leading_substring): New macro.
* toplev.c (decode_f_option): Use skip_leading_substring instead
of strncmp.
(decode_W_option): Likewise.
cp/
2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
* decl2.c (lang_decode_option): Use skip_leading_substring instead
of plain strncmp.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34240 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r-- | gcc/toplev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h index 9f7ed84e027..fdfee432e51 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -26,6 +26,11 @@ union tree_node; struct rtx_def; #endif +/* If non-NULL, return one past-the-end of the matching SUBPART of + the WHOLE string. */ +#define skip_leading_substring(whole, part) \ + (strncmp (whole, part, strlen (part)) ? NULL : whole + strlen (part)) + extern int read_integral_parameter PARAMS ((const char *, const char *, const int)); extern int count_error PARAMS ((int)); |