...
This compliant solution has compatible declarations of the variable i. :
| Code Block | ||||
|---|---|---|---|---|
| ||||
/* in a.c */
extern int i;
int f(void) {
return ++i;
}
/* in b.c */
int i; |
...
This compliant solution declares a as an array in a.c and b.c. :
| Code Block | ||||
|---|---|---|---|---|
| ||||
/* in a.c */
extern int a[];
int f(unsigned i, int x) {
int tmp = a[i];
a[i] = x;
return tmp;
}
/* in b.c */
int a[] = { 1, 2, 3, 4 }; |
...
This compliant solution has compatible declarations of the function f(). :
| Code Block | ||||
|---|---|---|---|---|
| ||||
/* in a.c */
extern int f(int a);
int g(int a) {
return f(a);
}
/* in b.c */
int f(int a) {
return a * 2;
} |
...
In this compliant solution, the length of the identifier declaring the function pointer bash_groupname_completion() in bashline.h is less than 32 characters. :
| 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; |
...