Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dlang
lmdb-d
Commits
f955b286
Commit
f955b286
authored
Nov 10, 2018
by
Carsten Schlote
Browse files
Move global imports to top of source file
parent
6e92ca1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/lmdb-d-demo/source/main.d
View file @
f955b286
...
...
@@ -10,6 +10,10 @@ import std.random;
import
std
.
stdio
;
import
std
.
string
;
/* Import the binding modules into scope */
import
lmdb
;
import
lmdb_oo
;
/** Minimalistic demo code for lmdb
* @param args Commandline args as a dynamic array of strings
*/
...
...
@@ -52,9 +56,6 @@ bool check_rc(int rc, string msg, int line = __LINE__)
return
true
;
}
/* Import the complete module into scope */
import
lmdb
;
/** Simple test for the low-level C library calls
* @param args Commandline args as a dynamic array of strings
*/
...
...
@@ -177,8 +178,6 @@ free_mdb_env:
/* ------------------------------------------------------------------ */
import
lmdb_oo
;
/** Simple test for the D OO-layer classes and operation
*/
void
lmdb_toy2
(
const
string
[]
args
)
...
...
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