[PHP-DEV] CVS update: php31/ext/gd From: zeev (php-dev <email protected>)
Date: 06/26/98

Date: Friday June 26, 1998 @ 12:52
Author: zeev

Update of /repository/php31/ext/gd
In directory asf:/tmp/cvs-serv8683/ext/gd

Modified Files:
        gd.c
Log Message:
I doubt that's all that missing, but here it is anyway

Index: php31/ext/gd/gd.c
diff -c php31/ext/gd/gd.c:1.2 php31/ext/gd/gd.c:1.3
*** php31/ext/gd/gd.c:1.2 Fri Jun 26 09:29:21 1998
--- php31/ext/gd/gd.c Fri Jun 26 12:52:47 1998
***************
*** 29,35 ****
     +----------------------------------------------------------------------+
   */
  
! /* $Id: gd.c,v 1.2 1998/06/26 13:29:21 ssb Exp $ */
  
  /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
     Cold Spring Harbor Labs. */
--- 29,35 ----
     +----------------------------------------------------------------------+
   */
  
! /* $Id: gd.c,v 1.3 1998/06/26 16:52:47 zeev Exp $ */
  
  /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
     Cold Spring Harbor Labs. */
***************
*** 1058,1064 ****
      }
  */
  
! nelem = hash_num_elements(POINTS->value.ht);
          if (nelem < 6) {
                  php3_error(E_WARNING,
                                          "you must have at least 3 points in your array");
--- 1058,1064 ----
      }
  */
  
! nelem = _php3_hashnum_elements(POINTS->value.ht);
          if (nelem < 6) {
                  php3_error(E_WARNING,
                                          "you must have at least 3 points in your array");
***************
*** 1078,1088 ****
          }
  
          for (i = 0; i < npoints; i++) {
! if (hash_index_find(POINTS->value.ht, (i * 2), (void **)&var) == SUCCESS) {
                          convert_to_long(var);
                          points[i].x = var->value.lval;
                  }
! if (hash_index_find(POINTS->value.ht, (i * 2) + 1, (void **)&var) == SUCCESS) {
                          convert_to_long(var);
                          points[i].y = var->value.lval;
                  }
--- 1078,1088 ----
          }
  
          for (i = 0; i < npoints; i++) {
! if (_php3_hashindex_find(POINTS->value.ht, (i * 2), (void **)&var) == SUCCESS) {
                          convert_to_long(var);
                          points[i].x = var->value.lval;
                  }
! if (_php3_hashindex_find(POINTS->value.ht, (i * 2) + 1, (void **)&var) == SUCCESS) {
                          convert_to_long(var);
                          points[i].y = var->value.lval;
                  }