search for: first_lin

Displaying 20 results from an estimated 41 matches for "first_lin".

Did you mean: first_line
2014 Apr 13
1
[Bug 915] New: segfault in error case : expr_evaluate_payload not checking payload->payload.desc being null
...0x7fffffffde40) at src/main.c:221 #11 0x0000000000405a47 in main (argc=8, argv=0x7fffffffe658) at src/main.c:332 (gdb) p payload $1 = (struct expr *) 0x64c5a0 (gdb) p *payload $2 = {list = {next = 0x64c5a0, prev = 0x64c5a0}, location = {indesc = 0x7fffffffde58, {{token_offset = 24, line_offset = 0, first_line = 1, last_line = 1, first_column = 24, last_column = 31}, {nle = 0x18}}}, refcnt = 1, flags = 0, dtype = 0x42df60 <integer_type>, byteorder = BYTEORDER_INVALID, len = 4, ops = 0x433f00 <payload_expr_ops>, op = OP_INVALID, {{scope = 0x0, identifier = 0x42fcf0 <proto_unknown_templa...
2016 Oct 20
2
[Bug 1092] New: nft v0.6 segfault in must_print_eq_op at expression.c:520 during 'nft monitor trace' in netdev filter
...trace_print_packet (nlt=nlt at entry=0x47a8a22050) at netlink.c:2380 stmts = {next = 0x47a8a0cc90, prev = 0x47a8a12a90} pctx = {pbase = PROTO_BASE_INVALID, pdep = 0x0, prev = 0x0} ctx = {family = 5, protocol = {{location = {indesc = 0x0, {{token_offset = 0, line_offset = 0, first_line = 0, last_line = 0, first_column = 0, last_column = 0}, {nle = 0x0}}}, desc = 0x0, offset = 0}, {location = {indesc = 0x0, {{token_offset = 0, line_offset = 0, first_line = 0, last_line = 0, first_column = 0, last_column = 0}, {nle = 0x0}}}, desc = 0x47a6c3eda0 <proto_netdev>, offset = 0}, {...
2015 Jan 29
2
[Q] Get formal arguments of my implemented S4 method
...t;- function (x, ..., y = 7) {} > # .local(x, ...) > # } > extract_method_fun <- function(x) { > fun <- x at .Data > > method_body <- body(fun) > if (!is.call(method_body)) return(fun) > if (!identical(method_body[[1]], quote(`{`))) return(fun) > > first_line <- method_body[[2]] > if (!is.call(first_line)) return(fun) > if (!identical(first_line[[1]], quote(`<-`))) return(fun) > if (!identical(first_line[[2]], quote(`.local`))) return(fun) > > first_line[[3]] > } > > > -- > http://had.co.nz/ > > _______...
2015 Jan 29
1
[Q] Get formal arguments of my implemented S4 method
...al(x, ...) > > # } > > extract_method_fun <- function(x) { > > fun <- x at .Data > > > > method_body <- body(fun) > > if (!is.call(method_body)) return(fun) > > if (!identical(method_body[[1]], quote(`{`))) return(fun) > > > > first_line <- method_body[[2]] > > if (!is.call(first_line)) return(fun) > > if (!identical(first_line[[1]], quote(`<-`))) return(fun) > > if (!identical(first_line[[2]], quote(`.local`))) return(fun) > > > > first_line[[3]] > > } > > > > > &gt...
2015 Jan 29
0
[Q] Get formal arguments of my implemented S4 method
...ooks like: # # function (x, ...) { # .local <- function (x, ..., y = 7) {} # .local(x, ...) # } extract_method_fun <- function(x) { fun <- x at .Data method_body <- body(fun) if (!is.call(method_body)) return(fun) if (!identical(method_body[[1]], quote(`{`))) return(fun) first_line <- method_body[[2]] if (!is.call(first_line)) return(fun) if (!identical(first_line[[1]], quote(`<-`))) return(fun) if (!identical(first_line[[2]], quote(`.local`))) return(fun) first_line[[3]] } -- http://had.co.nz/
2010 Jun 18
2
[PATCH] hdt & gcc -Werror
...-cli-pci.c index c86a792..e0b7830 100644 --- a/com32/hdt/hdt-cli-pci.c +++ b/com32/hdt/hdt-cli-pci.c @@ -206,8 +206,8 @@ static void show_pci_devices(int argc __unused, char **argv __unused, pci_device->product, pci_device->sub_vendor, pci_device->sub_product); - more_printf(first_line); - more_printf(second_line); + more_printf("%s", first_line); + more_printf("%s", second_line); more_printf("\n"); } else if (nopciids == true) { if (nomodulesfile == true) { diff --git a/com32/hdt/hdt-cli-pxe.c b/com32/hdt/hdt-cli-pxe.c ind...
2015 Jan 29
3
[Q] Get formal arguments of my implemented S4 method
On Jan 28, 2015, at 6:37 PM, Michael Lawrence <lawrence.michael at gene.com> wrote: > At this point I would just due: > > formals(body(method)[[2L]]) > > At some point we need to figure out what to do with this .local() confusion. Agreed, definitely. The current hack is to avoid re-matching arguments on method dispatch, so a fix would need to be fairly deep in the
2015 Jan 29
0
[Q] Get formal arguments of my implemented S4 method
...- function (x, ..., y = 7) {} > # .local(x, ...) > # } > extract_method_fun <- function(x) { > fun <- x at .Data > > method_body <- body(fun) > if (!is.call(method_body)) return(fun) > if (!identical(method_body[[1]], quote(`{`))) return(fun) > > first_line <- method_body[[2]] > if (!is.call(first_line)) return(fun) > if (!identical(first_line[[1]], quote(`<-`))) return(fun) > if (!identical(first_line[[2]], quote(`.local`))) return(fun) > > first_line[[3]] > } > > > -- > http://had.co.nz/ > > ___...
2012 Aug 14
12
[TESTDAY] xl cpupool-create segfaults if given invalid configuration
# xl cpupool-create ''name="pool2" sched="credit2"'' command line:2: config parsing error near `sched'': syntax error, unexpected IDENT, expecting NEWLINE or '';'' Failed to parse config file: Invalid argument *** glibc detected *** xl: free(): invalid pointer: 0x0000000001a79a10 *** Segmentation fault (core dumped) Looking at the code
2016 Jan 04
5
[PATCH 0/3] checkpatch: handling of memory barriers
As part of memory barrier cleanup, this patchset extends checkpatch to make it easier to stop incorrect memory barrier usage. This applies on top of my series arch: barrier cleanup + barriers for virt and will be included in the next version of the series. Michael S. Tsirkin (3): checkpatch.pl: add missing memory barriers checkpatch: check for __smp outside barrier.h checkpatch: add virt
2016 Jan 04
5
[PATCH 0/3] checkpatch: handling of memory barriers
As part of memory barrier cleanup, this patchset extends checkpatch to make it easier to stop incorrect memory barrier usage. This applies on top of my series arch: barrier cleanup + barriers for virt and will be included in the next version of the series. Michael S. Tsirkin (3): checkpatch.pl: add missing memory barriers checkpatch: check for __smp outside barrier.h checkpatch: add virt
2016 Jan 10
5
[PATCH v2 0/3] checkpatch: handling of memory barriers
As part of memory barrier cleanup, this patchset extends checkpatch to make it easier to stop incorrect memory barrier usage. This applies on top of my series arch: barrier cleanup + barriers for virt and will be included in the next version of the series. Changes from v2: catch optional\s* before () in barriers rewrite using qr{} instead of map Michael S. Tsirkin (3): checkpatch.pl: add
2016 Jan 10
5
[PATCH v2 0/3] checkpatch: handling of memory barriers
As part of memory barrier cleanup, this patchset extends checkpatch to make it easier to stop incorrect memory barrier usage. This applies on top of my series arch: barrier cleanup + barriers for virt and will be included in the next version of the series. Changes from v2: catch optional\s* before () in barriers rewrite using qr{} instead of map Michael S. Tsirkin (3): checkpatch.pl: add
2009 Mar 01
15
Ajax in Rails
...how to use the controller to get the form fields and pass them back to a partial to be rendered? Here is my form: <% form_remote_for @advert do |a| %> <label>Title:</label> <%= a.text_field :title %> <br /> <label>First Line:</label> <%= a.text_field :first_line %> <br /> <label>Second Line:</label> <%= a.text_field :second_line %> <br /> <label>Visible URL:</label> <%= a.text_field :visible_url %> <br /> <label>Destination URL:</label> <%= a.text_field :destination_url %> <%= s...
2012 Sep 11
4
[PATCH] libxl: Tolerate xl config files missing trailing newline
...default: @@ -1459,80 +1465,80 @@ yyreduce: YY_REDUCE_PRINT (yyn); switch (yyn) { - case 4: + case 9: /* Line 1455 of yacc.c */ -#line 51 "libxlu_cfg_y.y" - { xlu__cfg_set_store(ctx,(yyvsp[(1) - (4)].string),(yyvsp[(3) - (4)].setting),(yylsp[(3) - (4)]).first_line); ;} +#line 57 "libxlu_cfg_y.y" + { xlu__cfg_set_store(ctx,(yyvsp[(1) - (3)].string),(yyvsp[(3) - (3)].setting),(yylsp[(3) - (3)]).first_line); ;} break; - case 9: + case 12: /* Line 1455 of yacc.c */ -#line 58 "libxlu_cfg_y.y" +#line 62 "libxlu_cfg_y.y&quo...
2014 Apr 22
3
[PATCH 1/2] builder: add an optional suffix string for INI parsing errors
...xt->program_name ? context->program_name : "", context->program_name ? ": " : "", context->input_file ? context->input_file : "", context->input_file ? ": " : "", - yylloc->first_line, msg); + yylloc->first_line, msg, + context->error_suffix ? " " : "", + context->error_suffix ? context->error_suffix : ""); } int diff --git a/builder/index-parser-c.c b/builder/index-parser-c.c index 5dcc82f..099bdf8 100...
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...x = $2; } sections: section emptylines @@ -122,8 +141,21 @@ emptylines: %% void -yyerror (const char *msg) +yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg) { fprintf (stderr, "syntax error at line %d: %s\n", - yylloc.first_line, msg); + yylloc->first_line, msg); +} + +int +do_parse (struct parse_context *context, FILE *in) +{ + yyscan_t scanner; + int res; + + scanner_init (&scanner, context, in); + res = yyparse (scanner, context); + scanner_destroy (scanner); + + return res; } diff --git a/build...
2016 Jan 10
3
[PATCH v2 1/3] checkpatch.pl: add missing memory barriers
...+ smp_($smp_barriers) > + }x; And this shouldn't have a capture group. my $all_barriers = qr{ $barriers| $smp_barriers }x; > + > + if ($line =~ /\b($all_barriers)\s*\(/) { This doesn't need the capture group either (?:all_barriers) > ? if (!ctx_has_comment($first_line, $linenr)) > { > ? WARN("MEMORY_BARRIER", > ? ?????"memory barrier without > comment\n" . $herecurr);
2016 Jan 10
3
[PATCH v2 1/3] checkpatch.pl: add missing memory barriers
...+ smp_($smp_barriers) > + }x; And this shouldn't have a capture group. my $all_barriers = qr{ $barriers| $smp_barriers }x; > + > + if ($line =~ /\b($all_barriers)\s*\(/) { This doesn't need the capture group either (?:all_barriers) > ? if (!ctx_has_comment($first_line, $linenr)) > { > ? WARN("MEMORY_BARRIER", > ? ?????"memory barrier without > comment\n" . $herecurr);
2016 Jan 10
4
[PATCH v3 0/3] checkpatch: handling of memory barriers
As part of memory barrier cleanup, this patchset extends checkpatch to make it easier to stop incorrect memory barrier usage. This replaces the checkpatch patches in my series arch: barrier cleanup + barriers for virt and will be included in the next version of the series. changes from v2: address comments by Joe Perches: use (?: ... ) to avoid unnecessary capture groups rename smp_barriers