Project

General

Profile

Design #1801

BuildInfo

Added by John Abbott about 1 month ago. Updated 14 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
Tidying
Target version:
Start date:
25 Mar 2024
Due date:
% Done:

10%

Estimated time:
Spent time:

Description

Three things:
  • why do some preprocessor flags have prefix COCOA_ while others have CoCoA_ ?
  • for whom are the messages printed by BuildInfo intended?
  • would it be more sensible/coherent for BuildInfo just to print out the name of the macro followed by its value?

Related issues

Related to CoCoALib - Bug #1661: Microsoft: cannot compile with signal handlingClosed2022-02-09

History

#1 Updated by John Abbott about 1 month ago

We need to consider the behaviour both in CoCoALib and in CoCoA-5.

Anna suggests that it is more helpful to maintainers/developers if the name of the preprocessor macro is given explicitly in the message; she suggests that the messages are not really intended for the "casual user" (other than to report a bug).

#2 Updated by Anna Maria Bigatti about 1 month ago

  • % Done changed from 0 to 10

The function for CoCoA-5 is VersionInfo() defined in BuiltingFunctions.C

#3 Updated by Anna Maria Bigatti about 1 month ago

  • Related to Bug #1661: Microsoft: cannot compile with signal handling added

#4 Updated by John Abbott 14 days ago

  • Status changed from New to In Progress
Here is a list of CPP symbols beginning with COCOA_
  • COCOA_ULONG2LONG
  • COCOA_ULONGLONG2LONGLONG
  • COCOA5_VERSION, COCOA5_VER_MAJ, COCOA5_VER_MIN
  • COCOA_VERSION
  • COCOA_CXX, COCOA_CXXFLAGS, COCOA_PLATFORM

I notice that all of these come essentially via the configuration script (and have a dual role also as shell variables)

Also available in: Atom PDF