Skip to content

Commit

Permalink
header file include guards repaired
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-manvar committed Feb 17, 2016
1 parent c7dec59 commit fdda97a
Show file tree
Hide file tree
Showing 140 changed files with 742 additions and 638 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ _sketches.cpp
Makefile.local

# downloaded package sources
pkg/ccn-lite/ccn-lite
pkg/cmsis-dsp/cmsis-dsp
pkg/libcoap/libcoap
pkg/libfixmath/libfixmath
Expand All @@ -52,3 +53,9 @@ pkg/wakaama/wakaama

# Vagrant
.vagrant

# clang-complete command line argument lists (Vim: clang-complete, Atom: linter-clang, autocomplete-clang addons)
.clang_complete
# YouCompleteMe (https://github.com/Valloric/YouCompleteMe)
.ycm_extra_conf.py
.ycm_extra_conf.pyc
40 changes: 21 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
language: c
sudo: required
dist: trusty

language: generic

cache: apt

env:
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=static-tests
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m4_2
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m4_1
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m0_2
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m0_1
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=x86
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m3_2
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=cortex_m3_1
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=avr8
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=msp430
- NPROC_MAX=8 BUILDTEST_MCU_GROUP=arm7
global:
- NPROC_MAX=8
matrix:
- BUILDTEST_MCU_GROUP=static-tests
- BUILDTEST_MCU_GROUP=cortex_m4_2
- BUILDTEST_MCU_GROUP=cortex_m4_1
- BUILDTEST_MCU_GROUP=cortex_m0_2
- BUILDTEST_MCU_GROUP=cortex_m0_1
- BUILDTEST_MCU_GROUP=x86
- BUILDTEST_MCU_GROUP=cortex_m3_2
- BUILDTEST_MCU_GROUP=cortex_m3_1
- BUILDTEST_MCU_GROUP=avr8
- BUILDTEST_MCU_GROUP=msp430
- BUILDTEST_MCU_GROUP=arm7

before_install:
- source ./dist/tools/pr_check/check_labels.sh
- test -z "$TRAVIS_PULL_REQUEST" || test "$BUILDTEST_MCU_GROUP" = "static-tests" || check_gh_label "Ready for CI build" || exit 1
- echo 'deb http://us.archive.ubuntu.com/ubuntu trusty main restricted universe multiverse' | sudo tee /etc/apt/sources.list.d/trusty.list > /dev/null
- echo 'deb http://us.archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list.d/trusty.list > /dev/null
- echo 'deb http://us.archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list.d/trusty.list > /dev/null
- echo 'deb http://us.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list.d/trusty.list > /dev/null
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
- sudo apt-get update
- sudo apt-get update -qq

install:
- >
sudo apt-get install $(./dist/tools/travis-scripts/get-pkg-list.py)
- sudo apt-get -y install $(./dist/tools/travis-scripts/get-pkg-list.py)
- git config --global user.email "travis@example.com"
- git config --global user.name "Travis CI"
- test "$TRAVIS_BRANCH" = "master" || git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH

script:
- ./dist/tools/travis-scripts/build_and_test.sh
Expand Down
6 changes: 3 additions & 3 deletions boards/chronos/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* @author unknwon
*/

#ifndef CHRONOS_BOARD_H_
#define CHRONOS_BOARD_H_
#ifndef CHRONOS_BOARD_H
#define CHRONOS_BOARD_H

#include <stdint.h>

Expand Down Expand Up @@ -64,5 +64,5 @@ extern "C" {
}
#endif

#endif /* _CHRONOS_BOARD_H_ */
#endif /* CHRONOS_BOARD_H */
/** @} */
6 changes: 3 additions & 3 deletions boards/msb-430/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @author Freie Universität Berlin, Computer Systems & Telematics, FeuerWhere project
*/

#ifndef MSB_BOARD_H_
#define MSB_BOARD_H_
#ifndef MSB_BOARD_H
#define MSB_BOARD_H

#include "board-conf.h"

Expand Down Expand Up @@ -82,4 +82,4 @@ extern "C" {
#include "board-conf.h"

/** @} */
#endif /* MSB_BOARD_H_ */
#endif /* MSB_BOARD_H */
6 changes: 3 additions & 3 deletions boards/msb-430h/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/

#ifndef MSB_BOARD_H_
#define MSB_BOARD_H_
#ifndef MSB_BOARD_H
#define MSB_BOARD_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -76,4 +76,4 @@ extern "C" {
#include "board-conf.h"

/** @} */
#endif /* MSB_BOARD_H_ */
#endif /* MSB_BOARD_H */
6 changes: 3 additions & 3 deletions boards/telosb/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/

#ifndef TELOSB_BOARD_H_
#define TELOSB_BOARD_H_
#ifndef TELOSB_BOARD_H
#define TELOSB_BOARD_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -90,4 +90,4 @@ extern "C" {
#include <stdint.h>

/** @} */
#endif /* TELOSB_BOARD_H_ */
#endif /* TELOSB_BOARD_H */
6 changes: 3 additions & 3 deletions boards/wsn430-v1_3b/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/

#ifndef WSN_BOARD_H_
#define WSN_BOARD_H_
#ifndef WSN_BOARD_H
#define WSN_BOARD_H

#include "board-conf.h"

Expand Down Expand Up @@ -92,4 +92,4 @@ extern "C" {
#include <msp430x16x.h>

/** @} */
#endif /* WSN_BOARD_H_ */
#endif /* WSN_BOARD_H */
6 changes: 3 additions & 3 deletions boards/wsn430-v1_4/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/

#ifndef WSN_BOARD_H_
#define WSN_BOARD_H_
#ifndef WSN_BOARD_H
#define WSN_BOARD_H

#include "board-conf.h"

Expand Down Expand Up @@ -92,4 +92,4 @@ extern "C" {
#include <msp430x16x.h>

/** @} */
#endif /* WSN_BOARD_H_ */
#endif /* WSN_BOARD_H */
6 changes: 3 additions & 3 deletions boards/z1/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* directory for more details.
*/

#ifndef Z1_BOARD_H_
#define Z1_BOARD_H_
#ifndef Z1_BOARD_H
#define Z1_BOARD_H

/**
* @defgroup boards_z1 Zolertia Z1
Expand Down Expand Up @@ -109,4 +109,4 @@ extern "C" {
#endif

/** @} */
#endif /* Z1_BOARD_H_ */
#endif /* Z1_BOARD_H */
6 changes: 3 additions & 3 deletions core/include/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
*/

#ifndef ATOMIC_H_
#define ATOMIC_H_
#ifndef ATOMIC_H
#define ATOMIC_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -146,5 +146,5 @@ static inline int atomic_set_to_zero(atomic_int_t *var)
}
#endif

#endif /* ATOMIC_H_ */
#endif /* ATOMIC_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* @author René Kijewski <rene.kijewski@fu-berlin.de>
*/

#ifndef ATTRIBUTES_H_
#define ATTRIBUTES_H_
#ifndef ATTRIBUTES_H
#define ATTRIBUTES_H

#include <stddef.h>

Expand Down Expand Up @@ -86,5 +86,5 @@
}
#endif

#endif /* ATTRIBUTES_H_ */
#endif /* ATTRIBUTES_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/bitarithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
*/

#ifndef BITARITHM_H_
#define BITARITHM_H_
#ifndef BITARITHM_H
#define BITARITHM_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -122,5 +122,5 @@ unsigned bitarithm_bits_set(unsigned v);
}
#endif

#endif /* BITARITHM_H_ */
#endif /* BITARITHM_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/byteorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* @author René Kijewski <rene.kijewski@fu-berlin.de>
*/

#ifndef BYTEORDER_H_
#define BYTEORDER_H_
#ifndef BYTEORDER_H
#define BYTEORDER_H

#include <stdint.h>

Expand Down Expand Up @@ -422,5 +422,5 @@ static inline uint64_t NTOHLL(uint64_t v)
}
#endif

#endif /* BYTEORDER_H_ */
#endif /* BYTEORDER_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* @author Freie Universität Berlin, Computer Systems & Telematics
*/

#ifndef IRQ_H_
#define IRQ_H_
#ifndef IRQ_H
#define IRQ_H

#include <stdbool.h>
#include "arch/irq_arch.h"
Expand Down Expand Up @@ -71,5 +71,5 @@ int inISR(void);
}
#endif

#endif /* IRQ_H_ */
#endif /* IRQ_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/

#ifndef KERNEL_H_
#define KERNEL_H_
#ifndef KERNEL_H
#define KERNEL_H

#include <stdbool.h>
#include <stdint.h>
Expand Down Expand Up @@ -85,5 +85,5 @@ int reboot(int mode);
}
#endif

#endif /* KERNEL_H_ */
#endif /* KERNEL_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/lifo.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* If you insert a value twice the LIFO will break.
*/

#ifndef LIFO_H_
#define LIFO_H_
#ifndef LIFO_H
#define LIFO_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -70,5 +70,5 @@ int lifo_get(int *array);
}
#endif

#endif /* LIFO_H_ */
#endif /* LIFO_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/lpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* @author Freie Universität Berlin, Computer Systems & Telematics
*/

#ifndef LPM_H_
#define LPM_H_
#ifndef LPM_H
#define LPM_H

#include "arch/lpm_arch.h"

Expand Down Expand Up @@ -68,5 +68,5 @@ enum lpm_mode lpm_get(void);
}
#endif

#endif /* __LPM_H_ */
#endif /* LPM_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@
* @author Kévin Roussel <Kevin.Roussel@inria.fr>
*/

#ifndef MSG_H_
#define MSG_H_
#ifndef MSG_H
#define MSG_H

#include <stdint.h>
#include <stdbool.h>
Expand Down Expand Up @@ -379,5 +379,5 @@ int msg_init_queue(msg_t *array, int num);
}
#endif

#endif /* MSG_H_ */
#endif /* MSG_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/

#ifndef MUTEX_H_
#define MUTEX_H_
#ifndef MUTEX_H
#define MUTEX_H

#include "priority_queue.h"
#include "atomic.h"
Expand Down Expand Up @@ -101,5 +101,5 @@ void mutex_unlock_and_sleep(mutex_t *mutex);
}
#endif

#endif /* MUTEX_H_ */
#endif /* MUTEX_H */
/** @} */
6 changes: 3 additions & 3 deletions core/include/tcb.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/

#ifndef TCB_H_
#define TCB_H_
#ifndef TCB_H
#define TCB_H

#include <stdint.h>
#include "priority_queue.h"
Expand Down Expand Up @@ -87,5 +87,5 @@ typedef struct tcb_t {
}
#endif

#endif /* TCB_H_ */
#endif /* TCB_H */
/** @} */
Loading

0 comments on commit fdda97a

Please sign in to comment.