/dports/lang/nim/nim-1.6.2/compiler/ |
H A D | pathutils.nim | 16 AbsoluteFile* = distinct string 20 AnyPath* = AbsoluteFile|AbsoluteDir|RelativeFile|RelativeDir 24 proc copyFile*(source, dest: AbsoluteFile) = 27 proc removeFile*(x: AbsoluteFile) {.borrow.} 33 proc extractFilename*(x: AbsoluteFile): string {.borrow.} 35 proc fileExists*(x: AbsoluteFile): bool {.borrow.} 38 proc quoteShell*(x: AbsoluteFile): string {.borrow.} 68 proc `/`*(base: AbsoluteDir; f: RelativeFile): AbsoluteFile = 92 if isAbsolute(file): result = AbsoluteFile(file) 95 proc changeFileExt*(x: AbsoluteFile; ext: string): AbsoluteFile {.borrow.} [all …]
|
H A D | options.nim | 243 cname*, obj*: AbsoluteFile 349 jsonBuildFile*: AbsoluteFile 720 proc canonicalizePath*(conf: ConfigRef; path: AbsoluteFile): AbsoluteFile = 727 conf.projectFull = AbsoluteFile projectName 811 proc toRodFile*(conf: ConfigRef; f: AbsoluteFile; ext = RodExt): AbsoluteFile = 822 result = AbsoluteFile"" 833 result = AbsoluteFile"" 840 if ov.len > 0: result = AbsoluteFile(ov) 879 result = if f.fileExists: AbsoluteFile(f) else: AbsoluteFile"" 901 result = AbsoluteFile path [all …]
|
H A D | modules.nim | 22 template getModuleIdent(graph: ModuleGraph, filename: AbsoluteFile): PIdent = 29 let filename = AbsoluteFile toFullPath(graph.config, fileIdx) 59 proc partialInitModule(result: PSym; graph: ModuleGraph; fileIdx: FileIndex; filename: AbsoluteFile… 76 let filename = AbsoluteFile toFullPath(graph.config, fileIdx) 102 let filename = AbsoluteFile toFullPath(graph.config, fileIdx) 180 proc makeModule*(graph: ModuleGraph; filename: AbsoluteFile): PSym = 185 result = makeModule(graph, AbsoluteFile filename) 187 proc makeStdinModule*(graph: ModuleGraph): PSym = graph.makeModule(AbsoluteFile"stdin")
|
H A D | cmdlinehelper.nim | 16 proc prependCurDir*(f: AbsoluteFile): AbsoluteFile = 19 else: result = AbsoluteFile("./" & f.string) 49 conf.projectPath = AbsoluteDir canonicalizePath(conf, AbsoluteFile getCurrentDir())
|
H A D | packagehandling.nim | 42 proc fakePackageName*(conf: ConfigRef; path: AbsoluteFile): string = 53 proc withPackageName*(conf: ConfigRef; path: AbsoluteFile): AbsoluteFile =
|
H A D | ndi.nim | 20 filename: AbsoluteFile 35 proc open*(f: var NdiFile; filename: AbsoluteFile; conf: ConfigRef) =
|
H A D | extccomp.nim | 368 proc completeCfilePath*(conf: ConfigRef; cfile: AbsoluteFile, 369 createSubDir: bool = true): AbsoluteFile = 372 proc toObjFile*(conf: ConfigRef; filename: AbsoluteFile): AbsoluteFile = 374 result = AbsoluteFile(filename.string & "." & CC[conf.cCompiler].objExt) 394 proc addExternalFileToLink*(conf: ConfigRef; filename: AbsoluteFile) = 485 proc useCpp(conf: ConfigRef; cfile: AbsoluteFile): bool = 541 else: getCompilerExe(conf, compiler, AbsoluteFile"") 667 proc getLinkCmd(conf: ConfigRef; output: AbsoluteFile, 770 proc getExtraCmds(conf: ConfigRef; output: AbsoluteFile): seq[string] = 918 else: AbsoluteFile(conf.projectName) [all …]
|
H A D | msgs.nim | 55 proc newFileInfo(fullPath: AbsoluteFile, projPath: RelativeFile): TFileInfo = 83 proc fileInfoKnown*(conf: ConfigRef; filename: AbsoluteFile): bool = 85 canon: AbsoluteFile 95 canon: AbsoluteFile 122 proc fileInfoIdx*(conf: ConfigRef; filename: AbsoluteFile): FileIndex = 210 proc setDirtyFile*(conf: ConfigRef; fileIdx: FileIndex; filename: AbsoluteFile) = 223 proc toFullPathConsiderDirty*(conf: ConfigRef; fileIdx: FileIndex): AbsoluteFile = 225 result = AbsoluteFile(if fileIdx == commandLineIdx: commandLineDesc else: "???") 249 result = canonicalImportAux(conf, absPath.AbsoluteFile) 644 let path = AbsoluteFile toFullPath(conf, fid) [all …]
|
H A D | syntaxes.nim | 37 proc parsePipe(filename: AbsoluteFile, inputStream: PLLStream; cache: IdentCache; 76 proc applyFilter(p: var Parser, n: PNode, filename: AbsoluteFile, 95 proc evalPipe(p: var Parser, n: PNode, filename: AbsoluteFile,
|
H A D | filters.nim | 50 proc filterStrip*(conf: ConfigRef; stdin: PLLStream, filename: AbsoluteFile, call: PNode): PLLStrea… 64 proc filterReplace*(conf: ConfigRef; stdin: PLLStream, filename: AbsoluteFile, call: PNode): PLLStr…
|
H A D | docgen.nim | 246 ext: string, guessTarget: bool): AbsoluteFile = 302 var outp: AbsoluteFile 309 outp = AbsoluteFile(filename) 340 result.thisDir = result.destFile.AbsoluteFile.splitFile.dir 593 let title = canonicalImport(d.conf, AbsoluteFile d.filename) 1375 title = canonicalImport(d.conf, AbsoluteFile d.filename) 1400 "nimdoccss", relLink(d.conf.outDir, d.destFile.AbsoluteFile, 1420 proc updateOutfile(d: PDoc, outfile: AbsoluteFile) = 1433 template outfile: untyped = d.destFile.AbsoluteFile 1467 updateOutfile(d, d.destFile.AbsoluteFile) [all …]
|
H A D | ccgmerge_unused.nim | 221 template withCFile(cfilename: AbsoluteFile, body: untyped) = 233 proc readMergeInfo*(cfilename: AbsoluteFile, m: BModule) = 246 proc readMergeSections(cfilename: AbsoluteFile, m: var TMergeSections) = 280 proc mergeFiles*(cfilename: AbsoluteFile, m: BModule) =
|
H A D | ropes.nim | 61 from pathutils import AbsoluteFile 192 proc writeRope*(head: Rope, filename: AbsoluteFile): bool = 324 proc equalsFile*(r: Rope, filename: AbsoluteFile): bool = 333 proc writeRopeIfNotEqual*(r: Rope, filename: AbsoluteFile): bool =
|
H A D | nimconf.nim | 211 proc readConfigFile*(filename: AbsoluteFile; cache: IdentCache; 229 proc getUserConfigPath*(filename: RelativeFile): AbsoluteFile = 232 proc getSystemConfigPath*(conf: ConfigRef; filename: RelativeFile): AbsoluteFile = 248 template runNimScriptIfExists(path: AbsoluteFile, isMain = false) =
|
H A D | gorgeimpl.nim | 29 let filename = toGeneratedFile(conf, AbsoluteFile("gorge_" & $h), "txt").string
|
H A D | depends.nim | 48 proc generateDot*(graph: ModuleGraph; project: AbsoluteFile) =
|
H A D | docgen2.nim | 66 var d = newDocumentor(AbsoluteFile toFullPath(graph.config, FileIndex module.position),
|
H A D | pragmas.nim | 485 proc relativeFile(c: PContext; n: PNode; ext=""): AbsoluteFile = 489 result = AbsoluteFile parentDir(toFullPath(c.config, n.info)) / s 491 if isAbsolute(s): result = AbsoluteFile s 494 if result.isEmpty: result = AbsoluteFile s 497 proc docompile(c: PContext; it: PNode; src, dest: AbsoluteFile; customArgs: string) = 519 let obj = completeCfilePath(c.config, AbsoluteFile(dest % extractFilename(f))) 520 docompile(c, it, AbsoluteFile f, obj, "") 533 var found = AbsoluteFile(parentDir(toFullPath(c.config, n.info)) / s) 535 if isAbsolute(s): found = AbsoluteFile s 538 if found.isEmpty: found = AbsoluteFile s [all …]
|
/dports/lang/nim/nim-1.6.2/tests/compiler/ |
H A D | tpathutils.nim | 5 doAssert AbsoluteDir"/Users/me///" / RelativeFile"z.nim" == AbsoluteFile"/Users/me/z.nim" 6 doAssert AbsoluteDir"/Users/me" / RelativeFile"../z.nim" == AbsoluteFile"/Users/z.nim" 7 doAssert AbsoluteDir"/Users/me/" / RelativeFile"../z.nim" == AbsoluteFile"/Users/z.nim"
|
/dports/lang/nim/nim-1.6.2/nimsuggest/ |
H A D | nimsuggest.nim | 163 proc executeNoHooks(cmd: IdeCmd, file, dirtyfile: AbsoluteFile, line, col: int; 176 else: msgs.setDirtyFile(conf, dirtyIdx, AbsoluteFile"") 202 proc execute(cmd: IdeCmd, file, dirtyfile: AbsoluteFile, line, col: int; 215 file = AbsoluteFile args[0].getStr 218 var dirtyfile = AbsoluteFile"" 220 dirtyfile = AbsoluteFile args[3].getStr("") 457 results.send(Suggest(section: ideKnown, quality: ord(fileInfoKnown(conf, AbsoluteFile orig)))) 463 execute(conf.ideCmd, AbsoluteFile orig, AbsoluteFile dirtyfile, line, col, graph) 655 export AbsoluteFile 735 …proc runCmd*(nimsuggest: NimSuggest, cmd: IdeCmd, file, dirtyfile: AbsoluteFile, line, col: int): …
|
/dports/lang/nim/nim-1.6.2/compiler/ic/ |
H A D | replayer.nim | 37 let cname = AbsoluteFile n[1].strVal 39 obj: AbsoluteFile n[2].strVal, 44 extccomp.addExternalFileToLink(g.config, AbsoluteFile n[1].strVal)
|
H A D | cbackend.nim | 59 let filename = AbsoluteFile toFullPath(config, m.position.FileIndex) 75 proc storeAliveSymsImpl(asymFile: AbsoluteFile; s: seq[int32]) = 83 …let asymFile = toRodFile(config, AbsoluteFile toFullPath(config, position.FileIndex), ".alivesyms")
|
/dports/lang/nim/nim-1.6.2/tools/ |
H A D | grammar_nanny.nim | 11 var f = AbsoluteFile"doc/grammar.txt"
|
/dports/lang/yap/yap-6.2.2/packages/PLStream/ |
H A D | pl-os.h | 237 extern char *AbsoluteFile(const char *spec, char *path);
|
/dports/lang/nim/nim-1.6.2/tools/atlas/ |
H A D | parse_requires.nim | 53 let fileIdx = fileInfoIdx(conf, AbsoluteFile nimbleFile)
|