CVS update: php3/functions

From: Date: Fri, 13 Nov 1998 09:57:50 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-2366@lists.php.net to get a copy of this message
Date: Friday November 13, 1998 @ 4:57 Author: steinm Update of /repository/php3/functions In directory asf:/u2/tmp/cvs-serv29086/functions Modified Files: hw.c pdf.c Log Message: - Ups, the '\* {{{' missed the closing brackets - More docs for Hyperwave Index: php3/functions/hw.c diff -c php3/functions/hw.c:1.15 php3/functions/hw.c:1.16 *** php3/functions/hw.c:1.15 Wed Nov 11 12:42:26 1998 --- php3/functions/hw.c Fri Nov 13 04:57:48 1998 *************** *** 23,29 **** +----------------------------------------------------------------------+ */ ! /* $Id: hw.c,v 1.15 1998/11/11 17:42:26 steinm Exp $ */ #if COMPILE_DL #include "dl/phpdl.h" #endif --- 23,29 ---- +----------------------------------------------------------------------+ */ ! /* $Id: hw.c,v 1.16 1998/11/13 09:57:48 steinm Exp $ */ #if COMPILE_DL #include "dl/phpdl.h" #endif *************** *** 679,692 **** void php3_hw_connect(INTERNAL_FUNCTION_PARAMETERS) { php3_hw_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0); ! } /* {{{ proto int hw_pconnect(string host, int port [string username [, string password]]) Connect to the Hyperwave server persistent */ void php3_hw_pconnect(INTERNAL_FUNCTION_PARAMETERS) { php3_hw_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1); ! } /* {{{ proto void hw_close(int link) Close connection to Hyperwave server */ --- 679,692 ---- void php3_hw_connect(INTERNAL_FUNCTION_PARAMETERS) { php3_hw_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0); ! } /* }}} */ /* {{{ proto int hw_pconnect(string host, int port [string username [, string password]]) Connect to the Hyperwave server persistent */ void php3_hw_pconnect(INTERNAL_FUNCTION_PARAMETERS) { php3_hw_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1); ! } /* }}} */ /* {{{ proto void hw_close(int link) Close connection to Hyperwave server */ *************** *** 708,714 **** } php3_list_delete(id); RETURN_TRUE; ! } /* {{{ proto void hw_info(int link) Outputs info string */ --- 708,714 ---- } php3_list_delete(id); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void hw_info(int link) Outputs info string */ *************** *** 741,747 **** return; } RETURN_FALSE; ! } /* {{{ proto int hw_error(int link) Returns last error number */ --- 741,747 ---- return; } RETURN_FALSE; ! } /* }}} */ /* {{{ proto int hw_error(int link) Returns last error number */ *************** *** 763,769 **** RETURN_FALSE; } RETURN_LONG(ptr->lasterror); ! } /* {{{ proto string hw_errormsg(int link) Returns last error message */ --- 763,769 ---- RETURN_FALSE; } RETURN_LONG(ptr->lasterror); ! } /* }}} */ /* {{{ proto string hw_errormsg(int link) Returns last error message */ *************** *** 851,857 **** sprintf(errstr, "Unknown error: %d", ptr->lasterror); } RETURN_STRING(errstr, 1); ! } /* {{{ proto hw_root(void) Returns object id of root collection */ --- 851,857 ---- sprintf(errstr, "Unknown error: %d", ptr->lasterror); } RETURN_STRING(errstr, 1); ! } /* }}} */ /* {{{ proto hw_root(void) Returns object id of root collection */ *************** *** 860,866 **** TLS_VARS; return_value->value.lval = 0; return_value->type = IS_LONG; ! } char *php3_hw_command(INTERNAL_FUNCTION_PARAMETERS, int comm) { pval *arg1; --- 860,866 ---- TLS_VARS; return_value->value.lval = 0; return_value->type = IS_LONG; ! } /* }}} */ char *php3_hw_command(INTERNAL_FUNCTION_PARAMETERS, int comm) { pval *arg1; *************** *** 901,907 **** return_value->value.str.val = object; return_value->value.str.len = strlen(object); return_value->type = IS_STRING; ! } /* {{{ proto array hw_who(int link) Returns names and info of users loged in */ --- 901,907 ---- return_value->value.str.val = object; return_value->value.str.len = strlen(object); return_value->type = IS_STRING; ! } /* }}} */ /* {{{ proto array hw_who(int link) Returns names and info of users loged in */ *************** *** 1011,1017 **** efree(temp); efree(object); ! } void php3_hw_dummy(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3; --- 1011,1017 ---- efree(temp); efree(object); ! } /* }}} */ void php3_hw_dummy(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3; *************** *** 1080,1086 **** efree(object); */ } ! } /* {{{ proto int hw_insertobject(int link, string objrec, string parms) Inserts an object */ --- 1080,1086 ---- efree(object); */ } ! } /* }}} */ /* {{{ proto int hw_insertobject(int link, string objrec, string parms) Inserts an object */ *************** *** 1114,1120 **** RETURN_LONG(objid); } ! } /* {{{ proto string hw_getandlock(int link, int objid) Returns object record and locks object */ --- 1114,1120 ---- RETURN_LONG(objid); } ! } /* }}} */ /* {{{ proto string hw_getandlock(int link, int objid) Returns object record and locks object */ *************** *** 1146,1152 **** RETURN_STRING(object, 0); } ! } /* {{{ proto void hw_unlock(int link, int objid) Unlocks object */ --- 1146,1152 ---- RETURN_STRING(object, 0); } ! } /* }}} */ /* {{{ proto void hw_unlock(int link, int objid) Unlocks object */ *************** *** 1174,1180 **** RETURN_FALSE; RETURN_TRUE; ! } /* {{{ proto void hw_deleteobject(int link, int objid) Deletes object */ --- 1174,1180 ---- RETURN_FALSE; RETURN_TRUE; ! } /* }}} */ /* {{{ proto void hw_deleteobject(int link, int objid) Deletes object */ *************** *** 1201,1207 **** if (0 != (ptr->lasterror = send_deleteobject(ptr->socket, id))) RETURN_FALSE; RETURN_TRUE; ! } /* {{{ proto void hw_changeobject(int link, int objid, array attributes) Changes attributes of an object */ --- 1201,1207 ---- if (0 != (ptr->lasterror = send_deleteobject(ptr->socket, id))) RETURN_FALSE; RETURN_TRUE; ! } /* }}} */ /* {{{ proto void hw_changeobject(int link, int objid, array attributes) Changes attributes of an object */ *************** *** 1283,1289 **** RETURN_FALSE; free(modification); RETURN_TRUE; ! } void php3_hw_mvcp(INTERNAL_FUNCTION_PARAMETERS, int mvcp) { pval *arg1, *arg2, *arg3, *arg4, **objvIDs; --- 1283,1289 ---- RETURN_FALSE; free(modification); RETURN_TRUE; ! } /* }}} */ void php3_hw_mvcp(INTERNAL_FUNCTION_PARAMETERS, int mvcp) { pval *arg1, *arg2, *arg3, *arg4, **objvIDs; *************** *** 1387,1399 **** Moves object */ void php3_hw_mv(INTERNAL_FUNCTION_PARAMETERS) { php3_hw_mvcp(INTERNAL_FUNCTION_PARAM_PASSTHRU, MOVE); ! } /* {{{ proto void hw_cp(int link, array objrec, int dest) Copies object */ void php3_hw_cp(INTERNAL_FUNCTION_PARAMETERS) { php3_hw_mvcp(INTERNAL_FUNCTION_PARAM_PASSTHRU, COPY); ! } /* {{{ proto hwdoc hw_gettext(int link, int objid[, int rootid]) Returns text document. Links are relative to rootid if given */ --- 1387,1399 ---- Moves object */ void php3_hw_mv(INTERNAL_FUNCTION_PARAMETERS) { php3_hw_mvcp(INTERNAL_FUNCTION_PARAM_PASSTHRU, MOVE); ! } /* }}} */ /* {{{ proto void hw_cp(int link, array objrec, int dest) Copies object */ void php3_hw_cp(INTERNAL_FUNCTION_PARAMETERS) { php3_hw_mvcp(INTERNAL_FUNCTION_PARAM_PASSTHRU, COPY); ! } /* }}} */ /* {{{ proto hwdoc hw_gettext(int link, int objid[, int rootid]) Returns text document. Links are relative to rootid if given */ *************** *** 1445,1451 **** return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* {{{ proto void hw_edittext(int link, hwdoc doc) Modifies text document */ void php3_hw_edittext(INTERNAL_FUNCTION_PARAMETERS) { --- 1445,1452 ---- return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* }}} */ ! /* {{{ proto void hw_edittext(int link, hwdoc doc) Modifies text document */ void php3_hw_edittext(INTERNAL_FUNCTION_PARAMETERS) { *************** *** 1485,1491 **** } } RETURN_TRUE; ! } /* {{{ proto hwdoc hw_getcgi(int link, int objid) Returns the output of a cgi script */ --- 1486,1492 ---- } } RETURN_TRUE; ! } /* }}} */ /* {{{ proto hwdoc hw_getcgi(int link, int objid) Returns the output of a cgi script */ *************** *** 1546,1552 **** return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* {{{ proto hwdoc hw_getremote(int link, int objid) Returns the output of a remote document */ --- 1547,1553 ---- return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* }}} */ /* {{{ proto hwdoc hw_getremote(int link, int objid) Returns the output of a remote document */ *************** *** 1586,1592 **** return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* {{{ proto [array|hwdoc] hw_getremotechildren(int link, int objid) Returns the remote document if only one or an array of object records */ --- 1587,1593 ---- return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* }}} */ /* {{{ proto [array|hwdoc] hw_getremotechildren(int link, int objid) Returns the remote document if only one or an array of object records */ *************** *** 1644,1650 **** efree(offsets); efree(remainder); } ! } /* {{{ proto void hw_setlinkroot(int link, int rootid) Set the id to which links are calculated */ --- 1645,1651 ---- efree(offsets); efree(remainder); } ! } /* }}} */ /* {{{ proto void hw_setlinkroot(int link, int rootid) Set the id to which links are calculated */ *************** *** 1669,1675 **** ptr->linkroot = rootid; RETURN_LONG(rootid); ! } /* {{{ proto hwdoc hw_pipedocument(int link, int objid) Returns document */ --- 1670,1676 ---- ptr->linkroot = rootid; RETURN_LONG(rootid); ! } /* }}} */ /* {{{ proto hwdoc hw_pipedocument(int link, int objid) Returns document */ *************** *** 1737,1743 **** return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* {{{ proto hwdoc hw_pipecgi(int link, int objid) Returns output of cgi script */ --- 1738,1744 ---- return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* }}} */ /* {{{ proto hwdoc hw_pipecgi(int link, int objid) Returns output of cgi script */ *************** *** 1800,1806 **** return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* {{{ proto void hw_insertdocument(int link, int parentid, hwdoc doc) Insert new document */ --- 1801,1807 ---- return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; } ! } /* }}} */ /* {{{ proto void hw_insertdocument(int link, int parentid, hwdoc doc) Insert new document */ *************** *** 1845,1851 **** } } RETURN_TRUE; ! } /* {{{ proto hwdoc hw_new_document(int link, string data, string objrec, int size) Create a new document */ --- 1846,1852 ---- } } RETURN_TRUE; ! } /* }}} */ /* {{{ proto hwdoc hw_new_document(int link, string data, string objrec, int size) Create a new document */ *************** *** 1869,1875 **** doc->size = arg3->value.lval; return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; ! } /* {{{ proto void hw_free_document(hwdoc doc) Frees memory of document */ --- 1870,1876 ---- doc->size = arg3->value.lval; return_value->value.lval = php3_list_insert(doc,php3_hw_module.le_document); return_value->type = IS_LONG; ! } /* }}} */ /* {{{ proto void hw_free_document(hwdoc doc) Frees memory of document */ *************** *** 1891,1897 **** } php3_list_delete(id); RETURN_TRUE; ! } /* {{{ proto void hw_output_document(hwdoc doc) Prints document */ --- 1892,1898 ---- } php3_list_delete(id); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void hw_output_document(hwdoc doc) Prints document */ *************** *** 1923,1929 **** } RETURN_TRUE; ! } /* {{{ proto string hw_document_bodytag(hwdoc doc [, string prefix]) Return bodytag prefixed by prefix */ --- 1924,1930 ---- } RETURN_TRUE; ! } /* }}} */ /* {{{ proto string hw_document_bodytag(hwdoc doc [, string prefix]) Return bodytag prefixed by prefix */ *************** *** 1963,1969 **** } else { RETURN_STRING(ptr->bodytag, 1); } ! } /* {{{ proto string hw_document_content(hwdoc doc) Returns content of document */ --- 1964,1970 ---- } else { RETURN_STRING(ptr->bodytag, 1); } ! } /* }}} */ /* {{{ proto string hw_document_content(hwdoc doc) Returns content of document */ *************** *** 1989,1995 **** } RETURN_STRING(ptr->data, 1); ! } /* {{{ proto int hw_document_content(hwdoc doc) Returns size of document */ --- 1990,1996 ---- } RETURN_STRING(ptr->data, 1); ! } /* }}} */ /* {{{ proto int hw_document_content(hwdoc doc) Returns size of document */ *************** *** 2011,2017 **** } RETURN_LONG(ptr->size); ! } /* {{{ proto string hw_document_content(hwdoc doc) Returns object record of document */ --- 2012,2018 ---- } RETURN_LONG(ptr->size); ! } /* }}} */ /* {{{ proto string hw_document_content(hwdoc doc) Returns object record of document */ *************** *** 2034,2040 **** RETURN_STRING(ptr->attributes, 1); /* make_return_array_from_objrec(&return_value, ptr->attributes); */ ! } /* {{{ proto array hw_getparentsobj(int link, int objid) Returns array of parent object records */ --- 2035,2041 ---- RETURN_STRING(ptr->attributes, 1); /* make_return_array_from_objrec(&return_value, ptr->attributes); */ ! } /* }}} */ /* {{{ proto array hw_getparentsobj(int link, int objid) Returns array of parent object records */ *************** *** 2069,2075 **** /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* {{{ proto array hw_getparents(int link, int objid) Returns array of parent object ids */ --- 2070,2076 ---- /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* }}} */ /* {{{ proto array hw_getparents(int link, int objid) Returns array of parent object ids */ *************** *** 2114,2120 **** efree(childIDs); } ! } /* {{{ proto array hw_children(int link, int objid) Returns array of children object ids */ --- 2115,2121 ---- efree(childIDs); } ! } /* }}} */ /* {{{ proto array hw_children(int link, int objid) Returns array of children object ids */ *************** *** 2159,2165 **** efree(childIDs); } ! } /* {{{ proto array hw_children(int link, int objid) Returns array of children object records */ --- 2160,2166 ---- efree(childIDs); } ! } /* }}} */ /* {{{ proto array hw_children(int link, int objid) Returns array of children object records */ *************** *** 2194,2200 **** /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* {{{ proto array hw_childcoll(int link, int objid) Returns array of child collection object ids */ --- 2195,2201 ---- /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* }}} */ /* {{{ proto array hw_childcoll(int link, int objid) Returns array of child collection object ids */ *************** *** 2239,2245 **** efree(childIDs); } ! } /* {{{ proto array hw_childcollobj(int link, int objid) Returns array of child collection object records */ --- 2240,2246 ---- efree(childIDs); } ! } /* }}} */ /* {{{ proto array hw_childcollobj(int link, int objid) Returns array of child collection object records */ *************** *** 2274,2280 **** /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* {{{ proto int hw_docbyanchor(int link, int anchorid) Returns objid of document belonging to anchorid */ --- 2275,2281 ---- /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* }}} */ /* {{{ proto int hw_docbyanchor(int link, int anchorid) Returns objid of document belonging to anchorid */ *************** *** 2305,2311 **** RETURN_LONG(objectID); } ! } /* {{{ proto array hw_docbyanchorobj(int link, int anchorid) Returns object record of document belonging to anchorid */ --- 2306,2312 ---- RETURN_LONG(objectID); } ! } /* }}} */ /* {{{ proto array hw_docbyanchorobj(int link, int anchorid) Returns object record of document belonging to anchorid */ *************** *** 2340,2346 **** efree(object); */ } ! } /* {{{ proto array hw_getobjectbyquery(int link, string query, int maxhits) Search for query and return maxhits objids */ --- 2341,2347 ---- efree(object); */ } ! } /* }}} */ /* {{{ proto array hw_getobjectbyquery(int link, string query, int maxhits) Search for query and return maxhits objids */ *************** *** 2383,2389 **** for(i=0; i<count; i++) add_index_long(return_value, i, childIDs[i]); efree(childIDs); ! } /* {{{ proto array hw_getobjectbyqueryobj(int link, string query, int maxhits) Search for query and return maxhits object records */ --- 2384,2390 ---- for(i=0; i<count; i++) add_index_long(return_value, i, childIDs[i]); efree(childIDs); ! } /* }}} */ /* {{{ proto array hw_getobjectbyqueryobj(int link, string query, int maxhits) Search for query and return maxhits object records */ *************** *** 2421,2427 **** /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* {{{ proto array hw_getobjectbyquerycoll(int link, int collid, string query, int maxhits) Search for query in collection and return maxhits objids */ --- 2422,2428 ---- /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* }}} */ /* {{{ proto array hw_getobjectbyquerycoll(int link, int collid, string query, int maxhits) Search for query in collection and return maxhits objids */ *************** *** 2466,2472 **** for(i=0; i<count; i++) add_index_long(return_value, i, childIDs[i]); efree(childIDs); ! } /* {{{ proto array hw_getobjectbyquerycollobj(int link, int collid, string query, int maxhits) Search for query in collection and return maxhits object records */ --- 2467,2473 ---- for(i=0; i<count; i++) add_index_long(return_value, i, childIDs[i]); efree(childIDs); ! } /* }}} */ /* {{{ proto array hw_getobjectbyquerycollobj(int link, int collid, string query, int maxhits) Search for query in collection and return maxhits object records */ *************** *** 2506,2512 **** /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* {{{ proto array hw_getchilddoccoll(int link, int objid) Returns all children ids which are documents */ --- 2507,2513 ---- /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* }}} */ /* {{{ proto array hw_getchilddoccoll(int link, int objid) Returns all children ids which are documents */ *************** *** 2545,2551 **** for(i=0; i<count; i++) add_index_long(return_value, i, childIDs[i]); efree(childIDs); ! } /* {{{ proto array hw_getchilddoccollobj(int link, int objid) Returns all children object records which are documents */ --- 2546,2552 ---- for(i=0; i<count; i++) add_index_long(return_value, i, childIDs[i]); efree(childIDs); ! } /* }}} */ /* {{{ proto array hw_getchilddoccollobj(int link, int objid) Returns all children object records which are documents */ *************** *** 2580,2586 **** if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* {{{ proto array hw_getanchors(int link, int objid) Return all anchors of object */ --- 2581,2587 ---- if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* }}} */ /* {{{ proto array hw_getanchors(int link, int objid) Return all anchors of object */ *************** *** 2619,2625 **** for(i=0; i<count; i++) add_index_long(return_value, i, anchorIDs[i]); efree(anchorIDs); ! } /* {{{ proto array hw_getanchorsobj(int link, int objid) Return all object records of anchors of object */ --- 2620,2626 ---- for(i=0; i<count; i++) add_index_long(return_value, i, anchorIDs[i]); efree(anchorIDs); ! } /* }}} */ /* {{{ proto array hw_getanchorsobj(int link, int objid) Return all object records of anchors of object */ *************** *** 2653,2659 **** /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, anchorObjRecs, count)) RETURN_FALSE; ! } /* {{{ proto string hw_getusername(int link) Returns the current user name */ --- 2654,2660 ---- /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, anchorObjRecs, count)) RETURN_FALSE; ! } /* }}} */ /* {{{ proto string hw_getusername(int link) Returns the current user name */ *************** *** 2677,2683 **** return_value->value.str.val = estrdup(ptr->username); return_value->value.str.len = strlen(ptr->username); return_value->type = IS_STRING; ! } /* {{{ proto void hw_identify(int link, string username, string password) --- 2678,2684 ---- return_value->value.str.val = estrdup(ptr->username); return_value->value.str.len = strlen(ptr->username); return_value->type = IS_STRING; ! } /* }}} */ /* {{{ proto void hw_identify(int link, string username, string password) *************** *** 2727,2733 **** else ptr->username = NULL; } ! } /* {{{ proto array hw_objrec2array(string objrec) Returns object array of object record*/ --- 2728,2734 ---- else ptr->username = NULL; } ! } /* }}} */ /* {{{ proto array hw_objrec2array(string objrec) Returns object array of object record*/ *************** *** 2740,2746 **** } convert_to_string(arg1); make_return_array_from_objrec(&return_value, arg1->value.str.val); ! } /* {{{ proto string hw_array2objrec(array objarr) Returns object record of object array */ --- 2741,2747 ---- } convert_to_string(arg1); make_return_array_from_objrec(&return_value, arg1->value.str.val); ! } /* }}} */ /* {{{ proto string hw_array2objrec(array objarr) Returns object record of object array */ *************** *** 2760,2766 **** RETURN_STRING(retobj, 0); } else RETURN_FALSE; ! } /* {{{ proto array hw_incollections(int link, array objids, array collids, int para) Returns object ids which are in collections */ --- 2761,2767 ---- RETURN_STRING(retobj, 0); } else RETURN_FALSE; ! } /* }}} */ /* {{{ proto array hw_incollections(int link, array objids, array collids, int para) Returns object ids which are in collections */ *************** *** 2821,2827 **** add_index_long(return_value, i, retIDs[i]); efree(retIDs); ! } /* {{{ proto void hw_inscoll(int link, int parentid, array objarr) Inserts collection */ --- 2822,2828 ---- add_index_long(return_value, i, retIDs[i]); efree(retIDs); ! } /* }}} */ /* {{{ proto void hw_inscoll(int link, int parentid, array objarr) Inserts collection */ *************** *** 2859,2865 **** if(objrec) free(objrec); RETURN_LONG(newid); ! } /* {{{ proto void hw_inscoll(int link, int parentid, array objarr [, string text]) Inserts document */ --- 2860,2866 ---- if(objrec) free(objrec); RETURN_LONG(newid); ! } /* }}} */ /* {{{ proto void hw_inscoll(int link, int parentid, array objarr [, string text]) Inserts document */ *************** *** 2901,2907 **** } RETURN_LONG(newid); ! } /* {{{ proto int hw_getsrcbydestobj(int link, int destid) Returns object id of source docuent by destination anchor */ --- 2902,2908 ---- } RETURN_LONG(newid); ! } /* }}} */ /* {{{ proto int hw_getsrcbydestobj(int link, int destid) Returns object id of source docuent by destination anchor */ *************** *** 2935,2941 **** /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* {{{ proto string hw_getrellink(int link, int rootid, int sourceid, int destid) Get link form source to dest relative to rootid */ --- 2936,2942 ---- /* create return value and free all memory */ if( 0 > make_return_objrec(&return_value, childObjRecs, count)) RETURN_FALSE; ! } /* }}} */ /* {{{ proto string hw_getrellink(int link, int rootid, int sourceid, int destid) Get link form source to dest relative to rootid */ *************** *** 2971,2977 **** } RETURN_STRING(anchorstr, 0); ! } void php3_info_hw() --- 2972,2978 ---- } RETURN_STRING(anchorstr, 0); ! } /* }}} */ void php3_info_hw() Index: php3/functions/pdf.c diff -c php3/functions/pdf.c:1.7 php3/functions/pdf.c:1.8 *** php3/functions/pdf.c:1.7 Thu Nov 12 10:36:49 1998 --- php3/functions/pdf.c Fri Nov 13 04:57:49 1998 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: pdf.c,v 1.7 1998/11/12 15:36:49 steinm Exp $ */ /* pdflib 0.6 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: pdf.c,v 1.8 1998/11/13 09:57:49 steinm Exp $ */ /* pdflib 0.6 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ *************** *** 188,194 **** id = php3_list_insert(pdf_info,PDF_GLOBAL(le_pdf_info)); RETURN_LONG(id); ! } /* {{{ proto pdf_set_info_creator(int info, string creator) Fills the creator field of the info structure */ --- 188,194 ---- id = php3_list_insert(pdf_info,PDF_GLOBAL(le_pdf_info)); RETURN_LONG(id); ! } /* }}} */ /* {{{ proto pdf_set_info_creator(int info, string creator) Fills the creator field of the info structure */ *************** *** 215,221 **** pdf_info->Creator = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* {{{ proto pdf_set_info_title(int info, string title) Fills the title field of the info structure */ --- 215,221 ---- pdf_info->Creator = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* }}} */ /* {{{ proto pdf_set_info_title(int info, string title) Fills the title field of the info structure */ *************** *** 242,248 **** pdf_info->Title = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* {{{ proto pdf_set_info_subject(int info, string subject) Fills the subject field of the info structure */ --- 242,248 ---- pdf_info->Title = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* }}} */ /* {{{ proto pdf_set_info_subject(int info, string subject) Fills the subject field of the info structure */ *************** *** 269,275 **** pdf_info->Subject = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* {{{ proto pdf_set_info_author(int info, string author) Fills the author field of the info structure */ --- 269,275 ---- pdf_info->Subject = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* }}} */ /* {{{ proto pdf_set_info_author(int info, string author) Fills the author field of the info structure */ *************** *** 296,302 **** pdf_info->Author = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* {{{ proto pdf_set_info_keywords(int info, string keywords) Fills the keywords field of the info structure */ --- 296,302 ---- pdf_info->Author = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* }}} */ /* {{{ proto pdf_set_info_keywords(int info, string keywords) Fills the keywords field of the info structure */ *************** *** 323,329 **** pdf_info->Keywords = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* {{{ proto int pdf_open(int filedesc, int info) Opens a new pdf document */ --- 323,329 ---- pdf_info->Keywords = estrdup(arg2->value.str.val); RETURN_TRUE; ! } /* }}} */ /* {{{ proto int pdf_open(int filedesc, int info) Opens a new pdf document */ *************** *** 363,369 **** id = php3_list_insert(pdf,PDF_GLOBAL(le_pdf)); RETURN_LONG(id); ! } /* {{{ proto void pdf_close(int pdfdoc) Closes the pdf document */ --- 363,369 ---- id = php3_list_insert(pdf,PDF_GLOBAL(le_pdf)); RETURN_LONG(id); ! } /* }}} */ /* {{{ proto void pdf_close(int pdfdoc) Closes the pdf document */ *************** *** 388,394 **** PDF_close(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_begin_page(int pdfdoc, double height, double width) Starts page */ --- 388,394 ---- PDF_close(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_begin_page(int pdfdoc, double height, double width) Starts page */ *************** *** 418,424 **** PDF_begin_page(pdf, (float) height, (float) width); RETURN_TRUE; ! } /* {{{ proto void pdf_end_page(int pdfdoc) Ends page */ --- 418,424 ---- PDF_begin_page(pdf, (float) height, (float) width); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_end_page(int pdfdoc) Ends page */ *************** *** 443,449 **** PDF_end_page(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_show(int pdfdoc, string text) Output text at current position */ --- 443,449 ---- PDF_end_page(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_show(int pdfdoc, string text) Output text at current position */ *************** *** 469,475 **** PDF_show(pdf, arg2->value.str.val); RETURN_TRUE; ! } /* {{{ proto void pdf_show_xy(int pdfdoc, string text) Output text at position */ --- 469,475 ---- PDF_show(pdf, arg2->value.str.val); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_show_xy(int pdfdoc, string text) Output text at position */ *************** *** 497,503 **** PDF_show_xy(pdf, arg2->value.str.val, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_set_font(int pdfdoc, string font, double size, string encoding) Select the current font face and size */ --- 497,503 ---- PDF_show_xy(pdf, arg2->value.str.val, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_font(int pdfdoc, string font, double size, string encoding) Select the current font face and size */ *************** *** 525,531 **** PDF_set_font(pdf, arg2->value.str.val, (float) arg3->value.dval, builtin); RETURN_TRUE; ! } /* {{{ proto void pdf_set_leading(int pdfdoc, double distance) Sets distance between text lines */ --- 525,531 ---- PDF_set_font(pdf, arg2->value.str.val, (float) arg3->value.dval, builtin); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_leading(int pdfdoc, double distance) Sets distance between text lines */ *************** *** 551,557 **** PDF_set_leading(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_set_text_rendering(int pdfdoc, int mode) Determines how text is rendered */ --- 551,557 ---- PDF_set_leading(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_text_rendering(int pdfdoc, int mode) Determines how text is rendered */ *************** *** 577,583 **** PDF_set_text_rendering(pdf, (byte) arg2->value.lval); RETURN_TRUE; ! } /* {{{ proto void pdf_set_horiz_scaling(int pdfdoc, double scale) Sets horizontal scaling of text */ --- 577,583 ---- PDF_set_text_rendering(pdf, (byte) arg2->value.lval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_horiz_scaling(int pdfdoc, double scale) Sets horizontal scaling of text */ *************** *** 603,609 **** PDF_set_horiz_scaling(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_set_text_rise(int pdfdoc, double value) Sets the text rise */ --- 603,609 ---- PDF_set_horiz_scaling(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_text_rise(int pdfdoc, double value) Sets the text rise */ *************** *** 629,635 **** PDF_set_text_rise(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_set_text_matrix(int pdfdoc, arry matrix) Sets the text matrix */ --- 629,635 ---- PDF_set_text_rise(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_text_matrix(int pdfdoc, arry matrix) Sets the text matrix */ *************** *** 677,683 **** PDF_set_text_matrix(pdf, pdfmatrix); RETURN_TRUE; ! } /* {{{ proto void pdf_set_text_pos(int pdfdoc, double x-koor, double y-koor) */ --- 677,683 ---- PDF_set_text_matrix(pdf, pdfmatrix); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_text_pos(int pdfdoc, double x-koor, double y-koor) */ *************** *** 704,710 **** PDF_set_text_pos(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_set_char_spacing(int pdfdoc, double space) Sets character spacing */ --- 704,710 ---- PDF_set_text_pos(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_char_spacing(int pdfdoc, double space) Sets character spacing */ *************** *** 730,736 **** PDF_set_char_spacing(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_set_word_spacing(int pdfdoc, double space) Sets spacing between words */ --- 730,736 ---- PDF_set_char_spacing(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_word_spacing(int pdfdoc, double space) Sets spacing between words */ *************** *** 756,762 **** PDF_set_word_spacing(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_continue_text(int pdfdoc, string text) Output text in next line */ --- 756,762 ---- PDF_set_word_spacing(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_continue_text(int pdfdoc, string text) Output text in next line */ *************** *** 782,788 **** PDF_continue_text(pdf, arg2->value.str.val); RETURN_TRUE; ! } /* {{{ proto double pdf_stringwidth(int pdfdoc, string text) Returns width of text in current font*/ --- 782,788 ---- PDF_continue_text(pdf, arg2->value.str.val); RETURN_TRUE; ! } /* }}} */ /* {{{ proto double pdf_stringwidth(int pdfdoc, string text) Returns width of text in current font*/ *************** *** 809,815 **** width = (double) PDF_stringwidth(pdf, arg2->value.str.val); RETURN_DOUBLE((double)width); ! } /* {{{ proto void pdf_save(int pdfdoc) Saves current enviroment */ --- 809,815 ---- width = (double) PDF_stringwidth(pdf, arg2->value.str.val); RETURN_DOUBLE((double)width); ! } /* }}} */ /* {{{ proto void pdf_save(int pdfdoc) Saves current enviroment */ *************** *** 834,840 **** PDF_save(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_restore(int pdfdoc) Restores formerly saved enviroment */ --- 834,840 ---- PDF_save(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_restore(int pdfdoc) Restores formerly saved enviroment */ *************** *** 859,865 **** PDF_restore(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_translate(int pdfdoc, double x-koor, double y-koor) Sets origin of koordinate system */ --- 859,865 ---- PDF_restore(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_translate(int pdfdoc, double x-koor, double y-koor) Sets origin of koordinate system */ *************** *** 886,892 **** PDF_translate(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_scale(int pdfdoc, double x-scale, double y-scale) Sets scaling */ --- 886,892 ---- PDF_translate(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_scale(int pdfdoc, double x-scale, double y-scale) Sets scaling */ *************** *** 913,919 **** PDF_scale(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_rotate(int pdfdoc, double angle) Sets rotation */ --- 913,919 ---- PDF_scale(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_rotate(int pdfdoc, double angle) Sets rotation */ *************** *** 939,945 **** PDF_rotate(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_setflat(int pdfdoc, double value) Sets flatness */ --- 939,945 ---- PDF_rotate(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setflat(int pdfdoc, double value) Sets flatness */ *************** *** 970,976 **** PDF_setflat(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_setlinejoin(int pdfdoc, int value) Sets linejoin parameter */ --- 970,976 ---- PDF_setflat(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setlinejoin(int pdfdoc, int value) Sets linejoin parameter */ *************** *** 1001,1007 **** PDF_setlinejoin(pdf, (byte) arg2->value.lval); RETURN_TRUE; ! } /* {{{ proto void pdf_setlinecap(int pdfdoc, int value) Sets linecap parameter */ --- 1001,1007 ---- PDF_setlinejoin(pdf, (byte) arg2->value.lval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setlinecap(int pdfdoc, int value) Sets linecap parameter */ *************** *** 1032,1038 **** PDF_setlinecap(pdf, (byte) arg2->value.lval); RETURN_TRUE; ! } /* {{{ proto void pdf_setmiterlimit(int pdfdoc, double value) Sets miter limit */ --- 1032,1038 ---- PDF_setlinecap(pdf, (byte) arg2->value.lval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setmiterlimit(int pdfdoc, double value) Sets miter limit */ *************** *** 1063,1069 **** PDF_setmiterlimit(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_setlinewidth(int pdfdoc, double width) Sets line width */ --- 1063,1069 ---- PDF_setmiterlimit(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setlinewidth(int pdfdoc, double width) Sets line width */ *************** *** 1089,1095 **** PDF_setlinewidth(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_setdash(int pdfdoc, double white, double black) Sets dash pattern */ --- 1089,1095 ---- PDF_setlinewidth(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setdash(int pdfdoc, double white, double black) Sets dash pattern */ *************** *** 1116,1122 **** PDF_setdash(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_moveto(int pdfdoc, double x-koor, double y-koor) Sets current point */ --- 1116,1122 ---- PDF_setdash(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_moveto(int pdfdoc, double x-koor, double y-koor) Sets current point */ *************** *** 1143,1149 **** PDF_moveto(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_curveto(int pdfdoc, double x1, double y1, double x2, double y2, double x3, double y3) Draws a curve */ --- 1143,1149 ---- PDF_moveto(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_curveto(int pdfdoc, double x1, double y1, double x2, double y2, double x3, double y3) Draws a curve */ *************** *** 1179,1185 **** (float) arg7->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_lineto(int pdfdoc, double x-koor, double y-koor) Draws a line */ --- 1179,1185 ---- (float) arg7->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_lineto(int pdfdoc, double x-koor, double y-koor) Draws a line */ *************** *** 1206,1212 **** PDF_lineto(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_circle(int pdfdoc, double x-koor, double y-koor, double radius) Draws a circle */ --- 1206,1212 ---- PDF_lineto(pdf, (float) arg2->value.dval, (float) arg3->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_circle(int pdfdoc, double x-koor, double y-koor, double radius) Draws a circle */ *************** *** 1234,1240 **** PDF_circle(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_arc(int pdfdoc, double x-koor, double y-koor, double radius, double start, double end) Draws an arc */ --- 1234,1240 ---- PDF_circle(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_arc(int pdfdoc, double x-koor, double y-koor, double radius, double start, double end) Draws an arc */ *************** *** 1265,1271 **** PDF_arc(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval, (float) arg5->value.dval, (float) arg6->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_rect(int pdfdoc, double x-koor, double y-koor, double width, double height) Draws a rectangle */ --- 1265,1271 ---- PDF_arc(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval, (float) arg5->value.dval, (float) arg6->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_rect(int pdfdoc, double x-koor, double y-koor, double width, double height) Draws a rectangle */ *************** *** 1297,1303 **** (float) arg5->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_closepath(int pdfdoc) Close path */ --- 1297,1303 ---- (float) arg5->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_closepath(int pdfdoc) Close path */ *************** *** 1322,1328 **** PDF_closepath(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_closepath_stroke(int pdfdoc) Close path and draw line along path */ --- 1322,1328 ---- PDF_closepath(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_closepath_stroke(int pdfdoc) Close path and draw line along path */ *************** *** 1347,1353 **** PDF_closepath_stroke(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_closepath_stroke(int pdfdoc) Draw line along path path */ --- 1347,1353 ---- PDF_closepath_stroke(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_closepath_stroke(int pdfdoc) Draw line along path path */ *************** *** 1372,1378 **** PDF_stroke(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_fill(int pdfdoc) Fill current path */ --- 1372,1378 ---- PDF_stroke(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_fill(int pdfdoc) Fill current path */ *************** *** 1397,1403 **** PDF_fill(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_fill_stroke(int pdfdoc) Fill and stroke current path */ --- 1397,1403 ---- PDF_fill(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_fill_stroke(int pdfdoc) Fill and stroke current path */ *************** *** 1422,1428 **** PDF_fill_stroke(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_closepath_fill_stroke(int pdfdoc) Close, fill and stroke current path */ --- 1422,1428 ---- PDF_fill_stroke(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_closepath_fill_stroke(int pdfdoc) Close, fill and stroke current path */ *************** *** 1447,1453 **** PDF_closepath_fill_stroke(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_endpath(int pdfdoc) Ends current path */ --- 1447,1453 ---- PDF_closepath_fill_stroke(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_endpath(int pdfdoc) Ends current path */ *************** *** 1472,1478 **** PDF_endpath(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_clip(int pdfdoc) Clips to current path */ --- 1472,1478 ---- PDF_endpath(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_clip(int pdfdoc) Clips to current path */ *************** *** 1497,1503 **** PDF_clip(pdf); RETURN_TRUE; ! } /* {{{ proto void pdf_setgray_fill(int pdfdoc, double value) Sets filling color to gray value */ --- 1497,1503 ---- PDF_clip(pdf); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setgray_fill(int pdfdoc, double value) Sets filling color to gray value */ *************** *** 1523,1529 **** PDF_setgray_fill(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_setgray_stroke(int pdfdoc, double value) Sets drawing color to gray value */ --- 1523,1529 ---- PDF_setgray_fill(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setgray_stroke(int pdfdoc, double value) Sets drawing color to gray value */ *************** *** 1549,1555 **** PDF_setgray_stroke(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_setgray(int pdfdoc, double value) Sets drawing and filling color to gray value */ --- 1549,1555 ---- PDF_setgray_stroke(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setgray(int pdfdoc, double value) Sets drawing and filling color to gray value */ *************** *** 1575,1581 **** PDF_setgray(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_setrgbcolor_fill(int pdfdoc, double red, double green, double blue) Sets filling color to rgb color value */ --- 1575,1581 ---- PDF_setgray(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setrgbcolor_fill(int pdfdoc, double red, double green, double blue) Sets filling color to rgb color value */ *************** *** 1601,1607 **** PDF_setrgbcolor_fill(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_setrgbcolor_stroke(int pdfdoc, double red, double green, double blue) Sets drawing color to rgb color value */ --- 1601,1607 ---- PDF_setrgbcolor_fill(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setrgbcolor_stroke(int pdfdoc, double red, double green, double blue) Sets drawing color to rgb color value */ *************** *** 1627,1633 **** PDF_setrgbcolor_stroke(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_setrgbcolor(int pdfdoc, double red, double green, double blue) Sets drawing and filling color to rgb color value */ --- 1627,1633 ---- PDF_setrgbcolor_stroke(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_setrgbcolor(int pdfdoc, double red, double green, double blue) Sets drawing and filling color to rgb color value */ *************** *** 1653,1659 **** PDF_setrgbcolor(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* {{{ proto void pdf_add_outline(int pdfdoc, string text); Add bookmark for current page */ --- 1653,1659 ---- PDF_setrgbcolor(pdf, (float) arg2->value.dval, (float) arg3->value.dval, (float) arg4->value.dval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_add_outline(int pdfdoc, string text); Add bookmark for current page */ *************** *** 1679,1685 **** PDF_add_outline(pdf, arg2->value.str.val); RETURN_TRUE; ! } /* {{{ proto void pdf_set_transition(int pdfdoc, int transition) Sets transition between pages */ --- 1679,1685 ---- PDF_add_outline(pdf, arg2->value.str.val); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_transition(int pdfdoc, int transition) Sets transition between pages */ *************** *** 1705,1711 **** PDF_set_transition(pdf, arg2->value.lval); RETURN_TRUE; ! } /* {{{ proto void pdf_set_duration(int pdfdoc, double duration) Sets duration between pages */ --- 1705,1711 ---- PDF_set_transition(pdf, arg2->value.lval); RETURN_TRUE; ! } /* }}} */ /* {{{ proto void pdf_set_duration(int pdfdoc, double duration) Sets duration between pages */ *************** *** 1731,1737 **** PDF_set_duration(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } #endif --- 1731,1737 ---- PDF_set_duration(pdf, (float) arg2->value.dval); RETURN_TRUE; ! } /* }}} */ #endif -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2366) next »