search for: lastchar

Displaying 10 results from an estimated 10 matches for "lastchar".

2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...-2, tok_extern = -3, // primary tok_identifier = -4, tok_number = -5, }; static std::string IdentifierStr; // Filled in if tok_identifier static double NumVal; // Filled in if tok_number /// gettok - Return the next token from standard input. static int gettok() { static int LastChar = ' '; // Skip any whitespace. while (isspace(LastChar)) LastChar = getchar(); if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* IdentifierStr = LastChar; while (isalnum((LastChar = getchar()))) IdentifierStr += LastChar; if (IdentifierStr == "...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...tok_identifier = -4, tok_number = -5, > }; > > static std::string IdentifierStr; // Filled in if tok_identifier > static double NumVal; // Filled in if tok_number > > /// gettok - Return the next token from standard input. > static int gettok() { > static int LastChar = ' '; > > // Skip any whitespace. > while (isspace(LastChar)) > LastChar = getchar(); > > if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* > IdentifierStr = LastChar; > while (isalnum((LastChar = getchar()))) > IdentifierStr += LastCh...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...= -5, >> }; >> >> static std::string IdentifierStr;  // Filled in if tok_identifier >> static double NumVal;              // Filled in if tok_number >> >> /// gettok - Return the next token from standard input. >> static int gettok() { >>  static int LastChar = ' '; >> >>  // Skip any whitespace. >>  while (isspace(LastChar)) >>    LastChar = getchar(); >> >>  if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* >>    IdentifierStr = LastChar; >>    while (isalnum((LastChar = getchar()))) &...
2012 Apr 30
1
[LLVMdev] Bindings/Ocaml/ext_exc.ml' FAILED
...bug/test/Bindings/Ocaml/Output/ext_exc.ml.tmp </dev/null -- Exit Code: 134 Command Output (stderr): -- ext_exc.ml.tmp: /home/rleissa/projects/llvm/llvm/lib/Support/StreamableMemoryObject.cpp:23: {anonymous}::RawMemoryObject::RawMemoryObject(const unsigned char*, const unsigned char*): Assertion `LastChar > FirstChar && "Invalid start/end range"' failed. /home/rleissa/projects/llvm/build_debug/test/Bindings/Ocaml/Output/ext_exc.ml.script: line 4: 14804 Aborted '/home/rleissa/projects/llvm/build_debug/test/Bindings/Ocaml/Output/ext_exc.ml.tmp' < ...
2007 Oct 22
1
Help! bad cyrillic font rendering
...eEngCreateFontInstance returning cached gdiFont(0x1ee2f18) for hFont 0xb98 trace:font:X11DRV_SelectFont hdc=0x31c, hfont=0xb98 trace:font:X11DRV_SelectFont gdiFont = 0x1ee2f18 trace:font:GetTextMetricsW text metrics: ? ? Weight = 400???????? FirstChar = 32? AveCharWidth = 8 ? ? Italic = ? 0???????? LastChar = 255????????? MaxCharWidth = 8 ? ? UnderLined = 0?????? DefaultChar = 128?????? Overhang = 0 ? ? StruckOut = 0??????? BreakChar = 32? CharSet = 204 ? ? PitchAndFamily = 30 ? ? -------------------- ? ? InternalLeading = 0 ? ? Ascent = 11 ? ? Descent = 2 ? ? Height = 13 trace:font:GetTextExtentExPoi...
2001 Feb 02
1
Font problems (wrong font is used) (sorry for the delay Gerard!!)
...quot;,0x0029,0397:a39c,0x0c10) > ret=02a7:071b ds=0397 I don't have this, but I grabbed the GetTextMetricsA which appears just before the buggy message: . trace:font:GetTextMetricsA text metrics: . Weight = 400 FirstChar = 000 AveCharWidth = 7 . Italic = 0 LastChar = 255 MaxCharWidth = 15 . UnderLined = 0 DefaultChar = 000 Overhang = 0 . StruckOut = 0 BreakChar = 032 CharSet = 0 . PitchAndFamily = 09 . -------------------- . InternalLeading = 3 . Ascent = 10 . Descent = 3 . Height = 13 >...
2006 Apr 01
0
sftp tab completion patch (First release - NOT FOR INCLUDING YET)
...+ return (g.gl_matchc); +} + +unsigned char +complete(EditLine *el, int ch) +{ + const LineInfo *lf; + size_t len, pos; + char *line; + int argc = 0, ap_loc = 0, ap_cur = 0; + #define MAXARG 99 + char **ap, *argv[MAXARG]; + + ch = ch; /* not used */ + lf = el_line(el); + len = lf->lastchar - lf->buffer + 1; + line = (char *)malloc(len); + strlcpy(line, lf->buffer, len); + pos = len - (lf->lastchar - lf->cursor); + + /* build an array of items */ + for (ap = argv; ap < &argv[MAXARG - 1] && + (*ap = strsep(&line, " ")) != NULL; ) { + if (**...
2007 Dec 12
0
Revisiting sftp tab completion patch
...onst LineInfo *lf; + + lf = el_line(el); + + /* Figure out which argument we are on */ + len = lf->cursor - lf->buffer + 1; + line = (char *)xmalloc(len); + strlcpy(line, lf->buffer, len); + argv = makeargv(line, &carg); + xfree(line); + + /* now get the real argument */ + len = lf->lastchar - lf->buffer + 1; + line = (char *)xmalloc(len); + strlcpy(line, lf->buffer, len); + argv = makeargv(line, &argc); + xfree(line); + + if (carg == 1) { /* Handle the command parsing */ + if (complete_cmd_parse(el, argv[0]) != 0) + ret = CC_REDISPLAY; + } else if (carg > 1) { /* Han...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...%s", yytext ); break; case 0: fprintf( err, ("End Marker\n") ); break; default: fprintf( err, ("*Something Weird* - tok: %d val: %d\n"), toktype, yylval ); break; } } return toktype; } int pat, scnum, eps, headcnt, trailcnt, anyccl, lastchar, i, rulelen; int trlcontxt, xcluflg, currccl, cclsorted, varlength, variable_trail_rule; int *scon_stk; int scon_stk_ptr; static int madeany = 0; int previous_continued_action; static const char yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 28, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...