...
In this compliant solution, the length of the identifier declaring the function pointer bash_groupname_completion()
in bashline.h
is less than 32 characters:. Consequently it cannot clash with bash_groupname_completion_func
on any compliant platform.
Code Block | ||||
---|---|---|---|---|
| ||||
/* In bash/bashline.h */ extern char* bash_groupname_completion(const char*, int); /* In a.c */ #include <bashline.h> void f(const char *s, int i) { bash_groupname_completion(s, i); } /* In b.c */ int bash_groupname_completion_func; |
...