Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
aa21961c
Commit
aa21961c
authored
Sep 07, 2022
by
Miodrag Milanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support using large liberty files
parent
20f970f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/map/scl/sclLiberty.c
+5
-5
No files found.
src/map/scl/sclLiberty.c
View file @
aa21961c
...
...
@@ -63,7 +63,7 @@ struct Scl_Tree_t_
{
char
*
pFileName
;
// input Liberty file name
char
*
pContents
;
// file contents
int
nContents
;
// file size
long
nContents
;
// file size
int
nLines
;
// line counter
int
nItems
;
// number of items
int
nItermAlloc
;
// number of items allocated
...
...
@@ -506,10 +506,10 @@ void Scl_LibertyFixFileName( char * pFileName )
if
(
*
pHead
==
'>'
)
*
pHead
=
'\\'
;
}
int
Scl_LibertyFileSize
(
char
*
pFileName
)
long
Scl_LibertyFileSize
(
char
*
pFileName
)
{
FILE
*
pFile
;
int
nFileSize
;
long
nFileSize
;
pFile
=
fopen
(
pFileName
,
"rb"
);
if
(
pFile
==
NULL
)
{
...
...
@@ -521,7 +521,7 @@ int Scl_LibertyFileSize( char * pFileName )
fclose
(
pFile
);
return
nFileSize
;
}
char
*
Scl_LibertyFileContents
(
char
*
pFileName
,
int
nContents
)
char
*
Scl_LibertyFileContents
(
char
*
pFileName
,
long
nContents
)
{
FILE
*
pFile
=
fopen
(
pFileName
,
"rb"
);
char
*
pContents
=
ABC_ALLOC
(
char
,
nContents
+
1
);
...
...
@@ -558,7 +558,7 @@ void Scl_LibertyStringDump( char * pFileName, Vec_Str_t * vStr )
Scl_Tree_t
*
Scl_LibertyStart
(
char
*
pFileName
)
{
Scl_Tree_t
*
p
;
int
RetValue
;
long
RetValue
;
// read the file into the buffer
Scl_LibertyFixFileName
(
pFileName
);
RetValue
=
Scl_LibertyFileSize
(
pFileName
);
...
...
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