rem: fprintf(fd, "(cons 'filename \"%s\")", p->filename);
add: if ((interface.pnp_filename != NULL) && (strncmp(p->filename, interface.pnp_filename, strlen(interface.pnp_filename)) == 0)) fprintf(fd, "(cons 'pick_and_place \"%s\")", p->filename); else fprintf(fd, "(cons 'filename \"%s\")", p->filename);
context: write_project_file(char *filename, project_list_t *project){    FILE *fd;    project_list_t *p = project, *tmp;    if ((fd = fopen(filename, "w")) == NULL) {	GERB_MESSAGE("Couldn't save project %s\n", filename);       // printf(" nope saving projecct file!\n");	return(-1);    }   // printf("we are about to save a project");    while (p) {	fprintf(fd, "(define-layer! %d ", p->layerno);	fprintf(fd, "(cons 'filename \"%s\")", p->filename);	if (p->inverted)	    fprintf(fd, "(cons 'inverted #t)");	fprintf(fd, "(cons 'color #(%d %d %d)))", p->rgb[0], p->rgb[1],		p->rgb[2]);	fprintf(fd, "\n");	tmp = p;	p = p->next;	free(tmp);	tmp = NULL;    }    fclose(fd);    return(0);} /* write_project */