mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 01:41:37 +03:00
Merge remote-tracking branch 'origin/jb/path-insanity' into philip/tomb
This commit is contained in:
commit
f674e8db14
@ -135,22 +135,16 @@
|
||||
// defined in vere/io/unix.c.
|
||||
c3_t u3_unix_cane(const c3_c* pax_c);
|
||||
# define c3_open(a, ...) ({ \
|
||||
c3_assert(u3_unix_cane(a)); \
|
||||
open(a, __VA_ARGS__);})
|
||||
# define c3_opendir(a) ({ \
|
||||
c3_assert(u3_unix_cane(a)); \
|
||||
opendir(a);})
|
||||
# define c3_mkdir(a, b) ({ \
|
||||
c3_assert(u3_unix_cane(a)); \
|
||||
mkdir(a, b);})
|
||||
# define c3_rmdir(a) ({ \
|
||||
c3_assert(u3_unix_cane(a)); \
|
||||
rmdir(a);})
|
||||
# define c3_unlink(a) ({ \
|
||||
c3_assert(u3_unix_cane(a)); \
|
||||
unlink(a);})
|
||||
# define c3_fopen(a, b) ({ \
|
||||
c3_assert(u3_unix_cane(a)); \
|
||||
fopen(a, b);})
|
||||
|
||||
#endif /* ifndef C3_DEFS_H */
|
||||
|
@ -42,8 +42,6 @@ u3_lmdb_init(const c3_c* pax_c, size_t siz_i)
|
||||
MDB_env* env_u;
|
||||
c3_w ret_w;
|
||||
|
||||
c3_assert(u3_unix_cane(pax_c));
|
||||
|
||||
if ( (ret_w = mdb_env_create(&env_u)) ) {
|
||||
mdb_logerror(stderr, ret_w, "lmdb: init fail");
|
||||
return 0;
|
||||
|
@ -84,8 +84,6 @@ u3_foil_folder(const c3_c* pax_c)
|
||||
uv_dirent_t den_u;
|
||||
c3_i err_i;
|
||||
|
||||
c3_assert(u3_unix_cane(pax_c));
|
||||
|
||||
/* open directory, synchronously
|
||||
*/
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user