Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
13276ff9
Commit
13276ff9
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
4c7a306f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Common/Makefile
+1
-2
1 addition, 2 deletions
Common/Makefile
Common/TreeUtils.cpp
+6
-9
6 additions, 9 deletions
Common/TreeUtils.cpp
Common/TreeUtils.h
+1
-1
1 addition, 1 deletion
Common/TreeUtils.h
with
8 additions
and
12 deletions
Common/Makefile
+
1
−
2
View file @
13276ff9
...
@@ -180,7 +180,6 @@ SmoothData.o: SmoothData.cpp SmoothData.h ../Numeric/Numeric.h \
...
@@ -180,7 +180,6 @@ SmoothData.o: SmoothData.cpp SmoothData.h ../Numeric/Numeric.h \
StringUtils.o
:
StringUtils.cpp StringUtils.h
StringUtils.o
:
StringUtils.cpp StringUtils.h
ListUtils.o
:
ListUtils.cpp MallocUtils.h ListUtils.h TreeUtils.h avl.h
\
ListUtils.o
:
ListUtils.cpp MallocUtils.h ListUtils.h TreeUtils.h avl.h
\
Message.h
Message.h
TreeUtils.o
:
TreeUtils.cpp MallocUtils.h TreeUtils.h avl.h ListUtils.h
\
TreeUtils.o
:
TreeUtils.cpp MallocUtils.h TreeUtils.h avl.h ListUtils.h
Message.h
avl.o
:
avl.cpp avl.h MallocUtils.h
avl.o
:
avl.cpp avl.h MallocUtils.h
MallocUtils.o
:
MallocUtils.cpp MallocUtils.h Message.h
MallocUtils.o
:
MallocUtils.cpp MallocUtils.h Message.h
This diff is collapsed.
Click to expand it.
Common/TreeUtils.cpp
+
6
−
9
View file @
13276ff9
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
#include
<string.h>
#include
<string.h>
#include
"MallocUtils.h"
#include
"MallocUtils.h"
#include
"TreeUtils.h"
#include
"TreeUtils.h"
#include
"Message.h"
Tree_T
*
Tree_Create
(
int
size
,
int
(
*
fcmp
)
(
const
void
*
a
,
const
void
*
b
))
Tree_T
*
Tree_Create
(
int
size
,
int
(
*
fcmp
)
(
const
void
*
a
,
const
void
*
b
))
{
{
...
@@ -28,15 +27,13 @@ void Tree_Delete(Tree_T * tree)
...
@@ -28,15 +27,13 @@ void Tree_Delete(Tree_T * tree)
Free
(
tree
);
Free
(
tree
);
}
}
void
Tree_Add
(
Tree_T
*
tree
,
void
*
data
)
void
*
Tree_Add
(
Tree_T
*
tree
,
void
*
data
)
{
{
if
(
!
tree
)
if
(
!
tree
)
return
0
;
Msg
::
Error
(
"Impossible to add in unallocated tree"
);
void
*
ptr
=
Malloc
(
tree
->
size
);
else
{
memcpy
(
ptr
,
data
,
tree
->
size
);
void
*
ptr
=
Malloc
(
tree
->
size
);
avl_insert
(
tree
->
root
,
ptr
,
ptr
);
memcpy
(
ptr
,
data
,
tree
->
size
);
return
ptr
;
avl_insert
(
tree
->
root
,
ptr
,
ptr
);
}
}
}
int
Tree_Nbr
(
Tree_T
*
tree
)
int
Tree_Nbr
(
Tree_T
*
tree
)
...
...
This diff is collapsed.
Click to expand it.
Common/TreeUtils.h
+
1
−
1
View file @
13276ff9
...
@@ -16,7 +16,7 @@ typedef struct {
...
@@ -16,7 +16,7 @@ typedef struct {
Tree_T
*
Tree_Create
(
int
size
,
int
(
*
fcmp
)(
const
void
*
a
,
const
void
*
b
));
Tree_T
*
Tree_Create
(
int
size
,
int
(
*
fcmp
)(
const
void
*
a
,
const
void
*
b
));
void
Tree_Delete
(
Tree_T
*
Tree
);
void
Tree_Delete
(
Tree_T
*
Tree
);
void
Tree_Add
(
Tree_T
*
tree
,
void
*
data
);
void
*
Tree_Add
(
Tree_T
*
tree
,
void
*
data
);
int
Tree_Nbr
(
Tree_T
*
Tree
);
int
Tree_Nbr
(
Tree_T
*
Tree
);
int
Tree_Insert
(
Tree_T
*
Tree
,
void
*
data
);
int
Tree_Insert
(
Tree_T
*
Tree
,
void
*
data
);
int
Tree_Search
(
Tree_T
*
Tree
,
void
*
data
);
int
Tree_Search
(
Tree_T
*
Tree
,
void
*
data
);
...
...
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