cvs: /php3/functions ifx.ec
| From: | Egon Schmid | Date: | Mon, 21 Feb 2000 07:57:00 +0000 |
| Subject: | cvs: /php3/functions ifx.ec | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15738@lists.php.net to get a copy of this message | ||
eschmid Sun Feb 20 23:57:00 2000 EDT
Modified files:
/php3/functions ifx.ec
Log:
More protos fixed.
Index: php3/functions/ifx.ec
diff -u php3/functions/ifx.ec:1.47 php3/functions/ifx.ec:1.48
--- php3/functions/ifx.ec:1.47 Fri Feb 18 13:30:00 2000
+++ php3/functions/ifx.ec Sun Feb 20 23:57:00 2000
@@ -30,7 +30,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ifx.ec,v 1.47 2000/02/18 21:30:00 danny Exp $ */
+/* $Id: ifx.ec,v 1.48 2000/02/21 07:57:00 eschmid Exp $ */
/* -------------------------------------------------------------------
* if you want a function reference : "grep '^\*\*' ifx.ec" will give
@@ -818,16 +818,16 @@
}
-/* {{{ proto int ifx_connect([string database[, string userid[, string password]]])
- connects to database using userid/password, returns connection id */
+/* {{{ proto int ifx_connect([string database [, string userid [, string password]]])
+ Connects to database using userid/password, returns connection id */
void php3_ifx_connect(INTERNAL_FUNCTION_PARAMETERS)
{
php3_ifx_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0);
}
/* }}} */
-/* {{{ proto int ifx_pconnect([string database[, string userid[, string password]]])
- connects to database using userid/password, returns connection id */
+/* {{{ proto int ifx_pconnect([string database [, string userid [, string password]]])
+ Connects to database using userid/password, returns connection id */
void php3_ifx_pconnect(INTERNAL_FUNCTION_PARAMETERS)
{
php3_ifx_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1);
@@ -857,7 +857,7 @@
*/
/* {{{ proto int ifx_close(int connid)
- close informix connection */
+ Close informix connection */
void php3_ifx_close(INTERNAL_FUNCTION_PARAMETERS)
{
pval *ifx_link;
@@ -931,8 +931,8 @@
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_query(string query, int connid, [int cursortype], [array idarray])
- perform a query on a given connection */
+/* {{{ proto int ifx_query(string query, int connid [, int cursortype] [, array idarray])
+ Perform a query on a given connection */
void php3_ifx_query(INTERNAL_FUNCTION_PARAMETERS)
{
pval *query,*ifx_link, *cursortype, *dummy;
@@ -1314,8 +1314,8 @@
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_prepare(string query, int connid, [int cursortype], [array idarray])
- prepare a query on a given connection */
+/* {{{ proto int ifx_prepare(string query, int connid [, int cursortype] [, array idarray])
+ Prepare a query on a given connection */
void php3_ifx_prepare(INTERNAL_FUNCTION_PARAMETERS)
{
@@ -1596,7 +1596,7 @@
*/
/* {{{ proto int ifx_do(int resultid)
- executes a previously prepared query or opens a cursor for it */
+ Executes a previously prepared query or opens a cursor for it */
void php3_ifx_do(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
@@ -1772,8 +1772,8 @@
** ----------------------------------------------------------------------
*/
-/* {{{ proto string ifx_error();
- returns the Informix error codes (SQLSTATE & SQLCODE) */
+/* {{{ proto string ifx_error(void);
+ Returns the Informix error codes (SQLSTATE & SQLCODE) */
void php3_ifx_error(INTERNAL_FUNCTION_PARAMETERS)
{
pval *ifx_link;
@@ -1812,7 +1812,7 @@
*/
/* {{{ proto string ifx_errormsg([int errorcode])
- returns the Informix errormessage associated with */
+ Returns the Informix errormessage associated with */
void php3_ifx_errormsg(INTERNAL_FUNCTION_PARAMETERS)
{
pval *errcode;
@@ -1876,7 +1876,7 @@
*/
/* {{{ proto int ifx_affected_rows(int resultid)
- returns the number of rows affected by query identified by resultid */
+ Returns the number of rows affected by query identified by resultid */
void php3_ifx_affected_rows(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
@@ -1928,8 +1928,8 @@
** ----------------------------------------------------------------------
*/
-/* {{{ proto array ifx_fetch_row(int resultid, [mixed position])
- fetches the next row or <position> row if using a scroll cursor */
+/* {{{ proto array ifx_fetch_row(int resultid [, mixed position])
+ Fetches the next row or <position> row if using a scroll cursor */
void php3_ifx_fetch_row(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result, *position;
@@ -2320,8 +2320,8 @@
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_htmltbl_result(int resultid, [string htmltableoptions])
- formats all rows of the $resultid query into a html table */
+/* {{{ proto int ifx_htmltbl_result(int resultid [, string htmltableoptions])
+ Formats all rows of the resultid_query() into a html table */
void php3_ifx_htmltbl_result(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result, *arg2;
@@ -2681,7 +2681,7 @@
/* {{{ proto array ifx_fieldtypes(int resultid)
- returns an associative array with fieldnames as key for query <resultid> */
+ Returns an associative array with fieldnames as key for query <resultid> */
void php3_ifx_fieldtypes(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result, *arg2;
@@ -2873,7 +2873,7 @@
*/
/* {{{ proto array ifx_fieldproperties(int resultid)
- returns an associative for query <resultid> array with fieldnames as key */
+ Returns an associative array for a query */
void php3_ifx_fieldproperties(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result, *arg2;
@@ -3074,7 +3074,7 @@
*/
/* {{{ proto int ifx_num_rows(int resultid)
- returns the number of rows already fetched for query identified by resultid */
+ Returns the number of rows already fetched for query identified by resultid */
void php3_ifx_num_rows(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
@@ -3112,8 +3112,8 @@
** ---------------------------------------------------------------
*/
-/* {{{ proto int ifx_getsqlca(int $resultid)
- returns the sqlerrd[] fields of the sqlca struct for query $resultid */
+/* {{{ proto int ifx_getsqlca(int resultid)
+ Returns the sqlerrd[} fields of the sqlca struct for query a given resultid */
void php3_ifx_getsqlca(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
@@ -3165,7 +3165,7 @@
*/
/* {{{ proto int ifx_num_fields(int resultid)
- returns the number of columns in query resultid */
+ Returns the number of columns in query resultid */
void php3_ifx_num_fields(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
@@ -3206,7 +3206,7 @@
*/
/* {{{ proto int ifx_free_result(int resultid)
- releases resources for query associated with resultid */
+ Releases resources for a query associated with resultid */
void php3_ifx_free_result(INTERNAL_FUNCTION_PARAMETERS)
{
pval *result;
@@ -3328,7 +3328,7 @@
*/
/* {{{ proto int ifx_create_blob(int type, int mode, string param)
- creates a blob-object */
+ Creates a blob-object */
void php3_ifx_create_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode, *pparam,*ptype;
long id;
@@ -3660,7 +3660,7 @@
*/
/* {{{ proto string ifx_get_blob(int bid)
- returns the content of the blob-object */
+ Returns the content of the blob-object */
void php3_ifx_get_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
char *content;
@@ -3750,7 +3750,7 @@
*/
/* {{{ proto int ifx_update_blob(int bid, string content)
- updates the content of the blob-object */
+ Updates the content of the blob-object */
void php3_ifx_update_blob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid,*pparam;
long ret;
@@ -3880,7 +3880,7 @@
*/
/* {{{ proto void ifx_blobinfile_mode(int mode)
- sets the default blob-mode for all select-queries */
+ Sets the default blob-mode for all select-queries */
void php3_ifx_blobinfile_mode(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
@@ -3908,7 +3908,7 @@
*/
/* {{{ proto void ifx_textasvarchar(int mode)
- sets the default text-mode for all select-queries */
+ Sets the default text-mode for all select-queries */
void php3_ifx_textasvarchar(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
@@ -3936,7 +3936,7 @@
*/
/* {{{ proto void ifx_byteasvarchar(int mode)
- sets the default byte-mode for all select-queries */
+ Sets the default byte-mode for all select-queries */
void php3_ifx_byteasvarchar(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
@@ -3962,7 +3962,7 @@
*/
/* {{{ proto void ifx_nullformat(int mode)
- sets the default return value of a NULL-value un a fetch-row */
+ Sets the default return value of a NULL-value un a fetch-row */
void php3_ifx_nullformat(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
@@ -3996,19 +3996,6 @@
return tmp;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
/* ----------------------------------------------------------------------
** int ifx_create_char(string param)
**
@@ -4019,7 +4006,7 @@
*/
/* {{{ proto int ifx_create_char(string param)
- creates a char-object */
+ Creates a char-object */
void php3_ifx_create_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pparam;
long id;
@@ -4087,7 +4074,7 @@
*/
/* {{{ proto string ifx_get_char(int bid)
- returns the content of the char-object */
+ Returns the content of the char-object */
void php3_ifx_get_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
char *content;
@@ -4145,7 +4132,7 @@
*/
/* {{{ proto int ifx_free_char(int bid)
- deletes the char-object */
+ Deletes the char-object */
void php3_ifx_free_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
@@ -4205,7 +4192,7 @@
*/
/* {{{ proto int ifx_update_char(int bid, string content)
- updates the content of the char-object */
+ Updates the content of the char-object */
void php3_ifx_update_char(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid,*pparam;
long ret;
@@ -4275,42 +4262,8 @@
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
$ifdef HAVE_IFX_IUS;
-
-
-
/* ----------------------------------------------------------------------
** int ifxus_create_slob( int mode)
**
@@ -4321,7 +4274,7 @@
*/
/* {{{ proto int ifxus_create_slob(int mode)
- creates a slob-object and opens it */
+ Creates a slob-object and opens it */
void php3_ifxus_create_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pmode;
long id;
@@ -4406,7 +4359,7 @@
*/
/* {{{ proto int ifxus_free_slob(int bid)
- deletes the slob-object */
+ Deletes the slob-object */
void php3_ifxus_free_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
@@ -4472,7 +4425,7 @@
*/
/* {{{ proto int ifxus_close_slob(int bid)
- deletes the slob-object */
+ Deletes the slob-object */
void php3_ifxus_close_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pid;
long ret;
@@ -4527,10 +4480,6 @@
return 0;
}
-
-
-
-
/* ----------------------------------------------------------------------
** int ifxus_open_slob(long bid, int mode)
**
@@ -4542,7 +4491,7 @@
*/
/* {{{ proto int ifxus_open_slob(long bid, int mode)
- opens an slob-object */
+ Opens an slob-object */
void php3_ifxus_open_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid,*pmode;
long id;
@@ -4611,12 +4560,6 @@
return 0;
}
-
-
-
-
-
-
/* ----------------------------------------------------------------------
* internal function
* long php3_intifxus_new_slob(HashTable *list)
@@ -4668,12 +4611,6 @@
return &(Ifx_slob->SLOB.slob_data);
}
-
-
-
-
-
-
/* ----------------------------------------------------------------------
** int ifxus_tell_slob(long bid)
**
@@ -4684,7 +4621,7 @@
*/
/* {{{ proto int ifxus_tell_slob(long bid)
- returns the current file or seek position of an open slob-object */
+ Returns the current file or seek position of an open slob-object */
void php3_ifxus_tell_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid;
long bid;
@@ -4718,8 +4655,6 @@
}
/* }}} */
-
-
/* ----------------------------------------------------------------------
** int ifxus_seek_slob(long bid, int mode, long offset)
**
@@ -4732,7 +4667,7 @@
*/
/* {{{ proto int ifxus_seek_slob(long bid, int mode, long offset)
- sets the current file or seek position of an open slob-object */
+ Sets the current file or seek position of an open slob-object */
void php3_ifxus_seek_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid, *pmode, *poffset;
long bid,lakt_seek_pos;
@@ -4777,9 +4712,6 @@
}
/* }}} */
-
-
-
/* ----------------------------------------------------------------------
** int ifxus_read_slob(long bid, long nbytes)
**
@@ -4791,7 +4723,7 @@
*/
/* {{{ proto int ifxus_read_slob(long bid, long nbytes)
- reads nbytes of the slob-object */
+ Reads nbytes of the slob-object */
void php3_ifxus_read_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid, *pnbytes;
long bid, nbytes;
@@ -4799,7 +4731,6 @@
int errcode,type;
char *buffer;
-
if (ARG_COUNT(ht)!=2 || getParameters(ht, 2, &pbid, &pnbytes)==FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -4842,7 +4773,7 @@
*/
/* {{{ proto int ifxus_write_slob(long bid, string content)
- writes a string into the slob-object */
+ Writes a string into the slob-object */
void php3_ifxus_write_slob(INTERNAL_FUNCTION_PARAMETERS) {
pval *pbid, *pcontent;
long bid, nbytes;
@@ -4850,7 +4781,6 @@
int errcode,type;
char *buffer;
-
if (ARG_COUNT(ht)!=2 || getParameters(ht, 2, &pbid, &pcontent)==FAILURE) {
WRONG_PARAM_COUNT;
}