Implement acc_product_version.

This commit is contained in:
steve 2002-05-30 02:06:05 +00:00
parent 95876feb46
commit 9537fd7f0b
3 changed files with 47 additions and 3 deletions

View File

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT) && !defined(macintosh)
#ident "$Id: acc_user.h,v 1.1 2002/05/23 03:46:42 steve Exp $"
#ident "$Id: acc_user.h,v 1.2 2002/05/30 02:06:05 steve Exp $"
#endif
/*
@ -46,11 +46,15 @@ extern int acc_error_flag;
extern int acc_initialize(void);
extern void acc_close(void);
extern char*acc_product_version(void);
EXTERN_C_END
/*
* $Log: acc_user.h,v $
* Revision 1.2 2002/05/30 02:06:05 steve
* Implement acc_product_version.
*
* Revision 1.1 2002/05/23 03:46:42 steve
* Add the acc_user.h header file.
*

View File

@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
#ident "$Id: Makefile.in,v 1.4 2002/05/24 20:29:07 steve Exp $"
#ident "$Id: Makefile.in,v 1.5 2002/05/30 02:06:05 steve Exp $"
#
#
SHELL = /bin/sh
@ -44,7 +44,7 @@ CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
STRIP = @STRIP@
A = a_close.o a_initialize.o
A = a_close.o a_initialize.o a_product_version.o
O = finish.o io_print.o mc_scan_plusargs.o $A
all: libveriuser.a

View File

@ -0,0 +1,40 @@
/* vi:sw=6
* Copyright (c) 2002 Michael Ruff (mruff at chiaro.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
*/
#if !defined(WINNT)
#ident "$Id: a_product_version.c,v 1.1 2002/05/30 02:06:05 steve Exp $"
#endif
# include <vpi_user.h>
# include <acc_user.h>
char *acc_product_version(void)
{
s_vpi_vlog_info info;
if (! vpi_get_vlog_info(&info)) return (char *)0;
return info.version;
}
/*
* $Log: a_product_version.c,v $
* Revision 1.1 2002/05/30 02:06:05 steve
* Implement acc_product_version.
*
*/