Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
Esteban Blanc
proview
Commits
4aaaac51
Commit
4aaaac51
authored
Mar 19, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
404cf92a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
2 deletions
+50
-2
src/exp/com/src/os_vms/pwr_repl.com
src/exp/com/src/os_vms/pwr_repl.com
+47
-0
src/lib/co/src/co_dbs.c
src/lib/co/src/co_dbs.c
+3
-2
No files found.
src/exp/com/src/os_vms/pwr_repl.com
0 → 100755
View file @
4aaaac51
$!
$!
$! p1 : volym
$! p2 : fil
$!
$! RENAME
$!
$! File dutil_src:rename.com
$!
$! Modified CS 97 04 10 Skapad
$!
$! ndra namn p objekt.
$!
$ on error then goto error_exit
$ say := write sys$output
$
$ cmdfile = "sys$login:tmp_rename.tpu"
$
$ filecnt = 0
$LC_NextFile:
$ open/write/error=L_WriteFileError cf 'cmdfile'
$ oldname = p2
$ newname = p3
$
$! say "rename of: ''oldname' -> ''newname'"
$ write cf "POSITION(SEARCH(BUFFER_BEGIN,REVERSE));"
$ write cf -
"eve_global_replace( ''''"+"''oldname'"+"'''',''''"+"''newname'"+"'''');"
$ write cf "eve_exit;"
$ close cf
$
$ edit/tpu/command='cmdfile'/nodisplay 'p1'
$! delete/nolog/noconfirm 'cmdfile'.*
$
$ exit
$
$L_WriteFileError:
$ say "Error, Unable to open file ''cmdfile'"
$ close rf
$ exit
$
$
$
$error_exit:
$ say "Exekveringen termineras pga fel"
$ exit
$
src/lib/co/src/co_dbs.c
View file @
4aaaac51
...
@@ -156,8 +156,6 @@ void *dbs_Bfind(pwr_tStatus *sts, const dbs_sEnv *ep, dbs_sBintab *tp, void *key
...
@@ -156,8 +156,6 @@ void *dbs_Bfind(pwr_tStatus *sts, const dbs_sEnv *ep, dbs_sBintab *tp, void *key
char
*
end
=
dbs_Address
(
sts
,
ep
,
tp
->
end
);
char
*
end
=
dbs_Address
(
sts
,
ep
,
tp
->
end
);
int
rsize
=
tp
->
rsize
;
int
rsize
=
tp
->
rsize
;
while
(
start
<=
end
)
{
while
(
start
<=
end
)
{
p
=
start
+
((
end
-
start
)
/
(
2
*
rsize
))
*
rsize
;
p
=
start
+
((
end
-
start
)
/
(
2
*
rsize
))
*
rsize
;
c
=
comp
(
key
,
p
);
c
=
comp
(
key
,
p
);
...
@@ -823,6 +821,9 @@ dbs_Child(pwr_tStatus *sts, const dbs_sEnv *ep, dbs_sObject *op, char *name)
...
@@ -823,6 +821,9 @@ dbs_Child(pwr_tStatus *sts, const dbs_sEnv *ep, dbs_sObject *op, char *name)
{
{
dbs_sName
n
;
dbs_sName
n
;
dbs_sName
*
np
;
dbs_sName
*
np
;
if
(
!
op
->
name_bt
.
start
)
return
NULL
;
n
.
poix
=
op
->
oid
.
oix
;
n
.
poix
=
op
->
oid
.
oix
;
strcpy
(
n
.
normname
,
name
);
strcpy
(
n
.
normname
,
name
);
...
...
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