Skip to content

Commit

Permalink
more magic from Stefan Haubenthal
Browse files Browse the repository at this point in the history
  • Loading branch information
zoulasc committed Jul 1, 2016
1 parent 4a66312 commit 460f220
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
8 changes: 5 additions & 3 deletions magic/Magdir/apple
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#------------------------------------------------------------------------------
# $File: apple,v 1.31 2015/08/29 07:10:35 christos Exp $
# $File: apple,v 1.32 2015/12/04 20:40:10 christos Exp $
# apple: file(1) magic for Apple file formats
#
0 search/1/t FiLeStArTfIlEsTaRt binscii (apple ][) text
Expand Down Expand Up @@ -327,7 +327,7 @@
>92 belong & 1024 \b, mount at startup
>92 belong & 2048 \b, is the startup partition

#http://wiki.mozilla.org/DS_Store_File_Format`
#http://wiki.mozilla.org/DS_Store_File_Format
#http://en.wikipedia.org/wiki/.DS_Store
0 string \0\0\0\1Bud1\0 Apple Desktop Services Store

Expand All @@ -337,5 +337,7 @@
# extensions rsr/rsrc
0 string \000\000\001\000
>4 leshort 0
>>16 lelong 0 Apple HFS/HFS+ resource fork
>>16 lelong 0 Apple HFS/HFS+ resource fork

#https://en.wikipedia.org/wiki/AppleScript
0 string FasdUAS AppleScript compiled
7 changes: 6 additions & 1 deletion magic/Magdir/c-lang
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#------------------------------------------------------------------------------
# $File: c-lang,v 1.22 2015/10/29 18:49:11 christos Exp $
# $File: c-lang,v 1.23 2016/05/21 14:28:27 christos Exp $
# c-lang: file(1) magic for C and related languages programs
#
# The strength is to beat standard HTML
Expand Down Expand Up @@ -48,6 +48,11 @@
!:strength + 30
!:mime text/x-c++

# Objective-C
0 regex \^#import Objective-C source text
!:strength +25
!:mime text/x-objective-c

# From: Mikhail Teterin <mi@aldan.algebra.com>
0 string cscope cscope reference data
>7 string x version %.2s
Expand Down
6 changes: 3 additions & 3 deletions magic/Magdir/gcc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#------------------------------------------------------------------------------
# $File$
# $File: gcc,v 1.4 2009/09/19 16:28:09 christos Exp $
# gcc: file(1) magic for GCC special files
#
0 string gpch GCC precompiled header
Expand All @@ -12,6 +12,6 @@

# 67 = 'C', 111 = 'o', 43 = '+', 79 = 'O'
>4 byte 67 for C
>4 byte 111 for Objective C
>4 byte 111 for Objective-C
>4 byte 43 for C++
>4 byte 79 for Objective C++
>4 byte 79 for Objective-C++

0 comments on commit 460f220

Please sign in to comment.