Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESS EPICS Environment
wrappers
e3-require
Commits
8764c997
Commit
8764c997
authored
18 years ago
by
zimoch
Browse files
Options
Downloads
Patches
Plain Diff
function (and file) renamed, usage message added
parent
122f7680
No related branches found
No related tags found
1 merge request
!7
Submodule merge
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
listRecords.c
+18
-11
18 additions, 11 deletions
listRecords.c
with
18 additions
and
11 deletions
dump
Records.c
→
list
Records.c
+
18
−
11
View file @
8764c997
/*
dump
Records is a wrapper function for dbl
/*
list
Records is a wrapper function for dbl
it is required because of the changed syntax of dbl in R3.14.
it is required because of the changed syntax of dbl in R3.14.
*/
*/
...
@@ -8,23 +8,32 @@
...
@@ -8,23 +8,32 @@
#ifdef BASE_VERSION
#ifdef BASE_VERSION
/* This is R3.13 */
/* This is R3.13 */
long
dbl
(
char
*
precordTypename
,
char
*
filename
,
char
*
fields
);
long
dbl
(
char
*
precordTypename
,
char
*
filename
,
char
*
fields
);
int
dumpRecords
(
char
*
file
,
char
*
fields
)
{
return
dbl
(
0L
,
file
,
fields
);
}
#else
#else
/* This is R3.14 */
/* This is R3.14 */
#include
<string.h>
#include
<string.h>
#include
<dbTest.h>
#include
<dbTest.h>
#include
<epicsStdio.h>
#include
<epicsStdio.h>
#endif
int
dump
Records
(
char
*
file
,
char
*
fields
)
int
list
Records
(
char
*
file
,
char
*
fields
)
{
{
#ifndef BASE_VERSION
/* This is R3.14 */
FILE
*
oldStdout
;
FILE
*
oldStdout
;
FILE
*
newStdout
;
FILE
*
newStdout
;
#endif
if
(
!
file
)
{
printf
(
"usage: listRecords
\"
filename
\"
,
\"
field, field, ...
\"\n
"
);
return
-
1
;
}
#ifdef BASE_VERSION
/* This is R3.13 */
return
dbl
(
0L
,
file
,
fields
);
#else
/* This is R3.14 */
newStdout
=
fopen
(
file
,
"w"
);
newStdout
=
fopen
(
file
,
"w"
);
if
(
!
newStdout
)
if
(
!
newStdout
)
{
{
...
@@ -38,6 +47,4 @@ int dumpRecords(char* file, char* fields)
...
@@ -38,6 +47,4 @@ int dumpRecords(char* file, char* fields)
fclose
(
newStdout
);
fclose
(
newStdout
);
epicsSetThreadStdout
(
oldStdout
);
epicsSetThreadStdout
(
oldStdout
);
return
OK
;
return
OK
;
}
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment