Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
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.
Message:

Merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/dist/src/c/demos/edit/search.h

    r8db09e4 r15d0046  
    11/*
    2  * Copyright (c) 2003-2004 Jakub Jermar
     2 * Copyright (c) 2012 Martin Sucha
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup mips64
     29/** @addtogroup edit
    3030 * @{
    3131 */
    32 /** @file
     32/**
     33 * @file
    3334 */
    3435
    35 #ifndef KERN_mips64_INTERRUPT_H_
    36 #define KERN_mips64_INTERRUPT_H_
     36#ifndef SEARCH_H__
     37#define SEARCH_H__
    3738
    38 #include <typedefs.h>
    39 #include <arch/exception.h>
     39#include <str.h>
    4040
    41 #define IVT_ITEMS  32
    42 #define IVT_FIRST  0
     41struct search;
     42typedef struct search search_t;
     43typedef bool (*search_equals_fn)(const wchar_t, const wchar_t);
     44typedef int (*search_producer_fn)(void *, wchar_t *);
     45typedef int (*search_mark_fn)(void *, void **);
     46typedef void (*search_mark_free_fn)(void *);
    4347
    44 #define VECTOR_TLB_SHOOTDOWN_IPI  EXC_Int
     48typedef struct match {
     49        aoff64_t length;
     50        void *end;
     51} match_t;
    4552
    46 extern function virtual_timer_fnc;
    47 extern uint32_t count_hi;
     53typedef 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;
    4859
    49 extern void interrupt_init(void);
     60extern bool char_exact_equals(const wchar_t, const wchar_t);
     61extern search_t *search_init(const char *, void *, search_ops_t, bool);
     62extern int search_next_match(search_t *, match_t *);
     63extern void search_fini(search_t *);
    5064
    5165#endif
Note: See TracChangeset for help on using the changeset viewer.