diff options
author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2006-02-14 09:23:25 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2006-02-14 09:23:25 +0000 |
commit | 63ca3bfe9d3c9fe062aa1826416831aee6b54f65 (patch) | |
tree | 524d4aa8caa7a765ede9b6a06693bb0859edc8e6 | |
parent | a253e7361f8f7870cbce4e64e9cc600cb947a8c4 (diff) | |
download | busybox-w32-63ca3bfe9d3c9fe062aa1826416831aee6b54f65.tar.gz busybox-w32-63ca3bfe9d3c9fe062aa1826416831aee6b54f65.tar.bz2 busybox-w32-63ca3bfe9d3c9fe062aa1826416831aee6b54f65.zip |
commentary typos. Thank by aldot
-rw-r--r-- | scripts/bb_mkdep.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/scripts/bb_mkdep.c b/scripts/bb_mkdep.c index 7219feef9..d17612b25 100644 --- a/scripts/bb_mkdep.c +++ b/scripts/bb_mkdep.c | |||
@@ -109,9 +109,9 @@ static llist_t *configs; /* list of -c usaged and them stat() after parsed */ | |||
109 | static llist_t *Iop; /* list of -I include usaged */ | 109 | static llist_t *Iop; /* list of -I include usaged */ |
110 | 110 | ||
111 | static char *pwd; /* current work directory */ | 111 | static char *pwd; /* current work directory */ |
112 | static size_t replace; /* replace current work derectory to build dir */ | 112 | static size_t replace; /* replace current work derectory with build dir */ |
113 | 113 | ||
114 | static const char *kp; /* KEY path, argument of -k usaged */ | 114 | static const char *kp; /* KEY path, argument of -k used */ |
115 | static size_t kp_len; | 115 | static size_t kp_len; |
116 | static struct stat st_kp; /* stat(kp) */ | 116 | static struct stat st_kp; /* stat(kp) */ |
117 | 117 | ||
@@ -722,7 +722,7 @@ static void c_lex_config(const char *fname, long fsize) | |||
722 | int state; | 722 | int state; |
723 | int line; | 723 | int line; |
724 | char *id = id_s; | 724 | char *id = id_s; |
725 | size_t id_len = 0; /* stupid initialize */ | 725 | size_t id_len = 0; /* stupid initialization */ |
726 | unsigned char *optr, *oend; | 726 | unsigned char *optr, *oend; |
727 | int mode = CONFIG_MODE; | 727 | int mode = CONFIG_MODE; |
728 | 728 | ||
@@ -1036,7 +1036,7 @@ static void c_lex_src(const char *fname, long fsize) | |||
1036 | int state; | 1036 | int state; |
1037 | int line; | 1037 | int line; |
1038 | char *id = id_s; | 1038 | char *id = id_s; |
1039 | size_t id_len = 0; /* stupid initialize */ | 1039 | size_t id_len = 0; /* stupid initialization */ |
1040 | unsigned char *optr, *oend; | 1040 | unsigned char *optr, *oend; |
1041 | 1041 | ||
1042 | int fd; | 1042 | int fd; |
@@ -1167,7 +1167,7 @@ static void c_lex_src(const char *fname, long fsize) | |||
1167 | put_id(c); | 1167 | put_id(c); |
1168 | getc1(); | 1168 | getc1(); |
1169 | } | 1169 | } |
1170 | /* have str begined with c, readed == strlen key and compared */ | 1170 | /* str begins with c, read == strlen key and compared */ |
1171 | if(diu == id_len && !memcmp(id, p_preproc[diu], diu)) { | 1171 | if(diu == id_len && !memcmp(id, p_preproc[diu], diu)) { |
1172 | state = diu + '0'; | 1172 | state = diu + '0'; |
1173 | id_len = 0; /* common for save */ | 1173 | id_len = 0; /* common for save */ |
@@ -1227,7 +1227,7 @@ too_long: | |||
1227 | } | 1227 | } |
1228 | 1228 | ||
1229 | 1229 | ||
1230 | /* bb_simplify_path special variant for apsolute pathname */ | 1230 | /* bb_simplify_path special variant for absolute pathname */ |
1231 | static size_t bb_qa_simplify_path(char *path) | 1231 | static size_t bb_qa_simplify_path(char *path) |
1232 | { | 1232 | { |
1233 | char *s, *p; | 1233 | char *s, *p; |
@@ -1277,7 +1277,7 @@ static void parse_inc(const char *include, const char *fname) | |||
1277 | const char *p; | 1277 | const char *p; |
1278 | 1278 | ||
1279 | lo = Iop; | 1279 | lo = Iop; |
1280 | p = strrchr(fname, '/'); /* fname have absolute pathname */ | 1280 | p = strrchr(fname, '/'); /* fname has absolute pathname */ |
1281 | w = (p-fname); | 1281 | w = (p-fname); |
1282 | /* find from current directory of source file */ | 1282 | /* find from current directory of source file */ |
1283 | ap = bb_asprint("%.*s/%s", w, fname, include); | 1283 | ap = bb_asprint("%.*s/%s", w, fname, include); |
@@ -1302,7 +1302,7 @@ static void parse_inc(const char *include, const char *fname) | |||
1302 | 1302 | ||
1303 | /* find from "-I include" specified directories */ | 1303 | /* find from "-I include" specified directories */ |
1304 | free(ap); | 1304 | free(ap); |
1305 | /* lo->data have absolute pathname */ | 1305 | /* lo->data has absolute pathname */ |
1306 | ap = bb_asprint("%s/%s", lo->data, include); | 1306 | ap = bb_asprint("%s/%s", lo->data, include); |
1307 | lo = lo->link; | 1307 | lo = lo->link; |
1308 | } | 1308 | } |
@@ -1329,7 +1329,7 @@ static void parse_conf_opt(const char *opt, const char *val, size_t key_sz) | |||
1329 | 1329 | ||
1330 | cur = check_key(key_top, opt, key_sz); | 1330 | cur = check_key(key_top, opt, key_sz); |
1331 | if(cur != NULL) { | 1331 | if(cur != NULL) { |
1332 | /* present already */ | 1332 | /* already present */ |
1333 | cur->checked = NULL; /* store only */ | 1333 | cur->checked = NULL; /* store only */ |
1334 | if(cur->value == NULL && val == NULL) | 1334 | if(cur->value == NULL && val == NULL) |
1335 | return; | 1335 | return; |
@@ -1369,7 +1369,7 @@ static void parse_conf_opt(const char *opt, const char *val, size_t key_sz) | |||
1369 | first_chars[(int)*k] = *k; | 1369 | first_chars[(int)*k] = *k; |
1370 | 1370 | ||
1371 | cur->stored_path = k = bb_asprint("%s/%s.h", kp, k); | 1371 | cur->stored_path = k = bb_asprint("%s/%s.h", kp, k); |
1372 | /* key converting [A-Z_] -> [a-z/] */ | 1372 | /* key conversion [A-Z_] -> [a-z/] */ |
1373 | for(p = k + kp_len + 1; *p; p++) { | 1373 | for(p = k + kp_len + 1; *p; p++) { |
1374 | if(*p >= 'A' && *p <= 'Z') | 1374 | if(*p >= 'A' && *p <= 'Z') |
1375 | *p = *p - 'A' + 'a'; | 1375 | *p = *p - 'A' + 'a'; |
@@ -1405,7 +1405,7 @@ static void store_keys(void) | |||
1405 | } | 1405 | } |
1406 | /* size_t -> ssize_t :( */ | 1406 | /* size_t -> ssize_t :( */ |
1407 | rw_ret = (ssize_t)recordsz; | 1407 | rw_ret = (ssize_t)recordsz; |
1408 | /* check kp/key.h, compare after previous usage */ | 1408 | /* check kp/key.h, compare after previous use */ |
1409 | cmp_ok = 0; | 1409 | cmp_ok = 0; |
1410 | k = cur->stored_path; | 1410 | k = cur->stored_path; |
1411 | if(stat(k, &st)) { | 1411 | if(stat(k, &st)) { |
@@ -1541,7 +1541,7 @@ parse_chd(const char *fe, const char *p, size_t dirlen) | |||
1541 | return NULL; | 1541 | return NULL; |
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | /* from libbb but inline for fast */ | 1544 | /* from libbb but inlined for speed considerations */ |
1545 | static inline llist_t *llist_add_to(llist_t *old_head, char *new_item) | 1545 | static inline llist_t *llist_add_to(llist_t *old_head, char *new_item) |
1546 | { | 1546 | { |
1547 | llist_t *new_head; | 1547 | llist_t *new_head; |
@@ -1564,7 +1564,7 @@ static void scan_dir_find_ch_files(const char *p) | |||
1564 | 1564 | ||
1565 | dirs = llist_add_to(NULL, bb_simplify_path(p)); | 1565 | dirs = llist_add_to(NULL, bb_simplify_path(p)); |
1566 | replace = strlen(dirs->data); | 1566 | replace = strlen(dirs->data); |
1567 | /* emulate recursive */ | 1567 | /* emulate recursion */ |
1568 | while(dirs) { | 1568 | while(dirs) { |
1569 | d_add = NULL; | 1569 | d_add = NULL; |
1570 | while(dirs) { | 1570 | while(dirs) { |
@@ -1604,7 +1604,7 @@ int main(int argc, char **argv) | |||
1604 | llist_t *fl; | 1604 | llist_t *fl; |
1605 | 1605 | ||
1606 | { | 1606 | { |
1607 | /* for bb_simplify_path, this program have not chdir() */ | 1607 | /* for bb_simplify_path, this program has not chdir() */ |
1608 | /* libbb-like my xgetcwd() */ | 1608 | /* libbb-like my xgetcwd() */ |
1609 | unsigned path_max = 512; | 1609 | unsigned path_max = 512; |
1610 | 1610 | ||
@@ -1664,7 +1664,7 @@ int main(int argc, char **argv) | |||
1664 | for(i = 0; i < UCHAR_MAX; i++) { | 1664 | for(i = 0; i < UCHAR_MAX; i++) { |
1665 | if(ISALNUM(i)) | 1665 | if(ISALNUM(i)) |
1666 | isalnums[i] = i; | 1666 | isalnums[i] = i; |
1667 | /* set unparsed chars for speed up of parser */ | 1667 | /* set unparsed chars to speed up the parser */ |
1668 | else if(i != CHR && i != STR && i != POUND && i != REM) | 1668 | else if(i != CHR && i != STR && i != POUND && i != REM) |
1669 | first_chars[i] = ANY; | 1669 | first_chars[i] = ANY; |
1670 | } | 1670 | } |
@@ -1731,7 +1731,7 @@ static char *bb_simplify_path(const char *path) | |||
1731 | if (path[0] == '/') | 1731 | if (path[0] == '/') |
1732 | start = bb_xstrdup(path); | 1732 | start = bb_xstrdup(path); |
1733 | else { | 1733 | else { |
1734 | /* is not libbb, but this program have not chdir() */ | 1734 | /* is not libbb, but this program has not chdir() */ |
1735 | start = bb_asprint("%s/%s", pwd, path); | 1735 | start = bb_asprint("%s/%s", pwd, path); |
1736 | } | 1736 | } |
1737 | p = s = start; | 1737 | p = s = start; |