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
73789120
Commit
73789120
authored
Apr 20, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc changes.
parent
3f6bb881
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
14 deletions
+5
-14
src/misc/util/utilNam.c
+3
-1
src/misc/util/utilNam.h
+1
-0
src/misc/vec/vecInt.h
+1
-13
No files found.
src/misc/util/utilNam.c
View file @
73789120
...
...
@@ -360,7 +360,9 @@ int Abc_NamStrFind( Abc_Nam_t * p, char * pStr )
int
Abc_NamStrFindOrAdd
(
Abc_Nam_t
*
p
,
char
*
pStr
,
int
*
pfFound
)
{
int
iHandleNew
;
int
*
piPlace
=
Abc_NamStrHashFind
(
p
,
pStr
);
int
*
piPlace
;
assert
(
pStr
[
0
]
!=
'\\'
||
pStr
[
strlen
(
pStr
)
-
1
]
==
' '
);
piPlace
=
Abc_NamStrHashFind
(
p
,
pStr
);
if
(
*
piPlace
)
{
if
(
pfFound
)
...
...
src/misc/util/utilNam.h
View file @
73789120
...
...
@@ -60,6 +60,7 @@ extern int Abc_NamStrFindOrAdd( Abc_Nam_t * p, char * pStr, int * pf
extern
char
*
Abc_NamStr
(
Abc_Nam_t
*
p
,
int
id
);
extern
Vec_Int_t
*
Abc_NamComputeIdMap
(
Abc_Nam_t
*
p1
,
Abc_Nam_t
*
p2
);
extern
int
Abc_NamReportCommon
(
Vec_Int_t
*
vNameIds1
,
Abc_Nam_t
*
p1
,
Abc_Nam_t
*
p2
);
extern
char
*
Abc_NamReportUnique
(
Vec_Int_t
*
vNameIds1
,
Abc_Nam_t
*
p1
,
Abc_Nam_t
*
p2
);
ABC_NAMESPACE_HEADER_END
...
...
src/misc/vec/vecInt.h
View file @
73789120
...
...
@@ -259,22 +259,10 @@ static inline Vec_Int_t * Vec_IntDupArray( Vec_Int_t * pVec )
***********************************************************************/
static
inline
void
Vec_IntErase
(
Vec_Int_t
*
p
)
{
p
->
pArray
=
NULL
;
ABC_FREE
(
p
->
pArray
)
;
p
->
nSize
=
0
;
p
->
nCap
=
0
;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static
inline
void
Vec_IntFree
(
Vec_Int_t
*
p
)
{
ABC_FREE
(
p
->
pArray
);
...
...
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