🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Roy Binz Fri, 12 Jan 1990 19:02
Minor bug in gnugrep-1.4 (& fix)
#1703
Author: Roy Binz
Date: Fri, 12 Jan 1990 19:02
59 lines
2073 bytes
GNU grep does not treat the underscore as an alphabetic character because
<ctype.h> does not consider it as such.  This can be most annoying when
grepping for identifiers which have underscores in them.

Below is a context diff to dfa.h that fixes this problem.

	Roy Binz
	Solbourne Computer, Longmont, Colorado
	Domain: reb@Solbourne.COM, UUCP: {boulder,sun}!stan!reb
	Phone : 303-678-4307

------Cut Here-----
------- dfa.h -------
*** /tmp/da3205	Fri Jan 12 12:01:43 1990
--- dfa.h	Fri Jan 12 11:51:32 1990
***************
*** 129,136 ****
  #define ISALPHA(c) isalpha(c)
  #define ISUPPER(C) isupper(c)
  #else
! #define ISALNUM(c) (isascii(c) && isalnum(c))
! #define ISALPHA(c) (isascii(c) && isalpha(c))
  #define ISUPPER(c) (isascii(c) && isupper(c))
  #endif
  
--- 129,136 ----
  #define ISALPHA(c) isalpha(c)
  #define ISUPPER(C) isupper(c)
  #else
! #define ISALNUM(c) ((isascii(c) && isalnum(c)) || (c) == '_')
! #define ISALPHA(c) ((isascii(c) && isalpha(c)) || (c) == '_')
  #define ISUPPER(c) (isascii(c) && isupper(c))
  #endif
  
***************
*** 143,150 ****
  
  extern char *bcopy(), *bzero();
  
! #define ISALNUM(c) (isascii(c) && isalnum(c))
! #define ISALPHA(c) (isascii(c) && isalpha(c))
  
  #endif /* ! __STDC__ */
  
--- 143,151 ----
  
  extern char *bcopy(), *bzero();
  
! #define ISALNUM(c) ((isascii(c) && isalnum(c)) || (c) == '_')
! #define ISALPHA(c) ((isascii(c) && isalpha(c)) || (c) == '_')
! #define ISUPPER(c) (isascii(c) && isupper(c))
  
  #endif /* ! __STDC__ */
  
--
	Roy Binz
	Solbourne Computer, Longmont, Colorado
	Domain: reb@Solbourne.COM, UUCP: {boulder,sun}!stan!reb
	Phone : 303-678-4307
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads