Changeset aed3e6a in mainline
- Timestamp:
- 2016-12-11T15:48:12Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- df01d303
- Parents:
- e53794c
- Location:
- uspace/srv/devman
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/match.c
re53794c raed3e6a 41 41 #include "devman.h" 42 42 #include "match.h" 43 44 #define COMMENT '#' 43 45 44 46 /** Compute compound score of driver and device. … … 145 147 if (!skip_spaces(&buf)) 146 148 break; 149 150 if (*buf == COMMENT) { 151 skip_line(&buf); 152 continue; 153 } 147 154 148 155 /* read score */ -
uspace/srv/devman/util.c
re53794c raed3e6a 73 73 } 74 74 75 void skip_line(char **buf) 76 { 77 while (**buf && **buf != '\n') 78 (*buf)++; 79 } 80 75 81 size_t get_nonspace_len(const char *str) 76 82 { -
uspace/srv/devman/util.h
re53794c raed3e6a 42 42 43 43 extern bool skip_spaces(char **); 44 extern void skip_line(char **); 44 45 extern size_t get_nonspace_len(const char *); 45 46 extern void replace_char(char *, char, char);
Note:
See TracChangeset
for help on using the changeset viewer.