mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
Revert "Remove true and false ARI checks now that we use stdbool.h."
As we cannot use type bool until conversion to C++ is official, this patch re-instates the ARI checks for "true/false". gdb/ChangeLog: * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2015-03-02 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
|
||||||
|
|
||||||
2015-03-02 Joel Brobecker <brobecker@adacore.com>
|
2015-03-02 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* utils.h: Remove <stdbool.h> #include.
|
* utils.h: Remove <stdbool.h> #include.
|
||||||
|
@ -1145,6 +1145,26 @@ Do not use `boolean'\'', use `int'\'' instead"
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BEGIN { doc["false"] = "\
|
||||||
|
Definitely do not use `false'\'' in boolean expressions"
|
||||||
|
category["false"] = ari_regression
|
||||||
|
}
|
||||||
|
/(^|[^_[:alnum:]])false([^_[:alnum:]]|$)/ {
|
||||||
|
if (is_yacc_or_lex == 0) {
|
||||||
|
fail("false")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
BEGIN { doc["true"] = "\
|
||||||
|
Do not try to use `true'\'' in boolean expressions"
|
||||||
|
category["true"] = ari_regression
|
||||||
|
}
|
||||||
|
/(^|[^_[:alnum:]])true([^_[:alnum:]]|$)/ {
|
||||||
|
if (is_yacc_or_lex == 0) {
|
||||||
|
fail("true")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Typedefs that are either redundant or can be reduced to `struct
|
# Typedefs that are either redundant or can be reduced to `struct
|
||||||
# type *''.
|
# type *''.
|
||||||
# Must be placed before if assignment otherwise ARI exceptions
|
# Must be placed before if assignment otherwise ARI exceptions
|
||||||
|
Reference in New Issue
Block a user