Changeset 4797
- Timestamp:
- 09/16/07 17:47:16 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/lib/conf-lex.l
r4273 r4797 75 75 NUM 0|([1-9][[:digit:]]*) 76 76 77 /* Only number between 1 and 255, octally represented. */78 79 OCTESC (1[0-7]{0,2})|([2-7][0-7]?)|(0[1-7][0-7]?)|(00[1-7])80 81 77 82 78 %% … … 312 308 \\v buffer_add_char("\v"); 313 309 314 /* We can't support \0, this would cause havoc! */315 316 \\{OCTESC} {317 int res;318 sscanf(sensors_yytext+1,"%o",&res);319 buffer_add_char(&res);320 }321 322 310 /* Other escapes: just copy the character behind the slash */ 323 311 324 312 \\. { 325 313 buffer_add_char(&sensors_yytext[1]); 326 }327 328 /* This prevents backing up; it is otherwise purely redundant */329 330 \\00 {331 buffer_add_char("00");332 314 } 333 315
