- fix #909754 - magic number for Python-3.3 - fix #912271 - do not report dwarf debug info packages as 'stripped' - fix #882321 - do not print 'unknown capability' for ELF capabilities for architectures which File does not support - fix #866000 - show proper build id for ELF binaries - fix #860139 - better dump file recognition on big endian architectures - remove file-static subpackage - move python-magic .py files to python_sitearch
42 lines
936 B
Diff
42 lines
936 B
Diff
diff --git a/magic/Magdir/c-lang b/magic/Magdir/c-lang
|
|
index 0665627..fdefa8c 100644
|
|
--- a/magic/Magdir/c-lang
|
|
+++ b/magic/Magdir/c-lang
|
|
@@ -6,26 +6,36 @@
|
|
# BCPL
|
|
0 search/8192 "libhdr" BCPL source text
|
|
!:mime text/x-bcpl
|
|
+!:strength / 2
|
|
0 search/8192 "LIBHDR" BCPL source text
|
|
!:mime text/x-bcpl
|
|
+!:strength / 2
|
|
|
|
# C
|
|
0 regex \^#include C source text
|
|
!:mime text/x-c
|
|
+!:strength / 2
|
|
0 regex \^char C source text
|
|
!:mime text/x-c
|
|
+!:strength / 2
|
|
0 regex \^double C source text
|
|
!:mime text/x-c
|
|
+!:strength / 2
|
|
0 regex \^extern C source text
|
|
!:mime text/x-c
|
|
+!:strength / 2
|
|
0 regex \^float C source text
|
|
!:mime text/x-c
|
|
+!:strength / 2
|
|
0 regex \^struct C source text
|
|
!:mime text/x-c
|
|
+!:strength / 2
|
|
0 regex \^union C source text
|
|
!:mime text/x-c
|
|
+!:strength / 2
|
|
0 search/8192 main( C source text
|
|
!:mime text/x-c
|
|
+!:strength / 2
|
|
|
|
# C++
|
|
# The strength of these rules is increased so they beat the C rules above
|