summaryrefslogtreecommitdiff
path: root/ext/mnogosearch
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-06-06 13:06:12 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-06-06 13:06:12 +0000
commit81e2cf03ac62c29c6bb365c31b9229aa3b4deff8 (patch)
treea0680a82219899445723cc36b058d9c4d263e17f /ext/mnogosearch
parent3bfd50f4f1dedb756c4e45566e2f8e172ab435ec (diff)
downloadphp-git-81e2cf03ac62c29c6bb365c31b9229aa3b4deff8.tar.gz
Fix folding and clean up some extensions
Diffstat (limited to 'ext/mnogosearch')
-rw-r--r--ext/mnogosearch/php_mnogo.c32
1 files changed, 11 insertions, 21 deletions
diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c
index c76c2ea62f..85c017ff7b 100644
--- a/ext/mnogosearch/php_mnogo.c
+++ b/ext/mnogosearch/php_mnogo.c
@@ -15,7 +15,7 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
- | Authors: |
+ | Authors: |
| Initial version by Alex Barkov <bar@izhcom.ru> |
| and Ramil Kalimullin <ram@izhcom.ru> |
| Further development by Sergey Kartashoff <gluke@biosys.net> |
@@ -108,6 +108,8 @@ static int le_link,le_res;
#include <udm_config.h>
#include <udmsearch.h>
+/* {{{ mnogosearch_functions[]
+ */
function_entry mnogosearch_functions[] = {
PHP_FE(udm_api_version, NULL)
@@ -139,7 +141,7 @@ function_entry mnogosearch_functions[] = {
{NULL, NULL, NULL}
};
-
+/* }}} */
zend_module_entry mnogosearch_module_entry = {
"mnogosearch",
@@ -168,6 +170,8 @@ static void _free_udm_res(zend_rsrc_list_entry *rsrc){
UdmFreeResult(Res);
}
+/* {{{ PHP_MINIT_FUNCTION
+ */
DLEXPORT PHP_MINIT_FUNCTION(mnogosearch)
{
UdmInit();
@@ -288,7 +292,7 @@ DLEXPORT PHP_MINIT_FUNCTION(mnogosearch)
return SUCCESS;
}
-
+/* }}} */
DLEXPORT PHP_MSHUTDOWN_FUNCTION(mnogosearch)
{
@@ -373,7 +377,6 @@ DLEXPORT PHP_FUNCTION(udm_alloc_agent)
}
/* }}} */
-
/* {{{ proto int udm_set_agent_param(int agent, int var, string val)
Set mnoGoSearch agent session parameters */
DLEXPORT PHP_FUNCTION(udm_set_agent_param)
@@ -606,7 +609,6 @@ DLEXPORT PHP_FUNCTION(udm_set_agent_param)
}
/* }}} */
-
/* {{{ proto int udm_load_ispell_data(int agent, int var, string val1, string val2, int flag)
Load ispell data */
DLEXPORT PHP_FUNCTION(udm_load_ispell_data)
@@ -707,7 +709,6 @@ DLEXPORT PHP_FUNCTION(udm_load_ispell_data)
}
/* }}} */
-
/* {{{ proto int udm_free_ispell_data(int agent)
Free memory allocated for ispell data */
DLEXPORT PHP_FUNCTION(udm_free_ispell_data)
@@ -735,7 +736,6 @@ DLEXPORT PHP_FUNCTION(udm_free_ispell_data)
}
/* }}} */
-
/* {{{ proto int udm_add_search_limit(int agent, int var, string val)
Add mnoGoSearch search restrictions */
DLEXPORT PHP_FUNCTION(udm_add_search_limit)
@@ -811,7 +811,6 @@ DLEXPORT PHP_FUNCTION(udm_add_search_limit)
}
/* }}} */
-
/* {{{ proto int udm_clear_search_limits(int agent)
Clear all mnoGoSearch search restrictions */
DLEXPORT PHP_FUNCTION(udm_clear_search_limits)
@@ -837,7 +836,6 @@ DLEXPORT PHP_FUNCTION(udm_clear_search_limits)
}
/* }}} */
-
/* {{{ proto int udm_find(int agent, string query)
Perform search */
DLEXPORT PHP_FUNCTION(udm_find)
@@ -869,7 +867,6 @@ DLEXPORT PHP_FUNCTION(udm_find)
}
/* }}} */
-
/* {{{ proto string udm_get_res_field(int res, int row, int field)
Fetch mnoGoSearch result field */
DLEXPORT PHP_FUNCTION(udm_get_res_field){
@@ -960,7 +957,6 @@ DLEXPORT PHP_FUNCTION(udm_get_res_field){
}
/* }}} */
-
/* {{{ proto string udm_get_res_param(int res, int param)
Get mnoGoSearch result parameters */
DLEXPORT PHP_FUNCTION(udm_get_res_param)
@@ -1015,7 +1011,6 @@ DLEXPORT PHP_FUNCTION(udm_get_res_param)
}
/* }}} */
-
/* {{{ proto int udm_free_res(int res)
mnoGoSearch free result */
DLEXPORT PHP_FUNCTION(udm_free_res)
@@ -1040,7 +1035,6 @@ DLEXPORT PHP_FUNCTION(udm_free_res)
}
/* }}} */
-
/* {{{ proto int udm_free_agent(int agent)
Free mnoGoSearch session */
DLEXPORT PHP_FUNCTION(udm_free_agent)
@@ -1065,7 +1059,6 @@ DLEXPORT PHP_FUNCTION(udm_free_agent)
}
/* }}} */
-
/* {{{ proto int udm_errno(int agent)
Get mnoGoSearch error number */
DLEXPORT PHP_FUNCTION(udm_errno)
@@ -1088,7 +1081,6 @@ DLEXPORT PHP_FUNCTION(udm_errno)
}
/* }}} */
-
/* {{{ proto string udm_error(int agent)
Get mnoGoSearch error message */
DLEXPORT PHP_FUNCTION(udm_error)
@@ -1112,7 +1104,6 @@ DLEXPORT PHP_FUNCTION(udm_error)
}
/* }}} */
-
/* {{{ proto int udm_api_version()
Get mnoGoSearch API version */
DLEXPORT PHP_FUNCTION(udm_api_version)
@@ -1121,7 +1112,6 @@ DLEXPORT PHP_FUNCTION(udm_api_version)
}
/* }}} */
-
/* {{{ proto array udm_cat_list(int agent, string category)
Get mnoGoSearch categories list with the same root */
DLEXPORT PHP_FUNCTION(udm_cat_list)
@@ -1171,7 +1161,6 @@ DLEXPORT PHP_FUNCTION(udm_cat_list)
}
/* }}} */
-
/* {{{ proto array udm_cat_path(int agent, string category)
Get mnoGoSearch categories path from the root to the given catgory */
DLEXPORT PHP_FUNCTION(udm_cat_path)
@@ -1221,7 +1210,6 @@ DLEXPORT PHP_FUNCTION(udm_cat_path)
}
/* }}} */
-
#if UDM_VERSION_ID > 30110
/* {{{ proto int udm_get_doc_count(int agent)
Get total number of documents in database */
@@ -1251,9 +1239,11 @@ DLEXPORT PHP_FUNCTION(udm_get_doc_count)
#endif
-
/*
* Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
* End:
+ * vim600: sw=4 ts=4 tw=78 fdm=marker
+ * vim<600: sw=4 ts=4 tw=78
*/
-