Make #include guard naming consistent
Change-Id: Ie13e8af0bb74ed290f811dcad64ad06c9d8cb4fa Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/2956 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
This commit is contained in:
committed by
Andreas Fritiofson
parent
d0e763ac7e
commit
d4b7cbff88
@@ -19,8 +19,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef BINARYBUFFER_H
|
||||
#define BINARYBUFFER_H
|
||||
#ifndef OPENOCD_HELPER_BINARYBUFFER_H
|
||||
#define OPENOCD_HELPER_BINARYBUFFER_H
|
||||
|
||||
#include "list.h"
|
||||
|
||||
@@ -238,4 +238,4 @@ int unhexify(char *bin, const char *hex, int count);
|
||||
int hexify(char *hex, const char *bin, int count, int out_maxlen);
|
||||
void buffer_shr(void *_buf, unsigned buf_len, unsigned count);
|
||||
|
||||
#endif /* BINARYBUFFER_H */
|
||||
#endif /* OPENOCD_HELPER_BINARYBUFFER_H */
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef COMMAND_H
|
||||
#define COMMAND_H
|
||||
#ifndef OPENOCD_HELPER_COMMAND_H
|
||||
#define OPENOCD_HELPER_COMMAND_H
|
||||
|
||||
#include <jim-nvp.h>
|
||||
|
||||
@@ -415,4 +415,4 @@ COMMAND_HELPER(handle_command_parse_bool, bool *out, const char *label);
|
||||
void script_debug(Jim_Interp *interp, const char *cmd,
|
||||
unsigned argc, Jim_Obj * const *argv);
|
||||
|
||||
#endif /* COMMAND_H */
|
||||
#endif /* OPENOCD_HELPER_COMMAND_H */
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef CONFIGURATION_H
|
||||
#define CONFIGURATION_H
|
||||
#ifndef OPENOCD_HELPER_CONFIGURATION_H
|
||||
#define OPENOCD_HELPER_CONFIGURATION_H
|
||||
|
||||
#include <helper/command.h>
|
||||
|
||||
@@ -40,4 +40,4 @@ FILE *open_file_from_path(const char *file, const char *mode);
|
||||
char *find_file(const char *name);
|
||||
char *get_home_dir(const char *append_path);
|
||||
|
||||
#endif /* CONFIGURATION_H */
|
||||
#endif /* OPENOCD_HELPER_CONFIGURATION_H */
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef FILEIO_H
|
||||
#define FILEIO_H
|
||||
#ifndef OPENOCD_HELPER_FILEIO_H
|
||||
#define OPENOCD_HELPER_FILEIO_H
|
||||
|
||||
#define FILEIO_MAX_ERROR_STRING (128)
|
||||
|
||||
@@ -66,4 +66,4 @@ int fileio_size(struct fileio *fileio, size_t *size);
|
||||
#define ERROR_FILEIO_RESOURCE_TYPE_UNKNOWN (-1204)
|
||||
#define ERROR_FILEIO_OPERATION_NOT_SUPPORTED (-1205)
|
||||
|
||||
#endif /* FILEIO_H */
|
||||
#endif /* OPENOCD_HELPER_FILEIO_H */
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef HELPER_IOUTILS_H
|
||||
#define HELPER_IOUTILS_H
|
||||
#ifndef OPENOCD_HELPER_IOUTIL_H
|
||||
#define OPENOCD_HELPER_IOUTIL_H
|
||||
|
||||
struct command_context;
|
||||
|
||||
int ioutil_init(struct command_context *cmd_ctx);
|
||||
|
||||
#endif /* HELPER_IOUTILS_H */
|
||||
#endif /* OPENOCD_HELPER_IOUTIL_H */
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef JEP106_H
|
||||
#define JEP106_H
|
||||
#ifndef OPENOCD_HELPER_JEP106_H
|
||||
#define OPENOCD_HELPER_JEP106_H
|
||||
|
||||
/**
|
||||
* Get the manufacturer name associated with a JEP106 ID.
|
||||
@@ -29,4 +29,4 @@
|
||||
*/
|
||||
const char *jep106_manufacturer(unsigned bank, unsigned id);
|
||||
|
||||
#endif
|
||||
#endif /* OPENOCD_HELPER_JEP106_H */
|
||||
|
||||
@@ -41,8 +41,8 @@
|
||||
* official policies, either expressed or implied, of the Jim Tcl Project.
|
||||
*/
|
||||
|
||||
#ifndef JIM_NVP_H
|
||||
#define JIM_NVP_H
|
||||
#ifndef OPENOCD_HELPER_JIM_NVP_H
|
||||
#define OPENOCD_HELPER_JIM_NVP_H
|
||||
|
||||
#include <jim.h>
|
||||
|
||||
@@ -326,4 +326,4 @@ void Jim_GetOpt_NvpUnknown(Jim_GetOptInfo *goi, const Jim_Nvp *lookup, int hadpr
|
||||
*/
|
||||
int Jim_GetOpt_Enum(Jim_GetOptInfo *goi, const char *const *lookup, int *puthere);
|
||||
|
||||
#endif
|
||||
#endif /* OPENOCD_HELPER_JIM_NVP_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef _LINUX_LIST_H
|
||||
#define _LINUX_LIST_H
|
||||
#ifndef OPENOCD_HELPER_LIST_H
|
||||
#define OPENOCD_HELPER_LIST_H
|
||||
|
||||
/* begin local changes */
|
||||
#include <helper/types.h>
|
||||
@@ -734,4 +734,4 @@ static inline void hlist_move_list(struct hlist_head *old,
|
||||
({ tpos = hlist_entry(pos, typeof(*tpos), member); 1; }); \
|
||||
pos = n)
|
||||
|
||||
#endif
|
||||
#endif /* OPENOCD_HELPER_LIST_H */
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H
|
||||
#ifndef OPENOCD_HELPER_LOG_H
|
||||
#define OPENOCD_HELPER_LOG_H
|
||||
|
||||
#include <helper/command.h>
|
||||
|
||||
@@ -139,4 +139,4 @@ extern int debug_level;
|
||||
#define ERROR_WAIT (-5)
|
||||
|
||||
|
||||
#endif /* LOG_H */
|
||||
#endif /* OPENOCD_HELPER_LOG_H */
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef REPLACEMENTS_H
|
||||
#define REPLACEMENTS_H
|
||||
#ifndef OPENOCD_HELPER_REPLACEMENTS_H
|
||||
#define OPENOCD_HELPER_REPLACEMENTS_H
|
||||
|
||||
/* MIN,MAX macros */
|
||||
#ifndef MIN
|
||||
@@ -280,4 +280,4 @@ typedef struct {
|
||||
const char *libusb_error_name(int error_code);
|
||||
#endif /* defined HAVE_LIBUSB1 && !defined HAVE_LIBUSB_ERROR_NAME */
|
||||
|
||||
#endif /* REPLACEMENTS_H */
|
||||
#endif /* OPENOCD_HELPER_REPLACEMENTS_H */
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef SYSTEM_H
|
||||
#define SYSTEM_H
|
||||
#ifndef OPENOCD_HELPER_SYSTEM_H
|
||||
#define OPENOCD_HELPER_SYSTEM_H
|
||||
|
||||
/* standard C library header files */
|
||||
#include <stdio.h>
|
||||
@@ -86,4 +86,4 @@
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#endif /* SYSTEM_H */
|
||||
#endif /* OPENOCD_HELPER_SYSTEM_H */
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef TIME_SUPPORT_H
|
||||
#define TIME_SUPPORT_H
|
||||
#ifndef OPENOCD_HELPER_TIME_SUPPORT_H
|
||||
#define OPENOCD_HELPER_TIME_SUPPORT_H
|
||||
|
||||
#ifdef TIME_WITH_SYS_TIME
|
||||
# include <sys/time.h>
|
||||
@@ -57,4 +57,4 @@ float duration_elapsed(const struct duration *duration);
|
||||
/** @returns KB/sec for the elapsed @a duration and @a count bytes. */
|
||||
float duration_kbps(const struct duration *duration, size_t count);
|
||||
|
||||
#endif /* TIME_SUPPORT_H */
|
||||
#endif /* OPENOCD_HELPER_TIME_SUPPORT_H */
|
||||
|
||||
@@ -18,8 +18,9 @@
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
#ifndef OPENOCD_HELPER_TYPES_H
|
||||
#define OPENOCD_HELPER_TYPES_H
|
||||
|
||||
#include <stddef.h>
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
@@ -336,4 +337,4 @@ typedef uint64_t uintmax_t;
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* TYPES_H */
|
||||
#endif /* OPENOCD_HELPER_TYPES_H */
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef HELPER_UTILS_H
|
||||
#define HELPER_UTILS_H
|
||||
#ifndef OPENOCD_HELPER_UTIL_H
|
||||
#define OPENOCD_HELPER_UTIL_H
|
||||
|
||||
struct command_context;
|
||||
|
||||
int util_init(struct command_context *cmd_ctx);
|
||||
|
||||
#endif /* HELPER_UTILS_H */
|
||||
#endif /* OPENOCD_HELPER_UTIL_H */
|
||||
|
||||
Reference in New Issue
Block a user