Index: trunk/doc-rnd/TODO =================================================================== --- trunk/doc-rnd/TODO (revision 1406) +++ trunk/doc-rnd/TODO (revision 1407) @@ -3,23 +3,15 @@ - hash in hid_attrib.c? - hash in hid_color.c; test: eps - nelma and gcode both invent .png name locally - - Makefile.in: what's hid/gtk/pcb.rc? -> win32 icon something - - portability: - - move compat to portability? - - move realpath to portability? + - get rid of gcode/lists.h, and vector.[ch] (autorouter) - mods: - move libpcbfp + - gpmi (and other buildins/plugins) not showing up in the about box -UNGLIB (cleanup #3): - - get rid of gcode/lists.h, and vector.[ch] (autorouter) - -BUGS -- gpmi (and other buildins/plugins) not showing up in the about box - CLEANUP #4 - scconfig: detect libstroke - libstroke: zoom -- cleanup resources: +- cleanup/rewrite resources: - better tree structs with less hidden properties (minor change in the res format: always require key=val pairs) - gtk, lesstif: reorganize the code so that: - menus are always created using a path (ghid_main_menu_real_add_resource) Index: trunk/src/compat.c =================================================================== --- trunk/src/compat.c (revision 1406) +++ trunk/src/compat.c (nonexistent) @@ -1,95 +0,0 @@ -/* $Id$ */ - -/* - * COPYRIGHT - * - * PCB, interactive printed circuit board design - * Copyright (C) 2004, 2006 Dan McMahill - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - */ - -#include "config.h" - -#include -#include "compat.h" -#include "global.h" - - -RCSID("$Id$"); - -#ifndef HAVE_EXPF -float expf(float x) -{ - return (float) exp((double) x); -} -#endif - -#ifndef HAVE_LOGF -float logf(float x) -{ - return (float) log((double) x); -} -#endif - -#ifndef HAVE_RANDOM -long random(void) -{ - return (long) rand(); -} -#endif - -#if !defined(HAVE_DLFCN_H) && defined(WIN32) -#include - -void *dlopen(const char *f, int ATTRIBUTE_UNUSED flag) -{ - return LoadLibrary(f); -} - -void dlclose(void *h) -{ - FreeLibrary((HINSTANCE) h); -} - -char *dlerror() -{ - static LPVOID lpMsgBuf = NULL; - DWORD dw; - - /* free the error message buffer */ - if (lpMsgBuf) - LocalFree(lpMsgBuf); - - /* get the error code */ - dw = GetLastError(); - - /* get the corresponding error message */ - FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | - FORMAT_MESSAGE_FROM_SYSTEM | - FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, dw, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) & lpMsgBuf, 0, NULL); - - return (char *) lpMsgBuf; -} - -void *dlsym(void *handle, const char *symbol) -{ - return (void *) GetProcAddress((HMODULE) handle, symbol); -} - - -#endif Index: trunk/src/portability.c =================================================================== --- trunk/src/portability.c (revision 1406) +++ trunk/src/portability.c (nonexistent) @@ -1,312 +0,0 @@ -/* $Id$ */ - -/* - * COPYRIGHT - * - * PCB, interactive printed circuit board design - * Copyright (C) 1994,1995,1996,2004,2006 Thomas Nau - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Contact addresses for paper mail and Email: - * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany - * Thomas.Nau@rz.uni-ulm.de - * - */ - - -/* misc functions used by several modules - */ - -#include "config.h" - -#include -#include -#include -#ifdef HAVE_STRING_H -#include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_PWD_H -#include -#endif - -#ifdef HAVE_SYS_WAIT_H -#include -#endif - -#include - -#include "global.h" - -#include "error.h" -#include "mymem.h" - -/* ---------------------------------------------------------------------- - * returns pointer to current working directory. If 'path' is not - * NULL, then the current working directory is copied to the array - * pointed to by 'path' - */ -char *GetWorkingDirectory(char *path) -{ -#ifdef HAVE_GETCWD - return getcwd(path, MAXPATHLEN); -#else - /* seems that some BSD releases lack of a prototype for getwd() */ - return getwd(path); -#endif - -} - -const char *get_user_name(void) -{ -#ifdef HAVE_GETPWUID - static struct passwd *pwentry; - - int len; - char *comma, *gecos, *fab_author; - - /* ID the user. */ - pwentry = getpwuid(getuid()); - gecos = pwentry->pw_gecos; - comma = strchr(gecos, ','); - if (comma) - len = comma - gecos; - else - len = strlen(gecos); - fab_author = (char *) malloc(len + 1); - if (!fab_author) { - perror("pcb: out of memory.\n"); - exit(-1); - } - memcpy(fab_author, gecos, len); - fab_author[len] = 0; -#else - return "Unknown"; -#endif - -} - -#ifdef MKDIR_IS_PCBMKDIR -#error "Don't know how to create a directory on this system." -int pcb_mkdir(const char *path, int mode) -{ - return MKDIR(path, mode); -} -#endif - -int pcb_spawnvp(char **argv) -{ -#ifdef HAVE__SPAWNVP - int result = _spawnvp(_P_WAIT, argv[0], (const char *const *) argv); - if (result == -1) - return 1; - else - return 0; -#else - int pid; - pid = fork(); - if (pid < 0) { - /* error */ - Message(_("Cannot fork!")); - return 1; - } - else if (pid == 0) { - /* Child */ - execvp(argv[0], argv); - exit(1); - } - else { - int rv; - /* Parent */ - wait(&rv); - } - return 0; -#endif -} - - -/* - * Creates a new temporary file name. Hopefully the operating system - * provides a mkdtemp() function to securily create a temporary - * directory with mode 0700. If so then that directory is created and - * the returned string is made up of the directory plus the name - * variable. For example: - * - * tempfile_name_new ("myfile") might return - * "/var/tmp/pcb.123456/myfile". - * - * If mkdtemp() is not available then 'name' is ignored and the - * insecure tmpnam() function is used. - * - * Files/names created with tempfile_name_new() should be unlinked - * with tempfile_unlink to make sure the temporary directory is also - * removed when mkdtemp() is used. - */ -char *tempfile_name_new(char *name) -{ - char *tmpfile = NULL; -#ifdef HAVE_MKDTEMP - char *tmpdir, *mytmpdir; - size_t len; -#endif - - assert(name != NULL); - -#ifdef HAVE_MKDTEMP -#define TEMPLATE "pcb.XXXXXXXX" - - - tmpdir = getenv("TMPDIR"); - - /* FIXME -- what about win32? */ - if (tmpdir == NULL) { - tmpdir = "/tmp"; - } - - mytmpdir = (char *) malloc(sizeof(char) * (strlen(tmpdir) + 1 + strlen(TEMPLATE) + 1)); - if (mytmpdir == NULL) { - fprintf(stderr, "%s(): malloc failed()\n", __FUNCTION__); - exit(1); - } - - *mytmpdir = '\0'; - (void) strcat(mytmpdir, tmpdir); - (void) strcat(mytmpdir, PCB_DIR_SEPARATOR_S); - (void) strcat(mytmpdir, TEMPLATE); - if (mkdtemp(mytmpdir) == NULL) { - fprintf(stderr, "%s(): mkdtemp (\"%s\") failed\n", __FUNCTION__, mytmpdir); - free(mytmpdir); - return NULL; - } - - - len = strlen(mytmpdir) + /* the temp directory name */ - 1 + /* the directory sep. */ - strlen(name) + /* the file name */ - 1 /* the \0 termination */ - ; - - tmpfile = (char *) malloc(sizeof(char) * len); - - *tmpfile = '\0'; - (void) strcat(tmpfile, mytmpdir); - (void) strcat(tmpfile, PCB_DIR_SEPARATOR_S); - (void) strcat(tmpfile, name); - - free(mytmpdir); -#undef TEMPLATE -#else - /* - * tmpnam() uses a static buffer so strdup() the result right away - * in case someone decides to create multiple temp names. - */ - tmpfile = strdup(tmpnam(NULL)); -#ifdef __WIN32__ - { - /* Guile doesn't like \ separators */ - char *c; - for (c = tmpfile; *c; c++) - if (*c == '\\') - *c = '/'; - } -#endif -#endif - - return tmpfile; -} - -/* - * Unlink a temporary file. If we have mkdtemp() then our temp file - * lives in a temporary directory and we need to remove that directory - * too. - */ -int tempfile_unlink(char *name) -{ -#ifdef DEBUG - /* SDB says: Want to keep old temp files for examiniation when debugging */ - return 0; -#endif - -#ifdef HAVE_MKDTEMP - int e, rc2 = 0; - char *dname; - - unlink(name); - /* it is possible that the file was never created so it is OK if the - unlink fails */ - - /* now figure out the directory name to remove */ - e = strlen(name) - 1; - while (e > 0 && name[e] != PCB_DIR_SEPARATOR_C) { - e--; - } - - dname = strdup(name); - dname[e] = '\0'; - - /* - * at this point, e *should* point to the end of the directory part - * but lets make sure. - */ - if (e > 0) { - rc2 = rmdir(dname); - if (rc2 != 0) { - perror(dname); - } - - } - else { - fprintf(stderr, _("%s(): Unable to determine temp directory name from the temp file\n"), __FUNCTION__); - fprintf(stderr, "%s(): \"%s\"\n", __FUNCTION__, name); - rc2 = -1; - } - - /* name was allocated with malloc */ - free(dname); - free(name); - - /* - * FIXME - should also return -1 if the temp file exists and was not - * removed. - */ - if (rc2 != 0) { - return -1; - } - -#else - int rc = unlink(name); - - if (rc != 0) { - fprintf(stderr, _("Failed to unlink \"%s\"\n"), name); - free(name); - return rc; - } - free(name); - -#endif - - return 0; -} Index: trunk/src/portability.h =================================================================== --- trunk/src/portability.h (revision 1406) +++ trunk/src/portability.h (nonexistent) @@ -1,35 +0,0 @@ -char *GetWorkingDirectory(char *); -const char *get_user_name(void); - -/* mkdir() implentation, mostly for plugins, which don't have our config.h. - * Check whether mkdir() is mkdir or _mkdir, and whether it takes one - * or two arguments. WIN32 mkdir takes one argument and POSIX takes - * two. - */ -#if HAVE_MKDIR -#if MKDIR_TAKES_ONE_ARG - /* MinGW32 */ -#include /* mkdir under MinGW only takes one argument */ -#define MKDIR(a, b) mkdir(a) -#else -#define MKDIR(a, b) mkdir(a, b) -#endif -#else -#if HAVE__MKDIR - /* plain Windows 32 */ -#define MKDIR(a, b) _mkdir(a) -#else -#define MKDIR(a, b) pcb_mkdir(a, b) -#define MKDIR_IS_PCBMKDIR 1 -int pcb_mkdir(const char *path, int mode); -#endif -#endif - -/* for access(), fork() and friends */ -#ifdef HAVE_UNISTD_H -#include -#endif - -int pcb_spawnvp(char **argv); -char *tempfile_name_new(char *name); -int tempfile_unlink(char *name); Index: trunk/src/lrealpath.c =================================================================== --- trunk/src/lrealpath.c (revision 1406) +++ trunk/src/lrealpath.c (nonexistent) @@ -1,154 +0,0 @@ -/* Libiberty realpath. Like realpath, but more consistent behavior. - Based on gdb_realpath from GDB. - - Copyright 2003 Free Software Foundation, Inc. - - This file is part of the libiberty library. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street - Fifth Floor, - Boston, MA 02110-1301, USA. */ - -/* - -@deftypefn Replacement {const char*} lrealpath (const char *@var{name}) - -Given a pointer to a string containing a pathname, returns a canonical -version of the filename. Symlinks will be resolved, and ``.'' and ``..'' -components will be simplified. The returned value will be allocated using -@code{malloc}, or @code{NULL} will be returned on a memory allocation error. - -@end deftypefn - -*/ - -#include "config.h" -#include "lrealpath.h" - -#ifdef HAVE_LIMITS_H -#include -#endif -#ifdef HAVE_STDLIB_H -#include -#endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STRING_H -#include -#endif - -/* On GNU libc systems the declaration is only visible with _GNU_SOURCE. */ -#if defined(HAVE_CANONICALIZE_FILE_NAME) \ - && defined(NEED_DECLARATION_CANONICALIZE_FILE_NAME) -extern char *canonicalize_file_name(const char *); -#endif - -#if defined(HAVE_REALPATH) -#if defined (PATH_MAX) -#define REALPATH_LIMIT PATH_MAX -#else -#if defined (MAXPATHLEN) -#define REALPATH_LIMIT MAXPATHLEN -#endif -#endif -#else - /* cygwin has realpath, so it won't get here. */ -#if defined (_WIN32) -#define WIN32_LEAN_AND_MEAN -#include /* for GetFullPathName */ -#endif -#endif - -char *lrealpath(const char *filename) -{ - /* Method 1: The system has a compile time upper bound on a filename - path. Use that and realpath() to canonicalize the name. This is - the most common case. Note that, if there isn't a compile time - upper bound, you want to avoid realpath() at all costs. */ -#if defined(REALPATH_LIMIT) - { - char buf[REALPATH_LIMIT]; - const char *rp = realpath(filename, buf); - if (rp == NULL) - rp = filename; - return strdup(rp); - } - /* REALPATH_LIMIT */ - - /* Method 2: The host system (i.e., GNU) has the function - canonicalize_file_name() which malloc's a chunk of memory and - returns that, use that. */ -#elif defined(HAVE_CANONICALIZE_FILE_NAME) - { - char *rp = canonicalize_file_name(filename); - if (rp == NULL) - return strdup(filename); - else - return rp; - } - /* HAVE_CANONICALIZE_FILE_NAME */ - - /* Method 3: Now we're getting desperate! The system doesn't have a - compile time buffer size and no alternative function. Query the - OS, using pathconf(), for the buffer limit. Care is needed - though, some systems do not limit PATH_MAX (return -1 for - pathconf()) making it impossible to pass a correctly sized buffer - to realpath() (it could always overflow). On those systems, we - skip this. */ -#elif defined (HAVE_REALPATH) && defined (HAVE_UNISTD_H) - { - /* Find out the max path size. */ - long path_max = pathconf("/", _PC_PATH_MAX); - if (path_max > 0) { - /* PATH_MAX is bounded. */ - char *buf, *rp, *ret; - buf = (char *) malloc(path_max); - if (buf == NULL) - return NULL; - rp = realpath(filename, buf); - ret = strdup(rp ? rp : filename); - free(buf); - return ret; - } - } - /* HAVE_REALPATH && HAVE_UNISTD_H */ - - /* The MS Windows method. If we don't have realpath, we assume we - don't have symlinks and just canonicalize to a Windows absolute - path. GetFullPath converts ../ and ./ in relative paths to - absolute paths, filling in current drive if one is not given - or using the current directory of a specified drive (eg, "E:foo"). - It also converts all forward slashes to back slashes. */ -#elif defined (_WIN32) - { - char buf[MAX_PATH]; - char *basename; - DWORD len = GetFullPathName(filename, MAX_PATH, buf, &basename); - if (len == 0 || len > MAX_PATH - 1) - return strdup(filename); - else { - /* The file system is case-preserving but case-insensitive, - Canonicalize to lowercase, using the codepage associated - with the process locale. */ - CharLowerBuff(buf, len); - return strdup(buf); - } - } -#else - - /* This system is a lost cause, just duplicate the filename. */ - return strdup(filename); -#endif -} Index: trunk/src/lrealpath.h =================================================================== --- trunk/src/lrealpath.h (revision 1406) +++ trunk/src/lrealpath.h (nonexistent) @@ -1,7 +0,0 @@ -#ifndef PCB_LREALPATH_H -#define PCH_LREALPATH_H - -/* A well-defined realpath () that is always compiled in. */ -char *lrealpath(const char *); - -#endif /* PCB_LREALPATH_H */ Index: trunk/src/compat.h =================================================================== --- trunk/src/compat.h (revision 1406) +++ trunk/src/compat.h (nonexistent) @@ -1,58 +0,0 @@ -/* $Id$ */ - -/* - * COPYRIGHT - * - * PCB, interactive printed circuit board design - * Copyright (C) 2004 Dan McMahill - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - */ - -#ifndef PCB_COMPAT_H -#define PCH_COMPAT_H - -#include "config.h" - -#include - -#ifndef HAVE_EXPF -float expf(float); -#endif - -#ifndef HAVE_LOGF -float logf(float); -#endif - -#ifndef HAVE_RANDOM -long random(void); -#endif - -#if !defined(HAVE_DLFCN_H) && defined(WIN32) -void *dlopen(const char *, int); -void dlclose(void *); -char *dlerror(void); - -void *dlsym(void *, const char *); - -#define RTLD_NOW 2 -#define RTLD_LOCAL 0 -#define RTLD_GLOBAL 4 - -#endif - - -#endif /* PCB_COMPAT_H */ Index: trunk/src/Makefile.dep =================================================================== --- trunk/src/Makefile.dep (revision 1406) +++ trunk/src/Makefile.dep (revision 1407) @@ -69,8 +69,8 @@ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ list_element.h libpcb_fp.h data.h draw.h mymem.h -compat.o: compat.c ../config.h ../config.manual.h ../config.auto.h \ - compat.h global.h const.h ../globalconst.h ../config.h macro.h \ +compat_dl.o: compat_dl.c ../config.h ../config.manual.h ../config.auto.h \ + compat_dl.h global.h const.h ../globalconst.h ../config.h macro.h \ global_typedefs.h global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h \ list_common.h list_line.h ../src_3rd/genlist/gentdlist_impl.h \ ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ @@ -78,6 +78,27 @@ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ list_element.h libpcb_fp.h +compat_fs.o: compat_fs.c ../config.h ../config.manual.h ../config.auto.h \ + ../src_3rd/genvector/gds_char.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h hid.h global_element.h \ + list_element.h libpcb_fp.h error.h mymem.h +compat_lrealpath.o: compat_lrealpath.c ../config.h ../config.manual.h \ + ../config.auto.h compat_lrealpath.h +compat_misc.o: compat_misc.c ../config.h ../config.manual.h \ + ../config.auto.h compat_misc.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h copy.o: copy.c ../config.h ../config.manual.h ../config.auto.h global.h \ const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -128,9 +149,9 @@ list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h compat.h crosshair.h data.h draw.h error.h \ - mymem.h misc.h ../src_3rd/genvector/gds_char.h rotate.h rtree.h search.h \ - select.h print.h hid_helper.h + list_element.h libpcb_fp.h compat_misc.h crosshair.h data.h draw.h \ + error.h mymem.h misc.h ../src_3rd/genvector/gds_char.h rotate.h rtree.h \ + search.h select.h print.h hid_helper.h drill.o: drill.c ../config.h ../config.manual.h ../config.auto.h data.h \ global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -162,7 +183,7 @@ list_element.h libpcb_fp.h buffer.h change.h create.h crosshair.h data.h \ error.h file.h misc.h ../src_3rd/genvector/gds_char.h mymem.h move.h \ parse_l.h pcb-printf.h polygon.h rats.h remove.h set.h strflags.h \ - portability.h paths.h rats_patch.h stub_edif.h hid_actions.h hid_flags.h + compat_fs.h paths.h rats_patch.h stub_edif.h hid_actions.h hid_flags.h file_act.o: file_act.c ../config.h ../config.manual.h ../config.auto.h \ global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -251,8 +272,7 @@ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ list_element.h libpcb_fp.h hid_attrib.h hid_helper.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h portability.h \ - error.h + ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h compat_fs.h error.h hid_color.o: hid_color.c ../config.h ../config.manual.h ../config.auto.h \ global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -309,9 +329,9 @@ list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid_nogui.h compat.h error.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h portability.h pcb-printf.h \ - plugins.h hid_attrib.h hid_flags.h + list_element.h libpcb_fp.h hid_nogui.h compat_dl.h error.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h plugins.h \ + hid_attrib.h hid_flags.h compat_fs.h hid_nogui.o: hid_nogui.c ../config.h ../config.manual.h ../config.auto.h \ global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -404,8 +424,6 @@ ../config.h global_typedefs.h polyarea.h list_rat.h \ ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ ../src_3rd/genlist/gentdlist_undef.h ../src_3rd/genlist/gentdlist_impl.c -lrealpath.o: lrealpath.c ../config.h ../config.manual.h ../config.auto.h \ - lrealpath.h main.o: main.c ../config.h ../config.manual.h ../config.auto.h global.h \ const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -416,7 +434,7 @@ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ list_element.h libpcb_fp.h data.h buffer.h create.h crosshair.h draw.h \ error.h file.h set.h action_helper.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h lrealpath.h free_atexit.h \ + ../src_3rd/genvector/gds_char.h mymem.h compat_lrealpath.h free_atexit.h \ polygon.h pcb-printf.h buildin.h paths.h strflags.h plugins.h event.h \ funchash.h hid_actions.h hid_attrib.h hid_init.h dolists.h \ generated_lists.h @@ -442,7 +460,7 @@ list_element.h libpcb_fp.h box.h misc.h ../src_3rd/genvector/gds_char.h \ mymem.h crosshair.h create.h data.h draw.h file.h error.h move.h \ pcb-printf.h polygon.h remove.h rtree.h rotate.h rubberband.h search.h \ - set.h undo.h action_helper.h portability.h hid_actions.h hid_init.h + set.h undo.h action_helper.h compat_fs.h hid_actions.h hid_init.h move.o: move.c ../config.h ../config.manual.h ../config.auto.h global.h \ const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -674,9 +692,9 @@ list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h action_helper.h buffer.h compat.h crosshair.h \ - data.h draw.h error.h find.h misc.h ../src_3rd/genvector/gds_char.h \ - mymem.h set.h undo.h hid_actions.h + list_element.h libpcb_fp.h action_helper.h buffer.h compat_misc.h \ + crosshair.h data.h draw.h error.h find.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h set.h undo.h hid_actions.h strflags.o: strflags.c ../config.h ../config.manual.h ../config.auto.h \ ../globalconst.h ../config.h global.h const.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -685,7 +703,7 @@ list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h compat.h strflags.h + list_element.h libpcb_fp.h compat_misc.h strflags.h stub_edif.o: stub_edif.c ../config.h ../config.manual.h ../config.auto.h \ global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -773,16 +791,6 @@ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ list_element.h libpcb_fp.h resource.h res_parse.h free_atexit.h -portability.o: portability.c ../config.h ../config.manual.h \ - ../config.auto.h ../src_3rd/genvector/gds_char.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h hid.h global_element.h \ - list_element.h libpcb_fp.h error.h mymem.h libpcb_fp.o: libpcb_fp.c ../config.h ../config.manual.h ../config.auto.h \ global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ @@ -791,7 +799,7 @@ list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h error.h portability.h paths.h \ + list_element.h libpcb_fp.h error.h compat_fs.h paths.h \ ../src_3rd/genht/htsp.h ../src_3rd/genht/ht.h \ ../src_3rd/genht/ht_inlines.h ../src_3rd/genht/hash.h parse_y.o: parse_y.c ../config.h ../config.manual.h ../config.auto.h \ @@ -838,8 +846,8 @@ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ list_element.h libpcb_fp.h ../src_plugins/autoplace/autoplace.h box.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h compat.h data.h \ - draw.h error.h intersect.h rtree.h macro.h mirror.h misc.h move.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h compat_misc.h \ + data.h draw.h error.h intersect.h rtree.h macro.h mirror.h misc.h move.h \ mymem.h rats.h remove.h rotate.h ../src_plugins/autoplace/action.o: ../src_plugins/autoplace/action.c \ ../config.h ../config.manual.h ../config.auto.h global.h const.h \ @@ -1042,7 +1050,7 @@ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ list_element.h libpcb_fp.h data.h global.h action_helper.h change.h \ error.h undo.h plugins.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - portability.h pcb-printf.h remove.h rats.h hid_actions.h dolists.h + compat_fs.h pcb-printf.h remove.h rats.h hid_actions.h dolists.h ../src_plugins/export_ps/ps.o: ../src_plugins/export_ps/ps.c ../config.h \ ../config.manual.h ../config.auto.h global.h const.h ../globalconst.h \ ../config.h macro.h global_typedefs.h global_objs.h \ @@ -1154,6 +1162,19 @@ ../src_3rd/genvector/gds_char.h mymem.h plugins.h hid.h hid_nogui.h \ hid_draw_helpers.h ../src_plugins/export_png/png.h hid_init.h \ hid_attrib.h hid_color.h hid_helper.h hid_flags.h dolists.h +../src_plugins/export_gerber/gerber.o: \ + ../src_plugins/export_gerber/gerber.c ../config.h ../config.manual.h \ + ../config.auto.h global.h const.h ../globalconst.h ../config.h macro.h \ + global_typedefs.h global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h \ + list_common.h list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h data.h global.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h error.h draw.h pcb-printf.h \ + plugins.h hid_helper.h hid.h hid_nogui.h hid_draw_helpers.h hid_init.h \ + hid_attrib.h hid_flags.h ../src_plugins/export_bom/bom.o: ../src_plugins/export_bom/bom.c \ ../config.h ../config.manual.h ../config.auto.h global.h const.h \ ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ @@ -1178,6 +1199,493 @@ list_element.h libpcb_fp.h hid.h data.h global.h misc.h \ ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h plugins.h \ hid_draw_helpers.h hid_nogui.h hid_actions.h hid_init.h dolists.h +../src_plugins/hid_gtk/ghid-cell-renderer-visibility.o: \ + ../src_plugins/hid_gtk/ghid-cell-renderer-visibility.c \ + ../src_plugins/hid_gtk/gtkhid.h ../src_plugins/hid_gtk/gui.h global.h \ + ../config.h ../config.manual.h ../config.auto.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h \ + ../src_plugins/hid_gtk/ghid-cell-renderer-visibility.h +../src_plugins/hid_gtk/ghid-coord-entry.o: \ + ../src_plugins/hid_gtk/ghid-coord-entry.c \ + ../src_plugins/hid_gtk/gtkhid.h ../src_plugins/hid_gtk/gui.h global.h \ + ../config.h ../config.manual.h ../config.auto.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h +../src_plugins/hid_gtk/ghid-layer-selector.o: \ + ../src_plugins/hid_gtk/ghid-layer-selector.c \ + ../src_plugins/hid_gtk/gtkhid.h ../src_plugins/hid_gtk/gui.h global.h \ + ../config.h ../config.manual.h ../config.auto.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h \ + ../src_plugins/hid_gtk/ghid-cell-renderer-visibility.h +../src_plugins/hid_gtk/ghid-main-menu.o: \ + ../src_plugins/hid_gtk/ghid-main-menu.c ../src_plugins/hid_gtk/gtkhid.h \ + ../src_plugins/hid_gtk/gui.h global.h ../config.h ../config.manual.h \ + ../config.auto.h const.h ../globalconst.h ../config.h macro.h \ + global_typedefs.h global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h \ + list_common.h list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h +../src_plugins/hid_gtk/ghid-route-style-selector.o: \ + ../src_plugins/hid_gtk/ghid-route-style-selector.c global.h ../config.h \ + ../config.manual.h ../config.auto.h const.h ../globalconst.h ../config.h \ + macro.h global_typedefs.h global_objs.h ../src_3rd/genlist/gendlist.h \ + polyarea.h list_common.h list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gtkhid.h \ + ../src_plugins/hid_gtk/gui.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h +../src_plugins/hid_gtk/gtkhid-main.o: \ + ../src_plugins/hid_gtk/gtkhid-main.c ../config.h ../config.manual.h \ + ../config.auto.h action_helper.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h crosshair.h error.h \ + ../src_plugins/hid_gtk/gui.h global.h hid.h hid_resource.h resource.h \ + data.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h hid_nogui.h \ + hid_draw_helpers.h pcb-printf.h plugins.h hid_attrib.h hid_init.h \ + hid_flags.h hid_actions.h dolists.h +../src_plugins/hid_gtk/gui-command-window.o: \ + ../src_plugins/hid_gtk/gui-command-window.c ../config.h \ + ../config.manual.h ../config.auto.h ../src_plugins/hid_gtk/gui.h \ + global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ + global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ + list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h crosshair.h hid_actions.h +../src_plugins/hid_gtk/gui-config.o: ../src_plugins/hid_gtk/gui-config.c \ + ../config.h ../config.manual.h ../config.auto.h \ + ../src_plugins/hid_gtk/gui.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h \ + ../src_plugins/hid_gtk/gtkhid.h action_helper.h change.h file.h error.h \ + draw.h pcb-printf.h set.h hid_attrib.h compat_fs.h +../src_plugins/hid_gtk/gui-dialog-print.o: \ + ../src_plugins/hid_gtk/gui-dialog-print.c ../config.h ../config.manual.h \ + ../config.auto.h ../src_plugins/hid_gtk/gui.h global.h const.h \ + ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h hid_attrib.h \ + hid_init.h +../src_plugins/hid_gtk/gui-dialog.o: ../src_plugins/hid_gtk/gui-dialog.c \ + ../config.h ../config.manual.h ../config.auto.h data.h global.h const.h \ + ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gui.h global.h hid.h \ + hid_resource.h resource.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h +../src_plugins/hid_gtk/gui-drc-window.o: \ + ../src_plugins/hid_gtk/gui-drc-window.c ../config.h ../config.manual.h \ + ../config.auto.h error.h search.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h draw.h pcb-printf.h \ + ../src_3rd/genvector/gds_char.h undo.h set.h \ + ../src_plugins/hid_gtk/gui.h global.h hid.h hid_resource.h resource.h \ + data.h misc.h mymem.h ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h \ + ../src_plugins/hid_gtk/gui-drc-window.h hid_actions.h +../src_plugins/hid_gtk/gui-keyref-window.o: \ + ../src_plugins/hid_gtk/gui-keyref-window.c ../config.h \ + ../config.manual.h ../config.auto.h ../src_plugins/hid_gtk/gui.h \ + global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ + global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ + list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h +../src_plugins/hid_gtk/gui-library-window.o: \ + ../src_plugins/hid_gtk/gui-library-window.c ../config.h \ + ../config.manual.h ../config.auto.h ../src_plugins/hid_gtk/gui.h \ + global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ + global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ + list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h buffer.h set.h \ + ../src_plugins/hid_gtk/gui-library-window.h +../src_plugins/hid_gtk/gui-log-window.o: \ + ../src_plugins/hid_gtk/gui-log-window.c ../config.h ../config.manual.h \ + ../config.auto.h ../src_plugins/hid_gtk/gui.h global.h const.h \ + ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h +../src_plugins/hid_gtk/gui-misc.o: ../src_plugins/hid_gtk/gui-misc.c \ + ../config.h ../config.manual.h ../config.auto.h global.h const.h \ + ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h crosshair.h global.h data.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h action_helper.h set.h \ + pcb-printf.h ../src_plugins/hid_gtk/gui.h hid.h hid_resource.h \ + resource.h ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h +../src_plugins/hid_gtk/gui-netlist-window.o: \ + ../src_plugins/hid_gtk/gui-netlist-window.c ../config.h \ + ../config.manual.h ../config.auto.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h create.h global.h data.h draw.h error.h \ + find.h misc.h ../src_3rd/genvector/gds_char.h mymem.h mymem.h rats.h \ + remove.h search.h select.h set.h undo.h hid_actions.h \ + ../src_plugins/hid_gtk/gui.h hid.h hid_resource.h resource.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h +../src_plugins/hid_gtk/gui-output-events.o: \ + ../src_plugins/hid_gtk/gui-output-events.c ../config.h \ + ../config.manual.h ../config.auto.h ../src_plugins/hid_gtk/gui.h \ + global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ + global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ + list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h \ + ../src_plugins/hid_gtk/gtkhid.h action_helper.h crosshair.h draw.h \ + error.h set.h find.h search.h rats.h +../src_plugins/hid_gtk/gui-pinout-preview.o: \ + ../src_plugins/hid_gtk/gui-pinout-preview.c ../config.h \ + ../config.manual.h ../config.auto.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gui.h hid.h \ + hid_resource.h resource.h data.h global.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h copy.h draw.h mymem.h move.h \ + rotate.h +../src_plugins/hid_gtk/gui-pinout-window.o: \ + ../src_plugins/hid_gtk/gui-pinout-window.c ../config.h \ + ../config.manual.h ../config.auto.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gui.h hid.h \ + hid_resource.h resource.h data.h global.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h copy.h draw.h mymem.h move.h \ + rotate.h +../src_plugins/hid_gtk/gui-top-window.o: \ + ../src_plugins/hid_gtk/gui-top-window.c ../config.h ../config.manual.h \ + ../config.auto.h ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h global.h const.h \ + ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gtkhid.h \ + ../src_plugins/hid_gtk/gui.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h action_helper.h buffer.h \ + change.h copy.h create.h crosshair.h draw.h error.h file.h find.h \ + gpcb-menu.h insert.h line.h mymem.h move.h pcb-printf.h polygon.h rats.h \ + remove.h rotate.h rubberband.h search.h select.h set.h undo.h event.h \ + free_atexit.h paths.h ../src_plugins/hid_gtk/gui-icons-mode-buttons.data \ + ../src_plugins/hid_gtk/gui-icons-misc.data hid_attrib.h hid_actions.h \ + hid_flags.h +../src_plugins/hid_gtk/gui-utils.o: ../src_plugins/hid_gtk/gui-utils.c \ + ../config.h ../config.manual.h ../config.auto.h \ + ../src_plugins/hid_gtk/gui.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ + global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h +../src_plugins/hid_gtk/gtkhid-gdk.o: ../src_plugins/hid_gtk/gtkhid-gdk.c \ + ../config.h ../config.manual.h ../config.auto.h crosshair.h global.h \ + const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ + global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ + list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h clip.h ../src_plugins/hid_gtk/gui.h global.h \ + hid.h hid_resource.h resource.h data.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h \ + ../src_plugins/hid_gtk/ghid-coord-entry.h \ + ../src_plugins/hid_gtk/ghid-main-menu.h \ + ../src_plugins/hid_gtk/ghid-layer-selector.h \ + ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ + ../src_plugins/hid_gtk/gui-pinout-preview.h hid_draw_helpers.h \ + hid_attrib.h hid_helper.h hid_color.h +../src_plugins/hid_lesstif/dialogs.o: \ + ../src_plugins/hid_lesstif/dialogs.c ../config.h ../config.manual.h \ + ../config.auto.h ../src_plugins/hid_lesstif/xincludes.h compat_misc.h \ + global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ + global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ + list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h data.h global.h crosshair.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h hid.h \ + ../src_plugins/hid_lesstif/lesstif.h hid_attrib.h hid_actions.h \ + hid_init.h +../src_plugins/hid_lesstif/library.o: \ + ../src_plugins/hid_lesstif/library.c ../config.h ../config.manual.h \ + ../config.auto.h ../src_plugins/hid_lesstif/xincludes.h compat_misc.h \ + global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ + global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ + list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h data.h global.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h set.h buffer.h hid.h \ + ../src_plugins/hid_lesstif/lesstif.h +../src_plugins/hid_lesstif/main.o: ../src_plugins/hid_lesstif/main.c \ + ../config.h ../config.manual.h ../config.auto.h \ + ../src_plugins/hid_lesstif/xincludes.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h data.h global.h action_helper.h crosshair.h \ + mymem.h misc.h ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h \ + resource.h clip.h event.h error.h plugins.h hid.h hid_nogui.h \ + hid_draw_helpers.h hid_resource.h resource.h \ + ../src_plugins/hid_lesstif/lesstif.h hid_attrib.h hid_helper.h \ + hid_init.h hid_color.h hid_extents.h hid_flags.h hid_actions.h dolists.h +../src_plugins/hid_lesstif/menu.o: ../src_plugins/hid_lesstif/menu.c \ + ../config.h ../config.manual.h ../config.auto.h \ + ../src_plugins/hid_lesstif/xincludes.h global.h const.h ../globalconst.h \ + ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h data.h global.h error.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h hid.h \ + hid_resource.h resource.h resource.h \ + ../src_plugins/hid_lesstif/lesstif.h mymem.h paths.h hid_actions.h \ + hid_flags.h pcb-menu.h ../src_3rd/genht/htsp.h ../src_3rd/genht/ht.h \ + ../src_3rd/genht/ht_inlines.h ../src_3rd/genht/hash.h +../src_plugins/hid_lesstif/netlist.o: \ + ../src_plugins/hid_lesstif/netlist.c ../config.h ../config.manual.h \ + ../config.auto.h ../src_plugins/hid_lesstif/xincludes.h compat_misc.h \ + global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ + global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ + list_line.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ + list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h data.h global.h find.h rats.h select.h undo.h \ + remove.h crosshair.h draw.h hid.h hid_actions.h \ + ../src_plugins/hid_lesstif/lesstif.h +../src_plugins/hid_lesstif/styles.o: ../src_plugins/hid_lesstif/styles.c \ + ../config.h ../config.manual.h ../config.auto.h \ + ../src_plugins/hid_lesstif/xincludes.h compat_misc.h global.h const.h \ + ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h data.h global.h set.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h mymem.h pcb-printf.h hid.h \ + ../src_plugins/hid_lesstif/lesstif.h hid_flags.h ../src_plugins/toporouter/toporouter.o: \ ../src_plugins/toporouter/toporouter.c \ ../src_plugins/toporouter/toporouter.h data.h global.h ../config.h \ Index: trunk/src/Makefile.in =================================================================== --- trunk/src/Makefile.in (revision 1406) +++ trunk/src/Makefile.in (revision 1407) @@ -16,7 +16,10 @@ change.o change_act.o clip.o - compat.o + compat_dl.o + compat_fs.o + compat_lrealpath.o + compat_misc.o copy.o create.o crosshair.o @@ -55,7 +58,6 @@ list_pin.o list_poly.o list_rat.o - lrealpath.o main.o mirror.o misc.o @@ -93,7 +95,6 @@ vtonpoint.o res_parse.o res_lex.o - portability.o libpcb_fp.o parse_y.o parse_l.o Index: trunk/src/compat_dl.c =================================================================== --- trunk/src/compat_dl.c (nonexistent) +++ trunk/src/compat_dl.c (revision 1407) @@ -0,0 +1,74 @@ +/* $Id$ */ + +/* + * COPYRIGHT + * + * PCB, interactive printed circuit board design + * Copyright (C) 2004, 2006 Dan McMahill + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ + +#include "config.h" + +#include "compat_dl.h" +#include "global.h" + + +RCSID("$Id$"); + + +#if !defined(HAVE_DLFCN_H) && defined(WIN32) +#include + +void *dlopen(const char *f, int ATTRIBUTE_UNUSED flag) +{ + return LoadLibrary(f); +} + +void dlclose(void *h) +{ + FreeLibrary((HINSTANCE) h); +} + +char *dlerror() +{ + static LPVOID lpMsgBuf = NULL; + DWORD dw; + + /* free the error message buffer */ + if (lpMsgBuf) + LocalFree(lpMsgBuf); + + /* get the error code */ + dw = GetLastError(); + + /* get the corresponding error message */ + FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | + FORMAT_MESSAGE_FROM_SYSTEM | + FORMAT_MESSAGE_IGNORE_INSERTS, + NULL, dw, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) & lpMsgBuf, 0, NULL); + + return (char *) lpMsgBuf; +} + +void *dlsym(void *handle, const char *symbol) +{ + return (void *) GetProcAddress((HMODULE) handle, symbol); +} + + +#endif Index: trunk/src/compat_dl.h =================================================================== --- trunk/src/compat_dl.h (nonexistent) +++ trunk/src/compat_dl.h (revision 1407) @@ -0,0 +1,45 @@ +/* $Id$ */ + +/* + * COPYRIGHT + * + * PCB, interactive printed circuit board design + * Copyright (C) 2004 Dan McMahill + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ + +#ifndef PCB_COMPAT_DL_H +#define PCB_COMPAT_DL_H + +#include "config.h" + + +#if !defined(HAVE_DLFCN_H) && defined(WIN32) +void *dlopen(const char *, int); +void dlclose(void *); +char *dlerror(void); + +void *dlsym(void *, const char *); + +#define RTLD_NOW 2 +#define RTLD_LOCAL 0 +#define RTLD_GLOBAL 4 + +#endif + + +#endif /* PCB_COMPAT_DL_H */ Index: trunk/src/compat_fs.c =================================================================== --- trunk/src/compat_fs.c (nonexistent) +++ trunk/src/compat_fs.c (revision 1407) @@ -0,0 +1,279 @@ +/* $Id$ */ + +/* + * COPYRIGHT + * + * PCB, interactive printed circuit board design + * Copyright (C) 1994,1995,1996,2004,2006 Thomas Nau + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Contact addresses for paper mail and Email: + * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany + * Thomas.Nau@rz.uni-ulm.de + * + */ + + +/* misc functions used by several modules + */ + +#include "config.h" + +#include +#include +#include +#ifdef HAVE_STRING_H +#include +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#ifdef HAVE_UNISTD_H +#include +#endif + +#ifdef HAVE_SYS_WAIT_H +#include +#endif + +#include + +#include "global.h" + +#include "error.h" +#include "mymem.h" + +/* ---------------------------------------------------------------------- + * returns pointer to current working directory. If 'path' is not + * NULL, then the current working directory is copied to the array + * pointed to by 'path' + */ +char *GetWorkingDirectory(char *path) +{ +#ifdef HAVE_GETCWD + return getcwd(path, MAXPATHLEN); +#else + /* seems that some BSD releases lack of a prototype for getwd() */ + return getwd(path); +#endif +} + +#ifdef MKDIR_IS_PCBMKDIR +#error "Don't know how to create a directory on this system." +int pcb_mkdir(const char *path, int mode) +{ + return MKDIR(path, mode); +} +#endif + +int pcb_spawnvp(char **argv) +{ +#ifdef HAVE__SPAWNVP + int result = _spawnvp(_P_WAIT, argv[0], (const char *const *) argv); + if (result == -1) + return 1; + else + return 0; +#else + int pid; + pid = fork(); + if (pid < 0) { + /* error */ + Message(_("Cannot fork!")); + return 1; + } + else if (pid == 0) { + /* Child */ + execvp(argv[0], argv); + exit(1); + } + else { + int rv; + /* Parent */ + wait(&rv); + } + return 0; +#endif +} + + +/* + * Creates a new temporary file name. Hopefully the operating system + * provides a mkdtemp() function to securily create a temporary + * directory with mode 0700. If so then that directory is created and + * the returned string is made up of the directory plus the name + * variable. For example: + * + * tempfile_name_new ("myfile") might return + * "/var/tmp/pcb.123456/myfile". + * + * If mkdtemp() is not available then 'name' is ignored and the + * insecure tmpnam() function is used. + * + * Files/names created with tempfile_name_new() should be unlinked + * with tempfile_unlink to make sure the temporary directory is also + * removed when mkdtemp() is used. + */ +char *tempfile_name_new(char *name) +{ + char *tmpfile = NULL; +#ifdef HAVE_MKDTEMP + char *tmpdir, *mytmpdir; + size_t len; +#endif + + assert(name != NULL); + +#ifdef HAVE_MKDTEMP +#define TEMPLATE "pcb.XXXXXXXX" + + + tmpdir = getenv("TMPDIR"); + + /* FIXME -- what about win32? */ + if (tmpdir == NULL) { + tmpdir = "/tmp"; + } + + mytmpdir = (char *) malloc(sizeof(char) * (strlen(tmpdir) + 1 + strlen(TEMPLATE) + 1)); + if (mytmpdir == NULL) { + fprintf(stderr, "%s(): malloc failed()\n", __FUNCTION__); + exit(1); + } + + *mytmpdir = '\0'; + (void) strcat(mytmpdir, tmpdir); + (void) strcat(mytmpdir, PCB_DIR_SEPARATOR_S); + (void) strcat(mytmpdir, TEMPLATE); + if (mkdtemp(mytmpdir) == NULL) { + fprintf(stderr, "%s(): mkdtemp (\"%s\") failed\n", __FUNCTION__, mytmpdir); + free(mytmpdir); + return NULL; + } + + + len = strlen(mytmpdir) + /* the temp directory name */ + 1 + /* the directory sep. */ + strlen(name) + /* the file name */ + 1 /* the \0 termination */ + ; + + tmpfile = (char *) malloc(sizeof(char) * len); + + *tmpfile = '\0'; + (void) strcat(tmpfile, mytmpdir); + (void) strcat(tmpfile, PCB_DIR_SEPARATOR_S); + (void) strcat(tmpfile, name); + + free(mytmpdir); +#undef TEMPLATE +#else + /* + * tmpnam() uses a static buffer so strdup() the result right away + * in case someone decides to create multiple temp names. + */ + tmpfile = strdup(tmpnam(NULL)); +#ifdef __WIN32__ + { + /* Guile doesn't like \ separators */ + char *c; + for (c = tmpfile; *c; c++) + if (*c == '\\') + *c = '/'; + } +#endif +#endif + + return tmpfile; +} + +/* + * Unlink a temporary file. If we have mkdtemp() then our temp file + * lives in a temporary directory and we need to remove that directory + * too. + */ +int tempfile_unlink(char *name) +{ +#ifdef DEBUG + /* SDB says: Want to keep old temp files for examiniation when debugging */ + return 0; +#endif + +#ifdef HAVE_MKDTEMP + int e, rc2 = 0; + char *dname; + + unlink(name); + /* it is possible that the file was never created so it is OK if the + unlink fails */ + + /* now figure out the directory name to remove */ + e = strlen(name) - 1; + while (e > 0 && name[e] != PCB_DIR_SEPARATOR_C) { + e--; + } + + dname = strdup(name); + dname[e] = '\0'; + + /* + * at this point, e *should* point to the end of the directory part + * but lets make sure. + */ + if (e > 0) { + rc2 = rmdir(dname); + if (rc2 != 0) { + perror(dname); + } + + } + else { + fprintf(stderr, _("%s(): Unable to determine temp directory name from the temp file\n"), __FUNCTION__); + fprintf(stderr, "%s(): \"%s\"\n", __FUNCTION__, name); + rc2 = -1; + } + + /* name was allocated with malloc */ + free(dname); + free(name); + + /* + * FIXME - should also return -1 if the temp file exists and was not + * removed. + */ + if (rc2 != 0) { + return -1; + } + +#else + int rc = unlink(name); + + if (rc != 0) { + fprintf(stderr, _("Failed to unlink \"%s\"\n"), name); + free(name); + return rc; + } + free(name); + +#endif + + return 0; +} Index: trunk/src/compat_fs.h =================================================================== --- trunk/src/compat_fs.h (nonexistent) +++ trunk/src/compat_fs.h (revision 1407) @@ -0,0 +1,34 @@ +char *GetWorkingDirectory(char *); + +/* mkdir() implentation, mostly for plugins, which don't have our config.h. + * Check whether mkdir() is mkdir or _mkdir, and whether it takes one + * or two arguments. WIN32 mkdir takes one argument and POSIX takes + * two. + */ +#if HAVE_MKDIR +#if MKDIR_TAKES_ONE_ARG + /* MinGW32 */ +#include /* mkdir under MinGW only takes one argument */ +#define MKDIR(a, b) mkdir(a) +#else +#define MKDIR(a, b) mkdir(a, b) +#endif +#else +#if HAVE__MKDIR + /* plain Windows 32 */ +#define MKDIR(a, b) _mkdir(a) +#else +#define MKDIR(a, b) pcb_mkdir(a, b) +#define MKDIR_IS_PCBMKDIR 1 +int pcb_mkdir(const char *path, int mode); +#endif +#endif + +/* for access(), fork() and friends */ +#ifdef HAVE_UNISTD_H +#include +#endif + +int pcb_spawnvp(char **argv); +char *tempfile_name_new(char *name); +int tempfile_unlink(char *name); Index: trunk/src/compat_lrealpath.c =================================================================== --- trunk/src/compat_lrealpath.c (nonexistent) +++ trunk/src/compat_lrealpath.c (revision 1407) @@ -0,0 +1,154 @@ +/* Libiberty realpath. Like realpath, but more consistent behavior. + Based on gdb_realpath from GDB. + + Copyright 2003 Free Software Foundation, Inc. + + This file is part of the libiberty library. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* + +@deftypefn Replacement {const char*} lrealpath (const char *@var{name}) + +Given a pointer to a string containing a pathname, returns a canonical +version of the filename. Symlinks will be resolved, and ``.'' and ``..'' +components will be simplified. The returned value will be allocated using +@code{malloc}, or @code{NULL} will be returned on a memory allocation error. + +@end deftypefn + +*/ + +#include "config.h" +#include "compat_lrealpath.h" + +#ifdef HAVE_LIMITS_H +#include +#endif +#ifdef HAVE_STDLIB_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif +#ifdef HAVE_STRING_H +#include +#endif + +/* On GNU libc systems the declaration is only visible with _GNU_SOURCE. */ +#if defined(HAVE_CANONICALIZE_FILE_NAME) \ + && defined(NEED_DECLARATION_CANONICALIZE_FILE_NAME) +extern char *canonicalize_file_name(const char *); +#endif + +#if defined(HAVE_REALPATH) +#if defined (PATH_MAX) +#define REALPATH_LIMIT PATH_MAX +#else +#if defined (MAXPATHLEN) +#define REALPATH_LIMIT MAXPATHLEN +#endif +#endif +#else + /* cygwin has realpath, so it won't get here. */ +#if defined (_WIN32) +#define WIN32_LEAN_AND_MEAN +#include /* for GetFullPathName */ +#endif +#endif + +char *lrealpath(const char *filename) +{ + /* Method 1: The system has a compile time upper bound on a filename + path. Use that and realpath() to canonicalize the name. This is + the most common case. Note that, if there isn't a compile time + upper bound, you want to avoid realpath() at all costs. */ +#if defined(REALPATH_LIMIT) + { + char buf[REALPATH_LIMIT]; + const char *rp = realpath(filename, buf); + if (rp == NULL) + rp = filename; + return strdup(rp); + } + /* REALPATH_LIMIT */ + + /* Method 2: The host system (i.e., GNU) has the function + canonicalize_file_name() which malloc's a chunk of memory and + returns that, use that. */ +#elif defined(HAVE_CANONICALIZE_FILE_NAME) + { + char *rp = canonicalize_file_name(filename); + if (rp == NULL) + return strdup(filename); + else + return rp; + } + /* HAVE_CANONICALIZE_FILE_NAME */ + + /* Method 3: Now we're getting desperate! The system doesn't have a + compile time buffer size and no alternative function. Query the + OS, using pathconf(), for the buffer limit. Care is needed + though, some systems do not limit PATH_MAX (return -1 for + pathconf()) making it impossible to pass a correctly sized buffer + to realpath() (it could always overflow). On those systems, we + skip this. */ +#elif defined (HAVE_REALPATH) && defined (HAVE_UNISTD_H) + { + /* Find out the max path size. */ + long path_max = pathconf("/", _PC_PATH_MAX); + if (path_max > 0) { + /* PATH_MAX is bounded. */ + char *buf, *rp, *ret; + buf = (char *) malloc(path_max); + if (buf == NULL) + return NULL; + rp = realpath(filename, buf); + ret = strdup(rp ? rp : filename); + free(buf); + return ret; + } + } + /* HAVE_REALPATH && HAVE_UNISTD_H */ + + /* The MS Windows method. If we don't have realpath, we assume we + don't have symlinks and just canonicalize to a Windows absolute + path. GetFullPath converts ../ and ./ in relative paths to + absolute paths, filling in current drive if one is not given + or using the current directory of a specified drive (eg, "E:foo"). + It also converts all forward slashes to back slashes. */ +#elif defined (_WIN32) + { + char buf[MAX_PATH]; + char *basename; + DWORD len = GetFullPathName(filename, MAX_PATH, buf, &basename); + if (len == 0 || len > MAX_PATH - 1) + return strdup(filename); + else { + /* The file system is case-preserving but case-insensitive, + Canonicalize to lowercase, using the codepage associated + with the process locale. */ + CharLowerBuff(buf, len); + return strdup(buf); + } + } +#else + + /* This system is a lost cause, just duplicate the filename. */ + return strdup(filename); +#endif +} Index: trunk/src/compat_lrealpath.h =================================================================== --- trunk/src/compat_lrealpath.h (nonexistent) +++ trunk/src/compat_lrealpath.h (revision 1407) @@ -0,0 +1,7 @@ +#ifndef PCB_LREALPATH_H +#define PCH_LREALPATH_H + +/* A well-defined realpath () that is always compiled in. */ +char *lrealpath(const char *); + +#endif /* PCB_LREALPATH_H */ Index: trunk/src/compat_misc.c =================================================================== --- trunk/src/compat_misc.c (nonexistent) +++ trunk/src/compat_misc.c (revision 1407) @@ -0,0 +1,90 @@ +/* $Id$ */ + +/* + * COPYRIGHT + * + * PCB, interactive printed circuit board design + * Copyright (C) 2004, 2006 Dan McMahill + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ + +#include "config.h" + +#include +#include +#include "compat_misc.h" +#include "global.h" + +#ifdef HAVE_PWD_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +RCSID("$Id$"); + +#ifndef HAVE_EXPF +float expf(float x) +{ + return (float) exp((double) x); +} +#endif + +#ifndef HAVE_LOGF +float logf(float x) +{ + return (float) log((double) x); +} +#endif + +#ifndef HAVE_RANDOM +long random(void) +{ + return (long) rand(); +} +#endif + +const char *get_user_name(void) +{ +#ifdef HAVE_GETPWUID + static struct passwd *pwentry; + + int len; + char *comma, *gecos, *fab_author; + + /* ID the user. */ + pwentry = getpwuid(getuid()); + gecos = pwentry->pw_gecos; + comma = strchr(gecos, ','); + if (comma) + len = comma - gecos; + else + len = strlen(gecos); + fab_author = (char *) malloc(len + 1); + if (!fab_author) { + perror("pcb: out of memory.\n"); + exit(-1); + } + memcpy(fab_author, gecos, len); + fab_author[len] = 0; +#else + return "Unknown"; +#endif + +} Index: trunk/src/compat_misc.h =================================================================== --- trunk/src/compat_misc.h (nonexistent) +++ trunk/src/compat_misc.h (revision 1407) @@ -0,0 +1,46 @@ +/* $Id$ */ + +/* + * COPYRIGHT + * + * PCB, interactive printed circuit board design + * Copyright (C) 2004 Dan McMahill + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ + +#ifndef PCB_COMPAT_MISC_H +#define PCH_COMPAT_MISC_H + +#include "config.h" + +#include + +#ifndef HAVE_EXPF +float expf(float); +#endif + +#ifndef HAVE_LOGF +float logf(float); +#endif + +#ifndef HAVE_RANDOM +long random(void); +#endif + +const char *get_user_name(void); + +#endif /* PCB_COMPAT_MISC_H */ Index: trunk/src/draw.c =================================================================== --- trunk/src/draw.c (revision 1406) +++ trunk/src/draw.c (revision 1407) @@ -35,7 +35,7 @@ #include "global.h" /*#include "clip.h"*/ -#include "compat.h" +#include "compat_misc.h" #include "crosshair.h" #include "data.h" #include "draw.h" Index: trunk/src/file.c =================================================================== --- trunk/src/file.c (revision 1406) +++ trunk/src/file.c (revision 1407) @@ -95,7 +95,7 @@ #include "remove.h" #include "set.h" #include "strflags.h" -#include "portability.h" +#include "compat_fs.h" #include "libpcb_fp.h" #include "paths.h" #include "rats_patch.h" Index: trunk/src/hid_attrib.c =================================================================== --- trunk/src/hid_attrib.c (revision 1406) +++ trunk/src/hid_attrib.c (revision 1407) @@ -6,7 +6,7 @@ #include "hid_helper.h" #include "misc.h" #include "pcb-printf.h" -#include "portability.h" +#include "compat_fs.h" #include "error.h" HID_AttrNode *hid_attr_nodes = 0; Index: trunk/src/hid_init.c =================================================================== --- trunk/src/hid_init.c (revision 1406) +++ trunk/src/hid_init.c (revision 1407) @@ -24,17 +24,20 @@ #include "hid_nogui.h" /* for dlopen() and friends on windows */ -#include "compat.h" +#include "compat_dl.h" #include "error.h" #include "global.h" #include "misc.h" -#include "portability.h" /* MKDIR() */ #include "pcb-printf.h" #include "plugins.h" #include "hid_attrib.h" #include "hid_flags.h" +/* for MKDIR() */ +#include "compat_fs.h" + + RCSID("$Id$"); HID **hid_list = 0; Index: trunk/src/libpcb_fp.c =================================================================== --- trunk/src/libpcb_fp.c (revision 1406) +++ trunk/src/libpcb_fp.c (revision 1407) @@ -74,7 +74,7 @@ #endif #include "error.h" -#include "portability.h" +#include "compat_fs.h" #include "libpcb_fp.h" Index: trunk/src/main.c =================================================================== --- trunk/src/main.c (revision 1406) +++ trunk/src/main.c (revision 1407) @@ -52,7 +52,7 @@ #include "set.h" #include "action_helper.h" #include "misc.h" -#include "lrealpath.h" +#include "compat_lrealpath.h" #include "free_atexit.h" #include "polygon.h" #include "pcb-printf.h" Index: trunk/src/misc.c =================================================================== --- trunk/src/misc.c (revision 1406) +++ trunk/src/misc.c (revision 1407) @@ -71,7 +71,7 @@ #include "set.h" #include "undo.h" #include "action_helper.h" -#include "portability.h" +#include "compat_fs.h" #include "hid_actions.h" #include "hid_init.h" Index: trunk/src/set.c =================================================================== --- trunk/src/set.c (revision 1406) +++ trunk/src/set.c (revision 1407) @@ -44,7 +44,7 @@ #include "action_helper.h" #include "buffer.h" -#include "compat.h" +#include "compat_misc.h" #include "crosshair.h" #include "data.h" #include "draw.h" Index: trunk/src/strflags.c =================================================================== --- trunk/src/strflags.c (revision 1406) +++ trunk/src/strflags.c (revision 1407) @@ -38,7 +38,7 @@ #include "globalconst.h" #include "global.h" -#include "compat.h" +#include "compat_misc.h" #include "const.h" #include "strflags.h" Index: trunk/src_plugins/autoplace/autoplace.c =================================================================== --- trunk/src_plugins/autoplace/autoplace.c (revision 1406) +++ trunk/src_plugins/autoplace/autoplace.c (revision 1407) @@ -46,7 +46,7 @@ #include "autoplace.h" #include "box.h" -#include "compat.h" +#include "compat_misc.h" #include "data.h" #include "draw.h" #include "error.h" Index: trunk/src_plugins/dbus/dbus.c =================================================================== --- trunk/src_plugins/dbus/dbus.c (revision 1406) +++ trunk/src_plugins/dbus/dbus.c (revision 1407) @@ -33,7 +33,7 @@ #include "data.h" /* For lrealpath */ -#include "lrealpath.h" +#include "compat_lrealpath.h" #define PCB_DBUS_CANONICAL_NAME "org.seul.geda.pcb" Index: trunk/src_plugins/hid_gtk/gui-command-window.c =================================================================== --- trunk/src_plugins/hid_gtk/gui-command-window.c (revision 1406) +++ trunk/src_plugins/hid_gtk/gui-command-window.c (revision 1407) @@ -33,7 +33,6 @@ #include "gui.h" #include -#include "command.h" #include "crosshair.h" #include "hid_actions.h" Index: trunk/src_plugins/hid_gtk/gui-config.c =================================================================== --- trunk/src_plugins/hid_gtk/gui-config.c (revision 1406) +++ trunk/src_plugins/hid_gtk/gui-config.c (revision 1407) @@ -43,12 +43,14 @@ #include "error.h" #include "draw.h" #include "misc.h" -#include "portability.h" /* MKDIR() */ #include "pcb-printf.h" #include "set.h" #include "hid_attrib.h" +/* for MKDIR() */ +#include "compat_fs.h" + #if 0 #include #endif Index: trunk/src_plugins/hid_gtk/gui-dialog.c =================================================================== --- trunk/src_plugins/hid_gtk/gui-dialog.c (revision 1406) +++ trunk/src_plugins/hid_gtk/gui-dialog.c (revision 1407) @@ -34,7 +34,6 @@ #include "data.h" #include "gui.h" -#include "command.h" RCSID("$Id$"); Index: trunk/src_plugins/hid_gtk/gui-top-window.c =================================================================== --- trunk/src_plugins/hid_gtk/gui-top-window.c (revision 1406) +++ trunk/src_plugins/hid_gtk/gui-top-window.c (revision 1407) @@ -72,7 +72,6 @@ #include "action_helper.h" #include "buffer.h" #include "change.h" -#include "command.h" #include "copy.h" #include "create.h" #include "crosshair.h" Index: trunk/src_plugins/hid_lesstif/dialogs.c =================================================================== --- trunk/src_plugins/hid_lesstif/dialogs.c (revision 1406) +++ trunk/src_plugins/hid_lesstif/dialogs.c (revision 1407) @@ -9,7 +9,7 @@ #include "xincludes.h" -#include "compat.h" +#include "compat_misc.h" #include "global.h" #include "data.h" #include "crosshair.h" Index: trunk/src_plugins/hid_lesstif/library.c =================================================================== --- trunk/src_plugins/hid_lesstif/library.c (revision 1406) +++ trunk/src_plugins/hid_lesstif/library.c (revision 1407) @@ -9,7 +9,7 @@ #include "xincludes.h" -#include "compat.h" +#include "compat_misc.h" #include "global.h" #include "data.h" #include "misc.h" Index: trunk/src_plugins/hid_lesstif/netlist.c =================================================================== --- trunk/src_plugins/hid_lesstif/netlist.c (revision 1406) +++ trunk/src_plugins/hid_lesstif/netlist.c (revision 1407) @@ -9,7 +9,7 @@ #include "xincludes.h" -#include "compat.h" +#include "compat_misc.h" #include "global.h" #include "data.h" Index: trunk/src_plugins/hid_lesstif/styles.c =================================================================== --- trunk/src_plugins/hid_lesstif/styles.c (revision 1406) +++ trunk/src_plugins/hid_lesstif/styles.c (revision 1407) @@ -9,7 +9,7 @@ #include "xincludes.h" -#include "compat.h" +#include "compat_misc.h" #include "global.h" #include "data.h" #include "set.h" Index: trunk/src_plugins/import_sch/import_sch.c =================================================================== --- trunk/src_plugins/import_sch/import_sch.c (revision 1406) +++ trunk/src_plugins/import_sch/import_sch.c (revision 1407) @@ -34,7 +34,7 @@ #include "plugins.h" #include "misc.h" -#include "portability.h" +#include "compat_fs.h" #include "pcb-printf.h" #include "remove.h" #include "rats.h"