static char *generate_guard(const char *pathname) { const char *filename; char *guard, *tmp;
generate_guard (const char *pathname) { const char *filename; char *guard, *tmp;
static char *generate_guard(const char *pathname) {        const char *filename;	char *guard, *tmp;	filename = strrchr(pathname, '/' );  /* find last component */	filename = ((filename == NULL) ? pathname : filename+1);	guard = strdup(filename);	/* convert to upper case */	tmp = guard;	while (*tmp) {		if (islower(*tmp))			*tmp = toupper(*tmp);		tmp++;	}	guard = extendfile(guard, "_H_RPCGEN");	return guard;}