Merge branch 'cleanup' of git://github.com/mrjbq7/factor

db4
Slava Pestov 2011-05-06 20:27:59 -07:00
commit d58555d6f5
3 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ PRIVATE>
MACRO: polyval* ( p -- ) MACRO: polyval* ( p -- )
reverse reverse
[ 1 tail [ \ * swap \ + [ ] 3sequence ] map ] [ rest [ \ * swap \ + [ ] 3sequence ] map ]
[ first \ drop swap [ ] 2sequence ] bi [ first \ drop swap [ ] 2sequence ] bi
prefix \ cleave [ ] 2sequence ; prefix \ cleave [ ] 2sequence ;

View File

@ -536,7 +536,7 @@ TYPED:: elf-section-data-by-name ( elf: Elf32/64_Ehdr name: string -- header/f u
elf elf-section-headers :> sections elf elf-section-headers :> sections
elf e_shstrndx>> :> ndx elf e_shstrndx>> :> ndx
elf ndx sections nth elf-section-data >c-ptr :> section-names elf ndx sections nth elf-section-data >c-ptr :> section-names
sections 1 tail [ sections rest [
sh_name>> section-names <displaced-alien> ascii alien>string name = sh_name>> section-names <displaced-alien> ascii alien>string name =
] find nip ] find nip
[ dup elf swap elf-section-data ] [ dup elf swap elf-section-data ]

View File

@ -7,7 +7,7 @@ IN: irc.messages.parser
<PRIVATE <PRIVATE
: split-at-first ( seq separators -- before after ) : split-at-first ( seq separators -- before after )
dupd '[ _ member? ] find [ cut 1 tail ] [ swap ] if ; dupd '[ _ member? ] find [ cut rest ] [ swap ] if ;
: split-trailing ( string -- string string/f ) ":" split1 ; : split-trailing ( string -- string string/f ) ":" split1 ;
: remove-heading-: ( seq -- seq ) ":" ?head drop ; : remove-heading-: ( seq -- seq ) ":" ?head drop ;