- Timestamp:
- May 4, 2005, 11:48:53 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-Metadata-Config/lib/PS/IPP/Metadata/Config.pm
r3839 r3840 1 1 # Copyright (c) 2005 Joshua Hoblitt 2 2 # 3 # $Id: Config.pm,v 1.1 4 2005-05-04 21:46:13 jhoblitt Exp $3 # $Id: Config.pm,v 1.15 2005-05-04 21:48:53 jhoblitt Exp $ 4 4 5 5 package PS::IPP::Metadata::Config; … … 256 256 257 257 typedef: 258 <skip:'[ \t\r]*'> name typedef_type <commit> name(s) comment(?) "\n"258 <skip:'[ \t\r]*'> name typedef_type <commit> word(s) comment(?) "\n" 259 259 { 260 260 my $type = $thisparser->{local}{typedef}{ $item{typedef_type} }; 261 261 262 unless ( scalar @{ $item{'name(s)'} } == $type->{length} ) { 262 unless ( scalar @{ $item{'word(s)'} } == $type->{length} ) { 263 my $expect = $type->{length}; 264 my $got = scalar @{ $item{'word(s)'} }; 263 265 carp "\"$item{name} $item{typedef_type}\"" 264 . " does not have enough fields ";266 . " does not have enough fields, epected: $expect, got: $got"; 265 267 $return = undef; 266 268 } else { … … 272 274 class => 'scalar', 273 275 type => 'STR', 274 value => $item{' name(s)'}[$i],276 value => $item{'word(s)'}[$i], 275 277 }; 276 278 … … 397 399 /(?:\S[^#\n]*)?[^#\n ]/ 398 400 401 word: 402 /(?:[^#\s\n]+)/ 403 399 404 to_end_of_line: 400 405 /[^\n]*/
Note:
See TracChangeset
for help on using the changeset viewer.
