Bring in google3-style DISALLOW_* macros.

I've been meaning to do this for a very long time...

Change-Id: Ia8c16eee7c026c3c9505399948485fb778fb0152
This commit is contained in:
Elliott Hughes
2014-05-09 19:12:08 -07:00
parent b2c3c803f0
commit 8eac9af24e
8 changed files with 56 additions and 27 deletions

View File

@@ -19,6 +19,7 @@
#include <errno.h>
#include <stdlib.h>
#include "private/bionic_macros.h"
#include "private/ScopedReaddir.h"
// A smart pointer to the scandir dirent**.
@@ -84,9 +85,7 @@ class ScandirResult {
return copy;
}
// Disallow copy and assignment.
ScandirResult(const ScandirResult&);
void operator=(const ScandirResult&);
DISALLOW_COPY_AND_ASSIGN(ScandirResult);
};
int scandir(const char* dirname, dirent*** name_list,