1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
void GenererLesRegles1fren(MotCompact const *pcLeft, MotCompact const *pcRight)
{
size_t iLigneLeft = 0;
size_t iLigneRight = 0;
int const * pcCoordLeft = ligne_GetPremierC(pcLeft, &iLigneLeft);
int const * pcCoordRight = ligne_GetPremierC(pcRight, &iLigneRight);
while(pcCoordLeft!=NULL && pcCoordRight!=NULL)
{
{
int ligneRight = *pcCoordRight;
while(pcCoordLeft!=NULL && (*pcCoordLeft)>ligneRight)
pcCoordLeft = ligne_GetNextC(pcLeft, &iLigneLeft);
}
if(pcCoordLeft==NULL)
break;
{
int ligneLeft = *pcCoordLeft;
while(pcCoordRight!=NULL && ligneLeft<(*pcCoordRight))
pcCoordRight = ligne_GetNextC(pcRight, &iLigneRight);
}
if(pcCoordRight==NULL)
break;
if(*pcCoordLeft == *pcCoordRight)
{
printf("sss");
pcCoordLeft = ligne_GetNextC(pcLeft, &iLigneLeft);
pcCoordRight = ligne_GetNextC(pcRight, &iLigneRight);
}
}
} |