Remove dead code in pointers.h.
This commit is contained in:
parent
2e60a181c0
commit
734124e653
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
|
||||
# include "pointers.h"
|
||||
# include "config.h"
|
||||
# include "vvp_net.h"
|
||||
# include "array.h"
|
||||
# include "vthread.h"
|
||||
|
|
@ -180,7 +180,6 @@ struct vvp_code_s {
|
|||
vvp_array_t array;
|
||||
struct __vpiHandle*handle;
|
||||
struct __vpiScope*scope;
|
||||
functor_t fun_ptr;
|
||||
};
|
||||
|
||||
union {
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@
|
|||
*/
|
||||
|
||||
# include "vvp_net.h"
|
||||
# include "pointers.h"
|
||||
# include "array.h"
|
||||
# include "vthread.h"
|
||||
# include "config.h"
|
||||
|
||||
class evctl {
|
||||
|
|
|
|||
105
vvp/pointers.h
105
vvp/pointers.h
|
|
@ -1,105 +0,0 @@
|
|||
#ifndef __pointers_H
|
||||
#define __pointers_H
|
||||
/*
|
||||
* Copyright (c) 2001 Stephen Williams (steve@icarus.com)
|
||||
*
|
||||
* This source code is free software; you can redistribute it
|
||||
* and/or modify it in source code form under the terms of the GNU
|
||||
* General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* This header file describes the various "pointer" integral types
|
||||
* that are used in vvp, along with functions that can be used to
|
||||
* manipulate those pointers.
|
||||
*/
|
||||
|
||||
# include "config.h"
|
||||
|
||||
/*
|
||||
* The vvp_ipoint_t is a 32bit integer that encodes the address of a
|
||||
* functor input port.
|
||||
*
|
||||
* The typedef below gets the type properly declared as an integral
|
||||
* type that is big enough. The config.h header file has the defines
|
||||
* needed for the following pre-processor magic to work.
|
||||
*/
|
||||
# if SIZEOF_UNSIGNED >= 4
|
||||
typedef unsigned vvp_ipoint_t;
|
||||
#elif SIZEOF_UNSIGNED_LONG >= 4
|
||||
typedef unsigned long vvp_ipoint_t;
|
||||
#else
|
||||
#error "I need an unsigned type that is 32 bits!"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This is a native-pointer version of the vvp_ipoint_t
|
||||
*/
|
||||
typedef struct functor_s *functor_t;
|
||||
|
||||
/*
|
||||
* Given a functor generic address and a desired port, this function
|
||||
* makes a complete vvp_ipoint_t that points to the port of the given
|
||||
* functor. The The result points to the same functor as the input
|
||||
* pointer, but addresses the supplied port instead.
|
||||
*/
|
||||
inline vvp_ipoint_t ipoint_make(vvp_ipoint_t func, unsigned port)
|
||||
{
|
||||
return (func & ~3) | (port & 3);
|
||||
}
|
||||
|
||||
/*
|
||||
* This implements pointer arithmetic for vvp_point_t pointers. Add
|
||||
* the given index to the functor part of the pointer.
|
||||
*/
|
||||
inline vvp_ipoint_t ipoint_index(vvp_ipoint_t base, unsigned idx)
|
||||
{
|
||||
return base + (idx<<2);
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the ipoint of an input into a multi-functor input vector.
|
||||
*/
|
||||
inline vvp_ipoint_t ipoint_input_index(vvp_ipoint_t base, unsigned idx)
|
||||
{
|
||||
return (base & ~3) + idx;
|
||||
}
|
||||
|
||||
/*
|
||||
* This function returns the port index of a functor given a complete
|
||||
* vvp_ipoint_t pointer.
|
||||
*/
|
||||
inline unsigned ipoint_port(vvp_ipoint_t func)
|
||||
{
|
||||
return func & 3;
|
||||
}
|
||||
|
||||
/*
|
||||
* The functor event mode uses a pointer of this type to point to the
|
||||
* extended event data.
|
||||
*/
|
||||
typedef struct event_functor_s *vvp_event_t;
|
||||
|
||||
|
||||
typedef struct vthread_s*vthread_t;
|
||||
|
||||
|
||||
/* vector of functors */
|
||||
|
||||
typedef struct vvp_fvector_s *vvp_fvector_t;
|
||||
|
||||
/* Forward declarations. */
|
||||
class vvp_delay_t;
|
||||
|
||||
#endif
|
||||
|
|
@ -20,7 +20,6 @@
|
|||
*/
|
||||
|
||||
# include "vthread.h"
|
||||
# include "pointers.h"
|
||||
# include "vvp_net.h"
|
||||
# include "array.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
|
||||
# include "pointers.h"
|
||||
# include "config.h"
|
||||
|
||||
class sfunc_core : public vvp_wide_fun_core, protected vvp_gen_event_s {
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
|
||||
# include "pointers.h"
|
||||
# include "config.h"
|
||||
|
||||
/*
|
||||
* The .ufunc statement creates functors to represent user defined
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
*/
|
||||
|
||||
# include "vpi_user.h"
|
||||
# include "pointers.h"
|
||||
# include "vvp_net.h"
|
||||
# include "config.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
|
||||
# include "pointers.h"
|
||||
# include "config.h"
|
||||
# include "vpi_priv.h"
|
||||
# include "vvp_net.h"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue