Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
45fe4042
Commit
45fe4042
authored
Nov 08, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore compatibility with Tcl 8.0.* --- from ljb.
parent
153e8302
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/interfaces/libpgtcl/pgtclCmds.c
src/interfaces/libpgtcl/pgtclCmds.c
+9
-1
No files found.
src/interfaces/libpgtcl/pgtclCmds.c
View file @
45fe4042
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.7
4 2003/10/31 00:18:55
tgl Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.7
5 2003/11/08 20:34:36
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1218,7 +1218,11 @@ Pg_lo_read(ClientData cData, Tcl_Interp *interp, int objc,
...
@@ -1218,7 +1218,11 @@ Pg_lo_read(ClientData cData, Tcl_Interp *interp, int objc,
if
(
nbytes
>=
0
)
if
(
nbytes
>=
0
)
{
{
#if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION >= 1 || TCL_MAJOR_VERSION > 8
bufObj
=
Tcl_NewByteArrayObj
(
buf
,
nbytes
);
bufObj
=
Tcl_NewByteArrayObj
(
buf
,
nbytes
);
#else
bufObj
=
Tcl_NewStringObj
(
buf
,
nbytes
);
#endif
if
(
Tcl_ObjSetVar2
(
interp
,
bufVar
,
NULL
,
bufObj
,
if
(
Tcl_ObjSetVar2
(
interp
,
bufVar
,
NULL
,
bufObj
,
TCL_LEAVE_ERR_MSG
|
TCL_PARSE_PART1
)
==
NULL
)
TCL_LEAVE_ERR_MSG
|
TCL_PARSE_PART1
)
==
NULL
)
...
@@ -1313,7 +1317,11 @@ Pg_lo_write(ClientData cData, Tcl_Interp *interp, int objc,
...
@@ -1313,7 +1317,11 @@ Pg_lo_write(ClientData cData, Tcl_Interp *interp, int objc,
if
(
Tcl_GetIntFromObj
(
interp
,
objv
[
2
],
&
fd
)
!=
TCL_OK
)
if
(
Tcl_GetIntFromObj
(
interp
,
objv
[
2
],
&
fd
)
!=
TCL_OK
)
return
TCL_ERROR
;
return
TCL_ERROR
;
#if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION >= 1 || TCL_MAJOR_VERSION > 8
buf
=
Tcl_GetByteArrayFromObj
(
objv
[
3
],
&
nbytes
);
buf
=
Tcl_GetByteArrayFromObj
(
objv
[
3
],
&
nbytes
);
#else
buf
=
Tcl_GetStringFromObj
(
objv
[
3
],
&
nbytes
);
#endif
if
(
Tcl_GetIntFromObj
(
interp
,
objv
[
4
],
&
len
)
!=
TCL_OK
)
if
(
Tcl_GetIntFromObj
(
interp
,
objv
[
4
],
&
len
)
!=
TCL_OK
)
return
TCL_ERROR
;
return
TCL_ERROR
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment