mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-09 10:52:24 +00:00
Discussion of these changes can be found on the Mercury developers
mailing list archives from June 2018.
COPYING.LIB:
Add a special linking exception to the LGPL.
*:
Update references to COPYING.LIB.
Clean up some minor errors that have accumulated in copyright
messages.
22 lines
795 B
C
22 lines
795 B
C
// vim: ts=4 sw=4 expandtab ft=c
|
|
|
|
// Copyright (C) 1997 The University of Melbourne.
|
|
// Copyright (C) 2016, 2018 The Mercury team.
|
|
// This file is distributed under the terms specified in COPYING.LIB.
|
|
|
|
#include "mercury_imp.h"
|
|
#include "mercury_grade.h"
|
|
|
|
// Define MR_grade_<gr>, where <gr> is the grade that this file is compiled in.
|
|
// Every generated .c file includes a reference to this constant;
|
|
// if any such file was compiled with a different grade than this file,
|
|
// then it will have an unresolved reference which will cause a link error.
|
|
|
|
const char MR_GRADE_VAR = 0;
|
|
|
|
// To ensure that the final executable file doesn't have multiple
|
|
// copies of this object file linked into it, we export a dummy symbol
|
|
// whose name does not depend on the grade.
|
|
|
|
const char MR_runtime_grade = 0;
|