Skip to content

Commit

Permalink
assembly support in CLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
cayhorstmann committed May 16, 2020
1 parent bc492e3 commit a63904d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion checker/comprog
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ case _"$LANG" in

_C)
ulimit -f 1000
gcc -std=c99 -g -o prog $@
gcc -std=c99 -g -o prog -lm $@
;;

_Cpp)
Expand Down
3 changes: 2 additions & 1 deletion checker/interleaveio.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ def readAvailable(p, fd, delay):
done = True
if not done :
if p.poll() == None :
time.sleep(0.1)
if delay :
time.sleep(0.1)
if time.time() >= start + timeout :
done = True
else :
time.sleep(0.01)
iters -= 1
if (iters <= 0) :
done = True
Expand Down
2 changes: 1 addition & 1 deletion checker/src/com/horstmann/codecheck/CLanguage.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public String getExtension() {
@Override
public boolean isSource(Path p) {
String name = p.toString();
return name.endsWith(".c") || name.endsWith(".h");
return name.endsWith(".c") || name.endsWith(".h") || name.endsWith(".s") || name.endsWith(".S");
}

private static Pattern mainPattern = Pattern.compile("\\s*((int|void)\\s+)?main\\s*\\([^)]*\\)\\s*(\\{\\s*)?");
Expand Down
2 changes: 1 addition & 1 deletion checker/src/com/horstmann/codecheck/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ else if (System.getProperty("com.horstmann.codecheck.codioreport") != null)
// the supplied files that the students are entitled to see
Set<Path> printFiles = Util.filterNot(useFiles, "test*.in", "test*.out", "Input",
"*.png", "*.PNG", "*.gif", "*.GIF", "*.jpg", "*.jpeg", "*.JPG",
"*.jar");
"*.jar", "*.pdf");

printFiles.removeAll(annotations.getHidden());

Expand Down

0 comments on commit a63904d

Please sign in to comment.