Skip to content

Commit

Permalink
src/lib/openjp2/*.h: use OPJ_ prefix for inclusion guards instead of …
Browse files Browse the repository at this point in the history
…reserved __ (#587)
  • Loading branch information
rouault committed Jul 30, 2017
1 parent 9a6d41d commit 13cde9f
Show file tree
Hide file tree
Showing 22 changed files with 66 additions and 66 deletions.
6 changes: 3 additions & 3 deletions src/lib/openjp2/bio.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __BIO_H
#define __BIO_H
#ifndef OPJ_BIO_H
#define OPJ_BIO_H

#include <stddef.h> /* ptrdiff_t */

Expand Down Expand Up @@ -130,5 +130,5 @@ OPJ_BOOL opj_bio_inalign(opj_bio_t *bio);

/*@}*/

#endif /* __BIO_H */
#endif /* OPJ_BIO_H */

6 changes: 3 additions & 3 deletions src/lib/openjp2/cio.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __CIO_H
#define __CIO_H
#ifndef OPJ_CIO_H
#define OPJ_CIO_H
/**
@file cio.h
@brief Implementation of a byte input-output process (CIO)
Expand Down Expand Up @@ -408,5 +408,5 @@ OPJ_BOOL opj_stream_default_seek(OPJ_OFF_T p_nb_bytes, void * p_user_data);
/*@}*/


#endif /* __CIO_H */
#endif /* OPJ_CIO_H */

6 changes: 3 additions & 3 deletions src/lib/openjp2/dwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __DWT_H
#define __DWT_H
#ifndef OPJ_DWT_H
#define OPJ_DWT_H
/**
@file dwt.h
@brief Implementation of a discrete wavelet transform (DWT)
Expand Down Expand Up @@ -122,4 +122,4 @@ void opj_dwt_calc_explicit_stepsizes(opj_tccp_t * tccp, OPJ_UINT32 prec);

/*@}*/

#endif /* __DWT_H */
#endif /* OPJ_DWT_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __EVENT_H
#define __EVENT_H
#ifndef OPJ_EVENT_H
#define OPJ_EVENT_H
/**
@file event.h
@brief Implementation of a event callback system
Expand Down Expand Up @@ -105,4 +105,4 @@ void opj_set_default_event_handler(opj_event_mgr_t * p_manager);

/*@}*/

#endif /* __EVENT_H */
#endif /* OPJ_EVENT_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/function_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __FUNCTION_LIST_H
#define __FUNCTION_LIST_H
#ifndef OPJ_FUNCTION_LIST_H
#define OPJ_FUNCTION_LIST_H

/**
* @file function_list.h
Expand Down Expand Up @@ -130,5 +130,5 @@ opj_procedure* opj_procedure_list_get_first_procedure(opj_procedure_list_t *
void opj_procedure_list_clear(opj_procedure_list_t * p_validation_list);
/*@}*/

#endif /* __FUNCTION_LIST_H */
#endif /* OPJ_FUNCTION_LIST_H */

6 changes: 3 additions & 3 deletions src/lib/openjp2/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __IMAGE_H
#define __IMAGE_H
#ifndef OPJ_IMAGE_H
#define OPJ_IMAGE_H
/**
@file image.h
@brief Implementation of operations on images (IMAGE)
Expand Down Expand Up @@ -66,5 +66,5 @@ void opj_copy_image_header(const opj_image_t* p_image_src,

/*@}*/

#endif /* __IMAGE_H */
#endif /* OPJ_IMAGE_H */

6 changes: 3 additions & 3 deletions src/lib/openjp2/invert.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __INVERT_H
#define __INVERT_H
#ifndef OPJ_INVERT_H
#define OPJ_INVERT_H
/**
@file invert.h
@brief Implementation of the matrix inversion
Expand Down Expand Up @@ -61,4 +61,4 @@ OPJ_BOOL opj_matrix_inversion_f(OPJ_FLOAT32 * pSrcMatrix,

/*@}*/

#endif /* __INVERT_H */
#endif /* OPJ_INVERT_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/j2k.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __J2K_H
#define __J2K_H
#ifndef OPJ_J2K_H
#define OPJ_J2K_H
/**
@file j2k.h
@brief The JPEG-2000 Codestream Reader/Writer (J2K)
Expand Down Expand Up @@ -849,4 +849,4 @@ OPJ_BOOL opj_j2k_end_compress(opj_j2k_t *p_j2k,
OPJ_BOOL opj_j2k_setup_mct_encoding(opj_tcp_t * p_tcp, opj_image_t * p_image);


#endif /* __J2K_H */
#endif /* OPJ_J2K_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/jp2.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __JP2_H
#define __JP2_H
#ifndef OPJ_JP2_H
#define OPJ_JP2_H
/**
@file jp2.h
@brief The JPEG-2000 file format Reader/Writer (JP2)
Expand Down Expand Up @@ -471,5 +471,5 @@ opj_codestream_index_t* jp2_get_cstr_index(opj_jp2_t* p_jp2);

/*@}*/

#endif /* __JP2_H */
#endif /* OPJ_JP2_H */

6 changes: 3 additions & 3 deletions src/lib/openjp2/mct.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __MCT_H
#define __MCT_H
#ifndef OPJ_MCT_H
#define OPJ_MCT_H
/**
@file mct.h
@brief Implementation of a multi-component transforms (MCT)
Expand Down Expand Up @@ -156,4 +156,4 @@ const OPJ_FLOAT64 * opj_mct_get_mct_norms_real(void);

/*@}*/

#endif /* __MCT_H */
#endif /* OPJ_MCT_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/mqc.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __MQC_H
#define __MQC_H
#ifndef OPJ_MQC_H
#define OPJ_MQC_H

#include "opj_common.h"

Expand Down Expand Up @@ -268,4 +268,4 @@ Decode a symbol

/*@}*/

#endif /* __MQC_H */
#endif /* OPJ_MQC_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/mqc_inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __MQC_INL_H
#define __MQC_INL_H
#ifndef OPJ_MQC_INL_H
#define OPJ_MQC_INL_H

/* For internal use of opj_mqc_decode_macro() */
#define opj_mqc_mpsexchange_macro(d, curctx, a) \
Expand Down Expand Up @@ -193,4 +193,4 @@ Decode a symbol
#define opj_mqc_decode(d, mqc) \
opj_mqc_decode_macro(d, mqc, mqc->curctx, mqc->a, mqc->c, mqc->ct)

#endif /* __MQC_INL_H */
#endif /* OPJ_MQC_INL_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/opj_clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __OPJ_CLOCK_H
#define __OPJ_CLOCK_H
#ifndef OPJ_CLOCK_H
#define OPJ_CLOCK_H
/**
@file opj_clock.h
@brief Internal function for timing
Expand All @@ -55,5 +55,5 @@ OPJ_FLOAT64 opj_clock(void);

/*@}*/

#endif /* __OPJ_CLOCK_H */
#endif /* OPJ_CLOCK_H */

6 changes: 3 additions & 3 deletions src/lib/openjp2/opj_codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __OPJ_CODEC_H
#define __OPJ_CODEC_H
#ifndef OPJ_CODEC_H
#define OPJ_CODEC_H
/**
@file opj_codec.h
*/
Expand Down Expand Up @@ -162,5 +162,5 @@ typedef struct opj_codec_private {
opj_codec_private_t;


#endif /* __OPJ_CODEC_H */
#endif /* OPJ_CODEC_H */

6 changes: 3 additions & 3 deletions src/lib/openjp2/opj_intmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __INT_H
#define __INT_H
#ifndef OPJ_INTMATH_H
#define OPJ_INTMATH_H
/**
@file opj_intmath.h
@brief Implementation of operations on integers (INT)
Expand Down Expand Up @@ -240,4 +240,4 @@ static INLINE OPJ_INT32 opj_int_fix_mul_t1(OPJ_INT32 a, OPJ_INT32 b)

/*@}*/

#endif
#endif /* OPJ_INTMATH_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/opj_malloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __OPJ_MALLOC_H
#define __OPJ_MALLOC_H
#ifndef OPJ_MALLOC_H
#define OPJ_MALLOC_H

#include <stddef.h>
/**
Expand Down Expand Up @@ -102,5 +102,5 @@ void opj_free(void * m);

/*@}*/

#endif /* __OPJ_MALLOC_H */
#endif /* OPJ_MALLOC_H */

6 changes: 3 additions & 3 deletions src/lib/openjp2/pi.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __PI_H
#define __PI_H
#ifndef OPJ_PI_H
#define OPJ_PI_H
/**
@file pi.h
@brief Implementation of a packet iterator (PI)
Expand Down Expand Up @@ -187,4 +187,4 @@ OPJ_BOOL opj_pi_next(opj_pi_iterator_t * pi);

/*@}*/

#endif /* __PI_H */
#endif /* OPJ_PI_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/t1.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __T1_H
#define __T1_H
#ifndef OPJ_T1_H
#define OPJ_T1_H
/**
@file t1.h
@brief Implementation of the tier-1 coding (coding of code-block coefficients) (T1)
Expand Down Expand Up @@ -258,4 +258,4 @@ void opj_t1_destroy(opj_t1_t *p_t1);

/*@}*/

#endif /* __T1_H */
#endif /* OPJ_T1_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/t2.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __T2_H
#define __T2_H
#ifndef OPJ_T2_H
#define OPJ_T2_H
/**
@file t2.h
@brief Implementation of a tier-2 coding (packetization of code-block data) (T2)
Expand Down Expand Up @@ -132,4 +132,4 @@ void opj_t2_destroy(opj_t2_t *t2);

/*@}*/

#endif /* __T2_H */
#endif /* OPJ_T2_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/tcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __TCD_H
#define __TCD_H
#ifndef OPJ_TCD_H
#define OPJ_TCD_H
/**
@file tcd.h
@brief Implementation of a tile coder/decoder (TCD)
Expand Down Expand Up @@ -386,4 +386,4 @@ OPJ_BOOL opj_tcd_is_band_empty(opj_tcd_band_t* band);

/*@}*/

#endif /* __TCD_H */
#endif /* OPJ_TCD_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/tgt.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __TGT_H
#define __TGT_H
#ifndef OPJ_TGT_H
#define OPJ_TGT_H
/**
@file tgt.h
@brief Implementation of a tag-tree coder (TGT)
Expand Down Expand Up @@ -145,4 +145,4 @@ OPJ_UINT32 opj_tgt_decode(opj_bio_t *bio,

/*@}*/

#endif /* __TGT_H */
#endif /* OPJ_TGT_H */
6 changes: 3 additions & 3 deletions src/lib/openjp2/tls_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef TLS_KEYS_H
#define TLS_KEYS_H
#ifndef OPJ_TLS_KEYS_H
#define OPJ_TLS_KEYS_H

#define OPJ_TLS_KEY_T1 0

#endif
#endif /* OPJ_TLS_KEY_H */

0 comments on commit 13cde9f

Please sign in to comment.