|
From: Daniel J S. <dan...@ie...> - 2016-01-10 21:33:31
|
I noticed that the subdirectory for the NeXT code has been removed. I wouldn't classify NeXT computers as obsolete. There is still a bit of activity surrounding them: http://www.nextcomputers.org/ http://www.nextcomputers.org/forums/ Plus, NeXT is a classic. I can understand not wanting to have bits of "ifdef NEXT" in the main code, though. Looking at what was removed, I see there is this init_terminal() routine that has me wondering why there are so many pre-process conditionals. For example: #ifdef X11 #ifdef QTTERM #ifdef WXWIDGETS are not operating systems, they are basically terminals. Can't these bits of code be placed in the associated terminal files? All it would take is to change the name of of init_terminal() to init_terminal_common() and then each of the terminals would have init_terminal() { if (term_name == (char *) NULL) term_name = "qt"; init_terminal_common(); } or something similar. That's the same as an inheritance OOP concept. Dan |