Permalink
Browse files

Make include paths contain the .h

  • Loading branch information...
1 parent 040457c commit 70796ffae8ac3f88d32cdf9e06b855f2c254babe Amos Wenger committed May 5, 2012
View
2 source/rock/backend/cnaughty/ModuleWriter.ooc
@@ -430,7 +430,7 @@ ModuleWriter: abstract class extends Skeleton {
chevron := (inc mode == IncludeModes PATHY)
current nl(). app("#include "). app(chevron ? '<' : '"').
- app(inc path). app(".h").
+ app(inc path).
app(chevron ? '>' : '"')
for(define in inc getDefines()) {
View
2 source/rock/frontend/AstBuilder.ooc
@@ -147,7 +147,7 @@ AstBuilder: class {
mode = IncludeModes PATHY
}
- inc := Include new(path, mode)
+ inc := Include new(path + ".h", mode)
module addInclude(inc)
inc setVersion(getVersion())
}
View
2 source/rock/middle/Include.ooc
@@ -25,7 +25,7 @@ Include: class {
header: Header { get set }
init: func (=path, =mode) {
- header = Header find(path + ".h")
+ header = Header find(path)
if (header) {
"In %s" printfln(path)
header symbols each(|k, v| k println())

0 comments on commit 70796ff

Please sign in to comment.