Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e5a9c8fa
Commit
e5a9c8fa
authored
Mar 25, 1997
by
Roger E. Masse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
As per GvR recomendation, added support for a 'sync' attribute for the
GDBM module.
parent
1eb9a81e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Modules/gdbmmodule.c
Modules/gdbmmodule.c
+18
-0
No files found.
Modules/gdbmmodule.c
View file @
e5a9c8fa
...
...
@@ -32,7 +32,12 @@ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
/*****************************************************************
Modification History:
Added support for 'gdbm_sync' method. Roger E. Masse 3/25/97
*****************************************************************/
/* DBM module using dictionary interface */
...
...
@@ -310,6 +315,18 @@ PyObject *args;
return
Py_None
;
}
static
PyObject
*
dbm_sync
(
dp
,
args
)
register
dbmobject
*
dp
;
PyObject
*
args
;
{
if
(
!
PyArg_NoArgs
(
args
))
return
NULL
;
gdbm_sync
(
dp
->
di_dbm
);
Py_INCREF
(
Py_None
);
return
Py_None
;
}
static
PyMethodDef
dbm_methods
[]
=
{
{
"close"
,
(
PyCFunction
)
dbm_close
},
{
"keys"
,
(
PyCFunction
)
dbm_keys
},
...
...
@@ -317,6 +334,7 @@ static PyMethodDef dbm_methods[] = {
{
"firstkey"
,
(
PyCFunction
)
dbm_firstkey
},
{
"nextkey"
,
(
PyCFunction
)
dbm_nextkey
},
{
"reorganize"
,
(
PyCFunction
)
dbm_reorganize
},
{
"sync"
,
(
PyCFunction
)
dbm_sync
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
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