mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Add a button upper/lower half driver
This commit is contained in:
@@ -688,6 +688,8 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
else if (line[n+1] == ')')
|
||||
{
|
||||
/* REVISIT: This gives false alarms on syntax like *--ptr */
|
||||
|
||||
if (line[n-1] != ' ')
|
||||
{
|
||||
fprintf(stderr,
|
||||
@@ -748,6 +750,8 @@ int main(int argc, char **argv, char **envp)
|
||||
n++;
|
||||
}
|
||||
|
||||
/* REVISIT: This gives false alarms on syntax like *--ptr */
|
||||
|
||||
if (line[curr] != '-' && line[next] != ' ' && line[next] != '\n')
|
||||
{
|
||||
fprintf(stderr,
|
||||
|
||||
Reference in New Issue
Block a user