You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2021/05/31 06:52:04 UTC
[incubator-nuttx-apps] 01/02: Include assert.h in necessary place
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 213e60232f01ee09190043e41394d04bd52d092a
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon May 24 17:41:49 2021 +0800
Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
examples/foc/foc_device.c | 1 +
examples/foc/foc_fixed16_thr.c | 1 +
examples/foc/foc_float_thr.c | 1 +
examples/foc/foc_main.c | 1 +
interpreters/bas/bas_statement.c | 1 +
interpreters/bas/bas_vt100.c | 1 +
system/nxlooper/nxlooper.c | 1 +
system/nxplayer/nxplayer.c | 1 +
system/nxrecorder/nxrecorder.c | 1 +
9 files changed, 9 insertions(+)
diff --git a/examples/foc/foc_device.c b/examples/foc/foc_device.c
index a69460c..605ec67 100644
--- a/examples/foc/foc_device.c
+++ b/examples/foc/foc_device.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <fcntl.h>
+#include <assert.h>
#include "foc_debug.h"
#include "foc_device.h"
diff --git a/examples/foc/foc_fixed16_thr.c b/examples/foc/foc_fixed16_thr.c
index 7a7cde4..979b3d4 100644
--- a/examples/foc/foc_fixed16_thr.c
+++ b/examples/foc/foc_fixed16_thr.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <fcntl.h>
+#include <assert.h>
#include <dspb16.h>
diff --git a/examples/foc/foc_float_thr.c b/examples/foc/foc_float_thr.c
index 0034414..143703e 100644
--- a/examples/foc/foc_float_thr.c
+++ b/examples/foc/foc_float_thr.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <fcntl.h>
+#include <assert.h>
#include <dsp.h>
diff --git a/examples/foc/foc_main.c b/examples/foc/foc_main.c
index e95c43c..ef9ce90 100644
--- a/examples/foc/foc_main.c
+++ b/examples/foc/foc_main.c
@@ -29,6 +29,7 @@
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <assert.h>
#include <errno.h>
#include <mqueue.h>
#include <pthread.h>
diff --git a/interpreters/bas/bas_statement.c b/interpreters/bas/bas_statement.c
index 9ac2f9e..60e1e81 100644
--- a/interpreters/bas/bas_statement.c
+++ b/interpreters/bas/bas_statement.c
@@ -64,6 +64,7 @@
#include <stdlib.h>
#include <strings.h>
+#include <assert.h>
#include "bas_statement.h"
diff --git a/interpreters/bas/bas_vt100.c b/interpreters/bas/bas_vt100.c
index ccececb..0ed1dd0 100644
--- a/interpreters/bas/bas_vt100.c
+++ b/interpreters/bas/bas_vt100.c
@@ -41,6 +41,7 @@
#include <sys/stat.h>
#include <stdio.h>
+#include <assert.h>
#include <nuttx/vt100.h>
diff --git a/system/nxlooper/nxlooper.c b/system/nxlooper/nxlooper.c
index ac0d0b2..ae26dd6 100644
--- a/system/nxlooper/nxlooper.c
+++ b/system/nxlooper/nxlooper.c
@@ -34,6 +34,7 @@
#include <strings.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <assert.h>
#include <errno.h>
#include <dirent.h>
#include <debug.h>
diff --git a/system/nxplayer/nxplayer.c b/system/nxplayer/nxplayer.c
index fad25a0..53ac436 100644
--- a/system/nxplayer/nxplayer.c
+++ b/system/nxplayer/nxplayer.c
@@ -63,6 +63,7 @@
#include <strings.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <assert.h>
#include <errno.h>
#include <dirent.h>
#include <debug.h>
diff --git a/system/nxrecorder/nxrecorder.c b/system/nxrecorder/nxrecorder.c
index d34b722..fada84f 100644
--- a/system/nxrecorder/nxrecorder.c
+++ b/system/nxrecorder/nxrecorder.c
@@ -34,6 +34,7 @@
#include <strings.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <assert.h>
#include <errno.h>
#include <dirent.h>
#include <debug.h>