mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-15 11:18:43 +00:00
Synched with ostap
This commit is contained in:
parent
49250b0216
commit
cf2b696803
5 changed files with 92 additions and 11 deletions
|
|
@ -288,6 +288,13 @@ static void stringcat (void *p) {
|
|||
}
|
||||
}
|
||||
|
||||
extern int LmatchSubString (char *subj, char *patt, int pos) {
|
||||
data *p = TO_DATA(patt);
|
||||
int n = LEN (p->tag);
|
||||
|
||||
return BOX(strncmp (subj + UNBOX(pos), patt, n) == 0);
|
||||
}
|
||||
|
||||
extern int Lcompare (void *p, void *q) {
|
||||
# define COMPARE_AND_RETURN(x,y) do if (x != y) return BOX(x - y); while (0)
|
||||
if (UNBOXED(p)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue