Show
Ignore:
Timestamp:
2006年09月09日 16時30分10秒 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/emacs-lisp/bindat.el

    r4148 r4161  
    6767;;  The corresponding Lisp bindat specification looks like this: 
    6868;; 
    69 ;;  (setq header-spec 
     69;;  (setq header-bindat-spec 
    7070;;    '((dest-ip   ip) 
    7171;;      (src-ip    ip) 
     
    7373;;      (src-port  u16))) 
    7474;; 
    75 ;;  (setq data-spec 
     75;;  (setq data-bindat-spec 
    7676;;    '((type      u8) 
    7777;;      (opcode    u8) 
     
    8181;;      (align     4))) 
    8282;; 
    83 ;;  (setq packet-spec 
    84 ;;    '((header    struct header-spec) 
     83;;  (setq packet-bindat-spec 
     84;;    '((header    struct header-bindat-spec) 
    8585;;      (items     u8) 
    8686;;      (fill      3) 
    8787;;      (item      repeat (items) 
    88 ;;                 (struct data-spec)))) 
     88;;                 (struct data-bindat-spec)))) 
    8989;; 
    9090;; 
     
    121121;; Binary Data Structure Specification Format 
    122122;; ------------------------------------------ 
     123 
     124;; We recommend using names that end in `-bindat-spec'; such names 
     125;; are recognized automatically as "risky" variables. 
    123126 
    124127;; The data specification is formatted as follows: 
     
    343346(defun bindat-unpack (spec bindat-raw &optional bindat-idx) 
    344347  "Return structured data according to SPEC for binary data in BINDAT-RAW. 
    345 BINDAT-RAW is a unibyte string or vector.  Optional third arg BINDAT-IDX specifies 
    346 the starting offset in BINDAT-RAW." 
     348BINDAT-RAW is a unibyte string or vector. 
     349Optional third arg BINDAT-IDX specifies the starting offset in BINDAT-RAW." 
    347350  (when (multibyte-string-p bindat-raw) 
    348351    (error "String is multibyte"))