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
Hide whitespace changes
Inline
Side-by-side
lib/c/2014/labcomm_fd_reader.h
View file @
f11ec7ba
...
...
@@ -19,8 +19,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_FD_READER_H_
_
#define
_
_LABCOMM_FD_READER_H_
_
#include
"labcomm.h"
...
...
lib/c/2014/labcomm_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_FD_WRITER_H_
_
#define
_
_LABCOMM_FD_WRITER_H_
_
#include
"labcomm.h"
...
...
lib/c/2014/labcomm_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_IOCTL_H__
_
#define __LABCOMM_IOCTL_H__
_
#include
"labcomm.h"
...
...
lib/c/2014/labcomm_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_PRIVATE_H_
_
#define
_
_LABCOMM_PRIVATE_H_
_
#ifdef LABCOMM_COMPAT
#include LABCOMM_COMPAT
...
...
lib/c/2014/labcomm_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_PTHREAD_SCHEDULER_H_
_
#define
_
_LABCOMM_PTHREAD_SCHEDULER_H_
_
#include
"labcomm.h"
...
...
lib/c/2014/labcomm_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_SCHEDULER_H_
_
#define
_
_LABCOMM_SCHEDULER_H_
_
#ifdef LABCOMM_COMPAT
#include LABCOMM_COMPAT
...
...
lib/c/2014/labcomm_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_SCHEDULER_PRIVATE_H_
_
#define
_
_LABCOMM_SCHEDULER_PRIVATE_H_
_
#ifdef LABCOMM_COMPAT
#include LABCOMM_COMPAT
...
...
lib/c/version_compare.py
View file @
f11ec7ba
...
...
@@ -9,7 +9,7 @@ class File:
def
__init__
(
self
,
path
,
match
,
replacement
):
def
replace
(
s
):
return
re
.
sub
(
'[
\t
]+'
,
' '
,
s
).
replace
(
match
,
replacement
)
return
re
.
sub
(
'[
\t
]+'
,
' '
,
s
).
replace
(
match
,
replacement
)
.
strip
()
self
.
name
=
path
.
replace
(
match
,
replacement
)
self
.
path
=
path
with
open
(
path
)
as
f
:
...
...
@@ -50,7 +50,7 @@ if __name__ == '__main__':
else
:
equal
=
True
for
l
in
difflib
.
unified_diff
(
a
.
lines
,
b
.
lines
,
a
.
path
,
b
.
path
):
print
l
,
print
l
equal
=
False
if
equal
:
print
"Identical"
,
a
.
path
,
b
.
path
...
...
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