Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (29 sloc) 689 Bytes
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <QtCore/QCoreApplication>
#include "lint.h"
int main(int argc, char **argv)
QCoreApplication app(argc, argv);
char datapath[PATH_MAX], fullpath[PATH_MAX], filename[PATH_MAX];
FILE *fp = fopen("jslist.txt", "r");
if (!fp)
fprintf(stderr, "%s: Failed to open list file\n", argv[0]);
return -1;
strcpy(datapath, getenv("srcdir"));
strcat(datapath, "/../data/");
while (!feof(fp))
fscanf(fp, "%256s\n", filename);
printf("Testing script: %s\n", filename);
strcpy(fullpath, datapath);
strcat(fullpath, filename);
return 0;
Jump to Line
Something went wrong with that request. Please try again.