Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!murtoa.cs.mu.oz.au!munnari.oz.au!otc!metro!basser!usage!elecvax!spinifex!brett
From: brett@spinifex.eecs.unsw.oz (Brett Sealey)
Newsgroups: comp.sys.apollo
Subject: Problems with Domain 2D-GMR header file.
Keywords: apollo 2D-GMR GMR2D domain
Message-ID: <414@spinifex.eecs.unsw.oz>
Date: 16 Aug 89 08:04:40 GMT
Organization: Kenso Kindi (UNSW)
Lines: 28

I'm using the Domain 2D Graphics Metafile Resource package, and
have noticed that some of the function prototypes in the file gmr.h
seem to be inconsistent with the types of parameters actually
being past. In particular, functions which use 'array-type'
parameters are the ones which seem to be causing problems.

I am using 2D-GMR version 2.1 under both C and C++.

Examples: 
~~~~~~~~~
From base.h:-
typedef char name_$pname_t[name_$pnamlen_max];

From gmr.h:-
extern void  gm_$file_create(
                             name_$pname_t &name,
                             ...

extern void  gm_$segment_inq_current(
                                     name_$pname_t *name,
                                     ...

It's the `*' and `&' symbols which seem to me to be unnecessary and
which are causing me problems. Any comments are welcome, as it is
I have already hacked a copy of gmr.h myself as a short term fix.

                             Thanks, Brett Sealey.
		             (brett@spinifex.eecs.unsw.oz)