Changeset 15d0046 in mainline for uspace/dist/src/c/demos/edit/search.h
- Timestamp:
- 2014-09-12T13:22:33Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b20126
- Parents:
- 8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/c/demos/edit/search.h
r8db09e4 r15d0046 1 1 /* 2 * Copyright (c) 20 03-2004 Jakub Jermar2 * Copyright (c) 2012 Martin Sucha 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup mips6429 /** @addtogroup edit 30 30 * @{ 31 31 */ 32 /** @file 32 /** 33 * @file 33 34 */ 34 35 35 #ifndef KERN_mips64_INTERRUPT_H_36 #define KERN_mips64_INTERRUPT_H_36 #ifndef SEARCH_H__ 37 #define SEARCH_H__ 37 38 38 #include <typedefs.h> 39 #include <arch/exception.h> 39 #include <str.h> 40 40 41 #define IVT_ITEMS 32 42 #define IVT_FIRST 0 41 struct search; 42 typedef struct search search_t; 43 typedef bool (*search_equals_fn)(const wchar_t, const wchar_t); 44 typedef int (*search_producer_fn)(void *, wchar_t *); 45 typedef int (*search_mark_fn)(void *, void **); 46 typedef void (*search_mark_free_fn)(void *); 43 47 44 #define VECTOR_TLB_SHOOTDOWN_IPI EXC_Int 48 typedef struct match { 49 aoff64_t length; 50 void *end; 51 } match_t; 45 52 46 extern function virtual_timer_fnc; 47 extern uint32_t count_hi; 53 typedef struct search_ops { 54 search_equals_fn equals; 55 search_producer_fn producer; 56 search_mark_fn mark; 57 search_mark_free_fn mark_free; 58 } search_ops_t; 48 59 49 extern void interrupt_init(void); 60 extern bool char_exact_equals(const wchar_t, const wchar_t); 61 extern search_t *search_init(const char *, void *, search_ops_t, bool); 62 extern int search_next_match(search_t *, match_t *); 63 extern void search_fini(search_t *); 50 64 51 65 #endif
Note:
See TracChangeset
for help on using the changeset viewer.