mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-10 18:20:23 +00:00
Rename NOFORN to MAIKO_ENABLE_FOREIGN_FUNCTION_INTERFACE. (#217)
This lets us get rid of double-negatives, which are confusing, and starts a naming scheme that is easier to see when something is a Maiko flag versus something else.
This commit is contained in:
10
src/main.c
10
src/main.c
@@ -321,13 +321,13 @@ int main(int argc, char *argv[])
|
||||
extern int TIMER_INTERVAL;
|
||||
char keytyped[255];
|
||||
extern fd_set LispReadFds;
|
||||
#ifndef NOFORN
|
||||
#ifdef MAIKO_ENABLE_FOREIGN_FUNCTION_INTERFACE
|
||||
if (dld_find_executable(argv[0]) == 0) {
|
||||
perror("Name of executable not found.");
|
||||
} else if (dld_init(dld_find_executable(argv[0])) != 0) {
|
||||
dld_perror("Can't init DLD.");
|
||||
};
|
||||
#endif /* NOFORN */
|
||||
#endif /* MAIKO_ENABLE_FOREIGN_FUNCTION_INTERFACE */
|
||||
|
||||
#ifdef XWINDOW
|
||||
read_Xoption(&argc, argv);
|
||||
@@ -751,9 +751,11 @@ void print_info_lines() {
|
||||
#ifdef NOVERSION
|
||||
printf("Does not enforce SYSOUT version matching.\n");
|
||||
#endif /* NOVERSION */
|
||||
#ifdef NOFORN
|
||||
#ifdef MAIKO_ENABLE_FOREIGN_FUNCTION_INTERFACE
|
||||
printf("Has foreign-function-call interface.\n");
|
||||
#else
|
||||
printf("Has no foreign-function-call interface.\n");
|
||||
#endif /* NOFORN */
|
||||
#endif /* MAIKO_ENABLE_FOREIGN_FUNCTION_INTERFACE */
|
||||
#ifdef NOEUROKBD
|
||||
printf("No support for European keyboards.\n");
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user