mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Shared_Image.cxx
void Fl_Shared_Image::add_handler(Fl_Shared_Handler f) {
  int			i;		// Looping var...
  Fl_Shared_Handler	*temp;		// New image handler array...

  // First see if we have already added the handler...
  for (i = 0; i < num_handlers_; i ++) {
    if (handlers_[i] == f) return;
  }

  if (num_handlers_ >= alloc_handlers_) {
    // Allocate more memory...
    temp = new Fl_Shared_Handler [alloc_handlers_ + 32];

    if (alloc_handlers_) {
      memcpy(temp, handlers_, alloc_handlers_ * sizeof(Fl_Shared_Handler));

      delete[] handlers_;
    }

    handlers_       = temp;
    alloc_handlers_ += 32;
  }

  handlers_[num_handlers_] = f;
  num_handlers_ ++;
}
/** Adds a shared image handler, which is basically a test function for adding new formats */
Adds a shared image handler, which is basically a test function for adding new formats
Adds a shared image handler which is basically a test function for adding new formats
void Fl_Shared_Image::add_handler(Fl_Shared_Handler f) {
  int			i;		
  Fl_Shared_Handler	*temp;		
  for (i = 0; i < num_handlers_; i ++) {
    if (handlers_[i] == f) return;
  }
  if (num_handlers_ >= alloc_handlers_) {
    temp = new Fl_Shared_Handler [alloc_handlers_ + 32];
    if (alloc_handlers_) {
      memcpy(temp, handlers_, alloc_handlers_ * sizeof(Fl_Shared_Handler));
      delete[] handlers_;
    }
    handlers_       = temp;
    alloc_handlers_ += 32;
  }
  handlers_[num_handlers_] = f;
  num_handlers_ ++;
}
void Fl_Shared_Image :: add_handler ( Fl_Shared_Handler f ) { int i ; Fl_Shared_Handler * temp ; for ( i = 0 ; i < num_handlers_ ; i ++ ) { if ( handlers_ [ i ] == f ) return ; } if ( num_handlers_ >= alloc_handlers_ ) { temp = new Fl_Shared_Handler [ alloc_handlers_ + 32 ] ; if ( alloc_handlers_ ) { memcpy ( temp , handlers_ , alloc_handlers_ * sizeof ( Fl_Shared_Handler ) ) ; delete [ ] handlers_ ; } handlers_ = temp ; alloc_handlers_ += 32 ; } handlers_ [ num_handlers_ ] = f ; num_handlers_ ++ ; }
Adds a shared image handler, which is basically a test function for adding new formats
Adds a shared image handler which is basically a test function for adding new formats
// Looping var... // New image handler array... // First see if we have already added the handler... // Allocate more memory...