Displaying 6 results from an estimated 6 matches for "curchar".
2011 Aug 04
1
[LLVMdev] Multiple one-line bugs in LLVM
On Aug 4, 2011, at 9:03 AM, Duncan Sands wrote:
>>
>> lib/MC/MCParser/AsmLexer.cpp:149
>> while (CurChar != '\n'&& CurChar != '\n'&& CurChar != EOF)
>>
>> There are identical sub-expressions to the left and to the right of the '&&'
>> operator: CurChar != '\n'&& CurChar != '\n'. The second expression should
&...
2011 Aug 04
3
[LLVMdev] Multiple one-line bugs in LLVM
...Mask(8, MI->getOperand(2).getImm(),
ShuffleMask);
Src1Name = getRegName(MI->getOperand(0).getReg());
The 'Src1Name' variable is assigned values twice successively. So break
instruction should be at line 212.
----
lib/MC/MCParser/AsmLexer.cpp:149
while (CurChar != '\n' && CurChar != '\n' && CurChar != EOF)
There are identical sub-expressions to the left and to the right of the '&&'
operator: CurChar != '\n' && CurChar != '\n'. The second expression should
probably be CurChar != '...
2011 Aug 04
0
[LLVMdev] Multiple one-line bugs in LLVM
...ame = getRegName(MI->getOperand(0).getReg());
>
> The 'Src1Name' variable is assigned values twice successively. So break
> instruction should be at line 212.
I've added the missing "break".
>
> ----
>
> lib/MC/MCParser/AsmLexer.cpp:149
> while (CurChar != '\n'&& CurChar != '\n'&& CurChar != EOF)
>
> There are identical sub-expressions to the left and to the right of the '&&'
> operator: CurChar != '\n'&& CurChar != '\n'. The second expression should
> probably...
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
...o lex will return EOF again.
+ --CurPtr; // Another call to lex will return EOF again.
return EOF;
case '\n':
case '\r':
@@ -180,24 +180,24 @@ int LLLexer::getNextChar() {
if ((*CurPtr == '\n' || (*CurPtr == '\r')) &&
*CurPtr != CurChar)
++CurPtr; // Eat the two char newline sequence.
-
+
++CurLineNo;
return '\n';
- }
+ }
}
int LLLexer::LexToken() {
TokStart = CurPtr;
-
+
int CurChar = getNextChar();
-
+
switch (CurChar) {
default:
// Handle letters: [a-zA-Z_]
if...
2003 Mar 07
0
[Bug 62] New: I patched the iptables-restore and liblptulog for string included "," "
...g/iptables-restore.c iptables-1.2.7a/iptables-
restore.c
--- iptables-1.2.7a.org/iptables-restore.c Wed Aug 7 18:07:41 2002
+++ iptables-1.2.7a/iptables-restore.c Sat Mar 8 02:08:01 2003
@@ -262,6 +262,7 @@
/* the parser */
char *param_start, *curchar;
int quote_open;
+ int backquote_open;
/* reset the newargv */
newargc = 0;
@@ -308,10 +309,20 @@
* longer a real hacker, but I can live with that */
quot...
2006 Aug 14
0
NEWBIE QUESTION - recode in Ruby
...$s, $i) ^ $enc++);
if ($enc > 255)
$enc = 0;
}
return $result;
}
As I have stated I am a ruby newbie but thus far I have produced this:
def text_decrypt(value)
enc = 85 ^ text_decrypt_symbol(value, 0);
i = 2
while i < value.length
curchar = text_decrypt_symbol(value, i) ^ enc++
result += curchar.chr
if enc > 255
enc = 0
end
i+=2
end
return result;
end
def text_decrypt_symbol(value, value2)
char1 = value[value2, 1]
char2 = value[value2+1, 1]
return (...