mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	This patch fixes minor bugs in dictionary generator in contrib/tsearch
(contrib/tsearch/makedict/makedict.pl) [ Backpatched to 7.3.] Teodor Sigaev
This commit is contained in:
		@@ -4,7 +4,7 @@ use Getopt::Std;
 | 
				
			|||||||
use locale;
 | 
					use locale;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
my %opt; 
 | 
					my %opt; 
 | 
				
			||||||
getopts('l:he:s:ap:om:f', \%opt);
 | 
					getopts('l:he:s:ap:o:m:f', \%opt);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ( $opt{h} || ! ($opt{e}||$opt{s}) || !$opt{l} ) {
 | 
					if ( $opt{h} || ! ($opt{e}||$opt{s}) || !$opt{l} ) {
 | 
				
			||||||
	print<<EOT;
 | 
						print<<EOT;
 | 
				
			||||||
@@ -94,6 +94,8 @@ print {$fh} <<EOT;
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef DICT_BODY
 | 
					#ifdef DICT_BODY
 | 
				
			||||||
 | 
					#include <ctype.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct {
 | 
					typedef struct {
 | 
				
			||||||
	uint8	val;
 | 
						uint8	val;
 | 
				
			||||||
	uint8	flag;
 | 
						uint8	flag;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user