Skip to content

Commit 3838ffc

Browse files
author
Mats Kindahl
committed
WL#5016: Fix header file include guards
Adding header include file guards to files that are missing such. --BZR-- revision-id: [email protected] property-branch-nick: patching-5.1 testament3-sha1: 138b867c18cd2d140c8fa308d236baa49f023be0
1 parent b6b7765 commit 3838ffc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+377
-6
lines changed

client/my_readline.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef CLIENT_MY_READLINE_INCLUDED
2+
#define CLIENT_MY_READLINE_INCLUDED
3+
14
/* Copyright (C) 2000 MySQL AB
25
36
This program is free software; you can redistribute it and/or modify
@@ -31,3 +34,5 @@ extern LINE_BUFFER *batch_readline_init(ulong max_size,FILE *file);
3134
extern LINE_BUFFER *batch_readline_command(LINE_BUFFER *buffer, char * str);
3235
extern char *batch_readline(LINE_BUFFER *buffer, bool *truncated);
3336
extern void batch_readline_end(LINE_BUFFER *buffer);
37+
38+
#endif /* CLIENT_MY_READLINE_INCLUDED */

client/sql_string.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef CLIENT_SQL_STRING_INCLUDED
2+
#define CLIENT_SQL_STRING_INCLUDED
3+
14
/* Copyright (C) 2000 MySQL AB
25
36
This program is free software; you can redistribute it and/or modify
@@ -353,3 +356,5 @@ class String
353356
return (s->alloced && Ptr >= s->Ptr && Ptr < s->Ptr + s->str_length);
354357
}
355358
};
359+
360+
#endif /* CLIENT_SQL_STRING_INCLUDED */

include/atomic/gcc_builtins.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef ATOMIC_GCC_BUILTINS_INCLUDED
2+
#define ATOMIC_GCC_BUILTINS_INCLUDED
3+
14
/* Copyright (C) 2008 MySQL AB
25
36
This program is free software; you can redistribute it and/or modify
@@ -31,3 +34,5 @@
3134
#define make_atomic_store_body(S) \
3235
(void) __sync_lock_test_and_set(a, v);
3336
#endif
37+
38+
#endif /* ATOMIC_GCC_BUILTINS_INCLUDED */

include/atomic/nolock.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef ATOMIC_NOLOCK_INCLUDED
2+
#define ATOMIC_NOLOCK_INCLUDED
3+
14
/* Copyright (C) 2006 MySQL AB
25
36
This program is free software; you can redistribute it and/or modify
@@ -42,3 +45,4 @@ typedef struct { } my_atomic_rwlock_t;
4245

4346
#endif
4447

48+
#endif /* ATOMIC_NOLOCK_INCLUDED */

include/atomic/rwlock.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef ATOMIC_RWLOCK_INCLUDED
2+
#define ATOMIC_RWLOCK_INCLUDED
3+
14
/* Copyright (C) 2006 MySQL AB
25
36
This program is free software; you can redistribute it and/or modify
@@ -46,3 +49,4 @@ typedef struct {pthread_rwlock_t rw;} my_atomic_rwlock_t;
4649
#define make_atomic_load_body(S) ret= *a;
4750
#define make_atomic_store_body(S) *a= v;
4851

52+
#endif /* ATOMIC_RWLOCK_INCLUDED */

include/atomic/x86-gcc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef ATOMIC_X86_GCC_INCLUDED
2+
#define ATOMIC_X86_GCC_INCLUDED
3+
14
/* Copyright (C) 2006 MySQL AB
25
36
This program is free software; you can redistribute it and/or modify
@@ -56,3 +59,4 @@
5659
asm volatile ("; xchg %0, %1;" : "+m" (*a) : "r" (v))
5760
#endif
5861

62+
#endif /* ATOMIC_X86_GCC_INCLUDED */

include/config-win.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef CONFIG_WIN_INCLUDED
2+
#define CONFIG_WIN_INCLUDED
3+
14
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
25
36
This program is free software; you can redistribute it and/or modify
@@ -410,3 +413,5 @@ inline ulonglong double2ulonglong(double d)
410413

411414
#define HAVE_UCA_COLLATIONS 1
412415
#define HAVE_BOOL 1
416+
417+
#endif /* CONFIG_WIN_INCLUDED */

include/errmsg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef ERRMSG_INCLUDED
2+
#define ERRMSG_INCLUDED
3+
14
/* Copyright (C) 2000 MySQL AB
25
36
This program is free software; you can redistribute it and/or modify
@@ -100,3 +103,4 @@ extern const char *client_errors[]; /* Error messages */
100103
#define CR_ERROR_LAST /*Copy last error nr:*/ 2057
101104
/* Add error numbers before CR_ERROR_LAST and change it accordingly. */
102105

106+
#endif /* ERRMSG_INCLUDED */

include/help_end.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef HELP_END_INCLUDED
2+
#define HELP_END_INCLUDED
3+
14
/* Copyright (C) 2004-2005 MySQL AB
25
36
This program is free software; you can redistribute it and/or modify
@@ -20,3 +23,4 @@
2023
#undef fputc
2124
#undef putchar
2225
#endif
26+
#endif /* HELP_END_INCLUDED */

include/help_start.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef HELP_START_INCLUDED
2+
#define HELP_START_INCLUDED
3+
14
/* Copyright (C) 2004-2005 MySQL AB
25
36
This program is free software; you can redistribute it and/or modify
@@ -22,3 +25,4 @@
2225
#define fputc(s,f) consoleprintf("%c", s)
2326
#define putchar(s) consoleprintf("%c", s)
2427
#endif
28+
#endif /* HELP_START_INCLUDED */

0 commit comments

Comments
 (0)