Searched defs:new (Results 1 - 25 of 368) sorted by path

1234567891011>>

/external/antlr/antlr-3.4/runtime/Perl5/t/lib/My/Test/
H A DClass.pm14 sub new { subroutine
16 my $self = $class->SUPER::new(@args);
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
H A Drecognizers.rb38 RecognizerSharedState = Struct.new(
137 Block = Scope.new( "name", "depth = 0", "variables = {}" )
138 Block.new # => #<struct Block name=nil, depth=0, variables={}>
139 Block.new( "function" ) # => #<struct Block name="function", depth=0, variables={}>
140 Block.new( 'a', 1, :x => 3 ) # => #<struct Block name="a", depth=1, variables={ :x => 3 }>
145 def self.new( *declarations, &body ) singleton method in class:ANTLR3.Scope
245 Struct.new( *members )
262 struct = Struct.new( *return_scope_members )
268 @imported_grammars ||= Set.new
315 Scope.new( *declaration
[all...]
H A Dtemplate.rb16 @template_library ||= ANTLR3::Template::Group.new
40 self.class.template_library or ANTLR3::Template::Group.new
49 @templates.new( source, values )
69 when TokenSource then TokenRewriteStream.new( input, options )
72 TokenRewriteStream.new( lexer_class.new( input, options ), options )
96 lexer = Lexer.new( source, options )
97 parser = Parser.new( lexer, options )
109 input = ANTLR3::FileStream.new( group_file, options )
110 lexer = Lexer.new( inpu
115 def self.new( &block ) singleton method in class:ANTLR3.Template.Group
122 def new( source, values = {} ) method in class:ANTLR3.Template.Group
[all...]
H A Dtoken.rb213 CommonToken = Struct.new( :type, :channel, :text, :input, :start,
259 new( *args )
264 new(
288 EOF_TOKEN = CommonToken.new( EOF ).freeze
289 INVALID_TOKEN = CommonToken.new( INVALID_TOKEN_TYPE ).freeze
290 SKIP_TOKEN = CommonToken.new( INVALID_TOKEN_TYPE ).freeze
329 CommonTokenStream.new( self, options ) { | t, stream | yield( t, stream ) }
331 CommonTokenStream.new( self, options )
363 token_class.new( *args ) do |*targs|
367 token_class.new( *arg
502 def self.new( tk_class = nil, &body ) singleton method in class:ANTLR3.with.ARecognizerOrSuch.provided.TokenScheme
[all...]
/external/bison/lib/
H A Dhash.c559 /* Allocate and return a new hash table, or NULL upon failure. The initial
747 /* Get a new hash entry for a bucket overflow, possibly by recycling a
748 previously freed one. If this is not possible, allocate a new one. */
753 struct hash_entry *new; local
757 new = table->free_entry_list;
758 table->free_entry_list = new->next;
763 new = obstack_alloc (&table->entry_stack, sizeof *new);
765 new = malloc (sizeof *new);
[all...]
H A Dstrdup.c42 void *new = malloc (len); local
44 if (new == NULL)
47 return (char *) memcpy (new, s, len);
H A Dstrndup.c29 char *new = malloc (len + 1); local
31 if (new == NULL)
34 new[len] = '\0';
35 return memcpy (new, s, len);
/external/blktrace/
H A Dblktrace.c102 * Each tracer will have a tracer_devpath_head that it will add new
226 * for scratch as new connections are established.
712 void *new; local
715 new = mmap(addr, length, prot, flags, fd, offset);
716 } while (new == MAP_FAILED && handle_mem_failure(length));
718 return new;
1338 * If there was some leftover before, tack this new
2431 * len == 0 means the other end is sending us a new connection/dpp
H A Drbtree.c368 void rb_replace_node(struct rb_node *victim, struct rb_node *new, argument
376 parent->rb_left = new;
378 parent->rb_right = new;
380 root->rb_node = new;
383 rb_set_parent(victim->rb_left, new);
385 rb_set_parent(victim->rb_right, new);
388 *new = *victim;
/external/blktrace/btt/
H A Dlist.h50 * Insert a new entry between two known consecutive entries.
55 static inline void __list_add(struct list_head *new, argument
59 next->prev = new;
60 new->next = next;
61 new->prev = prev;
62 prev->next = new;
66 * list_add - add a new entry
67 * @new: new entry to be added
70 * Insert a new entr
73 list_add(struct list_head *new, struct list_head *head) argument
86 list_add_tail(struct list_head *new, struct list_head *head) argument
223 list_replace(struct list_head *old, struct list_head *new) argument
232 list_replace_init(struct list_head *old, struct list_head *new) argument
[all...]
H A Doutput.c379 struct seek_mode_info *new = malloc(sizeof(*new)); local
381 new->next = sip->head;
382 sip->head = new;
383 new->mode = *lp;
384 new->nseeks = mp->most_seeks;
386 add_buf(new);
/external/bluetooth/bluedroid/main/
H A Dbte_main.c256 int new; local
264 new = (hci_logging_enabled == TRUE) || (hci_logging_config == TRUE);
266 if ((old == new) || bt_disabled || (bt_hc_if == NULL)) {
270 bt_hc_if->logging(new ? BT_HC_LOGGING_ON : BT_HC_LOGGING_OFF, hci_logfile, hci_save_log);
/external/bsdiff/
H A Dbsdiff.c142 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) argument
147 if(old[i]!=new[i]) break;
153 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos)
158 x=matchlen(old+I[st],oldsize-I[st],new,newsize);
159 y=matchlen(old+I[en],oldsize-I[en],new,newsize);
171 if(memcmp(old+I[x],new,MIN(oldsize-I[x],newsize))<0) {
172 return search(I,old,oldsize,new,newsize,x,en,pos);
174 return search(I,old,oldsize,new,newsize,st,x,pos);
199 u_char *old,*new; local
238 ((new
152 search(off_t *I,u_char *old,off_t oldsize, u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) argument
[all...]
H A Dbspatch.c67 u_char *old, *new; local
142 if((new=malloc(newsize+1))==NULL) err(1,NULL);
165 lenread = BZ2_bzRead(&dbz2err, dpfbz2, new + newpos, ctrl[0]);
173 new[newpos+i]+=old[oldpos+i];
184 lenread = BZ2_bzRead(&ebz2err, epfbz2, new + newpos, ctrl[1]);
201 /* Write the new file */
203 (write(fd,new,newsize)!=newsize) || (close(fd)==-1))
206 free(new);
/external/checkpolicy/
H A Dpolicy_define.c1723 /* prepend the new avlist to the pre-existing one */
2085 role_datum_t *new; local
2091 new = malloc(sizeof(role_datum_t));
2092 if (!new) {
2096 memset(new, 0, sizeof(role_datum_t));
2097 new->s.value = 0; /* temporary role */
2098 if (ebitmap_or(&new->dominates, &r1->dominates, &r2->dominates)) {
2100 free(new);
2103 if (ebitmap_or(&new->types.types, &r1->types.types, &r2->types.types)) {
2105 free(new);
[all...]
/external/chromium_org/base/allocator/
H A Dgeneric_allocators.cc6 // low-level functions malloc() and free(). This way, including a new
27 void* operator new(size_t size) {
35 void* operator new[](size_t size) {
43 void* operator new(size_t size, const std::nothrow_t& nt) {
51 void* operator new[](size_t size, const std::nothrow_t& nt) {
61 // If flag is 1, calls to malloc will behave like calls to new,
/external/chromium_org/base/memory/
H A Dmanual_constructor.h35 static void* operator new[](size_t size) {
61 new(space_.void_data()) Type;
66 new(space_.void_data()) Type(p1);
71 new(space_.void_data()) Type(p1, p2);
76 new(space_.void_data()) Type(p1, p2, p3);
81 new(space_.void_data()) Type(p1, p2, p3, p4);
87 new(space_.void_data()) Type(p1, p2, p3, p4, p5);
94 new(space_.void_data()) Type(p1, p2, p3, p4, p5, p6);
101 new(space_.void_data()) Type(p1, p2, p3, p4, p5, p6, p7);
108 new(space
[all...]
H A Dscoped_ptr_unittest.cc55 void* operator new(size_t size) {
91 return scoped_ptr<ConDecLogger>(new ConDecLogger(constructed));
109 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed));
121 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed));
125 scoper.reset(new ConDecLogger(&constructed));
133 scoper.reset(new ConDecLogger(&constructed));
143 scoper.reset(new ConDecLogger(&constructed));
156 ConDecLogger* logger = new ConDecLogger(&constructed);
177 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed));
194 scoped_ptr<ConDecLogger> scoper(new ConDecLogge
[all...]
/external/chromium_org/chrome/installer/mac/third_party/bsdiff/
H A Dgoobsdiff.c157 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) argument
162 if(old[i]!=new[i]) break;
168 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos)
173 x=matchlen(old+I[st],oldsize-I[st],new,newsize);
174 y=matchlen(old+I[en],oldsize-I[en],new,newsize);
186 if(memcmp(old+I[x],new,MIN(oldsize-I[x],newsize))<0) {
187 return search(I,old,oldsize,new,newsize,x,en,pos);
189 return search(I,old,oldsize,new,newsize,st,x,pos);
335 u_char *old,*new; local
371 ((new
167 search(off_t *I,u_char *old,off_t oldsize, u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) argument
[all...]
H A Dgoobspatch.c91 /* Initializes and returns a new xzfile pointer that will read from f. On
374 u_char *old, *new; local
395 40 8 length of new file
397 68 20 SHA1 of new file
462 if((new=malloc(newsize+1))==NULL) err(1,NULL);
481 cfread(&df, new + newpos, ctrl[0]);
486 new[newpos+i]+=old[oldpos+i];
497 cfread(&ef, new + newpos, ctrl[1]);
509 SHA1(new, newsize, sha1);
513 errx(1, "new has
[all...]
/external/chromium_org/chrome/test/chromedriver/test/
H A Drun_py_tests.py218 """Wait for at least one new window to show up in 20 seconds.
221 old_handles: Handles to all old windows before the new window is added.
224 Handle to a new window. None if timeout.
413 ' div.innerHTML="new<br>";'
424 ' div.innerHTML="new<br>";'
435 ' div.innerHTML="new<br>";'
464 ' div.innerHTML = "new<br>";'
476 ' div.innerHTML="new<br>";'
536 ' div.innerHTML="new<br>";'
550 ' div.innerHTML="new<b
1069 new = [] variable in class:PerfTest._RunDriverPerfTest.Results
[all...]
/external/chromium_org/courgette/
H A Dmemory_monitor.cc116 void* operator new(size_t s) {
/external/chromium_org/ppapi/native_client/src/untrusted/nacl_ppapi_util/
H A Dnacl_ppapi_util.h176 void *operator new(size_t size) { return g_void_result; }
/external/chromium_org/sandbox/win/src/
H A Dpolicy_engine_opcodes.h209 // Better define placement new in the class instead of relying on the
211 void* operator new(size_t, void* location) {
H A Dsandbox_nt_util.cc162 // Create a new heap using default values for everything.
238 *out_name = new(NT_ALLOC) wchar_t[size/sizeof(wchar_t)];
344 new(NT_ALLOC) char[name_bytes]);
400 new(NT_ALLOC) char[buffer_bytes]);
456 char* str_buffer = new(NT_ALLOC) char[size_bytes + sizeof(UNICODE_STRING)];
546 void* operator new(size_t size, sandbox::AllocationType type,
562 // TODO: Returning NULL from operator new has undefined behavior, but
591 void* __cdecl operator new(size_t size, void* buffer,

Completed in 532 milliseconds

1234567891011>>