texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/info doc.h,1.3,1.4


From: karl
Subject: texinfo/info doc.h,1.3,1.4
Date: Sun, 21 Mar 2004 19:58:29 +0100

Update of /cvsroot/texinfo/texinfo/info
In directory sheep:/tmp/cvs-serv15512

Modified Files:
        doc.h 
Log Message:
(InfoFunction): cast NULL to VFunction *, to
prevent pgcc from complaining.  From Nelson.


Index: doc.h
===================================================================
RCS file: /cvsroot/texinfo/texinfo/info/doc.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** doc.h       14 Mar 2004 00:57:29 -0000      1.3
--- doc.h       21 Mar 2004 18:58:27 -0000      1.4
***************
*** 74,78 ****
  #if defined(INFOKEY)
  typedef FUNCTION_DOC InfoCommand;
! #define InfoFunction(ic) ((ic) ? (ic)->func : NULL)
  #define InfoCmd(fn) (&function_doc_array[A_##fn])
  #define DocInfoCmd(fd) ((fd) && (fd)->func ? (fd) : NULL)
--- 74,80 ----
  #if defined(INFOKEY)
  typedef FUNCTION_DOC InfoCommand;
! /* The cast to VFunction * prevents pgcc from complaining about
!    dereferencing a void *.  */
! #define InfoFunction(ic) ((ic) ? (ic)->func : (VFunction *) NULL)
  #define InfoCmd(fn) (&function_doc_array[A_##fn])
  #define DocInfoCmd(fd) ((fd) && (fd)->func ? (fd) : NULL)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]