Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-uggrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
staging
dune-uggrid
Commits
46979a1c
Commit
46979a1c
authored
1 year ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated AllocEnvMemory and FreeEnvMemory
parent
45995f0c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!233
Remove code deprecated in 2.9 or earlier
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+3
-0
3 additions, 0 deletions
CHANGELOG.md
dune/uggrid/low/ugenv.cc
+0
-32
0 additions, 32 deletions
dune/uggrid/low/ugenv.cc
dune/uggrid/low/ugenv.h
+0
-6
0 additions, 6 deletions
dune/uggrid/low/ugenv.h
with
3 additions
and
38 deletions
CHANGELOG.md
+
3
−
0
View file @
46979a1c
...
...
@@ -5,6 +5,9 @@ SPDX-License-Identifier: LGPL-2.1-or-later
# dune-uggrid 2.10 (unreleased)
*
Remove deprecated
`AllocEnvMemory`
and
`FreeEnvMemory`
. They were
wrappers of standard
`malloc`
and
`free`
.
# dune-uggrid 2.9 (2022-11-25)
*
The
`dune-uggrid`
module does not set the preprocessor flag
`HAVE_UG`
anymore.
...
...
This diff is collapsed.
Click to expand it.
dune/uggrid/low/ugenv.cc
+
0
−
32
View file @
46979a1c
...
...
@@ -568,38 +568,6 @@ ENVITEM * NS_PREFIX SearchEnv (const char *name, const char *where, INT type, IN
return
(
SearchTree
(
name
,
type
,
dirtype
));
}
/****************************************************************************/
/** \brief For backward compatibility: Allocate memory from environment heap
* @param size - number of bytes to be allocated
\deprecated Simply a wrapper for malloc()
@return <ul>
Pointer to allocated memory
*/
/****************************************************************************/
void
*
NS_PREFIX
AllocEnvMemory
(
INT
size
)
{
return
malloc
(
size
);
}
/****************************************************************************/
/** \brief For backward compatibility: Deallocate memory from environment heap
* @param buffer - pointer to buffer previously allocated
\deprecated Simply a wrapper for free()
*/
/****************************************************************************/
void
NS_PREFIX
FreeEnvMemory
(
void
*
buffer
)
{
free
(
buffer
);
}
/****************************************************************************/
/** \brief For backward compatibility: Print size and used of environment heap to string
...
...
This diff is collapsed.
Click to expand it.
dune/uggrid/low/ugenv.h
+
0
−
6
View file @
46979a1c
...
...
@@ -199,12 +199,6 @@ INT MoveEnvItem (ENVITEM *item, ENVDIR *oldDir, ENVDIR *newDir
/* search the environment for an item */
ENVITEM
*
SearchEnv
(
const
char
*
name
,
const
char
*
where
,
INT
type
,
INT
dirtype
);
/* allocate memory from the environment heap */
void
*
AllocEnvMemory
(
INT
size
);
/* deallocate memory from the environment heap */
void
FreeEnvMemory
(
void
*
buffer
);
/* print used and size of environment heap */
void
EnvHeapInfo
(
char
*
s
);
...
...
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