aboutsummaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorYasushi SHOJI <yashi@spacecubics.com>2021-08-29 18:18:01 +0900
committerAntonio Borneo <borneo.antonio@gmail.com>2021-10-02 13:18:15 +0000
commit05752557dd0dcab76250ab12377d59435b74204d (patch)
tree52944824e93ab48977e7bb8f14e32337b63ac897 /src/helper
parente4872054108a3a18dc651b45dea679696e14ee7f (diff)
downloadriscv-openocd-05752557dd0dcab76250ab12377d59435b74204d.zip
riscv-openocd-05752557dd0dcab76250ab12377d59435b74204d.tar.gz
riscv-openocd-05752557dd0dcab76250ab12377d59435b74204d.tar.bz2
helper: Remove src/helper from include dirs
The header files under src/helper/ can currently be included with either #include <bits.h> or #include <helper/bits.h> This is because we specify both "src/" and "src/helper/" directories as include directories. Some files name under "src/helper/", such as types.h, log.h, and util.h are too generic and could be ambiguous depending on the search path. This commit remove "src/helper/" from our include dir and make C files include explicitly. Change-Id: I38fc9b96ba01a513d4a72757d40007e21b502f25 Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6507 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/command.h2
-rw-r--r--src/helper/jim-nvp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/command.h b/src/helper/command.h
index f387019..fb9e50c 100644
--- a/src/helper/command.h
+++ b/src/helper/command.h
@@ -24,8 +24,8 @@
#include <stdint.h>
#include <stdbool.h>
-#include <jim-nvp.h>
+#include <helper/jim-nvp.h>
#include <helper/list.h>
#include <helper/types.h>
diff --git a/src/helper/jim-nvp.c b/src/helper/jim-nvp.c
index e21bc68..738ed79 100644
--- a/src/helper/jim-nvp.c
+++ b/src/helper/jim-nvp.c
@@ -41,8 +41,8 @@
* official policies, either expressed or implied, of the Jim Tcl Project.
*/
+#include "jim-nvp.h"
#include <string.h>
-#include <jim-nvp.h>
int jim_get_nvp(Jim_Interp *interp,
Jim_Obj *objptr, const struct jim_nvp *nvp_table, const struct jim_nvp **result)