27 {
29 char *make = "make";
30 char *nm = "nm";
31 char *
origin =
"unknown.a";
34 int i, libstart =
argc;
36
40 return 1;
41 }
42
45 return 1;
46 }
47
48 fprintf(
out,
"# Automatically generated by stubgen\n" );
49
57 }
else { libstart =
i;
break; }
58 }
59
62
63 if( !make_f ) {
66 return 1;
67 }
68
70 char *end_of_location;
71 char *begin_q, *end_q;
72
73 if( !
strstr(
line,
"undefined reference to" ) )
continue;
74
76
77 if( !end_of_location ) continue;
78
79 begin_q =
strchr( end_of_location,
'`' );
80 end_q =
strchr( end_of_location,
'\'' );
81
82 if( !begin_q || !end_q ) continue;
83
84 begin_q += 2;
85
87 line[end_q - begin_q] = 0;
88
89 for( new_f = functions; new_f; new_f = new_f->next )
91
92 if( new_f ) continue;
93
95 if( !new_f )
96 {
100 return 1;
101 }
102
104 new_f->next = functions;
105 functions = new_f;
106 }
107
108
109 for(
i = libstart;
i <
argc;
i++ ) {
112
116
117
118 if( !nm_f ) {
120 continue;
121 }
122
124 char *import_sign, *eol;
125
126 if( !(import_sign =
strstr(
line,
" I " )) )
continue;
127
128 import_sign += 3;
129 while( *import_sign &&
isspace(*import_sign) ) import_sign++;
130
131
132 for( eol = import_sign; *eol && !
isspace(*eol); eol++ );
133
134 *eol = 0;
135
136 for( new_f = imports; new_f; new_f = new_f->next )
137 if( !
strcmp( new_f->name, import_sign ) )
break;
138
139 if( new_f ) continue;
140
142 if( !new_f )
143 {
148 return 1;
149 }
150
151 new_f->name =
strdup( import_sign + 1 );
153 new_f->next = imports;
154 imports = new_f;
155 }
156
158 }
159
160
161
162 for( new_f = functions; new_f; new_f = new_f->next ) {
166 continue;
167 }
168 }
169 }
170
173 return 0;
174}
int CDECL fclose(FILE *file)
int WINAPIV fprintf(FILE *file, const char *format,...)
char *CDECL fgets(char *s, int size, FILE *file)
FILE *CDECL fopen(const char *path, const char *mode)
_ACRTIMP char *__cdecl strchr(const char *, int)
_ACRTIMP char *__cdecl strstr(const char *, const char *)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
static char * strdup(const char *buf)
_ACRTIMP char *__cdecl strrchr(const char *, int)
GLsizeiptr const GLvoid GLenum usage
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memmove(s1, s2, n)
static short search(int val, const short *table, int size)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out