Skip to content

Commit

Permalink
remove leading/trailing underscores C-prepoc header guards
Browse files Browse the repository at this point in the history
    * generated header
    * static headers
    * example headers
    * datafile headers

(cherry picked from commit 02147122b27ba3ab53bd3c45d3766da0b971bc29)
  • Loading branch information
mjcharne authored and markcharney committed Dec 23, 2016
1 parent a20deac commit 85e545d
Show file tree
Hide file tree
Showing 68 changed files with 136 additions and 136 deletions.
4 changes: 2 additions & 2 deletions datafiles/avx512f/ild/include/avx512-ild-getters.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */

/// AVX512 ILD getters

#if !defined(_XED_ILD_AVX512_GETTERS_H)
#define _XED_ILD_AVX512_GETTERS_H
#if !defined(XED_ILD_AVX512_GETTERS_H)
#define XED_ILD_AVX512_GETTERS_H
#include "xed-common-hdrs.h"
#include "xed-common-defs.h"
#include "xed-portability.h"
Expand Down
4 changes: 2 additions & 2 deletions datafiles/ild/include/xed-ild-scanners-base.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
/// @file xed-ild-scanners.h
/// instruction length decoder scanners

#if !defined(_XED_ILD_SCANNERS_BASE_H_)
# define _XED_ILD_SCANNERS_BASE_H_
#if !defined(XED_ILD_SCANNERS_BASE_H)
# define XED_ILD_SCANNERS_BASE_H
#include "xed-common-hdrs.h"
#include "xed-common-defs.h"
#include "xed-portability.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/xed-disas-elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */
/// @file xed-disas-elf.h

#if !defined(_XED_DISAS_ELF_H_)
# define _XED_DISAS_ELF_H_
#if !defined(XED_DISAS_ELF_H)
# define XED_DISAS_ELF_H
#if defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
# define XED_ELF_READER
#endif
Expand Down
4 changes: 2 additions & 2 deletions examples/xed-disas-hex.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */

#if !defined(_XED_DISAS_HEX_H_)
# define _XED_DISAS_HEX_H_
#if !defined(XED_DISAS_HEX_H)
# define XED_DISAS_HEX_H


#include "xed/xed-interface.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/xed-disas-macho.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */
/// @file xed-disas-macho.H
#if !defined(_XED_DISAS_MACHO_H_)
# define _XED_DISAS_MACHO_H_
#if !defined(XED_DISAS_MACHO_H)
# define XED_DISAS_MACHO_H

# if defined(__APPLE__)
# include "xed/xed-interface.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/xed-disas-pecoff.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */
/// @file xed-disas-pecoff.h


#if !defined(_XED_DISAS_PECOFF_H_)
# define _XED_DISAS_PECOFF_H_
#if !defined(XED_DISAS_PECOFF_H)
# define XED_DISAS_PECOFF_H

# include "xed/xed-interface.h"
# include "xed-examples-util.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/xed-disas-raw.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */

#if !defined(_XED_DISAS_RAW_H_)
# define _XED_DISAS_RAW_H_
#if !defined(XED_DISAS_RAW_H)
# define XED_DISAS_RAW_H

#include "xed/xed-interface.h"
#include "xed-examples-util.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/xed-dot-prep.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */

#if !defined(_XED_DOT_PREP_H_)
# define _XED_DOT_PREP_H_
#if !defined(XED_DOT_PREP_H)
# define XED_DOT_PREP_H
#include "xed/xed-interface.h"
#include "xed-dot.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/xed-dot.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Copyright (c) 2016 Intel Corporation
limitations under the License.
END_LEGAL */
#if !defined(_XED_DOT_H_)
# define _XED_DOT_H_
#if !defined(XED_DOT_H)
# define XED_DOT_H

#include "xed/xed-interface.h"
#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions examples/xed-enc-lang.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */

/// @file xed-enc-lang.h

#if !defined(_XED_ENC_LANG_H_)
# define _XED_ENC_LANG_H_
#if !defined(XED_ENC_LANG_H)
# define XED_ENC_LANG_H

#include "xed/xed-interface.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/xed-examples-util.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */
/// @file xed-examples-util.h


#ifndef _XED_EXAMPLES_UTIL_H_
# define _XED_EXAMPLES_UTIL_H_
#ifndef XED_EXAMPLES_UTIL_H
# define XED_EXAMPLES_UTIL_H

#include <stdio.h>
#include "xed/xed-interface.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/xed-symbol-table.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */

#if !defined(_XED_SYMBOL_TABLE_H_)
#define _XED_SYMBOL_TABLE_H_
#if !defined(XED_SYMBOL_TABLE_H)
#define XED_SYMBOL_TABLE_H

#include "xed/xed-interface.h"
#include "xed-examples-util.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-chip-features-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */

#if !defined(_XED_CHIP_FEATURES_PRIVATE_H_)
# define _XED_CHIP_FEATURES_PRIVATE_H_
#if !defined(XED_CHIP_FEATURES_PRIVATE_H)
# define XED_CHIP_FEATURES_PRIVATE_H

#include "xed-types.h"
#include "xed-chip-features.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-decode-supp.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
///


#ifndef _XED_DECODE_SUPP_H_
# define _XED_DECODE_SUPP_H_
#ifndef XED_DECODE_SUPP_H
# define XED_DECODE_SUPP_H
#include "xed-common-hdrs.h"
#include "xed-types.h"
#include "xed-error-enum.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-decoded-inst-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
///


#if !defined(_XED_DECODED_INST_PRIVATE_H_)
# define _XED_DECODED_INST_PRIVATE_H_
#if !defined(XED_DECODED_INST_PRIVATE_H)
# define XED_DECODED_INST_PRIVATE_H

#include "xed-types.h"
#include "xed-portability.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-disas-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */
/// @file xed-disas.h
///

#if !defined(_XED_DISAS_PRIVATE_H_)
# define _XED_DISAS_PRIVATE_H_
#if !defined(XED_DISAS_PRIVATE_H)
# define XED_DISAS_PRIVATE_H

#include "xed-disas.h"
#include "xed-print-info.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-encode-isa-functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */
/// @file xed-encode-isa-functions.h
///

#ifndef _XED_ENCODE_ISA_FUNCTIONS_H_
# define _XED_ENCODE_ISA_FUNCTIONS_H_
#ifndef XED_ENCODE_ISA_FUNCTIONS_H
# define XED_ENCODE_ISA_FUNCTIONS_H

#include "xed-encode.h"

Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-encode-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
///


#if !defined(_XED_ENCODE_PRIVATE_H_)
# define _XED_ENCODE_PRIVATE_H_
#if !defined(XED_ENCODE_PRIVATE_H)
# define XED_ENCODE_PRIVATE_H

#include "xed-types.h"
#include "xed-encode-types.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-encode-tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */

#if !defined(_XED_ENCODE_TABLES_H_)
# define _XED_ENCODE_TABLES_H_
#if !defined(XED_ENCODE_TABLES_H)
# define XED_ENCODE_TABLES_H

// Some things are "extern const" because they are filled in where they are
// declared in some generated *.c file.
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-encode-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
///


#if !defined(_XED_ENCODE_TYPES_H_)
# define _XED_ENCODE_TYPES_H_
#if !defined(XED_ENCODE_TYPES_H)
# define XED_ENCODE_TYPES_H

#include "xed-types.h"
#include "xed-encode.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-flags-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */
/// @file xed-flags-private.H
///

#ifndef _XED_FLAGS_PRIVATE_H_
# define _XED_FLAGS_PRIVATE_H_
#ifndef XED_FLAGS_PRIVATE_H
# define XED_FLAGS_PRIVATE_H

#include "xed-flags.h"

Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-ild-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
/// @file xed-ild-private.h
/// instruction length decoder private header

#if !defined(_XED_ILD_PRIVATE_H_)
# define _XED_ILD_PRIVATE_H_
#if !defined(XED_ILD_PRIVATE_H)
# define XED_ILD_PRIVATE_H



Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-inst-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
///


#if !defined(_XED_INST_PRIVATE_H_)
# define _XED_INST_PRIVATE_H_
#if !defined(XED_INST_PRIVATE_H)
# define XED_INST_PRIVATE_H

#include "xed-types.h"
#include "xed-portability.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-internal-header-2.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
///


#if !defined(_XED_INTERNAL_HEADER2_H_)
# define _XED_INTERNAL_HEADER2_H_
#if !defined(XED_INTERNAL_HEADER2_H)
# define XED_INTERNAL_HEADER2_H
#include "xed-common-hdrs.h"
#include "xed-common-defs.h"
#include "xed-portability.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-internal-header.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ END_LEGAL */



#if !defined(_XED_INTERNAL_HEADER_H_)
# define _XED_INTERNAL_HEADER_H_
#if !defined(XED_INTERNAL_HEADER_H)
# define XED_INTERNAL_HEADER_H


#if defined(_WIN32) && defined(_MANAGED)
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-operand-type-info.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */

#if !defined(_XED_OPERAND_TYPE_INFO_H_)
# define _XED_OPERAND_TYPE_INFO_H_
#if !defined(XED_OPERAND_TYPE_INFO_H)
# define XED_OPERAND_TYPE_INFO_H

#include "xed-operand-element-type-enum.h" // generated
#include "xed-types.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-portability-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */
/// @file xed-portability-private.H
///

#if !defined(_XED_DECODE_PORTABILITY_PRIVATE_H_)
# define _XED_DECODE_PORTABILITY_PRIVATE_H_
#if !defined(XED_DECODE_PORTABILITY_PRIVATE_H)
# define XED_DECODE_PORTABILITY_PRIVATE_H



Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-tables-decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */
/// @file xed-tables-decl.H
///

#if !defined(_XED_TABLES_DECL_H_)
# define _XED_TABLES_DECL_H_
#if !defined(XED_TABLES_DECL_H)
# define XED_TABLES_DECL_H

#include "xed-gen-table-defs.h" // a generated file
#if defined(XED_ENCODER)
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-tables-extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */
/// @file xed-tables-extern.H
///

#if !defined(_XED_TABLES_EXTERN_H_)
# define _XED_TABLES_EXTERN_H_
#if !defined(XED_TABLES_EXTERN_H)
# define XED_TABLES_EXTERN_H

#include "xed-gen-table-defs.h" // a generated file
#if defined(XED_ENCODER)
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ END_LEGAL */
/// @file xed-tables.H
///

#if !defined(_XED_TABLES_H_)
# define _XED_TABLES_H_
#if !defined(XED_TABLES_H)
# define XED_TABLES_H


#if !defined(XED_MAX_INST_TABLE_NODES)
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed-util-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ END_LEGAL */



#ifndef _XED_UTIL_PRIVATE_H_
# define _XED_UTIL_PRIVATE_H_
#ifndef XED_UTIL_PRIVATE_H
# define XED_UTIL_PRIVATE_H

#include "xed-common-hdrs.h"
#include "xed-types.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed3-dynamic-decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
/// @file xed3-dynamic-decode.h
/// dynamic information decoder

#if !defined(_XED3_DYNAMIC_DECODE_H_)
#define _XED3_DYNAMIC_DECODE_H_
#if !defined(XED3_DYNAMIC_DECODE_H)
#define XED3_DYNAMIC_DECODE_H


#include "xed-common-hdrs.h"
Expand Down
4 changes: 2 additions & 2 deletions include/private/xed3-static-decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
/// @file xed3-static-decode.h
/// instruction length decoder

#if !defined(_XED3_STATIC_DECODE_H_)
#define _XED3_STATIC_DECODE_H_
#if !defined(XED3_STATIC_DECODE_H)
#define XED3_STATIC_DECODE_H

#include "xed-ild.h"

Expand Down
4 changes: 2 additions & 2 deletions include/public/xed/xed-agen.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ END_LEGAL */
///


#ifndef _XED_AGEN_H_
# define _XED_AGEN_H_
#ifndef XED_AGEN_H
# define XED_AGEN_H
#include "xed-decoded-inst.h"
#include "xed-error-enum.h"

Expand Down
4 changes: 2 additions & 2 deletions include/public/xed/xed-attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */

#if !defined(_XED_ATTRIBUTES_H_)
# define _XED_ATTRIBUTES_H_
#if !defined(XED_ATTRIBUTES_H)
# define XED_ATTRIBUTES_H
#include "xed-types.h"

typedef struct {
Expand Down
4 changes: 2 additions & 2 deletions include/public/xed/xed-chip-features.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Copyright (c) 2016 Intel Corporation
END_LEGAL */

#if !defined(_XED_CHIP_FEATURES_H_)
# define _XED_CHIP_FEATURES_H_
#if !defined(XED_CHIP_FEATURES_H)
# define XED_CHIP_FEATURES_H

#include "xed-common-hdrs.h"
#include "xed-types.h"
Expand Down
Loading

0 comments on commit 85e545d

Please sign in to comment.