Browse Source

Clean up include guards

The previous style(s) used in most places here violates the C standard, and in
practice can trigger -Wreserved-id-macro in clang for client code.  So, switch
to a conventional style that doesn't trigger warnings (and is supported by
tools like clang-tidy).
pull/12/head
David Robillard 2 years ago
parent
commit
fe0ab491b4
16 changed files with 50 additions and 48 deletions
  1. +3
    -3
      control.h
  2. +3
    -3
      intclient.h
  3. +3
    -3
      jack.h
  4. +3
    -3
      jslist.h
  5. +3
    -3
      metadata.h
  6. +4
    -3
      midiport.h
  7. +3
    -3
      ringbuffer.h
  8. +4
    -3
      session.h
  9. +3
    -3
      statistics.h
  10. +3
    -3
      systemdeps.h
  11. +3
    -3
      thread.h
  12. +3
    -3
      transport.h
  13. +3
    -3
      types.h
  14. +3
    -3
      uuid.h
  15. +3
    -3
      weakjack.h
  16. +3
    -3
      weakmacros.h

+ 3
- 3
control.h View File

@@ -23,8 +23,8 @@
*
*/

#ifndef __jack_control_h__
#define __jack_control_h__
#ifndef JACK_CONTROL_H
#define JACK_CONTROL_H

#include <jack/jslist.h>

@@ -559,4 +559,4 @@ jack_log(
} /* extern "C" */
#endif

#endif /* __jack_control_h__ */
#endif /* JACK_CONTROL_H */

+ 3
- 3
intclient.h View File

@@ -16,8 +16,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __jack_intclient_h__
#define __jack_intclient_h__
#ifndef JACK_INTCLIENT_H
#define JACK_INTCLIENT_H

#ifdef __cplusplus
extern "C" {
@@ -134,4 +134,4 @@ jack_status_t jack_internal_client_unload (jack_client_t *client,
}
#endif

#endif /* __jack_intclient_h__ */
#endif /* JACK_INTCLIENT_H */

+ 3
- 3
jack.h View File

@@ -17,8 +17,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __jack_h__
#define __jack_h__
#ifndef JACK_JACK_H
#define JACK_JACK_H

#ifdef __cplusplus
extern "C" {
@@ -1334,4 +1334,4 @@ void jack_free(void* ptr) JACK_OPTIONAL_WEAK_EXPORT;
}
#endif

#endif /* __jack_h__ */
#endif /* JACK_JACK_H */

+ 3
- 3
jslist.h View File

@@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __jack_jslist_h__
#define __jack_jslist_h__
#ifndef JACK_JSLIST_H
#define JACK_JSLIST_H

#include <stdlib.h>

@@ -299,4 +299,4 @@ jack_slist_sort (JSList *list,
compare_func);
}

#endif /* __jack_jslist_h__ */
#endif /* JACK_JSLIST_H */

+ 3
- 3
metadata.h View File

@@ -24,8 +24,8 @@
*
*/

#ifndef __jack_metadata_h__
#define __jack_metadata_h__
#ifndef JACK_METADATA_H
#define JACK_METADATA_H

#include <jack/types.h>

@@ -319,4 +319,4 @@ extern const char* JACK_METADATA_SIGNAL_TYPE;
} /* namespace */
#endif

#endif /* __jack_metadata_h__ */
#endif /* JACK_METADATA_H */

+ 4
- 3
midiport.h View File

@@ -16,8 +16,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __JACK_MIDIPORT_H
#define __JACK_MIDIPORT_H
#ifndef JACK_MIDIPORT_H
#define JACK_MIDIPORT_H

#ifdef __cplusplus
extern "C" {
@@ -166,5 +166,6 @@ jack_midi_get_lost_event_count(void *port_buffer) JACK_OPTIONAL_WEAK_E
}
#endif

#endif /* JACK_MIDIPORT_H */


#endif /* __JACK_MIDIPORT_H */

+ 3
- 3
ringbuffer.h View File

@@ -17,8 +17,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef _RINGBUFFER_H
#define _RINGBUFFER_H
#ifndef JACK_RINGBUFFER_H
#define JACK_RINGBUFFER_H

#ifdef __cplusplus
extern "C" {
@@ -231,4 +231,4 @@ size_t jack_ringbuffer_write_space(const jack_ringbuffer_t *rb);
}
#endif

#endif
#endif /* JACK_RINGBUFFER_H */

+ 4
- 3
session.h View File

@@ -18,8 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __jack_session_h__
#define __jack_session_h__
#ifndef JACK_SESSION_H
#define JACK_SESSION_H

#ifdef __cplusplus
extern "C" {
@@ -299,4 +299,5 @@ jack_client_has_session_callback (jack_client_t *client, const char *client_name
#ifdef __cplusplus
}
#endif
#endif

#endif /* JACK_SESSION_H */

+ 3
- 3
statistics.h View File

@@ -16,8 +16,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __statistics_h__
#define __statistics_h__
#ifndef JACK_STATISTICS_H
#define JACK_STATISTICS_H

#ifdef __cplusplus
extern "C" {
@@ -51,4 +51,4 @@ void jack_reset_max_delayed_usecs (jack_client_t *client);
}
#endif

#endif /* __statistics_h__ */
#endif /* JACK_STATISTICS_H */

+ 3
- 3
systemdeps.h View File

@@ -16,8 +16,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __jack_systemdeps_h__
#define __jack_systemdeps_h__
#ifndef JACK_SYSTEMDEPS_H
#define JACK_SYSTEMDEPS_H

#ifndef POST_PACKED_STRUCTURE

@@ -137,4 +137,4 @@
#define JACK_LIB_EXPORT
#endif

#endif /* __jack_systemdeps_h__ */
#endif /* JACK_SYSTEMDEPS_H */

+ 3
- 3
thread.h View File

@@ -16,8 +16,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __jack_thread_h__
#define __jack_thread_h__
#ifndef JACK_THREAD_H
#define JACK_THREAD_H

#ifdef __cplusplus
extern "C" {
@@ -133,4 +133,4 @@ void jack_set_thread_creator (jack_thread_creator_t creator) JACK_OPTIONAL_WEAK_
}
#endif

#endif /* __jack_thread_h__ */
#endif /* JACK_THREAD_H */

+ 3
- 3
transport.h View File

@@ -17,8 +17,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __jack_transport_h__
#define __jack_transport_h__
#ifndef JACK_TRANSPORT_H
#define JACK_TRANSPORT_H

#ifdef __cplusplus
extern "C" {
@@ -536,4 +536,4 @@ void jack_set_transport_info (jack_client_t *client,
}
#endif

#endif /* __jack_transport_h__ */
#endif /* JACK_TRANSPORT_H */

+ 3
- 3
types.h View File

@@ -17,8 +17,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __jack_types_h__
#define __jack_types_h__
#ifndef JACK_TYPES_H
#define JACK_TYPES_H

#include <inttypes.h>
#include <pthread.h>
@@ -526,4 +526,4 @@ enum JackPortFlags {
};


#endif /* __jack_types_h__ */
#endif /* JACK_TYPES_H */

+ 3
- 3
uuid.h View File

@@ -16,8 +16,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __jack_uuid_h__
#define __jack_uuid_h__
#ifndef JACK_UUID_H
#define JACK_UUID_H

#include <jack/types.h>

@@ -45,4 +45,4 @@ extern int jack_uuid_empty (jack_uuid_t);
} /* namespace */
#endif

#endif /* __jack_uuid_h__ */
#endif /* JACK_UUID_H */

+ 3
- 3
weakjack.h View File

@@ -16,8 +16,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __weakjack_h__
#define __weakjack_h__
#ifndef JACK_WEAKJACK_H
#define JACK_WEAKJACK_H

/**
* @defgroup WeakLinkage managing support for newer/older versions of JACK
@@ -121,4 +121,4 @@

/*@}*/

#endif /* weakjack */
#endif /* JACK_WEAKJACK_H */

+ 3
- 3
weakmacros.h View File

@@ -16,8 +16,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __weakmacros_h__
#define __weakmacros_h__
#ifndef JACK_WEAKMACROS_H
#define JACK_WEAKMACROS_H

/*************************************************************
* NOTE: JACK_WEAK_EXPORT ***MUST*** be used on every function
@@ -63,4 +63,4 @@
#endif /* __GNUC__ */
#endif

#endif /* __weakmacros_h__ */
#endif /* JACK_WEAKMACROS_H */

Loading…
Cancel
Save