🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.avs
Article #77

C++ and AVS Developers

#77
From: Lars Bishop
Date: Sun, 12 Apr 1992 23:06
34 lines
1780 bytes
I have been working with AVS and writing modules for two years now,
and have been doing some group research recently that has involved
writing a module in C++.  Maybe I am behind on the latest, but
the AVS developer's header files do some nasty things (stuff that
one would think they would have had the foresight to avoid), such
as using the words 'class' and 'template' as identifyers.
	Also, many of the frequently used functions have no forward
declarations (I grep'ed the entire /usr/include/avs directory).  We
have fixed the class and template problems with the following;

#define template avs_template
#define class avs_class

(Include avs headers)

#undef class
#undef template

The other problems have been fixed by creating our own AVS header file
with forward declarations of the undeclared AVS functions.  Of course,
the use of the 'extern "C" {}' system is also neccessary, but that is
always true when mixing C and C++.
	My question is;  Is anyone out there doing any AVS in C++?  Am
I reinventing the wheel, or has no one ever tried writing modules in C++?
If someone has done it before, I would love hints.  If no one has done
it before, I should probably be compiling a list of neccessary changes
to link the two.

Lars

Lars Bishop	Brown University department of Computer Science
cs224044@cs.brown.edu
Lars Bishop	University of Illinois at UC department of ECE
bishop@gate.spg.uiuc.edu
Technical Details
Message-ID: <1992Apr12.230638.9320@cs.brown.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!brunix!brunix!cs224044

Show Full Headers
Complete Article Headers
Newsgroups: comp.graphics.avs
Path: arc1-ca.pugleaf.net!sparky!uunet!brunix!brunix!cs224044
From: cs224044@cs.brown.edu (Lars Bishop)
Subject: C++ and AVS Developers
Message-ID: <1992Apr12.230638.9320@cs.brown.edu>
Sender: news@cs.brown.edu
Organization: Brown University Department of Computer Science
Date: Sun, 12 Apr 1992 23:06:38 GMT
Lines: 34