ccgmerge

This module implements the merge operation of 2 different C files. This is needed for incremental compilation.

Imports

ast, ropes, options, nimlexbase, cgendata, rodutils, llstream, modulegraphs, pathutils

Procs

proc genSectionStart(fs: TCFileSection; conf: ConfigRef): Rope {...}{.raises: [],
    tags: [].}
Source Edit
proc genSectionEnd(fs: TCFileSection; conf: ConfigRef): Rope {...}{.raises: [],
    tags: [].}
Source Edit
proc genSectionStart(ps: TCProcSection; conf: ConfigRef): Rope {...}{.raises: [],
    tags: [].}
Source Edit
proc genSectionEnd(ps: TCProcSection; conf: ConfigRef): Rope {...}{.raises: [],
    tags: [].}
Source Edit
proc genMergeInfo(m: BModule): Rope {...}{.raises: [], tags: [].}
Source Edit
proc readMergeInfo(cfilename: AbsoluteFile; m: BModule) {...}{.
    raises: [IOError, Exception], tags: [ReadIOEffect, RootEffect].}
reads the merge meta information into m. Source Edit
proc mergeRequired(m: BModule): bool {...}{.raises: [], tags: [].}
Source Edit
proc mergeFiles(cfilename: AbsoluteFile; m: BModule) {...}{.
    raises: [IOError, Exception], tags: [ReadIOEffect, RootEffect].}
merges the C file with the old version on hard disc. Source Edit

© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/ccgmerge.html