HelenOS sources

search            220 uspace/app/edit/edit.c static void search(char *pattern, bool reverse);
search           1988 uspace/app/edit/edit.c 	search(pane.previous_search, pane.previous_search_reverse);
search           2010 uspace/app/edit/edit.c 	search_t *search = search_init(pattern, &producer_pos, ops, reverse);
search           2011 uspace/app/edit/edit.c 	if (search == NULL) {
search           2017 uspace/app/edit/edit.c 	errno_t rc = search_next_match(search, &match);
search           2020 uspace/app/edit/edit.c 		search_fini(search);
search           2042 uspace/app/edit/edit.c 	search_fini(search);
search           2819 uspace/app/edit/edit.c 	search(pattern, reverse);
search             48 uspace/app/edit/search.c 	search_t *search = calloc(1, sizeof(search_t));
search             49 uspace/app/edit/search.c 	if (search == NULL)
search             54 uspace/app/edit/search.c 		free(search);
search             58 uspace/app/edit/search.c 	search->pattern_length = wstr_length(p);
search             63 uspace/app/edit/search.c 		half = search->pattern_length / 2;
search             66 uspace/app/edit/search.c 			p[pos] = p[search->pattern_length - pos - 1];
search             67 uspace/app/edit/search.c 			p[search->pattern_length - pos - 1] = tmp;
search             71 uspace/app/edit/search.c 	search->pattern = p;
search             73 uspace/app/edit/search.c 	search->client_data = client_data;
search             74 uspace/app/edit/search.c 	search->ops = ops;
search             75 uspace/app/edit/search.c 	search->back_table = calloc(search->pattern_length, sizeof(ssize_t));
search             76 uspace/app/edit/search.c 	if (search->back_table == NULL) {
search             77 uspace/app/edit/search.c 		free(search->pattern);
search             78 uspace/app/edit/search.c 		free(search);
search             82 uspace/app/edit/search.c 	search->pattern_pos = 0;
search             84 uspace/app/edit/search.c 	search->back_table[0] = -1;
search             85 uspace/app/edit/search.c 	search->back_table[1] = 0;
search             88 uspace/app/edit/search.c 	while (table_idx < search->pattern_length) {
search             89 uspace/app/edit/search.c 		if (ops.equals(search->pattern[table_idx - 1],
search             90 uspace/app/edit/search.c 		    search->pattern[pattern_idx])) {
search             92 uspace/app/edit/search.c 			search->back_table[table_idx] = pattern_idx;
search             95 uspace/app/edit/search.c 			pattern_idx = search->back_table[pattern_idx];
search            102 uspace/app/edit/search.c 	return search;
search            136 uspace/app/edit/search.c void search_fini(search_t *search)
search            138 uspace/app/edit/search.c 	free(search->pattern);
search            139 uspace/app/edit/search.c 	free(search->back_table);
search             42 uspace/app/edit/search.h struct search;
search             43 uspace/app/edit/search.h typedef struct search search_t;
search            168 uspace/dist/src/c/demos/edit/edit.c static void search(char *pattern, bool reverse);
search           1358 uspace/dist/src/c/demos/edit/edit.c 	search(pattern, reverse);
search           1368 uspace/dist/src/c/demos/edit/edit.c 	search(pane.previous_search, pane.previous_search_reverse);
search           1390 uspace/dist/src/c/demos/edit/edit.c 	search_t *search = search_init(pattern, &producer_pos, ops, reverse);
search           1391 uspace/dist/src/c/demos/edit/edit.c 	if (search == NULL) {
search           1397 uspace/dist/src/c/demos/edit/edit.c 	errno_t rc = search_next_match(search, &match);
search           1400 uspace/dist/src/c/demos/edit/edit.c 		search_fini(search);
search           1422 uspace/dist/src/c/demos/edit/edit.c 	search_fini(search);
search             47 uspace/dist/src/c/demos/edit/search.c 	search_t *search = calloc(1, sizeof(search_t));
search             48 uspace/dist/src/c/demos/edit/search.c 	if (search == NULL)
search             53 uspace/dist/src/c/demos/edit/search.c 		free(search);
search             57 uspace/dist/src/c/demos/edit/search.c 	search->pattern_length = wstr_length(p);
search             62 uspace/dist/src/c/demos/edit/search.c 		half = search->pattern_length / 2;
search             65 uspace/dist/src/c/demos/edit/search.c 			p[pos] = p[search->pattern_length - pos - 1];
search             66 uspace/dist/src/c/demos/edit/search.c 			p[search->pattern_length - pos - 1] = tmp;
search             70 uspace/dist/src/c/demos/edit/search.c 	search->pattern = p;
search             72 uspace/dist/src/c/demos/edit/search.c 	search->client_data = client_data;
search             73 uspace/dist/src/c/demos/edit/search.c 	search->ops = ops;
search             74 uspace/dist/src/c/demos/edit/search.c 	search->back_table = calloc(search->pattern_length, sizeof(ssize_t));
search             75 uspace/dist/src/c/demos/edit/search.c 	if (search->back_table == NULL) {
search             76 uspace/dist/src/c/demos/edit/search.c 		free(search->pattern);
search             77 uspace/dist/src/c/demos/edit/search.c 		free(search);
search             81 uspace/dist/src/c/demos/edit/search.c 	search->pattern_pos = 0;
search             83 uspace/dist/src/c/demos/edit/search.c 	search->back_table[0] = -1;
search             84 uspace/dist/src/c/demos/edit/search.c 	search->back_table[1] = 0;
search             87 uspace/dist/src/c/demos/edit/search.c 	while (table_idx < search->pattern_length) {
search             88 uspace/dist/src/c/demos/edit/search.c 		if (ops.equals(search->pattern[table_idx - 1],
search             89 uspace/dist/src/c/demos/edit/search.c 		    search->pattern[pattern_idx])) {
search             91 uspace/dist/src/c/demos/edit/search.c 			search->back_table[table_idx] = pattern_idx;
search             94 uspace/dist/src/c/demos/edit/search.c 			pattern_idx = search->back_table[pattern_idx];
search            101 uspace/dist/src/c/demos/edit/search.c 	return search;
search            135 uspace/dist/src/c/demos/edit/search.c void search_fini(search_t *search)
search            137 uspace/dist/src/c/demos/edit/search.c 	free(search->pattern);
search            138 uspace/dist/src/c/demos/edit/search.c 	free(search->back_table);
search             41 uspace/dist/src/c/demos/edit/search.h struct search;
search             42 uspace/dist/src/c/demos/edit/search.h typedef struct search search_t;
search            236 uspace/srv/fs/mfs/mfs_balloc.c 	unsigned *search;
search            244 uspace/srv/fs/mfs/mfs_balloc.c 		search = &sbi->zsearch;
search            252 uspace/srv/fs/mfs/mfs_balloc.c 		search = &sbi->isearch;
search            280 uspace/srv/fs/mfs/mfs_balloc.c 	if (*search > idx)
search            281 uspace/srv/fs/mfs/mfs_balloc.c 		*search = idx;
search            303 uspace/srv/fs/mfs/mfs_balloc.c 	unsigned *search, i, start_block;
search            315 uspace/srv/fs/mfs/mfs_balloc.c 		search = &sbi->zsearch;
search            318 uspace/srv/fs/mfs/mfs_balloc.c 		search = &sbi->isearch;
search            326 uspace/srv/fs/mfs/mfs_balloc.c 	for (i = *search / bits_per_block; i < nblocks; ++i) {
search            333 uspace/srv/fs/mfs/mfs_balloc.c 		unsigned tmp = *search % bits_per_block;
search            355 uspace/srv/fs/mfs/mfs_balloc.c 		*search = *idx;
search            361 uspace/srv/fs/mfs/mfs_balloc.c 	if (*search > 0) {
search            363 uspace/srv/fs/mfs/mfs_balloc.c 		*search = 0;
HelenOS homepage, sources at GitHub