Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
LabComm
Commits
f11ec7ba
Commit
f11ec7ba
authored
Feb 24, 2015
by
Anders Blomdell
Browse files
Guard macro unification/cleanup
parent
24cc29e9
Changes
28
Show whitespace changes
Inline
Side-by-side
lib/c/2006/labcomm2006.h
View file @
f11ec7ba
/*
labcomm.h -- user interface for handling encoding and decoding of
labcomm
2006
.h -- user interface for handling encoding and decoding of
labcomm samples.
Copyright 2006-2013 Anders Blomdell <anders.blomdell@control.lth.se>
...
...
@@ -20,8 +20,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_H_
#define _LABCOMM_H_
#ifndef
_
_LABCOMM
2006
_H_
_
#define
_
_LABCOMM
2006
_H_
_
#include
<stdarg.h>
...
...
lib/c/2006/labcomm2006_default_error_handler.h
View file @
f11ec7ba
...
...
@@ -18,7 +18,11 @@
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 __LABCOMM2006_DEFAULT_ERROR_HANDLER_H__
#define __LABCOMM2006_DEFAULT_ERROR_HANDLER_H__
#include
"labcomm2006.h"
extern
struct
labcomm2006_error_handler
*
labcomm2006_default_error_handler
;
#endif
lib/c/2006/labcomm2006_default_memory.h
View file @
f11ec7ba
...
...
@@ -18,9 +18,12 @@
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 __LABCOMM2006_DEFAULT_MEMORY_H__
#define __LABCOMM2006_DEFAULT_MEMORY_H__
#include
<stdlib.h>
#include
"labcomm2006.h"
extern
struct
labcomm2006_memory
*
labcomm2006_default_memory
;
#endif
lib/c/2006/labcomm2006_default_scheduler.h
View file @
f11ec7ba
...
...
@@ -18,7 +18,11 @@
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 __LABCOMM2006_DEFAULT_SCHEDULER_H__
#define __LABCOMM2006_DEFAULT_SCHEDULER_H__
#include
"labcomm2006.h"
extern
struct
labcomm2006_scheduler
*
labcomm2006_default_scheduler
;
#endif
lib/c/2006/labcomm2006_dynamic_buffer_writer.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_DYNAMIC_BUFFER_READER_WRITER_H_
#define _LABCOMM_DYNAMIC_BUFFER_READER_WRITER_H_
#ifndef
_
_LABCOMM
2006
_DYNAMIC_BUFFER_READER_WRITER_H_
_
#define
_
_LABCOMM
2006
_DYNAMIC_BUFFER_READER_WRITER_H_
_
#include
"labcomm2006.h"
...
...
lib/c/2006/labcomm2006_error.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LABCOMM_ERROR_H__
#define __LABCOMM_ERROR_H__
#ifndef __LABCOMM
2006
_ERROR_H__
#define __LABCOMM
2006
_ERROR_H__
enum
labcomm2006_error
{
#define LABCOMM_ERROR(name, description) name ,
...
...
lib/c/2006/labcomm2006_fd_reader.h
View file @
f11ec7ba
/*
labcomm2006_fd_reader.c -- a reader for unix style file-descriptors
...
...
@@ -19,8 +20,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_FD_READER_H_
#define _LABCOMM_FD_READER_H_
#ifndef
_
_LABCOMM
2006
_FD_READER_H_
_
#define
_
_LABCOMM
2006
_FD_READER_H_
_
#include
"labcomm2006.h"
...
...
lib/c/2006/labcomm2006_fd_writer.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_FD_WRITER_H_
#define _LABCOMM_FD_WRITER_H_
#ifndef
_
_LABCOMM
2006
_FD_WRITER_H_
_
#define
_
_LABCOMM
2006
_FD_WRITER_H_
_
#include
"labcomm2006.h"
...
...
lib/c/2006/labcomm2006_ioctl.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LABCOMM_IOCTL_H__
#define __LABCOMM_IOCTL_H__
#ifndef __LABCOMM
2006
_IOCTL_H__
#define __LABCOMM
2006
_IOCTL_H__
#include
"labcomm2006.h"
...
...
lib/c/2006/labcomm2006_private.h
View file @
f11ec7ba
...
...
@@ -20,8 +20,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_PRIVATE_H_
#define _LABCOMM_PRIVATE_H_
#ifndef
_
_LABCOMM
2006
_PRIVATE_H_
_
#define
_
_LABCOMM
2006
_PRIVATE_H_
_
#ifdef LABCOMM_COMPAT
#include LABCOMM_COMPAT
...
...
lib/c/2006/labcomm2006_pthread_scheduler.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_PTHREAD_SCHEDULER_H_
#define _LABCOMM_PTHREAD_SCHEDULER_H_
#ifndef
_
_LABCOMM
2006
_PTHREAD_SCHEDULER_H_
_
#define
_
_LABCOMM
2006
_PTHREAD_SCHEDULER_H_
_
#include
"labcomm2006.h"
...
...
lib/c/2006/labcomm2006_scheduler.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_SCHEDULER_H_
#define _LABCOMM_SCHEDULER_H_
#ifndef
_
_LABCOMM
2006
_SCHEDULER_H_
_
#define
_
_LABCOMM
2006
_SCHEDULER_H_
_
#ifdef LABCOMM_COMPAT
#include LABCOMM_COMPAT
...
...
lib/c/2006/labcomm2006_scheduler_private.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_SCHEDULER_PRIVATE_H_
#define _LABCOMM_SCHEDULER_PRIVATE_H_
#ifndef
_
_LABCOMM
2006
_SCHEDULER_PRIVATE_H_
_
#define
_
_LABCOMM
2006
_SCHEDULER_PRIVATE_H_
_
#ifdef LABCOMM_COMPAT
#include LABCOMM_COMPAT
...
...
lib/c/2006/labcomm_compat_vxworks.h
View file @
f11ec7ba
#ifndef _LABCOMM2006_COMPAT_VXWORKS_H_
#define _LABCOMM2006_COMPAT_VXWORKS_H_
#ifndef
_
_LABCOMM2006_COMPAT_VXWORKS_H_
_
#define
_
_LABCOMM2006_COMPAT_VXWORKS_H_
_
#ifndef __VXWORKS__
#error "__VXWORKS__" not defined
...
...
lib/c/2014/labcomm.h
View file @
f11ec7ba
...
...
@@ -20,8 +20,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_H_
#define _LABCOMM_H_
#ifndef
_
_LABCOMM_H_
_
#define
_
_LABCOMM_H_
_
#include
<stdarg.h>
...
...
lib/c/2014/labcomm_default_error_handler.h
View file @
f11ec7ba
...
...
@@ -18,7 +18,11 @@
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 __LABCOMM_DEFAULT_ERROR_HANDLER_H__
#define __LABCOMM_DEFAULT_ERROR_HANDLER_H__
#include
"labcomm.h"
extern
struct
labcomm_error_handler
*
labcomm_default_error_handler
;
#endif
lib/c/2014/labcomm_default_memory.h
View file @
f11ec7ba
...
...
@@ -18,9 +18,12 @@
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 __LABCOMM_DEFAULT_MEMORY_H__
#define __LABCOMM_DEFAULT_MEMORY_H__
#include
<stdlib.h>
#include
"labcomm.h"
extern
struct
labcomm_memory
*
labcomm_default_memory
;
#endif
lib/c/2014/labcomm_default_scheduler.h
View file @
f11ec7ba
...
...
@@ -18,7 +18,11 @@
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 __LABCOMM_DEFAULT_SCHEDULER_H__
#define __LABCOMM_DEFAULT_SCHEDULER_H__
#include
"labcomm.h"
extern
struct
labcomm_scheduler
*
labcomm_default_scheduler
;
#endif
lib/c/2014/labcomm_dynamic_buffer_writer.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LABCOMM_DYNAMIC_BUFFER_READER_WRITER_H_
#define _LABCOMM_DYNAMIC_BUFFER_READER_WRITER_H_
#ifndef
_
_LABCOMM_DYNAMIC_BUFFER_READER_WRITER_H_
_
#define
_
_LABCOMM_DYNAMIC_BUFFER_READER_WRITER_H_
_
#include
"labcomm.h"
...
...
lib/c/2014/labcomm_error.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LABCOMM_ERROR_H__
#define __LABCOMM_ERROR_H__
#ifndef __LABCOMM_ERROR_H__
_
#define __LABCOMM_ERROR_H__
_
enum
labcomm_error
{
#define LABCOMM_ERROR(name, description) name ,
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment