Displaying 4 results from an estimated 4 matches for "checkstr".
2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
...break;
+ case MatchCurrent:
+ MatchLen = 0;
+ return 0;
+ case MatchEndOfFile:
MatchLen = 0;
return Buffer.size();
+ default:
+ assert("Unknown match type");
+ break;
}
// If this is a fixed string pattern, just match it now.
@@ -447,6 +468,9 @@ struct CheckString {
/// IsCheckNext - This is true if this is a CHECK-NEXT: directive (as opposed
/// to a CHECK: directive.
bool IsCheckNext;
+ int PushPos;
+ int PopPos;
+ SMLoc PopLoc;
/// NotStrings - These are all of the strings that are disallowed from
/// occurring between this match st...
2012 Sep 07
0
[LLVMdev] teaching FileCheck to handle variations in order
On 9/7/2012 7:20 AM, Matthew Curtis wrote:
>
> The attached patch implements one possible solution. It introduces a
> position stack and a couple of directives:
>
> * 'CHECK-PUSH:' pushes the current match position onto the stack.
> * 'CHECK-POP:' pops the top value off of the stack and uses it to set
> the current match position.
>
> The above
2012 Sep 07
5
[LLVMdev] teaching FileCheck to handle variations in order
...break;
+ case MatchCurrent:
+ MatchLen = 0;
+ return 0;
+ case MatchEndOfFile:
MatchLen = 0;
return Buffer.size();
+ default:
+ assert("Unknown match type");
+ break;
}
// If this is a fixed string pattern, just match it now.
@@ -447,6 +468,9 @@ struct CheckString {
/// IsCheckNext - This is true if this is a CHECK-NEXT: directive (as opposed
/// to a CHECK: directive.
bool IsCheckNext;
+ int PushPos;
+ int PopPos;
+ SMLoc PopLoc;
/// NotStrings - These are all of the strings that are disallowed from
/// occurring between this match st...
2009 Aug 28
1
Calling C funtion from R help Needed
...is a small sample trial program. The C function will accept a character and a integer and print them.
It is printing some special character instead of input character. Below are the C function, Wrapper code ,R code and R output.
Please help me in this issue
Thank you in advance
C function (Name : checkstr.c)
#include<stdio.h>
int n_char(char n,int m)
{
int result;
result = 3;
//result = strlen(n);
printf("the string is %c\n",n);
printf("the silly number is %d\n",m);
return result;
}
Wrapper Code (wrapcheckstr.c)
#include <stdio.h>
#include<stri...