Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfdaf47f

Browse files
committed
The last patch fixes some incongruences in the #define used to compile the
Tcl arrays support. Here are the correct values to be defined in config.hand pgtclCmds.c.Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1 parent37a8bdb commitfdaf47f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎src/include/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ typedef unsigned char slock_t;
318318
* of postgres C-like arrays, for example {{"a1" "a2"} {"b1" "b2"}} instead
319319
* of {{"a1","a2"},{"b1","b2"}}.
320320
*/
321-
#defineTCL_ARRAY
321+
#defineTCL_ARRAYS
322322

323323
/*
324324
* The comparison routines for text and char data type give incorrect results

‎src/interfaces/libpgtcl/pgtclCmds.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.11 1997/01/11 14:28:51 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.12 1997/01/23 19:47:18 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -43,7 +43,7 @@ translate_escape(char *p, int isArray)
4343
{
4444
registercharc,*q,*s;
4545

46-
#ifdefDEBUG_ESCAPE
46+
#ifdefTCL_ARRAYS_DEBUG_ESCAPE
4747
printf(" escape = '%s'\n",p);
4848
#endif
4949
/* Address of the first character after the escape sequence */
@@ -125,7 +125,7 @@ translate_escape(char *p, int isArray)
125125
*q++=*s++;
126126
}
127127
*q='\0';
128-
#ifdefDEBUG_ESCAPE
128+
#ifdefTCL_ARRAYS_DEBUG_ESCAPE
129129
printf(" after = '%s'\n",p);
130130
#endif
131131
returnp;
@@ -143,13 +143,13 @@ static char *
143143
tcl_value (char*value)
144144
{
145145
intliteral,last;
146-
registercharc,*p,*q,*s;
146+
registerchar*p;
147147

148148
if (!value) {
149149
return ((char*)NULL);
150150
}
151151

152-
#ifdefDEBUG
152+
#ifdefTCL_ARRAYS_DEBUG
153153
printf("pq_value = '%s'\n",value);
154154
#endif
155155
last=strlen(value)-1;
@@ -202,7 +202,7 @@ tcl_value (char *value)
202202
}
203203
}
204204
}
205-
#ifdefDEBUG
205+
#ifdefTCL_ARRAYS_DEBUG
206206
printf("tcl_value = '%s'\n\n",value);
207207
#endif
208208
return (value);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp