curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1901] [Mantis 1937] Clean up platform section of header.h #183

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : zarf

Description :

(After discussion in http://inform7.com/mantis/view.php?id=1934)

It's been a while since anyone looked at the machine section of the header.

Possible things we could do:

My current notion is to just do the first two.

I don't want to merge in the Linux or MacOS sections because there are differences (PATHLEN, the POSIX stuff) and I'm not enough of an expert to erase them.

I see no reason to remove old OSes, even Amiga or Acorn – they cost nothing and history is important. And I'd be happy to add an Android section if someone contributes one.

Steps to reproduce :


Additional information :

imported from: [Mantis 1937] Clean up platform section of header.h
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-07T05:01:46+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by zarf :
Importing DavidG's question: "Could you do it in such a way that one can define USE_TEMPORARY_FILES if desired?"

Yes, I'll leave the definitions of Temporary_Directory and INCLUDE_TASK_ID so that USE_TEMPORARY_FILES can be turned on by itself.

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by zarf :
No clue.

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by zarf :
Did the two things I wanted: merged UNIX64 with UNIX, and removed USE_TEMPORARY_FILES from UNIX.

While I was in there, I cleaned up a few more things:

Renamed MACINTOSH block to MAC_CLASSIC, and OSX to MACOS.
Increased the default memory size on MACOS to HUGE_SIZE (to match UNIX and LINUX).

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by zarf :
Checked in. (Five commits.)

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by zarf :
As I said in the other thread, I don't want to change PATHLEN without a solid reason.

The unique_task_id function is only used when USE_TEMPORARY_FILES is on, which is to say it's not used in the default UNIX/MACOS/LINUX configs. But I could add it to LINUX in case someone wants it (which is why it exists in the other blocks).

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by DavidG :
I agree with not merging Linux/Unix with MacOSX. There are too many weird differences between the two subdivisions of Unix.

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by DavidG :
How was the size of PATHLEN determined for UNIX, LINUX, PC*, and OSX?

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by DavidG :
Should the LINUX block be deleted? It doesn't seem to define anything differently than the UNIX block except for the value of PATHLEN, which we don't know how was determined. Also, the LINUX block lacks the unique_task_id() code that most of the other blocks have.