default to unlocked state (lock=false) at title 1st placement
This commit is contained in:
parent
4c0d5023f5
commit
af22c256b3
|
|
@ -125,7 +125,6 @@ int find_io_fileno(const char *name, int logdepth, int fatal)
|
|||
{
|
||||
char test_c[256];
|
||||
char *test_c_ =
|
||||
NL "#include <stdio.h>"
|
||||
NL "int main() {"
|
||||
/* NOTE: can not check for implicit declaration as fileno() may be a macro (e.g. on MINIX3) */
|
||||
NL " if (%s(stdout) >= 0)"
|
||||
|
|
@ -142,19 +141,19 @@ int find_io_fileno(const char *name, int logdepth, int fatal)
|
|||
|
||||
/* UNIX */
|
||||
sprintf(test_c, test_c_, "fileno");
|
||||
if (try_icl(logdepth, "libs/io/fileno", test_c, NULL, NULL, NULL)) {
|
||||
if (try_icl(logdepth, "libs/io/fileno", test_c, "#include <stdio.h>\n", NULL, NULL)) {
|
||||
put("libs/io/fileno/call", "fileno");
|
||||
return 0;
|
||||
}
|
||||
|
||||
sprintf(test_c, test_c_, "fileno");
|
||||
if (try_icl(logdepth, "libs/io/fileno", test_c, "#include <unistd.h>\n", NULL, NULL)) {
|
||||
if (try_icl(logdepth, "libs/io/fileno", test_c, "#include <stdio.h>\n#include <unistd.h>\n", NULL, NULL)) {
|
||||
put("libs/io/fileno/call", "fileno");
|
||||
return 0;
|
||||
}
|
||||
|
||||
sprintf(test_c, test_c_, "fileno");
|
||||
if (try_icl(logdepth, "libs/io/fileno", test_c, "#define _XOPEN_SOURCE\n#include <unistd.h>\n", NULL, NULL)) {
|
||||
if (try_icl(logdepth, "libs/io/fileno", test_c, "#define _XOPEN_SOURCE\n#include <stdio.h>\n#include <unistd.h>\n", NULL, NULL)) {
|
||||
put("libs/io/fileno/call", "fileno");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ v {xschem version=3.1.0 file_version=1.2
|
|||
}
|
||||
G {}
|
||||
K {type=logo
|
||||
template="name=l1 author=\\"Stefan Schippers\\" rev=1.0 lock=true"
|
||||
template="name=l1 author=\\"Stefan Schippers\\" rev=1.0 lock=false"
|
||||
verilog_ignore=true
|
||||
vhdl_ignore=true
|
||||
spice_ignore=true
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ v {xschem version=3.1.0 file_version=1.2
|
|||
}
|
||||
G {}
|
||||
K {type=logo
|
||||
template="name=l1 author=\\"Stefan Schippers\\" rev=1.0 lock=true"
|
||||
template="name=l1 author=\\"Stefan Schippers\\" rev=1.0 lock=false"
|
||||
verilog_ignore=true
|
||||
vhdl_ignore=true
|
||||
spice_ignore=true
|
||||
|
|
|
|||
Loading…
Reference in New Issue