Re: CVS commit: src/lib/libterminfo

2013-01-25 Thread David Laight
On Fri, Jan 25, 2013 at 12:30:06PM +, Roy Marples wrote:
 Module Name:  src
 Committed By: roy
 Date: Fri Jan 25 12:30:06 UTC 2013
 
 Modified Files:
   src/lib/libterminfo: terminfo.3 tparm.c
 
 Log Message:
 For platforms where we cannot fit a char * into a long, return NULL
 and set errno to ENOTSUPP.

Could the 'char *' pointers be replaced with indexes into an array?

David

-- 
David Laight: da...@l8s.co.uk


Re: CVS commit: src/lib/libterminfo

2013-01-25 Thread Warner Losh

On Jan 25, 2013, at 4:05 PM, David Laight wrote:

 On Fri, Jan 25, 2013 at 12:30:06PM +, Roy Marples wrote:
 Module Name: src
 Committed By:roy
 Date:Fri Jan 25 12:30:06 UTC 2013
 
 Modified Files:
  src/lib/libterminfo: terminfo.3 tparm.c
 
 Log Message:
 For platforms where we cannot fit a char * into a long, return NULL
 and set errno to ENOTSUPP.
 
 Could the 'char *' pointers be replaced with indexes into an array?

How many platforms is this actually the case on?

Warner