| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
#ifndef PHP_SWISHE_H |
|---|
| 20 |
#define PHP_SWISHE_H |
|---|
| 21 |
|
|---|
| 22 |
extern zend_module_entry swishe_module_entry; |
|---|
| 23 |
#define phpext_swishe_ptr &swishe_module_entry |
|---|
| 24 |
|
|---|
| 25 |
#ifdef PHP_WIN32 |
|---|
| 26 |
#define PHP_SWISHE_API __declspec(dllexport) |
|---|
| 27 |
#else |
|---|
| 28 |
#define PHP_SWISHE_API |
|---|
| 29 |
#endif |
|---|
| 30 |
|
|---|
| 31 |
#ifdef ZTS |
|---|
| 32 |
#include "TSRM.h" |
|---|
| 33 |
#endif |
|---|
| 34 |
|
|---|
| 35 |
#include <swish-e.h> |
|---|
| 36 |
|
|---|
| 37 |
#define PHP_SWISHE_VERSION "0.1" |
|---|
| 38 |
|
|---|
| 39 |
PHP_MINIT_FUNCTION(swishe); |
|---|
| 40 |
PHP_MSHUTDOWN_FUNCTION(swishe); |
|---|
| 41 |
PHP_MINFO_FUNCTION(swishe); |
|---|
| 42 |
|
|---|
| 43 |
PHP_FUNCTION(confirm_swishe_compiled); |
|---|
| 44 |
PHP_FUNCTION(swishe_open); |
|---|
| 45 |
PHP_FUNCTION(swishe_close); |
|---|
| 46 |
PHP_FUNCTION(swishe_index_names); |
|---|
| 47 |
PHP_FUNCTION(swishe_header_names); |
|---|
| 48 |
PHP_FUNCTION(swishe_header_value); |
|---|
| 49 |
PHP_FUNCTION(swishe_stem); |
|---|
| 50 |
PHP_FUNCTION(swishe_swish_words_by_letter); |
|---|
| 51 |
PHP_FUNCTION(swishe_error); |
|---|
| 52 |
PHP_FUNCTION(swishe_critical_error); |
|---|
| 53 |
PHP_FUNCTION(swishe_abort_last_error); |
|---|
| 54 |
PHP_FUNCTION(swishe_error_string); |
|---|
| 55 |
PHP_FUNCTION(swishe_last_error_msg); |
|---|
| 56 |
PHP_FUNCTION(swishe_query); |
|---|
| 57 |
PHP_FUNCTION(swishe_set_query); |
|---|
| 58 |
PHP_FUNCTION(swishe_set_structure); |
|---|
| 59 |
PHP_FUNCTION(swishe_set_phrase_delimiter); |
|---|
| 60 |
PHP_FUNCTION(swishe_set_search_limit); |
|---|
| 61 |
PHP_FUNCTION(swishe_reset_search_limit); |
|---|
| 62 |
PHP_FUNCTION(swishe_set_sort); |
|---|
| 63 |
PHP_FUNCTION(swishe_execute); |
|---|
| 64 |
PHP_FUNCTION(swishe_hits); |
|---|
| 65 |
PHP_FUNCTION(swishe_parsed_words); |
|---|
| 66 |
PHP_FUNCTION(swishe_removed_stopwords); |
|---|
| 67 |
PHP_FUNCTION(swishe_seek_result); |
|---|
| 68 |
PHP_FUNCTION(swishe_next_result); |
|---|
| 69 |
PHP_FUNCTION(swishe_property); |
|---|
| 70 |
PHP_FUNCTION(swishe_result_index_value); |
|---|
| 71 |
PHP_FUNCTION(swishe); |
|---|
| 72 |
PHP_FUNCTION(swishe_search); |
|---|
| 73 |
PHP_FUNCTION(swishe_results); |
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 |
|
|---|
| 78 |
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 |
|
|---|
| 90 |
#ifdef ZTS |
|---|
| 91 |
#define SWISHE_G(v) TSRMG(swishe_globals_id, zend_swishe_globals *, v) |
|---|
| 92 |
#else |
|---|
| 93 |
#define SWISHE_G(v) (swishe_globals.v) |
|---|
| 94 |
#endif |
|---|
| 95 |
|
|---|
| 96 |
#endif |
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 |
|
|---|