search for: get_line

Displaying 20 results from an estimated 20 matches for "get_line".

Did you mean: get_link
2000 Nov 08
0
vq diffs
...@@ -216,5 +217,5 @@ if(find_seek_to(in,"static encode_aux_nearestmatch _vq_aux")){ /* how big? */ - c->nearest_tree=a=_ogg_calloc(1,sizeof(encode_aux_nearestmatch)); + c->nearest_tree=a=(encode_aux_nearestmatch*)_ogg_calloc(1,sizeof(encode_aux_nearestmatch)); line=get_line(in); line=get_line(in); @@ -230,5 +231,5 @@ find_seek_to(in,"static long _vq_ptr0"); reset_next_value(); - a->ptr0=_ogg_malloc(sizeof(long)*a->aux); + a->ptr0=(long*)_ogg_malloc(sizeof(long)*a->aux); for(i=0;i<a->aux;i++) if(get_next_ival...
2000 Sep 13
0
vq: postbeta2 patch
...at least! diff -bBu2 branch_postbeta2/vq/bookutil.c vorbis-postb2/vq/bookutil.c --- branch_postbeta2/vq/bookutil.c Thu Aug 31 05:00:02 2000 +++ vorbis-postb2/vq/bookutil.c Wed Sep 13 17:59:15 2000 @@ -309,5 +309,5 @@ c->pigeon_tree=p=calloc(1,sizeof(encode_aux_pigeonhole)); line=get_line(in); - if(sscanf(line,"%lf, %lf, %d, %d",&(p->min),&(p->del), + if(sscanf(line,"%f, %f, %d, %d",&(p->min),&(p->del), &(p->mapentries),&(p->quantvals))!=4){ fprintf(stderr,"5: syntax in %s in line:\t %s&quo...
2010 Mar 05
1
make depend fails when building Wine 1.1.40
...ype-limits -Wwrite-strings -Wpointer-arith -Werror -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -o makedep.o makedep.c cc1: warnings being treated as errors makedep.c: In function 'get_line': makedep.c:207: error: ignoring return value of 'fgets', declared with attribute warn_unused_result makedep.c:219: error: ignoring return value of 'fgets', declared with attribute warn_unused_result make[1]: *** [makedep.o] Error 1 make[1]: Leaving directory `/home/user/rpmbuil...
2006 Feb 14
24
[Bug 1157] ssh-keygen doesn't handle DOS line breaks
http://bugzilla.mindrot.org/show_bug.cgi?id=1157 Summary: ssh-keygen doesn't handle DOS line breaks Product: Portable OpenSSH Version: 3.8.1p1 Platform: All URL: http://openssh.org/txt/draft-ietf-secsh-publickeyfile- 02.txt OS/Version: All Status: NEW Severity: normal
2010 Oct 08
7
[PATCH] Replace pyxml/xmlproc-based XML validator with lxml based one.
...really want to bail out here? + # -- sp + for err in dtd.error_log: + err_str = ''ERROR: %s\n'' % (str(err),) + sys.stderr.write(err_str) + sys.stderr.flush() sys.exit(-1) - # Here for compatibility with ValidatingApp - def get_line(self): - return -1 - - def get_column(self): - return -1 - - def dom2sax(self, dom, app): - """ - Take a dom tree and tarverse it, - issuing SAX calls to app. - """ - for child in dom.childNodes: - if ch...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...list_empty(&vf->bus->devices)) { + device_unregister(vf->bus->bridge); + pci_remove_bus(vf->bus); + } + + notify_phyfn(pf, PCI_IOV_VF_DIS, vfid); + kfree(pf->iov->args[vfid]); + pf->iov->args[vfid] = NULL; + return 0; + } + + return -ENODEV; +} + +static int get_line(const char *str, int len, char *buf) +{ + int i, j; + + for (i = 0, j = 0; i < len; i++) { + if (j == 0 && isspace(str[i])) + continue; + + if (str[i] == '\n') + break; + + if (j >= VF_PARAM_LEN - 1) + return -E2BIG; + + buf[j++] = str[i]; + } + + buf[j] = '\0...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...list_empty(&vf->bus->devices)) { + device_unregister(vf->bus->bridge); + pci_remove_bus(vf->bus); + } + + notify_phyfn(pf, PCI_IOV_VF_DIS, vfid); + kfree(pf->iov->args[vfid]); + pf->iov->args[vfid] = NULL; + return 0; + } + + return -ENODEV; +} + +static int get_line(const char *str, int len, char *buf) +{ + int i, j; + + for (i = 0, j = 0; i < len; i++) { + if (j == 0 && isspace(str[i])) + continue; + + if (str[i] == '\n') + break; + + if (j >= VF_PARAM_LEN - 1) + return -E2BIG; + + buf[j++] = str[i]; + } + + buf[j] = '\0...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...list_empty(&vf->bus->devices)) { + device_unregister(vf->bus->bridge); + pci_remove_bus(vf->bus); + } + + notify_phyfn(pf, PCI_IOV_VF_DIS, vfid); + kfree(pf->iov->args[vfid]); + pf->iov->args[vfid] = NULL; + return 0; + } + + return -ENODEV; +} + +static int get_line(const char *str, int len, char *buf) +{ + int i, j; + + for (i = 0, j = 0; i < len; i++) { + if (j == 0 && isspace(str[i])) + continue; + + if (str[i] == '\n') + break; + + if (j >= VF_PARAM_LEN - 1) + return -E2BIG; + + buf[j++] = str[i]; + } + + buf[j] = '\0...
2014 Oct 05
0
[PATCH v5 1/7] tests: Introduce test harness for running tests.
...tomize-options.pod" generate_customize_options_pod; + List.iter ( + fun (dir, tests) -> + output_to (dir // "tests.mk") (generate_tests_mk dir tests) + ) tests; + (* Generate the list of files generated -- last. *) printf "generated %d lines of code\n" (get_lines_generated ()); let files = List.sort compare (get_files_generated ()) in diff --git a/generator/test_harness.ml b/generator/test_harness.ml new file mode 100644 index 0000000..6aa5e6a --- /dev/null +++ b/generator/test_harness.ml @@ -0,0 +1,709 @@ +(* libguestfs + * Copyright (C) 2014 Red Hat I...
2001 May 01
1
encoder observation
Hello! First of all a question: When you make the encoder tables (ie: mode_e.h) do you use the mapping0_forward function? Because you made the encoder tables, and after this you did a minor correction in the final beta4 ... (this correction was: additional[0]=fabs(additional[0]*scale); in the mapping0_forward function) (I see this was a bug, and the modification was correct, but this correction
2020 Aug 28
0
Wine release 5.16
...iptError::get_Source. msscript.ocx: Implement IScriptError::get_Description. msscript.ocx: Implement IScriptError::get_HelpFile. msscript.ocx: Implement IScriptError::get_HelpContext. msscript.ocx: Implement IScriptError::get_Text. msscript.ocx: Implement IScriptError::get_Line. msscript.ocx: Implement IScriptError::get_Column. msscript.ocx: Uncache the module objects when script is restarted, but not the Procedure count. Gijs Vermeulen (8): fsutil: Initialize ret in hardlink() (Coverity). shell32: Free original_dos_name with correct function in T...
2015 Aug 06
0
[PATCH v4 01/17] tests: Introduce test harness for running tests.
...tomize-options.pod" generate_customize_options_pod; + List.iter ( + fun (dir, tests) -> + output_to (dir // "tests.mk") (generate_tests_mk dir tests) + ) tests; + (* Generate the list of files generated -- last. *) printf "generated %d lines of code\n" (get_lines_generated ()); let files = List.sort compare (get_files_generated ()) in diff --git a/generator/test_harness.ml b/generator/test_harness.ml new file mode 100644 index 0000000..af8182c --- /dev/null +++ b/generator/test_harness.ml @@ -0,0 +1,738 @@ +(* libguestfs + * Copyright (C) 2014 Red Hat I...
2011 Nov 18
0
Wine release 1.3.33
...proof (shlwapi.h). Nikolay Sivov (18): msxml3: Fix IDispatch support for IXMLDocument. msxml3: Support IDispatch in IXMLElement. msxml3: Add IDispatchEx support for IXMLDOMNamedNodeMap. msxml3: Fix collection index based support for IXMLDOMSelection. msxml3: Implement get_line() and get_linepos(). msxml3: Implement get_srcText(). msxml3: Some tests to show that leading spaces are not allowed for xml stream. msxml3: Test that IXMLHTTPRequest doesn't support IDispatchEx. msxml3: Move XSLPattern test data to a table. msxml3: Implement get_n...
2014 Oct 05
12
[PATCH v5 0/7] tests: Introduce test harness for running tests.
Since v4: - More tests have been converted. - Testing local guests fixed. - Drop no-exec-stack test.
2014 Oct 23
10
[PATCH v6 00/10] tests: Introduce test harness for running tests.
For v6: This is mainly just a rebase, but I have also added tests in the ocaml/ language bindings directory, and for all the OCaml-written virt tools. Rich.
2014 Oct 24
10
[PATCH v7 00/10] tests: Introduce test harness for running tests.
v7: The only changes since v6 are those suggested by Pino in the review of v5.
2015 Jul 28
10
[PATCH 00/10] tests: Introduce test harness for running tests.
I should probably start by saying this patch series isn't ready for review yet. This patch series adds a test harness to libguestfs. It allows us to run the tests outside the ordinary 'make check' path in the build tree. In particular, you can use this to run tests when libguestfs has been installed. 'make check' and the other 'make check-*' rules still work. The
2015 Aug 06
20
[PATCH v4 00/17] tests: Introduce test harness for running tests.
Since v3: - A large number of fixes, especially for running the tests on installed libguestfs. - Fixed EXTRA_DIST rules throughout. - Extra patch 17/17 which is a tidy-up of the generated XML listing guests. Rich.
2015 Jul 31
14
[PATCH v2 00/14] tests: Introduce test harness for running tests.
This is a more complete patch to add the test harness. The only parts missing now are the language bindings (except OCaml). The language bindings need a bit more thought. At the moment most language binding tests are done through some sort of shell script like perl/run-perl-tests which either runs each test itself or uses some language-specific machinary to run each test. The problem with that
2015 Aug 04
16
[PATCH v3 01/16] tests: Introduce test harness for running tests.
Since v2: - Add perl tests. - Reworked and fixed the tests for virt-builder. - Some further minor bug fixes.