chore: Update the .editorconfig files and pacify editorconfig-checker

This commit is contained in:
Cosmin Truta 2024-02-15 18:29:26 +02:00
parent 42c8fcbff9
commit 4191872d0d
15 changed files with 171 additions and 113 deletions

View File

@ -10,29 +10,44 @@ trim_trailing_whitespace = true
# Traditionally, the end-of-line character has been platform-specific. # Traditionally, the end-of-line character has been platform-specific.
end_of_line = unset end_of_line = unset
[*.[chS]]
indent_style = space
max_line_length = 81
[*.{awk,cmake,dfa,in,sh}]
indent_style = space
max_line_length = 100
[*.txt] [*.txt]
indent_style = space indent_style = space
max_line_length = unset
[*.[chS]]
indent_style = space
max_doc_length = 80
max_line_length = 81
# FIXME: max_line_length should be 80
[*.dfa]
indent_style = space
max_doc_length = 80
max_line_length = 80
[*.{awk,cmake}]
indent_style = space
max_doc_length = 80
max_line_length = 100
[*.{in,sh}]
indent_style = space
max_doc_length = 100
max_line_length = 100
[{Makefile.in,ltmain.sh}] [{Makefile.in,ltmain.sh}]
indent_style = unset indent_style = unset
insert_final_newline = unset insert_final_newline = unset
max_doc_length = unset
max_line_length = unset max_line_length = unset
trim_trailing_whitespace = unset trim_trailing_whitespace = unset
[*~] [*~]
end_of_line = unset
indent_style = unset indent_style = unset
insert_final_newline = unset insert_final_newline = unset
max_line_length = unset
trim_trailing_whitespace = unset trim_trailing_whitespace = unset
[COMMIT_EDITMSG] [COMMIT_EDITMSG]
indent_style = space
max_doc_length = unset
max_line_length = 72 max_line_length = 72

View File

@ -2,12 +2,6 @@
root = false root = false
[*] [*.[ch]]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = unset
max_doc_length = unset max_doc_length = unset
max_line_length = unset max_line_length = unset
trim_trailing_whitespace = unset

View File

@ -21,7 +21,7 @@
- 1.10: added support for non-default visuals; fixed X pixel-conversion - 1.10: added support for non-default visuals; fixed X pixel-conversion
- 1.11: added extra set of parentheses to png_jmpbuf() macro; fixed - 1.11: added extra set of parentheses to png_jmpbuf() macro; fixed
command-line parsing bug command-line parsing bug
- 1.12: fixed some small X memory leaks (thanks to François Petitjean) - 1.12: fixed some small X memory leaks (thanks to François Petitjean)
- 1.13: fixed XFreeGC() crash bug (thanks to Patrick Welche) - 1.13: fixed XFreeGC() crash bug (thanks to Patrick Welche)
- 1.14: added support for X resources (thanks to Gerhard Niklasch) - 1.14: added support for X resources (thanks to Gerhard Niklasch)
- 2.00: dual-licensed (added GNU GPL) - 2.00: dual-licensed (added GNU GPL)

View File

@ -27,7 +27,7 @@
- 1.11: added -usleep option for demos; fixed command-line parsing bug - 1.11: added -usleep option for demos; fixed command-line parsing bug
- 1.12: added -pause option for demos and testing - 1.12: added -pause option for demos and testing
- 1.20: added runtime MMX-enabling/disabling and new -mmx* options - 1.20: added runtime MMX-enabling/disabling and new -mmx* options
- 1.21: fixed some small X memory leaks (thanks to François Petitjean) - 1.21: fixed some small X memory leaks (thanks to François Petitjean)
- 1.22: fixed XFreeGC() crash bug (thanks to Patrick Welche) - 1.22: fixed XFreeGC() crash bug (thanks to Patrick Welche)
- 1.23: added -bgpat 0 mode (std white/gray checkerboard, 8x8 squares) - 1.23: added -bgpat 0 mode (std white/gray checkerboard, 8x8 squares)
- 1.30: added -loop option for -bgpat (ifdef FEATURE_LOOP); fixed bpp = - 1.30: added -loop option for -bgpat (ifdef FEATURE_LOOP); fixed bpp =

View File

@ -0,0 +1,22 @@
# https://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = unset
indent_style = unset
insert_final_newline = true
max_doc_length = 80
max_line_length = 100
trim_trailing_whitespace = true
[*.rc]
end_of_line = crlf
trim_trailing_whitespace = unset
[*.ds[pw]]
end_of_line = crlf
max_doc_length = unset
max_line_length = unset
trim_trailing_whitespace = unset

View File

@ -4,4 +4,5 @@ root = false
# FIXME # FIXME
[*.[ch]] [*.[ch]]
max_doc_length = unset
max_line_length = unset max_line_length = unset

8
mips/.editorconfig Normal file
View File

@ -0,0 +1,8 @@
# https://editorconfig.org
root = false
# FIXME
[*.[ch]]
max_doc_length = unset
max_line_length = unset

View File

@ -4,4 +4,5 @@ root = false
# FIXME # FIXME
[*.[ch]] [*.[ch]]
max_doc_length = unset
max_line_length = unset max_line_length = unset

View File

@ -1,13 +1,3 @@
# https://editorconfig.org # https://editorconfig.org
root = false root = true
[*]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = unset
max_doc_length = unset
max_line_length = unset
trim_trailing_whitespace = unset

View File

@ -204,26 +204,33 @@ option SET_OPTION disabled
# These options are specific to the ARM NEON hardware optimizations. At present # These options are specific to the ARM NEON hardware optimizations. At present
# these optimizations depend on GCC specific pre-processing of an assembler (.S) # these optimizations depend on GCC specific pre-processing of an assembler (.S)
# file so they probably won't work with other compilers. # file, so they probably won't work with other compilers.
# #
# ARM_NEON_OPT: unset: check at compile time (__ARM_NEON__ must be defined by # ARM_NEON_OPT:
# the compiler, typically as a result of specifying # unset: check at compile time
# CC="gcc -mfpu=neon".) # (__ARM_NEON__ must be predefined by the compiler, as a result of
# 0: disable (even if the CPU has a NEON FPU.) # passing "-mfpu=neon" to the compiler options)
# 0: disable (even if the CPU has a NEON FPU)
# 1: check at run time (via ARM_NEON_{API,CHECK}) # 1: check at run time (via ARM_NEON_{API,CHECK})
# 2: switch on unconditionally (inadvisable - instead pass # 2: switch on unconditionally
# -mfpu=neon to GCC in CC) # (inadvisable - instead, pass "-mfpu=neon" to the compiler)
# When building libpng avoid using any setting other than '0'; '1' is # NOTE:
# set automatically when either 'API' or 'CHECK' are configured in, # When building libpng, avoid using any setting other than '0';
# '2' should not be necessary as -mfpu=neon will achieve the same # '1' is set automatically when either 'API' or 'CHECK' are configured in;
# effect as well as applying NEON optimizations to the rest of the # '2' should not be necessary, as "-mfpu=neon" will achieve the same effect
# libpng code. # as well as applying the NEON optimizations to the rest of libpng.
# NOTE: any setting other than '0' requires ALIGNED_MEMORY # NOTE:
# ARM_NEON_API: (PNG_ARM_NEON == 1) allow the optimization to be switched on # Any setting other than '0' requires ALIGNED_MEMORY.
# with png_set_option #
# ARM_NEON_CHECK: (PNG_ARM_NEON == 1) compile a run-time check to see if Neon # ARM_NEON_API:
# extensions are supported. This is poorly supported and # (PNG_ARM_NEON == 1)
# deprecated - use the png_set_option API. # Allow the optimization to be switched on with png_set_option.
#
# ARM_NEON_CHECK:
# (PNG_ARM_NEON == 1)
# Compile a run-time check to see if Neon extensions are supported.
# This is poorly supported and deprecated - use the png_set_option API.
#
setting ARM_NEON_OPT setting ARM_NEON_OPT
option ARM_NEON_API disabled requires ALIGNED_MEMORY enables SET_OPTION, option ARM_NEON_API disabled requires ALIGNED_MEMORY enables SET_OPTION,
sets ARM_NEON_OPT 1 sets ARM_NEON_OPT 1
@ -232,24 +239,29 @@ option ARM_NEON_CHECK disabled requires ALIGNED_MEMORY,
# These options are specific to the PowerPC VSX hardware optimizations. # These options are specific to the PowerPC VSX hardware optimizations.
# #
# POWERPC_VSX_OPT: unset: check at compile time (__PPC64__,__ALTIVEC__,__VSX__ # POWERPC_VSX_OPT:
# must be defined by the compiler, typically as a result # unset: check at compile time
# of specifying # (__PPC64__,__ALTIVEC__,__VSX__ must be predefined by the compiler,
# "-mvsx -maltivec" compiler flags) # as a result of passing "-mvsx -maltivec" to the compiler options)
# 0: disable (even if the CPU supports VSX.) # 0: disable (even if the CPU supports VSX)
# 1: check at run time (via POWERPC_VSX_{API,CHECK}) # 1: check at run time (via POWERPC_VSX_{API,CHECK})
# 2: switch on unconditionally (inadvisable - instead pass # 2: switch on unconditionally
# -mvsx -maltivec to compiler options) # (inadvisable - instead, pass "-mvsx -maltivec" to the compiler)
# When building libpng avoid using any setting other than '0'; '1' is # NOTE:
# set automatically when either 'API' or 'CHECK' are configured in, # When building libpng, avoid using any setting other than '0';
# '2' should not be necessary as "-mvsx -maltivec" will achieve the same # '1' is set automatically when either 'API' or 'CHECK' are configured in;
# effect as well as applying VSX optimizations to the rest of the # '2' should not be necessary, as "-mvsx -maltivec" will achieve the same
# libpng code. # effect as well as applying the VSX optimizations to the rest of libpng.
# POWERPC_VSX_API: (PNG_POWERPC_VSX == 1) allow the optimization to be switched on #
# with png_set_option # POWERPC_VSX_API:
# POWERPC_VSX_CHECK: (PNG_POWERPC_VSX == 1) compile a run-time check to see if VSX # (PNG_POWERPC_VSX == 1)
# extensions are supported. This is supported not for all OSes # Allow the optimization to be switched on with png_set_option.
# (see contrib/powerpc/README) #
# POWERPC_VSX_CHECK:
# (PNG_POWERPC_VSX == 1)
# Compile a run-time check to see if VSX extensions are supported.
# This is not supported on all systems. See contrib/powerpc-vsx/README.
#
setting POWERPC_VSX_OPT setting POWERPC_VSX_OPT
option POWERPC_VSX_API disabled enables SET_OPTION, option POWERPC_VSX_API disabled enables SET_OPTION,
sets POWERPC_VSX_OPT 1 sets POWERPC_VSX_OPT 1
@ -258,23 +270,30 @@ option POWERPC_VSX_CHECK disabled,
# These options are specific to the MIPS MSA hardware optimizations. # These options are specific to the MIPS MSA hardware optimizations.
# #
# MIPS_MSA_OPT: unset: check at compile time (__mips_msa must be defined by # MIPS_MSA_OPT:
# the compiler, typically as a result of specifying # unset: check at compile time
# "-mmsa -mfp64" compiler flags) # (__mips_msa must be predefined by the compiler, as a result of
# 0: disable (even if the CPU supports MSA.) # passing "-mmsa -mfp64" to the compiler options)
# 0: disable (even if the CPU supports MSA)
# 1: check at run time (via MIPS_MSA_{API,CHECK}) # 1: check at run time (via MIPS_MSA_{API,CHECK})
# 2: switch on unconditionally (inadvisable - instead pass # 2: switch on unconditionally
# -mmsa -mfp64 to compiler options) # (inadvisable - instead, pass "-mmsa -mfp64" to the compiler)
# When building libpng avoid using any setting other than '0'; '1' is # NOTE:
# set automatically when either 'API' or 'CHECK' are configured in, # When building libpng, avoid using any setting other than '0';
# '2' should not be necessary as "-mmsa -mfp64" will achieve the same # '1' is set automatically when either 'API' or 'CHECK' are configured in;
# effect as well as applying MSA optimizations to the rest of the # '2' should not be necessary, as "-mmsa -mfp64" will achieve the same
# libpng code. # effect as well as applying the MSA optimizations to the rest of libpng.
# NOTE: any setting other than '0' requires ALIGNED_MEMORY # NOTE:
# MIPS_MSA_API: (PNG_MIPS_MSA == 1) allow the optimization to be switched on # Any setting other than '0' requires ALIGNED_MEMORY.
# with png_set_option. #
# MIPS_MSA_CHECK: (PNG_MIPS_MSA == 1) compile a run-time check to see if MSA # MIPS_MSA_API:
# extensions are supported. # (PNG_MIPS_MSA == 1)
# Allow the optimization to be switched on with png_set_option.
#
# MIPS_MSA_CHECK:
# (PNG_MIPS_MSA == 1)
# Compile a run-time check to see if MSA extensions are supported.
#
setting MIPS_MSA_OPT setting MIPS_MSA_OPT
option MIPS_MSA_API disabled requires ALIGNED_MEMORY enables SET_OPTION, option MIPS_MSA_API disabled requires ALIGNED_MEMORY enables SET_OPTION,
sets MIPS_MSA_OPT 1 sets MIPS_MSA_OPT 1
@ -283,22 +302,30 @@ option MIPS_MSA_CHECK disabled requires ALIGNED_MEMORY,
# These options are specific to the MIPS MMI hardware optimizations. # These options are specific to the MIPS MMI hardware optimizations.
# #
# MIPS_MMI_OPT: unset: check at compile time (__mips_loongson_mmi must be defined by # MIPS_MMI_OPT:
# the compiler, typically as a result of specifying # unset: check at compile time
# "-mloongson-mmi -march=loongson3a" compiler flags) # (__mips_loongson_mmi must be defined by the compiler, as a result of
# 0: disable (even if the CPU supports MMI.) # passing "-mloongson-mmi -march=loongson3a" to the compiler options)
# 0: disable (even if the CPU supports MMI)
# 1: check at run time (via MIPS_MMI_{API,CHECK}) # 1: check at run time (via MIPS_MMI_{API,CHECK})
# 2: switch on unconditionally (inadvisable - instead pass # 2: switch on unconditionally
# -mloongson-mmi -march=loongson3a to compiler options) # (inadvisable - instead, pass "-mloongson-mmi -march=loongson3a" to the
# When building libpng avoid using any setting other than '0'; '1' is # compiler)
# set automatically when either 'API' or 'CHECK' are configured in, # NOTE:
# '2' should not be necessary as "-mloongson-mmi -march=loongson3a" will achieve the same # When building libpng, avoid using any setting other than '0';
# effect as well as applying MMI optimizations to the rest of the # '1' is set automatically when either 'API' or 'CHECK' are configured in;
# libpng code. # '2' should not be necessary, as "-mloongson-mmi -march=loongson3a" will
# MIPS_MMI_API: (PNG_MIPS_MMI == 1) allow the optimization to be switched on # achieve the same effect as well as applying the MMI optimizations to the
# with png_set_option # rest of libpng.
# MIPS_MMI_CHECK: (PNG_MIPS_MMI == 1) compile a run-time check to see if MMI #
# extensions are supported. # MIPS_MMI_API:
# (PNG_MIPS_MMI == 1)
# Allow the optimization to be switched on with png_set_option.
#
# MIPS_MMI_CHECK:
# (PNG_MIPS_MMI == 1)
# Compile a run-time check to see if MMI extensions are supported.
#
setting MIPS_MMI_OPT setting MIPS_MMI_OPT
option MIPS_MMI_API disabled requires ALIGNED_MEMORY enables SET_OPTION, option MIPS_MMI_API disabled requires ALIGNED_MEMORY enables SET_OPTION,
sets MIPS_MMI_OPT 1 sets MIPS_MMI_OPT 1