Exemple #1
0
void show(FILE *fp, int *offset, int linelength, int no_lines, int *condition, int *relation, char **var, int *condoffset, int numcond)
{
    int i,j, n, print;
    char c, **line;
    sort(offset);
    i = 1;
    n = size(offset);
    line = (char **)calloc(sizeof(char **), n);
    while(i <= no_lines)
    {
        print = 0;//checks if the line has to be printed or not
        print = gettuple(fp, offset, condition, relation, var, condoffset, numcond, line, linelength);
        if(print)
        {
            for(j=0;j<n;j++)
            {
                if(strlen(line[j]) > 0)
                {
                    printf("%s",line[j]);
                }
                printf("\t");
            }
            printf("\n");
        }
        i++;
    }
}
Exemple #2
0
void __init() {
    __name__ = new str("__main__");

    a = gettuple();
    cube = (new list<tuple2<__ss_int, __ss_int> *>(4,(new tuple2<__ss_int, __ss_int>(2,1,2)),(new tuple2<__ss_int, __ss_int>(2,3,4)),a,gettuple()));
}