Changeset 195 for MMagic

Show
Ignore:
Timestamp:
01/05/06 23:26:06 (6 years ago)
Author:
usu
Message:

MMagic.pm (DATA): Performance tuning for mknmz.

Location:
MMagic/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • MMagic/trunk/ChangeLog

    r194 r195  
    55 
    66        * MMagic.pm (magicMatchStr): Fixed time waste problem. 
     7 
     8        * MMagic.pm (__DATA__): Perfomance tuning for mknmz. 
     9          http://www.namazu.org/pipermail/namazu-devel-ja/2005-December/000793.html 
    710 
    8112005-08-27  NOKUBI Takatsugu  <knok@daionet.gr.jp> 
  • MMagic/trunk/MMagic.pm

    r194 r195  
    13841384 
    13851385#------------------------------------------------------------------------------ 
     1386# html:  file(1) magic for HTML (HyperText Markup Language) docs 
     1387# 
     1388# from Daniel Quinlan <quinlan@yggdrasil.com> 
     1389# 
     13900       string          \<!DOCTYPE\ HTML        text/html 
     13910       string          \<!DOCTYPE\ html        text/html 
     13920       string          \<HEAD          text/html 
     13930       string          \<head          text/html 
     13940       string          \<TITLE         text/html 
     13950       string          \<title         text/html 
     13960       string          \<html          text/html 
     13970       string          \<HTML          text/html 
     13980       string          \<!--           text/html 
     13990       string          \<h1            text/html 
     14000       string          \<H1            text/html 
     1401 
     1402#------------------------------------------------------------------------------ 
     1403# mail.news:  file(1) magic for mail and news 
     1404# 
     1405# There are tests to ascmagic.c to cope with mail and news. 
     14060       string          Relay-Version:  message/rfc822 
     14070       string          #!\ rnews       message/rfc822 
     14080       string          N#!\ rnews      message/rfc822 
     14090       string          Forward\ to     message/rfc822 
     14100       string          Pipe\ to        message/rfc822 
     14110       string          Return-Path:    message/rfc822 
     14120       string          Received:       message/rfc822 
     14130       string          Path:           message/news 
     14140       string          Xref:           message/news 
     14150       string          From:           message/rfc822 
     14160       string          Article         message/news 
     1417 
     1418# Acrobat 
     1419# (due to clamen@cs.cmu.edu) 
     14200       string          %PDF-           application/pdf 
     1421 
     1422# ZIP archiver 
     14230               string  PK                              application/x-zip 
     1424 
     1425#------------------------------------------------------------------------------ 
     1426# msword: file(1) magic for MS Word files 
     1427# 
     1428# Contributor claims: 
     1429# Reversed-engineered MS Word magic numbers 
     1430# 
     1431 
     14320       string          \376\067\0\043                  application/msword 
     1433#0      string          \320\317\021\340\241\261        application/msword 
     14340       string          \333\245-\0\0\0                 application/msword 
     1435 
     1436#------------------------------------------------------------------------------ 
    13861437# Java 
    13871438 
     
    15371588 
    15381589#------------------------------------------------------------------------------ 
    1539 # html:  file(1) magic for HTML (HyperText Markup Language) docs 
    1540 # 
    1541 # from Daniel Quinlan <quinlan@yggdrasil.com> 
    1542 # 
    1543 0       string          \<HEAD          text/html 
    1544 0       string          \<head          text/html 
    1545 0       string          \<TITLE         text/html 
    1546 0       string          \<title         text/html 
    1547 0       string          \<html          text/html 
    1548 0       string          \<HTML          text/html 
    1549 0       string          \<!--           text/html 
    1550 0       string          \<h1            text/html 
    1551 0       string          \<H1            text/html 
    1552  
    1553 #------------------------------------------------------------------------------ 
    15541590# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps) 
    15551591# 
     
    16371673 
    16381674#------------------------------------------------------------------------------ 
    1639 # mail.news:  file(1) magic for mail and news 
    1640 # 
    1641 # There are tests to ascmagic.c to cope with mail and news. 
    1642 0       string          Relay-Version:  message/rfc822 
    1643 0       string          #!\ rnews       message/rfc822 
    1644 0       string          N#!\ rnews      message/rfc822 
    1645 0       string          Forward\ to     message/rfc822 
    1646 0       string          Pipe\ to        message/rfc822 
    1647 0       string          Return-Path:    message/rfc822 
    1648 0       string          Received:       message/rfc822 
    1649 0       string          Path:           message/news 
    1650 0       string          Xref:           message/news 
    1651 0       string          From:           message/rfc822 
    1652 0       string          Article         message/news 
    1653 #------------------------------------------------------------------------------ 
    1654 # msword: file(1) magic for MS Word files 
    1655 # 
    1656 # Contributor claims: 
    1657 # Reversed-engineered MS Word magic numbers 
    1658 # 
    1659  
    1660 0       string          \376\067\0\043                  application/msword 
    1661 #0      string          \320\317\021\340\241\261        application/msword 
    1662 0       string          \333\245-\0\0\0                 application/msword 
    1663  
    1664  
    1665  
    1666 #------------------------------------------------------------------------------ 
    16671675# printer:  file(1) magic for printer-formatted files 
    16681676# 
     
    16741682# Jason's support for EPSF <jmaggard@timesdispatch.com> 
    1675168347 string  EPSF  image/eps 
    1676  
    1677 # Acrobat 
    1678 # (due to clamen@cs.cmu.edu) 
    1679 0       string          %PDF-           application/pdf 
    16801684 
    16811685#------------------------------------------------------------------------------ 
     
    183818422               string  -lh 
    18391843>6              string  -                               application/x-lha 
    1840  
    1841 # ZIP archiver 
    1842 0               string  PK                              application/x-zip 
    18431844 
    18441845# POSIX tar archives