Subversion Repositories wimsdev

Rev

Rev 5537 | Rev 5996 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5537 Rev 5935
Line 160... Line 160...
160
                            i_texstring = arg+1;
160
                            i_texstring = arg+1;
161
                            break;
161
                            break;
162
                        }
162
                        }
163
                }
163
                }
164
        if (bStop) return 0;
164
        if (bStop) return 0;
165
 
-
 
166
    if( use_javascript == 1 ){
165
        /* every mathml-string will have unique id */
167
        struct timeval tv;
166
        struct timeval tv;
168
        struct timezone tz;
167
        struct timezone tz;
169
        struct tm *tm;
168
        struct tm *tm;
170
        gettimeofday(&tv, &tz);
169
        gettimeofday(&tv, &tz);
171
        tm=localtime(&tv.tv_sec);
170
        tm=localtime(&tv.tv_sec);
172
        snprintf(wims_mathml_id,sizeof(wims_mathml_id),"wims_mathml%d",tv.tv_usec);
171
        snprintf(wims_mathml_id,sizeof(wims_mathml_id),"wims_mathml%d",tv.tv_usec);
173
    }
-
 
174
    else
-
 
175
    {
-
 
176
        snprintf(wims_mathml_id,sizeof(wims_mathml_id),"%s","wims_mathml");
-
 
177
    }
-
 
178
 
172
 
179
        if(bTexString){ // WIMS modification: reads a 'latex string' from commandline, if arg="--tex-string"
173
        if(bTexString){ // WIMS modification: reads a 'latex string' from commandline, if arg="--tex-string"
180
            char *input;
174
            char *input;
181
            int dollarcnt = 0;
175
            int dollarcnt = 0;
182
            input = argv[i_texstring];
176
            input = argv[i_texstring];