]> granicus.if.org Git - php/commitdiff
More protos.
authorEgon Schmid <eschmid@php.net>
Thu, 24 Feb 2000 14:43:53 +0000 (14:43 +0000)
committerEgon Schmid <eschmid@php.net>
Thu, 24 Feb 2000 14:43:53 +0000 (14:43 +0000)
ext/standard/assert.c
ext/sysvsem/sysvsem.c
ext/sysvshm/sysvshm.c
ext/xml/xml.c
ext/yp/yp.c
ext/zlib/zlib.c

index 4718d7d914b9637a5f60b3b1b65555a8842dcf99..683b12a87f96b8f4526e486c618311301559e1d7 100644 (file)
@@ -157,7 +157,7 @@ PHP_MINFO_FUNCTION(assert)
 /* {{{ internal functions */
 /* }}} */
 /* {{{ proto int assert(string|bool assertion)
-   checks if assertion is false */
+   Checks if assertion is false */
 
 PHP_FUNCTION(assert)
 {
@@ -266,8 +266,8 @@ PHP_FUNCTION(assert)
 }
 
 /* }}} */
-/* {{{ proto mixed assert_options(int what,mixed value)
-   set/get the various assert flags. */
+/* {{{ proto mixed assert_options(int what, mixed value)
+   Set/get the various assert flags */
 
 PHP_FUNCTION(assert_options)
 {
index 9e3378ecf461774ea218fd72bfbd0d73b4a3400a..20618b5be1da39f94626cbb7443b5f5bf8ea0669 100644 (file)
@@ -128,7 +128,7 @@ PHP_MINIT_FUNCTION(sysvsem)
 #endif
 
 /* {{{ proto int sem_get(int key [, int max_acquire [, int perm]])
-   Return an id for the semaphore with the given key, and allow max_acquire (default 1) processes to acquire it simultaneously. */
+   Return an id for the semaphore with the given key, and allow max_acquire (default 1) processes to acquire it simultaneously */
 PHP_FUNCTION(sem_get)
 {
        pval **arg_key, **arg_max_acquire, **arg_perm;
@@ -329,7 +329,7 @@ static void php_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
 
 
 /* {{{ proto int sem_acquire(int id)
-   Acquires the semaphore with the given id, blocking if necessary. */
+   Acquires the semaphore with the given id, blocking if necessary */
 PHP_FUNCTION(sem_acquire)
 {
        php_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
@@ -337,7 +337,7 @@ PHP_FUNCTION(sem_acquire)
 /* }}} */
 
 /* {{{ proto int sem_release(int id)
-   Releases the semaphore with the given id. */
+   Releases the semaphore with the given id */
 PHP_FUNCTION(sem_release)
 {
        php_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
index 070382314d2356d58e6c1386a7a44976907e4182..15107ced199b972e7c480185e9b16931b9a4e771 100644 (file)
@@ -76,7 +76,7 @@ PHP_MINIT_FUNCTION(sysvshm)
 
 
 /* {{{ proto int shm_attach(int key, int size, int flag)
-   Return an id for the shared memory with the given key. */
+   Return an id for the shared memory with the given key */
 PHP_FUNCTION(shm_attach)
 {
        pval **arg_key,**arg_size,**arg_flag;
@@ -151,7 +151,7 @@ PHP_FUNCTION(shm_attach)
 
 
 /* {{{ proto int shm_detach(int id)
-   releases the shared memory attachment with the given id. */
+   Releases the shared memory attachment with the given id */
 PHP_FUNCTION(shm_detach)
 {
        pval **arg_id;
@@ -171,7 +171,7 @@ PHP_FUNCTION(shm_detach)
 }
 /* }}} */
 /* {{{ proto int shm_remove(int key)
-   removes the shared memory with the given key. */
+   Removes the shared memory with the given key */
 PHP_FUNCTION(shm_remove)
 {
        pval **arg_key;
@@ -202,7 +202,7 @@ PHP_FUNCTION(shm_remove)
 
 
 /* {{{ proto int shm_put(int id, int key, object *variable)
-   insert a variable into shared memory. */
+   Insert a variable into shared memory */
 PHP_FUNCTION(shm_put_var)
 {
        pval **arg_id, **arg_key, **arg_var;
@@ -251,7 +251,7 @@ PHP_FUNCTION(shm_put_var)
 
 
 /* {{{ proto string/float/int/array shm_get_var(int id, int key)
-   returns a variable into shared memory. */
+   Returns a variable into shared memory */
 PHP_FUNCTION(shm_get_var)
 {
        pval **arg_id, **arg_key;
@@ -296,7 +296,7 @@ PHP_FUNCTION(shm_get_var)
 /* }}} */
 
 /* {{{ proto int shm_remove_var(int id, int key)
-   removes variable from shared memory. */
+   Removes variable from shared memory */
 PHP_FUNCTION(shm_remove_var)
 {
        pval **arg_id, **arg_key;
@@ -332,11 +332,6 @@ PHP_FUNCTION(shm_remove_var)
 /* }}} */
 
 
-
-
-
-
-
 /* inserts an ascii-string into shared memory */
 int php_put_shm_data(sysvshm_chunk_head *ptr,long key,char *data, long len) {
        sysvshm_chunk* shm_var;
index e4de960c34b0a3f45ab10cceeddd8d839ae42258..5c274acf49d40f7668543433ff17b24a7f577221 100644 (file)
@@ -974,7 +974,7 @@ _xml_externalEntityRefHandler(XML_Parser parserPtr,
 
 /************************* EXTENSION FUNCTIONS *************************/
 
-/* {{{ proto int xml_parser_create() 
+/* {{{ proto int xml_parser_create(void
    Create an XML parser */
 PHP_FUNCTION(xml_parser_create)
 {
@@ -1197,7 +1197,7 @@ PHP_FUNCTION(xml_set_external_entity_ref_handler)
 }
 /* }}} */
 
-/* {{{ proto int xml_parse(int pind, string data[, int isFinal]) 
+/* {{{ proto int xml_parse(int pind, string data [, int isFinal]) 
    Start parsing an XML document */
 PHP_FUNCTION(xml_parse)
 {
@@ -1225,7 +1225,7 @@ PHP_FUNCTION(xml_parse)
 }
 
 /* }}} */
-/* {{{ proto int xml_parse_into_struct(int pind, string data,array &struct,array &index) 
+/* {{{ proto int xml_parse_into_struct(int pind, string data, array &struct, array &index) 
    Parsing a XML document */
 
 PHP_FUNCTION(xml_parse_into_struct)
@@ -1324,8 +1324,7 @@ PHP_FUNCTION(xml_get_current_line_number)
 /* }}} */
 
 /* {{{ proto int xml_get_current_column_number(int pind)
-   Get current column number for an XML parser
-*/
+   Get current column number for an XML parser */
 PHP_FUNCTION(xml_get_current_column_number)
 {
        xml_parser *parser;
index 7c210b5c93af9544bfd044ed28609fbfb33fda20..c1e747f80f86dfaf026f6a1c12d00049b2a57707 100644 (file)
@@ -47,7 +47,7 @@ zend_module_entry yp_module_entry = {
 };
 
 /* {{{ proto string yp_get_default_domain(void)
-       Returns the domain or false */
+   Returns the domain or false */
 PHP_FUNCTION(yp_get_default_domain) {
        char *outdomain;
 
@@ -59,7 +59,7 @@ PHP_FUNCTION(yp_get_default_domain) {
 /* }}} */
 
 /* {{{ proto int yp_order(string domain, string map)            
-       Returns the order number or false */
+   Returns the order number or false */
 PHP_FUNCTION(yp_order) {
        pval **domain, **map;
 
@@ -85,7 +85,7 @@ PHP_FUNCTION(yp_order) {
 /* }}} */
 
 /* {{{ proto string yp_master(string domain, string map)
-       Returns the machine name of the master */
+   Returns the machine name of the master */
 PHP_FUNCTION(yp_master) {
        pval **domain, **map;
        char *outname;
@@ -106,7 +106,7 @@ PHP_FUNCTION(yp_master) {
 /* }}} */
 
 /* {{{ proto string yp_match(string domain, string map, string key)
-       Returns the matched line or false */
+   Returns the matched line or false */
 PHP_FUNCTION(yp_match) {
        pval **domain, **map, **key;
        char *outval;
@@ -129,7 +129,7 @@ PHP_FUNCTION(yp_match) {
 /* }}} */
 
 /* {{{ proto array yp_first(string domain, string map)
-       Returns the first key as $var["key"] and the first line as $var["value"] */
+   Returns the first key as $var["key"] and the first line as $var["value"] */
 PHP_FUNCTION(yp_first) {
        pval **domain, **map;
        char *outval, *outkey;
@@ -152,7 +152,7 @@ PHP_FUNCTION(yp_first) {
 /* }}} */
 
 /* {{{ proto array yp_next(string domain, string map, string key)
-      Returns an array with $var[$key] and the the line as the value */
+   Returns an array with $var[$key] and the the line as the value */
 PHP_FUNCTION(yp_next) {
        pval **domain, **map, **key;
        char *outval, *outkey;
index 7ea25c645a54b68e953ecf43ac1f06617e44f5be..82df509e90921c7baa534be6df301aad21ea3d3c 100644 (file)
@@ -275,7 +275,7 @@ static gzFile *php_gzopen_with_path(char *filename, char *mode, char *path, char
 }
 
 /* {{{ proto array gzfile(string filename [, int use_include_path])
-Read und uncompress entire .gz-file into an array */
+   Read und uncompress entire .gz-file into an array */
 PHP_FUNCTION(gzfile) {
        pval **filename, **arg2;
        gzFile zp;
@@ -331,7 +331,7 @@ PHP_FUNCTION(gzfile) {
 /* }}} */
 
 /* {{{ proto int gzopen(string filename, string mode [, int use_include_path])
-Open a .gz-file and return a .gz-file pointer */
+   Open a .gz-file and return a .gz-file pointer */
 PHP_FUNCTION(gzopen) {
        pval **arg1, **arg2, **arg3;
        gzFile *zp;
@@ -377,7 +377,7 @@ PHP_FUNCTION(gzopen) {
 /* }}} */
 
 /* {{{ proto int gzclose(int zp)
-Close an open .gz-file pointer */
+   Close an open .gz-file pointer */
 PHP_FUNCTION(gzclose) {
        pval **arg1;
        gzFile *zp;
@@ -392,7 +392,7 @@ PHP_FUNCTION(gzclose) {
 /* }}} */
 
 /* {{{ proto int gzeof(int zp)
-Test for end-of-file on a .gz-file pointer */
+   Test for end-of-file on a .gz-file pointer */
 PHP_FUNCTION(gzeof) {
        pval **arg1;
        gzFile *zp;
@@ -411,7 +411,7 @@ PHP_FUNCTION(gzeof) {
 /* }}} */
 
 /* {{{ proto string gzgets(int zp, int length)
-Get a line from .gz-file pointer */
+   Get a line from .gz-file pointer */
 PHP_FUNCTION(gzgets) {
        pval **arg1, **arg2;
        gzFile *zp;
@@ -447,7 +447,7 @@ PHP_FUNCTION(gzgets) {
 /* }}} */
 
 /* {{{ proto string gzgetc(int zp)
-Get a character from .gz-file pointer */
+   Get a character from .gz-file pointer */
 PHP_FUNCTION(gzgetc) {
        pval **arg1;
        gzFile *zp;
@@ -477,7 +477,7 @@ PHP_FUNCTION(gzgetc) {
 
 /* Strip any HTML tags while reading */
 /* {{{ proto string gzgetss(int zp, int length [, string allowable_tags])
-Get a line from file pointer and strip HTML tags */
+   Get a line from file pointer and strip HTML tags */
 PHP_FUNCTION(gzgetss)
 {
        pval **fd, **bytes, **allow=NULL;
@@ -530,7 +530,7 @@ PHP_FUNCTION(gzgetss)
 /* }}} */
 
 /* {{{ proto int gzwrite(int zp, string str [, int length])
-Binary-safe .gz-file write */
+   Binary-safe .gz-file write */
 PHP_FUNCTION(gzwrite) {
        pval **arg1, **arg2, **arg3=NULL;
        gzFile *zp;
@@ -576,7 +576,7 @@ PHP_FUNCTION(gzwrite) {
 /* }}} */
 
 /* {{{ proto int gzrewind(int zp)
-Rewind the position of a .gz-file pointer */
+   Rewind the position of a .gz-file pointer */
 PHP_FUNCTION(gzrewind) {
        pval **arg1;
        gzFile *zp;
@@ -593,7 +593,7 @@ PHP_FUNCTION(gzrewind) {
 /* }}} */
 
 /* {{{ proto int gztell(int zp)
-Get .gz-file pointer's read/write position */
+   Get .gz-file pointer's read/write position */
 PHP_FUNCTION(gztell) {
        pval **arg1;
        long pos;
@@ -611,7 +611,7 @@ PHP_FUNCTION(gztell) {
 /* }}} */
 
 /* {{{ proto int gzseek(int zp, int offset)
-Seek on a file pointer */
+   Seek on a file pointer */
 PHP_FUNCTION(gzseek) {
        pval **arg1, **arg2;
        int ret;
@@ -633,7 +633,7 @@ PHP_FUNCTION(gzseek) {
  * Read a file and write the ouput to stdout
  */
 /* {{{ proto int readgzfile(string filename [, int use_include_path])
-Output a .gz-file */
+   Output a .gz-file */
 PHP_FUNCTION(readgzfile) {
        pval **arg1, **arg2;
        char buf[8192];
@@ -684,7 +684,7 @@ PHP_FUNCTION(readgzfile) {
  * Read to EOF on a file descriptor and write the output to stdout.
  */
 /* {{{ proto int gzpassthru(int zp)
-Output all remaining data from a .gz-file pointer */
+   Output all remaining data from a .gz-file pointer */
 PHP_FUNCTION(gzpassthru) {
        pval **arg1;
        gzFile *zp;
@@ -709,7 +709,7 @@ PHP_FUNCTION(gzpassthru) {
 /* }}} */
 
 /* {{{ proto string gzread(int zp, int length)
-Binary-safe file read */
+   Binary-safe file read */
 PHP_FUNCTION(gzread)
 {
        pval **arg1, **arg2;