From accbc3b44fc7f4f6d4168a3bd264a2113e8eef9c Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Fri, 12 Jan 2007 20:28:32 +0000 Subject: [PATCH] Fixed new changes to work with header files and multiple non-extension files in sketches. --- app/Compiler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Compiler.java b/app/Compiler.java index 1582f4e08..be5aef576 100644 --- a/app/Compiler.java +++ b/app/Compiler.java @@ -242,13 +242,14 @@ public class Compiler implements MessageConsumer { int sketchCount = 0; for (int i = 0; i < sketch.codeCount; i++) { if (sketch.code[i].preprocName != null) { - sketchObjectNames[sketchCount++] = buildPath + File.separator + sketch.code[i].preprocName + ".o"; if (sketch.code[i].preprocName.endsWith(".c")) { sourceNames[fileCount] = buildPath + File.separator + sketch.code[i].preprocName; objectNames[fileCount++] = buildPath + File.separator + sketch.code[i].preprocName + ".o"; + sketchObjectNames[sketchCount++] = buildPath + File.separator + sketch.code[i].preprocName + ".o"; } else if (sketch.code[i].preprocName.endsWith(".cpp")) { sourceNamesCPP[fileCountCPP] = buildPath + File.separator + sketch.code[i].preprocName; objectNamesCPP[fileCountCPP++] = buildPath + File.separator + sketch.code[i].preprocName + ".o"; + sketchObjectNames[sketchCount++] = buildPath + File.separator + sketch.code[i].preprocName + ".o"; } } }