Skip to content
  • Sergey Durmanov's avatar
    1f3d2c28
    Modules.Mod · 1f3d2c28
    Sergey Durmanov authored
    Currently, the file namespace is set in different ways
    for source files (Package.Module.Mod),
    module code (Module IN Paskage)
    and object files (Package-Module)
    and there is no guarantee that the delimiter character will not change in the future.
    Therefore, we have added four new procedures to the module interface that make it easier to work with package object files:
    *) PROCEDURE PackagePath*(CONST package, name: ARRAY OF CHAR; VAR to: ARRAY OF CHAR);
    *) PROCEDURE Find*(CONST package, name: ARRAY OF CHAR): Module;
    *) PROCEDURE This*(CONST package, name: ARRAY OF CHAR; VAR res: INTEGER; VAR msg: ARRAY OF CHAR): Module;
    *) PROCEDURE Free*(CONST package, name: ARRAY OF CHAR; VAR res: INTEGER; VAR msg: ARRAY OF CHAR);
    Usage:
    var m := Modules.This("RealGeometry", "Vectors", res, msg);
    1f3d2c28
    Modules.Mod
    Sergey Durmanov authored
    Currently, the file namespace is set in different ways
    for source files (Package.Module.Mod),
    module code (Module IN Paskage)
    and object files (Package-Module)
    and there is no guarantee that the delimiter character will not change in the future.
    Therefore, we have added four new procedures to the module interface that make it easier to work with package object files:
    *) PROCEDURE PackagePath*(CONST package, name: ARRAY OF CHAR; VAR to: ARRAY OF CHAR);
    *) PROCEDURE Find*(CONST package, name: ARRAY OF CHAR): Module;
    *) PROCEDURE This*(CONST package, name: ARRAY OF CHAR; VAR res: INTEGER; VAR msg: ARRAY OF CHAR): Module;
    *) PROCEDURE Free*(CONST package, name: ARRAY OF CHAR; VAR res: INTEGER; VAR msg: ARRAY OF CHAR);
    Usage:
    var m := Modules.This("RealGeometry", "Vectors", res, msg);
Loading