mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Remove cpplint namespace-related warnings
This commit is contained in:
parent
67dc694cfb
commit
8e9a8dfede
@ -6,8 +6,23 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "metadata.h"
|
#include "metadata.h"
|
||||||
|
|
||||||
using namespace v8;
|
using v8::Handle;
|
||||||
using namespace sharp;
|
using v8::Local;
|
||||||
|
using v8::Value;
|
||||||
|
using v8::Object;
|
||||||
|
using v8::Number;
|
||||||
|
using v8::String;
|
||||||
|
using v8::Boolean;
|
||||||
|
using v8::Function;
|
||||||
|
using v8::Exception;
|
||||||
|
|
||||||
|
using sharp::ImageType;
|
||||||
|
using sharp::DetermineImageType;
|
||||||
|
using sharp::InitImage;
|
||||||
|
using sharp::HasProfile;
|
||||||
|
using sharp::HasAlpha;
|
||||||
|
using sharp::ExifOrientation;
|
||||||
|
using sharp::counterQueue;
|
||||||
|
|
||||||
struct MetadataBaton {
|
struct MetadataBaton {
|
||||||
// Input
|
// Input
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
#include "resize.h"
|
#include "resize.h"
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
using namespace v8;
|
using v8::Handle;
|
||||||
|
using v8::Object;
|
||||||
|
using node::AtExit;
|
||||||
|
|
||||||
static void at_exit(void* arg) {
|
static void at_exit(void* arg) {
|
||||||
NanScope();
|
NanScope();
|
||||||
@ -18,7 +20,7 @@ static void at_exit(void* arg) {
|
|||||||
extern "C" void init(Handle<Object> target) {
|
extern "C" void init(Handle<Object> target) {
|
||||||
NanScope();
|
NanScope();
|
||||||
vips_init("sharp");
|
vips_init("sharp");
|
||||||
node::AtExit(at_exit);
|
AtExit(at_exit);
|
||||||
|
|
||||||
// Set libvips operation cache limits
|
// Set libvips operation cache limits
|
||||||
vips_cache_set_max_mem(100 * 1048576); // 100 MB
|
vips_cache_set_max_mem(100 * 1048576); // 100 MB
|
||||||
|
@ -6,8 +6,13 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
using namespace v8;
|
using v8::Local;
|
||||||
using namespace sharp;
|
using v8::Object;
|
||||||
|
using v8::Number;
|
||||||
|
using v8::String;
|
||||||
|
|
||||||
|
using sharp::counterQueue;
|
||||||
|
using sharp::counterProcess;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Get and set cache memory and item limits
|
Get and set cache memory and item limits
|
||||||
|
@ -22,8 +22,7 @@ describe('cpplint', function() {
|
|||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
include: false,
|
include: false,
|
||||||
include_order: false,
|
include_order: false
|
||||||
namespaces: false
|
|
||||||
},
|
},
|
||||||
whitespace: {
|
whitespace: {
|
||||||
blank_line: false,
|
blank_line: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user