1
0
Fork 0

exile.h: Move definitions to new file exile.c

Especially with exile_launch(), we will be included
from more than one translation unit. Thus, ODR becomes
a headache now.

So move definitions to exile.c.
Dieser Commit ist enthalten in:
Albert S. 2022-03-14 21:31:56 +01:00
Ursprung 005851c645
Commit 69829374c7
4 geänderte Dateien mit 1864 neuen und 1726 gelöschten Zeilen

Datei anzeigen

@ -10,7 +10,7 @@ clean:
rm -f test testcpp
test: test.c exile.h
$(CC) test.c -g $(CFLAGS) -o test
$(CC) test.c exile.c -g $(CFLAGS) -o test
testcpp: test.cpp exile.h exile.hpp
$(CXX) test.cpp -g $(CXXFLAGS) -o testcpp

1841
exile.c Normale Datei

Datei-Diff unterdrückt, da er zu groß ist Diff laden

1746
exile.h

Datei-Diff unterdrückt, da er zu groß ist Diff laden

1
test.c
Datei anzeigen

@ -489,6 +489,7 @@ int test_no_new_fds()
}
extern int mkpath(const char *p, mode_t mode, int baseisfile);
int test_mkpath()
{
system("rm -rf /tmp/.exile.h/");