Skip to content
This repository
Browse code

Prefix all the paths to avoid include collisions with C libs (pffah).

  • Loading branch information...
commit 8adeaf5e2afc93ca839624cd630b01e02c6caab9 1 parent 678df66
Amos Wenger authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 source/rock/middle/Module.ooc
7 source/rock/middle/Module.ooc
@@ -75,12 +75,13 @@ Module: class extends Node {
75 75 getUnderName: func -> String { underName }
76 76 getPathElement: func -> String { pathElement }
77 77 getSourceFolderName: func -> String {
  78 + path := File new(pathElement) getAbsoluteFile() name
  79 +
78 80 uze := params sourcePathTable get(pathElement)
79 81 if (uze) {
80   - uze identifier
81   - } else {
82   - File new(pathElement) getAbsoluteFile() name
  82 + path = "%s/%s" format(uze identifier, path)
83 83 }
  84 + path
84 85 }
85 86
86 87 getPath: func (suffix := "") -> String {

0 comments on commit 8adeaf5

Please sign in to comment.
Something went wrong with that request. Please try again.