ngraph-gtk-6.06.13/0000755000175000017500000000000012241600066010727 500000000000000ngraph-gtk-6.06.13/src/0000755000175000017500000000000012241600064011514 500000000000000ngraph-gtk-6.06.13/src/shellux.h0000644000175000017500000000217012241111703013266 00000000000000/* * $Id: shellux.h,v 1.1.1.1 2008-05-29 09:37:33 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ int cmtrue(struct nshell *nshell,int argc,char **argv); int cmfalse(struct nshell *nshell,int argc,char **argv); int cmtest(struct nshell *nshell,int argc,char **argv); int cmsleep(struct nshell *nshell,int argc,char **argv); ngraph-gtk-6.06.13/src/spline.h0000644000175000017500000000347212241111703013102 00000000000000/* * $Id: spline.h,v 1.1.1.1 2008-05-29 09:37:33 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #define SPLCNDAUTO 0 #define SPLCND1STDIF 1 #define SPLCND2NDDIF 2 #define SPLCNDPERIODIC 3 int spline(double x[],double y[],double c1[],double c2[],double c3[], int num,int bc0,int bc1,double df0,double df1); void bspline(int edge,double x[],double c[]); void splinedif(double d,double c[], double *dx,double *dy,double *ddx,double *ddy,void *local); void splinedifxy(double d,double c[], double *dx,double *dy,double *ddx,double *ddy,void *local); void bsplinedif(double d,double c[], double *dx,double *dy,double *ddx,double *ddy,void *local); void splineint(double d,double c[],double x0,double y0,double *x,double *y, void *local); void splineintxy(double d,double c[],double x0,double y0,double *x,double *y, void *local); void bsplineint(double d,double c[],double x0,double y0,double *x,double *y, void *local); ngraph-gtk-6.06.13/src/odraw.c0000644000175000017500000001302512241111703012712 00000000000000/* * $Id: odraw.c,v 1.14 2009-11-16 09:13:04 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include "object.h" #include "ioutil.h" #include "gra.h" #include "oroot.h" #include "odraw.h" #include "nstring.h" #define NAME "draw" #define PARENT "object" #define OVERSION "1.00.00" #define ERRILGC 100 #define ERRGCOPEN 101 static char *drawerrorlist[]={ "illegal graphics context", "graphics context is not opened" }; #define ERRNUM (sizeof(drawerrorlist) / sizeof(*drawerrorlist)) char *pathchar[]={ N_("unchange"), N_("full"), N_("relative"), N_("base"), NULL, }; char *capchar[]={ "butt", "round", "projecting", NULL }; char *joinchar[]={ N_("miter"), N_("round"), N_("bevel"), NULL }; char *fontchar[]={ "Sans-serif", "Serif", "Monospace", NULL }; char *arrowchar[]={ N_("none"), N_("end"), N_("begin"), N_("both"), NULL }; char *intpchar[]={ N_("spline"), N_("spline_close"), N_("bspline"), N_("bspline_close"), NULL }; static int drawinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int clip,redrawf,alpha; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; clip=TRUE; redrawf=TRUE; alpha=255; if (_putobj(obj,"clip",inst,&clip)) return 1; if (_putobj(obj,"redraw_flag",inst,&redrawf)) return 1; if (_putobj(obj,"A",inst,&alpha)) return 1; return 0; } static int drawdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int drawdraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC,hidden; GC=*(int *)(argv[2]); if (GRAopened(GC)<0) { error3(obj,ERRGCOPEN,GC); return 1; } _getobj(obj,"hidden",inst,&hidden); if (hidden) GC=-1; if (_putobj(obj,"GC",inst,&GC)) return 1; return 0; } int pathsave(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array,*array2; int anum; char **adata; int i,j; char *argv2[4]; char *file,*name,*valstr; int path; GString *s; array=(struct narray *)argv[2]; anum=arraynum(array); adata=arraydata(array); for (j=0;jstr); g_string_append_c(s, '\t'); g_string_append(s, argv[0]); g_string_append(s, "::file="); valstr = getvaluestr(obj, "file", &name, FALSE, TRUE); if (valstr == NULL) { g_free(s); goto errexit; } g_string_append(s, valstr); g_free(valstr); g_string_append_c(s, '\n'); g_free(name); g_free(rval->str); rval->str = g_string_free(s, FALSE); return 0; errexit: g_free(name); g_free(rval->str); rval->str=NULL; return 1; } int clear_bbox(struct objlist *obj, N_VALUE *inst) { struct narray *array; if (inst == NULL) return 1; if (_getobj(obj, "bbox", inst, &array)) return 1; arrayfree(array); if (_putobj(obj, "bbox", inst, NULL)) return 1; return 0; } static struct objtable draw[] = { {"init",NVFUNC,0,drawinit,NULL,0}, {"done",NVFUNC,0,drawdone,NULL,0}, {"GC",NINT,0,NULL,NULL,0}, {"hidden",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"draw",NVFUNC,NREAD|NEXEC,drawdraw,"i",0}, {"redraw",NVFUNC,NREAD|NEXEC,drawdraw,"i",0}, {"R",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"G",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"B",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"A",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"clip",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"redraw_flag",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"redraw_num",NINT,0,NULL,NULL,0}, }; #define TBLNUM (sizeof(draw) / sizeof(*draw)) void * adddraw(void) /* adddraw() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,draw,ERRNUM,drawerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/oiarray.c0000644000175000017500000003453412241111703013254 00000000000000/* * $Id: oiarray.c,v 1.6 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include "mathfn.h" #include "object.h" #include "oiarray.h" #include "math/math_equation.h" #define NAME "iarray" #define PARENT "object" #define OVERSION "1.00.00" #define ERRILNAME 100 #define ERROUTBOUND 101 static char *iarrayerrorlist[]={ "", "array index is out of array bounds.", }; #define ERRNUM (sizeof(iarrayerrorlist) / sizeof(*iarrayerrorlist)) static int iarrayinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int iarraydone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } int oarray_get_index(struct narray *array, int i) { if (i < 0) { i += arraynum(array); } return i; } static int iarrayget(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num,*po; num=*(int *)argv[2]; _getobj(obj,"@",inst,&array); num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } po=(int *)arraynget(array,num); if (po==NULL) { error(obj, ERROUTBOUND); return 1; } rval->i=*po; return 0; } static int iarrayput(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; int val; num=*(int *)argv[2]; val=*(int *)argv[3]; _getobj(obj,"@",inst,&array); num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } if (arrayput(array,&val,num)==NULL) return 1; return 0; } struct narray * oarray_get_array(struct objlist *obj, N_VALUE *inst, unsigned int size) { struct narray *array; _getobj(obj, "@", inst, &array); if (array == NULL) { array = arraynew(size); if (array == NULL) { return NULL; } if (_putobj(obj, "@", inst, array)) { arrayfree(array); return NULL; } } return array; } static int iarrayadd(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int val; val=*(int *)argv[2]; array = oarray_get_array(obj, inst, sizeof(int)); if (array==NULL) { return 1; } if (arrayadd(array,&val)==NULL) return 1; return 0; } static int iarraypop(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int val, n; rval->i = 0; _getobj(obj,"@",inst,&array); if (array == NULL) { return 1; } n = arraynum(array) - 1; if (n < 0) { return 1; } val = arraynget_int(array, n); if (arrayndel(array, n) == NULL) { return 1; } if (arraynum(array) == 0) { arrayfree(array); if (_putobj(obj, "@", inst, NULL)) { return 1; } } rval->i = val; return 0; } static int iarrayins(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; int val; num=*(int *)argv[2]; val=*(int *)argv[3]; array = oarray_get_array(obj, inst, sizeof(int)); if (array == NULL) { return 1; } num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } if (arrayins(array, &val, num)==NULL) { return 1; } return 0; } static int iarrayunshift(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int val; val = * (int *) argv[2]; array = oarray_get_array(obj, inst, sizeof(int)); if (array == NULL) { return 1; } if (arrayins(array, &val, 0)==NULL) { return 1; } return 0; } static int iarrayshift(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int val; rval->i = 0; _getobj(obj,"@",inst,&array); if (array == NULL) { return 1; } val = arraynget_int(array, 0); if (arrayndel(array, 0) == NULL) { return 1; } if (arraynum(array) == 0) { arrayfree(array); if (_putobj(obj, "@", inst, NULL)) { return 1; } } rval->i = val; return 0; } static int iarraydel(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; num=*(int *)argv[2]; _getobj(obj,"@",inst,&array); if (array==NULL) return 1; num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } if (arrayndel(array,num)==NULL) { error(obj, ERROUTBOUND); return 1; } if (arraynum(array)==0) { arrayfree(array); if (_putobj(obj,"@",inst,NULL)) return 1; } return 0; } int oarray_num(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); rval->i = arraynum(array); return 0; } int oarray_seq(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; GString *str; int i, n; g_free(rval->str); rval->str = NULL; if (_getobj(obj, "@", inst, &array)) { return 1; } n = arraynum(array); if (n == 0) { return 0; } str = g_string_sized_new(64); if (str == NULL) { return 0; } for (i = 0; i < n; i++) { g_string_append_printf(str, "%d%s", i, (i == n - 1) ? "" : " "); } rval->str = g_string_free(str, FALSE); return 0; } int oarray_reverse_seq(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; GString *str; int i, n; g_free(rval->str); rval->str = NULL; if (_getobj(obj, "@", inst, &array)) { return 1; } n = arraynum(array); if (n == 0) { return 0; } str = g_string_sized_new(64); if (str == NULL) { return 0; } for (i = 0; i < n; i++) { g_string_append_printf(str, "%d%s", n - i - 1, (i == n - 1) ? "" : " "); } rval->str = g_string_free(str, FALSE); return 0; } static int iarraysort(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); arraysort_int(array); return 0; } static int iarrayrsort(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); arrayrsort_int(array); return 0; } static int iarrayuniq(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); arrayuniq_int(array); return 0; } static int iarrayjoin(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; GString *str; int i, n; char *sep, *ptr; int val; g_free(rval->str); rval->str = NULL; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } ptr = (char *) argv[2]; if (ptr) { sep = g_strcompress(ptr); } else { sep = g_strdup(","); } if (sep == NULL) { return 1; } str = g_string_sized_new(64); if (str == NULL) { g_free(sep); return 1; } for (i = 0; i < n; i++) { val = arraynget_int(array, i); g_string_append_printf(str, "%d%s", val, (i == n - 1) ? "" : sep); } rval->str = g_string_free(str, FALSE); g_free(sep); return 0; } int oarray_reverse(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; if (_getobj(obj, "@", inst, &array)) { return 1; } array_reverse(array); return 0; } int oarray_slice(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int start, len; start = * (int *) argv[2]; len = * (int *) argv[3]; if (_getobj(obj, "@", inst, &array)) { return 1; } if (array_slice(array, start, len) == NULL) { return 1; } return 0; } static double calc_sum(const int *d, int n) { double sum; int i; sum = 0; for (i = 0; i < n; i++) { sum += d[i]; } return sum; } static double calc_square_sum(const int *d, int n) { double sum; int i; sum = 0; for (i = 0; i < n; i++) { sum += d[i] * d[i]; } return sum; } static int iarray_sum(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int n, *data; double val; rval->i = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } data = arraydata(array); val = calc_sum(data, n); if (val <= G_MININT || val >= G_MAXINT) { return 1; } rval->i = nround(val); return 0; } static int iarray_average(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int n, *data; double val; rval->d = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } data = arraydata(array); val = calc_sum(data, n); rval->d = val / n; return 0; } static int iarray_rms(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int n, *data; double val; rval->d = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } data = arraydata(array); val = calc_square_sum(data, n); rval->d = sqrt(val / n); return 0; } static int iarray_sdev(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int n, *data; double sum, ssum, val; rval->d = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } data = arraydata(array); sum = calc_sum(data, n); ssum = calc_square_sum(data, n); sum /= n; val = ssum / n - sum * sum; rval->d = sqrt(val); return 0; } static int iarray_min(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int i, n, *data, val; rval->i = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 1; } data = arraydata(array); val = data[0]; for (i = 1; i < n; i++) { if (data[i] < val) { val = data[i]; } } rval->i = val; return 0; } static int iarray_max(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int i, n, *data, val; rval->i = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 1; } data = arraydata(array); val = data[0]; for (i = 1; i < n; i++) { if (data[i] > val) { val = data[i]; } } rval->i = val; return 0; } MathEquation * oarray_create_math(struct objlist *obj, const char *fild, const char *eqn) { MathEquation *code; int rcode; code = math_equation_basic_new(); if (code == NULL) { return NULL; } if (math_equation_add_var(code, "X") != 0) { math_equation_free(code); return NULL; } if (math_equation_add_var(code, "I") != 1) { math_equation_free(code); return NULL; } rcode = math_equation_parse(code, eqn); if (rcode) { char *err_msg; err_msg = math_err_get_error_message(code, eqn, rcode); error22(obj, ERRUNKNOWN, fild, err_msg); g_free(err_msg); math_equation_free(code); return NULL; } math_equation_optimize(code); return code; } static int iarray_map(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int i, n, *data; MathEquation *code; MathValue val; if (argv[2] == NULL) { return 0; } _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 1; } code = oarray_create_math(obj, argv[1], argv[2]); if (code == NULL) { return 1; } data = arraydata(array); for (i = 0; i < n; i++) { val.val = data[i]; val.type = MATH_VALUE_NORMAL; math_equation_set_var(code, 0, &val); val.val = i; val.type = MATH_VALUE_NORMAL; math_equation_set_var(code, 1, &val); math_equation_calculate(code, &val); data[i] = val.val; } math_equation_free(code); return 0; } static struct objtable oiarray[] = { {"init",NVFUNC,NEXEC,iarrayinit,NULL,0}, {"done",NVFUNC,NEXEC,iarraydone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"@",NIARRAY,NREAD|NWRITE,NULL,NULL,0}, {"get",NIFUNC,NREAD|NEXEC,iarrayget,"i",0}, {"put",NVFUNC,NREAD|NEXEC,iarrayput,"ii",0}, {"add",NVFUNC,NREAD|NEXEC,iarrayadd,"i",0}, {"push",NVFUNC,NREAD|NEXEC,iarrayadd,"i",0}, {"pop",NIFUNC,NREAD|NEXEC,iarraypop,"",0}, {"ins",NVFUNC,NREAD|NEXEC,iarrayins,"ii",0}, {"unshift",NVFUNC,NREAD|NEXEC,iarrayunshift,"i",0}, {"shift",NIFUNC,NREAD|NEXEC,iarrayshift,"",0}, {"del",NVFUNC,NREAD|NEXEC,iarraydel,"i",0}, {"join",NSFUNC,NREAD|NEXEC,iarrayjoin,"s",0}, {"sort",NVFUNC,NREAD|NEXEC,iarraysort,"",0}, {"rsort",NVFUNC,NREAD|NEXEC,iarrayrsort,"",0}, {"uniq",NVFUNC,NREAD|NEXEC,iarrayuniq,"",0}, {"sum", NIFUNC, NREAD|NEXEC, iarray_sum, "", 0}, {"average", NDFUNC, NREAD|NEXEC, iarray_average, "", 0}, {"sdev", NDFUNC, NREAD|NEXEC, iarray_sdev, "", 0}, {"RMS", NDFUNC, NREAD|NEXEC, iarray_rms, "", 0}, {"min", NIFUNC, NREAD|NEXEC, iarray_min, "", 0}, {"max", NIFUNC, NREAD|NEXEC, iarray_max, "", 0}, {"num", NIFUNC, NREAD|NEXEC, oarray_num, "", 0}, {"seq", NSFUNC, NREAD|NEXEC, oarray_seq, "", 0}, {"rseq", NSFUNC, NREAD|NEXEC, oarray_reverse_seq, "", 0}, {"reverse", NVFUNC, NREAD|NEXEC, oarray_reverse, "", 0}, {"slice", NVFUNC, NREAD|NEXEC, oarray_slice, "ii", 0}, {"map", NVFUNC, NREAD|NEXEC, iarray_map, "s", 0}, }; #define TBLNUM (sizeof(oiarray) / sizeof(*oiarray)) void * addiarray(void) { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,oiarray,ERRNUM,iarrayerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/omark.c0000644000175000017500000002705712241111703012721 00000000000000/* * $Id: omark.c,v 1.16 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include "object.h" #include "gra.h" #include "oroot.h" #include "odraw.h" #include "olegend.h" #define NAME "mark" #define PARENT "legend" #define OVERSION "1.00.00" #define MODIFY_MARK_TYPE 0 static char *markerrorlist[]={ "" }; #define ERRNUM (sizeof(markerrorlist) / sizeof(*markerrorlist)) static int markinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int size,width,r2,g2,b2,a2; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; size=200; width=40; r2=255; g2=255; b2=255; a2=255; if (_putobj(obj,"size",inst,&size)) return 1; if (_putobj(obj,"width",inst,&width)) return 1; if (_putobj(obj,"R2",inst,&r2)) return 1; if (_putobj(obj,"G2",inst,&g2)) return 1; if (_putobj(obj,"B2",inst,&b2)) return 1; if (_putobj(obj,"A2",inst,&a2)) return 1; return 0; } static int markdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int markdraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; int x,y,type,size,width,fr,fg,fb,fa,br,bg,bb,ba,w,h; struct narray *style; int snum,*sdata; int clip,zoom; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"GC",inst,&GC); if (GC<0) return 0; _getobj(obj,"R",inst,&fr); _getobj(obj,"G",inst,&fg); _getobj(obj,"B",inst,&fb); _getobj(obj,"A",inst,&fa); _getobj(obj,"R2",inst,&br); _getobj(obj,"G2",inst,&bg); _getobj(obj,"B2",inst,&bb); _getobj(obj,"A2",inst,&ba); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"type",inst,&type); _getobj(obj,"size",inst,&size); _getobj(obj,"width",inst,&width); _getobj(obj,"style",inst,&style); _getobj(obj,"clip",inst,&clip); snum=arraynum(style); sdata=arraydata(style); GRAregion(GC,&w,&h,&zoom); GRAview(GC,0,0,w*10000.0/zoom,h*10000.0/zoom,clip); GRAlinestyle(GC,snum,sdata,width,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); GRAmark(GC,type,x,y,size,fr,fg,fb,fa,br,bg,bb,ba); GRAaddlist(GC,obj,inst,(char *)argv[0],(char *)argv[1]); return 0; } static int markbbox(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int minx,miny,maxx,maxy; int x,y,size,width; struct narray *array; array=rval->array; if (arraynum(array)!=0) return 0; _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"size",inst,&size); _getobj(obj,"width",inst,&width); if ((array==NULL) && ((array=arraynew(sizeof(int)))==NULL)) return 1; size+=4*width; minx=x-size/2; miny=y-size/2; maxx=x+size/2; maxy=y+size/2; arrayins(array,&maxy,0); arrayins(array,&maxx,0); arrayins(array,&miny,0); arrayins(array,&minx,0); if (arraynum(array)==0) { arrayfree(array); rval->array = NULL; return 1; } rval->array=array; return 0; } static int markmove(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x,y; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); x+=*(int *)argv[2]; y+=*(int *)argv[3]; if (_putobj(obj,"x",inst,&x)) return 1; if (_putobj(obj,"y",inst,&y)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } #if MODIFY_MARK_TYPE static int rotate_cw(int mark) { switch (mark) { case 6: case 16: case 26: case 74: return mark + 3; case 7: case 17: case 27: case 72: case 78: case 75: return mark + 1; case 8: case 9: case 18: case 19: case 28: case 29: case 76: case 77: return mark - 2; case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: return mark + 30; case 38: case 39: case 48: case 49: return mark + 20; case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: return mark + 10; case 50: case 51: case 52: case 53: case 54: case 55: case 58: case 59: case 60: case 61: case 62: case 63: case 64: case 65: return mark - 20; case 56: case 66: case 68: return mark - 19; case 57: case 67: case 69: return mark - 21; case 73: case 79: return mark - 1; default: return mark; } } static int v_flip(int mark) { switch (mark) { case 8: case 18: case 28: case 48: case 56: case 66: case 74: return mark + 1; case 9: case 19: case 29: case 49: case 57: case 67: case 75: return mark - 1; case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: return mark + 10; case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: return mark - 10; default: return mark; } } static int h_flip(int mark) { switch (mark) { case 6: case 16: case 26: case 36: case 46: case 68: case 76: return mark + 1; case 7: case 17: case 27: case 37: case 47: case 69: case 77: return mark - 1; case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: return mark + 10; case 60: case 61: case 62: case 63: case 64: case 65: case 66: case 67: return mark - 10; default: return mark; } } #endif /* MODIFY_MARK_TYPE */ static int markrotate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int angle, use_pivot, px, py, x, y; #if MODIFY_MARK_TYPE int type; #endif angle = *(int *) argv[2]; use_pivot = * (int *) argv[3]; px = *(int *) argv[4]; py = *(int *) argv[5]; angle = *(int *) argv[2]; #if MODIFY_MARK_TYPE angle %= 36000; if (angle < 0) angle += 36000; _getobj(obj, "type", inst, &type); switch (angle) { case 9000: type = rotate_cw(type); case 18000: type = rotate_cw(type); case 27000: type = rotate_cw(type); break; } _putobj(obj, "type", inst, &type); #endif if (! use_pivot) return 0; _getobj(obj, "x", inst, &x); _getobj(obj, "y", inst, &y); rotate(px, py, angle, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); if (clear_bbox(obj, inst)) return 1; return 0; } static int markflip(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x, y, p, use_pivot; enum FLIP_DIRECTION dir; #if MODIFY_MARK_TYPE int type; #endif dir = (* (int *) argv[2] == FLIP_DIRECTION_HORIZONTAL) ? FLIP_DIRECTION_HORIZONTAL : FLIP_DIRECTION_VERTICAL; use_pivot = * (int *) argv[3]; #if MODIFY_MARK_TYPE _getobj(obj, "type", inst, &type); switch (dir) { case FLIP_DIRECTION_VERTICAL: type = v_flip(type); break; case FLIP_DIRECTION_HORIZONTAL: type = h_flip(type); break; } _putobj(obj, "type", inst, &type); #endif if (! use_pivot) return 0; _getobj(obj, "x", inst, &x); _getobj(obj, "y", inst, &y); p = *(int *) argv[4]; flip(p, dir, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); if (clear_bbox(obj, inst)) return 1; return 0; } static int markzoom(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int i,x,y,size,refx,refy,width,snum,*sdata,preserve_width; double zoom; struct narray *style; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; zoom=(*(int *)argv[2])/10000.0; refx=(*(int *)argv[3]); refy=(*(int *)argv[4]); preserve_width = (*(int *)argv[5]); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"size",inst,&size); _getobj(obj,"width",inst,&width); _getobj(obj,"style",inst,&style); snum=arraynum(style); sdata=arraydata(style); x=(x-refx)*zoom+refx; y=(y-refy)*zoom+refy; size=size*zoom; if (! preserve_width) { width=width*zoom; for (i=0;ii=FALSE; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; if (_exeobj(obj,"bbox",inst,0,NULL)) return 1; _getobj(obj,"bbox",inst,&array); if (array==NULL) return 0; minx=*(int *)(argv[2]); miny=*(int *)(argv[3]); maxx=*(int *)(argv[4]); maxy=*(int *)(argv[5]); err=*(int *)(argv[6]); if (arraynum(array)<4) return 1; bminx=arraynget_int(array,0); bminy=arraynget_int(array,1); bmaxx=arraynget_int(array,2); bmaxy=arraynget_int(array,3); if ((minx==maxx) && (miny==maxy)) { bminx-=err; bminy-=err; bmaxx+=err; bmaxy+=err; if ((bminx<=minx) && (minx<=bmaxx) && (bminy<=miny) && (miny<=bmaxy)) rval->i=TRUE; } else { if ((minx<=bminx) && (bminx<=maxx) && (minx<=bmaxx) && (bmaxx<=maxx) && (miny<=bminy) && (bminy<=maxy) && (miny<=bmaxy) && (bmaxy<=maxy)) rval->i=TRUE; } return 0; } static struct objtable mark[] = { {"init",NVFUNC,NEXEC,markinit,NULL,0}, {"done",NVFUNC,NEXEC,markdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"x",NINT,NREAD|NWRITE,markgeometry,NULL,0}, {"y",NINT,NREAD|NWRITE,markgeometry,NULL,0}, {"size",NINT,NREAD|NWRITE,markgeometry,NULL,0}, {"type",NINT,NREAD|NWRITE,oputmarktype,NULL,0}, {"R2",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"G2",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"B2",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"A2",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"width",NINT,NREAD|NWRITE,markgeometry,NULL,0}, {"style",NIARRAY,NREAD|NWRITE,oputstyle,NULL,0}, {"draw",NVFUNC,NREAD|NEXEC,markdraw,"i",0}, {"bbox",NIAFUNC,NREAD|NEXEC,markbbox,"",0}, {"move",NVFUNC,NREAD|NEXEC,markmove,"ii",0}, {"rotate",NVFUNC,NREAD|NEXEC,markrotate,"iiii",0}, {"flip",NVFUNC,NREAD|NEXEC,markflip,"iii",0}, {"zooming",NVFUNC,NREAD|NEXEC,markzoom,"iiii",0}, {"match",NBFUNC,NREAD|NEXEC,markmatch,"iiiii",0}, }; #define TBLNUM (sizeof(mark) / sizeof(*mark)) void * addmark(void) /* addmark() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,mark,ERRNUM,markerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/oarc.h0000644000175000017500000000022012241111706012523 00000000000000#ifndef OARC_HEADER #define OARC_HEADER enum arc_point_type { ARC_POINT_TYPE_R, ARC_POINT_TYPE_ANGLE1, ARC_POINT_TYPE_ANGLE2, }; #endif ngraph-gtk-6.06.13/src/oaxis.c0000644000175000017500000027233612241111703012735 00000000000000/* --*-coding:utf-8-*-- */ #include #include #include #include #include #include #include #include "common.h" #include "nhash.h" #include "ntime.h" #include "ioutil.h" #include "object.h" #include "mathfn.h" #include "spline.h" #include "gra.h" #include "oroot.h" #include "odraw.h" #include "olegend.h" #include "axis.h" #include "nstring.h" #include "nconfig.h" #define NAME "axis" #define PARENT "draw" #define OVERSION "1.00.00" #define AXIS_HISTORY_NUM 30 #define INST_ARRAY_NUM 4 #define ERRAXISTYPE 100 #define ERRAXISHEAD 101 #define ERRAXISGAUGE 102 #define ERRAXISSPL 103 #define ERRMINMAX 104 #define ERRFORMAT 105 #define ERRGROUPING 106 static char *axiserrorlist[]={ "illegal axis type.", "illegal arrow/wave type.", "illegal gauge type.", "error: spline interpolation.", "illegal value of min/max/inc.", "illegal format.", "illegal grouping type.", }; #define ERRNUM (sizeof(axiserrorlist) / sizeof(*axiserrorlist)) enum AXIS_TYPE { AXIS_TYPE_SINGLE, AXIS_TYPE_FRAME, AXIS_TYPE_SECTION, AXIS_TYPE_CROSS, }; char *axistypechar[]={ N_("linear"), N_("log"), N_("inverse"), N_("MJD"), NULL }; static char *axisgaugechar[]={ N_("none"), N_("both"), N_("left"), N_("right"), NULL }; enum AXIS_GAUGE { AXIS_GAUGE_NONE, AXIS_GAUGE_BOTH, AXIS_GAUGE_LEFT, AXIS_GAUGE_RIGHT, }; static char *axisnumchar[]={ N_("none"), N_("left"), N_("right"), NULL }; enum AXIS_NUM_POS { AXIS_NUM_POS_NONE, AXIS_NUM_POS_LEFT, AXIS_NUM_POS_RIGHT, }; static char *anumalignchar[]={ N_("center"), N_("left"), N_("right"), N_("point"), NULL }; enum AXIS_NUM_ALIGN { AXIS_NUM_ALIGN_CENTER, AXIS_NUM_ALIGN_LEFT, AXIS_NUM_ALIGN_RIGHT, AXIS_NUM_ALIGN_POINT, }; static char *anumdirchar[]={ N_("horizontal"), N_("parallel1"), N_("parallel2"), N_("normal1"), N_("normal2"), N_("oblique1"), N_("oblique2"), "\0normal", /* for backward compatibility */ "\0parallel", /* for backward compatibility */ NULL }; static struct obj_config AxisConfig[] = { {"R", OBJ_CONFIG_TYPE_NUMERIC}, {"G", OBJ_CONFIG_TYPE_NUMERIC}, {"B", OBJ_CONFIG_TYPE_NUMERIC}, {"A", OBJ_CONFIG_TYPE_NUMERIC}, {"type", OBJ_CONFIG_TYPE_NUMERIC}, {"direction", OBJ_CONFIG_TYPE_NUMERIC}, {"baseline", OBJ_CONFIG_TYPE_NUMERIC}, {"width", OBJ_CONFIG_TYPE_NUMERIC}, {"arrow", OBJ_CONFIG_TYPE_NUMERIC}, {"arrow_length", OBJ_CONFIG_TYPE_NUMERIC}, {"wave", OBJ_CONFIG_TYPE_NUMERIC}, {"wave_length", OBJ_CONFIG_TYPE_NUMERIC}, {"wave_width", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_length1", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_width1", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_length2", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_width2", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_length3", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_width3", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_R", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_G", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_B", OBJ_CONFIG_TYPE_NUMERIC}, {"gauge_A", OBJ_CONFIG_TYPE_NUMERIC}, {"num", OBJ_CONFIG_TYPE_NUMERIC}, {"num_auto_norm", OBJ_CONFIG_TYPE_NUMERIC}, {"num_log_pow", OBJ_CONFIG_TYPE_NUMERIC}, {"num_pt", OBJ_CONFIG_TYPE_NUMERIC}, {"num_space", OBJ_CONFIG_TYPE_NUMERIC}, {"num_script_size", OBJ_CONFIG_TYPE_NUMERIC}, {"num_align", OBJ_CONFIG_TYPE_NUMERIC}, {"num_no_zero", OBJ_CONFIG_TYPE_NUMERIC}, {"num_direction", OBJ_CONFIG_TYPE_NUMERIC}, {"num_shift_p", OBJ_CONFIG_TYPE_NUMERIC}, {"num_shift_n", OBJ_CONFIG_TYPE_NUMERIC}, {"num_R", OBJ_CONFIG_TYPE_NUMERIC}, {"num_G", OBJ_CONFIG_TYPE_NUMERIC}, {"num_B", OBJ_CONFIG_TYPE_NUMERIC}, {"num_A", OBJ_CONFIG_TYPE_NUMERIC}, {"num_head", OBJ_CONFIG_TYPE_STRING}, {"num_format", OBJ_CONFIG_TYPE_STRING}, {"num_tail", OBJ_CONFIG_TYPE_STRING}, {"num_font", OBJ_CONFIG_TYPE_STRING}, {"num_font_style", OBJ_CONFIG_TYPE_NUMERIC}, {"style", OBJ_CONFIG_TYPE_STYLE}, {"gauge_style", OBJ_CONFIG_TYPE_STYLE}, }; static NHASH AxisConfigHash = NULL; static int get_axis_group_type(struct objlist *obj, N_VALUE *inst, N_VALUE **inst_array, int check_all); static N_VALUE * check_group(struct objlist *obj, char type, N_VALUE *inst, int num) { int n; char *group, *endptr; while (inst) { _getobj(obj, "group", inst, &group); if (group && group[0] == type) { n = strtol(group + 2, &endptr, 10); if (num == n) break; } inst = inst[obj->nextp].inst; } return inst; } static int axisuniqgroup(struct objlist *obj,char type) { int num; N_VALUE *inst; num = 0; do { num++; inst = check_group(obj, type, obj->root, num); if (inst == NULL) { inst = check_group(obj, type, obj->root2, num); } } while (inst); return num; } static int axisloadconfig(struct objlist *obj,N_VALUE *inst,char *conf) { return obj_load_config(obj, inst, conf, AxisConfigHash); } static int axisinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int width; int alen,awid,wlen,wwid,alpha; int bline; int len1,wid1,len2,wid2,len3,wid3; int pt,sx,sy,logpow,scriptsize; int autonorm,num,gnum,margin; char *font,*format,*group,*name, buf[256]; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; width=40; alen=72426; awid=60000; wlen=300; wwid=40; len1=100; wid1=40; len2=200; wid2=40; len3=300; wid3=40; bline=TRUE; pt=2000; sx=0; sy=100; autonorm=5; logpow=TRUE; scriptsize=7000; num=-1; alpha=255; margin=500; if (_putobj(obj,"baseline",inst,&bline)) return 1; if (_putobj(obj,"width",inst,&width)) return 1; if (_putobj(obj,"auto_scale_margin",inst,&margin)) return 1; if (_putobj(obj,"arrow_length",inst,&alen)) return 1; if (_putobj(obj,"arrow_width",inst,&awid)) return 1; if (_putobj(obj,"wave_length",inst,&wlen)) return 1; if (_putobj(obj,"wave_width",inst,&wwid)) return 1; if (_putobj(obj,"gauge_length1",inst,&len1)) return 1; if (_putobj(obj,"gauge_width1",inst,&wid1)) return 1; if (_putobj(obj,"gauge_length2",inst,&len2)) return 1; if (_putobj(obj,"gauge_width2",inst,&wid2)) return 1; if (_putobj(obj,"gauge_length3",inst,&len3)) return 1; if (_putobj(obj,"gauge_width3",inst,&wid3)) return 1; if (_putobj(obj,"gauge_A",inst,&alpha)) return 1; if (_putobj(obj,"num_pt",inst,&pt)) return 1; if (_putobj(obj,"num_script_size",inst,&scriptsize)) return 1; if (_putobj(obj,"num_auto_norm",inst,&autonorm)) return 1; if (_putobj(obj,"num_shift_p",inst,&sx)) return 1; if (_putobj(obj,"num_shift_n",inst,&sy)) return 1; if (_putobj(obj,"num_log_pow",inst,&logpow)) return 1; if (_putobj(obj,"num_num",inst,&num)) return 1; if (_putobj(obj,"num_A",inst,&alpha)) return 1; format = font = group = name = NULL; format = g_strdup("%g"); if (format == NULL) goto errexit; if (_putobj(obj,"num_format",inst,format)) goto errexit; font = g_strdup(fontchar[0]); if (font == NULL) goto errexit; if (_putobj(obj,"num_font",inst,font)) goto errexit; gnum = axisuniqgroup(obj,'a'); snprintf(buf, sizeof(buf), "a_%d",gnum); group = g_strdup(buf); if (group == NULL) goto errexit; if (_putobj(obj,"group",inst,group)) goto errexit; snprintf(buf, sizeof(buf), "a_%d",gnum); name = g_strdup(buf); if (name == NULL) goto errexit; if (_putobj(obj,"name",inst,name)) goto errexit; axisloadconfig(obj,inst,"[axis]"); return 0; errexit: g_free(format); g_free(font); g_free(group); g_free(name); return 1; } static int axisdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { N_VALUE *inst_array[INST_ARRAY_NUM]; int i; get_axis_group_type(obj, inst, inst_array, TRUE); for (i = 0; i < INST_ARRAY_NUM; i++) { if (inst_array[i] && inst_array[i] != inst) { char buf[64], *group, *group2; int gnum; gnum = axisuniqgroup(obj,'a'); snprintf(buf, sizeof(buf), "a_%d",gnum); group = g_strdup(buf); if (group == NULL) break; _getobj(obj, "group", inst_array[i], &group2); g_free(group2); if (_putobj(obj, "group", inst_array[i], group)) break; } } if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int axisput(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *field; char *format; int sharp,minus,plus; int i,j; field=argv[1]; if (strcmp(field,"arrow_length")==0) { if (*(int *)(argv[2])<10000) *(int *)(argv[2])=10000; else if (*(int *)(argv[2])>200000) *(int *)(argv[2])=200000; } else if (strcmp(field,"arrow_width")==0) { if (*(int *)(argv[2])<10000) *(int *)(argv[2])=10000; else if (*(int *)(argv[2])>200000) *(int *)(argv[2])=200000; } else if ((strcmp(field,"wave_length")==0) || (strcmp(field,"wave_width"))==0) { if (*(int *)(argv[2])<1) *(int *)(argv[2])=1; } else if (strcmp(field,"num_pt")==0) { if (*(int *)(argv[2])100000) *(int *)(argv[2])=100000; } else if (strcmp(field,"num_format")==0) { format=(char *)(argv[2]); if (format==NULL) { error(obj,ERRFORMAT); return 1; } if (format[0]!='%') { error(obj,ERRFORMAT); return 1; } sharp=minus=plus=FALSE; for (i=1;(format[i]!='\0') && (strchr("#-+",format[i])!=NULL);i++) { if (format[i]=='#') { if (sharp) { error(obj,ERRFORMAT); return 1; } else sharp=TRUE; } if (format[i]=='-') { if (minus) { error(obj,ERRFORMAT); return 1; } else minus=TRUE; } if (format[i]=='+') { if (plus) { error(obj,ERRFORMAT); return 1; } else plus=TRUE; } } if (format[i]=='0') i++; for (j=i;isdigit(format[i]);i++) ; if (j-i>2) { error(obj,ERRFORMAT); return 1; } if (format[i]=='.') { i++; for (j=i;isdigit(format[i]);i++) ; if ((j-i>2) || (j==i)) { error(obj,ERRFORMAT); return 1; } } if (format[i]=='\0') { error(obj,ERRFORMAT); return 1; } if (strchr("efgEG",format[i])==NULL) { error(obj,ERRFORMAT); return 1; } if (format[i+1]!='\0') { error(obj,ERRFORMAT); return 1; } } else if (strcmp(field,"num_num")==0) { if (*(int *)(argv[2])<-1) *(int *)(argv[2])=-1; } return 0; } static int axisgeometry(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { N_VALUE *inst_array[INST_ARRAY_NUM]; int i; get_axis_group_type(obj, inst, inst_array, TRUE); for (i = 0; i < INST_ARRAY_NUM; i++) { if (inst_array[i]) { if (clear_bbox(obj, inst_array[i])) { return 1; } } } return 0; } static int axisdirection(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int dir; dir = * (int *) argv[2]; dir %= 36000; if (dir < 0) dir += 36000; * (int *) argv[2] = dir; return axisgeometry(obj, inst, rval, argc, argv); } static void axis_get_box(struct objlist *obj,N_VALUE *inst, int *pos) { int minx, miny, maxx, maxy; int x0, y0, x1, y1, length, direction; double dir; _getobj(obj, "x", inst, &x0); _getobj(obj, "y", inst, &y0); _getobj(obj, "length", inst, &length); _getobj(obj, "direction", inst, &direction); dir = direction / 18000.0 * MPI; x1 = x0 + nround(length * cos(dir)); y1 = y0 - nround(length * sin(dir)); maxx = minx = x0; maxy = miny = y0; if (x1 < minx) minx = x1; if (x1 > maxx) maxx = x1; if (y1 < miny) miny = y1; if (y1 > maxy) maxy = y1; pos[0] = minx; pos[1] = miny; pos[2] = maxx; pos[3] = maxy; pos[4] = x0; pos[5] = y0; pos[6] = x1; pos[7] = y1; #define POS_ARRAY_SIZE 8 } static int axisbbox2(struct objlist *obj, N_VALUE *inst, struct narray **rval) { int i, pos[POS_ARRAY_SIZE]; struct narray *array; if (inst == NULL) return 1; array = *rval; if (arraynum(array) != 0) return 0; if (array == NULL && (array = arraynew(sizeof(int))) == NULL) return 1; axis_get_box(obj, inst, pos); for (i = 0; i < POS_ARRAY_SIZE; i++) { arrayadd(array, pos + i); } if (arraynum(array) == 0) { arrayfree(array); return 1; } *rval = array; return 0; } static int check_direction(struct objlist *obj, int type, N_VALUE **inst_array) { int i, n, direction, normal_dir[] = {0, 9000, 0, 9000}; switch (type) { case 'f': case 's': for (i = 0; i < 2; i++) { int p1, p2, len1, len2; char *field; _getobj(obj, "length", inst_array[0 + i], &len1); _getobj(obj, "length", inst_array[2 + i], &len2); if ((len1 > 0 && len2 < 0) || (len1 < 0 && len2 > 0)) return 1; field = (i == 0) ? "x" : "y"; _getobj(obj, field, inst_array[1 - i], &p1); _getobj(obj, field, inst_array[3 - i], &p2); switch (i) { case 0: if ((len1 < 0 && p2 > p1) || (len1 > 0 && p2 < p1)) return 1; break; case 1: if ((len1 < 0 && p2 < p1) || (len1 > 0 && p2 > p1)) return 1; break; } } n = 4; break; case 'c': n = 2; break; case 'a': default: return 1; } for (i = 0; i < n; i++) { _getobj(obj, "direction", inst_array[i], &direction); if (direction != normal_dir[i]) { return 1; } } return 0; } #define FIND_X 1 #define FIND_Y 2 #define FIND_U 4 #define FIND_R 8 #define FIND_FRAME (FIND_X | FIND_Y | FIND_U | FIND_R) #define FIND_CROSS (FIND_X | FIND_Y) #define CHECK_FRAME(a) ((a & FIND_FRAME) == FIND_FRAME) #define CHECK_CROSS(a) ((a & FIND_CROSS) == FIND_CROSS) static int get_axis_group_type(struct objlist *obj, N_VALUE *inst, N_VALUE **inst_array, int check_all) { char *group, *group2; N_VALUE *inst2; char type; int find_axis, len, id, i; inst_array[0] = inst; for (i = 1; i < INST_ARRAY_NUM; i++) { inst_array[i] = NULL; } _getobj(obj, "group", inst, &group); if (group == NULL || group[0] == 'a') return 'a'; len = strlen(group); if (len < 3) return 'a'; if (check_all) { id = chkobjlastinst(obj); } else { _getobj(obj, "id", inst, &id); } find_axis = 0; type = group[0]; for (i = 0; i <= id; i++) { inst2 = chkobjinst(obj, i); _getobj(obj, "group", inst2, &group2); if (group2 == NULL || group2[0] != type) continue; len = strlen(group2); if (len < 3) continue; if (strcmp(group + 2, group2 + 2)) continue; switch (group2[1]) { case 'X': find_axis |= FIND_X; inst_array[0] = inst2; break; case 'Y': find_axis |= FIND_Y; inst_array[1] = inst2; break; case 'U': find_axis |= FIND_U; inst_array[2] = inst2; break; case 'R': find_axis |= FIND_R; inst_array[3] = inst2; break; } switch (type) { case 'f': case 's': if (CHECK_FRAME(find_axis)) { return type; } break; case 'c': if (CHECK_CROSS(find_axis)) { return type; } break; default: return 'a'; } } return -1; } static int get_axis_box(struct objlist *obj, N_VALUE *inst, int *minx, int *miny, int *maxx, int *maxy) { struct narray *rval2; rval2 = NULL; if (axisbbox2(obj, inst, &rval2)) return 1; *minx = arraynget_int(rval2, 0); *miny = arraynget_int(rval2, 1); *maxx = arraynget_int(rval2, 2); *maxy = arraynget_int(rval2, 3); arrayfree(rval2); return 0; } static struct narray * set_axis_box(struct narray *array, int minx, int miny, int maxx, int maxy, int add_point) { if (array == NULL && ((array = arraynew(sizeof(int))) == NULL)) return NULL; arrayadd(array,&minx); arrayadd(array,&miny); arrayadd(array,&maxx); arrayadd(array,&maxy); if (add_point) { arrayadd(array,&minx); arrayadd(array,&miny); arrayadd(array,&maxx); arrayadd(array,&miny); arrayadd(array,&maxx); arrayadd(array,&maxy); arrayadd(array,&minx); arrayadd(array,&maxy); } if (arraynum(array)==0) { arrayfree(array); return NULL; } return array; } static int get_axis_group_box(struct objlist *obj, N_VALUE **inst_array, int type, int *minx, int *miny, int *maxx, int *maxy) { int x0, y0, x1, y1, i; switch (type) { case 'a': if (get_axis_box(obj, inst_array[0], minx, miny, maxx, maxy)) return 1; break; case 'f': case 's': if (get_axis_box(obj, inst_array[0], minx, miny, maxx, maxy)) return 1; for (i = 1; i < 4; i++) { if (get_axis_box(obj, inst_array[i], &x0, &y0, &x1, &y1)) return 1; if (x0 < *minx) *minx = x0; if (y0 < *miny) *miny = y0; if (x1 > *maxx) *maxx = x1; if (y1 > *maxy) *maxy = y1; } break; case 'c': if (get_axis_box(obj, inst_array[0], minx, miny, maxx, maxy)) return 1; if (get_axis_box(obj, inst_array[1], &x0, &y0, &x1, &y1)) return 1; if (x0 < *minx) *minx = x0; if (y0 < *miny) *miny = y0; if (x1 > *maxx) *maxx = x1; if (y1 > *maxy) *maxy = y1; break; } return 0; } static int axisbbox(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int type, dir; N_VALUE *inst_array[INST_ARRAY_NUM]; struct narray *array; int minx,miny,maxx,maxy; array = rval->array; if (arraynum(array) != 0) return 0; type = get_axis_group_type(obj, inst, inst_array, FALSE); switch (type) { case 'a': return axisbbox2(obj, inst, &rval->array); break; case 'f': case 's': case 'c': if (get_axis_group_box(obj, inst_array, type, &minx, &miny, &maxx, &maxy)) return 1; dir = check_direction(obj, type, inst_array); array = set_axis_box(array, minx, miny, maxx, maxy, ! dir); if (array == NULL) { rval->array = NULL; return 1; } rval->array = array; break; } return 0; } static int axismatch2(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int minx,miny,maxx,maxy,err; int bminx,bminy,bmaxx,bmaxy; int i,num,*data; double x1,y1,x2,y2; double r,r2,r3,ip; struct narray *array; rval->i=FALSE; array=NULL; axisbbox2(obj,inst,&array); if (array==NULL) return 0; minx=*(int *)argv[2]; miny=*(int *)argv[3]; maxx=*(int *)argv[4]; maxy=*(int *)argv[5]; err=*(int *)argv[6]; if ((minx==maxx) && (miny==maxy)) { num=arraynum(array)-4; data=arraydata(array); for (i=0;ii=TRUE; break; } if (r2!=0) { ip=((x2-x1)*(minx-x1)+(y2-y1)*(miny-y1))/r2; if ((0<=ip) && (ip<=r2)) { x2=x1+(x2-x1)*ip/r2; y2=y1+(y2-y1)*ip/r2; r=sqrt((minx-x2)*(minx-x2)+(miny-y2)*(miny-y2)); if (ri=TRUE; break; } } } } } else { if (arraynum(array)<4) { arrayfree(array); return 1; } bminx=arraynget_int(array,0); bminy=arraynget_int(array,1); bmaxx=arraynget_int(array,2); bmaxy=arraynget_int(array,3); if ((minx<=bminx) && (bminx<=maxx) && (minx<=bmaxx) && (bmaxx<=maxx) && (miny<=bminy) && (bminy<=maxy) && (miny<=bmaxy) && (bmaxy<=maxy)) rval->i=TRUE; } arrayfree(array); return 0; } static int axismatch(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int i, n, type; N_VALUE *inst_array[INST_ARRAY_NUM]; int rval2, match; rval->i = FALSE; type = get_axis_group_type(obj, inst, inst_array, FALSE); n = 0; switch (type) { case 'a': return axismatch2(obj, inst, rval, argc, argv); break; case 'f': case 's': n = 4; break; case 'c': n = 2; break; } if (n) { match = FALSE; for (i = 0; i < n; i++) { axismatch2(obj, inst_array[i], (void *)&rval2, argc, argv); match = match || rval2; } rval->i = match; } return 0; } static int axismove2(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x,y; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); x+=*(int *)argv[2]; y+=*(int *)argv[3]; if (_putobj(obj,"x",inst,&x)) return 1; if (_putobj(obj,"y",inst,&y)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int axismove(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int i; N_VALUE *inst_array[INST_ARRAY_NUM]; if (* (int *) argv[2] == 0 && * (int *) argv[3] == 0) return 0; if (get_axis_group_type(obj, inst, inst_array, FALSE) < 0) return 1; for (i = 0; i < INST_ARRAY_NUM; i++) { if (inst_array[i]) { axismove2(obj, inst_array[i], rval, argc, argv); } } return 0; } static int axisrotate2(struct objlist *obj, N_VALUE *inst, int px, int py, int angle) { int x, y, dir; if (inst == NULL) return 1; _getobj(obj, "x", inst, &x); _getobj(obj, "y", inst, &y); _getobj(obj, "direction", inst, &dir); rotate(px, py, angle, &x, &y); dir += angle; dir %= 36000; if (_putobj(obj, "x", inst, &x)) return 1; if (_putobj(obj, "y", inst, &y)) return 1; if (_putobj(obj, "direction", inst, &dir)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int axisrotate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int i, n, type, angle, use_pivot, px, py, minx, miny, maxx, maxy; N_VALUE *inst_array[INST_ARRAY_NUM]; angle = *(int *) argv[2]; use_pivot = * (int *) argv[3]; px = *(int *) argv[4]; py = *(int *) argv[5]; angle %= 36000; if (angle < 0) angle += 36000; type = get_axis_group_type(obj, inst, inst_array, FALSE); switch (type) { case 'a': n = 1; break; case 'f': case 's': n = 4; break; case 'c': n = 2; break; default: return 0; } if (! use_pivot) { if (get_axis_group_box(obj, inst_array, type, &minx, &miny, &maxx, &maxy)) return 1; px = (minx + maxx) / 2; py = (miny + maxy) / 2; } for (i = 0; i < n; i++) { axisrotate2(obj, inst_array[i], px, py, angle); } return 0; } static int axisflip2(struct objlist *obj, N_VALUE *inst, int px, int py, enum FLIP_DIRECTION dir) { int x, y, a, p, g_dir, n_dir, n_align; if (inst == NULL) return 1; _getobj(obj, "x", inst, &x); _getobj(obj, "y", inst, &y); _getobj(obj, "direction", inst, &a); _getobj(obj, "gauge", inst, &g_dir); _getobj(obj, "num", inst, &n_dir); _getobj(obj, "num_align", inst, &n_align); switch (dir) { case FLIP_DIRECTION_HORIZONTAL: a = 18000 - a; p = px; switch (n_align) { case AXIS_NUM_ALIGN_LEFT: n_align = AXIS_NUM_ALIGN_RIGHT; break; case AXIS_NUM_ALIGN_RIGHT: n_align= AXIS_NUM_ALIGN_LEFT; break; } break; case FLIP_DIRECTION_VERTICAL: a = -a; p = py; break; default: p = 0; } switch (g_dir) { case AXIS_GAUGE_LEFT: g_dir = AXIS_GAUGE_RIGHT; break; case AXIS_GAUGE_RIGHT: g_dir = AXIS_GAUGE_LEFT; break; }; switch (n_dir) { case AXIS_NUM_POS_LEFT: n_dir = AXIS_NUM_POS_RIGHT; break; case AXIS_NUM_POS_RIGHT: n_dir = AXIS_NUM_POS_LEFT; break; } a %= 36000; a += (a < 0) ? 36000 : 0; flip(p, dir, &x, &y); if (_putobj(obj, "x", inst, &x)) return 1; if (_putobj(obj, "y", inst, &y)) return 1; if (_putobj(obj, "direction", inst, &a)) return 1; if (_putobj(obj, "gauge", inst, &g_dir)) return 1; if (_putobj(obj, "num", inst, &n_dir)) return 1; if (_putobj(obj, "num_align", inst, &n_align)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int axisflip(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int i, n, type, use_pivot, px, py, minx, miny, maxx, maxy; N_VALUE *inst_array[INST_ARRAY_NUM]; enum FLIP_DIRECTION dir; dir = (* (int *) argv[2] == FLIP_DIRECTION_HORIZONTAL) ? FLIP_DIRECTION_HORIZONTAL : FLIP_DIRECTION_VERTICAL; use_pivot = * (int *) argv[3]; px = py = *(int *) argv[4]; type = get_axis_group_type(obj, inst, inst_array, FALSE); switch (type) { case 'a': n = 1; break; case 'f': case 's': n = 4; break; case 'c': n = 2; break; default: return 0; } if (! use_pivot) { if (get_axis_group_box(obj, inst_array, type, &minx, &miny, &maxx, &maxy)) return 1; px = (minx + maxx) / 2; py = (miny + maxy) / 2; } for (i = 0; i < n; i++) { axisflip2(obj, inst_array[i], px, py, dir); } return 0; } static int axischange2(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int len,dir,x,y; double x2,y2; int point,x0,y0; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"length",inst,&len); _getobj(obj,"direction",inst,&dir); x2=x+len*cos(dir*MPI/18000.0); y2=y-len*sin(dir*MPI/18000.0); point=*(int *)argv[2]; x0=*(int *)argv[3]; y0=*(int *)argv[4]; if (point==0) { x+=x0; y+=y0; } else if (point==1) { x2+=x0; y2+=y0; } len=sqrt((x2-x)*(x2-x)+(y2-y)*(y2-y)); if ((x2-x)==0) { if ((y2-y)==0) dir=0; else if ((y2-y)>0) dir=27000; else dir=9000; } else { dir=atan(-(y2-y)/(x2-x))/MPI*18000.0; if ((x2-x)<0) dir+=18000; if (dir<0) dir+=36000; } if (_putobj(obj,"x",inst,&x)) return 1; if (_putobj(obj,"y",inst,&y)) return 1; if (_putobj(obj,"length",inst,&len)) return 1; if (_putobj(obj,"direction",inst,&dir)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static void axis_change_point0(struct objlist *obj, int type, N_VALUE **inst_array, int x0, int y0) { int len, x, y; switch (type) { case 'f': case 's': _getobj(obj, "x", inst_array[2], &x); _getobj(obj, "y", inst_array[2], &y); _getobj(obj, "length", inst_array[2], &len); x += x0; y += y0; len -= x0; _putobj(obj, "x", inst_array[2], &x); _putobj(obj, "y", inst_array[2], &y); _putobj(obj, "length", inst_array[2], &len); _getobj(obj, "length", inst_array[3], &len); len -= y0; _putobj(obj, "length", inst_array[3], &len); /* FALLTHROUGH */ case 'c': _getobj(obj, "x", inst_array[0], &x); _getobj(obj, "length", inst_array[0], &len); x += x0; len -= x0; _putobj(obj, "x", inst_array[0], &x); _putobj(obj, "length", inst_array[0], &len); _getobj(obj, "x", inst_array[1], &x); _getobj(obj, "length", inst_array[1], &len); x += x0; len -= y0; _putobj(obj, "x", inst_array[1], &x); _putobj(obj, "length", inst_array[1], &len); break; } } static void axis_change_point1(struct objlist *obj, int type, N_VALUE **inst_array, int x0, int y0) { int len, x, y; switch (type) { case 'f': case 's': _getobj(obj, "y", inst_array[2], &y); _getobj(obj, "length", inst_array[2], &len); y += y0; len += x0; _putobj(obj, "y", inst_array[2], &y); _putobj(obj, "length", inst_array[2], &len); _getobj(obj, "x", inst_array[3], &x); _getobj(obj, "length", inst_array[3], &len); x += x0; len -= y0; _putobj(obj, "x", inst_array[3], &x); _putobj(obj, "length", inst_array[3], &len); /* FALLTHROUGH */ case 'c': _getobj(obj, "length", inst_array[0], &len); len += x0; _putobj(obj, "length", inst_array[0], &len); _getobj(obj, "length", inst_array[1], &len); len -= y0; _putobj(obj, "length", inst_array[1], &len); break; } } static void axis_change_point2(struct objlist *obj, int type, N_VALUE **inst_array, int x0, int y0) { int len, x, y; switch (type) { case 'f': case 's': _getobj(obj, "length", inst_array[2], &len); len += x0; _putobj(obj, "length", inst_array[2], &len); _getobj(obj, "x", inst_array[3], &x); _getobj(obj, "y", inst_array[3], &y); _getobj(obj, "length", inst_array[3], &len); x += x0; y += y0; len += y0; _putobj(obj, "x", inst_array[3], &x); _putobj(obj, "y", inst_array[3], &y); _putobj(obj, "length", inst_array[3], &len); /* FALLTHROUGH */ case 'c': _getobj(obj, "y", inst_array[0], &y); _getobj(obj, "length", inst_array[0], &len); y += y0; len += x0; _putobj(obj, "y", inst_array[0], &y); _putobj(obj, "length", inst_array[0], &len); _getobj(obj, "y", inst_array[1], &y); _getobj(obj, "length", inst_array[1], &len); y += y0; len += y0; _putobj(obj, "y", inst_array[1], &y); _putobj(obj, "length", inst_array[1], &len); break; } } static void axis_change_point3(struct objlist *obj, int type, N_VALUE **inst_array, int x0, int y0) { int len, x, y; switch (type) { case 'f': case 's': _getobj(obj, "x", inst_array[2], &x); _getobj(obj, "length", inst_array[2], &len); x += x0; len -= x0; _putobj(obj, "x", inst_array[2], &x); _putobj(obj, "length", inst_array[2], &len); _getobj(obj, "y", inst_array[3], &y); _getobj(obj, "length", inst_array[3], &len); y += y0; len += y0; _putobj(obj, "y", inst_array[3], &y); _putobj(obj, "length", inst_array[3], &len); /* FALLTHROUGH */ case 'c': _getobj(obj, "x", inst_array[0], &x); _getobj(obj, "y", inst_array[0], &y); _getobj(obj, "length", inst_array[0], &len); x += x0; y += y0; len -= x0; _putobj(obj, "x", inst_array[0], &x); _putobj(obj, "y", inst_array[0], &y); _putobj(obj, "length", inst_array[0], &len); _getobj(obj, "x", inst_array[1], &x); _getobj(obj, "y", inst_array[1], &y); _getobj(obj, "length", inst_array[1], &len); x += x0; y += y0; len += y0; _putobj(obj, "x", inst_array[1], &x); _putobj(obj, "y", inst_array[1], &y); _putobj(obj, "length", inst_array[1], &len); break; } } static int axischange(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { N_VALUE *inst_array[INST_ARRAY_NUM]; int type, point, x0, y0, len; type = get_axis_group_type(obj, inst, inst_array, FALSE); point= * (int *) argv[2]; x0 = * (int *) argv[3]; y0 = * (int *) argv[4]; switch (type) { case 'a': return axischange2(obj, inst, rval, argc, argv); break; case 'f': case 's': case 'c': if (check_direction(obj, type, inst_array)) return 0; _getobj(obj, "length", inst_array[0], &len); if (len < 0) { switch (point) { case 0: point = 1; break; case 1: point = 0; break; case 2: point = 3; break; case 3: point = 2; break; } } _getobj(obj, "length", inst_array[1], &len); if (len < 0) { switch (point) { case 0: point = 3; break; case 1: point = 2; break; case 2: point = 1; break; case 3: point = 0; break; } } switch (point) { case 0: axis_change_point0(obj, type, inst_array, x0, y0); break; case 1: axis_change_point1(obj, type, inst_array, x0, y0); break; case 2: axis_change_point2(obj, type, inst_array, x0, y0); break; case 3: axis_change_point3(obj, type, inst_array, x0, y0); break; } if (clear_bbox(obj, inst)) return 1; break; } return 0; } static int axiszoom2(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x,y,len,refx,refy,preserve_width; double zoom; int pt,space,wid1,wid2,wid3,len1,len2,len3,wid,wlen,wwid; struct narray *style,*gstyle; int i,snum,*sdata,gsnum,*gsdata; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; zoom=(*(int *)argv[2])/10000.0; refx=(*(int *)argv[3]); refy=(*(int *)argv[4]); preserve_width = (*(int *)argv[5]); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"length",inst,&len); _getobj(obj,"width",inst,&wid); _getobj(obj,"num_pt",inst,&pt); _getobj(obj,"num_space",inst,&space); _getobj(obj,"wave_length",inst,&wlen); _getobj(obj,"wave_width",inst,&wwid); _getobj(obj,"gauge_length1",inst,&len1); _getobj(obj,"gauge_width1",inst,&wid1); _getobj(obj,"gauge_length2",inst,&len2); _getobj(obj,"gauge_width2",inst,&wid2); _getobj(obj,"gauge_length3",inst,&len3); _getobj(obj,"gauge_width3",inst,&wid3); _getobj(obj,"gauge_style",inst,&gstyle); _getobj(obj,"style",inst,&style); snum=arraynum(style); sdata=arraydata(style); gsnum=arraynum(gstyle); gsdata=arraydata(gstyle); wlen*=zoom; len1*=zoom; len2*=zoom; len3*=zoom; x=(x-refx)*zoom+refx; y=(y-refy)*zoom+refy; len*=zoom; pt*=zoom; space*=zoom; if (! preserve_width) { wid*=zoom; wid1*=zoom; wid2*=zoom; wid3*=zoom; wwid*=zoom; for (i=0;idirection<9000) { px0=hx1; py0=hy1; } else if (aconf->direction<18000) { px0=hx1; py0=hy0; } else if (aconf->direction<27000) { px0=hx0; py0=hy0; } else { px0=hx0; py0=hy1; } } else { if (aconf->direction<9000) { px0=hx0; py0=hy0; } else if (aconf->direction<18000) { px0=hx0; py0=hy1; } else if (aconf->direction<27000) { px0=hx1; py0=hy1; } else { px0=hx1; py0=hy0; } } switch (align) { case AXIS_NUM_ALIGN_CENTER: px1=(hx0+hx1)/2; break; case AXIS_NUM_ALIGN_LEFT: px1=hx0; break; case AXIS_NUM_ALIGN_RIGHT: px1=hx1; break; case AXIS_NUM_ALIGN_POINT: px1=ilenmax+plen/2; break; default: /* never reached */ px1 = 0; } py1=(hy0+hy1)/2; fx0=px1-px0; fy0=py1-py0; t=cos(aconf->dir)*fx0-sin(aconf->dir)*fy0; *x1=fx0-t*cos(aconf->dir); *y1=fy0+t*sin(aconf->dir); if (side==AXIS_NUM_POS_LEFT) { if (aconf->direction<9000) px1=hx1; else if (aconf->direction<18000) px1=hx1; else if (aconf->direction<27000) px1=hx0; else px1=hx0; } else { if (aconf->direction<9000) px1=hx0; else if (aconf->direction<18000) px1=hx0; else if (aconf->direction<27000) px1=hx1; else px1=hx1; } py1=(hy0+hy1)/2; fx0=px1-px0; fy0=py1-py0; t=cos(aconf->dir)*fx0-sin(aconf->dir)*fy0; *x2=fx0-t*cos(aconf->dir); *y2=fy0+t*sin(aconf->dir); *len=abs(hx1-hx0); } static void get_num_ofst_parallel(const struct axis_config *aconf, int side, int hx0, int hy0, int hx1, int hy1, int *x1, int *y1, int *x2, int *y2, int *len) { int py1; py1=(hy0+hy1)/2; if (side==AXIS_NUM_POS_LEFT) py1*=-1; *x1=-py1*sin(aconf->dir); *y1=-py1*cos(aconf->dir); *x2=-py1*sin(aconf->dir); *y2=-py1*cos(aconf->dir); *len=abs(hx1-hx0); } static void get_num_ofst_normal1(const struct axis_config *aconf, int align, int side, int ilenmax, int plen, int hx0, int hy0, int hx1, int hy1, int *x1, int *y1, int *x2, int *y2, int *len) { int py1; switch (side) { case AXIS_NUM_POS_LEFT: switch (align) { case AXIS_NUM_ALIGN_CENTER: py1 = (hx1 - hx0) / 2; break; case AXIS_NUM_ALIGN_LEFT: py1 = hx1 - hx0; break; case AXIS_NUM_ALIGN_RIGHT: py1 = 0; break; case AXIS_NUM_ALIGN_POINT: py1 = plen / 2; break; default: /* never reached */ py1 = 0; } break; case AXIS_NUM_POS_RIGHT: switch (align) { case AXIS_NUM_ALIGN_CENTER: py1 = (hx0 - hx1) / 2; break; case AXIS_NUM_ALIGN_LEFT: py1 = 0; break; case AXIS_NUM_ALIGN_RIGHT: py1 = hx0 - hx1; break; case AXIS_NUM_ALIGN_POINT: py1 = hx0 - hx1 + plen / 2; break; default: /* never reached */ py1 = 0; } break; default: /* never reached */ py1 = 0; } *x1 = -py1 * sin(aconf->dir); *y1 = -py1 * cos(aconf->dir); *x2 = *y2 = 0; *len = abs(hx1 - hx0); } static void get_num_ofst_normal2(const struct axis_config *aconf, int align, int side, int ilenmax, int plen, int hx0, int hy0, int hx1, int hy1, int *x1, int *y1, int *x2, int *y2, int *len) { int py1; switch (side) { case AXIS_NUM_POS_LEFT: switch (align) { case AXIS_NUM_ALIGN_CENTER: py1 = (hx1 - hx0) / 2; break; case AXIS_NUM_ALIGN_LEFT: py1 = hx1 - hx0; break; case AXIS_NUM_ALIGN_RIGHT: py1 = 0; break; case AXIS_NUM_ALIGN_POINT: py1 = hx1 - ilenmax - plen / 2; break; default: /* never reached */ py1 = 0; } break; case AXIS_NUM_POS_RIGHT: switch (align) { case AXIS_NUM_ALIGN_CENTER: py1 = (hx0 - hx1) / 2; break; case AXIS_NUM_ALIGN_LEFT: py1 = 0; break; case AXIS_NUM_ALIGN_RIGHT: py1 = hx0 - hx1; break; case AXIS_NUM_ALIGN_POINT: py1 = hx0 - ilenmax - plen / 2; break; default: /* never reached */ py1 = 0; } break; default: /* never reached */ py1 = 0; } *x1 = -py1 * sin(aconf->dir); *y1 = -py1 * cos(aconf->dir); *x2 = *y2 = 0; *len = abs(hx1 - hx0); } static void get_num_ofst_oblique1(const struct axis_config *aconf, int align, int side, int ilenmax, int plen, int hx0, int hy0, int hx1, int hy1, int *x1, int *y1, int *x2, int *y2, int *len) { int w, h; double sin_t, cos_t; switch (side) { case AXIS_NUM_POS_LEFT: w = abs(hx1 - hx0); h = abs(hy1 - hy0); cos_t = cos(aconf->dir + MPI / 4); sin_t = sin(aconf->dir + MPI / 4); *x1 = w * cos_t - h * sin_t; *y1 = - w * sin_t - h * cos_t; break; case AXIS_NUM_POS_RIGHT: *x1 = *y1 = 0; break; default: /* never reached */ *x1 = 0; *y1 = 0; } *x2 = *y2 = 0; *len = abs(hx1 - hx0); } static void get_num_ofst_oblique2(const struct axis_config *aconf, int align, int side, int ilenmax, int plen, int hx0, int hy0, int hx1, int hy1, int *x1, int *y1, int *x2, int *y2, int *len) { int w, h; double sin_t, cos_t; switch (side) { case AXIS_NUM_POS_LEFT: w = abs(hx1 - hx0); h = abs(hy1 - hy0); cos_t = cos(aconf->dir - MPI / 4); sin_t = sin(aconf->dir - MPI / 4); *x1 = - w * cos_t - h * sin_t; *y1 = w * sin_t - h * cos_t; break; case AXIS_NUM_POS_RIGHT: *x1 = *y1 = 0; break; default: /* never reached */ *x1 = 0; *y1 = 0; } *x2 = *y2 = 0; *len = abs(hx1 - hx0); } static char * mjd_to_date_str(const struct axis_config *aconf, double mjd, const gchar *date_format) { struct tm tm; const gchar *fmt_y = "%Y", *fmt_ym = "%Y-%m", *fmt_ymd = "%Y-%m-%d", *fmt_ymdhms = "%Y-%m-%d\\&\\n%H:%M:%S\\&", *fmt_ymdhm = "%Y-%m-%d\\&\\n%H:%M\\&", *fmt_hms = "%H:%M:%S", *fmt_hm = "%H:%M", *fmt; mjd2gd(mjd, &tm); if (tm.tm_year < MJD2GD_YEAR_MIN) { return NULL; } if (date_format && date_format[0]) { fmt = date_format; }else { if (fabs(aconf->max - aconf->min) < 1) { if (tm.tm_sec == 0) { fmt = fmt_hm; } else { fmt = fmt_hms; } } else if (fabs(aconf->max - aconf->min) > 365) { if (tm.tm_sec == 0) { if (tm.tm_hour == 0 && tm.tm_min == 0) { if (tm.tm_mday == 1) { if (tm.tm_mon == 0) { fmt = fmt_y; } else { fmt = fmt_ym; } } else { fmt = fmt_ymd; } } else { fmt = fmt_ymdhm; } } else { fmt = fmt_ymdhms; } } else { if (tm.tm_sec == 0) { if (tm.tm_hour == 0 && tm.tm_min == 0) { fmt = fmt_ymd; } else { fmt = fmt_ymdhm; } } else { fmt = fmt_ymdhms; } } } return nstrftime(fmt, mjd); } static char * get_axis_gauge_num_str(const char *format, double a) { int i, j, len; char *s; char format2[256], pm[] = "±"; GString *num; num = g_string_sized_new(16); if (num == NULL) { return NULL; } s = strchr(format, '+'); if (a == 0 && s) { len = strlen(format); for (j = 0; j < (int) sizeof(pm) - 1; j++) { format2[j] = pm[j]; } for (i = 0; i < len && j < (int) sizeof(format2) - 1; i++) { format2[j] = format[i]; if (format[i] != '+') { j++; } } format2[j] = '\0'; g_string_printf(num, format2, a); } else { g_string_printf(num, format, a); } len = num->len; for (i = 0; i < len; i++) { if (num->str[i] == 'E' || num->str[i] == 'e') { switch (num->str[i + 1]) { case '+': j = 2; if (i + 2 < len && num->str[i + 2] == '0') { j++; } g_string_erase(num, i, j); break; case '-': if (i + 2 < len && num->str[i + 2] == '0') { g_string_erase(num, i + 2, 1); } g_string_erase(num, i, 1); break; case '0': /* never reached */ g_string_erase(num, i, 2); break; default: /* never reached */ g_string_erase(num, i, 1); break; } g_string_insert(num, i, "×10^"); g_string_append_c(num, '@'); break; } } return g_string_free(num, FALSE); } static double numformat(char **text, int *nlen, const char *format, const struct axis_config *aconf, const struct axislocal *alocal, int logpow, double po, double norm, const char *head, const char *tail, const char *date_format) { int lpow; char *num; double a; *text = NULL; *nlen = 0; if ((! logpow && (alocal->atype == AXISLOGBIG || alocal->atype == AXISLOGNORM)) || (alocal->atype == AXISLOGSMALL)) { a = pow(10.0, po); } else if (alocal->atype == AXISINVERSE) { a = 1.0 / po; } else { a = po / norm; } if (aconf->type == AXIS_TYPE_MJD) { num = mjd_to_date_str(aconf, po, date_format); if (num) { logpow = 0; } else { num = get_axis_gauge_num_str(format, a); } } else { num = get_axis_gauge_num_str(format, a); } lpow = (logpow && (alocal->atype == AXISLOGBIG || alocal->atype == AXISLOGNORM)); *text = g_strdup_printf("%s%s%s%s%s", CHK_STR(head), (lpow) ? "10^" : "", CHK_STR(num), (lpow) ? "@" : "", CHK_STR(tail)); if (num) { *nlen = strlen(num); g_free(num); } else { *nlen = 0; } return a; } static int draw_numbering_normalize(int GC, int side, const struct axis_config *aconf, const struct font_config *font, double norm, int maxlen, int sx, int sy, int dlx2, int dly2, int ndir, double nndir, int ndirection) { int fx0, fy0, fx1, fy1, px0, px1, py0, py1, gx0, gy0; char num[256]; if (norm/pow(10.0,cutdown(log10(norm)))==1) { // sprintf(num,"[%%F{Symbol}%c%%F{%s}10^%+d@]", (char )0xb4,font,(int )cutdown(log10(norm))); snprintf(num, sizeof(num), "[×10^%+d@]", (int )cutdown(log10(norm))); } else { // sprintf(num,"[%g%%F{Symbol}%c%%F{%s}10^%+d@]", norm/pow(10.0,cutdown(log10(norm))), (char )0xb4,font,(int )cutdown(log10(norm))); snprintf(num, sizeof(num), "[%g×10^%+d@]", norm/pow(10.0,cutdown(log10(norm))), (int )cutdown(log10(norm))); } GRAtextextent(num,font->font, font->style, font->pt, font->space, font->scriptsize, &fx0,&fy0,&fx1,&fy1,FALSE); if (abs(fy1-fy0)>maxlen) maxlen=abs(fy1-fy0); gx0=aconf->x0+(aconf->length+maxlen*1.2)*cos(aconf->dir); gy0=aconf->y0-(aconf->length+maxlen*1.2)*sin(aconf->dir); gx0=gx0-sy*sin(aconf->dir)+sx*cos(aconf->dir)+dlx2; gy0=gy0-sy*cos(aconf->dir)-sx*sin(aconf->dir)+dly2; switch (ndir) { case AXIS_NUM_POS_HORIZONTAL: if (side==AXIS_NUM_POS_LEFT) { if ((aconf->direction>4500) && (aconf->direction<=22500)) px1=fx1; else px1=fx0; } else { if ((aconf->direction>13500) && (aconf->direction<=31500)) px1=fx1; else px1=fx0; } py1=(fy0+fy1)/2; break; case AXIS_NUM_POS_PARALLEL1: case AXIS_NUM_POS_PARALLEL2: if (ndir==AXIS_NUM_POS_PARALLEL1) { px0=fx0; } else { px0=fx1; } py0=(fy0+fy1)/2; px1=cos(nndir)*px0+sin(nndir)*py0; py1=-sin(nndir)*px0+cos(nndir)*py0; break; case AXIS_NUM_POS_NORMAL1: case AXIS_NUM_POS_NORMAL2: if (side==AXIS_NUM_POS_LEFT) { if (ndir==AXIS_NUM_POS_NORMAL1) { px0=fx0; } else { px0=fx1; } } else { if (ndir==AXIS_NUM_POS_NORMAL1) { px0=fx1; } else { px0=fx0; } } py0=(fy0+fy1)/2; px1=cos(nndir)*px0+sin(nndir)*py0; py1=-sin(nndir)*px0+cos(nndir)*py0; break; case AXIS_NUM_POS_OBLIQUE1: case AXIS_NUM_POS_OBLIQUE2: default: px1 = py1 = 0; break; } GRAmoveto(GC,gx0-px1,gy0-py1); GRAdrawtext(GC,num,font->font,font->style,font->pt,font->space,ndirection,font->scriptsize); return 0; } static int draw_numbering(struct objlist *obj, N_VALUE *inst, struct axislocal *alocal, int GC, int side, int align, int ndir, int ilenmax, int plen, struct axis_config *aconf, const struct font_config *font, int step, int nnum, int numcount, int begin, int autonorm, int nozero, int logpow, const char *format, double norm, const char *head, int headlen, const char *tail, const char *date_format, int hx0, int hy0, int hx1, int hy1, struct narray *array) { int fx0,fy0,fx1,fy1,px0,px1,py0,py1; int dlx,dly,dlx2,dly2,maxlen; int rcode; int gx0,gy0; double nndir, po, min1, max1, value; int numlen,i; char *text, ch; int sx, sy, ndirection, cstep; _getobj(obj,"num_shift_p",inst,&sx); _getobj(obj,"num_shift_n",inst,&sy); switch (aconf->type) { case AXIS_TYPE_LOG: min1=log10(aconf->min); max1=log10(aconf->max); break; case AXIS_TYPE_INVERSE: min1=1/aconf->min; max1=1/aconf->max; break; default: min1=aconf->min; max1=aconf->max; } switch (ndir) { case AXIS_NUM_POS_HORIZONTAL: ndirection = 0; break; case AXIS_NUM_POS_NORMAL1: ndirection = aconf->direction + 9000; break; case AXIS_NUM_POS_NORMAL2: ndirection = aconf->direction + 27000; break; case AXIS_NUM_POS_OBLIQUE1: ndirection = aconf->direction + 4500; break; case AXIS_NUM_POS_OBLIQUE2: ndirection = aconf->direction + 31500; break; case AXIS_NUM_POS_PARALLEL1: ndirection = aconf->direction; break; case AXIS_NUM_POS_PARALLEL2: ndirection = aconf->direction + 18000; break; default: /* never reached */ ndirection = 0; } if (ndirection > 36000) { ndirection -= 36000; } nndir = ndirection / 18000.0 * MPI; if (side==AXIS_NUM_POS_RIGHT) sy*=-1; switch (ndir) { case AXIS_NUM_POS_HORIZONTAL: get_num_ofst_horizontal(aconf, align, side, ilenmax, plen, hx0, hy0, hx1, hy1, &dlx, &dly, &dlx2, &dly2, &maxlen); break; case AXIS_NUM_POS_PARALLEL1: case AXIS_NUM_POS_PARALLEL2: get_num_ofst_parallel(aconf, side, hx0, hy0, hx1, hy1, &dlx, &dly, &dlx2, &dly2, &maxlen); break; case AXIS_NUM_POS_NORMAL1: get_num_ofst_normal1(aconf, align, side, ilenmax, plen, hx0, hy0, hx1, hy1, &dlx, &dly, &dlx2, &dly2, &maxlen); break; case AXIS_NUM_POS_NORMAL2: get_num_ofst_normal2(aconf, align, side, ilenmax, plen, hx0, hy0, hx1, hy1, &dlx, &dly, &dlx2, &dly2, &maxlen); break; case AXIS_NUM_POS_OBLIQUE1: get_num_ofst_oblique1(aconf, align, side, ilenmax, plen, hx0, hy0, hx1, hy1, &dlx, &dly, &dlx2, &dly2, &maxlen); break; case AXIS_NUM_POS_OBLIQUE2: get_num_ofst_oblique2(aconf, align, side, ilenmax, plen, hx0, hy0, hx1, hy1, &dlx, &dly, &dlx2, &dly2, &maxlen); break; default: /* never reached */ dlx = 0; dly = 0; dlx2 = 0; dly2 = 0; maxlen = 0; } if (getaxispositionini(alocal,aconf->type,aconf->min,aconf->max,aconf->inc,aconf->div,FALSE)!=0) return 1; if (begin<=0) begin=1; cstep = step - begin + 1; numcount = 0; while ((rcode=getaxisposition(alocal,&po))!=-2) { if (rcode>=2) { gx0=aconf->x0+(po-min1)*aconf->length/(max1-min1)*cos(aconf->dir); gy0=aconf->y0-(po-min1)*aconf->length/(max1-min1)*sin(aconf->dir); gx0=gx0-sy*sin(aconf->dir)+sx*cos(aconf->dir)+dlx; gy0=gy0-sy*cos(aconf->dir)-sx*sin(aconf->dir)+dly; if ((cstep==step) || ((alocal->atype==AXISLOGSMALL) && (rcode==3))) { numcount++; if (((numcount<=nnum) || (nnum==-1)) && ((po!=0) || !nozero)) { value = numformat(&text, &numlen, format, aconf, alocal, logpow, po, norm, head, tail, date_format); if (text == NULL) { return 1; } if (align == AXIS_NUM_ALIGN_POINT) { for (i = headlen; i < headlen + numlen; i++) { if (text[i]=='.') { break; } } ch=text[i]; text[i]='\0'; GRAtextextent(text,font->font, font->style, font->pt, font->space, font->scriptsize, &fx0,&fy0,&fx1,&fy1,FALSE); if (abs(fx1-fx0)>ilenmax) ilenmax=abs(fx1-fx0); text[i]=ch; GRAtextextent(text,font->font, font->style, font->pt, font->space, font->scriptsize, &px0,&py0,&px1,&py1,FALSE); if (py0fy1) fy1=py1; } else { GRAtextextent(text,font->font, font->style, font->pt, font->space, font->scriptsize, &fx0,&fy0,&fx1,&fy1,FALSE); } switch (ndir) { case AXIS_NUM_POS_HORIZONTAL: get_num_pos_horizontal(align, plen, fx0, fy0, fx1, fy1, &px1, &py1); break; case AXIS_NUM_POS_PARALLEL1: case AXIS_NUM_POS_PARALLEL2: get_num_pos(align, plen, nndir, fx0, fy0, fx1, fy1, &px1, &py1); break; case AXIS_NUM_POS_NORMAL1: get_num_pos(align, plen, nndir, fx0, fy0, fx1, fy1, &px1, &py1); break; case AXIS_NUM_POS_NORMAL2: get_num_pos(align, plen, nndir, fx1, fy0, fx0, fy1, &px1, &py1); break; case AXIS_NUM_POS_OBLIQUE1: get_num_pos_oblique(AXIS_NUM_ALIGN_LEFT, plen, nndir, fx1, fy0, fx0, fy1, &px1, &py1); break; case AXIS_NUM_POS_OBLIQUE2: get_num_pos_oblique(AXIS_NUM_ALIGN_RIGHT, plen, nndir, fx1, fy0, fx0, fy1, &px1, &py1); break; default: px1 = 0; py1 = 0; } if (array == NULL) { GRAmoveto(GC,gx0-px1,gy0-py1); GRAdrawtext(GC,text,font->font,font->style,font->pt,font->space,ndirection,font->scriptsize); } else { char *s; s = g_strdup_printf("%5d %5d %5d %.14E %.14E", gx0 - px1, gy0 - py1, ndirection, value, po); arrayadd(array, &s); } g_free(text); } if ((alocal->atype==AXISLOGSMALL) && (rcode==3)) { cstep=step-begin; } else { cstep=0; } } cstep++; } } if (norm != 1 && array == NULL) { draw_numbering_normalize(GC, side, aconf, font, norm, maxlen, sx, sy, dlx2, dly2, ndir, nndir, ndirection); } return 0; } static int get_step(struct axislocal *alocal, int step, int *begin) { int n, count, rcode; double po; count = 0; while ((rcode = getaxisposition(alocal, &po)) != -2) { if (rcode >= 2) { count++; } } switch (alocal->atype) { case AXISINVERSE: if (step == 0) { if (count == 0) { n = 1; } else { n = nround(pow(10.0, (double) (int) (log10((double) count)))); } if (n != 1) { n--; } if (count >= 18 * n) { step = 9 * n; } else if (count >= 6 * n) { step = 3 * n; } else { step = n; } } if (*begin == 0) { *begin = 1; } break; case AXISLOGSMALL: if (step == 0) { step = 1; } if (*begin == 0) { *begin = 1; } break; default: if (step == 0) { if (count == 0) { n = 1; } else { n = nround(pow(10.0,(double )(int )(log10(count * 0.5)))); } if (count >= 10 * n) { step = 5 * n; } else if (count >= 5 * n) { step = 2 * n; } else { step = n; } } if (*begin == 0) { double min1, min2; min1 = roundmin(alocal->posst, alocal->dposl); min2 = roundmin(alocal->posst, alocal->dposm); *begin = nround(fabs((min1 - min2) / alocal->dposm)) % step + 1; } } return step; } static int numbering(struct objlist *obj, N_VALUE *inst, int GC, struct axis_config *aconf, struct narray *array) { int fr,fg,fb,fa; int side, begin,step,nnum,numcount,cstep; int autonorm,align,nozero; char *format,*head,*tail,*text,*date_format; int headlen,numlen; int logpow; double po; double norm; int rcode, i; int hx0,hy0,hx1,hy1,fx0,fy0,fx1,fy1,ndir; int ilenmax,flenmax,plen; struct font_config font; struct axislocal alocal; _getobj(obj, "num", inst, &side); if (side == AXIS_NUM_POS_NONE) return 0; _getobj(obj, "num_R", inst, &fr); _getobj(obj, "num_G", inst, &fg); _getobj(obj, "num_B", inst, &fb); _getobj(obj, "num_A", inst, &fa); _getobj(obj, "num_pt", inst, &font.pt); _getobj(obj, "num_space", inst, &font.space); _getobj(obj, "num_script_size", inst, &font.scriptsize); _getobj(obj, "num_begin", inst, &begin); _getobj(obj, "num_step", inst, &step); _getobj(obj, "num_num", inst, &nnum); _getobj(obj, "num_auto_norm", inst, &autonorm); _getobj(obj, "num_head", inst, &head); _getobj(obj, "num_format", inst, &format); _getobj(obj, "num_tail", inst, &tail); _getobj(obj, "num_date_format", inst, &date_format); _getobj(obj, "num_log_pow", inst, &logpow); _getobj(obj, "num_align", inst, &align); _getobj(obj, "num_no_zero", inst, &nozero); _getobj(obj, "num_font", inst, &font.font); _getobj(obj, "num_font_style", inst, &font.style); _getobj(obj, "num_direction",inst, &ndir); GRAcolor(GC, fr, fg, fb, fa); headlen = (head) ? strlen(head) : 0; if (getaxispositionini(&alocal, aconf->type, aconf->min, aconf->max, aconf->inc, aconf->div, FALSE)!=0) { error(obj, ERRMINMAX); return 1; } step = get_step(&alocal, step, &begin); norm = 1; if (alocal.atype == AXISNORMAL) { double abs_pos; abs_pos = fabs(alocal.dposm); if (abs_pos >= pow(10.0, (double) autonorm) || abs_pos <= pow(10.0, (double) - autonorm)) { norm = abs_pos; } } if (aconf->type == AXIS_TYPE_MJD) { norm = 1; if (align == AXIS_NUM_ALIGN_POINT) { align = AXIS_NUM_ALIGN_CENTER; } } if (ndir == AXIS_NUM_POS_OBLIQUE1 || ndir == AXIS_NUM_POS_OBLIQUE2) { align = AXIS_NUM_ALIGN_CENTER; } if (getaxispositionini(&alocal, aconf->type, aconf->min, aconf->max, aconf->inc, aconf->div, FALSE)) { return 1; } GRAtextextent(".", font.font, font.style, font.pt, font.space, font.scriptsize, &fx0, &fy0, &fx1, &fy1, FALSE); plen = abs(fx1 - fx0); hx0 = hy0 = hx1 = hy1 = 0; flenmax = ilenmax = 0; if (begin <= 0) { begin = 1; } cstep = step - begin + 1; numcount = 0; while ((rcode = getaxisposition(&alocal, &po)) != -2) { if (rcode < 2) { continue; } if (cstep == step || (alocal.atype == AXISLOGSMALL && rcode == 3)) { numcount++; if ((numcount <= nnum || nnum == -1) && (po != 0 || ! nozero)) { numformat(&text, &numlen, format, aconf, &alocal, logpow, po, norm, head, tail, date_format); if (text == NULL) { return 1; } if (align == AXIS_NUM_ALIGN_POINT) { for (i = headlen; i < headlen + numlen; i++) { if (text[i] == '.') { break; } } if (text[i] == '.') { GRAtextextent(text + i + 1, font.font, font.style, font.pt, font.space, font.scriptsize, &fx0, &fy0, &fx1, &fy1, FALSE); hy0 = MIN(hy0, fy0); hy1 = MAX(hy1, fy1); if (abs(fx1-fx0) > flenmax) { flenmax = abs(fx1 - fx0); } } text[i] = '\0'; GRAtextextent(text, font.font, font.style, font.pt, font.space, font.scriptsize, &fx0, &fy0, &fx1, &fy1, FALSE); if (abs(fx1 - fx0) > ilenmax) { ilenmax = abs(fx1 - fx0); } hy0 = MIN(hy0, fy0); hy1 = MAX(hy1, fy1); } else { GRAtextextent(text, font.font, font.style, font.pt, font.space, font.scriptsize, &fx0, &fy0, &fx1, &fy1, FALSE); hx0 = MIN(hx0, fx0); hx1 = MAX(hx1, fx1); hy0 = MIN(hy0, fy0); hy1 = MAX(hy1, fy1); } g_free(text); } if ((alocal.atype == AXISLOGSMALL) && (rcode == 3)) { cstep = step - begin; } else { cstep = 0; } } cstep++; } if (align == AXIS_NUM_ALIGN_POINT) { hx0 = 0; hx1 = flenmax + ilenmax + plen / 2; } if (hx0 != hx1 && hy0 != hy1) { draw_numbering(obj, inst, &alocal, GC, side, align, ndir, ilenmax, plen, aconf, &font, step, nnum, numcount, begin, autonorm, nozero, logpow, format, norm, head, headlen, tail, date_format, hx0, hy0, hx1, hy1, array); } return 0; } static int draw_gauge(struct objlist *obj,N_VALUE *inst, int GC, struct axis_config *aconf) { int fr,fg,fb,fa; struct narray *style; int snum,*sdata; struct axislocal alocal; double po,gmin,gmax,min1,max1,min2,max2; int len1,wid1,len2,wid2,len3,wid3,len,wid; int limit; int rcode; int gx0,gy0,gx1,gy1; int gauge; _getobj(obj,"gauge",inst,&gauge); if (gauge == AXIS_GAUGE_NONE) return 0; _getobj(obj,"gauge_R",inst,&fr); _getobj(obj,"gauge_G",inst,&fg); _getobj(obj,"gauge_B",inst,&fb); _getobj(obj,"gauge_A",inst,&fa); _getobj(obj,"gauge_min",inst,&gmin); _getobj(obj,"gauge_max",inst,&gmax); _getobj(obj,"gauge_style",inst,&style); _getobj(obj,"gauge_length1",inst,&len1); _getobj(obj,"gauge_width1",inst,&wid1); _getobj(obj,"gauge_length2",inst,&len2); _getobj(obj,"gauge_width2",inst,&wid2); _getobj(obj,"gauge_length3",inst,&len3); _getobj(obj,"gauge_width3",inst,&wid3); snum=arraynum(style); sdata=arraydata(style); GRAcolor(GC,fr,fg,fb, fa); if (getaxispositionini(&alocal,aconf->type,aconf->min,aconf->max,aconf->inc,aconf->div,FALSE)!=0) { error(obj,ERRMINMAX); return 1; } if ((gmin!=0) || (gmax!=0)) limit=TRUE; else limit=FALSE; switch (aconf->type) { case AXIS_TYPE_LOG: min1=log10(aconf->min); max1=log10(aconf->max); if (limit && (gmin>0) && (gmax>0)) { min2=log10(gmin); max2=log10(gmax); } else limit=FALSE; break; case AXIS_TYPE_INVERSE: min1=1/aconf->min; max1=1/aconf->max; if (limit && (gmin*gmax>0)) { min2=1/gmin; max2=1/gmax; } else limit=FALSE; break; default: min1=aconf->min; max1=aconf->max; if (limit) { min2=gmin; max2=gmax; } } while ((rcode=getaxisposition(&alocal,&po))!=-2) { if ((rcode>=0) && (!limit || ((min2-po)*(max2-po)<=0))) { gx0=aconf->x0+(po-min1)*aconf->length/(max1-min1)*cos(aconf->dir); gy0=aconf->y0-(po-min1)*aconf->length/(max1-min1)*sin(aconf->dir); if (rcode==1) { len=len1; wid=wid1; } else if (rcode==2) { len=len2; wid=wid2; } else { len=len3; wid=wid3; } GRAlinestyle(GC,snum,sdata,wid,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); if ((gauge==1) || (gauge==2)) { gx1=gx0-len*sin(aconf->dir); gy1=gy0-len*cos(aconf->dir); GRAline(GC,gx0,gy0,gx1,gy1); } if ((gauge==1) || (gauge==3)) { gx1=gx0+len*sin(aconf->dir); gy1=gy0+len*cos(aconf->dir); GRAline(GC,gx0,gy0,gx1,gy1); } } } return 0; } static int get_axis_parameter(struct objlist *obj, N_VALUE *inst, struct axis_config *aconf) { _getobj(obj, "min", inst, &aconf->min); _getobj(obj, "max", inst, &aconf->max); _getobj(obj, "inc", inst, &aconf->inc); _getobj(obj, "div", inst, &aconf->div); _getobj(obj, "type", inst, &aconf->type); return 0; } static int get_reference_parameter(struct objlist *obj, N_VALUE *inst, struct axis_config *aconf) { char *axis; N_VALUE *inst1; struct objlist *aobj; int anum, id; struct narray iarray; _getobj(obj,"reference",inst, &axis); if (axis == NULL) return 1; arrayinit(&iarray,sizeof(int)); if (getobjilist(axis,&aobj,&iarray,FALSE,NULL)) return 1; anum=arraynum(&iarray); if (anum>0) { id=arraylast_int(&iarray); arraydel(&iarray); if ((anum>0) && ((inst1=getobjinst(aobj,id))!=NULL)) { get_axis_parameter(aobj, inst1, aconf); } } return 0; } static int draw_wave(struct objlist *obj, N_VALUE *inst, struct axis_config *aconf, int GC) { int wave, wwidth, wlength, i; double wx[5],wxc1[5],wxc2[5],wxc3[5]; double wy[5],wyc1[5],wyc2[5],wyc3[5]; double ww[5],c[6]; double dx, dy; _getobj(obj,"wave",inst,&wave); _getobj(obj,"wave_length",inst,&wlength); _getobj(obj,"wave_width",inst,&wwidth); for (i=0;i<5;i++) ww[i]=i; if ((wave==ARROW_POSITION_BEGIN) || (wave==ARROW_POSITION_BOTH)) { dx=cos(aconf->dir); dy=sin(aconf->dir); wx[0]=nround(aconf->x0-dy*wlength); wx[1]=nround(aconf->x0-dy*0.5*wlength-dx*0.25*wlength); wx[2]=aconf->x0; wx[3]=nround(aconf->x0+dy*0.5*wlength+dx*0.25*wlength); wx[4]=nround(aconf->x0+dy*wlength); if (spline(ww,wx,wxc1,wxc2,wxc3,5,SPLCND2NDDIF,SPLCND2NDDIF,0,0)) { error(obj,ERRAXISSPL); return 1; } wy[0]=nround(aconf->y0-dx*wlength); wy[1]=nround(aconf->y0-dx*0.5*wlength+dy*0.25*wlength); wy[2]=aconf->y0; wy[3]=nround(aconf->y0+dx*0.5*wlength-dy*0.25*wlength); wy[4]=nround(aconf->y0+dx*wlength); if (spline(ww,wy,wyc1,wyc2,wyc3,5,SPLCND2NDDIF,SPLCND2NDDIF,0,0)) { error(obj,ERRAXISSPL); return 1; } GRAlinestyle(GC,0,NULL,wwidth,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); GRAcurvefirst(GC,0,NULL,NULL,NULL,splinedif,splineint,NULL,wx[0],wy[0]); for (i=0;i<4;i++) { c[0]=wxc1[i]; c[1]=wxc2[i]; c[2]=wxc3[i]; c[3]=wyc1[i]; c[4]=wyc2[i]; c[5]=wyc3[i]; if (!GRAcurve(GC,c,wx[i],wy[i])) break; } } if ((wave==ARROW_POSITION_END) || (wave==ARROW_POSITION_BOTH)) { dx=cos(aconf->dir); dy=sin(aconf->dir); wx[0]=nround(aconf->x1-dy*wlength); wx[1]=nround(aconf->x1-dy*0.5*wlength-dx*0.25*wlength); wx[2]=aconf->x1; wx[3]=nround(aconf->x1+dy*0.5*wlength+dx*0.25*wlength); wx[4]=nround(aconf->x1+dy*wlength); if (spline(ww,wx,wxc1,wxc2,wxc3,5,SPLCND2NDDIF,SPLCND2NDDIF,0,0)) { error(obj,ERRAXISSPL); return 1; } wy[0]=nround(aconf->y1-dx*wlength); wy[1]=nround(aconf->y1-dx*0.5*wlength+dy*0.25*wlength); wy[2]=aconf->y1; wy[3]=nround(aconf->y1+dx*0.5*wlength-dy*0.25*wlength); wy[4]=nround(aconf->y1+dx*wlength); if (spline(ww,wy,wyc1,wyc2,wyc3,5,SPLCND2NDDIF,SPLCND2NDDIF,0,0)) { error(obj,ERRAXISSPL); return 1; } GRAlinestyle(GC,0,NULL,wwidth,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); GRAcurvefirst(GC,0,NULL,NULL,NULL,splinedif,splineint,NULL,wx[0],wy[0]); for (i=0;i<4;i++) { c[0]=wxc1[i]; c[1]=wxc2[i]; c[2]=wxc3[i]; c[3]=wyc1[i]; c[4]=wyc2[i]; c[5]=wyc3[i]; if (!GRAcurve(GC,c,wx[i],wy[i])) break; } } return 0; } static int draw_arrow(struct objlist *obj, N_VALUE *inst, struct axis_config *aconf, int GC) { int arrow,alength,awidth; double alen,awid,dx,dy; int ap[6]; _getobj(obj,"arrow",inst,&arrow); _getobj(obj,"arrow_length",inst,&alength); _getobj(obj,"arrow_width",inst,&awidth); alen=aconf->width*(double )alength/10000; awid=aconf->width*(double )awidth/20000; if ((arrow==ARROW_POSITION_BEGIN) || (arrow==ARROW_POSITION_BOTH)) { dx=-cos(aconf->dir); dy=sin(aconf->dir); ap[0]=nround(aconf->x0-dy*awid); ap[1]=nround(aconf->y0+dx*awid); ap[2]=nround(aconf->x0+dx*alen); ap[3]=nround(aconf->y0+dy*alen); ap[4]=nround(aconf->x0+dy*awid); ap[5]=nround(aconf->y0-dx*awid); GRAlinestyle(GC,0,NULL,1,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); GRAdrawpoly(GC,3,ap,GRA_FILL_MODE_EVEN_ODD); } if ((arrow==ARROW_POSITION_END) || (arrow==ARROW_POSITION_BOTH)) { dx=cos(aconf->dir); dy=-sin(aconf->dir); ap[0]=nround(aconf->x1-dy*awid); ap[1]=nround(aconf->y1+dx*awid); ap[2]=nround(aconf->x1+dx*alen); ap[3]=nround(aconf->y1+dy*alen); ap[4]=nround(aconf->x1+dy*awid); ap[5]=nround(aconf->y1-dx*awid); GRAlinestyle(GC,0,NULL,1,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); GRAdrawpoly(GC,3,ap,GRA_FILL_MODE_EVEN_ODD); } return 0; } static int axisdraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; int fr, fg, fb, fa, w, h, bline; struct narray *style; int snum, *sdata; int clip, zoom; int hidden, hidden2; struct axis_config aconf; _getobj(obj,"hidden",inst,&hidden); hidden2=FALSE; _putobj(obj,"hidden",inst,&hidden2); if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _putobj(obj,"hidden",inst,&hidden); _getobj(obj,"GC",inst,&GC); if (GC<0) return 0; if (hidden) goto exit; _getobj(obj,"R",inst,&fr); _getobj(obj,"G",inst,&fg); _getobj(obj,"B",inst,&fb); _getobj(obj,"A",inst,&fa); _getobj(obj,"x",inst,&aconf.x0); _getobj(obj,"y",inst,&aconf.y0); _getobj(obj,"direction",inst,&aconf.direction); _getobj(obj,"baseline",inst,&bline); _getobj(obj,"length",inst,&aconf.length); _getobj(obj,"width",inst,&aconf.width); _getobj(obj,"style",inst,&style); _getobj(obj,"clip",inst,&clip); snum=arraynum(style); sdata=arraydata(style); aconf.dir=aconf.direction/18000.0*MPI; aconf.x1=aconf.x0+nround(aconf.length*cos(aconf.dir)); aconf.y1=aconf.y0-nround(aconf.length*sin(aconf.dir)); GRAregion(GC,&w,&h,&zoom); GRAview(GC,0,0,w*10000.0/zoom,h*10000.0/zoom,clip); GRAcolor(GC,fr,fg,fb, fa); if (bline) { GRAlinestyle(GC,snum,sdata,aconf.width,GRA_LINE_CAP_PROJECTING,GRA_LINE_JOIN_MITER,1000); GRAline(GC,aconf.x0,aconf.y0,aconf.x1,aconf.y1); } draw_arrow(obj, inst, &aconf, GC); if (draw_wave(obj, inst, &aconf, GC)) goto exit; get_axis_parameter(obj, inst, &aconf); if (aconf.min == 0 && aconf.max == 0 && aconf.inc == 0) { get_reference_parameter(obj, inst, &aconf); } if (aconf.min != aconf.max && aconf.inc != 0 && draw_gauge(obj, inst, GC, &aconf)) { goto exit; } get_axis_parameter(obj, inst, &aconf); if (aconf.min != aconf.max && aconf.inc != 0) { numbering(obj, inst, GC, &aconf, NULL); } exit: GRAaddlist(GC,obj,inst,(char *)argv[0],(char *)argv[1]); return 0; } static int axis_get_numbering(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int GC; int hidden; struct axis_config aconf; struct narray *array; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; arrayfree2(rval->array); rval->array = NULL; _getobj(obj, "hidden", inst, &hidden); if (hidden) return 0; _getobj(obj, "GC", inst, &GC); if (GC < 0) return 0; _getobj(obj, "x", inst, &aconf.x0); _getobj(obj, "y", inst, &aconf.y0); _getobj(obj, "direction", inst, &aconf.direction); _getobj(obj, "length", inst, &aconf.length); _getobj(obj, "width", inst, &aconf.width); aconf.dir = aconf.direction / 18000.0 * MPI; aconf.x1 = aconf.x0+nround(aconf.length * cos(aconf.dir)); aconf.y1 = aconf.y0-nround(aconf.length * sin(aconf.dir)); get_axis_parameter(obj, inst, &aconf); if (aconf.min != aconf.max && aconf.inc != 0) { array = arraynew(sizeof(char *)); if (array == NULL) { return 1; } numbering(obj, inst, GC, &aconf, array); rval->array = array; } return 0; } static int axisclear(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { double min,max,inc; min=max=inc=0; if (_putobj(obj,"min",inst,&min)) return 1; if (_putobj(obj,"max",inst,&max)) return 1; if (_putobj(obj,"inc",inst,&inc)) return 1; return 0; } static int axisadjust(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *axis; int ad; struct objlist *aobj; int anum,id; struct narray iarray; N_VALUE *inst1; double min,max,inc,dir,po,dir1,x; int type,posx,posy,len,idir,posx1,posy1,div; struct axislocal alocal; int rcode; int first; int gx,gy,gx0,gy0,count; _getobj(obj,"x",inst,&posx1); _getobj(obj,"y",inst,&posy1); _getobj(obj,"direction",inst,&idir); _getobj(obj,"adjust_axis",inst,&axis); _getobj(obj,"adjust_position",inst,&ad); dir1=idir*MPI/18000; if (axis==NULL) return 0; arrayinit(&iarray,sizeof(int)); if (getobjilist(axis,&aobj,&iarray,FALSE,NULL)) return 1; anum=arraynum(&iarray); if (anum<1) { arraydel(&iarray); return 1; } id=arraylast_int(&iarray); arraydel(&iarray); if ((inst1=getobjinst(aobj,id))==NULL) return 1; if (_getobj(aobj,"min",inst1,&min)) return 1; if (_getobj(aobj,"max",inst1,&max)) return 1; if (_getobj(aobj,"inc",inst1,&inc)) return 1; if (_getobj(aobj,"div",inst1,&div)) return 1; if (_getobj(aobj,"type",inst1,&type)) return 1; if (_getobj(aobj,"x",inst1,&posx)) return 1; if (_getobj(aobj,"y",inst1,&posy)) return 1; if (_getobj(aobj,"length",inst1,&len)) return 1; if (_getobj(aobj,"direction",inst1,&idir)) return 1; dir=idir*MPI/18000; if (min==max) return 0; if (dir==dir1) return 0; if (getaxispositionini(&alocal,type,min,max,inc,div,FALSE)!=0) return 0; if (type==AXIS_TYPE_LOG) { min=log10(min); max=log10(max); } else if (type==AXIS_TYPE_INVERSE) { min=1/min; max=1/max; } gx0 = gy0 = 0; /* this initialization is added to avoid compile warnings. */ first=TRUE; count=0; while ((rcode=getaxisposition(&alocal,&po))!=-2) { if (rcode>=2) { count++; gx=posx+(po-min)*len/(max-min)*cos(dir); gy=posy-(po-min)*len/(max-min)*sin(dir); if (first) { gx0=gx; gy0=gy; first=FALSE; } if (((ad==0) && (po==0)) || (count==ad)) { gx0=gx; gy0=gy; } } } if (first) return 0; x=-sin(dir1)*(gx0-posx1)-cos(dir1)*(gy0-posy1); x=x/(-cos(dir)*sin(dir1)+sin(dir)*cos(dir1)); posx1=nround(posx1+x*cos(dir)); posy1=nround(posy1-x*sin(dir)); if (_putobj(obj,"x",inst,&posx1)) return 1; if (_putobj(obj,"y",inst,&posy1)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int axischangescale(struct objlist *obj,N_VALUE *inst, double *rmin,double *rmax,double *rinc,int room) { int type; double min,max,inc,ming,maxg,order,mmin; double a; _getobj(obj,"type",inst,&type); ming=*rmin; maxg=*rmax; if (ming>maxg) { a=ming; ming=maxg; maxg=a; } if (type==AXIS_TYPE_LOG) { if (ming<=0) return 1; if (maxg<=0) return 1; ming=log10(ming); maxg=log10(maxg); } else if (type==AXIS_TYPE_INVERSE) { if (ming*maxg<=0) return 1; } order=(fabs(ming)+fabs(maxg))*0.5; if (order==0) { maxg=1; ming=-1; } else if (fabs(maxg-ming)/order<1e-6) { maxg=maxg+order*0.5; ming=ming-order*0.5; } inc=scale(maxg-ming); if (room > 0) { max=maxg+(maxg-ming) * (room * 0.0001); max=nraise(max/inc*10)*inc/10; min=ming-(maxg-ming) * (room * 0.0001); min=cutdown(min/inc*10)*inc/10; if (type==AXIS_TYPE_LOG) { max=pow(10.0,max); min=pow(10.0,min); max=log10(nraise(max/scale(max))*scale(max)); min=log10(cutdown(min/scale(min)+1e-15)*scale(min)); } else if (type==AXIS_TYPE_INVERSE) { if (ming*min<=0) min=ming; if (maxg*max<=0) max=maxg; } } else { max=maxg; min=ming; } if (min==max) max=min+1; if (type!=AXIS_TYPE_INVERSE) { inc=scale(max-min); if (max0) inc/=10; } else { inc=scale(max-min); } if ((type!=AXIS_TYPE_LOG) && (inc==0)) inc=1; if (type==AXIS_TYPE_LOG) inc=nround(inc); inc=fabs(inc); if (type==AXIS_TYPE_LOG) { min=pow(10.0,min); max=pow(10.0,max); inc=pow(10.0,inc); } *rmin=min; *rmax=max; *rinc=inc; return 0; } static int axisscale(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int type,room; double min,max,inc; _getobj(obj,"type",inst,&type); min=*(double *)argv[2]; max=*(double *)argv[3]; room=*(int *)argv[4]; axischangescale(obj,inst,&min,&max,&inc,room); if (_putobj(obj,"min",inst,&min)) return 1; if (_putobj(obj,"max",inst,&max)) return 1; if (_putobj(obj,"inc",inst,&inc)) return 1; return 0; } static int axiscoordinate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x,y,dx,dy,type,dir,len; double min,max,c,t,val; _getobj(obj,"type",inst,&type); _getobj(obj,"min",inst,&min); _getobj(obj,"max",inst,&max); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"length",inst,&len); _getobj(obj,"direction",inst,&dir); if (min==max) return 1; if (len==0) return 1; dx=*(int *)argv[2]; dy=*(int *)argv[3]; c=dir/18000.0*MPI; t=-(x-dx)*cos(c)+(y-dy)*sin(c); if (type==AXIS_TYPE_LOG) { if (min<=0) return 1; if (max<=0) return 1; min=log10(min); max=log10(max); } else if (type==AXIS_TYPE_INVERSE) { if (min*max<=0) return 1; min=1.0/min; max=1.0/max; } val=min+(max-min)*t/len; if (type==AXIS_TYPE_LOG) { val=pow(10.0,val); } else if (type==AXIS_TYPE_INVERSE) { if (val==0) return 1; val=1.0/val; } rval->d=val; return 0; } static int axisautoscalefile(struct objlist *obj,N_VALUE *inst,char *fileobj,double *rmin,double *rmax) { struct objlist *fobj; int fnum; int *fdata; struct narray iarray; double min,max,min1,max1, frac; int i,id,set; char buf[20], msgbuf[64], *group; char *argv2[4]; struct narray *minmax; arrayinit(&iarray,sizeof(int)); if (getobjilist(fileobj,&fobj,&iarray,FALSE,NULL)) return 1; fnum=arraynum(&iarray); fdata=arraydata(&iarray); _getobj(obj,"id",inst,&id); snprintf(buf, sizeof(buf), "axis:%d",id); _getobj(obj,"group",inst,&group); argv2[0]=(void *)buf; argv2[1]=NULL; min = max = 0; /* this initialization is added to avoid compile warnings. */ set=FALSE; for (i=0;i=2) { min1=arraynget_double(minmax,0); max1=arraynget_double(minmax,1); if (!set) { min=min1; max=max1; set=TRUE; } else { if (min1max) max=max1; } } } arraydel(&iarray); if (!set) return 1; *rmin=min; *rmax=max; return 0; } static int axisautoscale(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *fileobj; int room; double omin,omax,oinc; double min,max,inc; fileobj=(char *)argv[2]; _getobj(obj,"auto_scale_margin",inst,&room); if (axisautoscalefile(obj,inst,fileobj,&min,&max)) return 0; axischangescale(obj,inst,&min,&max,&inc,room); _getobj(obj,"min",inst,&omin); _getobj(obj,"max",inst,&omax); _getobj(obj,"inc",inst,&oinc); if (omin==omax) { if (_putobj(obj,"min",inst,&min)) return 1; if (_putobj(obj,"max",inst,&max)) return 1; } if (oinc==0) { if (_putobj(obj,"inc",inst,&inc)) return 1; } return 0; } static int axisgetautoscale(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *fileobj; int room; double min,max,inc; struct narray *result; result=rval->array; arrayfree(result); rval->array=NULL; fileobj=(char *)argv[2]; _getobj(obj,"auto_scale_margin",inst,&room); if (axisautoscalefile(obj,inst,fileobj,&min,&max)==0) { axischangescale(obj,inst,&min,&max,&inc,room); result=arraynew(sizeof(double)); arrayadd(result,&min); arrayadd(result,&max); arrayadd(result,&inc); rval->array=result; } return 0; } static int axisautoscale_margin(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { int room; room = * (int *) argv[2]; if (room < 0) { * (int *) argv[2] = 0; } else if (room > 100000) { * (int *) argv[2] = 100000; } return 0; } static int axistight(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { obj_do_tighten(obj, inst, "reference"); obj_do_tighten(obj, inst, "adjust_axis"); return 0; } #define BUF_SIZE 64 static void set_group(struct objlist *obj, int gnum, int id, char axis, char type) { char *group, *group2, buf[BUF_SIZE]; N_VALUE *inst2; inst2 = chkobjinst(obj, id); if (inst2 == NULL) { return; } snprintf(buf, sizeof(buf), "%c%c%d", type, axis, gnum); group = g_strdup(buf); if (group) { _getobj(obj, "group", inst2, &group2); g_free(group2); _putobj(obj, "group", inst2, group); } group = g_strdup(buf); if (group) { _getobj(obj, "name", inst2, &group2); g_free(group2); _putobj(obj, "name", inst2, group); } } static int axisgrouping(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct narray *iarray; int *data; int num,gnum; char type; iarray = (struct narray *)argv[2]; num = arraynum(iarray); if (num < 1) return 1; data = arraydata(iarray); switch (data[0]) { case AXIS_TYPE_FRAME: type='f'; break; case AXIS_TYPE_SECTION: type='s'; break; case AXIS_TYPE_CROSS: type='c'; break; default: error(obj, ERRGROUPING); return 1; } gnum = axisuniqgroup(obj, type); switch (data[0]) { case AXIS_TYPE_FRAME: case AXIS_TYPE_SECTION: if (num < 5) return 1; set_group(obj, gnum, data[1], 'X', type); set_group(obj, gnum, data[2], 'Y', type); set_group(obj, gnum, data[3], 'U', type); set_group(obj, gnum, data[4], 'R', type); break; case AXIS_TYPE_CROSS: if (num<3) return 1; set_group(obj, gnum, data[1], 'X', type); set_group(obj, gnum, data[2], 'Y', type); } return 0; } static void set_group_pos(struct objlist *obj, int id, int x, int y, int len, int dir) { N_VALUE *inst2; inst2 = chkobjinst(obj, id); if (inst2 == NULL) return; _putobj(obj, "direction", inst2, &dir); _putobj(obj, "x", inst2, &x); _putobj(obj, "y", inst2, &y); _putobj(obj, "length", inst2, &len); if (clear_bbox(obj, inst2)) return; } static int axisgrouppos(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int x, y, lx, ly; struct narray *iarray; int *data; int anum; iarray = (struct narray *)argv[2]; anum = arraynum(iarray); if (anum < 1) return 1; data = arraydata(iarray); switch (data[0]) { case AXIS_TYPE_FRAME: case AXIS_TYPE_SECTION: if (anum < 9) return 1; x = data[5]; y = data[6]; lx = data[7]; ly = data[8]; set_group_pos(obj, data[1], x, y, lx, 0); set_group_pos(obj, data[2], x, y, ly, 9000); set_group_pos(obj, data[3], x, y - ly, lx, 0); set_group_pos(obj, data[4], x + lx, y, ly, 9000); break; case AXIS_TYPE_CROSS: if (anum < 7) return 1; x = data[3]; y = data[4]; lx = data[5]; ly = data[6]; set_group_pos(obj, data[1], x, y, lx, 0); set_group_pos(obj, data[2], x, y, ly, 9000); break; } return 0; } static void axis_default(struct objlist *obj, int id, int *oid, int dir, enum AXIS_GAUGE gauge, enum AXIS_NUM_POS num, enum AXIS_NUM_ALIGN align, char *conf) { N_VALUE *inst2; inst2 = chkobjinst(obj, id); if (inst2 == NULL) return; _putobj(obj, "gauge", inst2, &gauge); _putobj(obj, "num", inst2, &num); _putobj(obj, "num_align", inst2, &align); _putobj(obj, "direction", inst2, &dir); if (oid) _getobj(obj, "oid", inst2, oid); if (conf) axisloadconfig(obj, inst2, conf); } static void axis_default_set(struct objlist *obj, int id, int oid, char *field, char *conf) { N_VALUE *inst2; char *ref, *ref2, buf[BUF_SIZE]; inst2 = chkobjinst(obj, id); if (inst2 == NULL) return; snprintf(buf, sizeof(buf), "axis:^%d", oid); ref = g_strdup(buf); if (ref == NULL) return; _getobj(obj, field, inst2, &ref2); g_free(ref2); _putobj(obj, field, inst2, ref); axisloadconfig(obj, inst2, conf); } static void axis_default_set_ref(struct objlist *obj, int id, int oid, char *conf) { axis_default_set(obj, id, oid, "reference", conf); } static void axis_default_set_adj(struct objlist *obj, int id, int oid, char *conf) { axis_default_set(obj, id, oid, "adjust_axis", conf); } static int axisdefgrouping(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { int oidx, oidy; struct narray *iarray; int *data; int anum; if (axisgrouping(obj, inst, rval, argc, argv)) return 1; iarray = (struct narray *) argv[2]; anum = arraynum(iarray); if (anum < 1) return 1; data = arraydata(iarray); switch (data[0]) { case AXIS_TYPE_FRAME: if (anum < 5) return 1; axis_default(obj, data[1], &oidx, 0, AXIS_GAUGE_LEFT, AXIS_NUM_POS_RIGHT, AXIS_NUM_ALIGN_CENTER, "[axis_fX]"); axis_default(obj, data[2], &oidy, 9000, AXIS_GAUGE_RIGHT, AXIS_NUM_POS_LEFT, AXIS_NUM_ALIGN_RIGHT, "[axis_fY]"); axis_default(obj, data[3], NULL, 0, AXIS_GAUGE_RIGHT, AXIS_NUM_POS_LEFT, AXIS_NUM_ALIGN_CENTER, NULL); axis_default(obj, data[4], NULL, 9000, AXIS_GAUGE_LEFT, AXIS_NUM_POS_RIGHT, AXIS_NUM_ALIGN_LEFT, NULL); axis_default_set_ref(obj, data[3], oidx, "[axis_fU]"); axis_default_set_ref(obj, data[4], oidy, "[axis_fR]"); if (anum < 9) return 0; break; case AXIS_TYPE_SECTION: if (anum < 5) return 1; axis_default(obj, data[1], &oidx, 0, AXIS_GAUGE_NONE, AXIS_NUM_POS_RIGHT, AXIS_NUM_ALIGN_CENTER, "[axis_sX]"); axis_default(obj, data[2], &oidy, 9000, AXIS_GAUGE_NONE, AXIS_NUM_POS_LEFT, AXIS_NUM_ALIGN_RIGHT, "[axis_sY]"); axis_default(obj, data[3], NULL, 0, AXIS_GAUGE_NONE, AXIS_NUM_POS_LEFT, AXIS_NUM_ALIGN_CENTER, NULL); axis_default(obj, data[4], NULL, 9000, AXIS_GAUGE_NONE, AXIS_NUM_POS_RIGHT, AXIS_NUM_ALIGN_LEFT, NULL); axis_default_set_ref(obj, data[3], oidx, "[axis_sU]"); axis_default_set_ref(obj, data[4], oidy, "[axis_sR]"); if (anum < 9) return 0; break; case AXIS_TYPE_CROSS: if (anum < 3) return 1; axis_default(obj, data[1], &oidx, 0, AXIS_GAUGE_BOTH, AXIS_NUM_POS_RIGHT, AXIS_NUM_ALIGN_CENTER, NULL); axis_default(obj, data[2], &oidy, 9000, AXIS_GAUGE_BOTH, AXIS_NUM_POS_LEFT, AXIS_NUM_ALIGN_RIGHT, NULL); axis_default_set_adj(obj, data[1], oidy, "[axis_cX]"); axis_default_set_adj(obj, data[2], oidx, "[axis_cY]"); if (anum < 7) return 0; break; default: return 1; } if (axisgrouppos(obj, inst, rval, argc, argv)) return 1; return 0; } static int axis_save_group(struct objlist *obj, int type, N_VALUE **inst_array, N_VALUE *rval) { char *str; int i, n, id; GString *s; switch (type) { case 'f': str = "\naxis::grouping 1 "; n = 4; break; case 's': str = "\naxis::grouping 2 "; n = 4; break; case 'c': str = "\naxis::grouping 3 "; n = 2; break; default: /* never reached */ return 1; } s = g_string_sized_new(64); if (s == NULL) return 1; if (rval->str) { g_string_append(s, rval->str); } g_string_append(s, str); for (i = 0; i < n; i++) { _getobj(obj, "id", inst_array[i], &id); g_string_append_printf(s, "%d%c", id, (i == n - 1) ? '\n' : ' '); } g_free(rval->str); rval->str = g_string_free(s, FALSE); return 0; } static int axissave(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int i, r, anum, type; struct narray *array; char **adata; N_VALUE *inst_array[INST_ARRAY_NUM]; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; array = (struct narray *) argv[2]; anum = arraynum(array); adata = arraydata(array); for (i = 0; i < anum; i++) { if (strcmp("grouping", adata[i]) == 0) return 0; } type = get_axis_group_type(obj, inst, inst_array, FALSE); r = 0; switch (type) { case 'a': break; case 'f': case 's': case 'c': r = axis_save_group(obj, type, inst_array, rval); break; } return r; } static int axismanager(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int i,id,lastinst; char *group,*group2; char type; N_VALUE *inst2; _getobj(obj,"id",inst,&id); _getobj(obj,"group",inst,&group); if ((group==NULL) || (group[0]=='a')) { rval->i=id; return 0; } lastinst=chkobjlastinst(obj); id=-1; type=group[0]; for (i=0;i<=lastinst;i++) { inst2=chkobjinst(obj,i); _getobj(obj,"group",inst2,&group2); if ((group2!=NULL) && (group2[0]==type) && (strcmp(group+2,group2+2)==0)) id=i; } rval->i=id; return 0; } static int axisscalepush(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; int num; double min,max,inc,*data; _getobj(obj,"min",inst,&min); _getobj(obj,"max",inst,&max); _getobj(obj,"inc",inst,&inc); if ((min==0) && (max==0) && (inc==0)) return 0; _getobj(obj,"scale_history",inst,&array); if (array==NULL) { if ((array=arraynew(sizeof(double)))==NULL) return 1; if (_putobj(obj,"scale_history",inst,array)) { arrayfree(array); return 1; } } num=arraynum(array); data=arraydata(array); if ((num>=3) && (data[0]==min) && (data[1]==max) && (data[2]==inc)) return 0; if (num > AXIS_HISTORY_NUM) { arrayndel(array, AXIS_HISTORY_NUM - 1); arrayndel(array, AXIS_HISTORY_NUM - 2); arrayndel(array, AXIS_HISTORY_NUM - 3); } arrayins(array,&inc,0); arrayins(array,&max,0); arrayins(array,&min,0); return 0; } static int axisscalepop(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; int num; double *data; _getobj(obj,"scale_history",inst,&array); if (array==NULL) return 0; num=arraynum(array); data=arraydata(array); if (num>=3) { _putobj(obj,"min",inst,&(data[0])); _putobj(obj,"max",inst,&(data[1])); _putobj(obj,"inc",inst,&(data[2])); arrayndel(array,2); arrayndel(array,1); arrayndel(array,0); } if (arraynum(array)==0) { arrayfree(array); _putobj(obj,"scale_history",inst,NULL); } return 0; } static int anumdirput(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { int type; type = * (int *) argv[2]; switch (type) { case AXIS_NUM_POS_HORIZONTAL: case AXIS_NUM_POS_PARALLEL1: case AXIS_NUM_POS_PARALLEL2: case AXIS_NUM_POS_NORMAL1: case AXIS_NUM_POS_NORMAL2: case AXIS_NUM_POS_OBLIQUE1: case AXIS_NUM_POS_OBLIQUE2: break; case AXIS_NUM_POS_NORMAL: * (int *) argv[2] = AXIS_NUM_POS_HORIZONTAL; break; case AXIS_NUM_POS_PARALLEL: * (int *) argv[2] = AXIS_NUM_POS_PARALLEL1; break; default: * (int *) argv[2] = AXIS_NUM_POS_HORIZONTAL; break; } return 0; } static struct objtable axis[] = { {"init",NVFUNC,NEXEC,axisinit,NULL,0}, {"done",NVFUNC,NEXEC,axisdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"group",NSTR,NREAD,NULL,NULL,0}, {"min",NDOUBLE,NREAD|NWRITE,NULL,NULL,0}, {"max",NDOUBLE,NREAD|NWRITE,NULL,NULL,0}, {"inc",NDOUBLE,NREAD|NWRITE,NULL,NULL,0}, {"div",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"type",NENUM,NREAD|NWRITE,NULL,axistypechar,0}, {"x",NINT,NREAD|NWRITE,axisgeometry,NULL,0}, {"y",NINT,NREAD|NWRITE,axisgeometry,NULL,0}, {"direction",NINT,NREAD|NWRITE,axisdirection,NULL,0}, {"baseline",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"length",NINT,NREAD|NWRITE,axisgeometry,NULL,0}, {"width",NINT,NREAD|NWRITE,NULL,NULL,0}, {"style",NIARRAY,NREAD|NWRITE,NULL,NULL,0}, {"auto_scale_margin",NINT,NREAD|NWRITE,axisautoscale_margin,NULL,0}, {"adjust_axis",NOBJ,NREAD|NWRITE,NULL,NULL,0}, {"adjust_position",NINT,NREAD|NWRITE,NULL,NULL,0}, {"arrow",NENUM,NREAD|NWRITE,NULL,arrowchar,0}, {"arrow_length",NINT,NREAD|NWRITE,axisput,NULL,0}, {"arrow_width",NINT,NREAD|NWRITE,axisput,NULL,0}, {"wave",NENUM,NREAD|NWRITE,NULL,arrowchar,0}, {"wave_length",NINT,NREAD|NWRITE,axisput,NULL,0}, {"wave_width",NINT,NREAD|NWRITE,axisput,NULL,0}, {"reference",NOBJ,NREAD|NWRITE,NULL,NULL,0}, {"gauge",NENUM,NREAD|NWRITE,NULL,axisgaugechar,0}, {"gauge_min",NDOUBLE,NREAD|NWRITE,NULL,NULL,0}, {"gauge_max",NDOUBLE,NREAD|NWRITE,NULL,NULL,0}, {"gauge_style",NIARRAY,NREAD|NWRITE,NULL,NULL,0}, {"gauge_length1",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"gauge_width1",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"gauge_length2",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"gauge_width2",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"gauge_length3",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"gauge_width3",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"gauge_R",NINT,NREAD|NWRITE,NULL,NULL,0}, {"gauge_G",NINT,NREAD|NWRITE,NULL,NULL,0}, {"gauge_B",NINT,NREAD|NWRITE,NULL,NULL,0}, {"gauge_A",NINT,NREAD|NWRITE,NULL,NULL,0}, {"num",NENUM,NREAD|NWRITE,NULL,axisnumchar,0}, {"num_begin",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"num_step",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"num_num",NINT,NREAD|NWRITE,axisput,NULL,0}, {"num_auto_norm",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"num_head",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"num_format",NSTR,NREAD|NWRITE,axisput,NULL,0}, {"num_tail",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"num_log_pow",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"num_pt",NINT,NREAD|NWRITE,axisput,NULL,0}, {"num_space",NINT,NREAD|NWRITE,NULL,NULL,0}, {"num_font",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"num_font_style",NINT,NREAD|NWRITE,NULL,NULL,0}, {"num_script_size",NINT,NREAD|NWRITE,axisput,NULL,0}, {"num_align",NENUM,NREAD|NWRITE,NULL,anumalignchar,0}, {"num_no_zero",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"num_direction",NENUM,NREAD|NWRITE,anumdirput,anumdirchar,0}, {"num_shift_p",NINT,NREAD|NWRITE,NULL,NULL,0}, {"num_shift_n",NINT,NREAD|NWRITE,NULL,NULL,0}, {"num_R",NINT,NREAD|NWRITE,NULL,NULL,0}, {"num_G",NINT,NREAD|NWRITE,NULL,NULL,0}, {"num_B",NINT,NREAD|NWRITE,NULL,NULL,0}, {"num_A",NINT,NREAD|NWRITE,NULL,NULL,0}, {"num_date_format",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"scale_push",NVFUNC,NREAD|NEXEC,axisscalepush,"",0}, {"scale_pop",NVFUNC,NREAD|NEXEC,axisscalepop,"",0}, {"scale_history",NDARRAY,NREAD,NULL,NULL,0}, {"scale",NVFUNC,NREAD|NEXEC,axisscale,"ddi",0}, {"auto_scale",NVFUNC,NREAD|NEXEC,axisautoscale,"o",0}, {"get_auto_scale",NDAFUNC,NREAD|NEXEC,axisgetautoscale,"o",0}, {"clear",NVFUNC,NREAD|NEXEC,axisclear,"",0}, {"adjust",NVFUNC,NREAD|NEXEC,axisadjust,"",0}, {"draw",NVFUNC,NREAD|NEXEC,axisdraw,"i",0}, {"bbox",NIAFUNC,NREAD|NEXEC,axisbbox,"",0}, {"move",NVFUNC,NREAD|NEXEC,axismove,"ii",0}, {"rotate",NVFUNC,NREAD|NEXEC,axisrotate,"iiii",0}, {"flip",NVFUNC,NREAD|NEXEC,axisflip,"iii",0}, {"change",NVFUNC,NREAD|NEXEC,axischange,"iii",0}, {"zooming",NVFUNC,NREAD|NEXEC,axiszoom,"iiii",0}, {"match",NBFUNC,NREAD|NEXEC,axismatch,"iiiii",0}, {"coordinate",NDFUNC,NREAD|NEXEC,axiscoordinate,"ii",0}, {"tight",NVFUNC,NREAD|NEXEC,axistight,"",0}, {"grouping",NVFUNC,NREAD|NEXEC,axisgrouping,"ia",0}, {"default_grouping",NVFUNC,NREAD|NEXEC,axisdefgrouping,"ia",0}, {"group_position",NVFUNC,NREAD|NEXEC,axisgrouppos,"ia",0}, {"group_manager",NIFUNC,NREAD|NEXEC,axismanager,"",0}, {"get_numbering",NSAFUNC,NREAD|NEXEC,axis_get_numbering,"",0}, {"save",NSFUNC,NREAD|NEXEC,axissave,"sa",0}, /* following fields exist for backward compatibility */ {"num_jfont",NSTR,NWRITE,NULL,NULL,0}, }; #define TBLNUM (sizeof(axis) / sizeof(*axis)) void * addaxis(void) /* addaxis() returns NULL on error */ { unsigned int i; if (AxisConfigHash == NULL) { AxisConfigHash = nhash_new(); if (AxisConfigHash == NULL) return NULL; for (i = 0; i < sizeof(AxisConfig) / sizeof(*AxisConfig); i++) { if (nhash_set_ptr(AxisConfigHash, AxisConfig[i].name, (void *) &AxisConfig[i])) { nhash_free(AxisConfigHash); return NULL; } } } return addobject(NAME, NULL, PARENT, OVERSION, TBLNUM, axis, ERRNUM, axiserrorlist, NULL, NULL); } ngraph-gtk-6.06.13/src/ogra.h0000644000175000017500000000023112241111706012531 00000000000000#define ERROPEN 100 #define ERRBUSY 101 #define ERRALOPEN 102 #define ERRNODEVICE 103 #define ERRILGC 104 #define ERRGRABUSY 105 #define ERRGRACLOSE 106 ngraph-gtk-6.06.13/src/nhash.h0000644000175000017500000000222412241111705012705 00000000000000/* * $Id: nhash.h,v 1.6 2009-09-19 13:21:44 hito Exp $ */ #ifndef NHASH_HEADER #define NHASH_HEADER struct nhash { char *key; union { int i; void *p; } val; struct nhash *l, *r, *p; }; typedef struct nhash **NHASH; NHASH nhash_new(void); void nhash_free(NHASH hash); void nhash_free_with_memfree_ptr(NHASH hash); void nhash_clear(NHASH hash); int nhash_set_int(NHASH hash, const char *key, int val); int nhash_set_ptr(NHASH hash, const char *key, void *val); int nhash_get_int(NHASH hash, const char *key, int *val); int nhash_get_ptr(NHASH hash, const char *key, void **val); int nhash_each(NHASH hash, int(* func)(struct nhash *, void *), void *data); void nhash_del(NHASH hash, const char *key); int nhash_set_int_with_hkey(NHASH hash, const char *key, int hkey, int val); int nhash_set_ptr_with_hkey(NHASH hash, const char *key, int hkey, void *val); int nhash_get_int_with_hkey(NHASH hash, const char *key, int hkey, int *val); int nhash_get_ptr_with_hkey(NHASH hash, const char *key, int hkey, void **val); void nhash_del_with_hkey(NHASH hash, const char *key, int hkey); int nhash_num(NHASH hash); int nhash_hkey(const char *ptr); #endif ngraph-gtk-6.06.13/src/odraw.h0000644000175000017500000000342612241111703012723 00000000000000/* * $Id: odraw.h,v 1.6 2009-08-07 02:52:40 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef ODRAW_HEADER #define ODRAW_HEADER enum INTERPOLATION_TYPE { INTERPOLATION_TYPE_SPLINE, INTERPOLATION_TYPE_SPLINE_CLOSE, INTERPOLATION_TYPE_BSPLINE, INTERPOLATION_TYPE_BSPLINE_CLOSE, }; enum ARROW_POSITION_TYPE { ARROW_POSITION_NONE, ARROW_POSITION_END, ARROW_POSITION_BEGIN, ARROW_POSITION_BOTH, }; enum SAVE_PATH_TYPE { SAVE_PATH_UNCHANGE, SAVE_PATH_FULL, SAVE_PATH_RELATIVE, SAVE_PATH_BASE, }; enum JOIN_TYPE { JOIN_TYPE_MITER, JOIN_TYPE_ROUND, JOIN_TYPE_BEVEL, }; #define INTERPOLATION_TYPE_NUM (INTERPOLATION_TYPE_BSPLINE_CLOSE + 1) extern char *pathchar[]; extern char *capchar[]; extern char *joinchar[]; extern char *fillchar[]; extern char *fontchar[]; extern char *intpchar[]; extern char *arrowchar[]; int pathsave(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv); int clear_bbox(struct objlist *obj, N_VALUE *inst); #endif ngraph-gtk-6.06.13/src/ntime.h0000644000175000017500000000220512241111706012720 00000000000000/* * $Id: ntime.h,v 1.1.1.1 2008-05-29 09:37:33 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ char *ndate(time_t *timep,int style); char *ntime(time_t *timep,int style); int gettimeval(char *s,time_t *time); char *nstrftime(const gchar *fmt, double mjd); void mjd2gd(double mjd, struct tm *tm); #define MJD2GD_YEAR_MIN (-1900 - 4800) ngraph-gtk-6.06.13/src/ogra2prn.c0000644000175000017500000001301212241111706013327 00000000000000/* * $Id: ogra2prn.c,v 1.8 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include #include "object.h" #include "nstring.h" #include "ioutil.h" #include "shell.h" #define NAME "gra2prn" #define PARENT "gra2" #define OVERSION "1.00.00" #define ERRFOPEN 100 static char *gra2perrorlist[]={ "I/O error: open file" }; #define ERRNUM (sizeof(gra2perrorlist) / sizeof(*gra2perrorlist)) struct gra2plocal { char *fname; FILE *fil; }; static int gra2pinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct gra2plocal *gra2plocal; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; if ((gra2plocal=g_malloc(sizeof(struct gra2plocal)))==NULL) goto errexit; if (_putobj(obj,"_local",inst,gra2plocal)) goto errexit; gra2plocal->fname=NULL; gra2plocal->fil=NULL; return 0; errexit: g_free(gra2plocal); return 1; } static int gra2pdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct gra2plocal *gra2plocal; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"_local",inst,&gra2plocal); if (gra2plocal->fname!=NULL) g_free(gra2plocal->fname); if (gra2plocal->fil!=NULL) fclose(gra2plocal->fil); return 0; } static FILE * mytempfile(char *pfx, char **name) { int fd; fd = n_mkstemp(NULL, pfx, name); if (fd < 0) { return NULL; } return fdopen(fd, "w+"); } static int gra2p_output(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct gra2plocal *gra2plocal; struct objlist *sys; char code; int *cpar; int i; char *cstr; char *graf,*sname,*sver; char *pfx; GString *s; char *driver,*option,*prn; struct nshell *nshell; gra2plocal=(struct gra2plocal *)argv[2]; code=*(char *)(argv[3]); cpar=(int *)argv[4]; cstr=argv[5]; if (code=='I') { if (gra2plocal->fil) fclose(gra2plocal->fil); gra2plocal->fil=NULL; if ((sys=getobject("system"))==NULL) return 1; if (getobj(sys,"temp_prefix",0,0,NULL,&pfx)) return 1; if (gra2plocal->fname) g_free(gra2plocal->fname); gra2plocal->fil = mytempfile(pfx, &gra2plocal->fname); if (gra2plocal->fil == NULL) { error2(obj,ERRFOPEN,gra2plocal->fname); g_free(gra2plocal->fname); gra2plocal->fname = NULL; return 1; } if (getobj(sys,"name",0,0,NULL,&sname)) return 1; if (getobj(sys,"version",0,0,NULL,&sver)) return 1; if (getobj(sys,"GRAF",0,0,NULL,&graf)) return 1; fprintf(gra2plocal->fil,"%s\n",graf); fprintf(gra2plocal->fil,"%%Creator: %s ver %s\n",sname,sver); } if (gra2plocal->fil) { fputc(code,gra2plocal->fil); if (cpar[0]==-1) { for (i=0;cstr[i]!='\0';i++) { fputc(cstr[i],gra2plocal->fil); } } else { fprintf(gra2plocal->fil,",%d",cpar[0]); for (i=1;i<=cpar[0];i++) { fprintf(gra2plocal->fil,",%d",cpar[i]); } } fputc('\n',gra2plocal->fil); if (code=='E') { fclose(gra2plocal->fil); gra2plocal->fil=NULL; _getobj(obj,"driver",inst,&driver); _getobj(obj,"option",inst,&option); _getobj(obj,"prn",inst,&prn); s = g_string_sized_new(256); if (s == NULL) { goto errexit; } if (driver) { g_string_append(s, driver); } g_string_append_c(s,' '); if (option) { g_string_append(s,option); } g_string_append(s," '"); if (gra2plocal->fname) { g_string_append(s, gra2plocal->fname); } g_string_append(s,"' "); if (prn) { g_string_append(s,prn); } nshell = newshell(); if (nshell == NULL) { g_string_free(s, TRUE); goto errexit; } ngraphenvironment(nshell); cmdexecute(nshell, s->str); delshell(nshell); g_string_free(s, TRUE); g_unlink(gra2plocal->fname); g_free(gra2plocal->fname); gra2plocal->fname=NULL; } } return 0; errexit: if (gra2plocal->fname) { g_unlink(gra2plocal->fname); g_free(gra2plocal->fname); gra2plocal->fname = NULL; } return 1; } static struct objtable gra2p[] = { {"init",NVFUNC,NEXEC,gra2pinit,NULL,0}, {"done",NVFUNC,NEXEC,gra2pdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"driver",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"option",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"prn",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"_local",NPOINTER,0,NULL,NULL,0}, {"_output",NVFUNC,0,gra2p_output,NULL,0}, }; #define TBLNUM (sizeof(gra2p) / sizeof(*gra2p)) void * addgra2prn(void) /* addgra2prn() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,gra2p,ERRNUM,gra2perrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/opath.c0000644000175000017500000006362512241111703012724 00000000000000/* * $Id: oline.c,v 1.13 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include "object.h" #include "gra.h" #include "spline.h" #include "mathfn.h" #include "oroot.h" #include "odraw.h" #include "olegend.h" #include "opath.h" #define NAME "path" #define ALIAS "line:curve:polygon" #define PARENT "legend" #define OVERSION "1.00.01" #define ERRSPL 100 static char *patherrorlist[]={ "error: spline interpolation." }; #define ERRNUM (sizeof(patherrorlist) / sizeof(*patherrorlist)) static char *path_fill_mode[]={ "false", "true", "\0empty", /* for backward compatibility */ "\0even_odd_rule", /* for backward compatibility */ "\0winding_rule", /* for backward compatibility */ NULL, }; enum PATH_FUILL_MODE { PATH_FILL_MODE_TRUE, PATH_FILL_MODE_FALSE, PATH_FILL_MODE_EMPTY, PATH_FILL_MODE_EVEN_ODD, PATH_FILL_MODE_WINDING, }; static char *path_fill_rule[]={ N_("even_odd_rule"), N_("winding_rule"), NULL, }; enum PATH_FUILL_RULE { PATH_FILL_RULE_EVEN_ODD, PATH_FILL_RULE_WINDING, }; static char *path_type[]={ N_("line"), N_("curve"), NULL, }; static int arrowinit(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int width, headlen, headwidth, miter, stroke, join, prm, type, alpha; struct narray *expand_points; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) { return 1; } switch (argv[0][0]) { case 'l': /* line */ type = PATH_TYPE_LINE; break; case 'c': /* curve */ type = PATH_TYPE_CURVE; break; case 'p': /* polygon or path */ type = PATH_TYPE_LINE; prm = 1; if (strcmp(argv[0], "polygon") == 0) { _putobj(obj, "close_path", inst, &prm); } break; default: type = PATH_TYPE_LINE; } width = 40; headlen = 72426; headwidth = 60000; miter = 1000; join = JOIN_TYPE_BEVEL; stroke = 1; alpha = 255; if (_putobj(obj, "type", inst, &type)) return 1; if (_putobj(obj, "stroke", inst, &stroke)) return 1; if (_putobj(obj, "width", inst, &width)) return 1; if (_putobj(obj, "miter_limit", inst, &miter)) return 1; if (_putobj(obj, "arrow_length", inst, &headlen)) return 1; if (_putobj(obj, "arrow_width", inst, &headwidth)) return 1; if (_putobj(obj, "join", inst, &join)) return 1; if (_putobj(obj, "stroke_A", inst, &alpha)) return 1; if (_putobj(obj, "fill_A", inst, &alpha)) return 1; expand_points = arraynew(sizeof(int)); if (expand_points == NULL) { return 1; } if (_putobj(obj, "_points", inst, expand_points)) { arrayfree(expand_points); return 1; } return 0; } static int arrowdone(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; return 0; } #define ARROW_SIZE_MIN 10000 #define ARROW_SIZE_MAX 200000 static int arrowput(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *field; int *val_ptr; field = argv[1]; val_ptr = (int *) argv[2]; if (strcmp(field, "width") == 0) { if (*val_ptr < 1) { *val_ptr = 1; } } else if (strcmp(field, "arrow_length") == 0) { if (*val_ptr < ARROW_SIZE_MIN) { *val_ptr = ARROW_SIZE_MIN; } else if (*val_ptr > ARROW_SIZE_MAX) { *val_ptr = ARROW_SIZE_MAX; } } else if (strcmp(field, "arrow_width") == 0) { if (*val_ptr < ARROW_SIZE_MIN) { *val_ptr = ARROW_SIZE_MIN; } else if (*val_ptr > ARROW_SIZE_MAX) { *val_ptr = ARROW_SIZE_MAX; } } if (clear_bbox(obj, inst)) { return 1; } return 0; } static int curve_expand(double c[], double x0, double y0, diffunc gdiff, intpfunc gintpf, struct narray *expand_points) { double d, dx, dy, ddx, ddy, dd, x, y; int gx2, gy2; d = 0; while (d < 1) { gdiff(d, c, &dx, &dy, &ddx, &ddy, NULL); if (fabs(dx) + fabs(ddx) / 3 <= 1E-100) { dx = 1; } else { dx = sqrt(fabs(2 / (fabs(dx) + fabs(ddx) / 3))); } if (fabs(dy) + fabs(ddy) / 3 <= 1E-100) { dy = 1; } else { dy = sqrt(fabs(2 / (fabs(dy) + fabs(ddy) / 3))); } dd = (dx < dy) ? dx : dy; d += dd; if (d > 1) { d = 1; } gintpf(d, c, x0, y0, &x, &y, NULL); gx2 = nround(x); gy2 = nround(y); arrayadd(expand_points, &gx2); arrayadd(expand_points, &gy2); } return TRUE; } static int curve_expand_points(struct objlist *obj, N_VALUE *inst, int intp, struct narray *expand_points) { int i, j, num, bsize, spcond, x, y; struct narray *points; double c[8]; double *buf; double bs1[7], bs2[7], bs3[4], bs4[4]; int *pdata; _getobj(obj, "points", inst, &points); num = arraynum(points)/2; pdata = arraydata(points); arrayclear(expand_points); switch (intp) { case INTERPOLATION_TYPE_SPLINE: case INTERPOLATION_TYPE_SPLINE_CLOSE: if (num < 2) return 0; bsize = num + 1; buf = g_malloc(sizeof(double) * 9 * bsize); if (buf == NULL) return 1; for (i = 0; i < bsize; i++) buf[i]=i; for (i = 0; i < num; i++) { buf[bsize + i] = pdata[i * 2]; buf[bsize * 2 + i] = pdata[i * 2 + 1]; } if (intp == INTERPOLATION_TYPE_SPLINE) { spcond = SPLCND2NDDIF; } else { spcond = SPLCNDPERIODIC; if (buf[num - 1 + bsize] != buf[bsize] || buf[num - 1 + 2 * bsize] != buf[2 * bsize]) { buf[num + bsize] = buf[bsize]; buf[num + 2 * bsize] = buf[2 * bsize]; num++; } } if (spline(buf, buf + bsize, buf + 3 * bsize, buf + 4 * bsize, buf + 5 * bsize, num, spcond, spcond, 0, 0)) { g_free(buf); error(obj, ERRSPL); return 1; } if (spline(buf, buf + 2 * bsize, buf + 6 * bsize, buf + 7 * bsize, buf + 8 * bsize, num, spcond, spcond, 0, 0)) { g_free(buf); error(obj, ERRSPL); return 1; } x = nround(buf[bsize]); y = nround(buf[bsize * 2]); arrayadd(expand_points, &x); arrayadd(expand_points, &y); for (i = 0; i < num - 1; i++) { for (j = 0; j < 6; j++) { c[j] = buf[i + (j + 3) * bsize]; } if (! curve_expand(c, buf[i + bsize], buf[i + 2 * bsize], splinedif, splineint, expand_points)) { break; } } g_free(buf); break; case INTERPOLATION_TYPE_BSPLINE: if (num < 7) { return 0; } for (i = 0; i < 7; i++) { bs1[i] = pdata[i * 2]; bs2[i] = pdata[i * 2 + 1]; } for (j = 0; j < 2; j++) { bspline(j + 1, bs1 + j, c); bspline(j + 1, bs2 + j, c + 4); if (j == 0) { x = nround(c[0]); y = nround(c[4]); arrayadd(expand_points, &x); arrayadd(expand_points, &y); } if (! curve_expand(c, c[0], c[4], bsplinedif, bsplineint, expand_points)) { return 0; } } for (; i < num; i++) { for (j = 1; j < 7; j++) { bs1[j - 1] = bs1[j]; bs2[j - 1] = bs2[j]; } bs1[6] = pdata[i*2]; bs2[6] = pdata[i*2+1]; bspline(0, bs1 + 1, c); bspline(0, bs2 + 1, c + 4); if (! curve_expand(c, c[0], c[4], bsplinedif, bsplineint, expand_points)) { return 0; } } for (j = 0; j < 2; j++) { bspline(j + 3, bs1 + j + 2, c); bspline(j + 3, bs2 + j + 2, c + 4); if (! curve_expand(c, c[0], c[4], bsplinedif, bsplineint, expand_points)) { return 0; } } break; case INTERPOLATION_TYPE_BSPLINE_CLOSE: if (num < 4) { return 0; } for (i = 0; i < 4; i++) { bs1[i] = pdata[i * 2]; bs3[i] = pdata[i * 2]; bs2[i] = pdata[i * 2 + 1]; bs4[i] = pdata[i * 2 + 1]; } bspline(0, bs1, c); bspline(0, bs2, c + 4); x = nround(c[0]); y = nround(c[4]); arrayadd(expand_points, &x); arrayadd(expand_points, &y); if (! curve_expand(c, c[0], c[4], bsplinedif, bsplineint, expand_points)) { return 0; } for (; i < num; i++) { for (j = 1; j < 4; j++) { bs1[j - 1] = bs1[j]; bs2[j - 1] = bs2[j]; } bs1[3] = pdata[i * 2]; bs2[3] = pdata[i * 2 + 1]; bspline(0, bs1, c); bspline(0, bs2, c + 4); if (! curve_expand(c, c[0], c[4], bsplinedif, bsplineint, expand_points)) { return 0; } } for (j = 0; j < 3; j++) { bs1[4 + j] = bs3[j]; bs2[4 + j] = bs4[j]; bspline(0, bs1 + j + 1, c); bspline(0, bs2 + j + 1, c + 4); if (! curve_expand(c, c[0], c[4], bsplinedif, bsplineint, expand_points)) { return 0; } } break; } return 0; } static void curve_clear(struct objlist *obj,N_VALUE *inst) { struct narray *expand_points; _getobj(obj, "_points", inst, &expand_points); arrayclear(expand_points); } static double distance(double x1, double y1) { return sqrt(x1 * x1 + y1 * y1); } static void get_arrow_pos(int *points2, int n, int width, int headlen, int headwidth, int x0, int y0, int x1, int y1, int *ap) { int ax0, ay0, ox, oy; double alen, alen2, awidth, len, dx, dy; alen = width * (double) headlen / 10000; awidth = width * (double) headwidth / 20000; dx = x0 - x1; dy = y0 - y1; len = distance(dx, dy); dx /= len; dy /= len; ax0 = nround(x0 - dx * alen); ay0 = nround(y0 - dy * alen); alen2 = alen * width / awidth / 2; if (len >= alen2) { ox = oy = 0; if (points2) { points2[n] = nround(x0 - dx * alen2); points2[n + 1] = nround(y0 - dy * alen2); } } else { ox = nround(dx * alen2); oy = nround(dy * alen2); } ax0 += ox; ay0 += oy; ap[0] = nround(ax0 - dy * awidth); ap[1] = nround(ay0 + dx * awidth); ap[2] = x0 + nround(ox); ap[3] = y0 + nround(oy); ap[4] = nround(ax0 + dy * awidth); ap[5] = nround(ay0 - dx * awidth); } static void draw_stroke(struct objlist *obj, N_VALUE *inst, int GC, int *points2, int *pdata, int num, int close_path) { int width, fr, fg, fb, fa, headlen, headwidth; int join, miter, head; int x, y, x0, y0, x1, y1, x2, y2, x3, y3; struct narray *style; int snum, *sdata; int i; int ap[6], ap2[6]; _getobj(obj, "stroke_R", inst, &fr); _getobj(obj, "stroke_G", inst, &fg); _getobj(obj, "stroke_B", inst, &fb); _getobj(obj, "stroke_A", inst, &fa); _getobj(obj, "width", inst, &width); _getobj(obj, "style", inst, &style); _getobj(obj, "join", inst, &join); _getobj(obj, "miter_limit", inst, &miter); _getobj(obj, "arrow", inst, &head); _getobj(obj, "arrow_length", inst, &headlen); _getobj(obj, "arrow_width", inst, &headwidth); snum = arraynum(style); sdata = arraydata(style); GRAcolor(GC, fr, fg, fb, fa); GRAlinestyle(GC, snum, sdata, width, GRA_LINE_CAP_BUTT, join, miter); x0 = points2[0]; y0 = points2[1]; x1 = points2[2]; y1 = points2[3]; x2 = points2[2 * num - 4]; y2 = points2[2 * num - 3]; x3 = points2[2 * num - 2]; y3 = points2[2 * num - 1]; if (head == ARROW_POSITION_BEGIN || head == ARROW_POSITION_BOTH) { get_arrow_pos(points2, 0, width, headlen, headwidth, x0, y0, x1, y1, ap); } if (head == ARROW_POSITION_END || head == ARROW_POSITION_BOTH) { get_arrow_pos(points2, num * 2 - 2, width, headlen, headwidth, x3, y3, x2, y2, ap2); } if (num > 2 && close_path) { GRAdrawpoly(GC, num, pdata, GRA_FILL_MODE_NONE); } else { x = points2[0]; y = points2[1]; GRAmoveto(GC, x, y); for (i = 1; i < num; i++) { x = points2[i * 2]; y = points2[i * 2 + 1]; GRAlineto(GC, x, y); } } if (head == ARROW_POSITION_BEGIN || head == ARROW_POSITION_BOTH) { GRAlinestyle(GC, 0, NULL, 1, GRA_LINE_CAP_BUTT, join, miter); GRAdrawpoly(GC, 3, ap, GRA_FILL_MODE_EVEN_ODD); } if (head == ARROW_POSITION_END || head == ARROW_POSITION_BOTH) { GRAlinestyle(GC, 0, NULL, 1, GRA_LINE_CAP_BUTT, join, miter); GRAdrawpoly(GC, 3, ap2, GRA_FILL_MODE_EVEN_ODD); } } static void draw_fill(struct objlist *obj, N_VALUE *inst, int GC, int *points2, int num) { int br, bg, bb, ba, fill_rule; _getobj(obj, "fill_rule", inst, &fill_rule); _getobj(obj, "fill_R", inst, &br); _getobj(obj, "fill_G", inst, &bg); _getobj(obj, "fill_B", inst, &bb); _getobj(obj, "fill_A", inst, &ba); GRAcolor(GC, br, bg, bb, ba); GRAdrawpoly(GC, num, points2, fill_rule + 1); } static int arrowdraw(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int GC, w, h, intp, i, j, num, close_path; struct narray *points; int *points2, *pdata; int x0, y0, x1, y1, type, stroke, fill, clip, zoom; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) { return 1; } _getobj(obj, "GC", inst, &GC); if (GC < 0) { return 0; } _getobj(obj, "stroke", inst, &stroke); _getobj(obj, "fill", inst, &fill); if (fill == 0 && stroke == 0) { return 0; } _getobj(obj, "type", inst, &type); _getobj(obj, "clip", inst, &clip); _getobj(obj, "close_path", inst, &close_path); if (type == PATH_TYPE_CURVE) { _getobj(obj, "interpolation", inst, &intp); _getobj(obj, "_points", inst, &points); if (arraynum(points) == 0) { curve_expand_points(obj, inst, intp, points); } if (intp == INTERPOLATION_TYPE_SPLINE_CLOSE || intp == INTERPOLATION_TYPE_BSPLINE_CLOSE) { close_path = TRUE; } } else { _getobj(obj, "points", inst, &points); } num = arraynum(points) / 2; pdata = arraydata(points); points2 = g_malloc(sizeof(int) * num * 2); if (points2 == NULL) { return 1; } j = 0; x1 = y1 = 0; for (i = 0; i < num; i++) { x0 = pdata[2 * i]; y0 = pdata[2 * i + 1]; if (i == 0 || x0 != x1 || y0 != y1) { points2[2 * j] = x0; points2[2 * j + 1] = y0; j++; x1 = x0; y1 = y0; } } num = j; if (num < 2) { g_free(points2); return 0; } GRAregion(GC, &w, &h, &zoom); GRAview(GC, 0, 0, w * 10000.0 / zoom, h * 10000.0 / zoom, clip); if (fill) { draw_fill(obj, inst, GC, points2, num); } if (stroke) { draw_stroke(obj, inst, GC, points2, pdata, num, close_path); } g_free(points2); GRAaddlist(GC, obj, inst, argv[0], argv[1]); return 0; } static int arrowbbox(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int minx, miny, maxx, maxy; int x, y, num, num2, type, intp, stroke, fill; struct narray *points; int *pdata; struct narray *array; int i, j, width; int headlen, headwidth; int head; int *points2; int x0, y0, x1, y1, x2, y2, x3, y3; int ap[6], ap2[6]; array = rval->array; if (arraynum(array) != 0) { return 0; } _getobj(obj, "type", inst, &type); _getobj(obj, "fill", inst, &fill); _getobj(obj, "stroke", inst, &stroke); if (fill == 0 && stroke == 0) { return 0; } if (type == PATH_TYPE_CURVE) { _getobj(obj, "interpolation", inst, &intp); _getobj(obj, "_points", inst, &points); if (arraynum(points) == 0) { curve_expand_points(obj, inst, intp, points); } } else { _getobj(obj, "points", inst, &points); } _getobj(obj, "width", inst, &width); _getobj(obj, "arrow", inst, &head); _getobj(obj, "arrow_length", inst, &headlen); _getobj(obj, "arrow_width", inst, &headwidth); num = arraynum(points) / 2; pdata = arraydata(points); points2 = g_malloc(sizeof(int) * num * 2); if (points2 == NULL) { return 1; } j = 0; x1 = y1 = 0; for (i = 0; i < num; i++) { x0 = pdata[2 * i]; y0 = pdata[2 * i + 1]; if (i == 0 || x0 != x1 || y0 != y1) { points2[2 * j] = x0; points2[2 * j + 1] = y0; j++; x1 = x0; y1 = y0; } } num2 = j; if (num2 < 2) { g_free(points2); return 0; } x0 = points2[0]; y0 = points2[1]; x1 = points2[2]; y1 = points2[3]; x2 = points2[2 * num2 - 4]; y2 = points2[2 * num2 - 3]; x3 = points2[2 * num2 - 2]; y3 = points2[2 * num2 - 1]; g_free(points2); if (head==ARROW_POSITION_BEGIN || head==ARROW_POSITION_BOTH) { get_arrow_pos(NULL, 0, width, headlen, headwidth, x0, y0, x1, y1, ap); } if (head==ARROW_POSITION_END || head==ARROW_POSITION_BOTH) { get_arrow_pos(NULL, 0, width, headlen, headwidth, x3, y3, x2, y2, ap2); } if (array == NULL && (array = arraynew(sizeof(int))) == NULL) { return 1; } maxx = minx = pdata[0]; maxy = miny = pdata[1]; arrayadd(array, &(pdata[0])); arrayadd(array, &(pdata[1])); for (i = 1; i < num; i++) { x = pdata[i * 2]; y = pdata[i * 2 + 1]; if (x < minx) minx = x; if (x > maxx) maxx = x; if (y < miny) miny = y; if (y > maxy) maxy = y; } if (type == PATH_TYPE_CURVE) { _getobj(obj, "points", inst, &points); num = arraynum(points) / 2; pdata = arraydata(points); } for (i = 1; i < num; i++) { x = pdata[i * 2]; y = pdata[i * 2 + 1]; arrayadd(array, &x); arrayadd(array, &y); } if (stroke) { if (head == ARROW_POSITION_BEGIN || head == ARROW_POSITION_BOTH) { for (i = 0; i < 3; i++) { if (ap[i * 2] < minx) minx = ap[i * 2]; if (ap[i * 2] > maxx) maxx = ap[i * 2]; if (ap[i * 2 + 1] < miny) miny = ap[i * 2 + 1]; if (ap[i * 2 + 1] > maxy) maxy = ap[i * 2 + 1]; } } if (head == ARROW_POSITION_END || head == ARROW_POSITION_BOTH) { for (i = 0; i < 3 ; i++) { if (ap2[i * 2] < minx) minx = ap2[i * 2]; if (ap2[i * 2] > maxx) maxx = ap2[i * 2]; if (ap2[i * 2 + 1] < miny) miny = ap2[i * 2+ 1]; if (ap2[i * 2 + 1] > maxy) maxy = ap2[i * 2 + 1]; } } minx -= width / 2; miny -= width / 2; maxx += width / 2; maxy += width / 2; } arrayins(array, &(maxy), 0); arrayins(array, &(maxx), 0); arrayins(array, &(miny), 0); arrayins(array, &(minx), 0); if (arraynum(array) == 0) { arrayfree(array); rval->array = NULL; return 1; } rval->array = array; return 0; } static int set_points(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { curve_clear(obj, inst); return legendgeometry(obj, inst, rval, argc, argv); } static int check_point_match(int i, int j, int *pdata, int err, int x, int y) { double x1, y1, x2, y2, r, ip; x1 = pdata[i * 2]; y1 = pdata[i * 2 + 1]; x2 = pdata[j * 2]; y2 = pdata[j * 2 + 1]; r = distance(x - x1, y - y1); if (r <= err) { return TRUE; } r = distance(x - x2, y - y2); if (r <= err) { return TRUE; } r = distance(x1 - x2, y1 - y2); if (r == 0) { return FALSE; } ip = ((x2 - x1) * (x - x1) + (y2 - y1) * (y - y1)) / r; if (ip < 0 || ip > r) { return FALSE; } x2 = x1 + (x2 - x1) * ip / r; y2 = y1 + (y2 - y1) * ip / r; r = distance(x - x2, y - y2); if (r <= err) { return TRUE; } return FALSE; } static int point_match(struct objlist *obj, N_VALUE *inst, int type, int fill, int err, int x, int y) { struct narray *points; int *pdata, num, r, i; if (type == PATH_TYPE_CURVE) { int intp; _getobj(obj, "interpolation", inst, &intp); _getobj(obj, "_points", inst, &points); if (arraynum(points) == 0) { curve_expand_points(obj, inst, intp, points); } } else { _getobj(obj, "points", inst, &points); } num = arraynum(points) / 2; pdata = arraydata(points); if (num == 0 || pdata == NULL) { return FALSE; } r = FALSE; for (i = 0; i < num - 1; i++) { r = check_point_match(i, i + 1, pdata, err, x, y); if (r) { break; } } if (r == FALSE) { int close_path; _getobj(obj, "close_path", inst, &close_path); if (fill || close_path) { r = check_point_match(0, num - 1, pdata, err, x, y); } } return r; } static int curvematch(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int minx, miny, maxx, maxy, err; int bminx, bminy, bmaxx, bmaxy; int fill, stroke, type; struct narray *array; rval->i = FALSE; if (_exeparent(obj,argv[1],inst,rval,argc,argv)) { return 1; } _getobj(obj, "type", inst, &type); _getobj(obj, "fill", inst, &fill); _getobj(obj, "stroke", inst, &stroke); if (fill == 0 && stroke == 0) { return 0; } minx = * (int *) argv[2]; miny = * (int *) argv[3]; maxx = * (int *) argv[4]; maxy = * (int *) argv[5]; err = * (int *) argv[6]; if (minx == maxx && miny == maxy) { rval->i = point_match(obj, inst, type, fill, err, minx, miny); } else { if (_exeobj(obj, "bbox", inst, 0, NULL)) { return 1; } _getobj(obj, "bbox", inst, &array); if (array == NULL) { return 0; } if (arraynum(array) < 4) { return 1; } bminx = arraynget_int(array, 0); bminy = arraynget_int(array, 1); bmaxx = arraynget_int(array, 2); bmaxy = arraynget_int(array, 3); if (minx <= bminx && bminx <= maxx && minx <= bmaxx && bmaxx <= maxx && miny <= bminy && bminy <= maxy && miny <= bmaxy && bmaxy <= maxy) { rval->i = TRUE; } } return 0; } static int curve_flip(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { curve_clear(obj, inst); return legendflip(obj, inst, rval, argc, argv); } static int curve_move(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *points; int i, num, *pdata, type; _getobj(obj, "type", inst, &type); if (type == PATH_TYPE_CURVE) { _getobj(obj, "_points", inst, &points); num = arraynum(points); pdata = arraydata(points); for (i = 0; i < num; i++) { if (i % 2 == 0) { pdata[i] += * (int *) argv[2]; } else { pdata[i] += * (int *) argv[3]; } } } return legendmove(obj, inst, rval, argc, argv); } static int curve_rotate(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { curve_clear(obj, inst); return legendrotate(obj, inst, rval, argc, argv); } static int curve_zoom(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { curve_clear(obj, inst); return legendzoom(obj, inst, rval, argc, argv); } static int curve_change(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { curve_clear(obj, inst); return legendchange(obj, inst, rval, argc, argv); } static int put_fill_mode(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int mode, rule; mode = * (int *) argv[2]; switch (mode) { case PATH_FILL_MODE_TRUE: break; case PATH_FILL_MODE_FALSE: break; case PATH_FILL_MODE_EMPTY: * (int *) argv[2] = FALSE; break; case PATH_FILL_MODE_EVEN_ODD: * (int *) argv[2] = TRUE; rule = PATH_FILL_RULE_EVEN_ODD; _putobj(obj, "fill_rule", inst, &rule); break; case PATH_FILL_MODE_WINDING: * (int *) argv[2] = TRUE; rule = PATH_FILL_RULE_WINDING; _putobj(obj, "fill_rule", inst, &rule); break; default: * (int *) argv[2] = FALSE; } return legendgeometry(obj, inst, rval, argc, argv); } static struct objtable arrow[] = { {"init", NVFUNC, NEXEC, arrowinit, NULL, 0}, {"done", NVFUNC, NEXEC, arrowdone, NULL, 0}, {"next", NPOINTER, 0, NULL, NULL, 0}, {"type", NENUM, NREAD|NWRITE, set_points, path_type, 0}, {"points", NIARRAY, NREAD|NWRITE, set_points, NULL, 0}, {"_points", NIARRAY, NREAD, NULL, NULL, 0}, {"interpolation", NENUM, NREAD|NWRITE, set_points, intpchar, 0}, {"fill_R", NINT, NREAD|NWRITE, oputcolor, NULL, 0}, {"fill_G", NINT, NREAD|NWRITE, oputcolor, NULL, 0}, {"fill_B", NINT, NREAD|NWRITE, oputcolor, NULL, 0}, {"fill_A", NINT, NREAD|NWRITE, oputcolor, NULL, 0}, {"stroke_R", NINT, NREAD|NWRITE, oputcolor, NULL, 0}, {"stroke_G", NINT, NREAD|NWRITE, oputcolor, NULL, 0}, {"stroke_B", NINT, NREAD|NWRITE, oputcolor, NULL, 0}, {"stroke_A", NINT, NREAD|NWRITE, oputcolor, NULL, 0}, {"fill", NENUM, NREAD|NWRITE, put_fill_mode, path_fill_mode, 0}, {"fill_rule", NENUM, NREAD|NWRITE, NULL, path_fill_rule, 0}, {"stroke", NBOOL, NREAD|NWRITE, NULL, NULL, 0}, {"close_path", NBOOL, NREAD|NWRITE, NULL, NULL, 0}, {"width", NINT, NREAD|NWRITE, arrowput, NULL, 0}, {"style", NIARRAY, NREAD|NWRITE, oputstyle, NULL, 0}, {"join", NENUM, NREAD|NWRITE, NULL, joinchar, 0}, {"miter_limit", NINT, NREAD|NWRITE, oputge1, NULL, 0}, {"arrow", NENUM, NREAD|NWRITE, arrowput, arrowchar, 0}, {"arrow_length", NINT, NREAD|NWRITE, arrowput, NULL, 0}, {"arrow_width", NINT, NREAD|NWRITE, arrowput, NULL, 0}, {"draw", NVFUNC, NREAD|NEXEC, arrowdraw, "i", 0}, {"bbox", NIAFUNC, NREAD|NEXEC, arrowbbox, "", 0}, {"move", NVFUNC, NREAD|NEXEC, curve_move, "ii", 0}, {"rotate", NVFUNC, NREAD|NEXEC, curve_rotate, "iiii", 0}, {"flip", NVFUNC, NREAD|NEXEC, curve_flip, "iii", 0}, {"change", NVFUNC, NREAD|NEXEC, curve_change, "iii", 0}, {"zooming", NVFUNC, NREAD|NEXEC, curve_zoom, "iiii", 0}, {"match", NBFUNC, NREAD|NEXEC, curvematch, "iiiii", 0}, /* following fields exist for backward compatibility */ {"R", NINT, NWRITE, put_color_for_backward_compatibility, NULL, 0}, {"G", NINT, NWRITE, put_color_for_backward_compatibility, NULL, 0}, {"B", NINT, NWRITE, put_color_for_backward_compatibility, NULL, 0}, {"A", NINT, NWRITE, put_color_for_backward_compatibility, NULL, 0}, }; #define TBLNUM (sizeof(arrow) / sizeof(*arrow)) void * addpath(void) /* addarrow() returns NULL on error */ { return addobject(NAME, ALIAS, PARENT, OVERSION, TBLNUM, arrow, ERRNUM, patherrorlist, NULL, NULL); } ngraph-gtk-6.06.13/src/spline.c0000644000175000017500000001561512241111703013077 00000000000000/* * $Id: spline.c,v 1.4 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include "mathfn.h" #include "spline.h" static int splinecheck(double d[],double mu[],double ram[],double x[],double y[], int num) { double h1,h2; int i; h1=x[1]-x[0]; if (h1==0) return -1; for (i=1;i=0;i--) { h=2-ram[i]*ram[i+1]; if (h==0) return -1; *xx=-ram[i]*(*xx)/h; d[i]=(d[i]-ram[i]*d[i+1])/h; ram[i]=mu[i]/h; } *xx-=ram[0]; return 0; } int splineperiod(double d[],double mu[],double ram[],double x[],double y[], int num,double *df0) { double h,xx,a,b,c,e; splinesetval(d,mu,ram,x,y,num); h=x[1]-x[0]; d[0]=6/h/h*(y[1]-y[0]); ram[0]=1; mu[0]=6/h; h=x[num-1]-x[num-2]; d[num-1]=-6/h/h*(y[num-1]-y[num-2]); mu[num-1]=1; ram[num-1]=-6/h; if (splinesolv(d,mu,ram,x,y,num,&xx)!=0) return -1; a=d[num-1]; b=xx; splinesetval(d,mu,ram,x,y,num); h=x[1]-x[0]; d[0]=6/h/h*(y[1]-y[0]); ram[0]=1; mu[0]=6/h; h=x[num-1]-x[num-2]; d[num-1]=-6/h/h*(y[num-1]-y[num-2]); mu[num-1]=1; ram[num-1]=-6/h; if (splinesolv2(d,mu,ram,x,y,num,&xx)) return -1; c=d[0]; e=xx; h=e-b; if (h==0) return -1; *df0=(a*e-b*c)/h; return 0; } static int splineboundary(double d[],double mu[],double ram[],double x[],double y[], int num,int bc0,int bc1,double df0,double df1) { vector b,coe; matrix m; double h; int i,j; if (bc0==SPLCNDAUTO) { for (i=0;i<4;i++) { m[i][3]=1; b[i]=y[i]; for (j=2;j>=0;j--) m[i][j]=m[i][j+1]*x[i]; } if (matsolv(4,m,b,coe)!=0) return -1; df0=3*coe[0]*m[0][1]+2*coe[1]*m[0][2]+coe[2]; } if (bc1==SPLCNDAUTO) { for (i=0;i<4;i++) { m[i][3]=1; b[i]=y[num+i-4]; for (j=2;j>=0;j--) m[i][j]=m[i][j+1]*x[num+i-4]; } if (matsolv(4,m,b,coe)!=0) return -1; df1=3*coe[0]*m[3][1]+2*coe[1]*m[3][2]+coe[2]; } if (bc0==SPLCNDPERIODIC) { if (splineperiod(d,mu,ram,x,y,num,&df0)!=0) return -1; bc0=SPLCND2NDDIF; bc1=SPLCND2NDDIF; df1=df0; } if (bc0==SPLCND2NDDIF) { d[0]=2*df0; ram[0]=0; } else if ((bc0==SPLCNDAUTO) || (bc0==SPLCND1STDIF)) { h=x[1]-x[0]; d[0]=6/h*((y[1]-y[0])/h-df0); ram[0]=1; } else return -1; if (bc1==2) { d[num-1]=2*df1; mu[num-1]=0; } else if ((bc1==0) || (bc1==1)) { h=x[num-1]-x[num-2]; d[num-1]=6/h*(df1-(y[num-1]-y[num-2])/h); mu[num-1]=1; } else return -1; return 0; } int spline(double x[],double y[],double c1[],double c2[],double c3[], int num,int bc0,int bc1,double df0,double df1) { int i; double h,xx,m; if (splinecheck(c1,c2,c3,x,y,num)!=0) return -1; if (splineboundary(c1,c2,c3,x,y,num,bc0,bc1,df0,df1)!=0) return -1; splinesetval(c1,c2,c3,x,y,num); if (splinesolv(c1,c2,c3,x,y,num,&xx)!=0) return -1; c3[num-1]=c1[num-1]; for (i=num-2;i>=0;i--) c3[i]=c1[i]-c2[i]*c3[i+1]; for (i=0;i #include #include #include #include #include #include "nstring.h" #include "ioutil.h" #include "object.h" #include "mathfn.h" #include "oroot.h" #include "ofit.h" #include "ofile.h" #include "math/math_equation.h" #define NAME "fit" #define PARENT "object" #define OVERSION "1.00.01" #define ERRSYNTAX 100 #define ERRILLEGAL 101 #define ERRNEST 102 #define ERRMANYPARAM 103 #define ERRLN 104 #define ERRSMLDATA 105 #define ERRPOINT 106 #define ERRMATH 107 #define ERRSINGULAR 108 #define ERRNOEQS 109 #define ERRTHROUGH 110 #define ERRRANGE 111 #define ERRNEGATIVEWEIGHT 112 #define ERRCONVERGE 113 #define ERR_INCONSISTENT_DATA_NUM 114 #define ERRINTERRUPT 115 static char *fiterrorlist[]={ "syntax error.", "not allowed function.", "sum() or dif(): deep nest.", "too many parameters.", "illegal data -> ignored.", "too small number of data.", "illegal point", "math error -> ignored.", "singular matrix.", "no fitting equation.", "`through_point' for type `user' is not supported.", "math range check.", "negative or zero weight -> ignored.", "convergence error.", "number of the data is not consistent.", }; #define ERRNUM (sizeof(fiterrorlist) / sizeof(*fiterrorlist)) static char *fittypechar[]={ N_("poly"), N_("pow"), N_("exp"), N_("log"), N_("user"), NULL }; struct fitlocal { int id, oid; MathEquation *codedf[10]; MathEquation *codef, *result_code; int dim; double coe[11]; int num; double derror,correlation; char *equation; }; static int fitinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int div,dimension; double converge; struct fitlocal *fitlocal; int i,disp, oid; if (_getobj(obj, "oid", inst, &oid) == -1) return 1; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; div=500; dimension=1; converge=1; disp=TRUE; if (_putobj(obj,"div",inst,&div)) return 1; if (_putobj(obj,"poly_dimension",inst,&dimension)) return 1; if (_putobj(obj,"converge",inst,&converge)) return 1; if (_putobj(obj,"display",inst,&disp)) return 1; if ((fitlocal=g_malloc(sizeof(struct fitlocal)))==NULL) return 1; fitlocal->codef=NULL; fitlocal->result_code = NULL; for (i=0;i<10;i++) fitlocal->codedf[i]=NULL; fitlocal->equation=NULL; fitlocal->oid = oid; if (_putobj(obj,"_local",inst,fitlocal)) { g_free(fitlocal); return 1; } return 0; } static int fitdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct fitlocal *fitlocal; int i; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"_local",inst,&fitlocal); g_free(fitlocal->equation); math_equation_free(fitlocal->codef); math_equation_free(fitlocal->result_code); for (i = 0; i < 10; i++) math_equation_free(fitlocal->codedf[i]); return 0; } static int set_equation(struct objlist *obj, N_VALUE *inst, struct fitlocal *fitlocal, char *equation) { int r; char *old_equation; _getobj(obj, "equation", inst, &old_equation); r = _putobj(obj, "equation", inst, equation); if (r) { return 1; } if (old_equation) { g_free(old_equation); } if (fitlocal && fitlocal->result_code) { math_equation_free(fitlocal->result_code); fitlocal->result_code = NULL; } return 0; } static void show_eqn_error(struct objlist *obj, MathEquation *code, char *math, char *field, int rcode) { char *err_msg; err_msg = math_err_get_error_message(code, math, rcode); if (err_msg) { error22(obj, ERRUNKNOWN, field, err_msg); g_free(err_msg); } else { error(obj, ERRSYNTAX); } } static int fitequation(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct fitlocal *fitlocal; _getobj(obj,"_local",inst,&fitlocal); if (fitlocal->result_code) { math_equation_free(fitlocal->result_code); fitlocal->result_code = NULL; } return 0; } static int fitput(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *field; char *math; struct fitlocal *fitlocal; MathEquation *code; int rcode; _getobj(obj,"_local",inst,&fitlocal); field=argv[1]; if (strcmp(field,"poly_dimension")==0) { if (*(int *)(argv[2])<1) *(int *)(argv[2])=1; else if (*(int *)(argv[2])>9) *(int *)(argv[2])=9; } else if ((strcmp(field,"user_func")==0) || ((strncmp(field,"derivative",10)==0) && (field[10]!='\0'))) { math=(char *)(argv[2]); if (math!=NULL) { MathEquationParametar *prm; code = ofile_create_math_equation(NULL, 2, FALSE, FALSE, FALSE, FALSE, TRUE); if (code == NULL) { return 1; } rcode = math_equation_parse(code, math); if (rcode) { show_eqn_error(obj, code, math, field, rcode); math_equation_free(code); return 1; } if (math_equation_optimize(code)) { math_equation_free(code); return 1; } prm = math_equation_get_parameter(code, 0, NULL); if (prm == NULL) { math_equation_free(code); return 1; } if (prm->id_max > 9) { error(obj,ERRMANYPARAM); math_equation_free(code); return 1; } } else { code=NULL; } if (field[0]=='u') { math_equation_free(fitlocal->codef); fitlocal->codef = code; } else { math_equation_free(fitlocal->codedf[field[10] - '0']); fitlocal->codedf[field[10] - '0'] = code; } } if (set_equation(obj, inst, fitlocal, NULL)) return 1; return 0; } static int fit_put_weight_func(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *math; MathEquation *code; int rcode; math = argv[2]; if (math == NULL) { return 0; } g_strstrip(math); if (math[0] == '\0') { g_free(argv[2]); argv[2] = NULL; return 0; } code = ofile_create_math_equation(NULL, 3, FALSE, TRUE, FALSE, FALSE, TRUE); if (code == NULL) return 1; rcode = math_equation_parse(code, math); if (rcode) { show_eqn_error(obj, code, math, argv[1], rcode); } math_equation_free(code); return rcode; } enum FitError { FitError_Interrupt = -7, /* FitError_Convergence = -6, */ FitError_Range = -5, /* range check */ FitError_Syntax = -4, /* syntax error */ FitError_Equation = -3, /* equation is not specified */ FitError_Matrix = -2, /* singular matrix */ FitError_Small = -1, /* too small data */ FitError_Success = 0, /* no error */ FitError_Fatal = 1, /* fatal error */ }; static void display_equation(const char *equation) { if (equation == NULL) return; ndisplaydialog("\nEquation:\n"); ndisplaydialog(equation); ndisplaydialog("\n"); } static int show_poly_equation(struct fitlocal *fitlocal, enum FIT_OBJ_TYPE type, vector coe) { GString *equation; int i; equation = g_string_new(""); if (equation == NULL) { return 1; } switch (type) { case FIT_TYPE_POLY: for (i = fitlocal->dim - 1; i > 0; i--) { g_string_append_printf(equation, (i == fitlocal->dim - 1) ? "%.7e*X^%d" : "%+.7e*X^%d", coe[i], i); } g_string_append_printf(equation, "%+.7e", coe[0]); break; case FIT_TYPE_POW: g_string_printf(equation, "exp(%.7e)*X^%.7e", coe[0], coe[1]); break; case FIT_TYPE_EXP: g_string_printf(equation, "exp(%.7e*X%+.7e)", coe[1], coe[0]); break; case FIT_TYPE_LOG: g_string_printf(equation, "%.7e*Ln(X)%+.7e", coe[1], coe[0]); break; case FIT_TYPE_USER: /* never reached */ break; } fitlocal->equation = g_string_free(equation, FALSE); return 0; } static int show_poly_result(struct fitlocal *fitlocal, enum FIT_OBJ_TYPE type, vector coe, int num) { int j; GString *info; info = g_string_new(""); if (info == NULL) { return 1; } g_string_append_printf(info, "--------\nfit:%d (^%d)\n", fitlocal->id, fitlocal->oid); switch (type) { case FIT_TYPE_POLY: g_string_append_printf(info,"Eq: %%0i*X^i (i=0-%d)\n\n", fitlocal->dim - 1); break; case FIT_TYPE_POW: g_string_append(info,"Eq: exp(%00)*X^%01\n\n"); break; case FIT_TYPE_EXP: g_string_append(info,"Eq: exp(%01*X+%00)\n\n"); break; case FIT_TYPE_LOG: g_string_append(info,"Eq: %01*Ln(X)+%00\n\n"); break; case FIT_TYPE_USER: /* never reached */ break; } for (j = 0; j < fitlocal->dim; j++) { g_string_append_printf(info, " %%0%d = %+.7e\n", j, coe[j]); } g_string_append_c(info, '\n'); g_string_append_printf(info, " points = %d\n", fitlocal->num); g_string_append_printf(info, " = %+.7e\n", fitlocal->derror); if (fitlocal->correlation >= 0) { g_string_append_printf(info, "|r| or |R| = %+.7e\n", fitlocal->correlation); } else { g_string_append(info, "|r| or |R| = -------------\n"); } ndisplaydialog(info->str); g_string_free(info, TRUE); display_equation(fitlocal->equation); return 0; } static enum FitError fitpoly(struct fitlocal *fitlocal, enum FIT_OBJ_TYPE type,int dimension,int through,double x0,double y0, double *data,int num,int disp,int weight,double *wdata) /* return FitError_Range FitError_Matrix FitError_Small FitError_Success FitError_Fatal */ { int i,j,k,dim; double yy,y1,y2,derror,sy,correlation,wt,sum; vector b,x1,x2,coe; matrix m; if (type == FIT_TYPE_POLY) dim=dimension+1; else dim=2; if (!through && (num1e100) || (fabs(data[k*2])>1e100)) return FitError_Range; x1[i]=x1[i-1]*data[k*2]; if (fabs(x1[i])>1e100) return FitError_Range; } yy+=wt*y1*y1; if (fabs(yy)>1e100) return FitError_Range; for (i=0;i1e100) return FitError_Range; b[i]+=wt*y1*x1[i]; if (fabs(b[i])>1e100) return FitError_Range; } for (i=0;i1e100) return FitError_Range; } } if (through) { y2=y0; x2[0]=1; for (i=1;icoe[i]=coe[i]; for (;i<10;i++) fitlocal->coe[i]=0; fitlocal->dim=dim; fitlocal->derror=derror; fitlocal->correlation=correlation; fitlocal->num=num; if (show_poly_equation(fitlocal, type, coe)) { return FitError_Fatal; } if (disp && show_poly_result(fitlocal, type, coe, derror)) { return FitError_Fatal; } return FitError_Success; } static int show_user_result(struct fitlocal *fitlocal, const char *func, int dim, int *tbl, MathValue *par, int n, double dxxc, double derror, double correlation) { GString *info; int j; info = g_string_sized_new(1024); if (info == NULL) { return 1; } g_string_append_printf(info, "--------\nfit:%d (^%d)\n", fitlocal->id, fitlocal->oid); g_string_append(info, "Eq: User defined\n"); g_string_append_printf(info, " %s\n\n", func); for (j = 0; j < dim; j++) { g_string_append_printf(info, " %%0%d = %+.7e\n", tbl[j], par[tbl[j]].val); } g_string_append_c(info, '\n'); g_string_append_printf(info, " points = %d\n", n); g_string_append_printf(info, " delta = %+.7e\n", dxxc); g_string_append_printf(info, " = %+.7e\n", derror); if (correlation >= 0) { g_string_append_printf(info, "|r| or |R| = %+.7e\n", correlation); } else { g_string_append(info, "|r| or |R| = -------------\n"); } ndisplaydialog(info->str); g_string_free(info, TRUE); return 0; } static int show_user_equation(struct fitlocal *fitlocal, const char *func, MathValue *par, int disp) { int i, prev_char; GString *equation; equation = g_string_sized_new(256); if (equation == NULL) { return 1; } prev_char = '\0'; for (i = 0; func[i] != '\0'; i++) { double val; char *format; int prm_index; switch (func[i]) { case '%': if (isdigit(func[i + 1]) && isdigit(func[i + 2]) && isdigit(func[i + 3])) { prm_index = (func[i + 1] - '0') * 100 + (func[i + 2] - '0') * 10 + (func[i + 3] - '0'); i += 3; } else if (isdigit(func[i + 1]) && isdigit(func[i + 2])) { prm_index = (func[i + 1] - '0') * 10 + (func[i + 2] - '0'); i += 2; } else { prm_index = (func[i + 1] - '0'); i += 1; } val = par[prm_index].val; switch (prev_char) { case '-': val = - val; /* fall-through */ case '+': g_string_truncate(equation, equation->len - 1); format = "%+.7e"; break; default: format = "%.7e"; } prev_char = '\0'; g_string_append_printf(equation, format, val); break; case ' ': break; default: prev_char = func[i]; g_string_append_c(equation, toupper(prev_char)); } } fitlocal->equation = g_string_free(equation, FALSE); if (disp) { display_equation(fitlocal->equation); } return 0; } static enum FitError fituser(struct objlist *obj,struct fitlocal *fitlocal, const char *func, int deriv,double converge,double *data,int num,int disp, int weight,double *wdata) /* return FitError_Interrupt FitError_Convergence FitError_Range FitError_syntax FitError_Equation FitError_Matrix FitError_Small FitError_Success FitError_Fatal */ { int ecode; int *needdata; int tbl[10],dim,n,count,rcode,err,err2,err3; double yy,y,y1,y2,y3,sy,spx,spy,dxx,dxxc,xx,derror,correlation; double b[10],x2[10],parerr[10]; MathValue par[10], par2[10], var; MathEquationParametar *prm; matrix m; int i,j,k; char buf[1024]; double wt,sum; /* matrix m2; int count2; double sum2; double lambda,s0; */ if (num<1) return FitError_Small; if (fitlocal->codef==NULL) return FitError_Equation; prm = math_equation_get_parameter(fitlocal->codef, 0, NULL); dim = prm->id_num; needdata = prm->id; if (deriv) { for (i = 0; i < dim; i++) { if (fitlocal->codedf[needdata[i]] == NULL) return FitError_Equation; } } for (i = 0; i < dim; i++) tbl[i] = needdata[i]; for (i = 0; i < 10; i++) { par[i].type = MATH_VALUE_NORMAL; par[i].val = fitlocal->coe[i]; } ecode=FitError_Success; /* err2=FALSE; n=0; sum=0; yy=0; lambda=0.001; for (k=0;kcodef,1,spx,MATH_VALUE_NORMAL,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0, par,parstat,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,0,NULL,NULL,NULL,0,&y1); if (rcode!=MATH_VALUE_NORMAL) err=TRUE; if (!err) { if (fabs(yy)>1e100) return FitError_Range; y2=spy-y1; if ((fabs(y2)>1e50) || (fabs(spy)>1e50)) err=TRUE; } if (!err) { n++; yy+=wt*y2*y2; } else err2=TRUE; } if (err2) error(obj,ERRMATH); if (n<1) { ecode=FitError_Small; goto errexit; } s0=yy/sum; */ count=0; err3=FALSE; do { yy=0; y=0; y3=0; for (i=0;icodef, 0, par); math_equation_set_var(fitlocal->codef, 0, &var); rcode = math_equation_calculate(fitlocal->codef, &var); y1 = var.val; if (rcode!=MATH_VALUE_NORMAL) err=TRUE; if (deriv) { for (j=0;jcodedf[tbl[j]], 0, par); math_equation_set_var(fitlocal->codedf[tbl[j]], 0, &var); rcode = math_equation_calculate(fitlocal->codedf[tbl[j]], &var); x2[j] = var.val; if (rcode!=MATH_VALUE_NORMAL) err=TRUE; } } else { for (j=0;jcodef, 0, par2); math_equation_set_var(fitlocal->codef, 0, &var); rcode = math_equation_calculate(fitlocal->codef, &var); x2[j] = var.val; if (rcode!=MATH_VALUE_NORMAL) err=TRUE; x2[j]=(x2[j]-y1)/dxx; } } if (!err) { if ((fabs(yy)>1e100) || (fabs(y3)>1e100)) return FitError_Range; y2=spy-y1; if ((fabs(y2)>1e50) || (fabs(spy)>1e50)) err=TRUE; } if (!err) { n++; yy+=wt*y2*y2; y+=wt*spy; y3+=wt*spy*spy; for (j=0;j1) correlation=-1; derror=sqrt(derror); /* if (disp) { i=0; i += sprintf(buf + i, "fit:^%d\n", fitlocal->oid); i+=sprintf(buf+i,"Eq: User defined\n\n"); for (j=0;j = %+.7e\n",derror); if (correlation>=0) i+=sprintf(buf+i,"|r| or |R| = %+.7e\n",correlation); else i+=sprintf(buf+i,"|r| or |R| = -------------\n"); i+=sprintf(buf+i," Iteration = %d\n",count); ndisplaydialog(buf); } */ if (count & 0x100) { sprintf(buf,"fit:^%d Iteration = %d delta = %g", fitlocal->oid, count, dxxc); set_progress(0, buf, -1); } if (ninterrupt()) { ecode=FitError_Interrupt; goto errexit; } /* count2=0; sum2=sum; while (TRUE) { count2++; sprintf(buf,"Iteration = %d:%d",count,count2); ndisplaystatus(buf); for (j=0;jcodef,1,spx,MATH_VALUE_NORMAL,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0, par2,parstat,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,0,NULL,NULL,NULL,0,&y1); if (rcode!=MATH_VALUE_NORMAL) err=TRUE; if (!err) { if (fabs(yy)>1e100) goto repeat; y2=spy-y1; if ((fabs(y2)>1e50) || (fabs(spy)>1e50)) err=TRUE; } if (!err) { n++; yy+=wt*y2*y2; } } if (n<1) goto repeat; if (yy/sum<=s0) { s0=yy/sum; break; } repeat: lambda*=10; if (lambda>1e100) return FitError_Convergence; } lambda/=10; */ if (matsolv(dim,m,b,parerr)) return FitError_Matrix; dxxc=0; xx=0; for (i=0;ixx*converge/100) && ((xx>1e-6) || (dxxc>1e-6*converge/100))); if (disp && show_user_result(fitlocal, func, dim, tbl, par, n, dxxc, derror, correlation)) {; return FitError_Fatal; } errexit: if ((ecode==FitError_Success) || (ecode==FitError_Range)) { for (i = 0; i < 10; i++) { fitlocal->coe[i] = par[i].val; } fitlocal->dim=dim; fitlocal->derror=derror; fitlocal->correlation=correlation; fitlocal->num=n; if (show_user_equation(fitlocal, func, par, disp)) { ecode = FitError_Fatal; } } return ecode; } static int fitfit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct fitlocal *fitlocal; int i,through,dimension,deriv,disp; enum FIT_OBJ_TYPE type; double x,y,x0,y0,converge,wt; struct narray *darray; double *data,*wdata; char *equation,*func,prm[32]; int dnum,num,err,err2,err3; enum FitError rcode; double derror,correlation,pp; int ecode; int weight,anum; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"_local",inst,&fitlocal); if (set_equation(obj, inst, fitlocal, NULL)) return 1; equation = g_strdup("undef"); if (equation == NULL) return 1; if (set_equation(obj, inst, fitlocal, equation)) { g_free(equation); return 1; } num=0; derror=0; correlation=0; pp=0; if (_putobj(obj,"number",inst,&num)) return 1; if (_putobj(obj,"error",inst,&derror)) return 1; if (_putobj(obj,"correlation",inst,&correlation)) return 1; for (i = 0; i < 10; i++) { snprintf(prm, sizeof(prm), "%%%02d", i); if (_putobj(obj, prm, inst, &pp)) return 1; } _getobj(obj,"type",inst,&type); _getobj(obj,"through_point",inst,&through); _getobj(obj,"point_x",inst,&x0); _getobj(obj,"point_y",inst,&y0); _getobj(obj,"poly_dimension",inst,&dimension); _getobj(obj,"user_func",inst,&func); _getobj(obj,"derivative",inst,&deriv); _getobj(obj,"converge",inst,&converge); _getobj(obj, "id", inst, &(fitlocal->id)); for (i = 0; i < 10; i++) { snprintf(prm, sizeof(prm), "parameter%d", i); _getobj(obj, prm, inst, &(fitlocal->coe[i])); } _getobj(obj,"display",inst,&disp); if (through && (type == FIT_TYPE_USER)) { error(obj,ERRTHROUGH); return 1; } darray = (struct narray *) (argv[2]); if (arraynum(darray) < 1) return FitError_Small; data=arraydata(darray); anum=arraynum(darray)-1; dnum=nround(data[0]); data += 1; if (dnum == (anum / 2)) { weight = FALSE; wt = 0; /* dummy code to avoid compile warnings */ wdata = NULL; /* dummy code to avoid compile warnings */ } else if (dnum == (anum / 3)) { weight = TRUE; wdata = data + 2 * dnum; } else { error(obj, ERR_INCONSISTENT_DATA_NUM); return 1; } num=0; err2=err3=FALSE; for (i=0;inum))) return 1; if (_putobj(obj,"error",inst,&(fitlocal->derror))) return 1; if (_putobj(obj,"correlation",inst,&(fitlocal->correlation))) return 1; for (i = 0; i < 10; i++) { snprintf(prm, sizeof(prm), "%%%02d", i); if (_putobj(obj, prm, inst, &(fitlocal->coe[i]))) return 1; } if (set_equation(obj, inst, fitlocal, fitlocal->equation)) return 1; fitlocal->equation = NULL; return 0; } static int fitcalc(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { MathValue val; int r; char *equation; double x; struct fitlocal *fitlocal; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; rval->d = 0; x = * (double *) argv[2]; _getobj(obj,"_local",inst,&fitlocal); if (fitlocal->result_code == NULL) { MathEquation *eq; _getobj(obj, "equation", inst, &equation); if (equation == NULL) { return 0; } eq = ofile_create_math_equation(NULL, 0, FALSE, FALSE, FALSE, FALSE, TRUE); if (eq == NULL) { return 1; } if (math_equation_parse(eq, equation)) { math_equation_free(eq); return 1; } math_equation_optimize(eq); fitlocal->result_code = eq; } val.val = x; val.type = MATH_VALUE_NORMAL; math_equation_set_var(fitlocal->result_code, 0, &val); r = math_equation_calculate(fitlocal->result_code, &val); if (r) { return 1; } rval->d = val.val; return 0; } static struct objtable fit[] = { {"init",NVFUNC,NEXEC,fitinit,NULL,0}, {"done",NVFUNC,NEXEC,fitdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"profile",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"type",NENUM,NREAD|NWRITE,fitput,fittypechar,0}, {"min",NDOUBLE,NREAD|NWRITE,NULL,NULL,0}, {"max",NDOUBLE,NREAD|NWRITE,NULL,NULL,0}, {"div",NINT,NREAD|NWRITE,oputge1,NULL,0}, {"interpolation",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"through_point",NBOOL,NREAD|NWRITE,fitput,NULL,0}, {"point_x",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"point_y",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"equation",NSTR,NREAD|NWRITE,fitequation,NULL,0}, {"poly_dimension",NINT,NREAD|NWRITE,fitput,NULL,0}, {"weight_func",NSTR,NREAD|NWRITE,fit_put_weight_func,NULL,0}, {"user_func",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative",NBOOL,NREAD|NWRITE,fitput,NULL,0}, {"derivative0",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative1",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative2",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative3",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative4",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative5",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative6",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative7",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative8",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"derivative9",NSTR,NREAD|NWRITE,fitput,NULL,0}, {"converge",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter0",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter1",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter2",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter3",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter4",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter5",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter6",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter7",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter8",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"parameter9",NDOUBLE,NREAD|NWRITE,fitput,NULL,0}, {"%00",NDOUBLE,NREAD,NULL,NULL,0}, {"%01",NDOUBLE,NREAD,NULL,NULL,0}, {"%02",NDOUBLE,NREAD,NULL,NULL,0}, {"%03",NDOUBLE,NREAD,NULL,NULL,0}, {"%04",NDOUBLE,NREAD,NULL,NULL,0}, {"%05",NDOUBLE,NREAD,NULL,NULL,0}, {"%06",NDOUBLE,NREAD,NULL,NULL,0}, {"%07",NDOUBLE,NREAD,NULL,NULL,0}, {"%08",NDOUBLE,NREAD,NULL,NULL,0}, {"%09",NDOUBLE,NREAD,NULL,NULL,0}, {"number",NINT,NREAD,NULL,NULL,0}, {"error",NDOUBLE,NREAD,NULL,NULL,0}, {"correlation",NDOUBLE,NREAD,NULL,NULL,0}, {"display",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"fit",NVFUNC,NREAD|NEXEC,fitfit,"da",0}, {"calc",NDFUNC,NREAD|NEXEC,fitcalc,"d",0}, {"_local",NPOINTER,0,NULL,NULL,0}, }; #define TBLNUM (sizeof(fit) / sizeof(*fit)) void * addfit(void) /* addfit() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,fit,ERRNUM,fiterrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/oprm.c0000644000175000017500000013732212241111703012562 00000000000000/* * $Id: oprm.c,v 1.14 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include "strconv.h" #include "mathfn.h" #include "ntime.h" #include "object.h" #include "gra.h" #include "ioutil.h" #include "odraw.h" #include "opath.h" #define NAME "prm" #define PARENT "object" #define OVERSION "1.00.00" #define ERROPEN 100 #define ERRREAD 101 #define ERRPRM 102 #define ERREXIST 103 static char *prmerrorlist[]={ "I/O error: open file", "I/O error: read file", "unsupported PRM file", "skip existing file", }; #define ERRNUM (sizeof(prmerrorlist) / sizeof(*prmerrorlist)) static int prminit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int prmdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static char * pathconv(char *str,int ignorepath) { int i; char *file, *s; if (str==NULL) return NULL; if (str[0]=='\0') return NULL; s = sjis_to_utf8(str); if (s == NULL) { return NULL; } g_free(str); if (ignorepath) { file=getbasename(s); g_free(s); } else { file=s; } changefilename(file); for (i=0;file[i]!='\0';i++) { file[i]=tolower(file[i]); } return file; } static struct narray *linestyleconv(int attr,int dottedsize) { int i,dt[4],num; struct narray *array; if (attr==1) { dt[0]=dottedsize*10; dt[1]=dottedsize*10; num=2; } else if (attr==2) { dt[0]=dottedsize*30; dt[1]=dottedsize*10; num=2; } else if (attr==3) { dt[0]=dottedsize*30; dt[1]=dottedsize*10; dt[2]=dottedsize*10; dt[3]=dottedsize*10; num=4; } else { return NULL; } array=arraynew(sizeof(int)); for (i=0;i %F{} %d ---> %{system:0:date:1} %01C0101 ---> %{file:01:column:01 01} */ { int i,j,fchange[2],jchange[2],script,fff[2],ffj[2],ffb[2]; char *s2, *s; int file,line,col; s = sjis_to_utf8(str); if (s == NULL) { return NULL; } s2 = g_malloc(strlen(s) + 200); if (s2 == NULL) { return NULL; } j=0; script=0; for (i=0;i<2;i++) { fff[i]=ff; ffj[i]=fj; ffb[i]=fb; fchange[i]=FALSE; jchange[i]=FALSE; } for (i=0;s[i]!='\0';i++) { if ((s[i]=='\\') && (s[i+1]!='\0')) { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); s2[j]=s[i]; s2[j+1]=s[i+1]; i++; j+=2; } else if (s[i]=='%') { if ((toupper(s[i+1])=='S') && isdigit(s[i+2]) && isdigit(s[i+3])) { s2[j]=s[i]; s2[j+1]=s[i+1]; s2[j+2]='{'; s2[j+3]=s[i+2]; s2[j+4]=s[i+3]; s2[j+5]='}'; i+=3; j+=6; } else if ((strchr("PXYpxy",s[i+1])!=NULL) && ((s[i+2]=='+') || (s[i+2]=='-')) && isdigit(s[i+3]) && isdigit(s[i+4])) { s2[j]=s[i]; s2[j+1]=s[i+1]; s2[j+2]='{'; s2[j+3]=s[i+2]; s2[j+4]=s[i+3]; s2[j+5]=s[i+4]; s2[j+6]='}'; i+=4; j+=7; } else if ((toupper(s[i+1])=='F') && (strchr("THCthc",s[i+2])!=NULL)) { fchange[script]=TRUE; if (toupper(s[i+2]=='T')) fff[script]=0; else if (toupper(s[i+2]=='H')) fff[script]=4; else if (toupper(s[i+2]=='C')) fff[script]=8; i+=2; } else if ((toupper(s[i+1])=='J') && (strchr("GMgm",s[i+2])!=NULL)) { jchange[script]=TRUE; if (toupper(s[i+2]=='M')) ffj[script]=0; else if (toupper(s[i+2]=='G')) ffj[script]=1; i+=2; } else if (toupper(s[i+1])=='R') { fchange[script]=TRUE; ffb[script]=0; i++; } else if (toupper(s[i+1])=='B') { fchange[script]=TRUE; ffb[script]=1; i++; } else if (toupper(s[i+1])=='I') { fchange[script]=TRUE; ffb[script]=2; i++; } else if (toupper(s[i+1])=='O') { fchange[script]=TRUE; ffb[script]=3; i++; } else if (s[i+1]=='d') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); j+=sprintf(s2+j,"%%{system:0:date:1}"); i++; } else if (s[i+1]=='D') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); j+=sprintf(s2+j,"%%{system:0:date:0}"); i++; } else if (s[i+1]=='t') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); j+=sprintf(s2+j,"%%{system:0:time:2}"); i++; } else if (s[i+1]=='t') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); j+=sprintf(s2+j,"%%{system:0:time:3}"); i++; } else if (toupper(s[i+1])=='M') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); j+=sprintf(s2+j,"%s",prmfile); i++; } else if ((toupper(s[i+1])=='C') && isdigit(s[i+2])) { i+=2; } else if (isdigit(s[i+1]) && isdigit(s[i+2])) { file=(s[i+1]-'0')*10+(s[i+2]-'0')-1; if (file==-1) file=0; if (toupper(s[i+3])=='N') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); if (file<20) { if (s[i+3]=='N') j+=sprintf(s2+j,"%%{file:%d:file}",fnameid[file]); else j+=sprintf(s2+j,"%%{file:%d:basename}",fnameid[file]); } i+=3; } else if (s[i+3]=='d') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); j+=sprintf(s2+j,"%%{file:%d:date:1}",fnameid[file]); i+=3; } else if (s[i+3]=='D') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); j+=sprintf(s2+j,"%%{file:%d:date:0}",fnameid[file]); i+=3; } else if (s[i+3]=='t') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); j+=sprintf(s2+j,"%%{file:%d:time:4}",fnameid[file]); i+=3; } else if (s[i+3]=='t') { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); j+=sprintf(s2+j,"%%{system:%d:time:3}",fnameid[file]); i+=3; } else if ((toupper(s[i+3])=='C') && isdigit(s[i+4]) && isdigit(s[i+5]) && isdigit(s[i+6]) && isdigit(s[i+7])) { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); line=(s[i+4]-'0')*10+(s[i+5]-'0'); col=(s[i+6]-'0')*10+(s[i+7]-'0'); if (file<20) j+=sprintf(s2+j,"%%{file:%d:column:%d %d}", fnameid[file],line,col); i+=7; } } } else { addfontcontrol(s2,&j,fchange,jchange,fff,ffb,ffj,script); if ((s[i]=='^') || (s[i]=='_')) { script=1; } else if (s[i]=='@') { script=0; } s2[j]=s[i]; j++; } } s2[j]='\0'; g_free(s); return s2; } static char * mathconv(char *math) /* INTEG ---> SUM F(,) ---> F(,,) NAN ---> CONT UNDEF ---> BREAK */ { int i,j; int f,g,fb[50],gb[50]; char *m; if ((m=g_malloc(strlen(math)+100))==NULL) return NULL; j=0; f=g=0; for (i=0;math[i]!='\0';i++) { if (strncmp(math+i,"NAN",3)==0) { strcpy(m+j,"CONT"); i+=2; j+=4; } else if (strncmp(math+i,"NONE",3)==0) { strcpy(m+j,"BREAK"); i+=3; j+=5; } else if (strncmp(math+i,"INTEG",5)==0) { strcpy(m+j,"SUM"); i+=4; j+=3; } else if (strncmp(math+i,"DIF(",4)==0) { strcpy(m+j,"DIF"); i+=2; j+=3; } else if (strncmp(math+i,"IF(",3)==0) { strcpy(m+j,"IF"); i++; j+=2; } else if (strncmp(math+i,"LOG(",4)==0) { strcpy(m+j,"LOG"); i+=2; j+=3; } else if (strncmp(math+i,"F(",2)==0) { f++; fb[f]=0; } else if (strncmp(math+i,"G(",2)==0) { g++; gb[g]=0; } else if (math[i]=='(') { if (f) fb[f]++; if (g) gb[f]++; m[j]=math[i]; j++; } else if (math[i]==')') { if (f) { fb[f]--; if (fb[f]==0) { m[j]=','; m[j+1]='0'; f--; j+=2; } } if (g) { gb[g]--; if (gb[g]==0) { m[j]=','; m[j+1]='0'; g--; j+=2; } } m[j]=math[i]; j++; } else if ((math[i]!=' ') && (math[i]!='\t')) { m[j]=math[i]; j++; } } m[j]='\0'; if (m[0]=='\0') { g_free(m); m=NULL; } return m; } #define BUFSIZE 512 static int prmloadline(struct objlist *obj,char *file,FILE *fp,char *buf,int err) { if (fgetnline(fp,buf,BUFSIZE)) { if (err) error2(obj,ERRREAD,file); return -1; } return 0; } static int sscanf2(char *buffer,char *format,...) { va_list ap; int i,num; int *d; double *e; char *s; char *endptr; va_start(ap,format); s=buffer; num=0; i=0; while (format[i]!='\0') { if (format[i]=='d') { d=va_arg(ap,int *); *d=strtol(s,&endptr,10); num++; if (endptr[0]=='\0') break; s=endptr; } else if (format[i]=='e') { e=va_arg(ap,double *); *e=strtod(s,&endptr); num++; if (endptr[0]=='\0') break; s=endptr; } i++; } va_end(ap); return num; } static int gettimeval2(char *s,time_t *time) { char *endptr; struct tm tm; tm.tm_year=strtol(s,&endptr,10)-1900; if (endptr[0]!='-') return -1; s=endptr+1; tm.tm_mon=strtol(s,&endptr,10)-1; if (endptr[0]!='-') return -1; s=endptr+1; tm.tm_mday=strtol(s,&endptr,10); if (endptr[0]!=' ') return -1; s=endptr+1; tm.tm_hour=strtol(s,&endptr,10); if (endptr[0]!=':') return -1; s=endptr+1; tm.tm_min=strtol(s,&endptr,10); if (endptr[0]!=':') return -1; s=endptr+1; tm.tm_sec=strtol(s,&endptr,10); tm.tm_isdst=0; *time=mktime(&tm); return 0; } char buf[BUFSIZE]; char buf2[BUFSIZE]; static int prmload(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *file; FILE *fp,*fp2; int i,j,k,filetype,num,ignorepath; struct objlist *fobj,*fitobj,*aobj,*agdobj; struct objlist *pobj,*mobj,*tobj,*robj; struct objlist *mgobj,*gobj,*cmobj; int fid,fidroot,fitid,aid,agdid,lid,pid,mid,tid,rid,rid2,cid; int mgid,gid,cmid; char *s,*s2; int d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,R,G,B,gx[11],gy[11]; double f1,f2,f3,f4; int type,intp,mark,fittype; struct narray *iarray; int graphtype,vx,vy,szx,szy,dmode[3]; int fff[7],ffj[7],ffb[7],ffs[7],ffp[7],ffR[7],ffG[7],ffB[7]; char *argv2[5]; int anameid[4],anameoid[4]; int fitnameid[20],nameid; int fnameid[20]; int masknum,movenum; struct narray *mask,*move,*movex,*movey; double datax,datay,data2,data3; int statx,staty,stat2,stat3,line,plottype; char str4[5],*endptr; int hiddenaxis[4]; int setaxis[4],sccros[4]; int scnum,scstart,scstep,sczero,scplus,scposs,scpose; int scdir,sclr,sclog,scposx,scposy,scfull; char scfig[5]; int la0,la1,la2,la3,la4,lw0,lw1,lw2,lw3,lw4,lc0,lc1,lc4; int ll1,ll2,ll3; double amax,amin,ainc; int atype,aid2[4],posx,posy; char format[10],*EOD; char *filename; time_t ftime; struct utimbuf tm; int mkdata; struct narray group; int gtype; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"file",inst,&file); _getobj(obj,"ignore_path",inst,&ignorepath); str4[4]='\0'; if ((fobj=getobject("file"))==NULL) return 1; if ((fitobj=getobject("fit"))==NULL) return 1; if ((aobj=getobject("axis"))==NULL) return 1; if ((agdobj=getobject("axisgrid"))==NULL) return 1; if ((pobj=getobject("path"))==NULL) return 1; if ((mobj=getobject("mark"))==NULL) return 1; if ((robj=getobject("rectangle"))==NULL) return 1; if ((tobj=getobject("text"))==NULL) return 1; if ((mgobj=getobject("merge"))==NULL) return 1; if ((gobj=getobject("gra"))==NULL) return 1; if (file==NULL) return 0; if ((fp=nfopen(file,"rt"))==NULL) { error2(obj,ERROPEN,file); return 1; } if (prmloadline(obj,file,fp,buf,TRUE)!=0) goto errexit; if (strcmp(buf," Ngraph ver 5.2 PRM file")==0) filetype=2; else if (strcmp(buf," Ngraph ver. 5.3 PRM file")==0) filetype=3; else if (strcmp(buf," Ngraph ver 5.2 DPM file")==0) filetype=12; else if (strcmp(buf," Ngraph ver. 5.3 DPM file")==0) filetype=13; else { error2(obj,ERRPRM,file); goto errexit; } if (prmloadline(obj,file,fp,buf,TRUE)!=0) goto errexit; if (sscanf2(buf,"%d",(int *)&num)!=1) { error2(obj,ERRPRM,file); goto errexit; } anameid[0]=anameid[1]=anameid[2]=anameid[3]=-1; anameoid[0]=anameoid[1]=anameoid[2]=anameoid[3]=-1; /* FilePar */ for (i=0;i=26) { if ((rid=newobj(robj))==-1) goto errexit; putobj(robj,"x1",rid,&(gx[0])); putobj(robj,"y1",rid,&(gy[0])); putobj(robj,"x2",rid,&(gx[1])); putobj(robj,"y2",rid,&(gy[1])); if ((d3==26) || (d3==27)) d10=TRUE; else d10=FALSE; putobj(robj,"fill",rid,&d10); cmid=rid; cmobj=robj; if (d3==27) { if ((rid2=newobj(robj))==-1) goto errexit; putobj(robj,"x1",rid2,&(gx[0])); putobj(robj,"y1",rid2,&(gy[0])); putobj(robj,"x2",rid2,&(gx[1])); putobj(robj,"y2",rid2,&(gy[1])); d10=FALSE; putobj(robj,"fill",rid2,&d10); } } else { if ((mid=newobj(mobj))==-1) goto errexit; putobj(mobj,"x",mid,&(gx[0])); putobj(mobj,"y",mid,&(gy[0])); if ((d3==5) || (d3==6)) type=0; else if (d3==7) type=1; else if (d3==8) type=2; else if (d3==9) type=3; else if (d3==10) type=80; else if (d3==11) type=10; else if (d3==12) type=11; else if (d3==13) type=12; else if (d3==14) type=20; else if (d3==15) type=21; else if (d3==16) type=22; else if (d3==17) type=30; else if (d3==18) type=31; else if (d3==19) type=32; else if (d3==20) type=40; else if (d3==21) type=41; else if (d3==22) type=42; else if (d3==23) type=70; else if (d3==24) type=71; putobj(mobj,"type",mid,&type); d6*=10; if (d3==5) d6/=2; putobj(mobj,"size",mid,&d6); cmobj=mobj; cmid=mid; } if ((d3<=3) || (d3==25)) { if ((iarray=arraynew(sizeof(int)))==NULL) goto errexit; for (j=0;j1)) { if ((s=g_malloc(30))==NULL) goto errexit; if (i==2) sprintf(s,"axis:^%d",anameoid[0]); else sprintf(s,"axis:^%d",anameoid[1]); putobj(aobj,"reference",aid,s); } putobj(aobj,"type",aid,&atype); putobj(aobj,"x",aid,&d1); putobj(aobj,"y",aid,&d2); putobj(aobj,"direction",aid,&d3); putobj(aobj,"length",aid,&d4); iarray=linestyleconv(la0,15); putobj(aobj,"style",aid,iarray); R=(lc0 & 4)?255:0; G=(lc0 & 2)?255:0; B=(lc0 & 1)?255:0; putobj(aobj,"R",aid,&R); putobj(aobj,"G",aid,&G); putobj(aobj,"B",aid,&B); putobj(aobj,"width",aid,&lw0); if ((graphtype==1) || ((i<=1) && (graphtype==2))) { d1=0; if ((i==0) || (i==3)) { if (scdir==0) d1=2; else if (scdir==1) d1=3; else if (scdir==2) d1=1; } else { if (scdir==0) d1=3; else if (scdir==1) d1=2; else if (scdir==2) d1=1; } putobj(aobj,"gauge",aid,&d1); iarray=linestyleconv(la4,15); putobj(aobj,"gauge_style",aid,iarray); R=(lc4 & 4)?255:0; G=(lc4 & 2)?255:0; B=(lc4 & 1)?255:0; putobj(aobj,"gauge_R",aid,&R); putobj(aobj,"gauge_G",aid,&G); putobj(aobj,"gauge_B",aid,&B); putobj(aobj,"gauge_width1",aid,&lw4); putobj(aobj,"gauge_width2",aid,&lw4); putobj(aobj,"gauge_width3",aid,&lw4); ll1*=10; ll2*=10; ll3*=10; putobj(aobj,"gauge_length1",aid,&ll1); putobj(aobj,"gauge_length2",aid,&ll2); putobj(aobj,"gauge_length3",aid,&ll3); } if ((i<=1) || ((i>=2) && (graphtype==1))) { putobj(aobj,"num_num",aid,&scnum); putobj(aobj,"num_begin",aid,&scstart); putobj(aobj,"num_step",aid,&scstep); if (sclog==0) sclog=FALSE; else sclog=TRUE; putobj(aobj,"num_log_pow",aid,&sclog); if (sclr==0) sclr=3; else if (sclr==1) sclr=2; else if (sclr==2) sclr=0; else if (sclr==3) sclr=1; putobj(aobj,"num_align",aid,&sclr); if (i==0){ d1=2; posx=scposx*10; posy=scposy*10; } else if (i==1) { d1=1; posy=-scposx*10; posx=-scposy*10; } else if (i==2) { d1=1; posx=scposx*10; posy=-scposy*10; } else if (i==3) { d1=2; posy=scposx*10; posx=-scposy*10; } putobj(aobj,"num",aid,&d1); putobj(aobj,"num_shift_p",aid,&posx); putobj(aobj,"num_shift_n",aid,&posy); j=0; format[j++]='%'; if (scplus) format[j++]='+'; if (sczero) { format[j++]=scfig[0]; format[j++]=scfig[1]; format[j++]=scfig[2]; format[j++]='f'; } else format[j++]='g'; format[j]='\0'; if ((s=g_malloc(strlen(format)+1))==NULL) goto errexit; strcpy(s,format); putobj(aobj,"num_format",aid,s); if ((s=g_malloc(strlen(fontchar[fff[3+i]+ffb[3+i]])+1))==NULL) goto errexit; strcpy(s,fontchar[fff[3+i]+ffb[3+i]]); putobj(aobj,"num_font",aid,s); putobj(aobj,"num_pt",aid,&(ffs[3+i])); putobj(aobj,"num_space",aid,&(ffp[3+i])); putobj(aobj,"num_R",aid,&(ffR[3+i])); putobj(aobj,"num_G",aid,&(ffG[3+i])); putobj(aobj,"num_B",aid,&(ffB[3+i])); } if (hiddenaxis[i]) { d1=0; putobj(aobj,"baseline",aid,&d1); putobj(aobj,"gauge",aid,&d1); putobj(aobj,"num",aid,&d1); } } if (graphtype==0) { if ((agdid=newobj(agdobj))==-1) goto errexit; if ((s=g_malloc(30))==NULL) goto errexit; sprintf(s,"axis:^%d",anameoid[0]); putobj(agdobj,"axis_x",agdid,s); if ((s=g_malloc(30))==NULL) goto errexit; sprintf(s,"axis:^%d",anameoid[1]); putobj(agdobj,"axis_y",agdid,s); iarray=linestyleconv(la1,15); putobj(agdobj,"style1",agdid,iarray); iarray=linestyleconv(la2,15); putobj(agdobj,"style2",agdid,iarray); iarray=linestyleconv(la3,15); putobj(agdobj,"style3",agdid,iarray); R=(lc1 & 4)?255:0; G=(lc1 & 2)?255:0; B=(lc1 & 1)?255:0; putobj(agdobj,"R",agdid,&R); putobj(agdobj,"G",agdid,&G); putobj(agdobj,"B",agdid,&B); putobj(agdobj,"width1",agdid,&lw1); putobj(agdobj,"width2",agdid,&lw2); putobj(agdobj,"width3",agdid,&lw3); gtype=2; arrayinit(&group,sizeof(int)); arrayadd(&group,>ype); arrayadd(&group,&aid2[0]); arrayadd(&group,&aid2[1]); arrayadd(&group,&aid2[2]); arrayadd(&group,&aid2[3]); argv2[0]=(void *)&group; argv2[1]=NULL; exeobj(aobj,"grouping",aid2[3],1,argv2); arraydel(&group); } else if (graphtype==1) { gtype=1; arrayinit(&group,sizeof(int)); arrayadd(&group,>ype); arrayadd(&group,&aid2[0]); arrayadd(&group,&aid2[1]); arrayadd(&group,&aid2[2]); arrayadd(&group,&aid2[3]); argv2[0]=(void *)&group; argv2[1]=NULL; exeobj(aobj,"grouping",aid2[3],1,argv2); arraydel(&group); } else if (graphtype==2) { if ((s=g_malloc(30))==NULL) goto errexit; sprintf(s,"axis:^%d",anameoid[1]); putobj(aobj,"adjust_axis",aid2[0],s); putobj(aobj,"adjust_position",aid2[0],&sccros[1]); exeobj(aobj,"adjust",aid2[0],0,NULL); if ((s=g_malloc(30))==NULL) goto errexit; sprintf(s,"axis:^%d",anameoid[0]); putobj(aobj,"adjust_axis",aid2[1],s); putobj(aobj,"adjust_position",aid2[1],&sccros[0]); exeobj(aobj,"adjust",aid2[1],0,NULL); if (aid2[2]>aid2[3]) { delobj(aobj,aid2[2]); delobj(aobj,aid2[3]); } else { delobj(aobj,aid2[3]); delobj(aobj,aid2[2]); } gtype=3; arrayinit(&group,sizeof(int)); arrayadd(&group,>ype); arrayadd(&group,&aid2[0]); arrayadd(&group,&aid2[1]); argv2[0]=(void *)&group; argv2[1]=NULL; exeobj(aobj,"grouping",aid2[1],1,argv2); arraydel(&group); } /* Merge */ for (i=0;i<10;i++) { if (prmloadline(obj,file,fp,buf,TRUE)!=0) goto errexit; if (strlen(buf)!=0) { if ((mgid=newobj(mgobj))==-1) goto errexit; if ((s=g_malloc(strlen(buf)+1))==NULL) goto errexit; strcpy(s,buf); s=pathconv(s,ignorepath); putobj(mgobj,"file",mgid,s); if (prmloadline(obj,file,fp,buf,TRUE)!=0) goto errexit; if (sscanf2(buf,"%d%d%d",(int *)&d1,(int *)&d2,(int *)&d3)!=3) { error2(obj,ERRPRM,file); goto errexit; } d1*=10; d2*=10; d3=nround(d3/0.21); putobj(mgobj,"left_margin",mgid,&d1); putobj(mgobj,"top_margin",mgid,&d2); putobj(mgobj,"zoom",mgid,&d3); putobj(mgobj,"hidden",mgid,&(dmode[2])); } else { if (prmloadline(obj,file,fp,buf,TRUE)!=0) goto errexit; } } EOD="\n[EOF]\n"; if ((filetype==12) || (filetype==13)) { while (prmloadline(obj,file,fp,buf,FALSE)==0) { if (buf[0]=='[') { if ((s2=strchr(buf,']'))!=NULL) { int ch; if ((filename=g_malloc(s2-buf))==NULL) goto errexit; strncpy(filename,buf+1,s2-buf-1); filename[s2-buf-1]='\0'; filename=pathconv(filename,ignorepath); if (naccess(filename,R_OK)!=0) mkdata=TRUE; else { sprintf(buf2,"`%s' Overwrite existing file?",filename); mkdata=inputyn(buf2); } if (mkdata) { if ((fp2=nfopen(filename,"wt"))==NULL) { error2(obj,ERROPEN,filename); goto errexit; } } i=0; do { ch=nfgetc(fp); if (ch==EOD[i]) i++; else { if (mkdata) for (j=0;j #include #include #include "object.h" #include "gra.h" #include "oroot.h" #include "odraw.h" #include "olegend.h" #define NAME "rectangle" #define PARENT "legend" #define OVERSION "1.00.00" static char *recterrorlist[]={ "" }; #define ERRNUM (sizeof(recterrorlist) / sizeof(*recterrorlist)) static int rectinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int width, stroke, alpha; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; width = 40; stroke = TRUE; alpha = 255; if (_putobj(obj, "width", inst, &width)) return 1; if (_putobj(obj, "stroke", inst, &stroke)) return 1; if (_putobj(obj, "stroke_A", inst, &alpha)) return 1; if (_putobj(obj, "fill_A", inst, &alpha)) return 1; return 0; } static int rectdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int set_position(struct objlist *obj, N_VALUE *inst, int x1, int y1, int x2, int y2) { if (_putobj(obj, "x1", inst, &x1)) return 1; if (_putobj(obj, "y1", inst, &y1)) return 1; if (_putobj(obj, "x2", inst, &x2)) return 1; if (_putobj(obj, "y2", inst, &y2)) return 1; return 0; } static void get_position(struct objlist *obj, N_VALUE *inst, int *x1, int *y1, int *x2, int *y2) { _getobj(obj, "x1", inst, x1); _getobj(obj, "y1", inst, y1); _getobj(obj, "x2", inst, x2); _getobj(obj, "y2", inst, y2); } static int rectdraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; int x1,y1,x2,y2,width,ifill,stroke,fr,fg,fb,fa,br,bg,bb,ba,w,h; struct narray *style; int snum,*sdata; int clip,zoom; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"GC",inst,&GC); if (GC<0) return 0; _getobj(obj,"stroke_R",inst,&fr); _getobj(obj,"stroke_G",inst,&fg); _getobj(obj,"stroke_B",inst,&fb); _getobj(obj,"stroke_A",inst,&fa); _getobj(obj,"fill_R",inst,&br); _getobj(obj,"fill_G",inst,&bg); _getobj(obj,"fill_B",inst,&bb); _getobj(obj,"fill_A", inst, &ba); _getobj(obj,"width",inst,&width); _getobj(obj,"style",inst,&style); _getobj(obj,"fill",inst,&ifill); _getobj(obj,"stroke",inst,&stroke); _getobj(obj,"clip",inst,&clip); get_position(obj, inst, &x1, &y1, &x2, &y2); snum=arraynum(style); sdata=arraydata(style); GRAregion(GC,&w,&h,&zoom); GRAview(GC,0,0,w*10000.0/zoom,h*10000.0/zoom,clip); if (ifill) { GRAcolor(GC,br,bg,bb, ba); GRArectangle(GC,x1,y1,x2,y2,1); } if (stroke) { GRAcolor(GC,fr,fg,fb, fa); GRAlinestyle(GC,snum,sdata,width,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); GRArectangle(GC,x1,y1,x2,y2,0); } GRAaddlist(GC,obj,inst,(char *)argv[0],(char *)argv[1]); return 0; } static int rectbbox(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int minx,miny,maxx,maxy; int x1,y1,x2,y2,width,fill,stroke; struct narray *array; array=rval->array; if (arraynum(array)!=0) return 0; get_position(obj, inst, &x1, &y1, &x2, &y2); _getobj(obj,"width",inst,&width); _getobj(obj,"fill",inst,&fill); _getobj(obj,"stroke",inst,&stroke); if (! fill && ! stroke) { return 0; } if ((array==NULL) && ((array=arraynew(sizeof(int)))==NULL)) return 1; minx=(x1x2) ? x1 : x2; maxy=(y1>y2) ? y1 : y2; if (stroke) { minx-=width/2; miny-=width/2; maxx+=width/2; maxy+=width/2; } arrayins(array,&(maxy),0); arrayins(array,&(maxx),0); arrayins(array,&(miny),0); arrayins(array,&(minx),0); minx=(x1x2) ? x1 : x2; maxy=(y1>y2) ? y1 : y2; arrayadd(array,&(minx)); arrayadd(array,&(miny)); arrayadd(array,&(maxx)); arrayadd(array,&(miny)); arrayadd(array,&(maxx)); arrayadd(array,&(maxy)); arrayadd(array,&(minx)); arrayadd(array,&(maxy)); if (arraynum(array)==0) { arrayfree(array); rval->array = NULL; return 1; } rval->array=array; return 0; } static int rectrotate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int angle, x1, y1, x2, y2, px, py, use_pivot; get_position(obj, inst, &x1, &y1, &x2, &y2); angle = *(int *) argv[2]; angle %= 36000; if (angle < 0) angle += 36000; use_pivot = * (int *) argv[3]; if (use_pivot) { px = *(int *) argv[4]; py = *(int *) argv[5]; } else { px = (x1 + x2) / 2; py = (y1 + y2) / 2; } switch (angle) { case 9000: case 18000: case 27000: rotate(px, py, angle, &x1, &y1); rotate(px, py, angle, &x2, &y2); if (set_position(obj, inst, x1, y1, x2, y2)) return 1; break; default: return 1; } if (clear_bbox(obj, inst)) return 1; return 0; } static int rectflip(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x1, y1, x2, y2, p, use_pivot; enum FLIP_DIRECTION dir; dir = (* (int *) argv[2] == FLIP_DIRECTION_HORIZONTAL) ? FLIP_DIRECTION_HORIZONTAL : FLIP_DIRECTION_VERTICAL; use_pivot = * (int *) argv[3]; if (! use_pivot) return 0; _getobj(obj, "x1", inst, &x1); _getobj(obj, "y1", inst, &y1); _getobj(obj, "x2", inst, &x2); _getobj(obj, "y2", inst, &y2); p = *(int *) argv[4]; flip(p, dir, &x1, &y1); flip(p, dir, &x2, &y2); _putobj(obj, "x1", inst, &x1); _putobj(obj, "y1", inst, &y1); _putobj(obj, "x2", inst, &x2); _putobj(obj, "y2", inst, &y2); if (clear_bbox(obj, inst)) return 1; return 0; } static int rectmove(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x1,y1,x2,y2; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; get_position(obj, inst, &x1, &y1, &x2, &y2); x1+=*(int *)argv[2]; x2+=*(int *)argv[2]; y1+=*(int *)argv[3]; y2+=*(int *)argv[3]; if (set_position(obj, inst, x1, y1, x2, y2)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int rectchange(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x1,y1,x2,y2; int point,x,y; int *minx,*miny,*maxx,*maxy; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; get_position(obj, inst, &x1, &y1, &x2, &y2); point=*(int *)argv[2]; x=*(int *)argv[3]; y=*(int *)argv[4]; minx=(x1x2) ? &x1 : &x2; maxy=(y1>y2) ? &y1 : &y2; switch (point) { case 0: (*minx)+=x; (*miny)+=y; break; case 1: (*maxx)+=x; (*miny)+=y; break; case 2: (*maxx)+=x; (*maxy)+=y; break; case 3: (*minx)+=x; (*maxy)+=y; break; default: return 1; } if (set_position(obj, inst, x1, y1, x2, y2)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int rectzoom(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int i,snum,*sdata,refx,refy,x1,y1,x2,y2,width,preserve_width; double zoom; struct narray *style; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; zoom=(*(int *)argv[2])/10000.0; refx=(*(int *)argv[3]); refy=(*(int *)argv[4]); preserve_width = (*(int *)argv[5]); get_position(obj, inst, &x1, &y1, &x2, &y2); _getobj(obj,"width",inst,&width); _getobj(obj,"style",inst,&style); snum=arraynum(style); sdata=arraydata(style); x1=(x1-refx)*zoom+refx; y1=(y1-refy)*zoom+refy; x2=(x2-refx)*zoom+refx; y2=(y2-refy)*zoom+refy; if (! preserve_width) { width = width * zoom; for (i=0;ii=FALSE; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; if (_exeobj(obj,"bbox",inst,0,NULL)) return 1; _getobj(obj,"bbox",inst,&array); _getobj(obj,"fill",inst,&ifill); _getobj(obj,"stroke",inst,&stroke); if (! ifill && ! stroke) { return 0; } if (array==NULL) return 0; minx=*(int *)argv[2]; miny=*(int *)argv[3]; maxx=*(int *)argv[4]; maxy=*(int *)argv[5]; err=*(int *)argv[6]; if (arraynum(array)<4) return 1; bminx=arraynget_int(array,0); bminy=arraynget_int(array,1); bmaxx=arraynget_int(array,2); bmaxy=arraynget_int(array,3); if ((minx==maxx) && (miny==maxy)) { if (ifill) { bminx-=err; bminy-=err; bmaxx+=err; bmaxy+=err; if ((bminx<=minx) && (minx<=bmaxx) && (bminy<=miny) && (miny<=bmaxy)) rval->i=TRUE; } else { if ((((bminx-err<=minx) && (minx<=bminx+err)) || ((bmaxx-err<=minx) && (minx<=bmaxx+err))) && (bminy-err<=miny) && (miny<=bmaxy+err)) rval->i=TRUE; if ((((bminy-err<=miny) && (miny<=bminy+err)) || ((bmaxy-err<=miny) && (miny<=bmaxy+err))) && (bminx-err<=minx) && (minx<=bmaxx+err)) rval->i=TRUE; } } else { if ((minx<=bminx) && (bminx<=maxx) && (minx<=bmaxx) && (bmaxx<=maxx) && (miny<=bminy) && (bminy<=maxy) && (miny<=bmaxy) && (bmaxy<=maxy)) rval->i=TRUE; } return 0; } static int rectgeometry(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (*(int *)(argv[2])<1) *(int *)(argv[2])=1; if (clear_bbox(obj, inst)) return 1; return 0; } static int rect_frame(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int frame, fill, stroke; frame = * (int *) argv[2]; _getobj(obj, "fill", inst, &fill); stroke = (frame || ! fill); _putobj(obj, "stroke", inst, &stroke); fill = (frame || fill); _putobj(obj, "fill", inst, &fill); return 0; } static int put_color2(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int fill, frame, col, val, val2, f; _getobj(obj, "fill", inst, &fill); _getobj(obj, "frame", inst, &frame); if (fill == 0 && frame == 0) { return 0; } col = argv[1][0]; val = * (int *) argv[2]; if (val < 0) { val = 0; } else if (val > 255) { val = 255; } if (frame) { f = TRUE; _putobj(obj, "stroke", inst, &f); _putobj(obj, "fill", inst, &f); } else { f = FALSE; _putobj(obj, "stroke", inst, &f); } switch (col) { case 'R': _getobj(obj, "stroke_R", inst, &val2); _putobj(obj, "stroke_R", inst, &val); _putobj(obj, "fill_R", inst, &val2); break; case 'G': _getobj(obj, "stroke_G", inst, &val2); _putobj(obj, "stroke_G", inst, &val); _putobj(obj, "fill_G", inst, &val2); break; case 'B': _getobj(obj, "stroke_B", inst, &val2); _putobj(obj, "stroke_B", inst, &val); _putobj(obj, "fill_B", inst, &val2); break; } return 0; } static struct objtable rect[] = { {"init",NVFUNC,NEXEC,rectinit,NULL,0}, {"done",NVFUNC,NEXEC,rectdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"x1",NINT,NREAD|NWRITE,legendgeometry,NULL,0}, {"y1",NINT,NREAD|NWRITE,legendgeometry,NULL,0}, {"x2",NINT,NREAD|NWRITE,legendgeometry,NULL,0}, {"y2",NINT,NREAD|NWRITE,legendgeometry,NULL,0}, {"stroke_R",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"stroke_G",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"stroke_B",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"stroke_A",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"fill_R",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"fill_G",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"fill_B",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"fill_A",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"fill",NBOOL,NREAD|NWRITE,legendgeometry,NULL,0}, {"stroke",NBOOL,NREAD|NWRITE,legendgeometry,NULL,0}, {"width",NINT,NREAD|NWRITE,rectgeometry,NULL,0}, {"style",NIARRAY,NREAD|NWRITE,oputstyle,NULL,0}, {"draw",NVFUNC,NREAD|NEXEC,rectdraw,"i",0}, {"bbox",NIAFUNC,NREAD|NEXEC,rectbbox,"",0}, {"move",NVFUNC,NREAD|NEXEC,rectmove,"ii",0}, {"rotate",NVFUNC,NREAD|NEXEC,rectrotate,"iiii",0}, {"flip",NVFUNC,NREAD|NEXEC,rectflip,"iii",0}, {"change",NVFUNC,NREAD|NEXEC,rectchange,"iii",0}, {"zooming",NVFUNC,NREAD|NEXEC,rectzoom,"iiii",0}, {"match",NBFUNC,NREAD|NEXEC,rectmatch,"iiiii",0}, /* following fields exist for backward compatibility */ {"frame",NBOOL,NWRITE,rect_frame,NULL,0}, {"R",NINT,NWRITE,put_color_for_backward_compatibility,NULL,0}, {"G",NINT,NWRITE,put_color_for_backward_compatibility,NULL,0}, {"B",NINT,NWRITE,put_color_for_backward_compatibility,NULL,0}, {"A",NINT,NWRITE,put_color_for_backward_compatibility,NULL,0}, {"R2",NINT,NWRITE,put_color2,NULL,0}, {"G2",NINT,NWRITE,put_color2,NULL,0}, {"B2",NINT,NWRITE,put_color2,NULL,0}, }; #define TBLNUM (sizeof(rect) / sizeof(*rect)) void * addrectangle(void) /* addrectangle() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,rect,ERRNUM,recterrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/shell.h0000644000175000017500000001066212241111703012716 00000000000000#ifndef _SHELL_HEADER #define _SHELL_HEADER /* * $Id: shell.h,v 1.14 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include "ioutil.h" #define SHELLBUFSIZE 4096 #define ERRUEXPEOF 100 #define ERRBADSUB 101 #define ERRSYNTAX 102 #define ERRUEXPTOK 103 #define ERRIDENT 104 #define ERRCFOUND 105 #define ERRSYSTEM 106 #define ERREXTARG 107 #define ERRSMLARG 108 #define ERRMANYARG 109 #define ERRNOFILE 110 #define ERREOF 111 #define ERRNOFIL 112 #define ERRREAD 113 #define ERROPEN 114 #define ERROBJARG 115 #define ERRINSTARG 116 #define ERRNEWINST 117 #define ERRCMFIELD 118 #define ERRVALUE 119 #define ERRTWOINST 120 #define ERRNONEINST 121 #define ERRNOFIELD 122 #define ERRNUMERIC 123 #define ERROPTION 124 #define ERRILOPS 125 #define ERRUNSET 126 #define ERRNODIR 127 #define ERRMSYNTAX 128 #define ERRMILLEGAL 129 #define ERRMNEST 130 #define ERRMARG 131 #define ERRMFAT 132 #define ERRTESTNEST 133 #define ERRTESTSYNTAX 134 #define ERRSECURITY 135 #define ERRMEMORY 136 #define ERRUNKNOWNSH 137 struct prmlist; struct prmlist { struct prmlist *next; char *str; int prmno; int quoted; }; struct cmdlist; struct cmdlist { struct cmdlist *next; int cmdno; int cmdend; struct prmlist *prm; void *done; char *pipefile; }; struct vallist; struct vallist { struct vallist *next; char *name; void *val; int func; int arg; }; struct explist; struct explist { char *val; struct explist *next; }; struct nshell { struct objlist *obj; #if USE_HASH NHASH exproot, valroot; #else struct vallist *valroot; struct explist *exproot; #endif int argc; char **argv; int cmdexec; int status; int quit; int options; int optionf; int optione; int optionv; int optionx; int fd; char *readbuf; int readpo; int readbyte; int deleted; int (*sgetstdin)(); int (*sputstdout)(const char *s); int (*sprintfstdout)(char *fmt,...); }; extern int CMDNUM; typedef int (* shell_proc)(struct nshell *nshell,int argc,char **argv); struct cmdtabletype { char *name; shell_proc proc; }; extern struct cmdtabletype cmdtable[]; extern int CPCMDNUM; extern char *cpcmdtable[]; shell_proc check_cmd(char *name); int check_cpcmd(char *name); int init_cmd_tbl(void); void nsleep(int a); int eval_script(const char *script, int security); char *addval(struct nshell *nshell,char *name,char *val); char *addexp(struct nshell *nshell,char *name); int delval(struct nshell *nshell,char *name); char *getval(struct nshell *nshell,char *name); struct cmdlist *getfunc(struct nshell *nshell,char *name); void setshhandle(struct nshell *shell, int fd); int getshhandle(struct nshell *nshell); int cmdexecute(struct nshell *nshell, const char *cline); struct nshell *newshell(void); void delshell(struct nshell *nshell); void sherror(int code); void sherror2(int code,char *mes); void sherror3(char *cmd,int code,char *mes); void sherror4(char *cmd,int code); void shellsavestdio(struct nshell *nshell); void shellrestorestdio(struct nshell *nshell); int setshelloption(struct nshell *nshell,char *opt); int getshelloption(struct nshell *nshell,char opt); int set_shell_args(struct nshell *nshell, int j, const char *argv0, int argc, char **argv); void setshellargument(struct nshell *nshell,int argc,char **argv); int printfconsole(char *fmt,...); void ngraphenvironment(struct nshell *nshell); int msleep(int ms); void set_security(int state); int get_security(void); void set_environ(void); int set_signal(int signal, int flags, void (*handler)(int)); void set_childhandler(void); void unset_childhandler(void); int system_bg(char *cmd); #ifdef WINDOWS void show_system_error(void); #endif /* WINDOWS */ #endif ngraph-gtk-6.06.13/src/Makefile.in0000644000175000017500000025112712241364551013521 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = ngraph$(EXEEXT) pkglibexec_PROGRAMS = terminal$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp \ $(include_HEADERS) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libngraph_la_DEPENDENCIES = gtk/libngraphui.la math/libmath.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_libngraph_la_OBJECTS = libngraph_la-axis.lo libngraph_la-nconfig.lo \ libngraph_la-gra.lo libngraph_la-ioutil.lo \ libngraph_la-mathcode.lo libngraph_la-mathfn.lo \ libngraph_la-nstring.lo libngraph_la-ntime.lo \ libngraph_la-oagrid.lo libngraph_la-oarc.lo \ libngraph_la-oaxis.lo libngraph_la-object.lo \ libngraph_la-odarray.lo libngraph_la-odouble.lo \ libngraph_la-odraw.lo libngraph_la-ofile.lo \ libngraph_la-ofit.lo libngraph_la-ogra.lo \ libngraph_la-ogra2.lo libngraph_la-ogra2fil.lo \ libngraph_la-ogra2nul.lo libngraph_la-ogra2prn.lo \ libngraph_la-oiarray.lo libngraph_la-oint.lo \ libngraph_la-olegend.lo libngraph_la-omark.lo \ libngraph_la-omath.lo libngraph_la-omerge.lo \ libngraph_la-oprm.lo libngraph_la-orect.lo \ libngraph_la-oroot.lo libngraph_la-osarray.lo \ libngraph_la-oshell.lo libngraph_la-oregexp.lo \ libngraph_la-ostring.lo libngraph_la-osystem.lo \ libngraph_la-otext.lo libngraph_la-opath.lo \ libngraph_la-shell.lo libngraph_la-shellcm.lo \ libngraph_la-shellux.lo libngraph_la-spline.lo \ libngraph_la-nhash.lo libngraph_la-strconv.lo \ libngraph_la-oio.lo libngraph_la-oplugin.lo libngraph_la_OBJECTS = $(am_libngraph_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libngraph_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libngraph_la_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkglibexecdir)" \ "$(DESTDIR)$(includedir)" PROGRAMS = $(bin_PROGRAMS) $(pkglibexec_PROGRAMS) am_ngraph_OBJECTS = ngraph_OBJECTS = $(am_ngraph_OBJECTS) ngraph_DEPENDENCIES = libngraph.la ngraph_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(ngraph_LDFLAGS) $(LDFLAGS) -o $@ am_terminal_OBJECTS = terminal-terminal.$(OBJEXT) terminal_OBJECTS = $(am_terminal_OBJECTS) terminal_LDADD = $(LDADD) terminal_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(terminal_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libngraph_la_SOURCES) $(ngraph_SOURCES) \ $(terminal_SOURCES) DIST_SOURCES = $(libngraph_la_SOURCES) $(ngraph_SOURCES) \ $(terminal_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } HEADERS = $(include_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = gtk math noinst_LTLIBRARIES = libngraph.la libngraph_la_SOURCES = axis.c axis.h nconfig.c nconfig.h gra.c gra.h \ ioutil.c ioutil.h mathcode.c mathcode.h mathfn.c mathfn.h \ nstring.c nstring.h ntime.c ntime.h oagrid.c oarc.c oarc.h \ oaxis.c object.c object.h odarray.c odouble.c odraw.c odraw.h \ ofile.c ofile.h ofit.c ofit.h ogra.c ogra.h ogra2.c \ ogra2fil.c ogra2nul.c ogra2prn.c oiarray.c oiarray.h oint.c \ olegend.c olegend.h omark.c omath.c omerge.c oprm.c orect.c \ oroot.c oroot.h osarray.c oshell.c oregexp.c ostring.c \ osystem.c otext.c otext.h opath.c opath.h shell.c shell.h \ shellcm.c shellcm.h shellux.c shellux.h spline.c spline.h \ common.h nhash.h nhash.c strconv.c strconv.h oio.c oplugin.c \ gettext.h ngraph_export.map libngraph_la_CFLAGS = $(GTK_CFLAGS) $(GSL_CFLAGS) -I.. -DCCNAME='"'$(CC)'"' libngraph_la_LIBADD = gtk/libngraphui.la math/libmath.la $(M_LIBS) $(READLINE_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(GSL_LIBS) ngraph_SOURCES = ngraph_LDADD = libngraph.la ngraph_LDFLAGS = $(RDYNAMIC) $(VER_SCRIPT) terminal_SOURCES = terminal.c terminal_CFLAGS = $(GTK_CFLAGS) include_HEADERS = ngraph.h all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libngraph.la: $(libngraph_la_OBJECTS) $(libngraph_la_DEPENDENCIES) $(EXTRA_libngraph_la_DEPENDENCIES) $(AM_V_CCLD)$(libngraph_la_LINK) $(libngraph_la_OBJECTS) $(libngraph_la_LIBADD) $(LIBS) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list install-pkglibexecPROGRAMS: $(pkglibexec_PROGRAMS) @$(NORMAL_INSTALL) @list='$(pkglibexec_PROGRAMS)'; test -n "$(pkglibexecdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkglibexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkglibexecdir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(pkglibexecdir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(pkglibexecdir)$$dir" || exit $$?; \ } \ ; done uninstall-pkglibexecPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(pkglibexec_PROGRAMS)'; test -n "$(pkglibexecdir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(pkglibexecdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(pkglibexecdir)" && rm -f $$files clean-pkglibexecPROGRAMS: @list='$(pkglibexec_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list ngraph$(EXEEXT): $(ngraph_OBJECTS) $(ngraph_DEPENDENCIES) $(EXTRA_ngraph_DEPENDENCIES) @rm -f ngraph$(EXEEXT) $(AM_V_CCLD)$(ngraph_LINK) $(ngraph_OBJECTS) $(ngraph_LDADD) $(LIBS) terminal$(EXEEXT): $(terminal_OBJECTS) $(terminal_DEPENDENCIES) $(EXTRA_terminal_DEPENDENCIES) @rm -f terminal$(EXEEXT) $(AM_V_CCLD)$(terminal_LINK) $(terminal_OBJECTS) $(terminal_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-axis.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-gra.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ioutil.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-mathcode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-mathfn.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-nconfig.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-nhash.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-nstring.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ntime.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oagrid.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oarc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oaxis.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-object.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-odarray.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-odouble.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-odraw.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ofile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ofit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ogra.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ogra2.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ogra2fil.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ogra2nul.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ogra2prn.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oiarray.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oint.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oio.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-olegend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-omark.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-omath.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-omerge.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-opath.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oplugin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oprm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-orect.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oregexp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oroot.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-osarray.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-oshell.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-ostring.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-osystem.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-otext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-shell.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-shellcm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-shellux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-spline.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraph_la-strconv.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/terminal-terminal.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libngraph_la-axis.lo: axis.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-axis.lo -MD -MP -MF $(DEPDIR)/libngraph_la-axis.Tpo -c -o libngraph_la-axis.lo `test -f 'axis.c' || echo '$(srcdir)/'`axis.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-axis.Tpo $(DEPDIR)/libngraph_la-axis.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='axis.c' object='libngraph_la-axis.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-axis.lo `test -f 'axis.c' || echo '$(srcdir)/'`axis.c libngraph_la-nconfig.lo: nconfig.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-nconfig.lo -MD -MP -MF $(DEPDIR)/libngraph_la-nconfig.Tpo -c -o libngraph_la-nconfig.lo `test -f 'nconfig.c' || echo '$(srcdir)/'`nconfig.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-nconfig.Tpo $(DEPDIR)/libngraph_la-nconfig.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='nconfig.c' object='libngraph_la-nconfig.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-nconfig.lo `test -f 'nconfig.c' || echo '$(srcdir)/'`nconfig.c libngraph_la-gra.lo: gra.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-gra.lo -MD -MP -MF $(DEPDIR)/libngraph_la-gra.Tpo -c -o libngraph_la-gra.lo `test -f 'gra.c' || echo '$(srcdir)/'`gra.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-gra.Tpo $(DEPDIR)/libngraph_la-gra.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gra.c' object='libngraph_la-gra.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-gra.lo `test -f 'gra.c' || echo '$(srcdir)/'`gra.c libngraph_la-ioutil.lo: ioutil.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ioutil.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ioutil.Tpo -c -o libngraph_la-ioutil.lo `test -f 'ioutil.c' || echo '$(srcdir)/'`ioutil.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ioutil.Tpo $(DEPDIR)/libngraph_la-ioutil.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ioutil.c' object='libngraph_la-ioutil.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ioutil.lo `test -f 'ioutil.c' || echo '$(srcdir)/'`ioutil.c libngraph_la-mathcode.lo: mathcode.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-mathcode.lo -MD -MP -MF $(DEPDIR)/libngraph_la-mathcode.Tpo -c -o libngraph_la-mathcode.lo `test -f 'mathcode.c' || echo '$(srcdir)/'`mathcode.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-mathcode.Tpo $(DEPDIR)/libngraph_la-mathcode.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mathcode.c' object='libngraph_la-mathcode.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-mathcode.lo `test -f 'mathcode.c' || echo '$(srcdir)/'`mathcode.c libngraph_la-mathfn.lo: mathfn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-mathfn.lo -MD -MP -MF $(DEPDIR)/libngraph_la-mathfn.Tpo -c -o libngraph_la-mathfn.lo `test -f 'mathfn.c' || echo '$(srcdir)/'`mathfn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-mathfn.Tpo $(DEPDIR)/libngraph_la-mathfn.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mathfn.c' object='libngraph_la-mathfn.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-mathfn.lo `test -f 'mathfn.c' || echo '$(srcdir)/'`mathfn.c libngraph_la-nstring.lo: nstring.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-nstring.lo -MD -MP -MF $(DEPDIR)/libngraph_la-nstring.Tpo -c -o libngraph_la-nstring.lo `test -f 'nstring.c' || echo '$(srcdir)/'`nstring.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-nstring.Tpo $(DEPDIR)/libngraph_la-nstring.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='nstring.c' object='libngraph_la-nstring.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-nstring.lo `test -f 'nstring.c' || echo '$(srcdir)/'`nstring.c libngraph_la-ntime.lo: ntime.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ntime.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ntime.Tpo -c -o libngraph_la-ntime.lo `test -f 'ntime.c' || echo '$(srcdir)/'`ntime.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ntime.Tpo $(DEPDIR)/libngraph_la-ntime.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ntime.c' object='libngraph_la-ntime.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ntime.lo `test -f 'ntime.c' || echo '$(srcdir)/'`ntime.c libngraph_la-oagrid.lo: oagrid.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oagrid.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oagrid.Tpo -c -o libngraph_la-oagrid.lo `test -f 'oagrid.c' || echo '$(srcdir)/'`oagrid.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oagrid.Tpo $(DEPDIR)/libngraph_la-oagrid.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oagrid.c' object='libngraph_la-oagrid.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oagrid.lo `test -f 'oagrid.c' || echo '$(srcdir)/'`oagrid.c libngraph_la-oarc.lo: oarc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oarc.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oarc.Tpo -c -o libngraph_la-oarc.lo `test -f 'oarc.c' || echo '$(srcdir)/'`oarc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oarc.Tpo $(DEPDIR)/libngraph_la-oarc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oarc.c' object='libngraph_la-oarc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oarc.lo `test -f 'oarc.c' || echo '$(srcdir)/'`oarc.c libngraph_la-oaxis.lo: oaxis.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oaxis.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oaxis.Tpo -c -o libngraph_la-oaxis.lo `test -f 'oaxis.c' || echo '$(srcdir)/'`oaxis.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oaxis.Tpo $(DEPDIR)/libngraph_la-oaxis.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oaxis.c' object='libngraph_la-oaxis.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oaxis.lo `test -f 'oaxis.c' || echo '$(srcdir)/'`oaxis.c libngraph_la-object.lo: object.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-object.lo -MD -MP -MF $(DEPDIR)/libngraph_la-object.Tpo -c -o libngraph_la-object.lo `test -f 'object.c' || echo '$(srcdir)/'`object.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-object.Tpo $(DEPDIR)/libngraph_la-object.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='object.c' object='libngraph_la-object.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-object.lo `test -f 'object.c' || echo '$(srcdir)/'`object.c libngraph_la-odarray.lo: odarray.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-odarray.lo -MD -MP -MF $(DEPDIR)/libngraph_la-odarray.Tpo -c -o libngraph_la-odarray.lo `test -f 'odarray.c' || echo '$(srcdir)/'`odarray.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-odarray.Tpo $(DEPDIR)/libngraph_la-odarray.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='odarray.c' object='libngraph_la-odarray.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-odarray.lo `test -f 'odarray.c' || echo '$(srcdir)/'`odarray.c libngraph_la-odouble.lo: odouble.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-odouble.lo -MD -MP -MF $(DEPDIR)/libngraph_la-odouble.Tpo -c -o libngraph_la-odouble.lo `test -f 'odouble.c' || echo '$(srcdir)/'`odouble.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-odouble.Tpo $(DEPDIR)/libngraph_la-odouble.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='odouble.c' object='libngraph_la-odouble.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-odouble.lo `test -f 'odouble.c' || echo '$(srcdir)/'`odouble.c libngraph_la-odraw.lo: odraw.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-odraw.lo -MD -MP -MF $(DEPDIR)/libngraph_la-odraw.Tpo -c -o libngraph_la-odraw.lo `test -f 'odraw.c' || echo '$(srcdir)/'`odraw.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-odraw.Tpo $(DEPDIR)/libngraph_la-odraw.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='odraw.c' object='libngraph_la-odraw.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-odraw.lo `test -f 'odraw.c' || echo '$(srcdir)/'`odraw.c libngraph_la-ofile.lo: ofile.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ofile.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ofile.Tpo -c -o libngraph_la-ofile.lo `test -f 'ofile.c' || echo '$(srcdir)/'`ofile.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ofile.Tpo $(DEPDIR)/libngraph_la-ofile.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ofile.c' object='libngraph_la-ofile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ofile.lo `test -f 'ofile.c' || echo '$(srcdir)/'`ofile.c libngraph_la-ofit.lo: ofit.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ofit.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ofit.Tpo -c -o libngraph_la-ofit.lo `test -f 'ofit.c' || echo '$(srcdir)/'`ofit.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ofit.Tpo $(DEPDIR)/libngraph_la-ofit.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ofit.c' object='libngraph_la-ofit.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ofit.lo `test -f 'ofit.c' || echo '$(srcdir)/'`ofit.c libngraph_la-ogra.lo: ogra.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ogra.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ogra.Tpo -c -o libngraph_la-ogra.lo `test -f 'ogra.c' || echo '$(srcdir)/'`ogra.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ogra.Tpo $(DEPDIR)/libngraph_la-ogra.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra.c' object='libngraph_la-ogra.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ogra.lo `test -f 'ogra.c' || echo '$(srcdir)/'`ogra.c libngraph_la-ogra2.lo: ogra2.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ogra2.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ogra2.Tpo -c -o libngraph_la-ogra2.lo `test -f 'ogra2.c' || echo '$(srcdir)/'`ogra2.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ogra2.Tpo $(DEPDIR)/libngraph_la-ogra2.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2.c' object='libngraph_la-ogra2.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ogra2.lo `test -f 'ogra2.c' || echo '$(srcdir)/'`ogra2.c libngraph_la-ogra2fil.lo: ogra2fil.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ogra2fil.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ogra2fil.Tpo -c -o libngraph_la-ogra2fil.lo `test -f 'ogra2fil.c' || echo '$(srcdir)/'`ogra2fil.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ogra2fil.Tpo $(DEPDIR)/libngraph_la-ogra2fil.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2fil.c' object='libngraph_la-ogra2fil.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ogra2fil.lo `test -f 'ogra2fil.c' || echo '$(srcdir)/'`ogra2fil.c libngraph_la-ogra2nul.lo: ogra2nul.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ogra2nul.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ogra2nul.Tpo -c -o libngraph_la-ogra2nul.lo `test -f 'ogra2nul.c' || echo '$(srcdir)/'`ogra2nul.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ogra2nul.Tpo $(DEPDIR)/libngraph_la-ogra2nul.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2nul.c' object='libngraph_la-ogra2nul.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ogra2nul.lo `test -f 'ogra2nul.c' || echo '$(srcdir)/'`ogra2nul.c libngraph_la-ogra2prn.lo: ogra2prn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ogra2prn.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ogra2prn.Tpo -c -o libngraph_la-ogra2prn.lo `test -f 'ogra2prn.c' || echo '$(srcdir)/'`ogra2prn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ogra2prn.Tpo $(DEPDIR)/libngraph_la-ogra2prn.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2prn.c' object='libngraph_la-ogra2prn.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ogra2prn.lo `test -f 'ogra2prn.c' || echo '$(srcdir)/'`ogra2prn.c libngraph_la-oiarray.lo: oiarray.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oiarray.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oiarray.Tpo -c -o libngraph_la-oiarray.lo `test -f 'oiarray.c' || echo '$(srcdir)/'`oiarray.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oiarray.Tpo $(DEPDIR)/libngraph_la-oiarray.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oiarray.c' object='libngraph_la-oiarray.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oiarray.lo `test -f 'oiarray.c' || echo '$(srcdir)/'`oiarray.c libngraph_la-oint.lo: oint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oint.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oint.Tpo -c -o libngraph_la-oint.lo `test -f 'oint.c' || echo '$(srcdir)/'`oint.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oint.Tpo $(DEPDIR)/libngraph_la-oint.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oint.c' object='libngraph_la-oint.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oint.lo `test -f 'oint.c' || echo '$(srcdir)/'`oint.c libngraph_la-olegend.lo: olegend.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-olegend.lo -MD -MP -MF $(DEPDIR)/libngraph_la-olegend.Tpo -c -o libngraph_la-olegend.lo `test -f 'olegend.c' || echo '$(srcdir)/'`olegend.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-olegend.Tpo $(DEPDIR)/libngraph_la-olegend.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='olegend.c' object='libngraph_la-olegend.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-olegend.lo `test -f 'olegend.c' || echo '$(srcdir)/'`olegend.c libngraph_la-omark.lo: omark.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-omark.lo -MD -MP -MF $(DEPDIR)/libngraph_la-omark.Tpo -c -o libngraph_la-omark.lo `test -f 'omark.c' || echo '$(srcdir)/'`omark.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-omark.Tpo $(DEPDIR)/libngraph_la-omark.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='omark.c' object='libngraph_la-omark.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-omark.lo `test -f 'omark.c' || echo '$(srcdir)/'`omark.c libngraph_la-omath.lo: omath.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-omath.lo -MD -MP -MF $(DEPDIR)/libngraph_la-omath.Tpo -c -o libngraph_la-omath.lo `test -f 'omath.c' || echo '$(srcdir)/'`omath.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-omath.Tpo $(DEPDIR)/libngraph_la-omath.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='omath.c' object='libngraph_la-omath.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-omath.lo `test -f 'omath.c' || echo '$(srcdir)/'`omath.c libngraph_la-omerge.lo: omerge.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-omerge.lo -MD -MP -MF $(DEPDIR)/libngraph_la-omerge.Tpo -c -o libngraph_la-omerge.lo `test -f 'omerge.c' || echo '$(srcdir)/'`omerge.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-omerge.Tpo $(DEPDIR)/libngraph_la-omerge.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='omerge.c' object='libngraph_la-omerge.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-omerge.lo `test -f 'omerge.c' || echo '$(srcdir)/'`omerge.c libngraph_la-oprm.lo: oprm.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oprm.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oprm.Tpo -c -o libngraph_la-oprm.lo `test -f 'oprm.c' || echo '$(srcdir)/'`oprm.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oprm.Tpo $(DEPDIR)/libngraph_la-oprm.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oprm.c' object='libngraph_la-oprm.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oprm.lo `test -f 'oprm.c' || echo '$(srcdir)/'`oprm.c libngraph_la-orect.lo: orect.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-orect.lo -MD -MP -MF $(DEPDIR)/libngraph_la-orect.Tpo -c -o libngraph_la-orect.lo `test -f 'orect.c' || echo '$(srcdir)/'`orect.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-orect.Tpo $(DEPDIR)/libngraph_la-orect.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='orect.c' object='libngraph_la-orect.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-orect.lo `test -f 'orect.c' || echo '$(srcdir)/'`orect.c libngraph_la-oroot.lo: oroot.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oroot.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oroot.Tpo -c -o libngraph_la-oroot.lo `test -f 'oroot.c' || echo '$(srcdir)/'`oroot.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oroot.Tpo $(DEPDIR)/libngraph_la-oroot.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oroot.c' object='libngraph_la-oroot.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oroot.lo `test -f 'oroot.c' || echo '$(srcdir)/'`oroot.c libngraph_la-osarray.lo: osarray.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-osarray.lo -MD -MP -MF $(DEPDIR)/libngraph_la-osarray.Tpo -c -o libngraph_la-osarray.lo `test -f 'osarray.c' || echo '$(srcdir)/'`osarray.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-osarray.Tpo $(DEPDIR)/libngraph_la-osarray.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='osarray.c' object='libngraph_la-osarray.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-osarray.lo `test -f 'osarray.c' || echo '$(srcdir)/'`osarray.c libngraph_la-oshell.lo: oshell.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oshell.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oshell.Tpo -c -o libngraph_la-oshell.lo `test -f 'oshell.c' || echo '$(srcdir)/'`oshell.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oshell.Tpo $(DEPDIR)/libngraph_la-oshell.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oshell.c' object='libngraph_la-oshell.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oshell.lo `test -f 'oshell.c' || echo '$(srcdir)/'`oshell.c libngraph_la-oregexp.lo: oregexp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oregexp.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oregexp.Tpo -c -o libngraph_la-oregexp.lo `test -f 'oregexp.c' || echo '$(srcdir)/'`oregexp.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oregexp.Tpo $(DEPDIR)/libngraph_la-oregexp.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oregexp.c' object='libngraph_la-oregexp.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oregexp.lo `test -f 'oregexp.c' || echo '$(srcdir)/'`oregexp.c libngraph_la-ostring.lo: ostring.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-ostring.lo -MD -MP -MF $(DEPDIR)/libngraph_la-ostring.Tpo -c -o libngraph_la-ostring.lo `test -f 'ostring.c' || echo '$(srcdir)/'`ostring.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-ostring.Tpo $(DEPDIR)/libngraph_la-ostring.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ostring.c' object='libngraph_la-ostring.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-ostring.lo `test -f 'ostring.c' || echo '$(srcdir)/'`ostring.c libngraph_la-osystem.lo: osystem.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-osystem.lo -MD -MP -MF $(DEPDIR)/libngraph_la-osystem.Tpo -c -o libngraph_la-osystem.lo `test -f 'osystem.c' || echo '$(srcdir)/'`osystem.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-osystem.Tpo $(DEPDIR)/libngraph_la-osystem.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='osystem.c' object='libngraph_la-osystem.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-osystem.lo `test -f 'osystem.c' || echo '$(srcdir)/'`osystem.c libngraph_la-otext.lo: otext.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-otext.lo -MD -MP -MF $(DEPDIR)/libngraph_la-otext.Tpo -c -o libngraph_la-otext.lo `test -f 'otext.c' || echo '$(srcdir)/'`otext.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-otext.Tpo $(DEPDIR)/libngraph_la-otext.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='otext.c' object='libngraph_la-otext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-otext.lo `test -f 'otext.c' || echo '$(srcdir)/'`otext.c libngraph_la-opath.lo: opath.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-opath.lo -MD -MP -MF $(DEPDIR)/libngraph_la-opath.Tpo -c -o libngraph_la-opath.lo `test -f 'opath.c' || echo '$(srcdir)/'`opath.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-opath.Tpo $(DEPDIR)/libngraph_la-opath.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='opath.c' object='libngraph_la-opath.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-opath.lo `test -f 'opath.c' || echo '$(srcdir)/'`opath.c libngraph_la-shell.lo: shell.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-shell.lo -MD -MP -MF $(DEPDIR)/libngraph_la-shell.Tpo -c -o libngraph_la-shell.lo `test -f 'shell.c' || echo '$(srcdir)/'`shell.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-shell.Tpo $(DEPDIR)/libngraph_la-shell.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='shell.c' object='libngraph_la-shell.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-shell.lo `test -f 'shell.c' || echo '$(srcdir)/'`shell.c libngraph_la-shellcm.lo: shellcm.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-shellcm.lo -MD -MP -MF $(DEPDIR)/libngraph_la-shellcm.Tpo -c -o libngraph_la-shellcm.lo `test -f 'shellcm.c' || echo '$(srcdir)/'`shellcm.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-shellcm.Tpo $(DEPDIR)/libngraph_la-shellcm.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='shellcm.c' object='libngraph_la-shellcm.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-shellcm.lo `test -f 'shellcm.c' || echo '$(srcdir)/'`shellcm.c libngraph_la-shellux.lo: shellux.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-shellux.lo -MD -MP -MF $(DEPDIR)/libngraph_la-shellux.Tpo -c -o libngraph_la-shellux.lo `test -f 'shellux.c' || echo '$(srcdir)/'`shellux.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-shellux.Tpo $(DEPDIR)/libngraph_la-shellux.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='shellux.c' object='libngraph_la-shellux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-shellux.lo `test -f 'shellux.c' || echo '$(srcdir)/'`shellux.c libngraph_la-spline.lo: spline.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-spline.lo -MD -MP -MF $(DEPDIR)/libngraph_la-spline.Tpo -c -o libngraph_la-spline.lo `test -f 'spline.c' || echo '$(srcdir)/'`spline.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-spline.Tpo $(DEPDIR)/libngraph_la-spline.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='spline.c' object='libngraph_la-spline.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-spline.lo `test -f 'spline.c' || echo '$(srcdir)/'`spline.c libngraph_la-nhash.lo: nhash.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-nhash.lo -MD -MP -MF $(DEPDIR)/libngraph_la-nhash.Tpo -c -o libngraph_la-nhash.lo `test -f 'nhash.c' || echo '$(srcdir)/'`nhash.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-nhash.Tpo $(DEPDIR)/libngraph_la-nhash.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='nhash.c' object='libngraph_la-nhash.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-nhash.lo `test -f 'nhash.c' || echo '$(srcdir)/'`nhash.c libngraph_la-strconv.lo: strconv.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-strconv.lo -MD -MP -MF $(DEPDIR)/libngraph_la-strconv.Tpo -c -o libngraph_la-strconv.lo `test -f 'strconv.c' || echo '$(srcdir)/'`strconv.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-strconv.Tpo $(DEPDIR)/libngraph_la-strconv.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strconv.c' object='libngraph_la-strconv.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-strconv.lo `test -f 'strconv.c' || echo '$(srcdir)/'`strconv.c libngraph_la-oio.lo: oio.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oio.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oio.Tpo -c -o libngraph_la-oio.lo `test -f 'oio.c' || echo '$(srcdir)/'`oio.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oio.Tpo $(DEPDIR)/libngraph_la-oio.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oio.c' object='libngraph_la-oio.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oio.lo `test -f 'oio.c' || echo '$(srcdir)/'`oio.c libngraph_la-oplugin.lo: oplugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -MT libngraph_la-oplugin.lo -MD -MP -MF $(DEPDIR)/libngraph_la-oplugin.Tpo -c -o libngraph_la-oplugin.lo `test -f 'oplugin.c' || echo '$(srcdir)/'`oplugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraph_la-oplugin.Tpo $(DEPDIR)/libngraph_la-oplugin.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='oplugin.c' object='libngraph_la-oplugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraph_la_CFLAGS) $(CFLAGS) -c -o libngraph_la-oplugin.lo `test -f 'oplugin.c' || echo '$(srcdir)/'`oplugin.c terminal-terminal.o: terminal.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(terminal_CFLAGS) $(CFLAGS) -MT terminal-terminal.o -MD -MP -MF $(DEPDIR)/terminal-terminal.Tpo -c -o terminal-terminal.o `test -f 'terminal.c' || echo '$(srcdir)/'`terminal.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/terminal-terminal.Tpo $(DEPDIR)/terminal-terminal.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='terminal.c' object='terminal-terminal.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(terminal_CFLAGS) $(CFLAGS) -c -o terminal-terminal.o `test -f 'terminal.c' || echo '$(srcdir)/'`terminal.c terminal-terminal.obj: terminal.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(terminal_CFLAGS) $(CFLAGS) -MT terminal-terminal.obj -MD -MP -MF $(DEPDIR)/terminal-terminal.Tpo -c -o terminal-terminal.obj `if test -f 'terminal.c'; then $(CYGPATH_W) 'terminal.c'; else $(CYGPATH_W) '$(srcdir)/terminal.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/terminal-terminal.Tpo $(DEPDIR)/terminal-terminal.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='terminal.c' object='terminal-terminal.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(terminal_CFLAGS) $(CFLAGS) -c -o terminal-terminal.obj `if test -f 'terminal.c'; then $(CYGPATH_W) 'terminal.c'; else $(CYGPATH_W) '$(srcdir)/terminal.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ done uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkglibexecdir)" "$(DESTDIR)$(includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libtool \ clean-noinstLTLIBRARIES clean-pkglibexecPROGRAMS \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-includeHEADERS install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-pkglibexecPROGRAMS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \ uninstall-pkglibexecPROGRAMS .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-binPROGRAMS clean-generic clean-libtool \ clean-noinstLTLIBRARIES clean-pkglibexecPROGRAMS cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-includeHEADERS install-info install-info-am \ install-man install-pdf install-pdf-am \ install-pkglibexecPROGRAMS install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-includeHEADERS \ uninstall-pkglibexecPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/src/otext.h0000644000175000017500000000011612241111703012743 00000000000000#define TEXT_OBJ_SCRIPT_SIZE_MIN 1000 #define TEXT_OBJ_SCRIPT_SIZE_MAX 100000 ngraph-gtk-6.06.13/src/ngraph_export.map0000644000175000017500000000005112241111703015004 00000000000000{ global: ngraph_*; local: *; }; ngraph-gtk-6.06.13/src/shellcm.h0000644000175000017500000000516612241111703013241 00000000000000/* * $Id: shellcm.h,v 1.8 2009-11-12 01:36:45 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef SHELLCM_HEADER #define SHELLCM_HEADER #include "shell.h" int cmcd(struct nshell *nshell,int argc,char **argv); int cmecho(struct nshell *nshell,int argc,char **argv); int cmbasename(struct nshell *nshell,int argc,char **argv); int cmdirname(struct nshell *nshell,int argc,char **argv); int cmeval(struct nshell *nshell,int argc,char **argv); int cmexit(struct nshell *nshell,int argc,char **argv); int cmexport(struct nshell *nshell,int argc,char **argv); int cmpwd(struct nshell *nshell,int argc,char **argv); int cmset(struct nshell *nshell,int argc,char **argv); int cmshift(struct nshell *nshell,int argc,char **argv); int cmtype(struct nshell *nshell,int argc,char **argv); int cmunset(struct nshell *nshell,int argc,char **argv); int cmobject(struct nshell *nshell,int argc,char **argv); int cmderive(struct nshell *nshell,int argc,char **argv); int cmnew(struct nshell *nshell,int argc,char **argv); int cmdel(struct nshell *nshell,int argc,char **argv); int cmexist(struct nshell *nshell,int argc,char **argv); int cmget(struct nshell *nshell,int argc,char **argv); int cmput(struct nshell *nshell,int argc,char **argv); int cmdup(struct nshell *nshell,int argc,char **argv); int cmcpy(struct nshell *nshell,int argc,char **argv); int cmmove(struct nshell *nshell,int argc,char **argv); int cmmovetop(struct nshell *nshell,int argc,char **argv); int cmcopy(struct nshell *nshell,int argc,char **argv); int cmexch(struct nshell *nshell,int argc,char **argv); int cmexe(struct nshell *nshell,int argc,char **argv); int cmdexpr(struct nshell *nshell,int argc,char **argv); int cmread(struct nshell *nshell,int argc,char **argv); int cmseq(struct nshell *nshell, int argc, char **argv); int cmwhich(struct nshell*nshell,int argc,char **argv); #endif ngraph-gtk-6.06.13/src/nstring.c0000644000175000017500000002015612241111703013265 00000000000000/* * $Id: nstring.c,v 1.10 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include "object.h" #include "nstring.h" #define NSTRLEN 0x400 char * nstrnew(void) { char *po; if ((po=g_malloc(NSTRLEN))==NULL) return NULL; po[0]='\0'; return po; } char * nstrccat(char *po,char ch) { size_t len,num; char *po2; if (po==NULL) return NULL; len=strlen(po); num=len/NSTRLEN; if (len%NSTRLEN==NSTRLEN-1) { if ((po2=g_realloc(po,NSTRLEN*(num+2)))==NULL) { g_free(po); return NULL; } po=po2; } po[len]=ch; po[len+1]='\0'; return po; } char * nstraddchar(char *po, int len, char ch) { // if (po == NULL) return NULL; if (len >= NSTRLEN - 1 && ! ((len + 1) & (NSTRLEN - 1))) { char *po2; po2 = g_realloc(po, NSTRLEN * (len / NSTRLEN + 2)); if (po2 == NULL) { g_free(po); return NULL; } po = po2; } po[len] = ch; // po[len + 1] = '\0'; return po; } char * nstrcat(char *po,char *s) { size_t i, len; /* modified */ if (po == NULL) return NULL; if (s == NULL) return po; len = strlen(po); for (i = 0; s[i] != '\0'; i++) { po = nstraddchar(po, len + i, s[i]); if (po == NULL) { return NULL; } } po[len + i] = '\0'; /* nstraddchar() is not terminate string */ return po; } #ifdef COMPILE_UNUSED_FUNCTIONS char * nstrncat(char *po,char *s,size_t n) { size_t i; if (po==NULL) return NULL; if (s==NULL) return po; for (i=0;(s[i]!='\0') && (ilen2) return 1; else return 0; } else return c; } static int wildmatch2(const char *pat, const char *s,int flags) { const char *spo,*patpo,*po; if ((s==NULL) || (pat==NULL)) return 0; spo=s; patpo=pat; while (1) { if ((*spo=='\0') && (*patpo=='\0')) return 1; else if (*patpo=='\0') return 0; else if ((flags & WILD_PATHNAME) && (*spo=='/')) { if (*patpo!='/') return 0; patpo++; spo++; } else if (*patpo=='?') { if (*spo=='\0') return 0; patpo++; spo++; } else if (*patpo=='*') { patpo++; while (1) { if (wildmatch2(patpo,spo,flags)) return 1; if (*spo=='\0') return 0; spo++; } } else if (*patpo=='[') { for(po=patpo+1;(*po!='\0') && (*po!=']');po++); if (*po=='\0') { if (*patpo==*spo) { patpo++; spo++; } else return 0; } else { patpo++; while (patpo!=po) { if ((*(patpo+1)=='-') && (*(patpo+2)!=']')) { if ((*patpo<=*spo) && (*spo<=*(patpo+2))) { patpo=po+1; spo++; break; } else patpo+=3; } else { if (*patpo==*spo) { patpo=po+1; spo++; break; } else patpo++; } } } } else if (*patpo==*spo) { patpo++; spo++; } else return 0; } } int wildmatch(const char *pat, const char *s,int flags) { if ((s==NULL) || (pat==NULL)) return 0; if (flags & WILD_PERIOD) { /* "." and ".." should not match "*" */ if (s[0]=='.') { if (pat[0]=='.') return wildmatch2(pat+1,s+1,flags); else return 0; } else return wildmatch2(pat,s,flags); } else return wildmatch2(pat,s,flags); } char * getitok(char **s, int *len, const char *ifs) { char *po,*spo; int i; if (*s == NULL) return NULL; po = *s; for (i = 0; (po[i]!='\0') && (strchr(ifs, po[i]) != NULL); i++); if (po[i]=='\0') { *len=0; return NULL; } spo=po+i; for (;(po[i]!='\0') && (strchr(ifs,po[i])==NULL);i++); *s+=i; *len=*s-spo; return spo; } char * getitok2(char **s, int *len, const char *ifs) { char *po,*s2; if ((s2 = getitok(s, len, ifs))==NULL) return NULL; if ((po=g_malloc(*len+1))==NULL) { *len=-1; return NULL; } strncpy(po,s2,*len); po[*len]='\0'; return po; } static char * get_printf_format_str(const char *str, int *len) { int n; char *fmt; *len = 0; n = 0; if (str[n] != '%') { return NULL; } n++; while (strchr("#0- +", str[n])) { n++; } for (; isdigit(str[n]); n++); if (str[n] == '.') { n++; for (; isdigit(str[n]); n++); } if (str[n] == 'l') { n++; } if (str[n] == 'l') { n++; } if (strchr("diouxXeEfFgGcs", str[n]) == NULL) { return NULL; } *len = n; n++; fmt = g_strdup(str); if (fmt == NULL) { return NULL; } fmt[n] = '\0'; return fmt; } int add_printf_formated_str(GString *str, const char *format, const char *arg, int *len) { int i, formated; char *format2, *buf, *endptr; int vi; long long int vll; double vd; formated = FALSE; format2 = get_printf_format_str(format, &i); if (len) { *len = i; } if (format2 == NULL) { return formated; } buf = NULL; switch (format[i]) { case 'd': case 'i': case 'o': case 'u': case 'x': case 'X': if (i > 2 && strncmp(format2 + i - 2, "ll", 2) == 0) { vll = 0; if (arg) { vll = strtod(arg, &endptr); } buf = g_strdup_printf(format2, vll); }else { vi = 0; if (arg) { vi = strtod(arg, &endptr); } buf = g_strdup_printf(format2, vi); } formated = TRUE; break; case 'e': case 'E': case 'f': case 'F': case 'g': case 'G': if (i > 2 && strncmp(format2 + i - 2, "ll", 2) == 0) { break; } vd = 0.0; if (arg) { vd = strtod(arg,&endptr); } buf = g_strdup_printf(format2, vd); formated = TRUE; break; case 's': if (i > 1 && format2[i - 1] == 'l') { break; } if (arg) { buf = g_strdup_printf(format2, arg); } formated = TRUE; break; case 'c': if (i > 1 && format2[i - 1] == 'l') { break; } if (arg) { buf = g_strdup_printf(format2, arg[0]); } formated = TRUE; break; } if (buf) { g_string_append(str, buf); g_free(buf); } g_free(format2); return formated; } #ifdef COMPILE_UNUSED_FUNCTIONS char * getitok3(char **s,int *len,char *ifs) { char *po,*spo; int i,quote; if (*s==NULL) return NULL; quote=FALSE; po=*s; for (i=0;(po[i]!='\0') && (po[i]!='"') && (strchr(ifs,po[i])!=NULL);i++); if (po[i]=='\0') { *len=0; return NULL; } if (po[i]=='"') { quote=TRUE; i++; } spo=po+i; if (quote) { for (;(po[i]!='\0') && (po[i]!='"');i++); *s+=i; *len=*s-spo; if (po[i]=='"') (*s)++; } else { for (;(po[i]!='\0') && (strchr(ifs,po[i])==NULL);i++); *s+=i; *len=*s-spo; } return spo; } char * getitok4(char **s,int *len,char *ifs) { char *po,*s2; if ((s2=getitok3(s,len,ifs))==NULL) return NULL; if ((po=g_malloc(*len+1))==NULL) { *len=-1; return NULL; } strncpy(po,s2,*len); po[*len]='\0'; return po; } #endif /* COMPILE_UNUSED_FUNCTIONS */ ngraph-gtk-6.06.13/src/gtk/0000755000175000017500000000000012241600064012301 500000000000000ngraph-gtk-6.06.13/src/gtk/ogra2cairofile.h0000644000175000017500000000063612241111703015264 00000000000000#ifndef _O_GRA2CAIROFILE_HEADER #define _O_GRA2CAIROFILE_HEADER #include #include #include #include enum surface_type_id { TYPE_PS2, TYPE_PS3, TYPE_EPS2, TYPE_EPS3, TYPE_PDF, TYPE_SVG1_1, TYPE_SVG1_2, TYPE_PNG, #ifdef CAIRO_HAS_WIN32_SURFACE TYPE_EMF, TYPE_CLIPBOARD, #endif /* CAIRO_HAS_WIN32_SURFACE */ }; #endif ngraph-gtk-6.06.13/src/gtk/x11file.h0000644000175000017500000000351412241111704013644 00000000000000/* * $Id: x11file.h,v 1.4 2009-07-26 13:01:40 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ struct evaltype { int id; int line; double x, y; }; void FileWinUpdate(struct obj_list_data *data, int clear); void CmFileHistory(GtkRecentChooser *w, gpointer client_data); void CmFileNew(GtkAction *w, gpointer client_data); void CmFileOpen(GtkAction *w, gpointer client_data); void CmFileClose(GtkAction *w, gpointer client_data); void CmFileUpdate(GtkAction *w, gpointer client_data); void CmFileEdit(GtkAction *w, gpointer client_data); void CmFileMath(GtkAction *w, gpointer client_data); void CmFileSaveData(GtkAction *w, gpointer client_data); void CmFileWindow(GtkToggleAction *action, gpointer client_data); void FileWindowUnmap(GtkWidget *w, gpointer client_data); void CmOptionFileDef(GtkAction *w, gpointer client_data); int update_file_obj_multi(struct objlist *obj, struct narray *farray, int newfile); void copy_file_obj_field(struct objlist *obj, int id, int sel, int copy_filename); void button_set_mark_image(GtkWidget *w, int type); ngraph-gtk-6.06.13/src/gtk/gtk_liststore.h0000644000175000017500000001406012241111703015265 00000000000000/* * $Id: gtk_liststore.h,v 1.11 2009-08-19 06:44:16 hito Exp $ */ #ifndef _GTK_LISTSTORE_HEADER #define _GTK_LISTSTORE_HEADER #include "object.h" enum TOGGLE_TYPE { TOGGLE_NONE, TOGGLE_CHECK, TOGGLE_RADIO, }; enum OBJECT_COLUMN_TYPE { OBJECT_COLUMN_TYPE_TOGGLE, OBJECT_COLUMN_TYPE_STRING, OBJECT_COLUMN_TYPE_PIXBUF, OBJECT_COLUMN_TYPE_INT, OBJECT_COLUMN_TYPE_ENUM, OBJECT_COLUMN_TYPE_TOGGLE_VISIBLE, OBJECT_COLUMN_TYPE_TOGGLE_IS_RADIO, OBJECT_COLUMN_TYPE_PIXBUF_VISIBLE, OBJECT_COLUMN_TYPE_NUM, }; typedef struct _list_store { char *title; GType type; gboolean visible, editable; char *name; int min, max, inc, page; PangoEllipsizeMode ellipsize; gulong edited_id; } n_list_store; void init_object_combo_box(GtkWidget *cbox); void add_separator_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent); void add_line_style_item_to_cbox(GtkTreeStore *list, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id); void add_bool_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id, const char *title); void add_mark_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id); void add_enum_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id); void add_font_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id); void add_text_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, int enum_id, const char *title, enum TOGGLE_TYPE type, int active); void add_font_style_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id_bold, int column_id_italic, struct objlist *obj, const char *field, int id); GtkWidget *list_store_create(int n, n_list_store *list); void list_store_set_val(GtkWidget *w, GtkTreeIter *iter, int col, GType type, void *ptr); void list_store_set_sort_all(GtkWidget *tview); void list_store_set_sort_column(GtkWidget *tview, int col); void list_store_set_align(GtkWidget *tview, int col, double align); int list_store_get_int(GtkWidget *w, GtkTreeIter *iter, int col); void list_store_set_int(GtkWidget *w, GtkTreeIter *iter, int col, int v); int list_store_path_get_int(GtkWidget *w, GtkTreePath *path, int col, int *val); void list_store_set_double(GtkWidget *w, GtkTreeIter *iter, int col, double v); void tree_store_set_double(GtkWidget *w, GtkTreeIter *iter, int col, double v); char *list_store_get_string(GtkWidget *w, GtkTreeIter *iter, int col); void list_store_set_string(GtkWidget *w, GtkTreeIter *iter, int col, const char *v); gboolean list_store_get_boolean(GtkWidget *w, GtkTreeIter *iter, int col); void list_store_set_boolean(GtkWidget *w, GtkTreeIter *iter, int col, int v); void list_store_path_set_string(GtkWidget *w, GtkTreePath *path, int col, const char *v); char *list_store_path_get_string(GtkWidget *w, GtkTreePath *path, int col); gboolean list_store_get_iter_first(GtkWidget *w, GtkTreeIter *iter); gboolean list_store_iter_next(GtkWidget *w, GtkTreeIter *iter); void list_store_append(GtkWidget *w, GtkTreeIter *iter); void list_store_clear(GtkWidget *w); gboolean list_store_get_selected_iter(GtkWidget *w, GtkTreeIter *iter); int list_store_get_selected_int(GtkWidget *w, int col); void list_store_select_int(GtkWidget *w, int col, int id); char *list_store_get_selected_string(GtkWidget *w, int col); int list_store_get_num(GtkWidget *w); void list_store_set_selection_mode(GtkWidget *w, GtkSelectionMode mode); void list_store_select_nth(GtkWidget *w, int n); void list_store_select_iter(GtkWidget *w, GtkTreeIter *iter); void list_store_multi_select_nth(GtkWidget *w, int n, int m); gboolean list_store_get_selected_nth(GtkWidget *w, int *n); int list_store_get_selected_index(GtkWidget *w); void list_store_set_pixbuf(GtkWidget *w, GtkTreeIter *iter, int col, GdkPixbuf *v); GdkPixbuf *list_store_get_pixbuf(GtkWidget *w, GtkTreeIter *iter, int col); void list_store_select_all(GtkWidget *w); GtkWidget *tree_store_create(int n, n_list_store *list); void tree_store_append(GtkWidget *w, GtkTreeIter *iter, GtkTreeIter *parent); void tree_store_prepend(GtkWidget *w, GtkTreeIter *iter, GtkTreeIter *parent); gboolean tree_store_get_iter_children(GtkWidget *w, GtkTreeIter *child, GtkTreeIter *iter); gboolean tree_store_get_selected_nth(GtkWidget *w, int *n, int *m); void tree_store_select_nth(GtkWidget *w, int n, int m); void tree_store_clear(GtkWidget *w); int tree_store_get_child_num(GtkWidget *w, GtkTreeIter *iter); void tree_store_set_int(GtkWidget *w, GtkTreeIter *iter, int col, int v); void tree_store_set_string(GtkWidget *w, GtkTreeIter *iter, int col, const char *v); void tree_store_set_boolean(GtkWidget *w, GtkTreeIter *iter, int col, int v); void tree_store_set_val(GtkWidget *w, GtkTreeIter *iter, int col, GType type, void *ptr); void list_store_select_all_cb(GtkButton *w, gpointer client_data); void list_store_remove_selected_cb(GtkWidget *w, gpointer client_data); void free_tree_path_cb(gpointer data, gpointer user_data); void tree_store_selected_toggle_expand(GtkWidget *w); int tree_view_get_selected_row_int_from_path(GtkWidget *view, gchar *path, GtkTreeIter *iter, int col); #define tree_store_get_int list_store_get_int #define tree_store_get_boolean list_store_get_boolean #define tree_store_get_string list_store_get_string #define tree_store_get_iter_first list_store_get_iter_first #define tree_store_iter_next list_store_iter_next #define tree_store_get_selected_iter list_store_get_selected_iter #define tree_store_set_selection_mode list_store_set_selection_mode #define tree_store_path_get_string list_store_path_get_string #define tree_store_set_sort_all list_store_set_sort_all #define tree_store_set_sort_column list_store_set_sort_column #define tree_store_select_all_cb list_store_select_all_cb #define tree_store_set_align list_store_set_align #endif ngraph-gtk-6.06.13/src/gtk/x11bitmp.h0000644000175000017500000000676112241111703014046 00000000000000/* * $Id: x11bitmp.h,v 1.5 2009-01-07 02:39:34 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "ioutil.h" #include "dir_defs.h" extern const gchar *Icon_xpm[]; extern const gchar *Icon_xpm_64[]; extern const gchar *Axiswin_xpm[]; extern const gchar *Coordwin_xpm[]; extern const gchar *Filewin_xpm[]; extern const gchar *Infowin_xpm[]; extern const gchar *Legendwin_xpm[]; extern const gchar *Mergewin_xpm[]; extern const gchar *Axiswin48_xpm[]; extern const gchar *Coordwin48_xpm[]; extern const gchar *Filewin48_xpm[]; extern const gchar *Infowin48_xpm[]; extern const gchar *Legendwin48_xpm[]; extern const gchar *Mergewin48_xpm[]; #ifdef WINDOWS #define ICON_FILE(file) (DIRSEP_STR #file) #else #define ICON_FILE(file) (PIXMAPDIR DIRSEP_STR #file) #endif #define NGRAPH_ALIGN_B_ICON_FILE ICON_FILE(ngraph_align_b.png) #define NGRAPH_ALIGN_HC_ICON_FILE ICON_FILE(ngraph_align_hc.png) #define NGRAPH_ALIGN_L_ICON_FILE ICON_FILE(ngraph_align_l.png) #define NGRAPH_ALIGN_R_ICON_FILE ICON_FILE(ngraph_align_r.png) #define NGRAPH_ALIGN_T_ICON_FILE ICON_FILE(ngraph_align_t.png) #define NGRAPH_ALIGN_VC_ICON_FILE ICON_FILE(ngraph_align_vc.png) #define NGRAPH_ARC_ICON_FILE ICON_FILE(ngraph_arc.png) #define NGRAPH_AXISPOINT_ICON_FILE ICON_FILE(ngraph_axispoint.png) #define NGRAPH_AXISWIN_ICON_FILE ICON_FILE(ngraph_axiswin.png) #define NGRAPH_COORDWIN_ICON_FILE ICON_FILE(ngraph_coordwin.png) #define NGRAPH_CROSS_ICON_FILE ICON_FILE(ngraph_cross.png) #define NGRAPH_DATAPOINT_ICON_FILE ICON_FILE(ngraph_datapoint.png) #define NGRAPH_DRAW_ICON_FILE ICON_FILE(ngraph_draw.png) #define NGRAPH_EVAL_ICON_FILE ICON_FILE(ngraph_eval.png) #define NGRAPH_FILEWIN_ICON_FILE ICON_FILE(ngraph_filewin.png) #define NGRAPH_FRAME_ICON_FILE ICON_FILE(ngraph_frame.png) #define NGRAPH_GAUSS_ICON_FILE ICON_FILE(ngraph_gauss.png) #define NGRAPH_INFOWIN_ICON_FILE ICON_FILE(ngraph_infowin.png) #define NGRAPH_LEGENDPOINT_ICON_FILE ICON_FILE(ngraph_legendpoint.png) #define NGRAPH_LEGENDWIN_ICON_FILE ICON_FILE(ngraph_legendwin.png) #define NGRAPH_LINE_ICON_FILE ICON_FILE(ngraph_line.png) #define NGRAPH_MARK_ICON_FILE ICON_FILE(ngraph_mark.png) #define NGRAPH_MATH_ICON_FILE ICON_FILE(ngraph_math.png) #define NGRAPH_MERGEWIN_ICON_FILE ICON_FILE(ngraph_mergewin.png) #define NGRAPH_POINT_ICON_FILE ICON_FILE(ngraph_point.png) #define NGRAPH_RECT_ICON_FILE ICON_FILE(ngraph_rect.png) #define NGRAPH_SCALE_ICON_FILE ICON_FILE(ngraph_scale.png) #define NGRAPH_SECTION_ICON_FILE ICON_FILE(ngraph_section.png) #define NGRAPH_SINGLE_ICON_FILE ICON_FILE(ngraph_single.png) #define NGRAPH_TEXT_ICON_FILE ICON_FILE(ngraph_text.png) #define NGRAPH_TRIMMING_ICON_FILE ICON_FILE(ngraph_trimming.png) #define NGRAPH_ZOOM_ICON_FILE ICON_FILE(ngraph_zoom.png) ngraph-gtk-6.06.13/src/gtk/ogra2gdk.c0000644000175000017500000000555012241111703014067 00000000000000/* * $Id: ogra2gdk.c,v 1.5 2009-11-16 09:13:05 hito Exp $ */ #include "gtk_common.h" #include #include #include #include #include #include #include #include #include #include "mathfn.h" #include "object.h" #include "ioutil.h" #include "x11gui.h" #include "ogra2cairo.h" #define NAME "gra2gdk" #define PARENT "gra2cairo" #define OVERSION "1.00.00" #ifndef M_PI #define M_PI 3.141592 #endif static int g2g_init(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local; int dpi; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; dpi = DPI_MAX; if (_putobj(obj, "dpi", inst, &dpi) < 0) goto Err; if (_putobj(obj, "dpix", inst, &dpi) < 0) goto Err; if (_putobj(obj, "dpiy", inst, &dpi) < 0) goto Err; _getobj(obj, "_local", inst, &local); local->pixel_dot_x = local->pixel_dot_y = dpi / (DPI_MAX * 1.0); return 0; Err: local = gra2cairo_free(obj, inst); g_free(local); return 1; } static int g2g_done(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; return 0; } #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_t * gra2gdk_create_pixmap(struct gra2cairo_local *local, int w, int h, double r, double g, double b) { cairo_t *cairo; cairo_surface_t *pix; pix = cairo_image_surface_create(CAIRO_FORMAT_RGB24, w, h); cairo = cairo_create(pix); if (cairo_status(cairo) != CAIRO_STATUS_SUCCESS) { cairo_destroy(cairo); cairo_surface_destroy(pix); return NULL; } cairo_set_source_rgb(cairo, r, g, b); cairo_paint(cairo); if (local->cairo) { cairo_destroy(local->cairo); } local->cairo = cairo; return pix; } #else GdkPixmap * gra2gdk_create_pixmap(struct gra2cairo_local *local, GdkDrawable *drawable, int w, int h, double r, double g, double b) { cairo_t *cairo; GdkPixmap *pix; if (drawable == NULL) { return NULL; } pix = gdk_pixmap_new(drawable, w, h, -1); cairo = gdk_cairo_create(pix); if (cairo_status(cairo) != CAIRO_STATUS_SUCCESS) { cairo_destroy(cairo); g_object_unref(pix); return NULL; } cairo_set_source_rgb(cairo, r, g, b); cairo_paint(cairo); if (local->cairo) { cairo_destroy(local->cairo); } local->cairo = cairo; return pix; } #endif static struct objtable gra2gdk[] = { {"init", NVFUNC, NEXEC, g2g_init, NULL, 0}, {"done", NVFUNC, NEXEC, g2g_done, NULL, 0}, {"next", NPOINTER, 0, NULL, NULL, 0}, }; #define TBLNUM (sizeof(gra2gdk) / sizeof(*gra2gdk)) void * addgra2gdk() /* addgra2gdk() returns NULL on error */ { return addobject(NAME, NULL, PARENT, OVERSION, TBLNUM, gra2gdk, Gra2CairoErrMsgNum, Gra2CairoErrMsgs, NULL, NULL); } ngraph-gtk-6.06.13/src/gtk/main.c0000644000175000017500000010105012241111703013303 00000000000000/* * $Id: main.c,v 1.47 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #ifdef HAVE_SYS_WAIT_H #include #endif /* HAVE_SYS_WAIT_H */ #include #include #include #include #include #include #include #include #ifdef WINDOWS #ifdef LOCALEDIR #undef LOCALEDIR #endif /* LOCALEDIR */ char *DOCDIR, *NDATADIR, *ADDINDIR, *LIBDIR, *PLUGINDIR, *CONFDIR, *LOCALEDIR, *PIXMAPDIR; #endif /* WINDOWS */ #include "dir_defs.h" #include "object.h" #include "ioutil.h" #include "nstring.h" #include "nconfig.h" #include "shell.h" #ifdef HAVE_READLINE_READLINE_H #include #include #include "ox11menu.h" #include "x11menu.h" #include "ogra2x11.h" #include "ogra2cairo.h" #include static char **attempt_shell_completion(char *text, int start, int end); #define HIST_SIZE 100 #define HIST_FILE "shell_history" #endif /* HAVE_READLINE_READLINE_H */ #define SYSCONF "[Ngraph]" #define INIT_SCRIPT "Ngraph.nsc" static char *systemname, *locale; static int consolefdout, consolefdin, ConsoleAc = FALSE; static int consolecol = 80, consolerow = 25; void *addobjectroot(void); void *addint(void); void *adddouble(void); void *addio(void); void *addstring(void); void *addregexp(void); void *addiarray(void); void *adddarray(void); void *addsarray(void); void *addsystem(void); void *addshell(void); void *adddraw(void); void *addfile(void); void *addmath(void); void *addfit(void); void *addgra(void); void *addgra2(void); void *addgra2null(void); void *addgra2file(void); void *addgra2prn(void); void *addgra2cairo(void); void *addgra2cairofile(void); void *addgra2gtkprint(void); void *addgra2gdk(void); void *addmerge(void); void *addlegend(void); void *addrectangle(void); void *addarc(void); void *addmark(void); void *addtext(void); void *addaxis(void); void *addagrid(void); void *addprm(void); void *addpath(void); void *addplugin(void); void *addgra2gtk(void); void *addmenu(void); void *adddialog(void); #ifdef WINDOWS void *addgra2emf(void); #endif /* WINDOWS */ void resizeconsole(int col, int row); // XtAppContext Application=NULL; char *AppName = "Ngraph", *AppClass = "Ngraph", *Home; #if ! GTK_CHECK_VERSION(3, 0, 0) char *License = "\ 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.\n\ \n\ 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.\n\ \n\ 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\ "; #endif char *Auther[] = { "Satoshi ISHIZAKA", "Ito Hiroyuki", NULL }; char *Translator = "Satoshi ISHIZAKA\n" \ "Ito Hiroyuki" \ ; char *Documenter[] = { "Satoshi ISHIZAKA", "Ito Hiroyuki", NULL }; static int OpenDisplay = FALSE; static void * ( * obj_add_func_ary[]) (void) = { addshell, addgra, addgra2, addgra2null, addgra2file, addgra2prn, addgra2cairo, addgra2cairofile, addgra2gtkprint, addgra2gtk, addgra2gdk, addio, addint, adddouble, addstring, addregexp, addiarray, adddarray, addsarray, addmath, addfit, addprm, adddraw, addagrid, addaxis, addfile, addmerge, addlegend, addrectangle, addarc, addpath, addmark, addtext, addmenu, adddialog, addplugin, #ifdef WINDOWS addgra2emf, #endif }; int OpenApplication(void) { return OpenDisplay; } int putconsole(const char *s) { int len; len = strlen(s); if (write(consolefdout, s, len) < 0) return 0; if (write(consolefdout, "\n", 1) < 0) return 0; return len + 1; } int printfconsole(char *fmt, ...) { int len; char buf[1024]; va_list ap; va_start(ap, fmt); len = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); if (write(consolefdout, buf, len) < 0) return 0; return len; } static int inputynconsole(const char *mes) { int len, r; char buf[10], yn[] = " [yn] "; len = strlen(mes); if (write(consolefdout, mes, len)) return FALSE; if (write(consolefdout, yn, sizeof(yn) - 1)) return FALSE; do { r = read(consolefdin, buf, 1); } while (strchr("yYnN", buf[0]) == NULL && r >= 0); if (r < 0) return FALSE; do { r = read(consolefdin, buf, 1); } while(buf[0] != '\n' && r >= 0); if ((buf[0] == 'y') || (buf[0] == 'Y')) return TRUE; return FALSE; } static void displaydialogconsole(const char *str) { putconsole(str); } static void displaystatusconsole(const char *str) { } void resizeconsole(int col, int row) { } static char *terminal = NULL; #ifdef WINDOWS static HWND ConsoleHandle = NULL; static int check_console(int allocconsole) { DWORD console_pid; pid_t pid; if (allocconsole) { return TRUE; } ConsoleHandle = GetConsoleWindow(); if (ConsoleHandle == NULL) { return TRUE; } GetWindowThreadProcessId(ConsoleHandle, &console_pid); pid = getpid(); return (pid != console_pid); } int nallocconsole(void) { if (ConsoleAc) { return TRUE; } if (ConsoleHandle) { ShowWindow(ConsoleHandle, SW_RESTORE); return TRUE; } return FALSE; } void nfreeconsole(void) { if (ConsoleAc) { return; } if (ConsoleHandle) { ShowWindow(ConsoleHandle, SW_HIDE); } } void hide_console(void) { HMENU menu; if (ConsoleHandle == NULL || ConsoleAc) { return; } menu = GetSystemMenu(ConsoleHandle, FALSE); RemoveMenu(menu, SC_CLOSE, MF_BYCOMMAND); nfreeconsole(); } void resotre_console(void) { if (ConsoleHandle == NULL || ConsoleAc) { return; } GetSystemMenu(ConsoleHandle, TRUE); nallocconsole(); } #else /* WINDOWS */ static pid_t consolepid = -1; static struct savedstdio consolesave; static int consolefd[3]; static int interruptconsole(void) { return FALSE; } static void reset_fifo(char *fifo_in, char *fifo_out) { int fdi, fdo; fdi = nopen(fifo_in, O_WRONLY, 0); fdo = nopen(fifo_out, O_RDONLY, 0); if (fdi >= 0) nclose(fdi); if (fdo >= 0) nclose(fdo); } void hide_console(void) { /* do nothing */ } void resotre_console(void) { /* do nothing */ } static int exec_console(char *fifo_in, char *fifo_out) { char **argv; pid_t pid; pid = fork(); if (pid == -1) { g_unlink(fifo_in); g_unlink(fifo_out); return 1; } else if (pid == 0) { pid = fork(); if (pid == 0) { char buf[256], *s2, *s; int len; snprintf(buf, sizeof(buf), "%s %s %s", terminal, fifo_in, fifo_out); argv = NULL; s = buf; while ((s2 = getitok2(&s, &len, " \t")) != NULL) { arg_add(&argv, s2); } execvp(argv[0], argv); } else if (pid != -1) { int status; waitpid(pid, &status, 0); } reset_fifo(fifo_in, fifo_out); exit(0); } return 0; } int nallocconsole(void) { int fd[3] = {-1, -1, -1}, fdi, fdo; unsigned int i; char buf[256], ttyname[256], fifo_in[1024], fifo_out[1024]; struct objlist *sys; char *sysname; char *version; if (ConsoleAc) return FALSE; if (terminal == NULL) return FALSE; snprintf(fifo_in, sizeof(fifo_in) - 1, "/tmp/nterm1_%d", getpid()); snprintf(fifo_out, sizeof(fifo_out) - 1, "/tmp/nterm2_%d", getpid()); if (mkfifo(fifo_in, 0600)) { return FALSE; } if (mkfifo(fifo_out, 0600)) { g_unlink(fifo_in); return FALSE; } if (exec_console(fifo_in, fifo_out)) return FALSE; fdi = nopen(fifo_in, O_RDONLY, 0); fdo = nopen(fifo_out, O_WRONLY, 0); g_unlink(fifo_in); g_unlink(fifo_out); sys = chkobject("system"); getobj(sys, "name", 0, 0, NULL, &sysname); getobj(sys, "version", 0, 0, NULL, &version); snprintf(buf, sizeof(buf), "%c]2;Ngraph shell%c%s version %s. Script interpreter.\n", 0x1b, 0x07, sysname, version); if (write(fdo, buf, strlen(buf) + 1) < 0) { nclose(fdi); nclose(fdo); return FALSE; } nclose(fdo); for (i = 0; i < sizeof(ttyname) - 1; i++) { if (read(fdi, ttyname + i, 1) != 1) break; if (ttyname[i] == '\0') break; } ttyname[i] = '\0'; if (i == 0) { nclose(fdi); return FALSE; } for (i = 0; i < sizeof(buf) - 1; i++) { if (read(fdi, buf + i, 1) != 1) break; if (buf[0] == '\0') break; } nclose(fdi); if (i == 0) return FALSE; buf[i] = '\0'; fd[0] = nopen(ttyname, O_RDONLY, 0); if (fd[0] < 0) { goto ErrEnd; } fd[1] = nopen(ttyname, O_WRONLY, 0); if (fd[1] < 0) { goto ErrEnd; } fd[2] = nopen(ttyname, O_WRONLY, 0); if (fd[2] < 0) { goto ErrEnd; } consolepid = atoi(buf); consolefd[0] = dup(0); nclose(0); dup2(fd[0], 0); consolefd[1] = dup(1); nclose(1); dup2(fd[1], 1); consolefd[2] = dup(2); nclose(2); dup2(fd[2], 2); nclose(fd[0]); nclose(fd[1]); nclose(fd[2]); consolefdin = dup(0); consolefdout = dup(2); ConsoleAc = TRUE; savestdio(&consolesave); putstderr = putconsole; printfstderr = printfconsole; ninterrupt = interruptconsole; inputyn = inputynconsole; ndisplaydialog = displaydialogconsole; ndisplaystatus = displaystatusconsole; return TRUE; ErrEnd: if (fd[0] < 0) { nclose(fd[0]); } if (fd[1] < 0) { nclose(fd[1]); } if (fd[2] < 0) { nclose(fd[2]); } return FALSE; } void nfreeconsole(void) { if (ConsoleAc) { nclose(0); if (consolefd[0] != -1) { dup2(consolefd[0], 0); nclose(consolefd[0]); } nclose(1); if (consolefd[1] != -1) { dup2(consolefd[1], 1); nclose(consolefd[1]); } nclose(2); if (consolefd[2] != -1) { dup2(consolefd[2], 2); nclose(consolefd[2]); } kill(consolepid, SIGTERM); consolepid = -1; nclose(consolefdin); nclose(consolefdout); consolefdin = 0; consolefdout = 2; ConsoleAc = FALSE; loadstdio(&consolesave); } } #endif /* WINDOWS */ void nforegroundconsole() { } static void #ifdef HAVE_READLINE_READLINE_H load_config(struct objlist *sys, N_VALUE *inst, int *allocconsole, int *history_size) #else load_config(struct objlist *sys, N_VALUE *inst, int *allocconsole) #endif { FILE *fp; char *tok, *str, *f1, *endptr, *s2; int len; long val; if ((fp = openconfig(SYSCONF)) != NULL) { while ((tok = getconfig(fp, &str)) != NULL) { s2 = str; if (strcmp(tok, "login_shell") == 0) { f1 = getitok2(&s2, &len, " \t,"); if (_putobj(sys, "login_shell", inst, f1)) exit(1); } else if (strcmp(tok, "create_object") == 0) { while ((f1 = getitok2(&s2, &len, " \t,")) != NULL) { struct objlist *obj; obj = getobject(f1); if (obj) { newobj(obj); } g_free(f1); } } else if (strcmp(tok, "alloc_console") == 0) { f1 = getitok2(&s2, &len, " \t,"); val = strtol(f1, &endptr, 10); if (endptr[0] == '\0') { if (val == 0) *allocconsole = FALSE; else *allocconsole = TRUE; } g_free(f1); } else if (strcmp(tok, "console_size") == 0) { f1 = getitok2(&s2, &len, " \x09,"); val = strtol(f1, &endptr, 10); if (endptr[0] == '\0') consolecol = val; g_free(f1); f1 = getitok2(&s2, &len, " \x09,"); val = strtol(f1, &endptr, 10); if (endptr[0] == '\0') consolerow = val; g_free(f1); #ifdef HAVE_READLINE_READLINE_H } else if (strcmp(tok, "history_size") == 0) { f1 = getitok2(&s2, &len, " \t,"); val = strtol(f1, &endptr, 10); if (endptr[0] == '\0' && val > 0) { *history_size = val; } g_free(f1); #endif } else if (strcmp(tok, "terminal") == 0) { terminal = getitok2(&s2, &len, ""); } else { fprintf(stderr, "(%s): configuration '%s' in section %s is not used.\n", AppName, tok, SYSCONF); } g_free(tok); g_free(str); } closeconfig(fp); } } #ifdef WINDOWS static int set_dir_defs(char *app) { char *utf8_name, *app_path, *tmp; utf8_name = g_locale_to_utf8(app, -1, NULL, NULL, NULL); if (utf8_name == NULL) { return 1; } changefilename(utf8_name); tmp = g_path_get_dirname(utf8_name); g_free(utf8_name); if (tmp == NULL) { return 1; } app_path = g_path_get_dirname(tmp); g_free(tmp); if (app_path == NULL) { return 1; } DOCDIR = g_strdup_printf("%s%c%s", app_path, DIRSEP, "doc"); LIBDIR = g_strdup_printf("%s%c%s", app_path, DIRSEP, "bin"); PLUGINDIR = g_strdup_printf("%s%c%s", app_path, DIRSEP, "lib/plugins"); NDATADIR = g_strdup_printf("%s%c%s", app_path, DIRSEP, "share"); ADDINDIR = g_strdup_printf("%s%c%s", app_path, DIRSEP, "share/addin"); CONFDIR = g_strdup_printf("%s%c%s", app_path, DIRSEP, "etc"); LOCALEDIR = g_strdup_printf("%s%c%s", app_path, DIRSEP, "share/locale"); PIXMAPDIR = g_strdup_printf("%s%c%s", app_path, DIRSEP, "share/pixmaps"); g_free(app_path); return (DOCDIR && LIBDIR && CONFDIR); } #endif /* WINDOWS */ #if 0 static void set_path_env(char *homedir) { const char *path; char *pathset; path = g_getenv("PATH"); pathset = g_strdup_printf("%s%s%s%s%s%s%s%s%s", homedir, PATHSEP, ADDINDIR, PATHSEP, LIBDIR, PATHSEP, ".", PATHSEP, CHK_STR(path)); #ifdef WINDOWS path_to_win(pathset); #endif /* WINDOWS */ g_setenv("PATH", pathset, TRUE); g_setenv("NGRAPHLIB", LIBDIR, TRUE); g_setenv("NGRAPHCONF", CONFDIR, TRUE); g_free(pathset); } #endif const char * n_getlocale(void) { return locale; } int main(int argc, char **argv) { char *homedir, *datadir, *docdir, *libdir, *plugindir, *confdir, *inifile, *loginshell; const char *home; N_VALUE *inst; struct objlist *sys, *obj, *lobj; unsigned int j; int i, r; char *sarg[2]; struct narray sarray; int id; int allocnow, allocconsole = FALSE; struct narray iarray; char *arg; #ifdef HAVE_READLINE_READLINE_H int history_size = HIST_SIZE; char *history_file = NULL; #endif #if USE_MEM_PROFILE g_mem_set_vtable(glib_mem_profiler_table); #endif #if ! GLIB_CHECK_VERSION(2, 32, 0) g_thread_init(NULL); #endif #if EOF == -1 char_type_buf_init(); #endif #ifndef WINDOWS set_childhandler(); #endif /* WINDOWS */ #if ! GTK_CHECK_VERSION(2, 24, 0) gtk_set_locale(); #endif OpenDisplay = gtk_init_check(&argc, &argv); g_set_application_name(AppName); #ifdef WINDOWS set_dir_defs(argv[0]); #endif /* WINDOWS */ if (init_cmd_tbl()) { exit(1); } ignorestdio(NULL); inputyn = vinputyn; ninterrupt = vinterrupt; printfstderr = seprintf; putstderr = seputs; consolefdin = 0; consolefdout = 2; #ifdef HAVE_GETTEXT setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); bind_textdomain_codeset(PACKAGE, "UTF-8"); textdomain(PACKAGE); #endif /* HAVE_GETTEXT */ #if WINDOWS locale = g_win32_getlocale(); #else /* WINDOWS */ locale = setlocale(LC_ALL, NULL); locale = g_strdup(CHK_STR(locale)); #endif /* WINDOWS */ libdir = g_strdup(LIBDIR); if (libdir == NULL) exit(1); plugindir = g_strdup(PLUGINDIR); if (plugindir == NULL) exit(1); docdir = g_strdup(DOCDIR); if (docdir == NULL) exit(1); datadir = g_strdup(NDATADIR); if (datadir == NULL) exit(1); confdir = g_strdup(CONFDIR); if (confdir == NULL) { exit(1); } if ((home = g_getenv("HOME")) != NULL) { homedir = g_strdup_printf("%s/%s", home, HOME_DIR); if (homedir == NULL) { exit(1); } changefilename(homedir); } else { if ((home = g_get_user_config_dir()) != NULL) { homedir = g_strdup_printf("%s/%s", home, HOME_DIR); if (homedir == NULL) { exit(1); } changefilename(homedir); } else { homedir = g_strdup(confdir); if (homedir == NULL) { exit(1); } } } /* set_path_env(homedir); */ /* it may not necessary to call the function because all environments will be set in the function ngraphenvironment() */ set_environ(); if (addobjectroot() == NULL) exit(1); if (addsystem() == NULL) exit(1); sys = getobject("system"); if (sys == NULL) exit(1); if (newobj(sys) < 0) exit(1); inst = chkobjinst(sys, 0); if (inst == NULL) exit(1); if (_putobj(sys, "conf_dir", inst, confdir)) exit(1); if (_putobj(sys, "data_dir", inst, datadir)) exit(1); if (_putobj(sys, "doc_dir", inst, docdir)) exit(1); if (_putobj(sys, "lib_dir", inst, libdir)) exit(1); if (_putobj(sys, "plugin_dir", inst, plugindir)) exit(1); if (_putobj(sys, "home_dir", inst, homedir)) exit(1); if (_getobj(sys, "conf_dir", inst, &confdir) == -1) exit(1); if (_getobj(sys, "data_dir", inst, &datadir) == -1) exit(1); if (_getobj(sys, "doc_dir", inst, &docdir) == -1) exit(1); if (_getobj(sys, "lib_dir", inst, &libdir) == -1) exit(1); if (_getobj(sys, "plugin_dir", inst, &plugindir) == -1) exit(1); if (_getobj(sys, "home_dir", inst, &homedir) == -1) exit(1); if (_getobj(sys, "name", inst, &systemname) == -1) exit(1); for (j = 0; j < sizeof(obj_add_func_ary) / sizeof(*obj_add_func_ary); j++) { if (obj_add_func_ary[j]() == NULL) exit(1); } loginshell = NULL; #ifdef HAVE_READLINE_READLINE_H load_config(sys, inst, &allocconsole, &history_size); rl_readline_name = "ngraph"; rl_completer_word_break_characters = " \t\n\"'@><;|&({}`"; rl_attempted_completion_function = (CPPFunction *) attempt_shell_completion; rl_completion_entry_function = NULL; history_file = g_strdup_printf("%s/%s", homedir, HIST_FILE); if (history_file) { read_history(history_file); } using_history(); stifle_history(history_size); #else load_config(sys, inst, &allocconsole); #endif putstderr = putconsole; printfstderr = printfconsole; inputyn = inputynconsole; ndisplaydialog = displaydialogconsole; ndisplaystatus = displaystatusconsole; if (allocconsole) { nallocconsole(); } #ifdef WINDOWS ConsoleAc = check_console(allocconsole); if (isatty(0) && isatty(1) && isatty(2)) { if (! allocconsole) { consolefdin = dup(0); consolefdout = dup(2); } } #else if (isatty(0) && isatty(1) && isatty(2)) { ConsoleAc = TRUE; if (! allocconsole) { consolefdin = dup(0); consolefdout = dup(2); } } else { ConsoleAc = FALSE; } #endif inifile = NULL; obj = getobject("shell"); if (obj == NULL) { exit(1); } id = newobj(obj); if (id < 0) { exit(1); } i = 1; if (argc > 1 && strcmp(argv[1], "-i") == 0) { i++; if (argc > 2) { inifile = g_strdup(argv[2]); if (inifile == NULL) { exit(1); } changefilename(inifile); i++; } else { inifile = NULL; } } else { if (findfilename(homedir, CONFTOP, INIT_SCRIPT)) { inifile = getfilename(homedir, CONFTOP, INIT_SCRIPT); } else if (findfilename(confdir, CONFTOP, INIT_SCRIPT)) { inifile = getfilename(confdir, CONFTOP, INIT_SCRIPT); } } if (inifile) { arrayinit(&sarray, sizeof(char *)); if (arrayadd(&sarray, &inifile) == NULL) exit(1); for (; i < argc; i++) if (arrayadd(&sarray, &(argv[i])) == NULL) exit(1); sarg[0] = (char *) &sarray; sarg[1] = NULL; r = exeobj(obj, "shell", id, 1, sarg); arraydel(&sarray); g_free(inifile); if (r) { exit(1); } } if (getobj(sys, "login_shell", 0, 0, NULL, &loginshell)) { exit(1); } do { if (_putobj(sys, "login_shell", inst, NULL)) exit(1); if (loginshell == NULL) { allocnow = nallocconsole(); exeobj(obj, "shell", id, 0, NULL); if (allocnow) nfreeconsole(); } else { arrayinit(&iarray, sizeof(int)); arg = loginshell; if (getobjilist2(&arg, &lobj, &iarray, TRUE)) { return -1; } arraydel(&iarray); if (lobj == obj) { allocnow = nallocconsole(); } else { allocnow = FALSE; } sexeobj(loginshell); if (allocnow) { nfreeconsole(); } } g_free(loginshell); if (getobj(sys, "login_shell", 0, 0, NULL, &loginshell)) { exit(1); } } while (loginshell != NULL); #ifdef HAVE_READLINE_READLINE_H if (history_file != NULL) { write_history(history_file); g_free(history_file); } #endif #ifndef WINDOWS if (ConsoleAc && (consolepid != -1)) { nfreeconsole(); } #endif g_free(terminal); delobj(getobject("system"), 0); return 0; } #ifdef HAVE_READLINE_READLINE_H struct mylist { struct mylist *next; int len; char str[1]; }; static char **obj_name_matching(const char *text); static char *obj_member_completion_function(const char *text, int state); static char *obj_name_completion_function(const char *text, int state); static char *my_completion_function(const char *text, int state, char **func(const char *)); static char *command_word_completion_function(const char *hint_text, int state); static char **cmd_name_matching(const char *text); static char **get_obj_member_list(struct objlist *objcur, char *member); static char **get_obj_enum_list(struct objlist *objcur, char *member, char *val); static char **get_obj_bool_list(struct objlist *objcur, char *member, char *val); static char **get_obj_font_list(struct objlist *objcur, char *member, char *val); static int get_obj_num(void); static struct mylist *mylist_add(struct mylist *parent, const char *text); static struct mylist *mylist_cat(struct mylist *list_top, struct mylist *list); static void mylist_free(struct mylist *list); static int mylist_num(const struct mylist *list); static struct mylist *get_file_list(const char *path, int type, int mode); static struct mylist *get_exec_file_list(void); static int my_sprintf(char **str, char *format, ...); static char ** attempt_shell_completion(char *text, int start, int end) { char **matches = NULL; int in_command_position, ti; char *command_separator_chars = ";|(`"; ti = start - 1; while ((ti > -1) && (whitespace(rl_line_buffer[ti]))) ti--; in_command_position = 0; if (ti < 0) { in_command_position++; } else if (strchr(command_separator_chars, rl_line_buffer[ti])) { in_command_position++; } if (!matches && in_command_position) matches = rl_completion_matches(text, command_word_completion_function); if (!matches) matches = rl_completion_matches(text, obj_name_completion_function); if (!matches) matches = rl_completion_matches(text, obj_member_completion_function); return matches; } static char * obj_member_completion_function(const char *text, int state) { static char **list = (char **) NULL; static int list_index = 0, first_char_loc; struct objlist *objcur; /* If we don't have any state, make some. */ if (!state) { static char *obj, *instances, *member, *val; if (list) g_free(list); list = (char **) NULL; first_char_loc = 0; obj = g_strdup(text); if (obj == NULL) return NULL; if ((instances = strchr(obj, ':')) && (member = strchr(instances + 1, ':'))) { *instances = *member = '\0'; instances++; member++; } else { g_free(obj); return NULL; } objcur = getobject(obj); if (objcur == NULL) { g_free(obj); return NULL; } if ((val = strchr(member, '=')) != NULL) { *val = '\0'; val++; first_char_loc = val - obj; list = get_obj_enum_list(objcur, member, val); if (list == NULL) list = get_obj_bool_list(objcur, member, val); if (list == NULL) list = get_obj_font_list(objcur, member, val); } else { first_char_loc = member - obj; list = get_obj_member_list(objcur, member); } list_index = 0; g_free(obj); } if (list && list[list_index]) { char *t, *tt; t = g_strdup_printf("%.*s%s", first_char_loc, text, list[list_index]); tt = strdup(t); g_free(t); list_index++; return tt; } return NULL; } static char ** get_obj_member_list(struct objlist *objcur, char *member) { char **list = (char **) NULL, *field; int i, j, len, n; n = chkobjfieldnum(objcur); list = g_malloc(sizeof(*list) * (n + 1)); if (list == NULL) { return NULL; } len = strlen(member); j = 0; for (i = 0; i < n; i++) { field = chkobjfieldname(objcur, i); if (field == NULL) { continue; } if (strncmp(field, member, len) == 0) { list[j++] = field; } } list[j] = NULL; return list; } static char ** get_obj_enum_list(struct objlist *objcur, char *member, char *val) { char **list = (char **) NULL, **enumlist; int i, j, len; if (chkobjfieldtype(objcur, member) != NENUM) return NULL; enumlist = (char **) chkobjarglist(objcur, member); for (i = 0; enumlist[i] != NULL; i++); list = g_malloc((sizeof(*list)) * (i + 1)); if (list == NULL) return NULL; len = strlen(val); j = 0; for (i = 0; enumlist[i] && enumlist[i][0]; i++) { if (strncmp(enumlist[i], val, len) == 0) { list[j++] = enumlist[i]; } } list[j] = NULL; return list; } static char ** get_obj_bool_list(struct objlist *objcur, char *member, char *val) { char **list = (char **) NULL; static char *boollist[] = { "true", "false", NULL }; int i, j, len; if (chkobjfieldtype(objcur, member) != NBOOL) return NULL; list = g_malloc(sizeof(boollist)); if (list == NULL) return NULL; len = strlen(val); j = 0; for (i = 0; boollist[i] != NULL; i++) { if (strncmp(boollist[i], val, len) == 0) { list[j++] = boollist[i]; } } list[j] = NULL; return list; } static char ** get_obj_font_list(struct objlist *objcur, char *member, char *val) { char **list = (char **) NULL; struct fontmap *fontmap, *fontmaproot; int j, len; if (Gra2cairoConf == NULL) return NULL; fontmaproot = Gra2cairoConf->fontmap_list_root; if (fontmaproot == NULL) return NULL; if (chkobjfieldtype(objcur, member) != NSTR) return NULL; if (strstr(member, "font") == NULL) return NULL; list = g_malloc((sizeof(*list)) * (Gra2cairoConf->font_num + 1)); if (list == NULL) return NULL; len = strlen(val); j = 0; for (fontmap = fontmaproot; fontmap != NULL; fontmap = fontmap->next) { if (strncmp(fontmap->fontalias, val, len) == 0) { list[j++] = fontmap->fontalias; } } list[j] = NULL; return list; } static char * command_word_completion_function(const char *text, int state) { return my_completion_function(text, state, cmd_name_matching); } static char * obj_name_completion_function(const char *text, int state) { return my_completion_function(text, state, obj_name_matching); } static char * my_completion_function(const char *text, int state, char **func(const char *)) { static char **list = (char **) NULL; static int list_index = 0; static int first_char_loc; /* If we don't have any state, make some. */ if (!state) { if (list) g_free(list); list = (char **) NULL; first_char_loc = 0; list = func(&text[first_char_loc]); list_index = 0; } if (list && list[list_index]) { char *t = strdup(list[list_index]); if (t == NULL) return NULL; list_index++; return t; } return NULL; } static int get_obj_num(void) { static int num = 0; if (num == 0) { struct objlist *objcur; for (objcur = chkobjroot(); objcur != NULL; objcur = objcur->next) num++; } return num; } static char ** obj_name_matching(const char *text) { int j, text_len; struct objlist *objcur; char **list; list = g_malloc((get_obj_num() + 1) * sizeof(*list)); if (list == NULL) return NULL; text_len = strlen(text); j = 0; for (objcur = chkobjroot(); objcur != NULL; objcur = objcur->next) { if (strncmp(objcur->name, text, text_len) == 0) list[j++] = objcur->name; } if (j == 0) { g_free(list); list = NULL; } else { list[j] = NULL; } assert(j < get_obj_num() + 1); return list; } static char ** cmd_name_matching(const char *text) { int i, j, text_len, file_len; struct objlist *objcur; char **list; struct mylist *file_list = NULL, *file_list_cur = NULL; file_list = get_exec_file_list(); file_len = mylist_num(file_list); list = g_malloc((CMDNUM + CPCMDNUM + get_obj_num() + file_len + 1) * sizeof(*list)); if (list == NULL) return NULL; text_len = strlen(text); j = 0; for (file_list_cur = file_list; file_list_cur != NULL; file_list_cur = file_list_cur->next) { if (strncmp(file_list_cur->str, text, text_len) == 0) { list[j++] = file_list_cur->str; } } for (i = 0; i < CMDNUM; i++) { if (strncmp(cmdtable[i].name, text, text_len) == 0) { list[j++] = cmdtable[i].name; } } for (i = 0; i < CPCMDNUM; i++) { if (strncmp(cpcmdtable[i], text, text_len) == 0) { list[j++] = cpcmdtable[i]; } } for (objcur = chkobjroot(); objcur != NULL; objcur = objcur->next) { if (strncmp(objcur->name, text, text_len) == 0) list[j++] = objcur->name; } if (j == 0) { g_free(list); list = NULL; } else { list[j] = NULL; } assert(j < CMDNUM + CPCMDNUM + get_obj_num() + file_len + 1); return list; } struct mylist * get_exec_file_list(void) { char *path, *next_ptr, *path_ptr; const char *path_env; static struct mylist *list = NULL, *list_next = NULL; if (list != NULL) { return list; /* mylist_free(list); list = NULL; */ } if ((path_env = g_getenv("PATH")) == NULL) return NULL; if ((path = path_ptr = g_strdup(path_env)) == NULL) return NULL; while ((next_ptr = strchr(path_ptr, ':')) != NULL) { *next_ptr = '\0'; next_ptr++; list_next = get_file_list(path_ptr, S_IFREG, S_IXUSR); list = mylist_cat(list, list_next); path_ptr = next_ptr; } g_free(path); return list; } static struct mylist * get_file_list(const char *path, int type, int mode) { GDir *dir; const char *ent; GStatBuf statbuf; struct mylist *list = NULL, *list_next = list; char *full_path_name; if ((dir = g_dir_open(path, 0, NULL)) == NULL) { return NULL; } while ((ent = g_dir_read_name(dir)) != NULL) { if (my_sprintf(&full_path_name, "%s/%s", path, ent) < 0) { if (list != NULL) mylist_free(list); list = NULL; break; } nstat(full_path_name, &statbuf); if ((statbuf.st_mode & type) && (statbuf.st_mode & mode)) { list_next = mylist_add(list_next, ent); if (list == NULL) list = list_next; } } g_dir_close(dir); return list; } #define BUF_UNIT 256 static int my_sprintf(char **str, char *format, ...) { va_list arg; static int buf_size = BUF_UNIT; static char *buf = NULL; int len; if (buf == NULL && (buf = g_malloc(buf_size)) == NULL) { return -1; } va_start(arg, format); len = vsnprintf(buf, buf_size, format, arg) + 1; va_end(arg); if (len > buf_size) { char *tmp; int size; size = (len / BUF_UNIT + 1) * BUF_UNIT; tmp = g_realloc(buf, size); if (tmp == NULL) { return -1; } buf = tmp; buf_size = size; va_start(arg, format); len = vsnprintf(buf, buf_size, format, arg) + 1; va_end(arg); } *str = buf; return len; } static struct mylist * mylist_add(struct mylist *parent, const char *text) { struct mylist *list; int len; len = strlen(text) + 1; if ((list = g_malloc(sizeof(struct mylist) + len)) == NULL) return NULL; memcpy(list->str, text, len); list->next = NULL; list->len = len; if (parent != NULL) parent->next = list; return list; } static void mylist_free(struct mylist *list) { struct mylist *tmp; while (list != NULL) { tmp = list->next; g_free(list); list = tmp; } } static int mylist_num(const struct mylist *list) { int num = 0; while (list != NULL) { num++; list = list->next; } return num; } static struct mylist * mylist_cat(struct mylist *list_top, struct mylist *list) { struct mylist *list_ptr; if (list_top == NULL) return list; list_ptr = list_top; while (list_ptr->next != NULL) list_ptr = list_ptr->next; list_ptr->next = list; return list_top; } #endif ngraph-gtk-6.06.13/src/gtk/x11opt.h0000644000175000017500000000245212241111703013526 00000000000000/* * $Id: x11opt.h,v 1.1.1.1 2008-05-29 09:37:33 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ void CmOptionViewer(GtkAction *w, gpointer client_data); void CmOptionExtViewer(GtkAction *w, gpointer client_data); void CmOptionPrefFont(GtkAction *w, gpointer client_data); void CmOptionScript(GtkAction *w, gpointer client_datavoid); void CmOptionMisc(GtkAction *w, gpointer client_data); void CmOptionSaveDefault(GtkAction *w, gpointer client_data); void CmOptionSaveNgp(GtkAction *w, gpointer client_data); ngraph-gtk-6.06.13/src/gtk/ogra2cairo.h0000644000175000017500000000431112241111703014416 00000000000000#ifndef _O_GRA2CAIRO_HEADER #define _O_GRA2CAIRO_HEADER #include "object.h" #include "nhash.h" extern struct gra2cairo_config *Gra2cairoConf; extern char *gra2cairo_antialias_type[], **Gra2CairoErrMsgs; extern int Gra2CairoErrMsgNum; enum antialias_type_id { ANTIALIAS_TYPE_NONE, ANTIALIAS_TYPE_DEFAULT, ANTIALIAS_TYPE_GRAY, ANTIALIAS_TYPE_SUBPIXEL, }; struct fontmap { char *fontalias, *fontname, *alternative; PangoFontDescription *font; struct fontmap *next; }; struct compatible_font_info { char *old_name; int style; int symbol; char *name; }; struct gra2cairo_config { NHASH fontmap; struct fontmap *fontmap_list_root; int font_num; }; struct gra2cairo_local { cairo_t *cairo; PangoLayout *layout; int linetonum, text2path, antialias, use_opacity; struct fontmap *loadfont; char *fontalias; int font_style, symbol; double pixel_dot_x, pixel_dot_y, offsetx, offsety, fontdir, fontcos, fontsin, fontspace, fontsize; #if GTK_CHECK_VERSION(3, 0, 0) cairo_region_t *region; #else GdkRegion *region; #endif }; #if GTK_CHECK_VERSION(3, 0, 0) int gra2cairo_clip_region(struct gra2cairo_local *local, cairo_region_t *region); #else int gra2cairo_clip_region(struct gra2cairo_local *local, GdkRegion *region); #endif int gra2cairo_strwidth(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); int gra2cairo_charheight(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); void gra2cairo_set_antialias(struct gra2cairo_local *local, int antialias); struct gra2cairo_local *gra2cairo_free(struct objlist *obj, N_VALUE *inst); void gra2cairo_update_fontmap(const char *fontalias, const char *fontname); struct fontmap *gra2cairo_get_fontmap(const char *font_alias); void gra2cairo_remove_fontmap(const char *fontalias); void gra2cairo_add_fontmap(const char *fontalias, const char *fontname); int gra2cairo_get_fontmap_num(void); void gra2cairo_save_config(void); void gra2cairo_draw_path(struct gra2cairo_local *local); struct compatible_font_info *gra2cairo_get_compatible_font_info(const char *name); void gra2cairo_set_alternative_font(const char *fontalias, const char *fontname); char *gra2cairo_get_utf8_str(const char *cstr, int symbol); #endif ngraph-gtk-6.06.13/src/gtk/ogra2gdk.h0000644000175000017500000000064012241111703014067 00000000000000/* * $Id: ogra2gdk.h,v 1.2 2008-09-11 07:07:22 hito Exp $ */ #ifndef _O_GRA2GDK_HEADER #define _O_GRA2GDK_HEADER #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_t *gra2gdk_create_pixmap(struct gra2cairo_local *local, int w, int h, double r, double g, double b); #else GdkPixmap *gra2gdk_create_pixmap(struct gra2cairo_local *local, GdkDrawable *drawable, int w, int h, double r, double g, double b); #endif #endif ngraph-gtk-6.06.13/src/gtk/x11graph.c0000644000175000017500000010371212241111703014021 00000000000000/* * $Id: x11graph.c,v 1.57 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include "dir_defs.h" #include "object.h" #include "ioutil.h" #include "shell.h" #include "nstring.h" #include "odraw.h" #include "main.h" #include "x11dialg.h" #include "ox11menu.h" #include "x11menu.h" #include "x11gui.h" #include "x11graph.h" #include "x11view.h" #include "x11axis.h" #include "x11print.h" #include "x11commn.h" #include "x11info.h" #include "gtk_liststore.h" #include "gtk_combo.h" #include "gtk_widget.h" #define PAPER_SIZE_MIN 1000 char *LoadPathStr[] = { N_("unchange"), N_("full"), N_("base"), NULL, }; struct pagelisttype { char *paper, *name; enum paper_id id; int langscape, width, height; }; static struct pagelisttype pagelist[] = { {N_("Custom"), "custom", PAPER_ID_CUSTOM, TRUE, 0, 0}, {"A3 P (297.00x420.00)", GTK_PAPER_NAME_A3, PAPER_ID_A3, FALSE, 29700, 42000}, {"A4 P (210.00x297.00)", GTK_PAPER_NAME_A4, PAPER_ID_A4, FALSE, 21000, 29700}, {"A4 L (297.00x210.00)", GTK_PAPER_NAME_A4, PAPER_ID_A4, TRUE, 29700, 21000}, {"A5 P (148.00x210.00)", GTK_PAPER_NAME_A5, PAPER_ID_A5, FALSE, 14800, 21000}, {"A5 L (210.00x148.00)", GTK_PAPER_NAME_A5, PAPER_ID_A5, TRUE, 21000, 14800}, {"B4 P (257.00x364.00)", "iso_b4", PAPER_ID_B4, FALSE, 25700, 36400}, {"B5 P (182.00x257.00)", GTK_PAPER_NAME_B5, PAPER_ID_B5, FALSE, 18200, 25700}, {"B5 L (257.00x182.00)", GTK_PAPER_NAME_B5, PAPER_ID_B5, TRUE, 25700, 18200}, {N_("Letter P (215.90x279.40)"), GTK_PAPER_NAME_LETTER, PAPER_ID_LETTER, FALSE, 21590, 27940}, {N_("Letter L (279.40x215.90)"), GTK_PAPER_NAME_LETTER, PAPER_ID_LETTER, TRUE, 27940, 21590}, {N_("Legal P (215.90x355.60)"), GTK_PAPER_NAME_LEGAL, PAPER_ID_LEGAL, FALSE, 21590, 35560}, {N_("Legal L (355.60x215.90)"), GTK_PAPER_NAME_LEGAL, PAPER_ID_LEGAL, TRUE, 35560, 21590}, }; #define PAGELISTNUM (sizeof(pagelist) / sizeof(*pagelist)) #define DEFAULT_PAPER_SIZE 0 int set_paper_type(int w, int h) { unsigned int j; if (w < 1 || h < 1) return 0; Menulocal.PaperWidth = w; Menulocal.PaperHeight = h; for (j = 0; j < PAGELISTNUM; j++) { if (w == pagelist[j].width && h == pagelist[j].height) { break; } } if (j == PAGELISTNUM) { j = DEFAULT_PAPER_SIZE; } Menulocal.PaperName = pagelist[j].name; Menulocal.PaperId = pagelist[j].id; Menulocal.PaperLandscape = pagelist[j].langscape; return j; } static void PageDialogSetupItem(GtkWidget *w, struct PageDialog *d) { int j; spin_entry_set_val(d->leftmargin, Menulocal.LeftMargin); spin_entry_set_val(d->topmargin, Menulocal.TopMargin); spin_entry_set_val(d->paperwidth, Menulocal.PaperWidth); spin_entry_set_val(d->paperheight, Menulocal.PaperHeight); spin_entry_set_val(d->paperzoom, Menulocal.PaperZoom); j = set_paper_type(Menulocal.PaperWidth, Menulocal.PaperHeight); combo_box_set_active(d->paper, j); } static void PageDialogPage(GtkWidget *w, gpointer client_data) { struct PageDialog *d; int a; d = (struct PageDialog *) client_data; a = combo_box_get_active(d->paper); if (a < 0) return; set_widget_sensitivity_with_label(d->paperwidth, a == 0); set_widget_sensitivity_with_label(d->paperheight, a == 0); if (a > 0) { spin_entry_set_val(d->paperwidth, pagelist[a].width); spin_entry_set_val(d->paperheight, pagelist[a].height); } } static void PageDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *table; unsigned int j; struct PageDialog *d; int i; d = (struct PageDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, FALSE, TRUE); spin_entry_set_range(w, PAPER_SIZE_MIN, G_MAXUSHORT); add_widget_to_table(table, w, _("paper _Width:"), FALSE, i++); d->paperwidth = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, FALSE, TRUE); spin_entry_set_range(w, PAPER_SIZE_MIN, G_MAXUSHORT); add_widget_to_table(table, w, _("paper _Height:"), FALSE, i++); d->paperheight = w; w = combo_box_create(); add_widget_to_table(table, w, _("_Paper:"), FALSE, i++); d->paper = w; g_signal_connect(w, "changed", G_CALLBACK(PageDialogPage), d); for (j = 0; j < PAGELISTNUM; j++) { combo_box_append_text(d->paper, _(pagelist[j].paper)); } w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, FALSE, TRUE); add_widget_to_table(table, w, _("_Left margin:"), FALSE, i++); d->leftmargin = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, FALSE, TRUE); add_widget_to_table(table, w, _("_Top margin:"), FALSE, i++); d->topmargin = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_PERCENT, FALSE, TRUE); add_widget_to_table(table, w, _("paper _Zoom:"), FALSE, i++); d->paperzoom = w; gtk_box_pack_start(GTK_BOX(d->vbox), table, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } PageDialogSetupItem(wi, d); } static void PageDialogClose(GtkWidget *wi, void *data) { struct PageDialog *d; int w, h; d = (struct PageDialog *) data; if (d->ret != IDOK) return; w = spin_entry_get_val(d->paperwidth); h = spin_entry_get_val(d->paperheight); if (w < PAPER_SIZE_MIN || h < PAPER_SIZE_MIN) { d->ret = IDLOOP; return; } set_paper_type(w, h); Menulocal.LeftMargin = spin_entry_get_val(d->leftmargin); Menulocal.TopMargin = spin_entry_get_val(d->topmargin); Menulocal.PaperZoom = spin_entry_get_val(d->paperzoom); } void PageDialog(struct PageDialog *data) { data->SetupWindow = PageDialogSetup; data->CloseWindow = PageDialogClose; } static void set_objlist_btn_state(struct SwitchDialog *d, gboolean b) { gtk_widget_set_sensitive(d->add, b); gtk_widget_set_sensitive(d->ins, b); } static void set_drawlist_btn_state(struct SwitchDialog *d, gboolean b) { gtk_widget_set_sensitive(d->top, b); gtk_widget_set_sensitive(d->bottom, b); gtk_widget_set_sensitive(d->up, b); gtk_widget_set_sensitive(d->down, b); gtk_widget_set_sensitive(d->del, b); } static void SwitchDialogSetupItem(GtkWidget *w, struct SwitchDialog *d) { int j, num; char **buf; GtkTreeIter iter; d->btn_lock = TRUE; list_store_clear(d->drawlist); num = arraynum(&(d->idrawrable)); for (j = 0; j < num; j++) { buf = (char **) arraynget(&(d->drawrable), arraynget_int(&(d->idrawrable), j)); list_store_append(d->drawlist, &iter); list_store_set_string(d->drawlist, &iter, 0, _(*buf)); } d->btn_lock = FALSE; } static void SwitchDialogAdd(GtkWidget *w, gpointer client_data) { struct SwitchDialog *d; GtkTreeSelection *selected; GList *list, *ptr; int duplicate, num, *data, i; d = (struct SwitchDialog *) client_data; selected = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->objlist)); list = gtk_tree_selection_get_selected_rows(selected, NULL); data = arraydata(&(d->idrawrable)); num = arraynum(&(d->idrawrable)); for (ptr = list; ptr; ptr = ptr->next) { int *ary, a; duplicate = FALSE; ary = gtk_tree_path_get_indices((GtkTreePath *)(ptr->data)); a = ary[0]; for (i = 0; i < num; i++) { if (data[i] == a) { duplicate = TRUE; break; } } if ( !duplicate) { arrayadd(&(d->idrawrable), &a); } } if (list) { g_list_foreach(list, free_tree_path_cb, NULL); g_list_free(list); } SwitchDialogSetupItem(d->widget, d); set_drawlist_btn_state(d, FALSE); } static void SwitchDialogInsert(GtkWidget *w, gpointer client_data) { struct SwitchDialog *d; int i, a, pos, num2; int *data; GtkTreeSelection *selected; GList *list, *last; d = (struct SwitchDialog *) client_data; selected = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->drawlist)); list = gtk_tree_selection_get_selected_rows(selected, NULL); pos = 0; if (list) { last = g_list_last(list); if (last) { int *ptr; ptr = gtk_tree_path_get_indices((GtkTreePath *)(last->data)); pos = ptr[0]; } g_list_foreach(list, free_tree_path_cb, NULL); g_list_free(list); } data = arraydata(&(d->idrawrable)); num2 = arraynum(&(d->idrawrable)); selected = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->objlist)); list = gtk_tree_selection_get_selected_rows(selected, NULL); for (last = list; last; last = last->next) { int *ptr; ptr = gtk_tree_path_get_indices((GtkTreePath *)(last->data)); a = ptr[0]; for (i = 0; i < num2; i++) { if (data[i] == a) { break; } } if (i == num2) { arrayins(&(d->idrawrable), &a, pos); } } if (list) { g_list_foreach(list, free_tree_path_cb, NULL); g_list_free(list); } SwitchDialogSetupItem(d->widget, d); set_drawlist_btn_state(d, FALSE); } static void switch_dialog_top_cb(gpointer data, gpointer user_data) { GtkTreePath *path; int *ary, i, k; struct SwitchDialog *d; path = (GtkTreePath *) data; d = (struct SwitchDialog *) user_data; ary = gtk_tree_path_get_indices(path); if (! ary) return; i = ary[0]; k = arraynget_int(&(d->idrawrable), i); arrayndel(&(d->idrawrable), i); arrayins(&(d->idrawrable), &k, 0); } static void switch_dialog_last_cb(gpointer data, gpointer user_data) { GtkTreePath *path; int *ary, i, k; struct SwitchDialog *d; path = (GtkTreePath *) data; d = (struct SwitchDialog *) user_data; ary = gtk_tree_path_get_indices(path); if (! ary) return; i = ary[0]; k = arraynget_int(&(d->idrawrable), i); arrayndel(&(d->idrawrable), i); arrayadd(&(d->idrawrable), &k); } static void SwitchDialogUp(GtkWidget *w, gpointer client_data) { GtkTreeSelection *selected; GList *list, *ptr; struct SwitchDialog *d; int i, k, modified, *ary; GtkTreePath *path; d = (struct SwitchDialog *) client_data; selected = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->drawlist)); list = gtk_tree_selection_get_selected_rows(selected, NULL); if (list == NULL) { return; } modified = FALSE; for (ptr = list; ptr; ptr = g_list_next(ptr)) { path = (GtkTreePath *) ptr->data; ary = gtk_tree_path_get_indices(path); if (ary == NULL) { break; } i = ary[0]; if (i <= 0) { break; } k = arraynget_int(&(d->idrawrable), i); arrayndel(&(d->idrawrable), i); i--; arrayins(&(d->idrawrable), &k, i); modified = TRUE; } if (modified) { SwitchDialogSetupItem(d->widget, d); for (ptr = list; ptr; ptr = g_list_next(ptr)) { path = (GtkTreePath *) ptr->data; ary = gtk_tree_path_get_indices(path); if (ary == NULL) break; list_store_select_nth(d->drawlist, ary[0] - 1); } } g_list_foreach(list, free_tree_path_cb, NULL); g_list_free(list); } static void SwitchDialogDown(GtkWidget *w, gpointer client_data) { GtkTreeSelection *selected; GList *list, *ptr; struct SwitchDialog *d; int i, k, num, modified, *ary; GtkTreePath *path; d = (struct SwitchDialog *) client_data; selected = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->drawlist)); list = gtk_tree_selection_get_selected_rows(selected, NULL); if (list == NULL) { return; } num = list_store_get_num(d->drawlist); modified = FALSE; for (ptr = g_list_last(list); ptr; ptr = g_list_previous(ptr)) { path = (GtkTreePath *) ptr->data; ary = gtk_tree_path_get_indices(path); if (ary == NULL) break; i = ary[0]; if (i >= num - 1) { break; } k = arraynget_int(&(d->idrawrable), i); arrayndel(&(d->idrawrable), i); i++; arrayins(&(d->idrawrable), &k, i); modified = TRUE; } if (modified) { SwitchDialogSetupItem(d->widget, d); for (ptr = g_list_last(list); ptr; ptr = g_list_previous(ptr)) { path = (GtkTreePath *) ptr->data; ary = gtk_tree_path_get_indices(path); if (ary == NULL) break; list_store_select_nth(d->drawlist, ary[0] + 1); } } g_list_foreach(list, free_tree_path_cb, NULL); g_list_free(list); } static void SwitchDialogTop(GtkWidget *w, gpointer client_data) { GtkTreeSelection *selected; GList *list; struct SwitchDialog *d; int i, num = 0; d = (struct SwitchDialog *) client_data; selected = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->drawlist)); list = gtk_tree_selection_get_selected_rows(selected, NULL); if (list) { num = g_list_length(list); g_list_foreach(list, switch_dialog_top_cb, d); g_list_foreach(list, free_tree_path_cb, NULL); g_list_free(list); } SwitchDialogSetupItem(d->widget, d); for (i = 0; i < num; i++) { list_store_select_nth(d->drawlist, i); } } static void SwitchDialogLast(GtkWidget *w, gpointer client_data) { struct SwitchDialog *d; GtkTreeSelection *selected; GList *list; int n, i, num = 0; d = (struct SwitchDialog *) client_data; selected = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->drawlist)); list = gtk_tree_selection_get_selected_rows(selected, NULL); if (list) { num = g_list_length(list); list = g_list_reverse(list); g_list_foreach(list, switch_dialog_last_cb, d); g_list_foreach(list, free_tree_path_cb, NULL); g_list_free (list); } SwitchDialogSetupItem(d->widget, d); n = list_store_get_num(d->drawlist); for (i = 0; i < num; i++) { list_store_select_nth(d->drawlist, n - i - 1); } } static void switch_dialog_remove_cb(gpointer data, gpointer user_data) { GtkTreePath *path; int *ary; struct SwitchDialog *d; path = (GtkTreePath *) data; d = (struct SwitchDialog *) user_data; ary = gtk_tree_path_get_indices(path); if (! ary) return; arrayndel(&(d->idrawrable), ary[0]); } static void SwitchDialogRemove(GtkWidget *w, gpointer client_data) { struct SwitchDialog *d; GtkTreeSelection *selected; GList *list; d = (struct SwitchDialog *) client_data; selected = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->drawlist)); list = gtk_tree_selection_get_selected_rows(selected, NULL); if (list) { list = g_list_reverse(list); g_list_foreach(list, switch_dialog_remove_cb, d); g_list_foreach(list, free_tree_path_cb, NULL); g_list_free (list); } SwitchDialogSetupItem(d->widget, d); set_drawlist_btn_state(d, FALSE); } static gboolean drawlist_sel_cb(GtkTreeSelection *sel, gpointer user_data) { int n; struct SwitchDialog *d; d = (struct SwitchDialog *) user_data; if (! d->btn_lock) { n = gtk_tree_selection_count_selected_rows(sel); set_drawlist_btn_state(d, n); } return FALSE; } static gboolean objlist_sel_cb(GtkTreeSelection *sel, gpointer user_data) { int n; struct SwitchDialog *d; d = (struct SwitchDialog *) user_data; if (! d->btn_lock) { n = gtk_tree_selection_count_selected_rows(sel); set_objlist_btn_state(d, n); } return FALSE; } static void SwitchDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *vbox, *vbox2, *label, *frame; GtkTreeIter iter; struct SwitchDialog *d; int num2, num1, j, k, *obj_check; char **buf; GtkTreeSelection *sel; static n_list_store list[] = { {N_("Object"), G_TYPE_STRING, TRUE, FALSE, NULL}, }; d = (struct SwitchDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); vbox = gtk_vbox_new(FALSE, 4); #endif label = gtk_label_new_with_mnemonic(_("_Draw order")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 4); w = list_store_create(sizeof(list) / sizeof(*list), list); list_store_set_selection_mode(w, GTK_SELECTION_MULTIPLE); d->drawlist = w; gtk_label_set_mnemonic_widget(GTK_LABEL(label), w); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); g_signal_connect(sel, "changed", G_CALLBACK(drawlist_sel_cb), d); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), w); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_button_new_from_stock(GTK_STOCK_ADD); g_signal_connect(w, "clicked", G_CALLBACK(SwitchDialogAdd), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); d->add = w; w = gtk_button_new_with_mnemonic(_("_Insert")); g_signal_connect(w, "clicked", G_CALLBACK(SwitchDialogInsert), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); d->ins = w; #if GTK_CHECK_VERSION(3, 2, 0) w = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); #else w = gtk_hseparator_new(); #endif gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_button_new_from_stock(GTK_STOCK_GOTO_TOP); g_signal_connect(w, "clicked", G_CALLBACK(SwitchDialogTop), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); d->top =w; w = gtk_button_new_from_stock(GTK_STOCK_GO_UP); g_signal_connect(w, "clicked", G_CALLBACK(SwitchDialogUp), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); d->up = w; w = gtk_button_new_from_stock(GTK_STOCK_GO_DOWN); g_signal_connect(w, "clicked", G_CALLBACK(SwitchDialogDown), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); d->down = w; w = gtk_button_new_from_stock(GTK_STOCK_GOTO_BOTTOM); g_signal_connect(w, "clicked", G_CALLBACK(SwitchDialogLast), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); d->bottom = w; w = gtk_button_new_from_stock(GTK_STOCK_REMOVE); g_signal_connect(w, "clicked", G_CALLBACK(SwitchDialogRemove), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); d->del = w; #if GTK_CHECK_VERSION(3, 0, 0) vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox2 = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_end(GTK_BOX(vbox2), vbox, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox2, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif label = gtk_label_new_with_mnemonic(_("_Objects")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 4); w = list_store_create(sizeof(list) / sizeof(*list), list); list_store_set_selection_mode(w, GTK_SELECTION_MULTIPLE); d->objlist = w; gtk_label_set_mnemonic_widget(GTK_LABEL(label), w); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); g_signal_connect(sel, "changed", G_CALLBACK(objlist_sel_cb), d); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), w); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, TRUE, TRUE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); d->btn_lock = FALSE; } menuadddrawrable(chkobject("draw"), &(d->drawrable)); list_store_clear(d->objlist); num2 = arraynum(&(d->drawrable)); for (j = 0; j < num2; j++) { buf = (char **) arraynget(&(d->drawrable), j); list_store_append(d->objlist, &iter); list_store_set_string(d->objlist, &iter, 0, _(*buf)); } num1 = arraynum(&(Menulocal.drawrable)); obj_check = g_malloc0(sizeof(*obj_check) * num2); if (obj_check == NULL) { return; } for (j = 0; j < num1; j++) { struct objlist *obj; buf = (char **) arraynget(&(Menulocal.drawrable), j); obj = chkobject(*buf); if (obj == NULL) { continue; } for (k = 0; k < num2; k++) { if (strcmp0(arraynget_str(&(d->drawrable), k), obj->name) == 0) { break; } } if (k != num2 && obj_check[k] == 0) { obj_check[k] = 1; arrayadd(&(d->idrawrable), &k); } } g_free(obj_check); SwitchDialogSetupItem(wi, d); set_objlist_btn_state(d, FALSE); set_drawlist_btn_state(d, FALSE); } static void SwitchDialogClose(GtkWidget *w, void *data) { struct SwitchDialog *d; int j, num; char **buf; d = (struct SwitchDialog *) data; if (d->ret == IDOK) { arraydel2(&(Menulocal.drawrable)); num = arraynum(&(d->idrawrable)); for (j = 0; j < num; j++) { buf = (char **) arraynget(&(d->drawrable), arraynget_int(&(d->idrawrable), j)); if ((*buf) != NULL) arrayadd2(&(Menulocal.drawrable), *buf); } } arraydel2(&(d->drawrable)); arraydel(&(d->idrawrable)); } void SwitchDialog(struct SwitchDialog *data) { data->SetupWindow = SwitchDialogSetup; data->CloseWindow = SwitchDialogClose; arrayinit(&(data->drawrable), sizeof(char *)); arrayinit(&(data->idrawrable), sizeof(int)); } static void DirectoryDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *table; struct DirectoryDialog *d; char *cwd; d = (struct DirectoryDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(2, 2, FALSE); #endif w = gtk_file_chooser_button_new(_("directory"), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); d->dir = w; add_widget_to_table(table, w, _("_Select Dir:"), TRUE, 0); w = gtk_label_new(_("Current Dir:")); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_halign(w, GTK_ALIGN_START); g_object_set(w, "margin", GINT_TO_POINTER(4), NULL); gtk_grid_attach(GTK_GRID(table), w, 0, 1, 1, 1); #else gtk_misc_set_alignment(GTK_MISC(w), 0, 0.5); gtk_table_attach(GTK_TABLE(table), w, 0, 1, 1, 2, 0, 0, 4, 4); #endif w = gtk_label_new(""); gtk_label_set_ellipsize(GTK_LABEL(w), PANGO_ELLIPSIZE_START); d->dir_label = w; #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_hexpand(w, TRUE); gtk_widget_set_halign(w, GTK_ALIGN_START); g_object_set(w, "margin", GINT_TO_POINTER(4), NULL); gtk_grid_attach(GTK_GRID(table), w, 1, 2, 1, 1); #else gtk_misc_set_alignment(GTK_MISC(w), 0, 0.5); gtk_table_attach(GTK_TABLE(table), w, 1, 2, 1, 2, GTK_FILL | GTK_EXPAND, 0, 4, 4); #endif gtk_box_pack_start(GTK_BOX(d->vbox), table, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } cwd = ngetcwd(); if (cwd) { gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(d->dir), cwd); gtk_label_set_text(GTK_LABEL(d->dir_label), cwd); g_free(cwd); } } static void DirectoryDialogClose(GtkWidget *w, void *data) { struct DirectoryDialog *d; char *s; d = (struct DirectoryDialog *) data; if (d->ret == IDCANCEL) return; s = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(d->dir)); if (s && strlen(s) > 0) { if (nchdir(s)) { ErrorMessage(); } } if (s) g_free(s); } void DirectoryDialog(struct DirectoryDialog *data) { data->SetupWindow = DirectoryDialogSetup; data->CloseWindow = DirectoryDialogClose; } static void LoadDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *vbox; struct LoadDialog *d; int j; d = (struct LoadDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_check_button_new_with_mnemonic(_("_Expand included file")); d->expand_file = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = create_text_entry(FALSE, TRUE); item_setup(vbox, w, _("_Dir:"), FALSE); d->dir = w; w = combo_box_create(); item_setup(vbox, w, _("_Path:"), FALSE); for (j = 0; LoadPathStr[j]; j++) { combo_box_append_text(w, _(LoadPathStr[j])); } d->load_path = w; gtk_box_pack_start(GTK_BOX(d->vbox), vbox, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->expand_file), d->expand); combo_box_set_active(d->load_path, d->loadpath); gtk_entry_set_text(GTK_ENTRY(d->dir), d->exdir); } static void LoadDialogClose(GtkWidget *w, void *data) { struct LoadDialog *d; const char *s; d = (struct LoadDialog *) data; if (d->ret == IDCANCEL) return; d->expand = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->expand_file)); s = gtk_entry_get_text(GTK_ENTRY(d->dir)); g_free(d->exdir); d->exdir = g_strdup(s); d->loadpath = combo_box_get_active(d->load_path); } void LoadDialog(struct LoadDialog *data) { data->SetupWindow = LoadDialogSetup; data->CloseWindow = LoadDialogClose; data->expand = Menulocal.expand; data->exdir = g_strdup(Menulocal.expanddir); data->loadpath = Menulocal.loadpath; } static void PrmDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *vbox; struct PrmDialog *d; int a; d = (struct PrmDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_check_button_new_with_mnemonic(_("_Ignore file path")); d->ignore_path = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), vbox, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } getobj(d->Obj, "ignore_path", d->Id, 0, NULL, &a); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->ignore_path), a); } static void PrmDialogClose(GtkWidget *w, void *data) { int a; struct PrmDialog *d; d = (struct PrmDialog *) data; if (d->ret == IDCANCEL) return; a = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->ignore_path)); if (putobj(d->Obj, "ignore_path", d->Id, &a) == -1) { d->ret = IDLOOP; return; } } void PrmDialog(struct PrmDialog *data, struct objlist *obj, int id) { data->SetupWindow = PrmDialogSetup; data->CloseWindow = PrmDialogClose; data->Obj = obj; data->Id = id; } static void SaveDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *vbox; int j; struct SaveDialog *d; d = (struct SaveDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = combo_box_create(); item_setup(vbox, w, _("_Path:"), FALSE); for (j = 0; pathchar[j] != NULL; j++) { combo_box_append_text(w, _(pathchar[j])); } d->path = w; w = gtk_check_button_new_with_mnemonic(_("_Include data file")); d->include_data = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_check_button_new_with_mnemonic(_("_Include merge file")); d->include_merge = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), vbox, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } combo_box_set_active(d->path, Menulocal.savepath); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->include_data), Menulocal.savewithdata); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->include_merge), Menulocal.savewithmerge); d->focus = d->include_data; } static void SaveDialogClose(GtkWidget *w, void *data) { int num; struct SaveDialog *d; d = (struct SaveDialog *) data; if (d->ret == IDCANCEL) return; num = combo_box_get_active(d->path); if (num >= 0) { d->Path = num; } *(d->SaveData) = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->include_data)); *(d->SaveMerge) = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->include_merge)); } void SaveDialog(struct SaveDialog *data, int *sdata, int *smerge) { data->SetupWindow = SaveDialogSetup; data->CloseWindow = SaveDialogClose; data->SaveData = sdata; data->SaveMerge = smerge; } void CmGraphNewMenu(GtkAction *w, gpointer client_data) { int sel; if (Menulock || Globallock) return; if (!CheckSave()) return; DeleteDrawable(); sel = GPOINTER_TO_INT(client_data); switch (sel) { case MenuIdGraphNewFrame: CmAxisNewFrame(w, client_data); break; case MenuIdGraphNewSection: CmAxisNewSection(w, client_data); break; case MenuIdGraphNewCross: CmAxisNewCross(w, client_data); break; case MenuIdGraphAllClear: default: break; } SetFileName(NULL); set_axis_undo_button_sensitivity(FALSE); reset_graph_modified(); UpdateAll(); CmViewerDraw(NULL, GINT_TO_POINTER(TRUE)); InfoWinClear(); } void CmGraphLoad(GtkAction *w, gpointer client_data) { char *ext, *file; if (Menulock || Globallock) return; if (!CheckSave()) return; if (nGetOpenFileName(TopLevel, _("Load NGP file"), "ngp", &(Menulocal.graphloaddir), NULL, &file, TRUE, Menulocal.changedirectory) == IDOK) { ext = getextention(file); if (ext && ((strcmp0(ext, "PRM") == 0) || (strcmp0(ext, "prm") == 0))) { LoadPrmFile(file); } else { LoadDialog(&DlgLoad); if (DialogExecute(TopLevel, &DlgLoad) == IDOK) { LoadNgpFile(file, DlgLoad.loadpath, DlgLoad.expand, DlgLoad.exdir, Menulocal.scriptconsole, "-f"); } g_free(DlgLoad.exdir); } g_free(file); } } void CmGraphSave(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; GraphSave(FALSE); } void CmGraphOverWrite(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; GraphSave(TRUE); } void CmGraphSwitch(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; SwitchDialog(&DlgSwitch); if (DialogExecute(TopLevel, &DlgSwitch) == IDOK) { set_graph_modified(); ChangePage(); } } void CmGraphPage(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; PageDialog(&DlgPage); if (DialogExecute(TopLevel, &DlgPage) == IDOK) { SetPageSettingsToGRA(); ChangePage(); GetPageSettingsFromGRA(); set_graph_modified(); } } void CmGraphDirectory(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; DirectoryDialog(&DlgDirectory); DialogExecute(TopLevel, &DlgDirectory); } void CmGraphShell(GtkAction *w, gpointer client_data) { struct objlist *obj, *robj, *shell; N_VALUE *inst; int idn, allocnow, n; if (Menulock || Globallock) return; menu_lock(TRUE); obj = Menulocal.obj; inst = Menulocal.inst; idn = getobjtblpos(obj, "_evloop", &robj); registerevloop(chkobjectname(obj), "_evloop", robj, idn, inst, NULL); if ((shell = chkobject("shell")) != NULL) { n = chkobjlastinst(shell); if (n < 0) { newobj(shell); } allocnow = allocate_console(); exeobj(shell, "shell", 0, 0, NULL); free_console(allocnow); } unregisterevloop(robj, idn, inst); menu_lock(FALSE); UpdateAll(); } void CmGraphQuit(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; QuitGUI(); } void CmGraphHistory(GtkRecentChooser *w, gpointer client_data) { char *uri, *fname, *path; if (Menulock || Globallock) return; uri = gtk_recent_chooser_get_current_uri(w); if (uri == NULL) { return; } fname = g_filename_from_uri(uri, NULL, NULL); g_free(uri); if (fname == NULL) { return; } if (!CheckSave()) { g_free(fname); return; } path = g_path_get_dirname(fname); if (nchdir(path)) { ErrorMessage(); g_free(path); g_free(fname); return; } g_free(path); LoadDialog(&DlgLoad); if (DialogExecute(TopLevel, &DlgLoad) == IDOK) { LoadNgpFile(fname, DlgLoad.loadpath, DlgLoad.expand, DlgLoad.exdir, Menulocal.scriptconsole, "-f"); } g_free(DlgLoad.exdir); g_free(fname); } #if ! GTK_CHECK_VERSION(2, 24, 0) static void about_link_activated_cb(GtkAboutDialog *about, const gchar *link, gpointer data) { char *cmd; cmd = g_strdup_printf("%s \"%s\"", Menulocal.browser, link); system_bg(cmd); g_free(cmd); } #endif void CmHelpAbout(GtkAction *w, gpointer client_data) { struct objlist *obj; char *web, *copyright; if (Menulock || Globallock) return; if ((obj = chkobject("system")) == NULL) return; getobj(obj, "copyright", 0, 0, NULL, ©right); getobj(obj, "web", 0, 0, NULL, &web); #if ! GTK_CHECK_VERSION(2, 24, 0) gtk_about_dialog_set_url_hook(about_link_activated_cb, NULL, NULL); #endif gtk_show_about_dialog(GTK_WINDOW(TopLevel), "program-name", PACKAGE, "copyright", copyright, "version", VERSION, "website", web, #if GTK_CHECK_VERSION(3, 0, 0) "license-type", GTK_LICENSE_GPL_2_0, #else "license", License, #endif "wrap-license", TRUE, "authors", Auther, "translator-credits", Translator, "documenters", Documenter, "comments", _("Ngraph is the program to create scientific 2-dimensional graphs for researchers and engineers."), NULL); } static char * check_help_file(void) { char *file, *ptr, *tmp; const char *locale; locale = n_getlocale(); if (locale == NULL) { goto End; } tmp = g_strdup(locale); if (tmp == NULL){ goto End; } ptr = strchr(tmp, '_'); if (ptr == NULL) { g_free(tmp); goto End; } *ptr = '\0'; file = g_strdup_printf("%s/html/%s/%s", DOCDIR, tmp, HELP_FILE); g_free(tmp); if (naccess(file, R_OK) == 0) { return file; } g_free(file); End: return g_strdup_printf("%s/html/ja/%s", DOCDIR, HELP_FILE); /* default language of the help file is Japanese. */ } void CmHelpHelp(GtkAction *w, gpointer client_data) { char *cmd, *file; if (Menulock || Globallock) return; if (Menulocal.help_browser == NULL) return; file = check_help_file(); cmd = g_strdup_printf("%s \"%s\"", Menulocal.help_browser, file); g_free(file); system_bg(cmd); g_free(cmd); } ngraph-gtk-6.06.13/src/gtk/x11print.h0000644000175000017500000000233612241111703014061 00000000000000/* * $Id: x11print.h,v 1.7 2008-09-12 09:12:08 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #define PRINT_SHOW_DIALOG_NONE 0 #define PRINT_SHOW_DIALOG_PREVIEW 1 #define PRINT_SHOW_DIALOG_DIALOG 2 void CmOutputPrinter(int select_file, int show_dialog); void CmOutputMenu(GtkAction *w, gpointer client_data); void CmOutputViewerB(GtkAction *w, gpointer client_data); void CmOutputPrinterB(GtkAction *wi, gpointer client_data); ngraph-gtk-6.06.13/src/gtk/x11info.h0000644000175000017500000000212112241111703013650 00000000000000/* * $Id: x11info.h,v 1.2 2009-07-08 10:13:03 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ void InfoWinClear(void); void InfoWinUpdate(int clear); void InfoWinDrawInfoText(const char *str); void CmInformationWindow(GtkToggleAction *action, gpointer data); void InfoWinSetFont(char *font); ngraph-gtk-6.06.13/src/gtk/ogra2cairofile.c0000644000175000017500000002042512241111703015255 00000000000000/* * $Id: ogra2cairofile.c,v 1.16 2009-11-16 09:13:05 hito Exp $ */ #include "gtk_common.h" #include #include #include #include #include #include #include #include #include #ifdef CAIRO_HAS_WIN32_SURFACE #include #endif /* CAIRO_HAS_WIN32_SURFACE */ #include "mathfn.h" #include "object.h" #include "ioutil.h" #include "main.h" #include "x11gui.h" #include "ogra2cairo.h" #include "ogra2cairofile.h" #define NAME "gra2cairofile" #define PARENT "gra2cairo" #define OVERSION "1.00.00" #ifndef M_PI #define M_PI 3.141592 #endif char *surface_type[] = { "ps2", "ps3", "eps2", "eps3", "pdf", "svg1.1", "svg1.2", "png", #ifdef CAIRO_HAS_WIN32_SURFACE "emf", #endif /* CAIRO_HAS_WIN32_SURFACE */ NULL, }; static int gra2cairofile_init(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int dpi; struct gra2cairo_local *local; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; dpi = 72; if (_putobj(obj, "dpi", inst, &dpi) < 0) goto Err; if (_putobj(obj, "dpix", inst, &dpi) < 0) goto Err; if (_putobj(obj, "dpiy", inst, &dpi) < 0) goto Err; _getobj(obj, "_local", inst, &local); local->pixel_dot_x = local->pixel_dot_y = dpi / (DPI_MAX * 1.0); return 0; Err: local = gra2cairo_free(obj, inst); g_free(local); return 1; } static int gra2cairofile_done(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; return 0; } #ifdef CAIRO_HAS_WIN32_SURFACE static cairo_surface_t * open_emf(int dpi, const char *fname) { HDC hdc; cairo_surface_t *surface; XFORM xform = {1, 0, 0, 1, 0, 0}; int disp_dpi; hdc = CreateEnhMetaFile(NULL, fname, NULL, NULL); if (hdc == NULL) { return NULL; } SetGraphicsMode(hdc, GM_ADVANCED); disp_dpi = GetDeviceCaps(hdc, LOGPIXELSX); xform.eM11 = xform.eM22 = 1.0 * disp_dpi / dpi; SetWorldTransform(hdc, &xform); surface = cairo_win32_printing_surface_create(hdc); StartPage(hdc); return surface; } static int close_emf(cairo_surface_t *surface) { HDC hdc; HENHMETAFILE emf; int r; hdc = cairo_win32_surface_get_dc(surface); cairo_surface_flush(surface); cairo_surface_copy_page(surface); cairo_surface_finish(surface); r = 1; EndPage(hdc); emf = CloseEnhMetaFile(hdc); if (emf == NULL) { return 1; } DeleteEnhMetaFile(emf); /* DeleteDC() is called in the cairo library */ return r; } #endif /* CAIRO_HAS_WIN32_SURFACE */ static cairo_t * create_cairo(struct objlist *obj, N_VALUE *inst, char *fname, int iw, int ih, int *err) { cairo_surface_t *ps; cairo_t *cairo; double w, h; int format, dpi, r; struct gra2cairo_local *local; #ifdef WINDOWS fname = g_locale_from_utf8(fname, -1, NULL, NULL, NULL); #else /* WINDOWS */ fname = g_filename_from_utf8(fname, -1, NULL, NULL, NULL); #endif /* WINDOWS */ if (fname == NULL) { *err = CAIRO_STATUS_NO_MEMORY; return NULL; } *err = 0; _getobj(obj, "format", inst, &format); _getobj(obj, "dpi", inst, &dpi); _getobj(obj, "_local", inst, &local); w = iw * dpi / 25.4 / 100; h = ih * dpi / 25.4 / 100; switch (format) { case TYPE_PS2: ps = cairo_ps_surface_create(fname, w, h); cairo_ps_surface_restrict_to_level(ps, CAIRO_PS_LEVEL_2); cairo_ps_surface_set_eps(ps, FALSE); break; case TYPE_PS3: ps = cairo_ps_surface_create(fname, w, h); cairo_ps_surface_restrict_to_level(ps, CAIRO_PS_LEVEL_3); cairo_ps_surface_set_eps(ps, FALSE); break; case TYPE_EPS2: ps = cairo_ps_surface_create(fname, w, h); cairo_ps_surface_restrict_to_level(ps, CAIRO_PS_LEVEL_2); cairo_ps_surface_set_eps(ps, TRUE); break; case TYPE_EPS3: ps = cairo_ps_surface_create(fname, w, h); cairo_ps_surface_restrict_to_level(ps, CAIRO_PS_LEVEL_3); cairo_ps_surface_set_eps(ps, TRUE); break; case TYPE_PDF: ps = cairo_pdf_surface_create(fname, w, h); break; case TYPE_SVG1_1: ps = cairo_svg_surface_create(fname, w, h); cairo_svg_surface_restrict_to_version(ps, CAIRO_SVG_VERSION_1_1); break; case TYPE_SVG1_2: ps = cairo_svg_surface_create(fname, w, h); cairo_svg_surface_restrict_to_version(ps, CAIRO_SVG_VERSION_1_2); break; case TYPE_PNG: ps = cairo_image_surface_create(CAIRO_FORMAT_RGB24, w, h); break; #ifdef CAIRO_HAS_WIN32_SURFACE case TYPE_EMF: ps = open_emf(dpi, fname); if (ps == NULL) { g_free(fname); return NULL; } break; #endif /* CAIRO_HAS_WIN32_SURFACE */ default: ps = cairo_ps_surface_create(fname, w, h); } g_free(fname); r = cairo_surface_status(ps); if (r != CAIRO_STATUS_SUCCESS) { *err = r; cairo_surface_destroy(ps); return NULL; } cairo = cairo_create(ps); /* cairo_create() references target, so you can immediately call cairo_surface_destroy() on it */ cairo_surface_destroy(ps); r = cairo_status(cairo); if (r != CAIRO_STATUS_SUCCESS) { *err = r; cairo_destroy(cairo); return NULL; } switch (format) { case TYPE_PNG: cairo_set_source_rgb(cairo, 1, 1, 1); cairo_paint(cairo); cairo_new_path(cairo); break; } return cairo; } static int init_cairo(struct objlist *obj, N_VALUE *inst, struct gra2cairo_local *local, int w, int h) { char *fname; cairo_t *cairo; int t2p, r; _getobj(obj, "file", inst, &fname); if (fname == NULL) return CAIRO_STATUS_NULL_POINTER; cairo = create_cairo(obj, inst, fname, w, h, &r); if (cairo == NULL) { return r; } if (local->cairo) cairo_destroy(local->cairo); local->cairo = cairo; _getobj(obj, "text2path", inst, &t2p); local->text2path = t2p; return 0; } static int gra2cairofile_output(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char code, *fname; int *cpar, format, r; struct gra2cairo_local *local; cairo_surface_t *surface; local = (struct gra2cairo_local *)argv[2]; code = *(char *)(argv[3]); cpar = (int *)argv[4]; switch (code) { case 'I': r = init_cairo(obj, inst, local, cpar[3], cpar[4]); if (r) { _getobj(obj, "file", inst, &fname); error2(obj, r + 100, fname); return 1; } break; case 'E': _getobj(obj, "format", inst, &format); if (local->cairo) { switch (format) { case TYPE_PNG: gra2cairo_draw_path(local); _getobj(obj, "file", inst, &fname); if (fname == NULL) return 1; #if WINDOWS fname = g_locale_from_utf8(fname, -1, NULL, NULL, NULL); #else /* WINDOWS */ fname = g_filename_from_utf8(fname, -1, NULL, NULL, NULL); #endif /* WINDOWS */ if (fname == NULL) { error(obj, CAIRO_STATUS_NO_MEMORY + 100); return 1; } surface = cairo_get_target(local->cairo); r = cairo_surface_write_to_png(surface, fname); g_free(fname); if (r) { _getobj(obj, "file", inst, &fname); error2(obj, r + 100, fname); return 1; } break; #ifdef CAIRO_HAS_WIN32_SURFACE case TYPE_EMF: gra2cairo_draw_path(local); surface = cairo_get_target(local->cairo); r = close_emf(surface); if (r) { _getobj(obj, "file", inst, &fname); error2(obj, CAIRO_STATUS_WRITE_ERROR + 100, fname); return 1; } break; #endif /* CAIRO_HAS_WIN32_SURFACE */ } } break; } if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; return 0; } static struct objtable gra2cairofile[] = { {"init", NVFUNC, NEXEC, gra2cairofile_init, NULL, 0}, {"done", NVFUNC, NEXEC, gra2cairofile_done, NULL, 0}, {"next", NPOINTER, 0, NULL, NULL, 0}, {"file", NSTR, NREAD | NWRITE, NULL, NULL,0}, {"text2path", NBOOL, NREAD | NWRITE, NULL, NULL,0}, {"format", NENUM, NREAD | NWRITE, NULL, surface_type, 0}, {"_output", NVFUNC, 0, gra2cairofile_output, NULL, 0}, {"_strwidth", NIFUNC, 0, gra2cairo_strwidth, NULL, 0}, {"_charascent", NIFUNC, 0, gra2cairo_charheight, NULL, 0}, {"_chardescent", NIFUNC, 0, gra2cairo_charheight, NULL, 0}, }; #define TBLNUM (sizeof(gra2cairofile) / sizeof(*gra2cairofile)) void * addgra2cairofile() /* addgra2cairofile() returns NULL on error */ { return addobject(NAME, NULL, PARENT, OVERSION, TBLNUM, gra2cairofile, Gra2CairoErrMsgNum, Gra2CairoErrMsgs, NULL, NULL); } ngraph-gtk-6.06.13/src/gtk/x11gui.h0000644000175000017500000000627612241111703013520 00000000000000/* * $Id: x11gui.h,v 1.15 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef GTK_GUI_HEADER #define GTK_GUI_HEADER #define RESPONS_OK 1 #define RESPONS_YESNOCANCEL 2 #define RESPONS_YESNO 3 #define RESPONS_OKCANCEL 4 #define RESPONS_ERROR 5 #ifdef IDOK #undef IDOK #undef IDCANCEL #undef IDYES #undef IDNO #undef IDCLOSE #endif /* IDOK */ #define IDLOOP 0 #define IDOK 1 #define IDCANCEL 2 #define IDYES 3 #define IDNO 4 #define IDDELETE 101 #define IDFAPPLY 102 #define IDCOPY 103 #define IDLOAD 104 #define IDSAVE 105 #define IDCLOSE 106 #define IDSALL 201 #define IDCOPYALL 202 #define DPI_MAX 2540 #define DEFAULT_DPI 70 typedef struct _tpoint { int x, y; } TPoint; int DialogExecute(GtkWidget *parent, void *dialog); void message_beep(GtkWidget *parent); int message_box(GtkWidget *parent, const char *message, const char *title, int yesno); int DialogInput(GtkWidget *parent, const char *title, const char *mes, const char *init_str, char **s, int *x, int *y); int DialogRadio(GtkWidget *parent, const char *title, const char *caption, struct narray *ary, int *r, int *x, int *y); int DialogButton(GtkWidget *parent, const char *title, const char *caption, struct narray *array, int *x, int *y); int DialogCheck(GtkWidget *parent, const char *title, const char *caption, struct narray *array, int *r, int *x, int *y); int DialogCombo(GtkWidget *parent, const char *title, const char *caption, struct narray *array, int sel, char **r, int *x, int *y); int DialogComboEntry(GtkWidget *parent, const char *title, const char *caption, struct narray *array, int sel, char **r, int *x, int *y); int DialogSpinEntry(GtkWidget *parent, const char *title, const char *caption, double min, double max, double inc, double *r, int *x, int *y); int nGetOpenFileNameMulti(GtkWidget * parent, char *title, char *defext, char **initdir, const char *initfil, char ***file, int chd); int nGetOpenFileName(GtkWidget * parent, char *title, char *defext, char **initdir, const char *initfil, char **file, int exist, int chd); int nGetSaveFileName(GtkWidget * parent, char *title, char *defext, char **initdir, const char *initfil, char **file, int overwrite, int chdir); void get_window_geometry(GtkWidget *win, gint *x, gint *y, gint *w, gint *h); void set_sensitivity_by_check_instance(GtkWidget *widget, gpointer user_data); int ndialog_run(GtkWidget *dlg); #endif ngraph-gtk-6.06.13/src/gtk/x11dialg.h0000644000175000017500000004300412241111704014003 00000000000000/* * $Id: x11dialg.h,v 1.57 2010-02-03 01:18:12 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef GTK_DIALOG_HEADER #define GTK_DIALOG_HEADER #include "common.h" #include #include #include "object.h" #include "ogra2cairo.h" #include "x11menu.h" #define MATH_FNC_NUM 5 struct line_style { char *name, *list; int num; }; extern struct line_style FwLineStyle[]; extern char *FwNumStyle[]; extern int FwNumStyleNum; #define N_RESPONSE_ALL 1 void initdialog(void); int CopyClick(GtkWidget *parent, struct objlist *obj, int Id, char *(*callback) (struct objlist *, int)); int SetObjFieldFromWidget(GtkWidget *w, struct objlist *Obj, int Id, char *field); void SetWidgetFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field); int SetObjPointsFromText(GtkWidget *w, struct objlist *Obj, int Id, char *field); void SetTextFromObjPoints(GtkWidget *w, struct objlist *Obj, int Id, char *field); int SetObjFieldFromStyle(GtkWidget *w, struct objlist *Obj, int Id, char *field); void SetStyleFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field); int SetObjAxisFieldFromWidget(GtkWidget *w, struct objlist *obj, int id, char *field); struct compatible_font_info *SetFontListFromObj(GtkWidget *w, struct objlist *obj, int id, const char *name); void SetObjFieldFromFontList(GtkWidget *w, struct objlist *obj, int id, char *name); void set_color(GtkWidget *w, struct objlist *obj, int id, char *prefix); void set_color2(GtkWidget *w, struct objlist *obj, int id); void set_fill_color(GtkWidget *w, struct objlist *obj, int id); void set_stroke_color(GtkWidget *w, struct objlist *obj, int id); int putobj_color(GtkWidget *w, struct objlist *obj, int id, char *prefix); int putobj_color2(GtkWidget *w, struct objlist *obj, int id); int putobj_fill_color(GtkWidget *w, struct objlist *obj, int id); int putobj_stroke_color(GtkWidget *w, struct objlist *obj, int id); int chk_sputobjfield(struct objlist *obj, int id, char *field, char *str); const char *get_style_string(struct objlist *obj, int id, char *field); #define DIALOG_PROTOTYPE GtkWidget *parent, *widget, *focus;\ GtkBox *vbox;\ int ret, show_cancel;\ char *resource;\ const char *ok_button;\ void (*SetupWindow) (GtkWidget *w, void *data, int makewidget);\ void (*CloseWindow) (GtkWidget *w, void *data);\ struct DialogType { DIALOG_PROTOTYPE; }; struct MarkDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *toggle[MARK_TYPE_NUM]; int Type, cb_respond; }; void MarkDialog(struct MarkDialog *data, int type); struct FileMath { GtkWidget *xsmooth, *x, *ysmooth, *y, *f, *g, *h; int tab_id; }; struct FileLoad { GtkWidget *headskip, *readstep, *finalline, *remark, *ifs, *csv; int tab_id; }; struct FileMask { GtkWidget *line, *list; int changed, tab_id; }; struct FileMove { GtkWidget *line, *x, *y, *list; int changed, tab_id; }; struct FileDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *file, *load_settings, *fit, *xcol, *xaxis, *ycol, *yaxis, *type, *mark_btn, *curve, *col1, *col2, *clip, *style, *size, *miter, *join, *comment_box, *file_box, *fit_table, *width, *apply_all, *comment_view, *comment_table; GtkNotebook *tab; struct objlist *Obj; int Id; struct MarkDialog mark; int R, G, B, R2, G2, B2, alpha, multi_open, fit_row, initialized; struct FileMath math; struct FileLoad load; struct FileMask mask; struct FileMove move; char *head_lines; }; void FileDialog(struct obj_list_data *data, int id, int multi); struct EvalDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *list; struct narray *sel; struct objlist *Obj; int Num; }; void EvalDialog(struct EvalDialog *data, struct objlist *obj, int num, struct narray *iarray); struct MathDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *list, *func[MATH_FNC_NUM]; struct objlist *Obj; int Mode; }; void MathDialog(struct MathDialog *data, struct objlist *obj); struct MathTextDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *list, *label, *tree; GList *id_list; struct objlist *Obj; char *Text; int Mode; }; void MathTextDialog(struct MathTextDialog *data, char *text, int mode, struct objlist *obj, GList *list, GtkWidget *tree); #define FIT_PARM_NUM 10 struct FitDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *type, *through_point, *x, *y, *dim, *weight, *min, *max, *div, *interpolation, *formula, *converge, *derivatives, *p[FIT_PARM_NUM], *d[FIT_PARM_NUM], *through_box, *usr_def_frame, *usr_def_prm_tbl, *func_label; struct objlist *Obj; int Id; int Lastid; }; void FitDialog(struct FitDialog *data, struct objlist *obj, int id); struct FitLoadDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *list; struct objlist *Obj; int Sid; int sel; }; void FitLoadDialog(struct FitLoadDialog *data, struct objlist *obj, int sid); struct FitSaveDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *profile; struct objlist *Obj; int Sid; char *Profile; }; void FitSaveDialog(struct FitSaveDialog *data, struct objlist *obj, int sid); struct SectionDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *x, *y, *w, *h, *xid, *yid, *rid, *uid, *gid, *width, *height, *xaxis, *yaxis, *uaxis, *raxis, *grid; int Section; int X, Y, LenX, LenY, X0, Y0, LenX0, LenY0; int IDX, IDY, IDU, IDR, *IDG; struct objlist *Obj, *Obj2; int MaxX, MaxY; }; void SectionDialog(struct SectionDialog *data, int x, int y, int lenx, int leny, struct objlist *obj, int idx, int idy, int idu, int idr, struct objlist *obj2, int *idg, int section); struct CrossDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *x, *y, *w, *h, *xid, *yid, *width, *height, *xaxis, *yaxis; int X, Y, LenX, LenY, X0, Y0, LenX0, LenY0; int IDX, IDY; struct objlist *Obj; int MaxX, MaxY; }; void CrossDialog(struct CrossDialog *data, int x, int y, int lenx, int leny, struct objlist *obj, int idx, int idy); struct AxisBase { GtkWidget *style, *width, *color, *arrow, *arrowlen, *arrowwid, *wave, *wavelen, *wavewid, *baseline; int R, G, B, alpha, tab_id; }; struct AxisPos { GtkWidget *x, *y, *len, *direction, *adjust, *adjustpos; int tab_id; }; struct AxisFont { GtkWidget *space, *pt, *script, *font, *color, *font_bold, *font_italic; int R, G, B, alpha, tab_id; }; struct AxisNumbering { GtkWidget *num, *begin, *ster, *numnum, *head, *fraction, *add_plus, *tail, *date_format, *align, *direction, *shiftp, *shiftn, *log_power, *no_zero, *norm, *step; int tab_id; }; #define GAUGE_STYLE_NUM 3 struct AxisGauge { GtkWidget *length[GAUGE_STYLE_NUM], *width[GAUGE_STYLE_NUM], *gauge, *min, *max, *style, *color; int R, G, B, alpha, tab_id; }; struct AxisDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *min, *max, *inc, *div, *scale, *ref, *clear, *margin; GtkNotebook *tab; struct objlist *Obj; int Id; struct AxisBase base; struct AxisFont font; struct AxisPos position; struct AxisGauge gauge; struct AxisNumbering numbering; }; void AxisDialog(struct obj_list_data *data, int id, int sub_id); #define GRID_DIALOG_STYLE_NUM 3 struct GridDialog { DIALOG_PROTOTYPE; /****** local member *******/ struct objlist *Obj; GtkWidget *style[GRID_DIALOG_STYLE_NUM], *width[GRID_DIALOG_STYLE_NUM], *axisx, *axisy, *background, *color, *bcolor, *draw_x, *draw_y; int Id; int R, G, B, R2, G2, B2, A; }; void GridDialog(struct GridDialog *data, struct objlist *obj, int id); struct ZoomDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *zoom_entry; int zoom; }; void ZoomDialog(struct ZoomDialog *data); struct MergeDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *file, *topmargin, *leftmargin, *zoom; struct objlist *Obj; int Id; }; void MergeDialog(struct obj_list_data *data, int id, int Sub_id); struct LegendDialog { DIALOG_PROTOTYPE; /****** local member *******/ char *(* prop_cb) (struct objlist *obj, int id); GtkWidget *path_type, *style, *points, *interpolation, *width, *miter, *join, *color, *color2, *stroke_color, *fill_color, *x, *y, *x1, *y1, *x2, *y2, *rx, *ry, *angle1, *angle2, *pieslice, *close_path, *stroke, *fill, *fill_rule, *arrow, *arrow_length, *arrow_width, *size, *type, *view, *text, *pt, *space, *script_size, *direction, *raw, *font, *font_bold, *font_italic; struct objlist *Obj; int Id; int R, G, B, R2, G2, B2, fill_R, fill_G, fill_B, alpha, wid, ang; struct MarkDialog mark; cairo_surface_t *arrow_pixmap; }; void LegendArrowDialog(struct LegendDialog *data, struct objlist *obj, int id); void LegendRectDialog(struct LegendDialog *data, struct objlist *obj, int id); void LegendArcDialog(struct LegendDialog *data, struct objlist *obj, int id); void LegendMarkDialog(struct LegendDialog *data, struct objlist *obj, int id); void LegendTextDialog(struct LegendDialog *data, struct objlist *obj, int id); struct LegendGaussDialog { DIALOG_PROTOTYPE; /****** local member *******/ GSList *func_list, *dir_list; GtkWidget *style, *div, *color, *width, *miter, *join, *sch, *scv, *view; int R, G, B, A; struct objlist *Obj; int Id; int Minx, Miny, Wdx, Wdy; int Div, Dir; int Mode; double Position, Param; int alloc; }; void LegendGaussDialog(struct LegendGaussDialog *data, struct objlist *obj, int id, int minx, int miny, int wdx, int wdy); struct PageDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *leftmargin, *topmargin, *paperwidth, *paperheight, *paperzoom, *paper; }; void PageDialog(struct PageDialog *data); struct SwitchDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *drawlist, *objlist, *top, *up, *down, *bottom, *del, *ins, *add; int btn_lock; struct narray drawrable; struct narray idrawrable; }; void SwitchDialog(struct SwitchDialog *data); struct DirectoryDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *dir, *dir_label; }; void DirectoryDialog(struct DirectoryDialog *data); struct LoadDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *expand_file, *load_path, *dir; int expand; char *exdir; int loadpath; int Id; }; void LoadDialog(struct LoadDialog *data); struct PrmDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *ignore_path; struct objlist *Obj; int Id; }; void PrmDialog(struct PrmDialog *data, struct objlist *obj, int id); struct SaveDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *path, *include_data, *include_merge; int Path; int *SaveData, *SaveMerge; }; void SaveDialog(struct SaveDialog *data, int *sdata, int *smerge); struct DriverDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *driver, *file, *option; char *ext; struct objlist *Obj; int Id; }; void DriverDialog(struct DriverDialog *data, struct objlist *obj, int id); struct PrintDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *driver, *print, *option; struct objlist *Obj; int Id; }; void PrintDialog(struct PrintDialog *data, struct objlist *obj, int id); struct OutputDataDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *div_entry; int div; }; void OutputDataDialog(struct OutputDataDialog *data, int div); struct DefaultDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *geometry, *child_geometry, *viewer, *external_driver, *addin_script, *misc, *external_viewer, *fonts; }; void DefaultDialog(struct DefaultDialog *data); struct SetScriptDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *addins, *name, *script, *option, *description; struct script *Script; }; void SetScriptDialog(struct SetScriptDialog *data, struct script *sc); struct PrefScriptDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *list, *update_b, *del_b, *up_b, *down_b; }; void PrefScriptDialog(struct PrefScriptDialog *data); struct SetDriverDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *name, *driver, *option, *ext; struct extprinter *Driver; }; void SetDriverDialog(struct SetDriverDialog *data, struct extprinter *prn); struct PrefDriverDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *list, *update_b, *del_b, *up_b, *down_b; }; void PrefDriverDialog(struct PrefDriverDialog *data); struct PrefFontDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *list, *update_b, *del_b, *up_b, *down_b; }; void PrefFontDialog(struct PrefFontDialog *data); struct FontSettingDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *list, *alias, *font_b, *add_b, *del_b, *up_b, *down_b; const gchar *alias_str, *font_str, *alternative_str; int is_update; }; void FontSettingDialog(struct FontSettingDialog *d, const char *alias, const char *font, const char *alternative); struct MiscDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *editor, *directory, *path, *datafile, *expand, *expanddir, *loadpath, *mergefile, *coordwin_font, *infowin_font, *file_preview_font, *hist_size, *info_size, *data_head_lines, *help_browser, *browser, *use_opacity, *select_data; struct objlist *Obj; int Id; }; void MiscDialog(struct MiscDialog *data, struct objlist *obj, int id); struct ExViewerDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *dpi, *width, *height, *use_external; struct objlist *Obj; int Id; }; void ExViewerDialog(struct ExViewerDialog *data); struct ViewerDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *dpi, *loadfile, *grid, *data_num, *antialias, *fftype, *bgcol, *preserve_width; struct objlist *Obj; int Id; int Clear; int dpis; }; void ViewerDialog(struct ViewerDialog *data, struct objlist *obj, int id); struct SelectDialog { DIALOG_PROTOTYPE; /****** local member *******/ struct narray *sel, *isel; struct objlist *Obj; char *Field; GtkWidget *list; char *(*cb) (struct objlist * obj, int id); }; void SelectDialog(struct SelectDialog *data, struct objlist *obj, char *(*callback) (struct objlist * obj, int id), struct narray *array, struct narray *iarray); struct CopyDialog { DIALOG_PROTOTYPE; /****** local member *******/ struct objlist *Obj; int Id; int sel; GtkWidget *list; char *(*cb) (struct objlist * obj, int id); }; void CopyDialog(struct CopyDialog *data, struct objlist *obj, int id, char *(*callback) (struct objlist * obj, int id)); struct OutputImageDialog { DIALOG_PROTOTYPE; /****** local member *******/ GtkWidget *version, *t2p, *dpi, *use_opacity; int Version, text2path, Dpi, DlgType, UseOpacity; }; void OutputImageDialog(struct OutputImageDialog *data, int type); extern struct FileDialog DlgFile; extern struct FileDialog DlgFileDef; extern struct EvalDialog DlgEval; extern struct MathDialog DlgMath; extern struct MathTextDialog DlgMathText; extern struct FitDialog DlgFit; extern struct FitLoadDialog DlgFitLoad; extern struct FitSaveDialog DlgFitSave; extern struct FileMoveDialog DlgFileMove; extern struct FileMaskDialog DlgFileMask; extern struct SectionDialog DlgSection; extern struct CrossDialog DlgCross; extern struct AxisDialog DlgAxis; extern struct GridDialog DlgGrid; extern struct ZoomDialog DlgZoom; extern struct AxisBaseDialog DlgAxisBase; extern struct AxisPosDialog DlgAxisPos; extern struct NumDialog DlgNum; extern struct AxisFontDialog DlgAxisFont; extern struct GaugeDialog DlgGauge; extern struct MergeDialog DlgMerge; extern struct LegendDialog DlgLegendArrow; extern struct LegendDialog DlgLegendRect; extern struct LegendDialog DlgLegendArc; extern struct LegendDialog DlgLegendMark; extern struct LegendDialog DlgLegendText; extern struct LegendDialog DlgLegendTextDef; extern struct LegendGaussDialog DlgLegendGauss; extern struct PageDialog DlgPage; extern struct SwitchDialog DlgSwitch; extern struct DirectoryDialog DlgDirectory; extern struct LoadDialog DlgLoad; extern struct PrmDialog DlgPrm; extern struct SaveDialog DlgSave; extern struct DriverDialog DlgDriver; extern struct PrintDialog DlgPrinter; extern struct OutputDataDialog DlgOutputData; extern struct DefaultDialog DlgDefault; extern struct SetScriptDialog DlgSetScript; extern struct PrefScriptDialog DlgPrefScript; extern struct SetDriverDialog DlgSetDriver; extern struct PrefDriverDialog DlgPrefDriver; extern struct PrefFontDialog DlgPrefFont; extern struct FontSettingDialog DlgFontSetting; extern struct MiscDialog DlgMisc; extern struct ExViewerDialog DlgExViewer; extern struct ViewerDialog DlgViewer; extern struct SelectDialog DlgSelect; extern struct CopyDialog DlgCopy; extern struct OutputImageDialog DlgImageOut; #endif ngraph-gtk-6.06.13/src/gtk/gtk_common.h0000644000175000017500000000446612241111703014536 00000000000000#ifndef GTK_COMMON_HEADER #define GTK_COMMON_HEADER #include #include #include #include #include #include "common.h" #ifndef GTK_WIDGET_VISIBLE #define GTK_WIDGET_VISIBLE(w) gtk_widget_get_visible(w) #endif #if GTK_CHECK_VERSION(2, 18, 0) #define GTK_WIDGET_SET_CAN_FOCUS(w) gtk_widget_set_can_focus(w, TRUE) #else #define GTK_WIDGET_SET_CAN_FOCUS(w) GTK_WIDGET_SET_FLAGS(w, GTK_CAN_FOCUS) #endif #if GTK_CHECK_VERSION(3, 2, 0) #define gtk_hbox_new(h, s) gtk_box_new(GTK_ORIENTATION_HORIZONTAL, s) #define gtk_vbox_new(h, s) gtk_box_new(GTK_ORIENTATION_VERTICAL, s) #define gtk_hbutton_box_new() gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL) #define gtk_hseparator_new() gtk_separator_new(GTK_ORIENTATION_HORIZONTAL) #define gtk_hscrollbar_new(adj) gtk_scrollbar_new(GTK_ORIENTATION_HORIZONTAL, adj) #define gtk_vscrollbar_new(adj) gtk_scrollbar_new(GTK_ORIENTATION_VERTICAL, adj) #define gtk_hscale_new_with_range(min, max, step) gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, min, max, step) #endif #define CAIRO_COORDINATE_OFFSET 1 #ifndef GDK_KEY_BackSpace #define GDK_KEY_BackSpace GDK_BackSpace #define GDK_KEY_Control_L GDK_Control_L #define GDK_KEY_Control_R GDK_Control_R #define GDK_KEY_Delete GDK_Delete #define GDK_KEY_Down GDK_Down #define GDK_KEY_End GDK_End #define GDK_KEY_Escape GDK_Escape #define GDK_KEY_F GDK_F #define GDK_KEY_F1 GDK_F1 #define GDK_KEY_F3 GDK_F3 #define GDK_KEY_F4 GDK_F4 #define GDK_KEY_F5 GDK_F5 #define GDK_KEY_F6 GDK_F6 #define GDK_KEY_F7 GDK_F7 #define GDK_KEY_F8 GDK_F8 #define GDK_KEY_Home GDK_Home #define GDK_KEY_Insert GDK_Insert #define GDK_KEY_Left GDK_Left #define GDK_KEY_Page_Down GDK_Page_Down #define GDK_KEY_Page_Up GDK_Page_Up #define GDK_KEY_Return GDK_Return #define GDK_KEY_Right GDK_Right #define GDK_KEY_Shift_L GDK_Shift_L #define GDK_KEY_Shift_R GDK_Shift_R #define GDK_KEY_Up GDK_Up #define GDK_KEY_c GDK_c #define GDK_KEY_d GDK_d #define GDK_KEY_e GDK_e #define GDK_KEY_f GDK_f #define GDK_KEY_g GDK_g #define GDK_KEY_o GDK_o #define GDK_KEY_p GDK_p #define GDK_KEY_plus GDK_plus #define GDK_KEY_q GDK_q #define GDK_KEY_r GDK_r #define GDK_KEY_s GDK_s #define GDK_KEY_space GDK_space #define GDK_KEY_v GDK_v #define GDK_KEY_w GDK_w #define GDK_KEY_x GDK_x #endif /* GDK_KEY_BackSpace */ #endif ngraph-gtk-6.06.13/src/gtk/Makefile.in0000644000175000017500000016116712241364552014313 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/gtk DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libngraphui_la_LIBADD = am_libngraphui_la_OBJECTS = libngraphui_la-gtk_combo.lo \ libngraphui_la-gtk_entry_completion.lo \ libngraphui_la-gtk_liststore.lo libngraphui_la-gtk_subwin.lo \ libngraphui_la-main.lo libngraphui_la-ogra2x11.lo \ libngraphui_la-ogra2cairo.lo libngraphui_la-ogra2emf.lo \ libngraphui_la-ogra2cairofile.lo \ libngraphui_la-ogra2gtkprint.lo libngraphui_la-ogra2gdk.lo \ libngraphui_la-ox11dlg.lo libngraphui_la-ox11menu.lo \ libngraphui_la-x11axis.lo libngraphui_la-x11bitmp.lo \ libngraphui_la-x11commn.lo libngraphui_la-x11cood.lo \ libngraphui_la-x11dialg.lo libngraphui_la-x11file.lo \ libngraphui_la-x11graph.lo libngraphui_la-x11gui.lo \ libngraphui_la-x11info.lo libngraphui_la-x11lgnd.lo \ libngraphui_la-x11lgndx.lo libngraphui_la-x11menu.lo \ libngraphui_la-x11merge.lo libngraphui_la-x11opt.lo \ libngraphui_la-x11print.lo libngraphui_la-x11view.lo \ libngraphui_la-gtk_widget.lo libngraphui_la-gtk_ruler.lo nodist_libngraphui_la_OBJECTS = libngraphui_la_OBJECTS = $(am_libngraphui_la_OBJECTS) \ $(nodist_libngraphui_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libngraphui_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libngraphui_la_CFLAGS) $(CFLAGS) $(libngraphui_la_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libngraphui_la_SOURCES) $(nodist_libngraphui_la_SOURCES) DIST_SOURCES = $(libngraphui_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = dir_defs.h.in AM_CPPFLAGS = -DLOCALEDIR=\""@localedir@"\" noinst_LTLIBRARIES = libngraphui.la nodist_libngraphui_la_SOURCES = dir_defs.h libngraphui_la_SOURCES = gtk_common.h gtk_combo.c gtk_combo.h \ gtk_entry_completion.c gtk_entry_completion.h gtk_liststore.c \ gtk_liststore.h gtk_subwin.c gtk_subwin.h main.c main.h \ ogra2x11.c ogra2cairo.c ogra2emf.c ogra2cairo.h \ ogra2cairofile.c ogra2gtkprint.c ogra2cairofile.h ogra2x11.h \ ogra2gdk.c ogra2gdk.h ox11dlg.c ox11menu.c ox11menu.h \ x11axis.c x11axis.h x11bitmp.c x11bitmp.h x11commn.c \ x11commn.h x11cood.c x11cood.h x11dialg.c x11dialg.h \ x11file.c x11file.h x11graph.c x11graph.h x11gui.c x11gui.h \ x11info.c x11info.h x11lgnd.c x11lgnd.h x11lgndx.c x11menu.c \ x11menu.h x11merge.c x11merge.h x11opt.c x11opt.h \ x11opt_proto.h x11print.c x11print.h x11view.c x11view.h \ gtk_widget.c gtk_widget.h gtk_ruler.c gtk_ruler.h BUILT_SOURCES = ${nodist_libngraphui_la_SOURCES} ngraphconfdir = $(sysconfdir)/$(PACKAGE) pixmapdir = $(datadir)/pixmaps/$(PACKAGE) libngraphui_la_LDFLAGS = -static libngraphui_la_CFLAGS = $(GTK_CFLAGS) -I.. -I../math CLEANFILES = dir_defs.h all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/gtk/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/gtk/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libngraphui.la: $(libngraphui_la_OBJECTS) $(libngraphui_la_DEPENDENCIES) $(EXTRA_libngraphui_la_DEPENDENCIES) $(AM_V_CCLD)$(libngraphui_la_LINK) $(libngraphui_la_OBJECTS) $(libngraphui_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-gtk_combo.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-gtk_entry_completion.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-gtk_liststore.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-gtk_ruler.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-gtk_subwin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-gtk_widget.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-main.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-ogra2cairo.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-ogra2cairofile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-ogra2emf.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-ogra2gdk.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-ogra2gtkprint.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-ogra2x11.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-ox11dlg.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-ox11menu.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11axis.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11bitmp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11commn.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11cood.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11dialg.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11file.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11graph.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11gui.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11info.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11lgnd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11lgndx.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11menu.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11merge.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11opt.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11print.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libngraphui_la-x11view.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libngraphui_la-gtk_combo.lo: gtk_combo.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-gtk_combo.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-gtk_combo.Tpo -c -o libngraphui_la-gtk_combo.lo `test -f 'gtk_combo.c' || echo '$(srcdir)/'`gtk_combo.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-gtk_combo.Tpo $(DEPDIR)/libngraphui_la-gtk_combo.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gtk_combo.c' object='libngraphui_la-gtk_combo.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-gtk_combo.lo `test -f 'gtk_combo.c' || echo '$(srcdir)/'`gtk_combo.c libngraphui_la-gtk_entry_completion.lo: gtk_entry_completion.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-gtk_entry_completion.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-gtk_entry_completion.Tpo -c -o libngraphui_la-gtk_entry_completion.lo `test -f 'gtk_entry_completion.c' || echo '$(srcdir)/'`gtk_entry_completion.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-gtk_entry_completion.Tpo $(DEPDIR)/libngraphui_la-gtk_entry_completion.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gtk_entry_completion.c' object='libngraphui_la-gtk_entry_completion.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-gtk_entry_completion.lo `test -f 'gtk_entry_completion.c' || echo '$(srcdir)/'`gtk_entry_completion.c libngraphui_la-gtk_liststore.lo: gtk_liststore.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-gtk_liststore.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-gtk_liststore.Tpo -c -o libngraphui_la-gtk_liststore.lo `test -f 'gtk_liststore.c' || echo '$(srcdir)/'`gtk_liststore.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-gtk_liststore.Tpo $(DEPDIR)/libngraphui_la-gtk_liststore.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gtk_liststore.c' object='libngraphui_la-gtk_liststore.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-gtk_liststore.lo `test -f 'gtk_liststore.c' || echo '$(srcdir)/'`gtk_liststore.c libngraphui_la-gtk_subwin.lo: gtk_subwin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-gtk_subwin.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-gtk_subwin.Tpo -c -o libngraphui_la-gtk_subwin.lo `test -f 'gtk_subwin.c' || echo '$(srcdir)/'`gtk_subwin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-gtk_subwin.Tpo $(DEPDIR)/libngraphui_la-gtk_subwin.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gtk_subwin.c' object='libngraphui_la-gtk_subwin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-gtk_subwin.lo `test -f 'gtk_subwin.c' || echo '$(srcdir)/'`gtk_subwin.c libngraphui_la-main.lo: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-main.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-main.Tpo -c -o libngraphui_la-main.lo `test -f 'main.c' || echo '$(srcdir)/'`main.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-main.Tpo $(DEPDIR)/libngraphui_la-main.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='libngraphui_la-main.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-main.lo `test -f 'main.c' || echo '$(srcdir)/'`main.c libngraphui_la-ogra2x11.lo: ogra2x11.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-ogra2x11.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-ogra2x11.Tpo -c -o libngraphui_la-ogra2x11.lo `test -f 'ogra2x11.c' || echo '$(srcdir)/'`ogra2x11.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-ogra2x11.Tpo $(DEPDIR)/libngraphui_la-ogra2x11.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2x11.c' object='libngraphui_la-ogra2x11.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-ogra2x11.lo `test -f 'ogra2x11.c' || echo '$(srcdir)/'`ogra2x11.c libngraphui_la-ogra2cairo.lo: ogra2cairo.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-ogra2cairo.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-ogra2cairo.Tpo -c -o libngraphui_la-ogra2cairo.lo `test -f 'ogra2cairo.c' || echo '$(srcdir)/'`ogra2cairo.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-ogra2cairo.Tpo $(DEPDIR)/libngraphui_la-ogra2cairo.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2cairo.c' object='libngraphui_la-ogra2cairo.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-ogra2cairo.lo `test -f 'ogra2cairo.c' || echo '$(srcdir)/'`ogra2cairo.c libngraphui_la-ogra2emf.lo: ogra2emf.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-ogra2emf.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-ogra2emf.Tpo -c -o libngraphui_la-ogra2emf.lo `test -f 'ogra2emf.c' || echo '$(srcdir)/'`ogra2emf.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-ogra2emf.Tpo $(DEPDIR)/libngraphui_la-ogra2emf.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2emf.c' object='libngraphui_la-ogra2emf.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-ogra2emf.lo `test -f 'ogra2emf.c' || echo '$(srcdir)/'`ogra2emf.c libngraphui_la-ogra2cairofile.lo: ogra2cairofile.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-ogra2cairofile.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-ogra2cairofile.Tpo -c -o libngraphui_la-ogra2cairofile.lo `test -f 'ogra2cairofile.c' || echo '$(srcdir)/'`ogra2cairofile.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-ogra2cairofile.Tpo $(DEPDIR)/libngraphui_la-ogra2cairofile.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2cairofile.c' object='libngraphui_la-ogra2cairofile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-ogra2cairofile.lo `test -f 'ogra2cairofile.c' || echo '$(srcdir)/'`ogra2cairofile.c libngraphui_la-ogra2gtkprint.lo: ogra2gtkprint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-ogra2gtkprint.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-ogra2gtkprint.Tpo -c -o libngraphui_la-ogra2gtkprint.lo `test -f 'ogra2gtkprint.c' || echo '$(srcdir)/'`ogra2gtkprint.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-ogra2gtkprint.Tpo $(DEPDIR)/libngraphui_la-ogra2gtkprint.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2gtkprint.c' object='libngraphui_la-ogra2gtkprint.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-ogra2gtkprint.lo `test -f 'ogra2gtkprint.c' || echo '$(srcdir)/'`ogra2gtkprint.c libngraphui_la-ogra2gdk.lo: ogra2gdk.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-ogra2gdk.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-ogra2gdk.Tpo -c -o libngraphui_la-ogra2gdk.lo `test -f 'ogra2gdk.c' || echo '$(srcdir)/'`ogra2gdk.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-ogra2gdk.Tpo $(DEPDIR)/libngraphui_la-ogra2gdk.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ogra2gdk.c' object='libngraphui_la-ogra2gdk.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-ogra2gdk.lo `test -f 'ogra2gdk.c' || echo '$(srcdir)/'`ogra2gdk.c libngraphui_la-ox11dlg.lo: ox11dlg.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-ox11dlg.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-ox11dlg.Tpo -c -o libngraphui_la-ox11dlg.lo `test -f 'ox11dlg.c' || echo '$(srcdir)/'`ox11dlg.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-ox11dlg.Tpo $(DEPDIR)/libngraphui_la-ox11dlg.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ox11dlg.c' object='libngraphui_la-ox11dlg.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-ox11dlg.lo `test -f 'ox11dlg.c' || echo '$(srcdir)/'`ox11dlg.c libngraphui_la-ox11menu.lo: ox11menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-ox11menu.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-ox11menu.Tpo -c -o libngraphui_la-ox11menu.lo `test -f 'ox11menu.c' || echo '$(srcdir)/'`ox11menu.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-ox11menu.Tpo $(DEPDIR)/libngraphui_la-ox11menu.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ox11menu.c' object='libngraphui_la-ox11menu.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-ox11menu.lo `test -f 'ox11menu.c' || echo '$(srcdir)/'`ox11menu.c libngraphui_la-x11axis.lo: x11axis.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11axis.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11axis.Tpo -c -o libngraphui_la-x11axis.lo `test -f 'x11axis.c' || echo '$(srcdir)/'`x11axis.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11axis.Tpo $(DEPDIR)/libngraphui_la-x11axis.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11axis.c' object='libngraphui_la-x11axis.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11axis.lo `test -f 'x11axis.c' || echo '$(srcdir)/'`x11axis.c libngraphui_la-x11bitmp.lo: x11bitmp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11bitmp.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11bitmp.Tpo -c -o libngraphui_la-x11bitmp.lo `test -f 'x11bitmp.c' || echo '$(srcdir)/'`x11bitmp.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11bitmp.Tpo $(DEPDIR)/libngraphui_la-x11bitmp.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11bitmp.c' object='libngraphui_la-x11bitmp.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11bitmp.lo `test -f 'x11bitmp.c' || echo '$(srcdir)/'`x11bitmp.c libngraphui_la-x11commn.lo: x11commn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11commn.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11commn.Tpo -c -o libngraphui_la-x11commn.lo `test -f 'x11commn.c' || echo '$(srcdir)/'`x11commn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11commn.Tpo $(DEPDIR)/libngraphui_la-x11commn.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11commn.c' object='libngraphui_la-x11commn.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11commn.lo `test -f 'x11commn.c' || echo '$(srcdir)/'`x11commn.c libngraphui_la-x11cood.lo: x11cood.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11cood.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11cood.Tpo -c -o libngraphui_la-x11cood.lo `test -f 'x11cood.c' || echo '$(srcdir)/'`x11cood.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11cood.Tpo $(DEPDIR)/libngraphui_la-x11cood.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11cood.c' object='libngraphui_la-x11cood.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11cood.lo `test -f 'x11cood.c' || echo '$(srcdir)/'`x11cood.c libngraphui_la-x11dialg.lo: x11dialg.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11dialg.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11dialg.Tpo -c -o libngraphui_la-x11dialg.lo `test -f 'x11dialg.c' || echo '$(srcdir)/'`x11dialg.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11dialg.Tpo $(DEPDIR)/libngraphui_la-x11dialg.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11dialg.c' object='libngraphui_la-x11dialg.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11dialg.lo `test -f 'x11dialg.c' || echo '$(srcdir)/'`x11dialg.c libngraphui_la-x11file.lo: x11file.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11file.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11file.Tpo -c -o libngraphui_la-x11file.lo `test -f 'x11file.c' || echo '$(srcdir)/'`x11file.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11file.Tpo $(DEPDIR)/libngraphui_la-x11file.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11file.c' object='libngraphui_la-x11file.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11file.lo `test -f 'x11file.c' || echo '$(srcdir)/'`x11file.c libngraphui_la-x11graph.lo: x11graph.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11graph.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11graph.Tpo -c -o libngraphui_la-x11graph.lo `test -f 'x11graph.c' || echo '$(srcdir)/'`x11graph.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11graph.Tpo $(DEPDIR)/libngraphui_la-x11graph.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11graph.c' object='libngraphui_la-x11graph.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11graph.lo `test -f 'x11graph.c' || echo '$(srcdir)/'`x11graph.c libngraphui_la-x11gui.lo: x11gui.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11gui.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11gui.Tpo -c -o libngraphui_la-x11gui.lo `test -f 'x11gui.c' || echo '$(srcdir)/'`x11gui.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11gui.Tpo $(DEPDIR)/libngraphui_la-x11gui.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11gui.c' object='libngraphui_la-x11gui.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11gui.lo `test -f 'x11gui.c' || echo '$(srcdir)/'`x11gui.c libngraphui_la-x11info.lo: x11info.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11info.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11info.Tpo -c -o libngraphui_la-x11info.lo `test -f 'x11info.c' || echo '$(srcdir)/'`x11info.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11info.Tpo $(DEPDIR)/libngraphui_la-x11info.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11info.c' object='libngraphui_la-x11info.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11info.lo `test -f 'x11info.c' || echo '$(srcdir)/'`x11info.c libngraphui_la-x11lgnd.lo: x11lgnd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11lgnd.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11lgnd.Tpo -c -o libngraphui_la-x11lgnd.lo `test -f 'x11lgnd.c' || echo '$(srcdir)/'`x11lgnd.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11lgnd.Tpo $(DEPDIR)/libngraphui_la-x11lgnd.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11lgnd.c' object='libngraphui_la-x11lgnd.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11lgnd.lo `test -f 'x11lgnd.c' || echo '$(srcdir)/'`x11lgnd.c libngraphui_la-x11lgndx.lo: x11lgndx.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11lgndx.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11lgndx.Tpo -c -o libngraphui_la-x11lgndx.lo `test -f 'x11lgndx.c' || echo '$(srcdir)/'`x11lgndx.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11lgndx.Tpo $(DEPDIR)/libngraphui_la-x11lgndx.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11lgndx.c' object='libngraphui_la-x11lgndx.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11lgndx.lo `test -f 'x11lgndx.c' || echo '$(srcdir)/'`x11lgndx.c libngraphui_la-x11menu.lo: x11menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11menu.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11menu.Tpo -c -o libngraphui_la-x11menu.lo `test -f 'x11menu.c' || echo '$(srcdir)/'`x11menu.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11menu.Tpo $(DEPDIR)/libngraphui_la-x11menu.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11menu.c' object='libngraphui_la-x11menu.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11menu.lo `test -f 'x11menu.c' || echo '$(srcdir)/'`x11menu.c libngraphui_la-x11merge.lo: x11merge.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11merge.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11merge.Tpo -c -o libngraphui_la-x11merge.lo `test -f 'x11merge.c' || echo '$(srcdir)/'`x11merge.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11merge.Tpo $(DEPDIR)/libngraphui_la-x11merge.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11merge.c' object='libngraphui_la-x11merge.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11merge.lo `test -f 'x11merge.c' || echo '$(srcdir)/'`x11merge.c libngraphui_la-x11opt.lo: x11opt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11opt.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11opt.Tpo -c -o libngraphui_la-x11opt.lo `test -f 'x11opt.c' || echo '$(srcdir)/'`x11opt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11opt.Tpo $(DEPDIR)/libngraphui_la-x11opt.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11opt.c' object='libngraphui_la-x11opt.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11opt.lo `test -f 'x11opt.c' || echo '$(srcdir)/'`x11opt.c libngraphui_la-x11print.lo: x11print.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11print.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11print.Tpo -c -o libngraphui_la-x11print.lo `test -f 'x11print.c' || echo '$(srcdir)/'`x11print.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11print.Tpo $(DEPDIR)/libngraphui_la-x11print.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11print.c' object='libngraphui_la-x11print.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11print.lo `test -f 'x11print.c' || echo '$(srcdir)/'`x11print.c libngraphui_la-x11view.lo: x11view.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-x11view.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-x11view.Tpo -c -o libngraphui_la-x11view.lo `test -f 'x11view.c' || echo '$(srcdir)/'`x11view.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-x11view.Tpo $(DEPDIR)/libngraphui_la-x11view.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='x11view.c' object='libngraphui_la-x11view.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-x11view.lo `test -f 'x11view.c' || echo '$(srcdir)/'`x11view.c libngraphui_la-gtk_widget.lo: gtk_widget.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-gtk_widget.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-gtk_widget.Tpo -c -o libngraphui_la-gtk_widget.lo `test -f 'gtk_widget.c' || echo '$(srcdir)/'`gtk_widget.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-gtk_widget.Tpo $(DEPDIR)/libngraphui_la-gtk_widget.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gtk_widget.c' object='libngraphui_la-gtk_widget.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-gtk_widget.lo `test -f 'gtk_widget.c' || echo '$(srcdir)/'`gtk_widget.c libngraphui_la-gtk_ruler.lo: gtk_ruler.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -MT libngraphui_la-gtk_ruler.lo -MD -MP -MF $(DEPDIR)/libngraphui_la-gtk_ruler.Tpo -c -o libngraphui_la-gtk_ruler.lo `test -f 'gtk_ruler.c' || echo '$(srcdir)/'`gtk_ruler.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libngraphui_la-gtk_ruler.Tpo $(DEPDIR)/libngraphui_la-gtk_ruler.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gtk_ruler.c' object='libngraphui_la-gtk_ruler.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libngraphui_la_CFLAGS) $(CFLAGS) -c -o libngraphui_la-gtk_ruler.lo `test -f 'gtk_ruler.c' || echo '$(srcdir)/'`gtk_ruler.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am dir_defs.h: dir_defs.h.in Makefile sh ../../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" dir_defs.h.in # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/src/gtk/gtk_liststore.c0000644000175000017500000006521212241111703015265 00000000000000/* * $Id: gtk_liststore.c,v 1.27 2010-02-03 01:18:12 hito Exp $ */ #include #include "gra.h" #include "gtk_common.h" #include "gtk_liststore.h" #include "x11dialg.h" static gboolean combo_box_separator_func(GtkTreeModel *model, GtkTreeIter *iter, gpointer data) { char *str; int r; gtk_tree_model_get(model, iter, OBJECT_COLUMN_TYPE_STRING, &str, -1); r = ! str; if (str) { g_free(str); } return r; } void init_object_combo_box(GtkWidget *cbox) { GtkCellRenderer *rend; GtkTreeViewRowSeparatorFunc func; func = gtk_combo_box_get_row_separator_func(GTK_COMBO_BOX(cbox)); if (func == NULL) { gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(cbox), combo_box_separator_func, NULL, NULL); } gtk_cell_layout_clear(GTK_CELL_LAYOUT(cbox)); rend = gtk_cell_renderer_toggle_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(cbox), rend, FALSE); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(cbox), rend, "active", OBJECT_COLUMN_TYPE_TOGGLE, "visible", OBJECT_COLUMN_TYPE_TOGGLE_VISIBLE, "radio", OBJECT_COLUMN_TYPE_TOGGLE_IS_RADIO, NULL); rend = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(cbox), rend, FALSE); gtk_cell_layout_add_attribute(GTK_CELL_LAYOUT(cbox), rend, "text", OBJECT_COLUMN_TYPE_STRING); rend = gtk_cell_renderer_pixbuf_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(cbox), rend, FALSE); gtk_cell_layout_add_attribute(GTK_CELL_LAYOUT(cbox), rend, "pixbuf", OBJECT_COLUMN_TYPE_PIXBUF); } static GtkTreeModel * create_object_tree_model(void) { return GTK_TREE_MODEL(gtk_tree_store_new(OBJECT_COLUMN_TYPE_NUM, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_OBJECT, G_TYPE_INT, G_TYPE_INT, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN)); } static GtkWidget * create_object_cbox(void) { GtkTreeModel *model; GtkWidget *cbox; model = create_object_tree_model(); cbox = gtk_combo_box_new_with_model(model); init_object_combo_box(cbox); g_object_set(cbox, "has-frame", FALSE, NULL); return cbox; } void add_separator_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent) { add_text_combo_item_to_cbox(list, iter, parent, -1, -1, NULL, TOGGLE_NONE, FALSE); } void add_font_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id) { struct fontmap *fcur; char *font; int match; getobj(obj, field, id, 0, NULL, &font); fcur = Gra2cairoConf->fontmap_list_root; while (fcur) { match = ! g_strcmp0(font, fcur->fontalias); add_text_combo_item_to_cbox(list, iter, parent, column_id, -1, fcur->fontalias, TOGGLE_RADIO, match); fcur = fcur->next; } } void add_font_style_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id_bold, int column_id_italic, struct objlist *obj, const char *field, int id) { int style; getobj(obj, field, id, 0, NULL, &style); add_text_combo_item_to_cbox(list, iter, parent, column_id_bold, -1, _("Bold"), TOGGLE_CHECK, style & GRA_FONT_STYLE_BOLD); add_text_combo_item_to_cbox(list, iter, parent, column_id_italic, -1, _("Italic"), TOGGLE_CHECK, style & GRA_FONT_STYLE_ITALIC); } void add_text_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, int enum_id, const char *title, enum TOGGLE_TYPE type, int active) { GtkTreeIter locl_iter; if (iter == NULL) { iter = &locl_iter; } gtk_tree_store_append(list, iter, parent); gtk_tree_store_set(list, iter, OBJECT_COLUMN_TYPE_STRING, title, OBJECT_COLUMN_TYPE_PIXBUF, NULL, OBJECT_COLUMN_TYPE_INT, column_id, OBJECT_COLUMN_TYPE_TOGGLE_VISIBLE, type != TOGGLE_NONE, OBJECT_COLUMN_TYPE_TOGGLE_IS_RADIO, type == TOGGLE_RADIO, OBJECT_COLUMN_TYPE_TOGGLE, active, OBJECT_COLUMN_TYPE_PIXBUF_VISIBLE, FALSE, OBJECT_COLUMN_TYPE_ENUM, enum_id, -1); } void add_mark_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id) { int j, type; GtkTreeIter locl_iter; if (iter == NULL) { iter = &locl_iter; } type = -1; getobj(obj, field, id, 0, NULL, &type); for (j = 0; j < MARK_TYPE_NUM; j++) { GdkPixbuf *pixbuf; #if GTK_CHECK_VERSION(3, 0, 0) pixbuf = gdk_pixbuf_get_from_surface(NgraphApp.markpix[j], 0, 0, MARK_PIX_SIZE, MARK_PIX_SIZE); #else pixbuf = gdk_pixbuf_get_from_drawable(NULL, NgraphApp.markpix[j], NULL, 0, 0, 0, 0, -1, -1); #endif if (pixbuf) { char buf[64]; gtk_tree_store_append(list, iter, parent); snprintf(buf, sizeof(buf), "%02d ", j); gtk_tree_store_set(list, iter, OBJECT_COLUMN_TYPE_STRING, buf, OBJECT_COLUMN_TYPE_PIXBUF, pixbuf, OBJECT_COLUMN_TYPE_INT, column_id, OBJECT_COLUMN_TYPE_TOGGLE_VISIBLE, TRUE, OBJECT_COLUMN_TYPE_TOGGLE_IS_RADIO, TRUE, OBJECT_COLUMN_TYPE_TOGGLE, j == type, OBJECT_COLUMN_TYPE_ENUM, j, -1); g_object_unref(pixbuf); } } } void add_enum_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id) { char **enum_array; int state, i; getobj(obj, field, id, 0, NULL, &state); enum_array = (char **) chkobjarglist(obj, field); if (enum_array == NULL) { return; } for (i = 0; enum_array[i] && enum_array[i][0]; i++) { add_text_combo_item_to_cbox(list, iter, parent, column_id, i, _(enum_array[i]), TOGGLE_RADIO, i == state); } } void add_bool_combo_item_to_cbox(GtkTreeStore *list, GtkTreeIter *iter, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id, const char *title) { GtkTreeIter locl_iter; int state; if (iter == NULL) { iter = &locl_iter; } getobj(obj, field, id, 0, NULL, &state); add_text_combo_item_to_cbox(list, iter, parent, column_id, -1, title, TOGGLE_CHECK, state); } void add_line_style_item_to_cbox(GtkTreeStore *list, GtkTreeIter *parent, int column_id, struct objlist *obj, const char *field, int id) { GtkTreeIter iter; int i, active; char *str; sgetobjfield(obj, id, field, NULL, &str, FALSE, FALSE, FALSE); if (str == NULL) { return; } add_text_combo_item_to_cbox(list, &iter, parent, -1, -1, _("Line style"), TOGGLE_NONE, FALSE); for (i = 0; FwLineStyle[i].name; i++) { active = ! strcmp(str, FwLineStyle[i].list); add_text_combo_item_to_cbox(list, NULL, &iter, column_id, i, _(FwLineStyle[i].name), TOGGLE_RADIO, active); } g_free(str); } GtkCellEditable * #if GTK_CHECK_VERSION(3, 0, 0) start_editing_obj(GtkCellRenderer *cell, GdkEvent *event, GtkWidget *widget, const gchar *path, const GdkRectangle *background_area, const GdkRectangle *cell_area, GtkCellRendererState flags) #else start_editing_obj(GtkCellRenderer *cell, GdkEvent *event, GtkWidget *widget, const gchar *path, GdkRectangle *background_area, GdkRectangle *cell_area, GtkCellRendererState flags) #endif { return GTK_CELL_EDITABLE(create_object_cbox()); } static GtkTreeViewColumn * create_column(n_list_store *list, int i) { GtkCellRenderer *renderer; GtkTreeViewColumn *col; GtkTreeModel *model; switch (list[i].type) { case G_TYPE_BOOLEAN: renderer = gtk_cell_renderer_toggle_new(); col = gtk_tree_view_column_new_with_attributes(_(list[i].title), renderer, "active", i, NULL); if (list[i].editable) { g_object_set(renderer, "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL); g_object_set_data(G_OBJECT(renderer), "user-data", &list[i]); } break; case G_TYPE_INT: case G_TYPE_UINT: case G_TYPE_LONG: case G_TYPE_ULONG: case G_TYPE_INT64: case G_TYPE_UINT64: case G_TYPE_FLOAT: case G_TYPE_DOUBLE: #if GTK_CHECK_VERSION(3, 8, 0) || ! GTK_CHECK_VERSION(3, 0, 0) renderer = gtk_cell_renderer_spin_new(); #else renderer = gtk_cell_renderer_text_new(); #endif col = gtk_tree_view_column_new_with_attributes(_(list[i].title), renderer, "text", i, NULL); gtk_tree_view_column_set_resizable(col, TRUE); g_object_set((GObject *) renderer, "xalign", (gfloat) 1.0, NULL); if (list[i].editable) { if (list[i].type == G_TYPE_DOUBLE || list[i].type == G_TYPE_FLOAT) { g_object_set((GObject *) renderer, "editable", list[i].editable, #if GTK_CHECK_VERSION(3, 8, 0) || ! GTK_CHECK_VERSION(3, 0, 0) "adjustment", gtk_adjustment_new(0, list[i].min / 100.0, list[i].max / 100.0, list[i].inc / 100.0, list[i].page / 100.0, 0), "digits", 2, #endif NULL); g_object_set_data(G_OBJECT(renderer), "user-data", &list[i]); } else { g_object_set((GObject *) renderer, "editable", list[i].editable, #if GTK_CHECK_VERSION(3, 8, 0) || ! GTK_CHECK_VERSION(3, 0, 0) "adjustment", gtk_adjustment_new(0, list[i].min, list[i].max, list[i].inc, list[i].page, 0), "digits", 0, #endif NULL); g_object_set_data(G_OBJECT(renderer), "user-data", &list[i]); } } if (list[i].editable) { gtk_tree_view_column_set_expand(col, TRUE); } break; case G_TYPE_OBJECT: renderer = gtk_cell_renderer_pixbuf_new(); g_object_set((GObject *) renderer, "mode", (list[i].editable) ? GTK_CELL_RENDERER_MODE_EDITABLE : GTK_CELL_RENDERER_MODE_INERT, "sensitive", list[i].editable, NULL); g_object_set_data(G_OBJECT(renderer), "user-data", &list[i]); GTK_CELL_RENDERER_GET_CLASS(renderer)->start_editing = start_editing_obj; col = gtk_tree_view_column_new_with_attributes(_(list[i].title), renderer, "pixbuf", i, NULL); break; case G_TYPE_PARAM: renderer = gtk_cell_renderer_combo_new(); model = create_object_tree_model(); g_object_set((GObject *) renderer, "has-entry", FALSE, "model", model, "text-column", OBJECT_COLUMN_TYPE_STRING, "editable", list[i].editable, NULL); g_object_set_data(G_OBJECT(renderer), "user-data", &list[i]); col = gtk_tree_view_column_new_with_attributes(_(list[i].title), renderer, "text", i, NULL); break; case G_TYPE_ENUM: renderer = gtk_cell_renderer_combo_new(); model = GTK_TREE_MODEL(gtk_list_store_new(1, G_TYPE_STRING)); g_object_set((GObject *) renderer, "has-entry", FALSE, "model", model, "text-column", 0, "editable", list[i].editable, NULL); g_object_set_data(G_OBJECT(renderer), "user-data", &list[i]); col = gtk_tree_view_column_new_with_attributes(_(list[i].title), renderer, "text", i, NULL); break; case G_TYPE_STRING: default: renderer = gtk_cell_renderer_text_new(); g_object_set((GObject *) renderer, "editable", list[i].editable, "ellipsize", list[i].ellipsize, NULL); g_object_set_data(G_OBJECT(renderer), "user-data", &list[i]); col = gtk_tree_view_column_new_with_attributes(_(list[i].title), renderer, "text", i, NULL); gtk_tree_view_column_set_resizable(col, TRUE); if (list[i].ellipsize != PANGO_ELLIPSIZE_NONE || list[i].editable) { gtk_tree_view_column_set_expand(col, TRUE); } } return col; } void list_store_set_align(GtkWidget *tview, int n, double align) { GtkTreeViewColumn *col; GList *list; col = gtk_tree_view_get_column(GTK_TREE_VIEW(tview), n); if (col == NULL) { return; } list = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(col)); if (list == NULL || list->data == NULL) { return; } g_object_set((GObject *) list->data, "xalign", (gfloat) align, NULL); g_list_free(list); } static GtkWidget * create_tree_view(int n, n_list_store *list, int tree) { GType *tarray; GtkTreeModel *lstore; GtkWidget *tview; GtkTreeViewColumn *col; GtkTreeSelection *sel; int i; if (n < 1 || list == NULL) return NULL; tarray = g_malloc(sizeof(*tarray) * n); if (tarray == NULL) return NULL; for (i = 0; i < n; i++) { if (list[i].type == G_TYPE_DOUBLE || list[i].type == G_TYPE_ENUM || list[i].type == G_TYPE_PARAM) { tarray[i] = G_TYPE_STRING; } else { tarray[i] = list[i].type; } list[i].edited_id = 0; } if (tree) { lstore = GTK_TREE_MODEL(gtk_tree_store_newv(n, tarray)); } else { lstore = GTK_TREE_MODEL(gtk_list_store_newv(n, tarray)); } g_free(tarray); tview = gtk_tree_view_new_with_model(lstore); gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tview), TRUE); gtk_tree_view_set_rubber_banding(GTK_TREE_VIEW(tview), TRUE); gtk_tree_view_set_grid_lines(GTK_TREE_VIEW(tview), GTK_TREE_VIEW_GRID_LINES_VERTICAL); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tview)); gtk_tree_selection_set_mode(sel, GTK_SELECTION_SINGLE); for (i = 0; i < n; i++) { if (list[i].visible) { col = create_column(list, i); gtk_tree_view_column_set_visible(col, list[i].visible); gtk_tree_view_append_column(GTK_TREE_VIEW(tview), col); } } gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tview), n > 1); return tview; } void list_store_set_sort_all(GtkWidget *tview) { GList *list, *ptr; int i; GtkTreeViewColumn *column; list = gtk_tree_view_get_columns(GTK_TREE_VIEW(tview)); if (list == NULL) return; for (ptr = list, i = 0; ptr; ptr = ptr->next, i++) { column = GTK_TREE_VIEW_COLUMN(ptr->data); gtk_tree_view_column_set_sort_column_id(column, i); gtk_tree_view_column_set_clickable(column, TRUE); } gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tview), TRUE); g_list_free(list); } void list_store_set_sort_column(GtkWidget *tview, int col) { GList *list, *ptr; list = gtk_tree_view_get_columns(GTK_TREE_VIEW(tview)); if (list == NULL) return; ptr = g_list_nth(list, col); if (ptr) { GtkTreeViewColumn *column = GTK_TREE_VIEW_COLUMN(ptr->data); gtk_tree_view_column_set_sort_column_id(column, col); gtk_tree_view_column_set_clickable(column, TRUE); } gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tview), TRUE); g_list_free(list); } GtkWidget * list_store_create(int n, n_list_store *list) { return create_tree_view(n, list, FALSE); } GtkWidget * tree_store_create(int n, n_list_store *list) { return create_tree_view(n, list, TRUE); } int list_store_get_int(GtkWidget *w, GtkTreeIter *iter, int col) { GtkTreeModel *model; int v = 0; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_tree_model_get(model, iter, col, &v, -1); return v; } void list_store_set_int(GtkWidget *w, GtkTreeIter *iter, int col, int v) { GtkListStore *list; list = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(w))); gtk_list_store_set(list, iter, col, v, -1); } void tree_store_set_int(GtkWidget *w, GtkTreeIter *iter, int col, int v) { GtkTreeStore *list; list = GTK_TREE_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(w))); gtk_tree_store_set(list, iter, col, v, -1); } int list_store_path_get_int(GtkWidget *w, GtkTreePath *path, int col, int *val) { GtkTreeModel *model; gboolean found; GtkTreeIter iter; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); found = gtk_tree_model_get_iter(model, &iter, path); if (! found) return 1; gtk_tree_model_get(model, &iter, col, val, -1); return 0; } void list_store_set_double(GtkWidget *w, GtkTreeIter *iter, int col, double v) { char buf[128]; snprintf(buf, sizeof(buf), "%.2f", v); list_store_set_string(w, iter, col, buf); } void tree_store_set_double(GtkWidget *w, GtkTreeIter *iter, int col, double v) { char buf[128]; snprintf(buf, sizeof(buf), "%.2f", v); tree_store_set_string(w, iter, col, buf); } gboolean list_store_get_boolean(GtkWidget *w, GtkTreeIter *iter, int col) { GtkTreeModel *model; gboolean v; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_tree_model_get(model, iter, col, &v, -1); return v; } void list_store_set_boolean(GtkWidget *w, GtkTreeIter *iter, int col, gboolean v) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_list_store_set(GTK_LIST_STORE(model), iter, col, v, -1); } void tree_store_set_boolean(GtkWidget *w, GtkTreeIter *iter, int col, gboolean v) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_tree_store_set(GTK_TREE_STORE(model), iter, col, v, -1); } char * list_store_get_string(GtkWidget *w, GtkTreeIter *iter, int col) { GtkTreeModel *model; char *v; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_tree_model_get(model, iter, col, &v, -1); return v; } char * list_store_path_get_string(GtkWidget *w, GtkTreePath *path, int col) { GtkTreeModel *model; gboolean found; GtkTreeIter iter; char *v; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); found = gtk_tree_model_get_iter(model, &iter, path); if (! found) return NULL; gtk_tree_model_get(model, &iter, col, &v, -1); return v; } void list_store_set_string(GtkWidget *w, GtkTreeIter *iter, int col, const char *v) { GtkListStore *list; list = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(w))); gtk_list_store_set(list, iter, col, v, -1); } void list_store_path_set_string(GtkWidget *w, GtkTreePath *path, int col, const char *v) { GtkListStore *list; gboolean found; GtkTreeIter iter; list = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(w))); found = gtk_tree_model_get_iter(GTK_TREE_MODEL(list), &iter, path); if (! found) return; gtk_list_store_set(list, &iter, col, v, -1); } void tree_store_set_string(GtkWidget *w, GtkTreeIter *iter, int col, const char *v) { GtkTreeStore *list; list = GTK_TREE_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(w))); gtk_tree_store_set(list, iter, col, v, -1); } void list_store_set_pixbuf(GtkWidget *w, GtkTreeIter *iter, int col, GdkPixbuf *v) { GtkListStore *list; list = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(w))); gtk_list_store_set(list, iter, col, v, -1); } GdkPixbuf * list_store_get_pixbuf(GtkWidget *w, GtkTreeIter *iter, int col) { GtkTreeModel *model; GObject *v; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_tree_model_get(model, iter, col, &v, -1); return GDK_PIXBUF(v); } void list_store_set_val(GtkWidget *w, GtkTreeIter *iter, int col, GType type, void *ptr) { int v; gboolean b; char *s; switch (type) { case G_TYPE_BOOLEAN: b = *((int *)ptr); list_store_set_boolean(w, iter, col, b); break; case G_TYPE_INT: v = *((int *)ptr); list_store_set_int(w, iter, col, v); break; case G_TYPE_STRING: s = (char *)ptr; list_store_set_string(w, iter, col, s); break; } } void tree_store_set_val(GtkWidget *w, GtkTreeIter *iter, int col, GType type, void *ptr) { int v; gboolean b; char *s; switch (type) { case G_TYPE_BOOLEAN: b = *((int *)ptr); tree_store_set_boolean(w, iter, col, b); break; case G_TYPE_INT: v = *((int *)ptr); tree_store_set_int(w, iter, col, v); break; case G_TYPE_STRING: s = (char *)ptr; tree_store_set_string(w, iter, col, s); break; } } void list_store_clear(GtkWidget *w) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_list_store_clear(GTK_LIST_STORE(model)); } void tree_store_clear(GtkWidget *w) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_tree_store_clear(GTK_TREE_STORE(model)); } void list_store_append(GtkWidget *w, GtkTreeIter *iter) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_list_store_append(GTK_LIST_STORE(model), iter); } void tree_store_append(GtkWidget *w, GtkTreeIter *iter, GtkTreeIter *parent) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_tree_store_append(GTK_TREE_STORE(model), iter, parent); } void tree_store_prepend(GtkWidget *w, GtkTreeIter *iter, GtkTreeIter *parent) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); gtk_tree_store_prepend(GTK_TREE_STORE(model), iter, parent); } gboolean list_store_get_iter_first(GtkWidget *w, GtkTreeIter *iter) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); return gtk_tree_model_get_iter_first(model, iter); } gboolean list_store_iter_next(GtkWidget *w, GtkTreeIter *iter) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); return gtk_tree_model_iter_next(GTK_TREE_MODEL(model), iter); } gboolean tree_store_get_iter_children(GtkWidget *w, GtkTreeIter *child, GtkTreeIter *iter) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); return gtk_tree_model_iter_children(model, child, iter); } gboolean list_store_get_selected_iter(GtkWidget *w, GtkTreeIter *iter) { GtkTreeSelection *sel; sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); return gtk_tree_selection_get_selected(sel, NULL, iter); } int list_store_get_selected_int(GtkWidget *w, int col) { GtkTreeIter iter; if (! list_store_get_selected_iter(w, &iter)) return -1; return list_store_get_int(w, &iter, col); } char * list_store_get_selected_string(GtkWidget *w, int col) { GtkTreeIter iter; if (! list_store_get_selected_iter(w, &iter)) return NULL; return list_store_get_string(w, &iter, col); } gboolean tree_store_get_selected_nth(GtkWidget *w, int *n, int *m) { GtkTreeSelection *sel; GtkTreeIter iter; GtkTreeModel *model; GtkTreePath* path; int depth, *ary; gboolean state; sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); state = gtk_tree_selection_get_selected(sel, &model, &iter); if (! state) return FALSE; path = gtk_tree_model_get_path(model, &iter); depth = gtk_tree_path_get_depth(path); ary = gtk_tree_path_get_indices(path); *n = ary[0]; if (depth < 2) { *m = -1; } else { *m = ary[1]; } gtk_tree_path_free(path); return TRUE; } int list_store_get_selected_index(GtkWidget *w) { int m, n; gboolean state; state = tree_store_get_selected_nth(w, &n, &m); if (state) return n; return -1; } gboolean list_store_get_selected_nth(GtkWidget *w, int *n) { int m; return tree_store_get_selected_nth(w, n, &m); } void list_store_select_all(GtkWidget *w) { GtkTreeSelection *sel; sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); gtk_tree_selection_select_all(sel); } void list_store_select_iter(GtkWidget *w, GtkTreeIter *iter) { GtkTreeModel *model; GtkTreeSelection *sel; GtkTreePath *path; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); gtk_tree_selection_select_iter(sel, iter); path = gtk_tree_model_get_path(model, iter); gtk_tree_view_set_cursor(GTK_TREE_VIEW(w), path, NULL, FALSE); gtk_tree_path_free(path); } void list_store_select_int(GtkWidget *w, int col, int id) { GtkTreeIter iter; GtkTreeModel *model; gboolean state; int val; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); state = gtk_tree_model_get_iter_first(model, &iter); while (state) { val = list_store_get_int(w, &iter, col); if (val == id) { list_store_select_iter(w, &iter); break; } state = gtk_tree_model_iter_next(model, &iter); } } static void select_path_str(GtkWidget *w, char *str) { GtkTreePath *path; GtkTreeSelection *sel; sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); path = gtk_tree_path_new_from_string(str); if (! path) return; gtk_tree_selection_select_path(sel, path); gtk_tree_view_set_cursor(GTK_TREE_VIEW(w), path, NULL, FALSE); /* this line is commented out before (I forgot the reason). */ gtk_tree_path_free(path); } static void select_range_path_str(GtkWidget *w, char *from, char *to) { GtkTreePath *path1, *path2; GtkTreeSelection *sel; sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); path1 = gtk_tree_path_new_from_string(from); if (! path1) return; path2 = gtk_tree_path_new_from_string(to); if (! path2) { gtk_tree_path_free(path1); return; } gtk_tree_selection_select_range(sel, path1, path2); gtk_tree_path_free(path2); gtk_tree_path_free(path1); } void list_store_select_nth(GtkWidget *w, int n) { char buf[1024]; snprintf(buf, sizeof(buf), "%d", n); select_path_str(w, buf); } void tree_store_select_nth(GtkWidget *w, int n, int m) { char buf[1024]; snprintf(buf, sizeof(buf), "%d:%d", n, m); select_path_str(w, buf); } void list_store_multi_select_nth(GtkWidget *w, int n, int m) { char buf1[1024], buf2[1024]; snprintf(buf1, sizeof(buf1), "%d", n); snprintf(buf2, sizeof(buf2), "%d", m); select_range_path_str(w, buf1, buf2); } int list_store_get_num(GtkWidget *w) { return tree_store_get_child_num(w, NULL); } int tree_store_get_child_num(GtkWidget *w, GtkTreeIter *iter) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); return gtk_tree_model_iter_n_children(model, iter); } void list_store_set_selection_mode(GtkWidget *w, GtkSelectionMode mode) { GtkTreeSelection *gsel; gsel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); gtk_tree_selection_set_mode(gsel, mode); } void list_store_select_all_cb(GtkButton *w, gpointer client_data) { list_store_select_all(GTK_WIDGET(client_data)); } void list_store_remove_selected_cb(GtkWidget *w, gpointer client_data) { GtkTreeSelection *sel; GList *selected, *data; GtkTreeModel *model; gboolean found; GtkTreeIter iter; GtkTreePath *first_path = NULL; sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(client_data)); selected = gtk_tree_selection_get_selected_rows(sel, &model); if (selected == NULL) return; for (data = g_list_last(selected); data; data = data->prev) { found = gtk_tree_model_get_iter(model, &iter, data->data); if (found) { gtk_list_store_remove(GTK_LIST_STORE(model), &iter); } first_path = data->data; } if (first_path) { if (! gtk_tree_model_get_iter(model, &iter, first_path)) { gtk_tree_path_prev(first_path); } gtk_tree_view_set_cursor(GTK_TREE_VIEW(client_data), first_path, NULL, FALSE); } g_list_foreach(selected, free_tree_path_cb, NULL); g_list_free(selected); } void free_tree_path_cb(gpointer data, gpointer user_data) { gtk_tree_path_free(data); } void tree_store_selected_toggle_expand(GtkWidget *w) { GtkTreeIter iter; GtkTreePath *path; GtkTreeModel *model; if (! list_store_get_selected_iter(w, &iter)) return; model = gtk_tree_view_get_model(GTK_TREE_VIEW(w)); path = gtk_tree_model_get_path(model, &iter); if (gtk_tree_view_row_expanded(GTK_TREE_VIEW(w), path)) { gtk_tree_view_collapse_row(GTK_TREE_VIEW(w), path); } else { gtk_tree_view_expand_row(GTK_TREE_VIEW(w), path, FALSE); } } int tree_view_get_selected_row_int_from_path(GtkWidget *view, gchar *path, GtkTreeIter *iter, int col) { GtkTreeModel *model; int sel; model = gtk_tree_view_get_model(GTK_TREE_VIEW(view)); if (! gtk_tree_model_get_iter_from_string(model, iter, path)) { return -1; } list_store_select_iter(GTK_WIDGET(view), iter); gtk_tree_model_get(model, iter, col, &sel, -1); return sel; } ngraph-gtk-6.06.13/src/gtk/x11lgnd.h0000644000175000017500000000321612241111703013647 00000000000000/* * $Id: x11lgnd.h,v 1.1.1.1 2008-05-29 09:37:33 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ typedef void (* legend_cb_func)(GtkMenuItem *w, gpointer client_data); void LegendWinUpdate(int clear); void CmLineUpdate(GtkAction *w, gpointer client_data); void CmLineDel(GtkAction *w, gpointer client_data); void CmRectUpdate(GtkAction *w, gpointer client_data); void CmRectDel(GtkAction *w, gpointer client_data); void CmArcUpdate(GtkAction *w, gpointer client_data); void CmArcDel(GtkAction *w, gpointer client_data); void CmMarkUpdate(GtkAction *w, gpointer client_data); void CmMarkDel(GtkAction *w, gpointer client_data); void CmTextUpdate(GtkAction *w, gpointer client_data); void CmTextDel(GtkAction *w, gpointer client_data); void CmLegendWindow(GtkToggleAction *action, gpointer client_data); void CmOptionTextDef(GtkAction *w, gpointer client_data); ngraph-gtk-6.06.13/src/gtk/ogra2emf.c0000644000175000017500000012014312241111703014065 00000000000000#include "common.h" #ifdef WINDOWS #include #include #include #include #include #include #include #include #include #include "gtk_common.h" #include "object.h" #include "nstring.h" #include "ioutil.h" #include "shell.h" #include "strconv.h" #include "gra.h" #include "ogra2cairo.h" #define NAME "gra2emf" #define PARENT "gra2" #define OVERSION "1.00.00" #define DEFAULT_FONT "Sans-serif" #define USE_LINE_TO 1 #ifndef MPI #define MPI 3.14159265358979323846 #endif #define ERRFOPEN 100 #define ERREMF 101 #define USE_EnumFontFamiliesExW 0 /* FixMe: the program will be crashed when use EnumLogFontExW */ static char *gra2emf_errorlist[]={ "I/O error: open file", "EMF error", }; #define ERRNUM (sizeof(gra2emf_errorlist) / sizeof(*gra2emf_errorlist)) #define CHAR_SET_NUM 32 struct gra2emf_fontmap { char *name; int char_set[CHAR_SET_NUM + 1]; struct gra2emf_fontmap *next; }; struct gra2emf_local { HDC hdc, hdc_dummy; int r, g, b, x, y, offsetx, offsety; char *fontalias, *fontname; int font_style, line_join, line_cap, line_width, line_style_num, symbol; int update_pen_attribute, update_brush_attribute; double fontdir, fontcos, fontsin, fontspace, fontsize; DWORD *line_style; #if USE_LINE_TO int line; #else struct narray line; #endif NHASH fontmap; HPEN null_pen, the_pen; HBRUSH the_brush; }; static void draw_lines(struct gra2emf_local *local); static int close_emf(struct gra2emf_local *local, const char *fname); static int #if USE_EnumFontFamiliesExW enum_font_cb(ENUMLOGFONTEXW *lpelfe, NEWTEXTMETRICEXW *lpntme, DWORD FontType, LPARAM lParam) #else enum_font_cb(ENUMLOGFONTEX *lpelfe, NEWTEXTMETRICEX *lpntme, DWORD FontType, LPARAM lParam) #endif { int char_set, i; struct gra2emf_fontmap *fontmap; if (lpelfe == NULL || lpntme == NULL || lParam == 0) { return 0; } if (FontType == 0) { return 0; /* this check may necessary to avoid crash on Windows8 */ } if (FontType & ~(TRUETYPE_FONTTYPE | RASTER_FONTTYPE | DEVICE_FONTTYPE)) { return 0; /* this check may necessary to avoid crash on Windows8 */ } if (lpntme->ntmTm.tmWeight != FW_NORMAL || lpntme->ntmTm.tmItalic) { return 1; } fontmap = (struct gra2emf_fontmap *) lParam; char_set = lpntme->ntmTm.tmCharSet; for (i = 0; i < CHAR_SET_NUM; i++) { if (fontmap->char_set[i] < 0) { fontmap->char_set[i] = char_set; fontmap->char_set[i + 1] = -1; break; } } return 1; } static int get_char_set(gunichar ch) { GUnicodeScript script; int char_set; script = g_unichar_get_script(ch); switch (script) { case G_UNICODE_SCRIPT_COMMON: char_set = ANSI_CHARSET; break; case G_UNICODE_SCRIPT_INHERITED: char_set = DEFAULT_CHARSET; break; case G_UNICODE_SCRIPT_ARABIC: char_set = ARABIC_CHARSET; break; case G_UNICODE_SCRIPT_ARMENIAN: char_set = EASTEUROPE_CHARSET; break; case G_UNICODE_SCRIPT_BENGALI: case G_UNICODE_SCRIPT_BOPOMOFO: case G_UNICODE_SCRIPT_CHEROKEE: case G_UNICODE_SCRIPT_COPTIC: char_set = DEFAULT_CHARSET; break; case G_UNICODE_SCRIPT_CYRILLIC: char_set = RUSSIAN_CHARSET; break; case G_UNICODE_SCRIPT_DESERET: case G_UNICODE_SCRIPT_DEVANAGARI: case G_UNICODE_SCRIPT_ETHIOPIC: case G_UNICODE_SCRIPT_GEORGIAN: case G_UNICODE_SCRIPT_GOTHIC: char_set = DEFAULT_CHARSET; break; case G_UNICODE_SCRIPT_GREEK: char_set = GREEK_CHARSET; break; case G_UNICODE_SCRIPT_GUJARATI: case G_UNICODE_SCRIPT_GURMUKHI: char_set = DEFAULT_CHARSET; break; case G_UNICODE_SCRIPT_HAN: char_set = CHINESEBIG5_CHARSET; char_set = GB2312_CHARSET; char_set = SHIFTJIS_CHARSET; break; case G_UNICODE_SCRIPT_HANGUL: char_set = HANGEUL_CHARSET; break; case G_UNICODE_SCRIPT_HEBREW: char_set = HEBREW_CHARSET; break; case G_UNICODE_SCRIPT_HIRAGANA: char_set = SHIFTJIS_CHARSET; break; case G_UNICODE_SCRIPT_KANNADA: char_set = DEFAULT_CHARSET; break; case G_UNICODE_SCRIPT_KATAKANA: char_set = SHIFTJIS_CHARSET; break; case G_UNICODE_SCRIPT_KHMER: case G_UNICODE_SCRIPT_LAO: char_set = DEFAULT_CHARSET; break; case G_UNICODE_SCRIPT_LATIN: char_set = ANSI_CHARSET; break; case G_UNICODE_SCRIPT_MALAYALAM: case G_UNICODE_SCRIPT_MONGOLIAN: case G_UNICODE_SCRIPT_MYANMAR: case G_UNICODE_SCRIPT_OGHAM: case G_UNICODE_SCRIPT_OLD_ITALIC: case G_UNICODE_SCRIPT_ORIYA: case G_UNICODE_SCRIPT_RUNIC: case G_UNICODE_SCRIPT_SINHALA: case G_UNICODE_SCRIPT_SYRIAC: case G_UNICODE_SCRIPT_TAMIL: case G_UNICODE_SCRIPT_TELUGU: case G_UNICODE_SCRIPT_THAANA: char_set = DEFAULT_CHARSET; break; case G_UNICODE_SCRIPT_THAI: char_set = THAI_CHARSET; break; case G_UNICODE_SCRIPT_TIBETAN: case G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL: case G_UNICODE_SCRIPT_YI: case G_UNICODE_SCRIPT_TAGALOG: case G_UNICODE_SCRIPT_HANUNOO: case G_UNICODE_SCRIPT_BUHID: case G_UNICODE_SCRIPT_TAGBANWA: case G_UNICODE_SCRIPT_BRAILLE: case G_UNICODE_SCRIPT_CYPRIOT: case G_UNICODE_SCRIPT_LIMBU: case G_UNICODE_SCRIPT_OSMANYA: case G_UNICODE_SCRIPT_SHAVIAN: case G_UNICODE_SCRIPT_LINEAR_B: case G_UNICODE_SCRIPT_TAI_LE: case G_UNICODE_SCRIPT_UGARITIC: case G_UNICODE_SCRIPT_NEW_TAI_LUE: case G_UNICODE_SCRIPT_BUGINESE: case G_UNICODE_SCRIPT_GLAGOLITIC: case G_UNICODE_SCRIPT_TIFINAGH: case G_UNICODE_SCRIPT_SYLOTI_NAGRI: case G_UNICODE_SCRIPT_OLD_PERSIAN: case G_UNICODE_SCRIPT_KHAROSHTHI: case G_UNICODE_SCRIPT_UNKNOWN: case G_UNICODE_SCRIPT_BALINESE: case G_UNICODE_SCRIPT_CUNEIFORM: case G_UNICODE_SCRIPT_PHOENICIAN: case G_UNICODE_SCRIPT_PHAGS_PA: case G_UNICODE_SCRIPT_NKO: case G_UNICODE_SCRIPT_KAYAH_LI: case G_UNICODE_SCRIPT_LEPCHA: case G_UNICODE_SCRIPT_REJANG: case G_UNICODE_SCRIPT_SUNDANESE: case G_UNICODE_SCRIPT_SAURASHTRA: case G_UNICODE_SCRIPT_CHAM: case G_UNICODE_SCRIPT_OL_CHIKI: case G_UNICODE_SCRIPT_VAI: case G_UNICODE_SCRIPT_CARIAN: case G_UNICODE_SCRIPT_LYCIAN: case G_UNICODE_SCRIPT_LYDIAN: case G_UNICODE_SCRIPT_AVESTAN: case G_UNICODE_SCRIPT_BAMUM: case G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS: case G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC: case G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI: case G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN: case G_UNICODE_SCRIPT_JAVANESE: case G_UNICODE_SCRIPT_KAITHI: case G_UNICODE_SCRIPT_LISU: case G_UNICODE_SCRIPT_MEETEI_MAYEK: case G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN: char_set = DEFAULT_CHARSET; break; default: char_set = DEFAULT_CHARSET; } /* 0: 'ANSI_CHARSET'; 1: 'DEFAULT_CHARSET'; 2: 'SYMBOL_CHARSET'; 77: 'MAC_CHARSET'; 128: 'SHIFTJIS_CHARSET'; 129: 'HANGEUL_CHARSET'; 130: 'JOHAB_CHARSET'; 134: 'GB2312_CHARSET'; 136: 'CHINESEBIG5_CHARSET'; 161: 'GREEK_CHARSET'; 162: 'TURKISH_CHARSET'; 163: 'VIETNAMESE_CHARSET'; 177: 'HEBREW_CHARSET'; 178: 'ARABIC_CHARSET'; 186: 'BALTIC_CHARSET'; 204: 'RUSSIAN_CHARSET'; 222: 'THAI_CHARSET'; 238: 'EASTEUROPE_CHARSET'; 255: 'OEM_CHARSET '; */ #if 0 { char *script_name; char str[16], *sstr; int l; switch (script) { case G_UNICODE_SCRIPT_COMMON: script_name = "G_UNICODE_SCRIPT_COMMON"; break; case G_UNICODE_SCRIPT_INHERITED: script_name = "G_UNICODE_SCRIPT_INHERITED"; break; case G_UNICODE_SCRIPT_ARABIC: script_name = "G_UNICODE_SCRIPT_ARABIC"; break; case G_UNICODE_SCRIPT_ARMENIAN: script_name = "G_UNICODE_SCRIPT_ARMENIAN"; break; case G_UNICODE_SCRIPT_BENGALI: script_name = "G_UNICODE_SCRIPT_BENGALI"; break; case G_UNICODE_SCRIPT_BOPOMOFO: script_name = "G_UNICODE_SCRIPT_BOPOMOFO"; break; case G_UNICODE_SCRIPT_CHEROKEE: script_name = "G_UNICODE_SCRIPT_CHEROKEE"; break; case G_UNICODE_SCRIPT_COPTIC: script_name = "G_UNICODE_SCRIPT_COPTIC"; break; case G_UNICODE_SCRIPT_CYRILLIC: script_name = "G_UNICODE_SCRIPT_CYRILLIC"; break; case G_UNICODE_SCRIPT_DESERET: script_name = "G_UNICODE_SCRIPT_DESERET"; break; case G_UNICODE_SCRIPT_DEVANAGARI: script_name = "G_UNICODE_SCRIPT_DEVANAGARI"; break; case G_UNICODE_SCRIPT_ETHIOPIC: script_name = "G_UNICODE_SCRIPT_ETHIOPIC"; break; case G_UNICODE_SCRIPT_GEORGIAN: script_name = "G_UNICODE_SCRIPT_GEORGIAN"; break; case G_UNICODE_SCRIPT_GOTHIC: script_name = "G_UNICODE_SCRIPT_GOTHIC"; break; case G_UNICODE_SCRIPT_GREEK: script_name = "G_UNICODE_SCRIPT_GREEK"; break; case G_UNICODE_SCRIPT_GUJARATI: script_name = "G_UNICODE_SCRIPT_GUJARATI"; break; case G_UNICODE_SCRIPT_GURMUKHI: script_name = "G_UNICODE_SCRIPT_GURMUKHI"; break; case G_UNICODE_SCRIPT_HAN: script_name = "G_UNICODE_SCRIPT_HAN"; break; case G_UNICODE_SCRIPT_HANGUL: script_name = "G_UNICODE_SCRIPT_HANGUL"; break; case G_UNICODE_SCRIPT_HEBREW: script_name = "G_UNICODE_SCRIPT_HEBREW"; break; case G_UNICODE_SCRIPT_HIRAGANA: script_name = "G_UNICODE_SCRIPT_HIRAGANA"; break; case G_UNICODE_SCRIPT_KANNADA: script_name = "G_UNICODE_SCRIPT_KANNADA"; break; case G_UNICODE_SCRIPT_KATAKANA: script_name = "G_UNICODE_SCRIPT_KATAKANA"; break; case G_UNICODE_SCRIPT_KHMER: script_name = "G_UNICODE_SCRIPT_KHMER"; break; case G_UNICODE_SCRIPT_LAO: script_name = "G_UNICODE_SCRIPT_LAO"; break; case G_UNICODE_SCRIPT_LATIN: script_name = "G_UNICODE_SCRIPT_LATIN"; break; case G_UNICODE_SCRIPT_MALAYALAM: script_name = "G_UNICODE_SCRIPT_MALAYALAM"; break; case G_UNICODE_SCRIPT_MONGOLIAN: script_name = "G_UNICODE_SCRIPT_MONGOLIAN"; break; case G_UNICODE_SCRIPT_MYANMAR: script_name = "G_UNICODE_SCRIPT_MYANMAR"; break; case G_UNICODE_SCRIPT_OGHAM: script_name = "G_UNICODE_SCRIPT_OGHAM"; break; case G_UNICODE_SCRIPT_OLD_ITALIC: script_name = "G_UNICODE_SCRIPT_OLD_ITALIC"; break; case G_UNICODE_SCRIPT_ORIYA: script_name = "G_UNICODE_SCRIPT_ORIYA"; break; case G_UNICODE_SCRIPT_RUNIC: script_name = "G_UNICODE_SCRIPT_RUNIC"; break; case G_UNICODE_SCRIPT_SINHALA: script_name = "G_UNICODE_SCRIPT_SINHALA"; break; case G_UNICODE_SCRIPT_SYRIAC: script_name = "G_UNICODE_SCRIPT_SYRIAC"; break; case G_UNICODE_SCRIPT_TAMIL: script_name = "G_UNICODE_SCRIPT_TAMIL"; break; case G_UNICODE_SCRIPT_TELUGU: script_name = "G_UNICODE_SCRIPT_TELUGU"; break; case G_UNICODE_SCRIPT_THAANA: script_name = "G_UNICODE_SCRIPT_THAANA"; break; case G_UNICODE_SCRIPT_THAI: script_name = "G_UNICODE_SCRIPT_THAI"; break; case G_UNICODE_SCRIPT_TIBETAN: script_name = "G_UNICODE_SCRIPT_TIBETAN"; break; case G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL: script_name = "G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL"; break; case G_UNICODE_SCRIPT_YI: script_name = "G_UNICODE_SCRIPT_YI"; break; case G_UNICODE_SCRIPT_TAGALOG: script_name = "G_UNICODE_SCRIPT_TAGALOG"; break; case G_UNICODE_SCRIPT_HANUNOO: script_name = "G_UNICODE_SCRIPT_HANUNOO"; break; case G_UNICODE_SCRIPT_BUHID: script_name = "G_UNICODE_SCRIPT_BUHID"; break; case G_UNICODE_SCRIPT_TAGBANWA: script_name = "G_UNICODE_SCRIPT_TAGBANWA"; break; case G_UNICODE_SCRIPT_BRAILLE: script_name = "G_UNICODE_SCRIPT_BRAILLE"; break; case G_UNICODE_SCRIPT_CYPRIOT: script_name = "G_UNICODE_SCRIPT_CYPRIOT"; break; case G_UNICODE_SCRIPT_LIMBU: script_name = "G_UNICODE_SCRIPT_LIMBU"; break; case G_UNICODE_SCRIPT_OSMANYA: script_name = "G_UNICODE_SCRIPT_OSMANYA"; break; case G_UNICODE_SCRIPT_SHAVIAN: script_name = "G_UNICODE_SCRIPT_SHAVIAN"; break; case G_UNICODE_SCRIPT_LINEAR_B: script_name = "G_UNICODE_SCRIPT_LINEAR_B"; break; case G_UNICODE_SCRIPT_TAI_LE: script_name = "G_UNICODE_SCRIPT_TAI_LE"; break; case G_UNICODE_SCRIPT_UGARITIC: script_name = "G_UNICODE_SCRIPT_UGARITIC"; break; case G_UNICODE_SCRIPT_NEW_TAI_LUE: script_name = "G_UNICODE_SCRIPT_NEW_TAI_LUE"; break; case G_UNICODE_SCRIPT_BUGINESE: script_name = "G_UNICODE_SCRIPT_BUGINESE"; break; case G_UNICODE_SCRIPT_GLAGOLITIC: script_name = "G_UNICODE_SCRIPT_GLAGOLITIC"; break; case G_UNICODE_SCRIPT_TIFINAGH: script_name = "G_UNICODE_SCRIPT_TIFINAGH"; break; case G_UNICODE_SCRIPT_SYLOTI_NAGRI: script_name = "G_UNICODE_SCRIPT_SYLOTI_NAGRI"; break; case G_UNICODE_SCRIPT_OLD_PERSIAN: script_name = "G_UNICODE_SCRIPT_OLD_PERSIAN"; break; case G_UNICODE_SCRIPT_KHAROSHTHI: script_name = "G_UNICODE_SCRIPT_KHAROSHTHI"; break; case G_UNICODE_SCRIPT_UNKNOWN: script_name = "G_UNICODE_SCRIPT_UNKNOWN"; break; case G_UNICODE_SCRIPT_BALINESE: script_name = "G_UNICODE_SCRIPT_BALINESE"; break; case G_UNICODE_SCRIPT_CUNEIFORM: script_name = "G_UNICODE_SCRIPT_CUNEIFORM"; break; case G_UNICODE_SCRIPT_PHOENICIAN: script_name = "G_UNICODE_SCRIPT_PHOENICIAN"; break; case G_UNICODE_SCRIPT_PHAGS_PA: script_name = "G_UNICODE_SCRIPT_PHAGS_PA"; break; case G_UNICODE_SCRIPT_NKO: script_name = "G_UNICODE_SCRIPT_NKO"; break; case G_UNICODE_SCRIPT_KAYAH_LI: script_name = "G_UNICODE_SCRIPT_KAYAH_LI"; break; case G_UNICODE_SCRIPT_LEPCHA: script_name = "G_UNICODE_SCRIPT_LEPCHA"; break; case G_UNICODE_SCRIPT_REJANG: script_name = "G_UNICODE_SCRIPT_REJANG"; break; case G_UNICODE_SCRIPT_SUNDANESE: script_name = "G_UNICODE_SCRIPT_SUNDANESE"; break; case G_UNICODE_SCRIPT_SAURASHTRA: script_name = "G_UNICODE_SCRIPT_SAURASHTRA"; break; case G_UNICODE_SCRIPT_CHAM: script_name = "G_UNICODE_SCRIPT_CHAM"; break; case G_UNICODE_SCRIPT_OL_CHIKI: script_name = "G_UNICODE_SCRIPT_OL_CHIKI"; break; case G_UNICODE_SCRIPT_VAI: script_name = "G_UNICODE_SCRIPT_VAI"; break; case G_UNICODE_SCRIPT_CARIAN: script_name = "G_UNICODE_SCRIPT_CARIAN"; break; case G_UNICODE_SCRIPT_LYCIAN: script_name = "G_UNICODE_SCRIPT_LYCIAN"; break; case G_UNICODE_SCRIPT_LYDIAN: script_name = "G_UNICODE_SCRIPT_LYDIAN"; break; case G_UNICODE_SCRIPT_AVESTAN: script_name = "G_UNICODE_SCRIPT_AVESTAN"; break; case G_UNICODE_SCRIPT_BAMUM: script_name = "G_UNICODE_SCRIPT_BAMUM"; break; case G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS: script_name = "G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS"; break; case G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC: script_name = "G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC"; break; case G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI: script_name = "G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI"; break; case G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN: script_name = "G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN"; break; case G_UNICODE_SCRIPT_JAVANESE: script_name = "G_UNICODE_SCRIPT_JAVANESE"; break; case G_UNICODE_SCRIPT_KAITHI: script_name = "G_UNICODE_SCRIPT_KAITHI"; break; case G_UNICODE_SCRIPT_LISU: script_name = "G_UNICODE_SCRIPT_LISU"; break; case G_UNICODE_SCRIPT_MEETEI_MAYEK: script_name = "G_UNICODE_SCRIPT_MEETEI_MAYEK"; break; case G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN: script_name = "G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN"; break; default: script_name = "UNKNOWN"; } l = g_unichar_to_utf8(ch, str); str[l] = '\0'; sstr = utf8_to_sjis(str); printf("%s (%d): %s\n", script_name, script, sstr); g_free(sstr); } #endif return char_set; } static void fontmap_append(struct gra2emf_local *local, const char *font_name, struct gra2emf_fontmap *fontmap) { struct gra2emf_fontmap *cur; if (nhash_get_ptr(local->fontmap, font_name, (void *) &cur)) { nhash_set_ptr(local->fontmap, font_name, fontmap); return; } while (cur) { if (cur->next == NULL) { cur->next = fontmap; fontmap->next = NULL; break; } cur = cur->next; } } static void check_fonts(struct gra2emf_local *local, HDC hdc, const char *alias, const char *font_name) { #if USE_EnumFontFamiliesExW LOGFONTW logfont; #else LOGFONT logfont; #endif glong len, size; gunichar2 *ustr; struct gra2emf_fontmap *fontmap; ustr = g_utf8_to_utf16(font_name, -1, NULL, &len, NULL); len *= 2; logfont.lfCharSet = DEFAULT_CHARSET; logfont.lfPitchAndFamily = 0; size = (len > LF_FACESIZE - 2) ? LF_FACESIZE - 2: len; memcpy(logfont.lfFaceName, ustr, size); memset(((char *) logfont.lfFaceName) + size, 0, 2); g_free(ustr); fontmap = g_malloc0(sizeof(*fontmap)); if (fontmap == NULL) { return; } fontmap->char_set[0] = -1; fontmap->next = NULL; fontmap->name = g_strdup(font_name); if (fontmap->name == NULL) { g_free(fontmap); return; } fontmap_append(local, alias, fontmap); /* fontmap_append() should be called before EnumFontFamiliesExW() when compiled with -O2 option */ #if USE_EnumFontFamiliesExW EnumFontFamiliesExW(hdc, &logfont, (FONTENUMPROCW) enum_font_cb, (LPARAM) fontmap, 0); #else EnumFontFamiliesEx(hdc, &logfont, (FONTENUMPROC) enum_font_cb, (LPARAM) fontmap, 0); #endif } static int gra2emf_init(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2emf_local *local = NULL; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) { return 1; } local = g_malloc0(sizeof(struct gra2emf_local)); if (local == NULL){ goto errexit; } local->fontmap = nhash_new(); local->hdc_dummy = CreateDC("DISPLAY", NULL, NULL, NULL); if (local->hdc_dummy == NULL) { g_free(local); goto errexit; } if (_putobj(obj, "_local", inst, local)) { goto errexit; } local->null_pen = CreatePen(PS_NULL, 0, RGB(0, 0, 0)); #if USE_LINE_TO local->line = 0; #else arrayinit(&local->line, sizeof(int)); #endif return 0; errexit: g_free(local); return 1; } static void free_fontmap_sub(NHASH fontmap, const char *name) { struct gra2emf_fontmap *cur, *next; if (nhash_get_ptr(fontmap, name, (void *) &cur)) { return; } while (cur) { if (cur->name) { g_free(cur->name); } next = cur->next; g_free(cur); cur = next; } nhash_del(fontmap, name); } static void free_fontmap(NHASH fontmap) { free_fontmap_sub(fontmap, "Serif"); free_fontmap_sub(fontmap, "Sans-serif"); free_fontmap_sub(fontmap, "Monospace"); } static int gra2emf_done(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2emf_local *local; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) { return 1; } _getobj(obj, "_local", inst, &local); if (local == NULL) { return 0; } if (local->hdc) { close_emf(local, NULL); } if (local->null_pen) { DeleteObject(local->null_pen); } DeleteDC(local->hdc_dummy); #if USE_LINE_TO draw_lines(local); #else arraydel(&local->line); #endif free_fontmap(local->fontmap); nhash_free(local->fontmap); return 0; } static void add_fontmap(struct gra2emf_local *local, HDC hdc, const char *alias) { struct fontmap *font_map; font_map = gra2cairo_get_fontmap(alias); if (font_map == NULL) { return; } if (font_map->fontname) { check_fonts(local, hdc, alias, font_map->fontname); } if (font_map->alternative) { gchar **alternative; int i; alternative = g_strsplit(font_map->alternative, ",", 0); for (i = 0; alternative[i]; i++) { check_fonts(local, hdc, alias, alternative[i]); } g_strfreev(alternative); } } static int open_emf(struct gra2emf_local *local) { HDC hdc; XFORM xform = {1, 0, 0, -1, 0, 0}; hdc = CreateEnhMetaFile(NULL, NULL, NULL, NULL); if (hdc == NULL) { return 1; } add_fontmap(local, hdc, "Serif"); add_fontmap(local, hdc, "Sans-serif"); add_fontmap(local, hdc, "Monospace"); StartPage(hdc); SaveDC(hdc); SetGraphicsMode(hdc, GM_ADVANCED); SetMapMode(hdc, MM_HIMETRIC); SetWorldTransform(hdc, &xform); SetBkMode(hdc, TRANSPARENT); SetArcDirection(hdc, AD_COUNTERCLOCKWISE); local->update_pen_attribute = TRUE; local->update_brush_attribute = TRUE; local->the_brush = NULL; local->the_pen = NULL; local->hdc = hdc; return 0; } static int close_emf(struct gra2emf_local *local, const char *fname) { HENHMETAFILE emf; int r; HPEN pen; HBRUSH brush; if (local->hdc == NULL) { return 1; } r = 1; if (local->the_pen) { pen = SelectObject(local->hdc, local->the_pen); DeleteObject(pen); local->the_pen = NULL; } if (local->the_brush) { brush = SelectObject(local->hdc, local->the_brush); DeleteObject(brush); local->the_brush = NULL; } RestoreDC(local->hdc, -1); EndPage(local->hdc); emf = CloseEnhMetaFile(local->hdc); if (emf == NULL) { return 1; } if (fname) { HENHMETAFILE emf2; emf2 = CopyEnhMetaFile(emf, fname); if (emf2) { DeleteEnhMetaFile(emf2); r = 0; } } else { if (OpenClipboard(NULL)) { EmptyClipboard(); SetClipboardData(CF_ENHMETAFILE, emf); CloseClipboard(); r = 0; } } DeleteEnhMetaFile(emf); DeleteDC(local->hdc); local->hdc = NULL; if (local->fontalias) { g_free(local->fontalias); local->fontalias = NULL; } if (local->fontname) { g_free(local->fontname); local->fontname = NULL; } free_fontmap(local->fontmap); return r; } static HFONT select_font(struct gra2emf_local *local, const char *fontname, int charset) { LOGFONTW id_font; gunichar2 *ustr; id_font.lfHeight = - local->fontsize; id_font.lfWidth = 0; id_font.lfEscapement = local->fontdir * 10; id_font.lfOrientation = local->fontdir * 10; id_font.lfUnderline = 0; id_font.lfStrikeOut = 0; id_font.lfWeight = (local->font_style & GRA_FONT_STYLE_BOLD) ? FW_BOLD : FW_NORMAL; id_font.lfItalic = (local->font_style & GRA_FONT_STYLE_ITALIC) ? TRUE : FALSE; if (local->fontalias == NULL) { id_font.lfPitchAndFamily = (VARIABLE_PITCH | FF_SWISS); } else if (g_ascii_strncasecmp(local->fontalias, "Sans-serif", 5) == 0) { id_font.lfPitchAndFamily = (VARIABLE_PITCH | FF_SWISS); } else if (g_ascii_strncasecmp(local->fontalias, "Serif", 5) == 0) { id_font.lfPitchAndFamily = (VARIABLE_PITCH | FF_ROMAN); } else if (g_ascii_strncasecmp(local->fontalias, "Monospace", 7) == 0) { id_font.lfPitchAndFamily = (FIXED_PITCH | FF_MODERN); } else { id_font.lfPitchAndFamily = (VARIABLE_PITCH | FF_SWISS); } id_font.lfCharSet = charset; id_font.lfOutPrecision = OUT_DEFAULT_PRECIS; id_font.lfOutPrecision = OUT_TT_ONLY_PRECIS; id_font.lfClipPrecision = CLIP_STROKE_PRECIS; id_font.lfQuality = PROOF_QUALITY; ustr = g_utf8_to_utf16(fontname, -1, NULL, NULL, NULL); wcsncpy(id_font.lfFaceName, ustr, LF_FACESIZE - 1); g_free(ustr); id_font.lfFaceName[LF_FACESIZE - 1] = L'\0'; return CreateFontIndirectW(&id_font); } void draw_text_rect(struct gra2emf_local *local, int w, int h) { POINT pos[4]; HGDIOBJ brush, old_brush; pos[0].x = local->x - h * local->fontsin; pos[0].y = local->y - h * local->fontcos; pos[1].x = local->x; pos[1].y = local->y; pos[2].x = local->x + w * local->fontcos; pos[2].y = local->y - w * local->fontsin; pos[3].x = local->x + w * local->fontcos - h * local->fontsin; pos[3].y = local->y - w * local->fontsin - h * local->fontcos; brush = GetStockObject(NULL_BRUSH); old_brush = SelectObject(local->hdc, brush); BeginPath(local->hdc); Polygon(local->hdc, pos, 4); EndPath(local->hdc); FillPath(local->hdc); SelectObject(local->hdc, old_brush); } static void draw_str_sub(struct gra2emf_local *local, const char *str, const char *fontname, int charset) { gunichar2 *ustr; glong len; HDC hdc; char *utf8_str; HFONT font, old_font; SIZE str_size; UINT align; if (str == NULL || str[0] == '\0') { return; } hdc = local->hdc; align = TA_BASELINE; if (charset == HEBREW_CHARSET || charset == ARABIC_CHARSET) { align |= TA_RTLREADING; } SetTextCharacterExtra(hdc, local->fontspace); SetTextColor(hdc, RGB(local->r, local->g, local->b)); font = select_font(local, fontname, charset); old_font = SelectObject(hdc, font); SetTextAlign(hdc, align); utf8_str = gra2cairo_get_utf8_str(str, local->symbol); ustr = g_utf8_to_utf16(utf8_str, -1, NULL, &len, NULL); g_free(utf8_str); ExtTextOutW(hdc, local->x, local->y, 0, NULL, ustr, len, NULL); GetTextExtentPoint32W(hdc, ustr, len, &str_size); SelectObject(hdc, old_font); DeleteObject(font); draw_text_rect(local, str_size.cx, str_size.cy); local->x += str_size.cx * local->fontcos; local->y -= str_size.cx * local->fontsin; g_free(ustr); } static const char * check_font_indices(struct gra2emf_local *local, gunichar ch) { WORD indices[2]; HFONT font, old_font; gunichar str[2]; gunichar2 *ustr; struct gra2emf_fontmap *cur; DWORD r; str[0] = ch; str[1] = 0; if (local->fontalias == NULL) { return NULL; } if (nhash_get_ptr(local->fontmap, local->fontalias, (void *) &cur)) { return NULL; } ustr = g_ucs4_to_utf16(str, 1, NULL, NULL, NULL); if (ustr == NULL) { return NULL; } while (cur) { font = select_font(local, cur->name, ANSI_CHARSET); old_font = SelectObject(local->hdc_dummy, font); r = GetGlyphIndicesW(local->hdc_dummy, ustr, 1, indices, GGI_MARK_NONEXISTING_GLYPHS); SelectObject(local->hdc_dummy, old_font); DeleteObject(font); if (r != GDI_ERROR && indices[0] != 0xffff) { g_free(ustr); return cur->name; } cur = cur->next; } g_free(ustr); return NULL; } static void draw_str(struct gra2emf_local *local, const char *str) { gunichar ch; const char *ptr; GString *sub_str; const char *font, *prev_font; int charset, prev_charset; sub_str = g_string_new(""); prev_font = NULL; prev_charset = DEFAULT_CHARSET; for (ptr = str; *ptr; ptr = g_utf8_next_char(ptr)) { ch = g_utf8_get_char(ptr); charset = get_char_set(ch); font = check_font_indices(local, ch); if (font == NULL) { font = "Arial"; } if (prev_font == NULL) { prev_charset = charset; prev_font = font; } else if (prev_font != font) { draw_str_sub(local, sub_str->str, prev_font, prev_charset); g_string_truncate(sub_str, 0); prev_font = font; prev_charset = charset; } if (prev_charset < charset) { prev_charset = charset; } g_string_append_unichar(sub_str, ch); } draw_str_sub(local, sub_str->str, prev_font, prev_charset); g_string_free(sub_str, TRUE); } static int gra2emf_flush(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2emf_local *local; _getobj(obj, "_local", inst, &local); if (local->hdc == NULL) { return -1; } return 0; } static void create_pen(struct gra2emf_local *local) { HPEN old; DWORD line_attr; LOGBRUSH log_brush; HPEN pen; if (! local->update_pen_attribute) { return; } line_attr = PS_GEOMETRIC; switch (local->line_cap) { case 2: line_attr |= PS_ENDCAP_SQUARE; break; case 1: line_attr |= PS_ENDCAP_ROUND; break; default: line_attr |= PS_ENDCAP_FLAT; } switch (local->line_join) { case 2: line_attr |= PS_JOIN_BEVEL; break; case 1: line_attr |= PS_JOIN_ROUND; break; default: line_attr |= PS_JOIN_MITER; } if (local->line_style) { line_attr |= PS_USERSTYLE; } else { line_attr |= PS_SOLID; } log_brush.lbStyle = BS_SOLID; log_brush.lbColor = RGB(local->r, local->g, local->b); pen = ExtCreatePen(line_attr, local->line_width, &log_brush, local->line_style_num, local->line_style); old = SelectObject(local->hdc, pen); if (local->the_pen) { DeleteObject(old); } else { local->the_pen = old; } local->update_pen_attribute = FALSE; } static void create_brush(struct gra2emf_local *local) { HBRUSH brush, old_brush; if (! local->update_brush_attribute) { return; } brush = CreateSolidBrush(RGB(local->r, local->g, local->b)); old_brush = SelectObject(local->hdc, brush); if (local->the_brush) { DeleteObject(old_brush); } else { local->the_brush = old_brush; } local->update_brush_attribute = FALSE; } static void draw_arc(struct gra2emf_local *local, int x, int y, int w, int h, int start, int angle, int style) { double a1, a2; HPEN old_pen; if (angle == 0) { return; } if (angle % 36000 == 0 && (style == 1 || style == 2)) { create_brush(local); old_pen = SelectObject(local->hdc, local->null_pen); Ellipse(local->hdc, x - w, y - h, x + w, y + h); SelectObject(local->hdc, old_pen); return; } a1 = start * (MPI / 18000.0); a2 = angle * (MPI / 18000.0) + a1; switch (style) { case 1: create_brush(local); old_pen = SelectObject(local->hdc, local->null_pen); Pie(local->hdc, x - w, y - h, x + w, y + h, x + w * cos(a1), y - h * sin(a1), x + w * cos(a2), y - h * sin(a2) ); SelectObject(local->hdc, old_pen); break; case 2: create_brush(local); old_pen = SelectObject(local->hdc, local->null_pen); Chord(local->hdc, x - w, y - h, x + w, y + h, x + w * cos(a1), y - h * sin(a1), x + w * cos(a2), y - h * sin(a2)); SelectObject(local->hdc, old_pen); break; case 3: create_pen(local); MoveToEx(local->hdc, x, y, NULL); BeginPath(local->hdc); ArcTo(local->hdc, x - w, y - h, x + w, y + h, x + w * cos(a1), y - h * sin(a1), x + w * cos(a2), y - h * sin(a2) ); CloseFigure(local->hdc); EndPath(local->hdc); StrokePath(local->hdc); break; case 4: create_pen(local); BeginPath(local->hdc); Arc(local->hdc, x - w, y - h, x + w, y + h, x + w * cos(a1), y - h * sin(a1), x + w * cos(a2), y - h * sin(a2) ); CloseFigure(local->hdc); EndPath(local->hdc); StrokePath(local->hdc); break; default: create_pen(local); Arc(local->hdc, x - w, y - h, x + w, y + h, x + w * cos(a1), y - h * sin(a1), x + w * cos(a2), y - h * sin(a2) ); break; } } static void set_alternative_font(struct gra2emf_local *local) { struct compatible_font_info *info; if (local->fontalias) { g_free(local->fontalias); } local->fontalias = NULL; if (local->fontname == NULL || local->fontname[0] == '\0') { return; } info = gra2cairo_get_compatible_font_info(local->fontname); if (info == NULL) { local->fontalias = g_strdup(local->fontname); local->symbol = FALSE; return; } local->fontalias = g_strdup(info->name); local->font_style = info->style; local->symbol = info->symbol; } static void draw_rectangle(struct gra2emf_local *local, int x1, int y1, int x2, int y2, int fill) { x1 += local->offsetx; y1 += local->offsety; x2 += local->offsetx; y2 += local->offsety; #if USE_LINE_TO if (fill) { create_brush(local); } else { create_pen(local); } BeginPath(local->hdc); MoveToEx(local->hdc, x1, y1, NULL); LineTo(local->hdc, x1, y2); LineTo(local->hdc, x2, y2); LineTo(local->hdc, x2, y1); CloseFigure(local->hdc); EndPath(local->hdc); if (fill) { FillPath(local->hdc); } else { StrokePath(local->hdc); } #else /* USE_LINE_TO */ if (fill) { HPEN old_pen; create_brush(local); old_pen = SelectObject(local->hdc, local->null_pen); Rectangle(local->hdc, x1, y1, x2, y2); SelectObject(local->hdc, old_pen); } else { HBRUSH old_brush; create_pen(local); old_brush = SelectObject(local->hdc, GetStockObject(NULL_BRUSH)); Rectangle(local->hdc, x1, y1, x2, y2); SelectObject(local->hdc, old_brush); } #endif /* USE_LINE_TO */ } static void draw_polygon(struct gra2emf_local *local, int n, int *points, int fill) { int i; #if USE_LINE_TO if (n < 2) { return; } switch (fill) { case 0: create_pen(local); break; case 1: create_brush(local); SetPolyFillMode(local->hdc, ALTERNATE); break; case 2: create_brush(local); SetPolyFillMode(local->hdc, WINDING); break; } BeginPath(local->hdc); MoveToEx(local->hdc, points[0] + local->offsetx, points[1] + local->offsety, NULL); for (i = 1; i < n; i++) { LineTo(local->hdc, points[i * 2 + 0] + local->offsetx, points[i * 2 + 1] + local->offsety); } CloseFigure(local->hdc); EndPath(local->hdc); switch (fill) { case 0: StrokePath(local->hdc); break; case 1: case 2: FillPath(local->hdc); break; } #else /* USE_LINE_TO */ HPEN old_pen; HBRUSH old_brush; POINT *pos; if (n < 2) { return; } pos = g_malloc(sizeof(*pos) * n); if (pos == NULL) { return; } for (i = 0; i < n; i++) { pos[i].x = points[i * 2] + local->offsetx; pos[i].y = points[i * 2 + 1] + local->offsety; } switch (fill) { case 0: create_pen(local); old_brush = SelectObject(local->hdc, GetStockObject(NULL_BRUSH)); Polygon(local->hdc, pos, n); SelectObject(local->hdc, old_brush); break; case 1: create_brush(local); SetPolyFillMode(local->hdc, ALTERNATE); old_pen = SelectObject(local->hdc, local->null_pen); Polygon(local->hdc, pos, n); SelectObject(local->hdc, old_pen); break; case 2: create_brush(local); SetPolyFillMode(local->hdc, WINDING); old_pen = SelectObject(local->hdc, local->null_pen); Polygon(local->hdc, pos, n); SelectObject(local->hdc, old_pen); break; } #endif /* USE_LINE_TO */ } static void draw_polyline(struct gra2emf_local *local, int n, int *points) { int i; #if USE_LINE_TO if (n < 2) { return; } create_pen(local); BeginPath(local->hdc); MoveToEx(local->hdc, points[0] + local->offsetx, points[1] + local->offsety, NULL); for (i = 1; i < n; i++) { LineTo(local->hdc, points[i * 2 + 0] + local->offsetx, points[i * 2 + 1] + local->offsety); } EndPath(local->hdc); StrokePath(local->hdc); #else /* USE_LINE_TO */ POINT *pos; if (n < 2) { return; } pos = g_malloc(sizeof(*pos) * n); if (pos == NULL) { return; } for (i = 0; i < n; i++) { pos[i].x = points[i * 2 + 0] + local->offsetx; pos[i].y = points[i * 2 + 1] + local->offsety; } create_pen(local); Polyline(local->hdc, pos, n); #endif /* USE_LINE_TO */ } static void draw_lines(struct gra2emf_local *local) { #if USE_LINE_TO if (local->line > 0) { EndPath(local->hdc); StrokePath(local->hdc); } local->line = 0; #else POINT *pos; int i, n, *data; n = arraynum(&local->line) / 2; if (n < 2) { arrayclear(&local->line); return; } data = arraydata(&local->line); pos = g_malloc(sizeof(*pos) * n); if (pos == NULL) { return; } for (i = 0; i < n; i++) { pos[i].x = data[i * 2]; pos[i].y = data[i * 2 + 1]; } create_pen(local); Polyline(local->hdc, pos, n); arrayclear(&local->line); #endif } static int gra2emf_output(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char code, *cstr, *tmp, *fname; int *cpar, i, r; double x, y, w, h, fontdir; struct gra2emf_local *local; DWORD *line_style; POINT lpoint[2]; local = (struct gra2emf_local *)argv[2]; code = *(char *)(argv[3]); cpar = (int *)argv[4]; cstr = argv[5]; if (code != 'I' && local->hdc == NULL) { return 1; } if (code != 'T') { draw_lines(local); } switch (code) { case 'I': if (open_emf(local)) { error(obj, ERREMF); return 1; } break; case '%': case 'X': break; case 'E': r = 0; _getobj(obj, "file", inst, &fname); if (fname) { fname = g_locale_from_utf8(fname, -1, NULL, NULL, NULL); } r = close_emf(local, fname); if (fname) { g_free(fname); } if (r) { error(obj, ERREMF); return 1; } break; case 'V': local->offsetx = cpar[1]; local->offsety = cpar[2]; if (cpar[5]) { BeginPath(local->hdc); Rectangle(local->hdc,cpar[1], cpar[2], cpar[3], cpar[4]); EndPath(local->hdc); SelectClipPath(local->hdc, RGN_COPY); } else { SelectClipRgn(local->hdc, NULL); } break; case 'A': if (local->line_style) { g_free(local->line_style); } local->line_style = NULL; local->line_style_num = 0; if (cpar[1]) { local->line_style = g_malloc(sizeof(* line_style) * cpar[1]); if (local->line_style == NULL) { break; } for (i = 0; i < cpar[1]; i++) { local->line_style[i] = cpar[6 + i]; } local->line_style_num = cpar[1]; } local->line_width = cpar[2]; local->line_cap = cpar[3]; local->line_join = cpar[4]; SetMiterLimit(local->hdc, cpar[5] / 100.0, NULL); local->update_pen_attribute = TRUE; break; case 'G': local->r = cpar[1]; local->g = cpar[2]; local->b = cpar[3]; local->update_pen_attribute = TRUE; local->update_brush_attribute = TRUE; break; case 'M': local->x = cpar[1] + local->offsetx; local->y = cpar[2] + local->offsety; break; case 'N': local->x += cpar[1]; local->y += cpar[2]; break; case 'L': lpoint[0].x = cpar[1] + local->offsetx; lpoint[0].y = cpar[2] + local->offsety; lpoint[1].x = cpar[3] + local->offsetx; lpoint[1].y = cpar[4] + local->offsety; create_pen(local); Polyline(local->hdc, lpoint, 2); break; case 'T': #if USE_LINE_TO if (local->line == 0) { create_pen(local); BeginPath(local->hdc); MoveToEx(local->hdc, local->x, local->y, NULL); } local->x = cpar[1] + local->offsetx; local->y = cpar[2] + local->offsety; LineTo(local->hdc, local->x, local->y); local->line++; #else /* USE_LINE_TO */ /* it seems that the function LineTo() cannot handle dotted line correctly when the points exist very closely. */ if (arraynum(&local->line) < 1) { arrayclear(&local->line); arrayadd(&local->line, &local->x); arrayadd(&local->line, &local->y); } local->x = cpar[1] + local->offsetx; local->y = cpar[2] + local->offsety; arrayadd(&local->line, &local->x); arrayadd(&local->line, &local->y); #endif /* USE_LINE_TO */ break; case 'C': x = cpar[1] + local->offsetx; y = cpar[2] + local->offsety; w = cpar[3]; h = cpar[4]; draw_arc(local, x, y, w, h, cpar[5], cpar[6], cpar[7]); break; case 'B': draw_rectangle(local, cpar[1], cpar[2], cpar[3], cpar[4], cpar[5]); break; case 'P': SetPixel(local->hdc, cpar[1] + local->offsetx, cpar[2] + local->offsety, RGB(local->r, local->g, local->b)); break; case 'R': draw_polyline(local, cpar[1], cpar + 2); break; case 'D': draw_polygon(local, cpar[1], cpar + 3, cpar[2]); break; case 'F': if (local->fontname) { g_free(local->fontname); } local->fontname = g_strdup(cstr); break; case 'H': local->fontspace = cpar[2] / 72.0 * 25.4; local->fontsize = cpar[1] / 72.0 * 25.4; fontdir = cpar[3] * (MPI / 18000.0); local->fontdir = (cpar[3] % 36000) / 100.0; if (local->fontdir < 0) { local->fontdir += 360; } local->fontsin = sin(fontdir); local->fontcos = cos(fontdir); local->font_style = (cpar[0] > 3) ? cpar[4] : 0; set_alternative_font(local); break; case 'S': draw_str(local, argv[5]); break; case 'K': tmp = sjis_to_utf8(cstr); if (tmp) { draw_str(local, tmp); g_free(tmp); } break; default: break; } return 0; } static struct objtable gra2emf[] = { {"init", NVFUNC, NEXEC, gra2emf_init, NULL, 0}, {"done", NVFUNC, NEXEC, gra2emf_done, NULL, 0}, {"next", NPOINTER, 0, NULL, NULL, 0}, {"file", NSTR, NREAD | NWRITE, NULL, NULL,0}, {"flush", NVFUNC,NREAD|NEXEC, gra2emf_flush,"",0}, {"_output", NVFUNC, 0, gra2emf_output, NULL, 0}, {"_local", NPOINTER, 0, NULL, NULL, 0}, }; #define TBLNUM (sizeof(gra2emf) / sizeof(*gra2emf)) void * addgra2emf(void) /* addgra2emfile() returns NULL on error */ { return addobject(NAME, NULL, PARENT, OVERSION, TBLNUM, gra2emf, ERRNUM, gra2emf_errorlist, NULL, NULL); } #endif /* WINDOWS */ ngraph-gtk-6.06.13/src/gtk/gtk_ruler.h0000644000175000017500000000043512241111703014367 00000000000000#ifndef GTK_RULER_HEADER #define GTK_RULER_HEADER #include GtkWidget *nruler_new(GtkOrientation orientation); void nruler_set_range(GtkWidget *ruler, double lower, double upper); void nruler_set_position(GtkWidget *ruler, double position); #endif /* GTK_RULER_HEADER */ ngraph-gtk-6.06.13/src/gtk/x11menu.h0000644000175000017500000001471112241111703013671 00000000000000/* * $Id: x11menu.h,v 1.48 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for GTK". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for GTK" 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. * * "Ngraph for GTK" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef GTK_MENU_HEADER #define GTK_MENU_HEADER #include "common.h" #include "gtk_liststore.h" #include "ogra2cairo.h" #define N2GTK_RULER_METRIC(v) ((v) / 100.0 * 72.0 / 25.4 * 10) #define MARK_PIX_SIZE 24 enum MenuID { MenuIdGraphNewFrame, MenuIdGraphNewSection, MenuIdGraphNewCross, MenuIdGraphAllClear, MenuIdEditCut, MenuIdEditCopy, MenuIdEditPaste, MenuIdEditDelete, MenuIdEditDuplicate, MenuIdAlignLeft, MenuIdAlignVCenter, MenuIdAlignRight, MenuIdAlignTop, MenuIdAlignHCenter, MenuIdAlignBottom, MenuIdEditRotateCW, MenuIdEditRotateCCW, MenuIdEditFlipHorizontally, MenuIdEditFlipVertically, MenuIdOutputGRAFile, MenuIdOutputPSFile, MenuIdOutputEPSFile, MenuIdOutputPNGFile, MenuIdOutputCairoEMFFile, MenuIdOutputEMFFile, MenuIdOutputEMFClipboard, MenuIdOutputPDFFile, MenuIdOutputSVGFile, MenuIdToggleSidebar, MenuIdToggleStatusbar, MenuIdToggleRuler, MenuIdToggleScrollbar, MenuIdToggleCToolbar, MenuIdTogglePToolbar, MenuIdToggleCrossGauge, MenuIdEditOrderTop, MenuIdEditOrderUp, MenuIdEditOrderDown, MenuIdEditOrderBottom, }; enum DrawLockVal {DrawLockNone, DrawLockDraw, DrawLockExpose}; enum PointerType { PointB = 0x000001, LegendB = 0x000002, PathB = 0x000004, RectB = 0x000008, ArcB = 0x000010, MarkB = 0x000020, TextB = 0x000040, GaussB = 0x000080, AxisB = 0x000100, TrimB = 0x000200, FrameB = 0x000400, SectionB = 0x000800, CrossB = 0x001000, SingleB = 0x002000, DataB = 0x004000, EvalB = 0x008000, ZoomB = 0x010000, }; #define POINT_TYPE_POINT (PointB | LegendB | AxisB) #define POINT_TYPE_DRAW1 (ArcB | RectB | GaussB | FrameB | SectionB | CrossB) #define POINT_TYPE_DRAW2 (PathB | SingleB) #define POINT_TYPE_DRAW3 (TextB | MarkB) #define POINT_TYPE_DRAW_ALL (POINT_TYPE_DRAW1 | POINT_TYPE_DRAW2 | POINT_TYPE_DRAW3) #define POINT_TYPE_TRIM (TrimB | DataB | EvalB) enum _n_line_type { N_LINE_TYPE_SOLID, N_LINE_TYPE_DOT, }; enum MouseMode { MOUSENONE, MOUSEPOINT, MOUSEDRAG, MOUSEZOOM1, MOUSEZOOM2, MOUSEZOOM3, MOUSEZOOM4, MOUSECHANGE, MOUSESCROLLE, }; enum pop_up_menu_item_type { POP_UP_MENU_ITEM_TYPE_NORMAL, POP_UP_MENU_ITEM_TYPE_CHECK, POP_UP_MENU_ITEM_TYPE_MENU, POP_UP_MENU_ITEM_TYPE_SEPARATOR, }; #define VIEWER_POPUP_ITEM_NUM 14 struct Viewer { GtkWidget *Win; GtkWidget *menu, *VScroll, *HScroll, *popup, *VRuler, *HRuler, *side_pane1, *side_pane2, *side_pane3, *main_pane; int ShowFrame, ShowLine, ShowRect; int Capture, MoveData, KeyMask; enum MouseMode MouseMode; enum PointerType Mode; struct narray *focusobj, *points; int FrameOfsX, FrameOfsY; int MouseX1, MouseY1, MouseX2, MouseY2, MouseDX, MouseDY; int RefX1, RefY1, RefX2, RefY2, ChangePoint; int LineX, LineY, CrossX, CrossY, Angle; int allclear; int cx, cy; int ignoreredraw; double vscroll, hscroll, Zoom; }; enum SubWinType { TypeFileWin, TypeAxisWin, TypeLegendWin, TypeMergeWin, TypeCoordWin, TypeInfoWin, }; struct SubWin; struct obj_list_data { GtkWidget *popup, **popup_item; GtkWidget *text; int select, can_focus; void (* update)(struct obj_list_data *data, int); void (* delete)(struct obj_list_data *data, int); void (* setup_dialog)(struct obj_list_data *data, int id, int user_data); void *dialog; gboolean (* ev_key) (GtkWidget *, GdkEvent *, gpointer); gboolean (* ev_button) (GtkWidget *, GdkEventButton *, gpointer); struct objlist *obj; struct SubWin *parent; n_list_store *list; int list_col_num; struct obj_list_data *next; }; struct SubWin { enum SubWinType type; GtkWidget *Win; GdkWindowState window_state; union { struct obj_list_data *data; GtkWidget *text; } data; }; #define MENU_HISTORY_NUM 10 struct NgraphApp { int Interrupt; char *FileName; GtkWidget *Message, *Message_pos, *Message_extra; gint Message1; GtkWidget *ghistory[MENU_HISTORY_NUM], *fhistory[MENU_HISTORY_NUM]; GtkEntryCompletion *legend_text_list, *x_math_list, *y_math_list, *func_list, *fit_list; GtkRadioAction *viewb; #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_t *markpix[MARK_TYPE_NUM]; #else GdkPixmap *markpix[MARK_TYPE_NUM]; #endif GdkCursor **cursor; struct Viewer Viewer; struct SubWin FileWin; struct SubWin AxisWin; struct SubWin LegendWin; struct SubWin MergeWin; struct SubWin CoordWin; struct SubWin InfoWin; }; extern int Menulock, DnDLock; extern struct NgraphApp NgraphApp; extern GtkWidget *TopLevel; extern GdkColor white, gray; extern GtkAccelGroup *AccelGroup; int application(char *file); void set_current_window(GtkWidget *w); GtkWidget *get_current_window(void); void UpdateAll(void); void UpdateAll2(void); void ChangePage(void); void NSetCursor(unsigned int type); unsigned int NGetCursor(void); void reset_event(void); void SetStatusBar(const char *mes); void ResetStatusBar(void); int PutStderr(const char *s); int PutStdout(const char *s); void DisplayDialog(const char *str); int ChkInterrupt(void); int InputYN(const char *mes); void QuitGUI(void); void menu_lock(int lock); void set_draw_lock(int lock); int find_gra2gdk_inst(struct objlist **o, N_VALUE **i, struct objlist **ro, int *routput, struct gra2cairo_local **rlocal); void set_axis_undo_button_sensitivity(int state); void set_modified_state(int state); void set_focus_insensitive(const struct Viewer *d); void set_focus_sensitivity(const struct Viewer *d); void window_action_set_active(enum SubWinType type, int state); void window_action_toggle(enum SubWinType type); char *get_ui_definition(void); void create_addin_menu(void); void create_recent_data_menu(void); #endif ngraph-gtk-6.06.13/src/gtk/x11file.c0000644000175000017500000043106612241111703013645 00000000000000// -*- coding: utf-8 -*- /* * $Id: x11file.c,v 1.136 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include #include #include "gtk_entry_completion.h" #include "gtk_liststore.h" #include "gtk_subwin.h" #include "gtk_combo.h" #include "gtk_widget.h" #include "shell.h" #include "object.h" #include "ioutil.h" #include "nstring.h" #include "mathfn.h" #include "gra.h" #include "spline.h" #include "nconfig.h" #include "ofile.h" #include "ofit.h" #include "math_equation.h" #include "x11bitmp.h" #include "x11gui.h" #include "x11dialg.h" #include "x11menu.h" #include "ogra2cairo.h" #include "ogra2gdk.h" #include "ox11menu.h" #include "x11graph.h" #include "x11view.h" #include "x11file.h" #include "x11commn.h" static n_list_store Flist[] = { {" ", G_TYPE_BOOLEAN, TRUE, TRUE, "hidden"}, {"#", G_TYPE_INT, TRUE, FALSE, "id"}, {N_("file"), G_TYPE_STRING, TRUE, TRUE, "file"}, {"x ", G_TYPE_INT, TRUE, TRUE, "x", 0, 999, 1, 10}, {"y ", G_TYPE_INT, TRUE, TRUE, "y", 0, 999, 1, 10}, {N_("ax"), G_TYPE_PARAM, TRUE, TRUE, "axis_x"}, {N_("ay"), G_TYPE_PARAM, TRUE, TRUE, "axis_y"}, {N_("type"), G_TYPE_OBJECT, TRUE, TRUE, "type"}, {N_("size"), G_TYPE_DOUBLE, TRUE, TRUE, "mark_size", 0, SPIN_ENTRY_MAX, 100, 1000}, {N_("width"), G_TYPE_DOUBLE, TRUE, TRUE, "line_width", 0, SPIN_ENTRY_MAX, 10, 100}, {N_("skip"), G_TYPE_INT, TRUE, TRUE, "head_skip", 0, INT_MAX, 1, 10}, {N_("step"), G_TYPE_INT, TRUE, TRUE, "read_step", 1, INT_MAX, 1, 10}, {N_("final"), G_TYPE_INT, TRUE, TRUE, "final_line", INT_MIN, INT_MAX, 1, 10}, {N_("num"), G_TYPE_INT, TRUE, FALSE, "data_num"}, {"^#", G_TYPE_INT, TRUE, FALSE, "oid"}, {"masked", G_TYPE_INT, FALSE, FALSE, "masked"}, }; enum { FILE_WIN_COL_HIDDEN, FILE_WIN_COL_ID, FILE_WIN_COL_FILE, FILE_WIN_COL_X, FILE_WIN_COL_Y, FILE_WIN_COL_X_AXIS, FILE_WIN_COL_Y_AXIS, FILE_WIN_COL_TYPE, FILE_WIN_COL_SIZE, FILE_WIN_COL_WIDTH, FILE_WIN_COL_SKIP, FILE_WIN_COL_STEP, FILE_WIN_COL_FINAL, FILE_WIN_COL_DNUM, FILE_WIN_COL_OID, FILE_WIN_COL_MASKED, FILE_WIN_COL_NUM, }; static void file_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row); static void file_delete_popup_func(GtkMenuItem *w, gpointer client_data); static void file_copy2_popup_func(GtkMenuItem *w, gpointer client_data); static void file_copy_popup_func(GtkMenuItem *w, gpointer client_data); static void file_edit_popup_func(GtkMenuItem *w, gpointer client_data); static void file_draw_popup_func(GtkMenuItem *w, gpointer client_data); static void FileDialogType(GtkWidget *w, gpointer client_data); static void create_type_combo_item(GtkTreeStore *list, struct objlist *obj, int id); static gboolean func_entry_focused(GtkWidget *w, GdkEventFocus *event, gpointer user_data); static struct subwin_popup_list Popup_list[] = { {GTK_STOCK_ADD, G_CALLBACK(CmFileOpen), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {NULL, NULL, 0, NULL, POP_UP_MENU_ITEM_TYPE_SEPARATOR}, {N_("_Duplicate"), G_CALLBACK(file_copy_popup_func), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {N_("duplicate _Behind"), G_CALLBACK(file_copy2_popup_func), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_CLOSE, G_CALLBACK(file_delete_popup_func), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {NULL, NULL, 0, NULL, POP_UP_MENU_ITEM_TYPE_SEPARATOR}, {N_("_Draw"), G_CALLBACK(file_draw_popup_func), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_PROPERTIES, G_CALLBACK(list_sub_window_update), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_EDIT, G_CALLBACK(file_edit_popup_func), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {NULL, NULL, 0, NULL, POP_UP_MENU_ITEM_TYPE_SEPARATOR}, {GTK_STOCK_GOTO_TOP, G_CALLBACK(list_sub_window_move_top), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GO_UP, G_CALLBACK(list_sub_window_move_up), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GO_DOWN, G_CALLBACK(list_sub_window_move_down), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GOTO_BOTTOM, G_CALLBACK(list_sub_window_move_last), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, }; #define POPUP_ITEM_NUM (sizeof(Popup_list) / sizeof(*Popup_list)) #define POPUP_ITEM_TOP 10 #define POPUP_ITEM_UP 11 #define POPUP_ITEM_DOWN 12 #define POPUP_ITEM_BOTTOM 13 #define FITSAVE "fit.ngp" enum MATH_FNC_TYPE { TYPE_MATH_X = 0, TYPE_MATH_Y, TYPE_FUNC_F, TYPE_FUNC_G, TYPE_FUNC_H, }; static char *FieldStr[] = {"math_x", "math_y", "func_f", "func_g", "func_h"}; static void MathTextDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox; struct MathTextDialog *d; static char *label[] = {N_("_Math X:"), N_("_Math Y:"), "_F(X,Y,Z):", "_G(X,Y,Z):", "_H(X,Y,Z):"}; d = (struct MathTextDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = create_text_entry(TRUE, TRUE); d->label = item_setup(hbox, w, _("_Math:"), TRUE); d->list = w; gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } switch (d->Mode) { case TYPE_MATH_X: entry_completion_set_entry(NgraphApp.x_math_list, d->list); break; case TYPE_MATH_Y: entry_completion_set_entry(NgraphApp.y_math_list, d->list); break; case TYPE_FUNC_F: case TYPE_FUNC_G: case TYPE_FUNC_H: entry_completion_set_entry(NgraphApp.func_list, d->list); break; } gtk_label_set_text_with_mnemonic(GTK_LABEL(d->label), _(label[d->Mode])); gtk_entry_set_text(GTK_ENTRY(d->list), d->Text); gtk_window_set_default_size(GTK_WINDOW(wi), 400, -1); } static void MathTextDialogClose(GtkWidget *w, void *data) { struct MathTextDialog *d; const char *p; char *obuf, *ptr; int r, id; GList *id_ptr; d = (struct MathTextDialog *) data; switch (d->ret) { case IDOK: break; case IDCANCEL: return; default: d->ret = IDLOOP; return; } p = gtk_entry_get_text(GTK_ENTRY(d->list)); ptr = g_strdup(p); if (ptr == NULL) { return; } for (id_ptr = d->id_list; id_ptr; id_ptr = id_ptr->next) { r = list_store_path_get_int(d->tree, id_ptr->data, 0, &id); if (r) continue; sgetobjfield(d->Obj, id, FieldStr[d->Mode], NULL, &obuf, FALSE, FALSE, FALSE); if (obuf == NULL || strcmp(obuf, ptr)) { if (sputobjfield(d->Obj, id, FieldStr[d->Mode], ptr)) { g_free(ptr); d->ret = IDLOOP; return; } set_graph_modified(); } g_free(obuf); } g_free(ptr); switch (d->Mode) { case TYPE_MATH_X: entry_completion_append(NgraphApp.x_math_list, p); break; case TYPE_MATH_Y: entry_completion_append(NgraphApp.y_math_list, p); break; case TYPE_FUNC_F: case TYPE_FUNC_G: case TYPE_FUNC_H: entry_completion_append(NgraphApp.func_list, p); break; } } void MathTextDialog(struct MathTextDialog *data, char *text, int mode, struct objlist *obj, GList *list, GtkWidget *tree) { if (mode < 0 || mode >= MATH_FNC_NUM) mode = 0; data->SetupWindow = MathTextDialogSetup; data->CloseWindow = MathTextDialogClose; data->tree = tree; data->Text = text; data->Mode = mode; data->Obj = obj; data->id_list = list; } static void MathDialogSetupItem(GtkWidget *w, struct MathDialog *d) { int i; char *math, *field = NULL; GtkTreeIter iter; list_store_clear(d->list); if (d->Mode < 0 || d->Mode >= MATH_FNC_NUM) d->Mode = 0; field = FieldStr[d->Mode]; for (i = 0; i <= chkobjlastinst(d->Obj); i++) { math = NULL; getobj(d->Obj, field, i, 0, NULL, &math); list_store_append(d->list, &iter); list_store_set_int(d->list, &iter, 0, i); list_store_set_string(d->list, &iter, 1, CHK_STR(math)); } if (d->Mode >= 0 && d->Mode < MATH_FNC_NUM) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->func[d->Mode]), TRUE); } static void MathDialogMode(GtkWidget *w, gpointer client_data) { struct MathDialog *d; int i; if (! gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))) return; d = (struct MathDialog *) client_data; for (i = 0; i < MATH_FNC_NUM; i++) { if (w == d->func[i]) d->Mode = i; } MathDialogSetupItem(d->widget, d); } static void MathDialogList(GtkButton *w, gpointer client_data) { struct MathDialog *d; int a, *ary, r; char *field = NULL, *buf; GtkTreeSelection *gsel; GtkTreePath *path; GList *list, *data; d = (struct MathDialog *) client_data; gsel = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->list)); list = gtk_tree_selection_get_selected_rows(gsel, NULL); if (list == NULL) return; gtk_tree_view_get_cursor(GTK_TREE_VIEW(d->list), &path, NULL); if (path) { r = list_store_path_get_int(d->list, path, 0, &a); gtk_tree_path_free(path); } else { data = g_list_last(list); r = list_store_path_get_int(d->list, data->data, 0, &a); } if (r) goto END; if (d->Mode < 0 || d->Mode >= MATH_FNC_NUM) d->Mode = 0; field = FieldStr[d->Mode]; sgetobjfield(d->Obj, a, field, NULL, &buf, FALSE, FALSE, FALSE); if (buf == NULL) goto END; MathTextDialog(&DlgMathText, buf, d->Mode, d->Obj, list, d->list); DialogExecute(d->widget, &DlgMathText); g_free(buf); MathDialogSetupItem(d->widget, d); for (data = list; data; data = data->next) { ary = gtk_tree_path_get_indices(data->data); if (ary == NULL) continue; gtk_tree_selection_select_path(gsel, data->data); } END: g_list_foreach(list, free_tree_path_cb, NULL); g_list_free(list); } static gboolean math_dialog_key_pressed_cb(GtkWidget *w, GdkEventKey *e, gpointer user_data) { struct MathDialog *d; GtkTreeSelection *gsel; int n; d = (struct MathDialog *) user_data; if (e->keyval != GDK_KEY_Return) return FALSE; gsel = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->list)); n = gtk_tree_selection_count_selected_rows(gsel); if (n < 1) return FALSE; MathDialogList(NULL, d); return TRUE; } static gboolean math_dialog_butten_pressed_cb(GtkWidget *w, GdkEventButton *e, gpointer user_data) { struct MathDialog *d; d = (struct MathDialog *) user_data; if (e->type != GDK_2BUTTON_PRESS) return FALSE; MathDialogList(NULL, d); return TRUE; } static void set_btn_sensitivity_delete_cb(GtkTreeModel *tree_model, GtkTreePath *path, gpointer user_data) { int n; GtkWidget *w; w = GTK_WIDGET(user_data); n = gtk_tree_model_iter_n_children(tree_model, NULL); gtk_widget_set_sensitive(w, n > 0); } static void set_btn_sensitivity_insert_cb(GtkTreeModel *tree_model, GtkTreePath *path, GtkTreeIter *iter, gpointer user_data) { set_btn_sensitivity_delete_cb(tree_model, path, user_data); } static void set_sensitivity_by_row_num(GtkWidget *tree, GtkWidget *btn) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); g_signal_connect(model, "row-deleted", G_CALLBACK(set_btn_sensitivity_delete_cb), btn); g_signal_connect(model, "row-inserted", G_CALLBACK(set_btn_sensitivity_insert_cb), btn); gtk_widget_set_sensitive(btn, FALSE); } static gboolean set_btn_sensitivity_selection_cb(GtkTreeSelection *sel, gpointer user_data) { int n; GtkWidget *w; w = GTK_WIDGET(user_data); n = gtk_tree_selection_count_selected_rows(sel); gtk_widget_set_sensitive(w, n > 0); return FALSE; } static void set_sensitivity_by_selection(GtkWidget *tree, GtkWidget *btn) { GtkTreeSelection *sel; sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree)); g_signal_connect(sel, "changed", G_CALLBACK(set_btn_sensitivity_selection_cb), btn); gtk_widget_set_sensitive(btn, FALSE); } static void MathDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *swin, *vbox, *hbox; struct MathDialog *d; static n_list_store list[] = { {"id", G_TYPE_INT, TRUE, FALSE, NULL}, {N_("math"), G_TYPE_STRING, TRUE, FALSE, NULL}, }; int i; d = (struct MathDialog *) data; if (makewidget) { char *button_str[] = { N_("_X math"), N_("_Y math"), "_F(X, Y, Z)", "_G(X, Y, Z)", "_H(X, Y, Z)", }; #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); hbox = gtk_hbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 4); w = list_store_create(sizeof(list) / sizeof(*list), list); list_store_set_sort_all(w); list_store_set_selection_mode(w, GTK_SELECTION_MULTIPLE); g_signal_connect(w, "key-press-event", G_CALLBACK(math_dialog_key_pressed_cb), d); g_signal_connect(w, "button-press-event", G_CALLBACK(math_dialog_butten_pressed_cb), d); d->list = w; swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(swin), w); w = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(w), swin); gtk_box_pack_start(GTK_BOX(vbox), w, TRUE, TRUE, 4); w = NULL; for (i = 0; i < MATH_FNC_NUM; i++) { w = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(w), _(button_str[i])); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); d->func[i] = w; g_signal_connect(w, "toggled", G_CALLBACK(MathDialogMode), d); } #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = gtk_button_new_from_stock(GTK_STOCK_SELECT_ALL); g_signal_connect(w, "clicked", G_CALLBACK(list_store_select_all_cb), d->list); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); set_sensitivity_by_row_num(d->list, w); w = gtk_button_new_from_stock(GTK_STOCK_EDIT); g_signal_connect(w, "clicked", G_CALLBACK(MathDialogList), d); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 4); set_sensitivity_by_selection(d->list, w); gtk_box_pack_start(GTK_BOX(d->vbox), vbox, TRUE, TRUE, 4); d->show_cancel = FALSE; d->ok_button = GTK_STOCK_CLOSE; gtk_window_set_default_size(GTK_WINDOW(wi), -1, 300); gtk_widget_show_all(GTK_WIDGET(d->vbox)); d->Mode = 0; } MathDialogSetupItem(wi, d); } static void MathDialogClose(GtkWidget *w, void *data) { } void MathDialog(struct MathDialog *data, struct objlist *obj) { data->SetupWindow = MathDialogSetup; data->CloseWindow = MathDialogClose; data->Obj = obj; } static void FitLoadDialogSetup(GtkWidget *wi, void *data, int makewidget) { char *s; struct FitLoadDialog *d; int i; GtkWidget *w; d = (struct FitLoadDialog *) data; if (makewidget) { w = combo_box_create(); d->list = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } combo_box_clear(d->list); for (i = d->Sid; i <= chkobjlastinst(d->Obj); i++) { getobj(d->Obj, "profile", i, 0, NULL, &s); combo_box_append_text(d->list, CHK_STR(s)); } combo_box_set_active(d->list, 0); /* if (makewidget) { XtManageChild(d->widget); d->widget = NULL; XtVaSetValues(d->list, XmNwidth, 200, NULL); } */ } static void FitLoadDialogClose(GtkWidget *w, void *data) { struct FitLoadDialog *d; d = (struct FitLoadDialog *) data; if (d->ret == IDCANCEL) return; d->sel = combo_box_get_active(d->list); } void FitLoadDialog(struct FitLoadDialog *data, struct objlist *obj, int sid) { data->SetupWindow = FitLoadDialogSetup; data->CloseWindow = FitLoadDialogClose; data->Obj = obj; data->Sid = sid; data->sel = -1; } static void FitSaveDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox; struct FitSaveDialog *d; int i; char *s; d = (struct FitSaveDialog *) data; if (makewidget) { gtk_dialog_add_buttons(GTK_DIALOG(wi), GTK_STOCK_DELETE, IDDELETE, NULL); w = combo_box_entry_create(); gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 1.5, -1); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif item_setup(hbox, w, _("_Profile:"), TRUE); d->profile = w; gtk_box_pack_start(GTK_BOX(d->vbox), hbox, TRUE, TRUE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } combo_box_clear(d->profile); for (i = d->Sid; i <= chkobjlastinst(d->Obj); i++) { getobj(d->Obj, "profile", i, 0, NULL, &s); combo_box_append_text(d->profile, CHK_STR(s)); } combo_box_entry_set_text(d->profile, ""); } static void FitSaveDialogClose(GtkWidget *w, void *data) { struct FitSaveDialog *d; const char *s; d = (struct FitSaveDialog *) data; if (d->ret != IDOK && d->ret != IDDELETE) return; s = combo_box_entry_get_text(d->profile); if (s) { char *ptr; ptr = g_strdup(s); g_strstrip(ptr); if (ptr[0] != '\0') { d->Profile = ptr; return; } g_free(ptr); } message_box(d->widget, _("Please specify the profile."), NULL, RESPONS_OK); d->ret = IDLOOP; return; } void FitSaveDialog(struct FitSaveDialog *data, struct objlist *obj, int sid) { data->SetupWindow = FitSaveDialogSetup; data->CloseWindow = FitSaveDialogClose; data->Obj = obj; data->Sid = sid; data->Profile = NULL; } static void FitDialogSetupItem(GtkWidget *w, struct FitDialog *d, int id) { int a, i; SetWidgetFromObjField(d->type, d->Obj, id, "type"); getobj(d->Obj, "poly_dimension", id, 0, NULL, &a); combo_box_set_active(d->dim, a - 1); SetWidgetFromObjField(d->weight, d->Obj, id, "weight_func"); SetWidgetFromObjField(d->through_point, d->Obj, id, "through_point"); SetWidgetFromObjField(d->x, d->Obj, id, "point_x"); SetWidgetFromObjField(d->y, d->Obj, id, "point_y"); SetWidgetFromObjField(d->min, d->Obj, id, "min"); SetWidgetFromObjField(d->max, d->Obj, id, "max"); SetWidgetFromObjField(d->div, d->Obj, id, "div"); SetWidgetFromObjField(d->interpolation, d->Obj, id, "interpolation"); SetWidgetFromObjField(d->converge, d->Obj, id, "converge"); SetWidgetFromObjField(d->derivatives, d->Obj, id, "derivative"); SetWidgetFromObjField(d->formula, d->Obj, id, "user_func"); for (i = 0; i < FIT_PARM_NUM; i++) { char p[] = "parameter0", dd[] = "derivative0"; p[sizeof(p) - 2] += i; dd[sizeof(dd) - 2] += i; SetWidgetFromObjField(d->p[i], d->Obj, id, p); SetWidgetFromObjField(d->d[i], d->Obj, id, dd); } } static char * FitCB(struct objlist *obj, int id) { char *valstr, *profile; getobj(obj, "profile", id, 0, NULL, &profile); valstr = NULL; if (profile == NULL) { char *tmp; sgetobjfield(obj, id, "type", NULL, &tmp, FALSE, FALSE, FALSE); if (tmp) { valstr = g_strdup(_(tmp)); g_free(tmp); } } return valstr; } static void FitDialogCopy(GtkButton *btn, gpointer user_data) { struct FitDialog *d; int sel; d = (struct FitDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, FitCB); if (sel != -1) FitDialogSetupItem(d->widget, d, sel); } static int FitDialogLoadConfig(struct FitDialog *d, int errmes) { int lastid; int newid; struct objlist *shell; struct narray sarray; char *argv[2]; char *file; lastid = chkobjlastinst(d->Obj); if (lastid == d->Lastid) { if ((file = searchscript(FITSAVE)) == NULL) { if (errmes) message_box(d->widget, _("Setting file not found."), FITSAVE, RESPONS_OK); return FALSE; } if ((shell = chkobject("shell")) == NULL) return FALSE; newid = newobj(shell); if (newid < 0) { g_free(file); return FALSE; } arrayinit(&sarray, sizeof(char *)); changefilename(file); if (arrayadd(&sarray, &file) == NULL) { g_free(file); arraydel2(&sarray); return FALSE; } argv[0] = (char *) &sarray; argv[1] = NULL; exeobj(shell, "shell", newid, 1, argv); arraydel2(&sarray); delobj(shell, newid); } return TRUE; } static void FitDialogLoad(GtkButton *btn, gpointer user_data) { struct FitDialog *d; int lastid, id; d = (struct FitDialog *) user_data; if (!FitDialogLoadConfig(d, TRUE)) return; lastid = chkobjlastinst(d->Obj); if ((d->Lastid < 0) || (lastid == d->Lastid)) { message_box(d->widget, _("No settings."), FITSAVE, RESPONS_OK); return; } FitLoadDialog(&DlgFitLoad, d->Obj, d->Lastid + 1); if ((DialogExecute(d->widget, &DlgFitLoad) == IDOK) && (DlgFitLoad.sel >= 0)) { id = DlgFitLoad.sel + d->Lastid + 1; FitDialogSetupItem(d->widget, d, id); } } static int copy_settings_to_fitobj(struct FitDialog *d, char *profile) { int i, id, num; char *s; for (i = d->Lastid + 1; i <= chkobjlastinst(d->Obj); i++) { getobj(d->Obj, "profile", i, 0, NULL, &s); if (s && strcmp(s, profile) == 0) { if (message_box(d->widget, _("Overwrite existing profile?"), "Confirm", RESPONS_YESNO) != IDYES) { return 1; } break; } } if (i > chkobjlastinst(d->Obj)) { id = newobj(d->Obj); } else { id = i; } if (putobj(d->Obj, "profile", id, profile) == -1) return 1; if (SetObjFieldFromWidget(d->type, d->Obj, id, "type")) return 1; num = combo_box_get_active(d->dim); num++; if (num > 0 && putobj(d->Obj, "poly_dimension", id, &num) == -1) return 1; if (SetObjFieldFromWidget(d->weight, d->Obj, id, "weight_func")) return 1; if (SetObjFieldFromWidget (d->through_point, d->Obj, id, "through_point")) return 1; if (SetObjFieldFromWidget(d->x, d->Obj, id, "point_x")) return 1; if (SetObjFieldFromWidget(d->y, d->Obj, id, "point_y")) return 1; if (SetObjFieldFromWidget(d->min, d->Obj, id, "min")) return 1; if (SetObjFieldFromWidget(d->max, d->Obj, id, "max")) return 1; if (SetObjFieldFromWidget(d->div, d->Obj, id, "div")) return 1; if (SetObjFieldFromWidget(d->interpolation, d->Obj, id, "interpolation")) return 1; if (SetObjFieldFromWidget(d->formula, d->Obj, id, "user_func")) return 1; if (SetObjFieldFromWidget(d->derivatives, d->Obj, id, "derivative")) return 1; if (SetObjFieldFromWidget(d->converge, d->Obj, id, "converge")) return 1; for (i = 0; i < FIT_PARM_NUM; i++) { char p[] = "parameter0", dd[] = "derivative0"; p[sizeof(p) - 2] += i; dd[sizeof(dd) - 2] += i; if (SetObjFieldFromWidget(d->p[i], d->Obj, id, p)) return 1; if (SetObjFieldFromWidget(d->d[i], d->Obj, id, dd)) return 1; } return 0; } static int delete_fitobj(struct FitDialog *d, char *profile) { int i, r; char *s, *ptr; if (profile == NULL) return 1; for (i = d->Lastid + 1; i <= chkobjlastinst(d->Obj); i++) { getobj(d->Obj, "profile", i, 0, NULL, &s); if (s && strcmp(s, profile) == 0) { ptr = g_strdup_printf(_("Delete the profile '%s'?"), profile); r = message_box(d->widget, ptr, "Confirm", RESPONS_YESNO); g_free(ptr); if (r != IDYES) { return 1; } break; } } if (i > chkobjlastinst(d->Obj)) { ptr = g_strdup_printf(_("The profile '%s' is not exist."), profile); message_box(d->widget, ptr, "Confirm", RESPONS_OK); g_free(ptr); return 1; } delobj(d->Obj, i); return 0; } static void FitDialogSave(GtkWidget *w, gpointer client_data) { int i, r, len; char *s, *ngpfile, *ptr; int error; int hFile; struct FitDialog *d; d = (struct FitDialog *) client_data; if (!FitDialogLoadConfig(d, FALSE)) return; FitSaveDialog(&DlgFitSave, d->Obj, d->Lastid + 1); r = DialogExecute(d->widget, &DlgFitSave); if (r != IDOK && r != IDDELETE) return; if (DlgFitSave.Profile == NULL) return; if (DlgFitSave.Profile[0] == '\0') { g_free(DlgFitSave.Profile); return; } switch (r) { case IDOK: if (copy_settings_to_fitobj(d, DlgFitSave.Profile)) { g_free(DlgFitSave.Profile); return; } break; case IDDELETE: if (delete_fitobj(d, DlgFitSave.Profile)) { g_free(DlgFitSave.Profile); return; } break; } ngpfile = getscriptname(FITSAVE); if (ngpfile == NULL) { return; } error = FALSE; hFile = nopen(ngpfile, O_CREAT | O_TRUNC | O_RDWR, NFMODE_NORMAL_FILE); if (hFile < 0) { error = TRUE; } else { for (i = d->Lastid + 1; i <= chkobjlastinst(d->Obj); i++) { getobj(d->Obj, "save", i, 0, NULL, &s); len = strlen(s); if (len != nwrite(hFile, s, len)) error = TRUE; if (nwrite(hFile, "\n", 1) != 1) error = TRUE; } nclose(hFile); } if (error) { ErrorMessage(); } else { switch (r) { case IDOK: ptr = g_strdup_printf(_("The profile '%s' is saved."), DlgFitSave.Profile); message_box(d->widget, ptr, "Confirm", RESPONS_OK); g_free(ptr); break; case IDDELETE: ptr = g_strdup_printf(_("The profile '%s' is deleted."), DlgFitSave.Profile); message_box(d->widget, ptr, "Confirm", RESPONS_OK); g_free(ptr); g_free(DlgFitSave.Profile); break; } } g_free(ngpfile); } static int check_fit_func(GtkEditable *w, gpointer client_data) { struct FitDialog *d; MathEquation *code; MathEquationParametar *prm; const char *math; int dim, i, n, deriv; d = (struct FitDialog *) client_data; code = math_equation_basic_new(); if (code == NULL) return FALSE; if (math_equation_add_parameter(code, 0, 1, 2, MATH_EQUATION_PARAMETAR_USE_ID)) { math_equation_free(code); return FALSE; } math = gtk_entry_get_text(GTK_ENTRY(d->formula)); if (math_equation_parse(code, math)) { math_equation_free(code); return FALSE; } prm = math_equation_get_parameter(code, 0, NULL); dim = prm->id_num; deriv = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->derivatives)); for (i = 0; i < FIT_PARM_NUM; i++) { set_widget_sensitivity_with_label(d->p[i], FALSE); set_widget_sensitivity_with_label(d->d[i], FALSE); } for (i = 0; i < dim; i++) { n = prm->id[i]; if (n < FIT_PARM_NUM) { set_widget_sensitivity_with_label(d->p[n], TRUE); if (deriv) { set_widget_sensitivity_with_label(d->d[n], TRUE); } } } math_equation_free(code); return TRUE; } static void FitDialogResult(GtkWidget *w, gpointer client_data) { struct FitDialog *d; double derror, correlation, coe[FIT_PARM_NUM]; char *equation, *math, buf[1024]; N_VALUE *inst; int i, j, dim, dimension, type, num; d = (struct FitDialog *) client_data; if ((inst = chkobjinst(d->Obj, d->Id)) == NULL) return; if (_getobj(d->Obj, "type", inst, &type)) return; if (_getobj(d->Obj, "poly_dimension", inst, &dimension)) return; if (_getobj(d->Obj, "number", inst, &num)) return; if (_getobj(d->Obj, "error", inst, &derror)) return; if (_getobj(d->Obj, "correlation", inst, &correlation)) return; for (i = 0; i < FIT_PARM_NUM; i++) { char p[] = "%00"; p[sizeof(p) - 2] += i; if (_getobj(d->Obj, p, inst, coe + i)) { return; } } if (_getobj(d->Obj, "equation", inst, &equation)) return; if (_getobj(d->Obj, "user_func", inst, &math)) return; if (equation == NULL) { snprintf(buf, sizeof(buf), "Undefined"); } else if (type != 4) { i = 0; if (type == 0) { dim = dimension + 1; } else { dim = 2; } if (type == 0) { i += snprintf(buf + i, sizeof(buf) - i, "Eq: %%0i*X^i (i=0-%d)\n\n", dim - 1); } else if (type == 1) { i += snprintf(buf + i, sizeof(buf) - i, "Eq: exp(%%00)*X^%%01\n\n"); } else if (type == 2) { i += snprintf(buf + i, sizeof(buf) - i, "Eq: exp(%%01*X+%%00)\n\n"); } else if (type == 3) { i += snprintf(buf + i, sizeof(buf) - i, "Eq: %%01*Ln(X)+%%00\n\n"); } for (j = 0; j < dim; j++) { i += snprintf(buf + i, sizeof(buf) - i, " %%0%d = %.7e\n", j, coe[j]); } i += snprintf(buf + i, sizeof(buf) - i, "\n"); i += snprintf(buf + i, sizeof(buf) - i, " points = %d\n", num); i += snprintf(buf + i, sizeof(buf) - i, " = %.7e\n", derror); if (correlation >= 0) { i += snprintf(buf + i, sizeof(buf) - i, "|r| or |R| = %.7e\n", correlation); } else { i += snprintf(buf + i, sizeof(buf) - i, "|r| or |R| = -------------\n"); } } else { int tbl[FIT_PARM_NUM]; MathEquation *code; MathEquationParametar *prm; code = math_equation_basic_new(); if (code == NULL) return; if (math_equation_add_parameter(code, 0, 1, 2, MATH_EQUATION_PARAMETAR_USE_ID)) { math_equation_free(code); return; } if (math_equation_parse(code, math)) { math_equation_free(code); return; } prm = math_equation_get_parameter(code, 0, NULL); dim = prm->id_num; for (i = 0; i < dim; i++) { tbl[i] = prm->id[i]; } math_equation_free(code); i = 0; i += snprintf(buf + i, sizeof(buf) - i, "Eq: User defined\n\n"); for (j = 0; j < dim; j++) { i += snprintf(buf + i, sizeof(buf) - i, " %%0%d = %.7e\n", tbl[j], coe[tbl[j]]); } i += snprintf(buf + i, sizeof(buf) - i, "\n"); i += snprintf(buf + i, sizeof(buf) - i, " points = %d\n", num); i += snprintf(buf + i, sizeof(buf) - i, " = %.7e\n", derror); if (correlation >= 0) { i += snprintf(buf + i, sizeof(buf) - i, "|r| or |R| = %.7e\n", correlation); } else { i += snprintf(buf + i, sizeof(buf) - i, "|r| or |R| = -------------\n"); } } message_box(d->widget, buf, _("Fitting Results"), RESPONS_OK); } static int FitDialogApply(GtkWidget *w, struct FitDialog *d) { int i, num, dim; const gchar *s; if (SetObjFieldFromWidget(d->type, d->Obj, d->Id, "type")) return FALSE; if (getobj(d->Obj, "poly_dimension", d->Id, 0, NULL, &dim) == -1) return FALSE; num = combo_box_get_active(d->dim); num++; if (num > 0 && putobj(d->Obj, "poly_dimension", d->Id, &num) == -1) return FALSE; if (num != dim) set_graph_modified(); if (SetObjFieldFromWidget(d->weight, d->Obj, d->Id, "weight_func")) return FALSE; if (SetObjFieldFromWidget(d->through_point, d->Obj, d->Id, "through_point")) return FALSE; if (SetObjFieldFromWidget(d->x, d->Obj, d->Id, "point_x")) return FALSE; if (SetObjFieldFromWidget(d->y, d->Obj, d->Id, "point_y")) return FALSE; if (SetObjFieldFromWidget(d->min, d->Obj, d->Id, "min")) return FALSE; if (SetObjFieldFromWidget(d->max, d->Obj, d->Id, "max")) return FALSE; if (SetObjFieldFromWidget(d->div, d->Obj, d->Id, "div")) return FALSE; if (SetObjFieldFromWidget(d->interpolation, d->Obj, d->Id, "interpolation")) return FALSE; if (SetObjFieldFromWidget(d->derivatives, d->Obj, d->Id, "derivative")) return FALSE; if (SetObjFieldFromWidget(d->converge, d->Obj, d->Id, "converge")) return FALSE; if (SetObjFieldFromWidget(d->formula, d->Obj, d->Id, "user_func")) return FALSE; s = gtk_entry_get_text(GTK_ENTRY(d->formula)); entry_completion_append(NgraphApp.fit_list, s); for (i = 0; i < FIT_PARM_NUM; i++) { char p[] = "parameter0", dd[] = "derivative0"; p[sizeof(p) - 2] += i; dd[sizeof(dd) - 2] += i; if (SetObjFieldFromWidget(d->p[i], d->Obj, d->Id, p)) return FALSE; if (SetObjFieldFromWidget(d->d[i], d->Obj, d->Id, dd)) return FALSE; s = gtk_entry_get_text(GTK_ENTRY(d->d[i])); entry_completion_append(NgraphApp.fit_list, s); } return TRUE; } static void FitDialogDraw(GtkWidget *w, gpointer client_data) { struct FitDialog *d; d = (struct FitDialog *) client_data; if (!FitDialogApply(d->widget, d)) return; FitDialogSetupItem(d->widget, d, d->Id); Draw(FALSE); } static void set_user_fit_sensitivity(struct FitDialog *d, int active) { int i; for (i = 0; i < FIT_PARM_NUM; i++) { set_widget_sensitivity_with_label(d->d[i], active); } } static void set_fitdialog_sensitivity(struct FitDialog *d, int type, int through) { int i; set_user_fit_sensitivity(d, FALSE); for (i = 0; i < FIT_PARM_NUM; i++) { set_widget_sensitivity_with_label(d->p[i], FALSE); } set_widget_sensitivity_with_label(d->dim, type == 0); gtk_widget_set_sensitive(d->usr_def_frame, FALSE); gtk_widget_set_sensitive(d->usr_def_prm_tbl, FALSE); gtk_widget_set_sensitive(d->through_box, through); gtk_widget_set_sensitive(d->through_point, TRUE); } static void FitDialogSetSensitivity(GtkWidget *widget, gpointer user_data) { struct FitDialog *d; int type, through, deriv, dim; char buf[1024]; d = (struct FitDialog *) user_data; type = combo_box_get_active(d->type); through = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->through_point)); switch (type) { case FIT_TYPE_POLY: dim = combo_box_get_active(d->dim); if (dim == 0) { gtk_label_set_markup(GTK_LABEL(d->func_label), "Equation: Y=X+b"); } else { snprintf(buf, sizeof(buf), "Equation: Y=∑ ai·Xi (i=0-%d)", dim + 1); gtk_label_set_markup(GTK_LABEL(d->func_label), buf); } set_fitdialog_sensitivity(d, type, through); break; case FIT_TYPE_POW: gtk_label_set_markup(GTK_LABEL(d->func_label), "Equation: Y=Xb"); set_fitdialog_sensitivity(d, type, through); break; case FIT_TYPE_EXP: gtk_label_set_markup(GTK_LABEL(d->func_label), "Equation: Y=e(a·X+b)"); set_fitdialog_sensitivity(d, type, through); break; case FIT_TYPE_LOG: gtk_label_set_markup(GTK_LABEL(d->func_label), "Equation: Y=a·Ln(X)+b"); set_fitdialog_sensitivity(d, type, through); break; case FIT_TYPE_USER: gtk_label_set_text(GTK_LABEL(d->func_label), ""); deriv = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->derivatives)); set_widget_sensitivity_with_label(d->dim, FALSE); gtk_widget_set_sensitive(d->through_point, FALSE); gtk_widget_set_sensitive(d->through_box, FALSE); gtk_widget_set_sensitive(d->usr_def_frame, TRUE); gtk_widget_set_sensitive(d->usr_def_prm_tbl, TRUE); set_user_fit_sensitivity(d, deriv); check_fit_func(NULL, d); break; } } static GtkWidget * create_user_fit_frame(struct FitDialog *d) { GtkWidget *table, *w, *vbox; int i, j; #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 3, FALSE); #endif j = 0; w = create_text_entry(FALSE, TRUE); add_widget_to_table_sub(table, w, _("_Formula:"), TRUE, 0, 2, 3, j++); g_signal_connect(w, "focus-in-event", G_CALLBACK(func_entry_focused), NgraphApp.fit_list); g_signal_connect(w, "changed", G_CALLBACK(check_fit_func), d); d->formula = w; w = create_text_entry(TRUE, TRUE); add_widget_to_table_sub(table, w, _("_Converge (%):"), TRUE, 0, 1, 3, j); d->converge = w; w = gtk_check_button_new_with_mnemonic(_("_Derivatives")); add_widget_to_table_sub(table, w, NULL, FALSE, 2, 1, 3, j++); d->derivatives = w; gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 4, FALSE); #endif for (i = 0; i < FIT_PARM_NUM; i++) { char p[] = "%0_0:", dd[] = "dF/d(%0_0):"; p[sizeof(p) - 3] += i; dd[sizeof(dd) - 4] += i; w = create_text_entry(TRUE, TRUE); add_widget_to_table_sub(table, w, p, TRUE, 0, 1, 4, j); d->p[i] = w; w = create_text_entry(TRUE, TRUE); g_signal_connect(w, "focus-in-event", G_CALLBACK(func_entry_focused), NgraphApp.fit_list); add_widget_to_table_sub(table, w, dd, TRUE, 2, 1, 4, j++); d->d[i] = w; } w = gtk_scrolled_window_new(NULL, NULL); #if GTK_CHECK_VERSION(3, 8, 0) gtk_container_add(GTK_CONTAINER(w), table); #else gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(w), table); #endif gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(w), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(w), GTK_SHADOW_NONE); gtk_widget_set_size_request(GTK_WIDGET(w), -1, 200); gtk_container_set_border_width(GTK_CONTAINER(w), 2); gtk_box_pack_start(GTK_BOX(vbox), w, TRUE, TRUE, 0); d->usr_def_prm_tbl = table; w = gtk_frame_new(_("User definition")); gtk_container_add(GTK_CONTAINER(w), vbox); return w; } static void FitDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *hbox2, *vbox, *frame, *table; struct FitDialog *d; char title[20], **enumlist, mes[10]; int i; d = (struct FitDialog *) data; snprintf(title, sizeof(title), _("Fit %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_DELETE, IDDELETE); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 5, FALSE); #endif #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); hbox = gtk_hbox_new(FALSE, 4); #endif w = combo_box_create(); add_widget_to_table_sub(table, w, _("_Type:"), FALSE, 0, 1, 5, 0); d->type = w; enumlist = (char **) chkobjarglist(d->Obj, "type"); for (i = 0; enumlist[i] && enumlist[i][0]; i++) { combo_box_append_text(d->type, _(enumlist[i])); } hbox2 = gtk_hbox_new(FALSE, 4); w = combo_box_create(); add_widget_to_table_sub(table, w, _("_Dim:"), FALSE, 2, 1, 5, 0); d->dim = w; for (i = 0; i < FIT_PARM_NUM - 1; i++) { snprintf(mes, sizeof(mes), "%d", i + 1); combo_box_append_text(d->dim, mes); } w = gtk_label_new(""); #if ! GTK_CHECK_VERSION(3, 4, 0) gtk_misc_set_alignment(GTK_MISC(w), 0, 1); #endif add_widget_to_table_sub(table, w, NULL, TRUE, 4, 1, 5, 0); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_halign(w, GTK_ALIGN_START); gtk_widget_set_valign(w, GTK_ALIGN_END); #endif d->func_label = w; hbox2 = gtk_hbox_new(FALSE, 4); w = create_text_entry(TRUE, TRUE); add_widget_to_table_sub(table, w, _("_Weight:"), TRUE, 0, 4, 5, 1); d->weight = w; gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = gtk_check_button_new_with_mnemonic(_("_Through")); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); d->through_point = w; hbox2 = gtk_hbox_new(FALSE, 4); w = create_text_entry(TRUE, TRUE); item_setup(hbox2, w, "_X:", TRUE); d->x = w; w = create_text_entry(TRUE, TRUE); item_setup(hbox2, w, "_Y:", TRUE); d->y = w; d->through_box = hbox2; gtk_box_pack_start(GTK_BOX(hbox), hbox2, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 4); frame = gtk_frame_new(_("Action")); gtk_container_add(GTK_CONTAINER(frame), vbox); gtk_box_pack_start(GTK_BOX(d->vbox), frame, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = create_text_entry(TRUE, TRUE); item_setup(hbox, w, _("_Min:"), TRUE); d->min = w; w = create_text_entry(TRUE, TRUE); item_setup(hbox, w, _("_Max:"), TRUE); d->max = w; w = create_spin_entry(1, 65535, 1, TRUE, TRUE); item_setup(hbox, w, _("_Div:"), FALSE); d->div = w; w = gtk_check_button_new_with_mnemonic(_("_Interpolation")); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); d->interpolation = w; #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 4); frame = gtk_frame_new(_("Draw X range")); gtk_container_add(GTK_CONTAINER(frame), vbox); gtk_box_pack_start(GTK_BOX(d->vbox), frame, FALSE, FALSE, 4); frame = create_user_fit_frame(d); d->usr_def_frame = frame; gtk_box_pack_start(GTK_BOX(d->vbox), frame, TRUE, TRUE, 4); hbox = add_copy_button_to_box(GTK_WIDGET(d->vbox), G_CALLBACK(FitDialogCopy), d, "fit"); w = gtk_button_new_with_mnemonic(_("_Load")); g_signal_connect(w, "clicked", G_CALLBACK(FitDialogLoad), d); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); w = gtk_button_new_from_stock(GTK_STOCK_SAVE); g_signal_connect(w, "clicked", G_CALLBACK(FitDialogSave), d); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); w = gtk_button_new_with_mnemonic(_("_Draw")); gtk_box_pack_end(GTK_BOX(hbox), w, FALSE, FALSE, 4); g_signal_connect(w, "clicked", G_CALLBACK(FitDialogDraw), d); w = gtk_button_new_with_mnemonic(_("_Result")); gtk_box_pack_end(GTK_BOX(hbox), w, FALSE, FALSE, 4); g_signal_connect(w, "clicked", G_CALLBACK(FitDialogResult), d); g_signal_connect(d->dim, "changed", G_CALLBACK(FitDialogSetSensitivity), d); g_signal_connect(d->type, "changed", G_CALLBACK(FitDialogSetSensitivity), d); g_signal_connect(d->through_point, "toggled", G_CALLBACK(FitDialogSetSensitivity), d); g_signal_connect(d->derivatives, "toggled", G_CALLBACK(FitDialogSetSensitivity), d); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } FitDialogSetupItem(wi, d, d->Id); } static void FitDialogClose(GtkWidget *w, void *data) { struct FitDialog *d; int ret; int i, lastid; d = (struct FitDialog *) data; switch (d->ret) { case IDOK: break; case IDDELETE: break; case IDCANCEL: break; default: d->ret = IDLOOP; return; } ret = d->ret; d->ret = IDLOOP; if (ret == IDOK && ! FitDialogApply(w, d)) { return; } d->ret = ret; lastid = chkobjlastinst(d->Obj); for (i = lastid; i > d->Lastid; i--) { delobj(d->Obj, i); } } void FitDialog(struct FitDialog *data, struct objlist *obj, int id) { data->SetupWindow = FitDialogSetup; data->CloseWindow = FitDialogClose; data->Obj = obj; data->Id = id; data->Lastid = chkobjlastinst(obj); } static void move_tab_setup_item(struct FileDialog *d, int id) { unsigned int j, movenum; int line; double x, y; struct narray *move, *movex, *movey; GtkTreeIter iter; char buf[64]; list_store_clear(d->move.list); exeobj(d->Obj, "move_data_adjust", id, 0, NULL); getobj(d->Obj, "move_data", id, 0, NULL, &move); getobj(d->Obj, "move_data_x", id, 0, NULL, &movex); getobj(d->Obj, "move_data_y", id, 0, NULL, &movey); movenum = arraynum(move); if (arraynum(movex) < movenum) { movenum = arraynum(movex); } if (arraynum(movey) < movenum) { movenum = arraynum(movey); } if (movenum > 0) { for (j = 0; j < movenum; j++) { line = arraynget_int(move, j); x = arraynget_double(movex, j); y = arraynget_double(movey, j); list_store_append(d->move.list, &iter); list_store_set_int(d->move.list, &iter, 0, line); snprintf(buf, sizeof(buf), "%+.15e", x); list_store_set_string(d->move.list, &iter, 1, buf); snprintf(buf, sizeof(buf), "%+.15e", y); list_store_set_string(d->move.list, &iter, 2, buf); } } } static void FileMoveDialogAdd(GtkWidget *w, gpointer client_data) { struct FileDialog *d; int a; double x, y; const char *buf; char *endptr, buf2[64]; GtkTreeIter iter; d = (struct FileDialog *) client_data; a = spin_entry_get_val(d->move.line); buf = gtk_entry_get_text(GTK_ENTRY(d->move.x)); if (buf[0] == '\0') return; x = strtod(buf, &endptr); if (x != x || x == HUGE_VAL || x == - HUGE_VAL || endptr[0] != '\0') return; buf = gtk_entry_get_text(GTK_ENTRY(d->move.y)); if (buf[0] == '\0') return; y = strtod(buf, &endptr); if (y != y || y == HUGE_VAL || y == - HUGE_VAL || endptr[0] != '\0') return; list_store_append(d->move.list, &iter); list_store_set_int(d->move.list, &iter, 0, a); snprintf(buf2, sizeof(buf2), "%+.15e", x); list_store_set_string(d->move.list, &iter, 1, buf2); snprintf(buf2, sizeof(buf2), "%+.15e", y); list_store_set_string(d->move.list, &iter, 2, buf2); gtk_entry_set_text(GTK_ENTRY(d->move.x), ""); gtk_entry_set_text(GTK_ENTRY(d->move.y), ""); d->move.changed = TRUE; } static gboolean move_dialog_key_pressed(GtkWidget *w, GdkEventKey *e, gpointer user_data) { struct FileDialog *d; d = (struct FileDialog *) user_data; if (e->keyval != GDK_KEY_Return) return FALSE; FileMoveDialogAdd(NULL, d); return TRUE; } static void FileMoveDialogRemove(GtkWidget *w, gpointer client_data) { struct FileDialog *d; d = (struct FileDialog *) client_data; list_store_remove_selected_cb(w, d->move.list); d->move.changed = TRUE; } static void move_tab_copy(GtkButton *btn, gpointer user_data) { struct FileDialog *d; int sel; d = (struct FileDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, FileCB); if (sel != -1) { move_tab_setup_item(d, sel); d->move.changed = TRUE; } } static GtkWidget * move_tab_create(struct FileDialog *d) { GtkWidget *w, *hbox, *swin, *table, *vbox; n_list_store list[] = { {N_("Line No."), G_TYPE_INT, TRUE, FALSE, NULL}, {"X", G_TYPE_STRING, TRUE, FALSE, NULL}, {"Y", G_TYPE_STRING, TRUE, FALSE, NULL}, }; int i; swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(swin), GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); w = list_store_create(sizeof(list) / sizeof(*list), list); list_store_set_sort_column(w, 0); list_store_set_selection_mode(w, GTK_SELECTION_MULTIPLE); d->move.list = w; gtk_container_add(GTK_CONTAINER(swin), w); set_widget_margin(swin, WIDGET_MARGIN_TOP | WIDGET_MARGIN_BOTTOM); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_NATURAL, TRUE, FALSE); g_signal_connect(w, "key-press-event", G_CALLBACK(move_dialog_key_pressed), d); add_widget_to_table(table, w, _("_Line:"), FALSE, i++); d->move.line = w; w = create_text_entry(TRUE, FALSE); g_signal_connect(w, "key-press-event", G_CALLBACK(move_dialog_key_pressed), d); add_widget_to_table(table, w, "_X:", FALSE, i++); d->move.x = w; w = create_text_entry(TRUE, FALSE); g_signal_connect(w, "key-press-event", G_CALLBACK(move_dialog_key_pressed), d); add_widget_to_table(table, w, "_Y:", FALSE, i++); d->move.y = w; w = gtk_button_new_from_stock(GTK_STOCK_ADD); add_widget_to_table(table, w, "", FALSE, i++); g_signal_connect(w, "clicked", G_CALLBACK(FileMoveDialogAdd), d); w = gtk_button_new_from_stock(GTK_STOCK_REMOVE); add_widget_to_table(table, w, NULL, FALSE, i++); g_signal_connect(w, "clicked", G_CALLBACK(FileMoveDialogRemove), d); set_sensitivity_by_selection(d->move.list, w); w = gtk_button_new_from_stock(GTK_STOCK_SELECT_ALL); add_widget_to_table(table, w, NULL, FALSE, i++); g_signal_connect(w, "clicked", G_CALLBACK(list_store_select_all_cb), d->move.list); set_sensitivity_by_row_num(d->move.list, w); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(hbox), table, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), swin, TRUE, TRUE, 4); w = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(w), hbox); set_widget_margin(w, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), w, TRUE, TRUE, 4); add_copy_button_to_box(vbox, G_CALLBACK(move_tab_copy), d, "file"); return vbox; } static int move_tab_set_value(struct FileDialog *d) { unsigned int j, movenum; int line, a; double x, y; struct narray *move, *movex, *movey; GtkTreeIter iter; gboolean state; char *ptr, *endptr; if (d->move.changed == FALSE) { return 0; } set_graph_modified(); exeobj(d->Obj, "move_data_adjust", d->Id, 0, NULL); getobj(d->Obj, "move_data", d->Id, 0, NULL, &move); getobj(d->Obj, "move_data_x", d->Id, 0, NULL, &movex); getobj(d->Obj, "move_data_y", d->Id, 0, NULL, &movey); if (move) { putobj(d->Obj, "move_data", d->Id, NULL); move = NULL; } if (movex) { putobj(d->Obj, "move_data_x", d->Id, NULL); movex = NULL; } if (movey) { putobj(d->Obj, "move_data_y", d->Id, NULL); movey = NULL; } state = list_store_get_iter_first(d->move.list, &iter); while (state) { a = list_store_get_int(d->move.list, &iter, 0); ptr = list_store_get_string(d->move.list, &iter, 1); x = strtod(ptr, &endptr); g_free(ptr); ptr = list_store_get_string(d->move.list, &iter, 2); y = strtod(ptr, &endptr); g_free(ptr); if (move == NULL) move = arraynew(sizeof(int)); if (movex == NULL) movex = arraynew(sizeof(double)); if (movey == NULL) movey = arraynew(sizeof(double)); movenum = arraynum(move); if (arraynum(movex) < movenum) movenum = arraynum(movex); if (arraynum(movey) < movenum) movenum = arraynum(movey); for (j = 0; j < movenum; j++) { line = arraynget_int(move, j); if (line == a) break; } if (j == movenum) { arrayadd(move, &a); arrayadd(movex, &x); arrayadd(movey, &y); } state = list_store_iter_next(d->move.list, &iter); } putobj(d->Obj, "move_data", d->Id, move); putobj(d->Obj, "move_data_x", d->Id, movex); putobj(d->Obj, "move_data_y", d->Id, movey); return 0; } static void mask_tab_setup_item(struct FileDialog *d, int id) { int line, j, masknum; struct narray *mask; GtkTreeIter iter; list_store_clear(d->mask.list); getobj(d->Obj, "mask", id, 0, NULL, &mask); if ((masknum = arraynum(mask)) > 0) { for (j = 0; j < masknum; j++) { line = arraynget_int(mask, j); list_store_append(d->mask.list, &iter); list_store_set_int(d->mask.list, &iter, 0, line); } } } static void FileMaskDialogAdd(GtkWidget *w, gpointer client_data) { struct FileDialog *d; int a; GtkTreeIter iter; d = (struct FileDialog *) client_data; a = spin_entry_get_val(d->mask.line); list_store_append(d->mask.list, &iter); list_store_set_int(d->mask.list, &iter, 0, a); d->mask.changed = TRUE; } static gboolean mask_dialog_key_pressed(GtkWidget *w, GdkEventKey *e, gpointer user_data) { struct FileDialog *d; d = (struct FileDialog *) user_data; if (e->keyval != GDK_KEY_Return) return FALSE; FileMaskDialogAdd(NULL, d); return TRUE; } static void mask_tab_copy(GtkButton *btn, gpointer user_data) { struct FileDialog *d; int sel; d = (struct FileDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, FileCB); if (sel != -1) { mask_tab_setup_item(d, sel); d->mask.changed = TRUE; } } static void FileMaskDialogRemove(GtkWidget *w, gpointer client_data) { struct FileDialog *d; d = (struct FileDialog *) client_data; list_store_remove_selected_cb(w, d->mask.list); d->mask.changed = TRUE; } static GtkWidget * mask_tab_create(struct FileDialog *d) { GtkWidget *w, *swin, *hbox, *table, *vbox, *frame; n_list_store list[] = { {_("Line No."), G_TYPE_INT, TRUE, FALSE, NULL}, }; int i; #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_NATURAL, TRUE, FALSE); g_signal_connect(w, "key-press-event", G_CALLBACK(mask_dialog_key_pressed), d); add_widget_to_table(table, w, _("_Line:"), FALSE, i++); d->mask.line = w; swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(swin), GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); w = list_store_create(sizeof(list) / sizeof(*list), list); list_store_set_sort_column(w, 0); list_store_set_selection_mode(w, GTK_SELECTION_MULTIPLE); d->mask.list = w; gtk_container_add(GTK_CONTAINER(swin), w); set_widget_margin(swin, WIDGET_MARGIN_TOP | WIDGET_MARGIN_BOTTOM); w = gtk_button_new_from_stock(GTK_STOCK_ADD); add_widget_to_table(table, w, "", FALSE, i++); g_signal_connect(w, "clicked", G_CALLBACK(FileMaskDialogAdd), d); w = gtk_button_new_from_stock(GTK_STOCK_REMOVE); add_widget_to_table(table, w, NULL, FALSE, i++); g_signal_connect(w, "clicked", G_CALLBACK(FileMaskDialogRemove), d); set_sensitivity_by_selection(d->mask.list, w); w = gtk_button_new_from_stock(GTK_STOCK_SELECT_ALL); add_widget_to_table(table, w, NULL, FALSE, i++); g_signal_connect(w, "clicked", G_CALLBACK(list_store_select_all_cb), d->mask.list); set_sensitivity_by_row_num(d->mask.list, w); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(hbox), table, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), swin, TRUE, TRUE, 4); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), hbox); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 4); add_copy_button_to_box(vbox, G_CALLBACK(mask_tab_copy), d, "file"); return vbox; } static int mask_tab_set_value(struct FileDialog *d) { int a; struct narray *mask; GtkTreeIter iter; gboolean state; if (d->mask.changed == FALSE) { return 0; } getobj(d->Obj, "mask", d->Id, 0, NULL, &mask); if (mask) { putobj(d->Obj, "mask", d->Id, NULL); mask = NULL; } state = list_store_get_iter_first(d->mask.list, &iter); while (state) { a = list_store_get_int(d->mask.list, &iter, 0); if (mask == NULL) mask = arraynew(sizeof(int)); arrayadd(mask, &a); state = list_store_iter_next(d->mask.list, &iter); } putobj(d->Obj, "mask", d->Id, mask); set_graph_modified(); return 0; } static void load_tab_setup_item(struct FileDialog *d, int id) { char *ifs, *s; unsigned int i, j, l; SetWidgetFromObjField(d->load.headskip, d->Obj, id, "head_skip"); SetWidgetFromObjField(d->load.readstep, d->Obj, id, "read_step"); SetWidgetFromObjField(d->load.finalline, d->Obj, id, "final_line"); SetWidgetFromObjField(d->load.remark, d->Obj, id, "remark"); SetWidgetFromObjField(d->load.csv, d->Obj, id, "csv"); sgetobjfield(d->Obj, id, "ifs", NULL, &ifs, FALSE, FALSE, FALSE); if (ifs == NULL) { return; } l = strlen(ifs); s = g_malloc(l * 2 + 1); if (s == NULL) { g_free(ifs); return; } j = 0; for (i = 0; i < l; i++) { if (ifs[i] == '\t') { s[j++] = '\\'; s[j++] = 't'; } else if (ifs[i] == '\\') { s[j++] = '\\'; s[j++] = '\\'; } else { s[j++] = ifs[i]; } } s[j] = '\0'; gtk_entry_set_text(GTK_ENTRY(d->load.ifs), s); g_free(s); g_free(ifs); } static void load_tab_copy(GtkButton *btn, gpointer user_data) { struct FileDialog *d; int sel; d = (struct FileDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, FileCB); if (sel != -1) { load_tab_setup_item(d, sel); } } static GtkWidget * load_tab_create(struct FileDialog *d) { GtkWidget *w, *table, *frame, *vbox; int i; #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_UINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Head skip:"), FALSE, i++); d->load.headskip = w; w = create_spin_entry(1, INT_MAX, 1, TRUE, TRUE); add_widget_to_table(table, w, _("_Read step:"), FALSE, i++); d->load.readstep = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_INT, TRUE, TRUE); add_widget_to_table(table, w, _("_Final line:"), FALSE, i++); d->load.finalline = w; w = create_text_entry(TRUE, TRUE); add_widget_to_table(table, w, _("_Remark:"), TRUE, i++); d->load.remark = w; w = create_text_entry(TRUE, TRUE); add_widget_to_table(table, w, _("_IFS:"), TRUE, i++); d->load.ifs = w; w = gtk_check_button_new_with_mnemonic(_("_CSV")); add_widget_to_table(table, w, NULL, TRUE, i++); d->load.csv = w; frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 4); add_copy_button_to_box(vbox, G_CALLBACK(load_tab_copy), d, "file"); return vbox; } static void decode_ifs_text(GString *s, const char *ifs) { int i, l; l = strlen(ifs); for (i = 0; i < l; i++) { if ((ifs[i] == '\\') && (ifs[i + 1] == 't')) { g_string_append_c(s, 0x09); i++; } else if (ifs[i] == '\\') { g_string_append_c(s, '\\'); i++; } else if (isascii(ifs[i])) { g_string_append_c(s, ifs[i]); } } } static int load_tab_set_value(struct FileDialog *d) { const char *ifs; char *obuf; GString *s; if (SetObjFieldFromWidget(d->load.headskip, d->Obj, d->Id, "head_skip")) return 1; if (SetObjFieldFromWidget(d->load.readstep, d->Obj, d->Id, "read_step")) return 1; if (SetObjFieldFromWidget(d->load.finalline, d->Obj, d->Id, "final_line")) return 1; if (SetObjFieldFromWidget(d->load.remark, d->Obj, d->Id, "remark")) return 1; ifs = gtk_entry_get_text(GTK_ENTRY(d->load.ifs)); s = g_string_new(""); decode_ifs_text(s, ifs); sgetobjfield(d->Obj, d->Id, "ifs", NULL, &obuf, FALSE, FALSE, FALSE); if (obuf == NULL || strcmp(s->str, obuf)) { if (sputobjfield(d->Obj, d->Id, "ifs", s->str) != 0) { g_free(obuf); g_string_free(s, TRUE); return 1; } set_graph_modified(); } g_free(obuf); g_string_free(s, TRUE); if (SetObjFieldFromWidget(d->load.csv, d->Obj, d->Id, "csv")) return 1; return 0; } static void math_tab_setup_item(struct FileDialog *d, int id) { SetWidgetFromObjField(d->math.xsmooth, d->Obj, id, "smooth_x"); SetWidgetFromObjField(d->math.ysmooth, d->Obj, id, "smooth_y"); SetWidgetFromObjField(d->math.x, d->Obj, id, "math_x"); SetWidgetFromObjField(d->math.y, d->Obj, id, "math_y"); SetWidgetFromObjField(d->math.f, d->Obj, id, "func_f"); SetWidgetFromObjField(d->math.g, d->Obj, id, "func_g"); SetWidgetFromObjField(d->math.h, d->Obj, id, "func_h"); entry_completion_set_entry(NgraphApp.x_math_list, d->math.x); entry_completion_set_entry(NgraphApp.y_math_list, d->math.y); } static void math_tab_copy(GtkButton *btn, gpointer user_data) { struct FileDialog *d; int sel; d = (struct FileDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, FileCB); if (sel != -1) { math_tab_setup_item(d, sel); } } static gboolean func_entry_focused(GtkWidget *w, GdkEventFocus *event, gpointer user_data) { GtkEntryCompletion *compl; compl = GTK_ENTRY_COMPLETION(user_data); entry_completion_set_entry(compl, w); return FALSE; } static GtkWidget * math_tab_create(struct FileDialog *d) { GtkWidget *table, *w, *vbox, *frame; int i; #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry(0, FILE_OBJ_SMOOTH_MAX, 1, TRUE, TRUE); add_widget_to_table(table, w, _("_X smooth:"), FALSE, i++); d->math.xsmooth = w; w = create_spin_entry(0, FILE_OBJ_SMOOTH_MAX, 1, TRUE, TRUE); add_widget_to_table(table, w, _("_Y smooth:"), FALSE, i++); d->math.ysmooth = w; w = create_text_entry(TRUE, TRUE); add_widget_to_table(table, w, _("_X math:"), TRUE, i++); d->math.x = w; w = create_text_entry(TRUE, TRUE); add_widget_to_table(table, w, _("_Y math:"), TRUE, i++); d->math.y = w; w = create_text_entry(TRUE, TRUE); g_signal_connect(w, "focus-in-event", G_CALLBACK(func_entry_focused), NgraphApp.func_list); add_widget_to_table(table, w, "_F(X,Y,Z):", TRUE, i++); d->math.f = w; w = create_text_entry(TRUE, TRUE); g_signal_connect(w, "focus-in-event", G_CALLBACK(func_entry_focused), NgraphApp.func_list); add_widget_to_table(table, w, "_G(X,Y,Z):", TRUE, i++); d->math.g = w; w = create_text_entry(TRUE, TRUE); g_signal_connect(w, "focus-in-event", G_CALLBACK(func_entry_focused), NgraphApp.func_list); add_widget_to_table(table, w, "_H(X,Y,Z):", TRUE, i++); d->math.h = w; frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 4); add_copy_button_to_box(vbox, G_CALLBACK(math_tab_copy), d, "file"); return vbox; } static int math_tab_set_value(void *data) { struct FileDialog *d; const char *s; d = (struct FileDialog *) data; s = gtk_entry_get_text(GTK_ENTRY(d->math.y)); entry_completion_append(NgraphApp.y_math_list, s); s = gtk_entry_get_text(GTK_ENTRY(d->math.x)); entry_completion_append(NgraphApp.x_math_list, s); s = gtk_entry_get_text(GTK_ENTRY(d->math.f)); entry_completion_append(NgraphApp.func_list, s); s = gtk_entry_get_text(GTK_ENTRY(d->math.g)); entry_completion_append(NgraphApp.func_list, s); s = gtk_entry_get_text(GTK_ENTRY(d->math.h)); entry_completion_append(NgraphApp.func_list, s); if (SetObjFieldFromWidget(d->math.xsmooth, d->Obj, d->Id, "smooth_x")) return 1; if (SetObjFieldFromWidget(d->math.x, d->Obj, d->Id, "math_x")) return 1; if (SetObjFieldFromWidget(d->math.ysmooth, d->Obj, d->Id, "smooth_y")) return 1; if (SetObjFieldFromWidget(d->math.y, d->Obj, d->Id, "math_y")) return 1; if (SetObjFieldFromWidget(d->math.f, d->Obj, d->Id, "func_f")) return 1; if (SetObjFieldFromWidget(d->math.g, d->Obj, d->Id, "func_g")) return 1; if (SetObjFieldFromWidget(d->math.h, d->Obj, d->Id, "func_h")) return 1; return 0; } static void MarkDialogCB(GtkWidget *w, gpointer client_data) { int i; struct MarkDialog *d; d = (struct MarkDialog *) client_data; if (! d->cb_respond) return; for (i = 0; i < MARK_TYPE_NUM; i++) { if (w == d->toggle[i]) break; } d->Type = i; d->ret = IDOK; gtk_dialog_response(GTK_DIALOG(d->widget), GTK_RESPONSE_OK); } void button_set_mark_image(GtkWidget *w, int type) { GtkWidget *img; char buf[64]; if (type < 0 || type >= MARK_TYPE_NUM) { type = 0; } if (NgraphApp.markpix[type]) { #if GTK_CHECK_VERSION(3, 0, 0) GdkPixbuf *pixbuf; pixbuf = gdk_pixbuf_get_from_surface(NgraphApp.markpix[type], 0, 0, MARK_PIX_SIZE, MARK_PIX_SIZE); img = gtk_image_new_from_pixbuf(pixbuf); #else img = gtk_image_new_from_pixmap(NgraphApp.markpix[type], NULL); #endif if (img) { gtk_button_set_image(GTK_BUTTON(w), img); } snprintf(buf, sizeof(buf), "%02d", type); gtk_widget_set_tooltip_text(w, buf); } } static void MarkDialogSetup(GtkWidget *wi, void *data, int makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) GtkWidget *w, *grid; #else GtkWidget *w, *hbox,*vbox; #endif struct MarkDialog *d; int type; #define COL 10 d = (struct MarkDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) grid = gtk_grid_new(); gtk_grid_set_column_spacing(GTK_GRID(grid), 8); gtk_grid_set_row_spacing(GTK_GRID(grid), 8); gtk_widget_set_margin_right(grid, 4); gtk_widget_set_margin_left(grid, 4); for (type = 0; type < MARK_TYPE_NUM; type++) { w = gtk_toggle_button_new(); button_set_mark_image(w, type); g_signal_connect(w, "clicked", G_CALLBACK(MarkDialogCB), d); d->toggle[type] = w; gtk_grid_attach(GTK_GRID(grid), w, type % COL, type / COL, 1, 1); } gtk_box_pack_start(GTK_BOX(d->vbox), grid, FALSE, FALSE, 4); #else hbox = NULL; vbox = gtk_vbox_new(FALSE, 4); for (type = 0; type < MARK_TYPE_NUM; type++) { w = gtk_toggle_button_new(); button_set_mark_image(w, type); g_signal_connect(w, "clicked", G_CALLBACK(MarkDialogCB), d); d->toggle[type] = w; if (type % COL == 0) { if (hbox) { gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 4); } hbox = gtk_hbox_new(FALSE, 4); } gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); } gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), vbox, FALSE, FALSE, 4); #endif gtk_widget_show_all(GTK_WIDGET(d->vbox)); } d->cb_respond = FALSE; for (type = 0; type < MARK_TYPE_NUM; type++) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->toggle[type]), FALSE); } gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->toggle[d->Type]), TRUE); d->focus = d->toggle[d->Type]; d->cb_respond = TRUE; } static void MarkDialogClose(GtkWidget *w, void *data) { } void MarkDialog(struct MarkDialog *data, int type) { if (type < 0 || type >= MARK_TYPE_NUM) { type = 0; } data->SetupWindow = MarkDialogSetup; data->CloseWindow = MarkDialogClose; data->Type = type; } static void file_setup_item(struct FileDialog *d, int id) { int i, j, lastinst; struct objlist *aobj; char *name, *valstr; combo_box_clear(d->xaxis); combo_box_clear(d->yaxis); aobj = getobject("axis"); lastinst = chkobjlastinst(aobj); for (j = 0; j <= lastinst; j++) { getobj(aobj, "group", j, 0, NULL, &name); name = CHK_STR(name); combo_box_append_text(d->xaxis, name); combo_box_append_text(d->yaxis, name); } SetWidgetFromObjField(d->xcol, d->Obj, id, "x"); sgetobjfield(d->Obj, id, "axis_x", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { for (i = 0; (valstr[i] != '\0') && (valstr[i] != ':'); i++); if (valstr[i] == ':') i++; combo_box_entry_set_text(d->xaxis, valstr + i); g_free(valstr); } SetWidgetFromObjField(d->ycol, d->Obj, id, "y"); sgetobjfield(d->Obj, id, "axis_y", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { for (i = 0; (valstr[i] != '\0') && (valstr[i] != ':'); i++); if (valstr[i] == ':') i++; combo_box_entry_set_text(d->yaxis, valstr + i); g_free(valstr); } } static void set_fit_button_label(GtkWidget *btn, const char *str) { char buf[128]; if (str && str[0] != '\0') { snprintf(buf, sizeof(buf), "Fit:%s", str); } else { snprintf(buf, sizeof(buf), _("Create")); } gtk_button_set_label(GTK_BUTTON(btn), buf); } static void plot_tab_setup_item(struct FileDialog *d, int id) { int a; SetWidgetFromObjField(d->type, d->Obj, id, "type"); SetWidgetFromObjField(d->curve, d->Obj, id, "interpolation"); getobj(d->Obj, "mark_type", id, 0, NULL, &a); button_set_mark_image(d->mark_btn, a); MarkDialog(&(d->mark), a); SetWidgetFromObjField(d->size, d->Obj, id, "mark_size"); SetWidgetFromObjField(d->width, d->Obj, id, "line_width"); SetStyleFromObjField(d->style, d->Obj, id, "line_style"); SetWidgetFromObjField(d->join, d->Obj, id, "line_join"); SetWidgetFromObjField(d->miter, d->Obj, id, "line_miter_limit"); SetWidgetFromObjField(d->clip, d->Obj, id, "data_clip"); set_color(d->col1, d->Obj, id, NULL); set_color2(d->col2, d->Obj, id); FileDialogType(d->type, d); } static void FileDialogSetupItem(GtkWidget *w, struct FileDialog *d, int file) { char *valstr; int i; plot_tab_setup_item(d, d->Id); math_tab_setup_item(d, d->Id); load_tab_setup_item(d, d->Id); mask_tab_setup_item(d, d->Id); move_tab_setup_item(d, d->Id); file_setup_item(d, d->Id); if (file) { SetWidgetFromObjField(d->file, d->Obj, d->Id, "file"); gtk_editable_set_position(GTK_EDITABLE(d->file), -1); } sgetobjfield(d->Obj, d->Id, "fit", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { for (i = 0; (valstr[i] != '\0') && (valstr[i] != ':'); i++); if (valstr[i] == ':') { i++; } set_fit_button_label(d->fit, valstr + i); g_free(valstr); } gtk_widget_set_sensitive(d->apply_all, d->multi_open); } static void FileDialogAxis(GtkWidget *w, gpointer client_data) { char buf[10]; int a; a = combo_box_get_active(w); if (a < 0) return; snprintf(buf, sizeof(buf), "%d", a); combo_box_entry_set_text(w, buf); } static void FileDialogMark(GtkWidget *w, gpointer client_data) { struct FileDialog *d; d = (struct FileDialog *) client_data; DialogExecute(d->widget, &(d->mark)); button_set_mark_image(w, d->mark.Type); } static int execute_fit_dialog(GtkWidget *w, struct objlist *fileobj, int fileid, struct objlist *fitobj, int fitid) { int save_type, type, ret; type = PLOT_TYPE_FIT; getobj(fileobj, "type", fileid, 0, NULL, &save_type); putobj(fileobj, "type", fileid, &type); FitDialog(&DlgFit, fitobj, fitid); ret = DialogExecute(w, &DlgFit); putobj(fileobj, "type", fileid, &save_type); return ret; } static int show_fit_dialog(struct objlist *obj, int id, GtkWidget *parent) { struct objlist *fitobj, *robj; char *fit; N_VALUE *inst; int idnum, fitid = 0, fitoid, ret, create = FALSE; struct narray iarray; if ((fitobj = chkobject("fit")) == NULL) return -1; if (getobj(obj, "fit", id, 0, NULL, &fit) == -1) return -1; if (fit) { arrayinit(&iarray, sizeof(int)); if (getobjilist(fit, &robj, &iarray, FALSE, NULL)) return -1; idnum = arraynum(&iarray); if ((robj != fitobj) || (idnum < 1)) { if (putobj(obj, "fit", id, NULL) == -1) { arraydel(&iarray); return -1; } } else { fitid = arraylast_int(&iarray); } arraydel(&iarray); } if (fit == NULL) { fitid = newobj(fitobj); inst = getobjinst(fitobj, fitid); _getobj(fitobj, "oid", inst, &fitoid); if ((fit = mkobjlist(fitobj, NULL, fitoid, NULL, TRUE)) == NULL) return -1; if (putobj(obj, "fit", id, fit) == -1) { g_free(fit); return -1; } create = TRUE; } ret = execute_fit_dialog(parent, obj, id, fitobj, fitid); switch (ret) { case IDCANCEL: if (! create) break; case IDDELETE: delobj(fitobj, fitid); putobj(obj, "fit", id, NULL); if (! create) set_graph_modified(); break; case IDOK: if (create) set_graph_modified(); break; } return ret; } static void FileDialogFit(GtkWidget *w, gpointer client_data) { struct FileDialog *d; int i; char *valstr; d = (struct FileDialog *) client_data; show_fit_dialog(d->Obj, d->Id, d->widget); sgetobjfield(d->Obj, d->Id, "fit", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { for (i = 0; (valstr[i] != '\0') && (valstr[i] != ':'); i++); if (valstr[i] == ':') i++; set_fit_button_label(d->fit, valstr + i); g_free(valstr); } } static void plot_tab_copy(GtkButton *btn, gpointer user_data) { struct FileDialog *d; int sel; d = (struct FileDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, FileCB); if (sel != -1) { plot_tab_setup_item(d, sel); } } void copy_file_obj_field(struct objlist *obj, int id, int sel, int copy_filename) { char *field[] = {"name", "fit", NULL, NULL}; if (! copy_filename) { int i; i = sizeof(field) / sizeof(*field) - 2; field[i] = "file"; } copy_obj_field(obj, id, sel, field); FitCopy(obj, id, sel); set_graph_modified(); } static void FileDialogOption(GtkWidget *w, gpointer client_data) { struct FileDialog *d; d = (struct FileDialog *) client_data; exeobj(d->Obj, "load_settings", d->Id, 0, NULL); FileDialogSetupItem(d->widget, d, FALSE); } static void edit_file(const char *file) { char *cmd, *localize_name; if (file == NULL) return; localize_name = get_localized_filename(file); if (localize_name == NULL) return; cmd = g_strdup_printf("\"%s\" \"%s\"", Menulocal.editor, localize_name); g_free(localize_name); system_bg(cmd); g_free(cmd); } static void FileDialogEdit(GtkWidget *w, gpointer client_data) { struct FileDialog *d; const char *file; d = (struct FileDialog *) client_data; if (Menulocal.editor == NULL) return; file = gtk_entry_get_text(GTK_ENTRY(d->file)); if (file == NULL) return; edit_file(file); } static void FileDialogType(GtkWidget *w, gpointer client_data) { struct FileDialog *d; int type; d = (struct FileDialog *) client_data; type = combo_box_get_active(w); set_widget_sensitivity_with_label(d->mark_btn, TRUE); set_widget_sensitivity_with_label(d->curve, TRUE); set_widget_sensitivity_with_label(d->col2, TRUE); set_widget_sensitivity_with_label(d->size, TRUE); set_widget_sensitivity_with_label(d->miter, TRUE); set_widget_sensitivity_with_label(d->join, TRUE); set_widget_sensitivity_with_label(d->fit, TRUE); set_widget_sensitivity_with_label(d->style, TRUE); set_widget_sensitivity_with_label(d->width, TRUE); switch (type) { case PLOT_TYPE_MARK: set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->miter, FALSE); set_widget_sensitivity_with_label(d->join, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_LINE: case PLOT_TYPE_POLYGON: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->size, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_CURVE: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->size, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_DIAGONAL: case PLOT_TYPE_RECTANGLE: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->size, FALSE); set_widget_sensitivity_with_label(d->miter, FALSE); set_widget_sensitivity_with_label(d->join, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_POLYGON_SOLID_FILL: case PLOT_TYPE_RECTANGLE_SOLID_FILL: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->size, FALSE); set_widget_sensitivity_with_label(d->miter, FALSE); set_widget_sensitivity_with_label(d->join, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); set_widget_sensitivity_with_label(d->style, FALSE); set_widget_sensitivity_with_label(d->width, FALSE); break; case PLOT_TYPE_ARROW: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->miter, FALSE); set_widget_sensitivity_with_label(d->join, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_RECTANGLE_FILL: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->size, FALSE); set_widget_sensitivity_with_label(d->miter, FALSE); set_widget_sensitivity_with_label(d->join, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_ERRORBAR_X: case PLOT_TYPE_ERRORBAR_Y: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->miter, FALSE); set_widget_sensitivity_with_label(d->join, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_STAIRCASE_X: case PLOT_TYPE_STAIRCASE_Y: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->size, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_BAR_X: case PLOT_TYPE_BAR_Y: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->miter, FALSE); set_widget_sensitivity_with_label(d->join, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_BAR_SOLID_FILL_X: case PLOT_TYPE_BAR_SOLID_FILL_Y: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->miter, FALSE); set_widget_sensitivity_with_label(d->join, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); set_widget_sensitivity_with_label(d->style, FALSE); set_widget_sensitivity_with_label(d->width, FALSE); break; case PLOT_TYPE_BAR_FILL_X: case PLOT_TYPE_BAR_FILL_Y: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->miter, FALSE); set_widget_sensitivity_with_label(d->join, FALSE); set_widget_sensitivity_with_label(d->fit, FALSE); break; case PLOT_TYPE_FIT: set_widget_sensitivity_with_label(d->mark_btn, FALSE); set_widget_sensitivity_with_label(d->curve, FALSE); set_widget_sensitivity_with_label(d->col2, FALSE); set_widget_sensitivity_with_label(d->size, FALSE); break; } } static void file_settings_copy(GtkButton *btn, gpointer user_data) { struct FileDialog *d; int sel; d = (struct FileDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, FileCB); if (sel != -1) { file_setup_item(d, sel); } } static GtkWidget * plot_tab_create(GtkWidget *parent, struct FileDialog *d) { GtkWidget *table, *hbox, *w, *vbox; int i; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Type:"), FALSE, i++); d->type = w; g_signal_connect(w, "changed", G_CALLBACK(FileDialogType), d); w = gtk_button_new(); add_widget_to_table(table, w, _("_Mark:"), FALSE, i++); d->mark_btn = w; g_signal_connect(w, "clicked", G_CALLBACK(FileDialogMark), d); w = combo_box_create(); add_widget_to_table(table, w, _("_Curve:"), FALSE, i++); d->curve = w; d->fit_table = table; d->fit_row = i; i++; w = create_color_button(parent); add_widget_to_table(table, w, _("_Color 1:"), FALSE, i++); d->col1 = w; w = create_color_button(parent); add_widget_to_table(table, w, _("_Color 2:"), FALSE, i++); d->col2 = w; gtk_box_pack_start(GTK_BOX(hbox), table, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_entry_create(); gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 1.5, -1); add_widget_to_table(table, w, _("Line _Style:"), TRUE, i++); d->style = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_WIDTH, TRUE, TRUE); add_widget_to_table(table, w, _("_Line Width:"), FALSE, i++); d->width = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, TRUE, TRUE); add_widget_to_table(table, w, _("_Size:"), FALSE, i++); d->size = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, TRUE, TRUE); add_widget_to_table(table, w, _("_Miter:"), FALSE, i++); d->miter = w; w = combo_box_create(); add_widget_to_table(table, w, _("_Join:"), FALSE, i++); d->join = w; w = gtk_check_button_new_with_mnemonic(_("_Clip")); add_widget_to_table(table, w, NULL, FALSE, i++); d->clip = w; gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 4); w = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(w), hbox); set_widget_margin(w, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), w, TRUE, TRUE, 4); add_copy_button_to_box(vbox, G_CALLBACK(plot_tab_copy), d, "file"); return vbox; } static void FileDialogSetupCommon(GtkWidget *wi, struct FileDialog *d) { GtkWidget *w, *hbox, *vbox2, *frame, *notebook, *label; #if GTK_CHECK_VERSION(3, 0, 0) vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else vbox2 = gtk_vbox_new(FALSE, 4); hbox = gtk_hbox_new(FALSE, 4); #endif w = create_spin_entry(0, FILE_OBJ_MAXCOL, 1, TRUE, TRUE); item_setup(hbox, w, _("_X column:"), TRUE); d->xcol = w; w = combo_box_entry_create(); gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH, -1); item_setup(hbox, w, _("_X axis:"), TRUE); d->xaxis = w; g_signal_connect(w, "changed", G_CALLBACK(FileDialogAxis), d); gtk_box_pack_start(GTK_BOX(vbox2), hbox, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = create_spin_entry(0, FILE_OBJ_MAXCOL, 1, TRUE, TRUE); item_setup(hbox, w, _("_Y column:"), TRUE); d->ycol = w; w = combo_box_entry_create(); gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH, -1); item_setup(hbox, w, _("_Y axis:"), TRUE); d->yaxis = w; g_signal_connect(w, "changed", G_CALLBACK(FileDialogAxis), d); gtk_box_pack_start(GTK_BOX(vbox2), hbox, FALSE, FALSE, 4); add_copy_button_to_box(vbox2, G_CALLBACK(file_settings_copy), d, "file"); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_grid_new(); gtk_grid_set_column_spacing(GTK_GRID(hbox), 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif d->comment_box = hbox; frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), vbox2); #if GTK_CHECK_VERSION(3, 0, 0) gtk_widget_set_hexpand(frame, FALSE); gtk_grid_attach(GTK_GRID(hbox), frame, 0, 0, 1, 1); #else gtk_box_pack_start(GTK_BOX(hbox), frame, FALSE, FALSE, 0); #endif gtk_box_pack_start(GTK_BOX(d->vbox), hbox, TRUE, TRUE, 4); notebook = gtk_notebook_new(); d->tab = GTK_NOTEBOOK(notebook); gtk_notebook_set_scrollable(d->tab, FALSE); gtk_notebook_set_tab_pos(d->tab, GTK_POS_TOP); w = plot_tab_create(wi, d); label = gtk_label_new_with_mnemonic(_("_Plot")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), w, label); w = math_tab_create(d); label = gtk_label_new_with_mnemonic(_("_Math")); d->math.tab_id = gtk_notebook_append_page(GTK_NOTEBOOK(notebook), w, label); w = load_tab_create(d); label = gtk_label_new_with_mnemonic(_("_Load")); d->load.tab_id = gtk_notebook_append_page(GTK_NOTEBOOK(notebook), w, label); gtk_box_pack_start(GTK_BOX(d->vbox), notebook, TRUE, TRUE, 4); } static void set_headlines(struct FileDialog *d, const char *s) { gboolean valid; const gchar *ptr; if (s == NULL) { return; } if (Menulocal.file_preview_font) { text_view_with_line_number_set_font(d->comment_view, Menulocal.file_preview_font); } valid = g_utf8_validate(s, -1, &ptr); if (valid) { text_view_with_line_number_set_text(d->comment_view, s); } else { char *ptr; ptr = g_locale_to_utf8(s, -1, NULL, NULL, NULL); if (ptr) { text_view_with_line_number_set_text(d->comment_view, ptr); g_free(ptr); } else { text_view_with_line_number_set_text(d->comment_view, _("This file contain invalid UTF-8 strings.")); } } } #define CHECK_TERMINATE(ch) ((ch) == '\0' || (ch) == '\n') #define CHECK_CHR(ifs, ch) (ch && strchr(ifs, ch)) #define CHECK_VISIBILITY(i, skip, step, remark, c) (! CHECK_CHR(remark, c) && (i >= skip && ! ((i - skip) % step))) static void check_add_str(struct narray *array, const char *str, int len) { int valid; char *ptr; valid = g_utf8_validate(str, len, NULL); if (valid) { ptr = g_strndup(str, len); arrayadd(array, &ptr); } else { ptr = g_locale_to_utf8(str, len, NULL, NULL, NULL); if (ptr == NULL) { GString *s; int i; s = g_string_new(""); if (s == NULL) { return; } for (i = 0; i < len; i++) { if (g_ascii_isprint(str[i]) || g_ascii_isspace(str[i])) { g_string_append_c(s, str[i]); } else { g_string_append(s, "〓"); } } ptr = g_string_free(s, FALSE); } if (ptr) { arrayadd(array, &ptr); } } } static const char * parse_data_line(struct narray *array, const char *str, const char *ifs, const char *comment, int csv) { const char *po; int len; if (str == NULL) { return NULL; } po = str; while (! CHECK_TERMINATE(*po)) { if (csv) { for (; *po == ' '; po++); if (CHECK_TERMINATE(*po)) break; if (CHECK_CHR(ifs, *po)) { po++; check_add_str(array, "", 0); } else { len = 0; for (; (! CHECK_TERMINATE(po[len])) && ! CHECK_CHR(ifs, po[len]) && (po[len] != ' '); len++) ; check_add_str(array, po, len); po += len; for (; (*po == ' '); po++); if (CHECK_CHR(ifs, *po)) po++; } } else { for (; (! CHECK_TERMINATE(*po)) && CHECK_CHR(ifs, *po); po++); len = 0; for (; (! CHECK_TERMINATE(po[len])) && ! CHECK_CHR(ifs, po[len]); len++) ; check_add_str(array, po, len); po += len; if (CHECK_TERMINATE(*po)) break; } } if (*po == '\n') { po++; } return (*po) ? po : NULL; } #define MAX_COLS 100 #define HEADLINE_FIRST_CHAR_COLUMN (MAX_COLS + 0) #define HEADLINE_LINE_NUM_COLUMN (MAX_COLS + 1) #define HEADLINE_VISIBILITY_COLUMN (MAX_COLS + 2) #define HEADLINE_ELLIPSIZE_COLUMN (MAX_COLS + 3) #define HEADLINE_COLUMN_NUM (MAX_COLS + 4) static void set_headline_table_header(struct FileDialog *d) { int x, y, type, i; GString *str; type = combo_box_get_active(d->type); x = spin_entry_get_val(d->xcol); y = spin_entry_get_val(d->ycol); str = g_string_new(""); if (str == NULL) { return; } for (i = 0; i < MAX_COLS; i++) { GtkTreeViewColumn *col; g_string_set_size(str, 0); col = gtk_tree_view_get_column(GTK_TREE_VIEW(d->comment_table), i); if (i == x) { switch (type) { case PLOT_TYPE_DIAGONAL: case PLOT_TYPE_ARROW: case PLOT_TYPE_RECTANGLE: case PLOT_TYPE_RECTANGLE_FILL: case PLOT_TYPE_RECTANGLE_SOLID_FILL: g_string_append(str, "X1"); break; default: g_string_append(str, "X"); } } else if (i == x + 1) { switch (type) { case PLOT_TYPE_DIAGONAL: case PLOT_TYPE_ARROW: case PLOT_TYPE_RECTANGLE: case PLOT_TYPE_RECTANGLE_FILL: case PLOT_TYPE_RECTANGLE_SOLID_FILL: g_string_append(str, "Y1"); break; case PLOT_TYPE_ERRORBAR_X: g_string_append(str, "Ex1"); break; } } else if (i == x + 2) { switch (type) { case PLOT_TYPE_ERRORBAR_X: g_string_append(str, "Ex2"); break; } } if (str->len) { g_string_append_c(str, ' '); } if (i == y) { switch (type) { case PLOT_TYPE_DIAGONAL: case PLOT_TYPE_ARROW: case PLOT_TYPE_RECTANGLE: case PLOT_TYPE_RECTANGLE_FILL: case PLOT_TYPE_RECTANGLE_SOLID_FILL: g_string_append(str, "X2"); break; default: g_string_append(str, "Y"); } } else if (i == y + 1) { switch (type) { case PLOT_TYPE_DIAGONAL: case PLOT_TYPE_ARROW: case PLOT_TYPE_RECTANGLE: case PLOT_TYPE_RECTANGLE_FILL: case PLOT_TYPE_RECTANGLE_SOLID_FILL: g_string_append(str, "Y2"); break; case PLOT_TYPE_ERRORBAR_Y: g_string_append(str, "Ey1"); break; } } else if (i == y + 2) { switch (type) { case PLOT_TYPE_ERRORBAR_Y: g_string_append(str, "Ey2"); break; } } if (str->len) { if (str->str[str->len - 1] != ' ') { g_string_append_c(str, ' '); } g_string_append_printf(str, "(%%%d)", i); } else { g_string_append_printf(str, "%%%d", i); } gtk_tree_view_column_set_title(col, str->str); // gtk_tree_view_column_set_visible(col, i < max_col); } g_string_free(str, TRUE); } static void set_headline_table(struct FileDialog *d, char *s, int max_lines) { struct narray *lines; int i, j, l, n, skip, step, csv; const char *tmp, *remark, *po; GString *ifs; GtkListStore *model; if (! d->initialized || s == NULL || max_lines < 1) { return; } lines = g_malloc0(sizeof(*lines) * max_lines); if (lines == NULL) { return; } skip = spin_entry_get_val(d->load.headskip); if (skip < 0) { skip = 0; } step = spin_entry_get_val(d->load.readstep); if (step < 1) { step = 1; } csv = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->load.csv)); remark = gtk_entry_get_text(GTK_ENTRY(d->load.remark)); if (remark == NULL) { remark = ""; } tmp = gtk_entry_get_text(GTK_ENTRY(d->load.ifs)); if (tmp == NULL) { tmp = ""; } ifs = g_string_new(""); decode_ifs_text(ifs, tmp); po = s; for (n = 0; n < max_lines; n++) { arrayinit(lines + n, sizeof(char *)); po = parse_data_line(lines + n, po, ifs->str, remark, csv); if (po == NULL) { n++; break; } } g_string_free(ifs, TRUE); if (n == 0) { goto exit; } model = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(d->comment_table))); gtk_list_store_clear(model); gtk_tree_view_set_model(GTK_TREE_VIEW(d->comment_table), NULL); l = 1; for (i = 0; i < n; i++) { GtkTreeIter iter; int m, c, v; const char *str; gtk_list_store_append(model, &iter); m = arraynum(lines + i); for (j = 0; j < m; j++) { gtk_list_store_set(model, &iter, j + 1, arraynget_str(lines + i, j), -1); } str = arraynget_str(lines + i, 0); if (str) { c = (g_ascii_isprint(str[0]) || g_ascii_isspace(str[0])) ? str[0] : 0; } else { c = 0; } v = CHECK_VISIBILITY(i, skip, step, remark, c); gtk_list_store_set(model, &iter, 0, l, HEADLINE_LINE_NUM_COLUMN, i, HEADLINE_FIRST_CHAR_COLUMN, c, HEADLINE_VISIBILITY_COLUMN, v, HEADLINE_ELLIPSIZE_COLUMN, (v) ? PANGO_ELLIPSIZE_NONE : PANGO_ELLIPSIZE_END, -1); if (v) { l++; } } gtk_tree_view_set_model(GTK_TREE_VIEW(d->comment_table), GTK_TREE_MODEL(model)); exit: for (i = 0; i < n; i++) { arraydel2(lines + i); } g_free(lines); } static GtkWidget * create_preview_table(struct FileDialog *d) { GtkWidget *view; GtkListStore *model; GType *types; int i; view = gtk_tree_view_new(); gtk_tree_view_set_grid_lines(GTK_TREE_VIEW(view), GTK_TREE_VIEW_GRID_LINES_BOTH); types = g_malloc(sizeof(*types) * HEADLINE_COLUMN_NUM); if (types == NULL) { return NULL; } for (i = 1; i < MAX_COLS; i++) { types[i] = G_TYPE_STRING; } types[0] = G_TYPE_INT; types[HEADLINE_LINE_NUM_COLUMN] = G_TYPE_INT; types[HEADLINE_FIRST_CHAR_COLUMN] = G_TYPE_INT; types[HEADLINE_VISIBILITY_COLUMN] = G_TYPE_BOOLEAN; types[HEADLINE_ELLIPSIZE_COLUMN] = G_TYPE_INT; model = gtk_list_store_newv(HEADLINE_COLUMN_NUM, types); g_free(types); gtk_tree_view_set_model(GTK_TREE_VIEW(view), GTK_TREE_MODEL(model)); for (i = 0; i < MAX_COLS; i++) { char buf[32]; GtkCellRenderer *cell; GtkTreeViewColumn *column; snprintf(buf, sizeof(buf), "%%%d", i); cell = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(buf, cell, "text", i, "sensitive", HEADLINE_VISIBILITY_COLUMN, "ellipsize", HEADLINE_ELLIPSIZE_COLUMN, NULL); if (i == 0) { gtk_tree_view_column_add_attribute(column, cell, "visible", HEADLINE_VISIBILITY_COLUMN); } g_object_set((GObject *) cell, "xalign", (gfloat) 1.0, NULL); gtk_tree_view_column_set_alignment(column, 0.5); gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE); gtk_tree_view_append_column(GTK_TREE_VIEW(view), column); } return view; } static void update_table(GtkEditable *editable, gpointer user_data) { struct FileDialog *d; d = (struct FileDialog *) user_data; set_headline_table(d, d->head_lines, Menulocal.data_head_lines); } static void update_table_visibility(GtkEditable *editable, gpointer user_data) { struct FileDialog *d; GtkTreeModel *model; GtkTreeIter iter; const char *remark; int skip, step, ln, fc, v, i; d = (struct FileDialog *) user_data; skip = spin_entry_get_val(d->load.headskip); if (skip < 0) { skip = 0; } step = spin_entry_get_val(d->load.readstep); if (step < 1) { step = 1; } remark = gtk_entry_get_text(GTK_ENTRY(d->load.remark)); if (remark == NULL) { remark = ""; } model = gtk_tree_view_get_model(GTK_TREE_VIEW(d->comment_table)); if (! gtk_tree_model_get_iter_first(model, &iter)) { return; } i = 1; do { gtk_tree_model_get(model, &iter, HEADLINE_LINE_NUM_COLUMN, &ln, HEADLINE_FIRST_CHAR_COLUMN, &fc, -1); v = CHECK_VISIBILITY(ln, skip, step, remark, fc); gtk_list_store_set(GTK_LIST_STORE(model), &iter, 0, i, HEADLINE_VISIBILITY_COLUMN, v, HEADLINE_ELLIPSIZE_COLUMN, (v) ? PANGO_ELLIPSIZE_NONE : PANGO_ELLIPSIZE_END, -1); if (v) { i++; } } while (gtk_tree_model_iter_next(model, &iter)); } static void update_table_header(GtkEditable *editable, gpointer user_data) { struct FileDialog *d; d = (struct FileDialog *) user_data; set_headline_table_header(d); } static void FileDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *view, *label, *swin; struct FileDialog *d; int line; char title[20], *argv[2], *s; PangoFontDescription *desc; d = (struct FileDialog *) data; snprintf(title, sizeof(title), _("Data %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { d->apply_all = gtk_dialog_add_button(GTK_DIALOG(wi), _("_Apply all"), IDFAPPLY); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = create_file_entry(d->Obj); item_setup(GTK_WIDGET(hbox), w, _("_File:"), TRUE); d->file = w; w = gtk_button_new_with_mnemonic(_("_Load settings")); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); d->load_settings = w; g_signal_connect(w, "clicked", G_CALLBACK(FileDialogOption), d); w = gtk_button_new_with_mnemonic(_("_Edit")); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); g_signal_connect(w, "clicked", G_CALLBACK(FileDialogEdit), d); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); FileDialogSetupCommon(wi, d); w = mask_tab_create(d); label = gtk_label_new_with_mnemonic(_("_Mask")); d->mask.tab_id = gtk_notebook_append_page(d->tab, w, label); w = move_tab_create(d); label = gtk_label_new_with_mnemonic(_("_Move")); d->move.tab_id = gtk_notebook_append_page(d->tab, w, label); w = gtk_notebook_new(); view = create_preview_table(d); if (view) { label = gtk_label_new_with_mnemonic(_("_Table")); swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(swin), view); gtk_notebook_append_page(GTK_NOTEBOOK(w), swin, label); } d->comment_table = view; view = create_text_view_with_line_number(&d->comment_view); label = gtk_label_new_with_mnemonic(_("_Plain")); gtk_notebook_append_page(GTK_NOTEBOOK(w), view, label); g_signal_connect(d->load.ifs, "changed", G_CALLBACK(update_table), d); g_signal_connect(d->load.csv, "toggled", G_CALLBACK(update_table), d); g_signal_connect(d->load.remark, "changed", G_CALLBACK(update_table_visibility), d); g_signal_connect(d->load.readstep, "changed", G_CALLBACK(update_table_visibility), d); g_signal_connect(d->load.headskip, "changed", G_CALLBACK(update_table_visibility), d); g_signal_connect(d->xcol, "changed", G_CALLBACK(update_table_header), d); g_signal_connect(d->ycol, "changed", G_CALLBACK(update_table_header), d); g_signal_connect(d->type, "changed", G_CALLBACK(update_table_header), d); #if GTK_CHECK_VERSION(3, 0, 0) gtk_grid_attach(GTK_GRID(d->comment_box), w, 1, 0, 1, 1); #else gtk_box_pack_start(GTK_BOX(d->comment_box), w, TRUE, TRUE, 0); #endif w = gtk_button_new_with_label(_("Create")); add_widget_to_table(d->fit_table, w, _("_Fit:"), FALSE, d->fit_row); d->fit = w; g_signal_connect(w, "clicked", G_CALLBACK(FileDialogFit), d); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } line = Menulocal.data_head_lines; argv[0] = (char *) &line; argv[1] = NULL; getobj(d->Obj, "head_lines", d->Id, 1, argv, &s); FileDialogSetupItem(wi, d, TRUE); desc = pango_font_description_from_string(Menulocal.file_preview_font); #if GTK_CHECK_VERSION(3, 0, 0) gtk_widget_override_font(d->comment_table, NULL); gtk_widget_override_font(d->comment_table, desc); #else gtk_widget_modify_font(d->comment_table, NULL); gtk_widget_modify_font(d->comment_table, desc); #endif pango_font_description_free(desc); d->initialized = TRUE; set_headlines(d, s); set_headline_table_header(d); set_headline_table(d, s, line); d->head_lines = g_strdup(s); } static int plot_tab_set_value(struct FileDialog *d) { if (SetObjFieldFromWidget(d->type, d->Obj, d->Id, "type")) return TRUE; if (SetObjFieldFromWidget(d->curve, d->Obj, d->Id, "interpolation")) return TRUE; if (putobj(d->Obj, "mark_type", d->Id, &(d->mark.Type)) == -1) return TRUE; if (SetObjFieldFromWidget(d->size, d->Obj, d->Id, "mark_size")) return TRUE; if (SetObjFieldFromWidget(d->width, d->Obj, d->Id, "line_width")) return TRUE; if (SetObjFieldFromStyle(d->style, d->Obj, d->Id, "line_style")) return TRUE; if (SetObjFieldFromWidget(d->join, d->Obj, d->Id, "line_join")) return TRUE; if (SetObjFieldFromWidget(d->miter, d->Obj, d->Id, "line_miter_limit")) return TRUE; if (SetObjFieldFromWidget(d->clip, d->Obj, d->Id, "data_clip")) return TRUE; if (putobj_color(d->col1, d->Obj, d->Id, NULL)) return TRUE; if (putobj_color2(d->col2, d->Obj, d->Id)) return TRUE; return 0; } static int FileDialogCloseCommon(GtkWidget *w, struct FileDialog *d) { if (SetObjFieldFromWidget(d->xcol, d->Obj, d->Id, "x")) return TRUE; if (SetObjAxisFieldFromWidget(d->xaxis, d->Obj, d->Id, "axis_x")) return TRUE; if (SetObjFieldFromWidget(d->ycol, d->Obj, d->Id, "y")) return TRUE; if (SetObjAxisFieldFromWidget(d->yaxis, d->Obj, d->Id, "axis_y")) return TRUE; if (plot_tab_set_value(d)) { gtk_notebook_set_current_page(d->tab, 0); return TRUE; } if (math_tab_set_value(d)) { gtk_notebook_set_current_page(d->tab, d->math.tab_id); return TRUE; } if (load_tab_set_value(d)) { gtk_notebook_set_current_page(d->tab, d->load.tab_id); return TRUE; } return FALSE; } static void FileDialogClose(GtkWidget *w, void *data) { struct FileDialog *d; int ret; d = (struct FileDialog *) data; switch (d->ret) { case IDOK: case IDFAPPLY: break; default: goto End; } ret = d->ret; d->ret = IDLOOP; if (SetObjFieldFromWidget(d->file, d->Obj, d->Id, "file")) return; if (FileDialogCloseCommon(w, d)) return; if (mask_tab_set_value(d)) { gtk_notebook_set_current_page(d->tab, d->mask.tab_id); return; } if (move_tab_set_value(d)) { gtk_notebook_set_current_page(d->tab, d->move.tab_id); return; } d->initialized = FALSE; d->ret = ret; End: g_free(d->head_lines); d->head_lines = NULL; } void FileDialog(struct obj_list_data *data, int id, int multi) { struct FileDialog *d; d = (struct FileDialog *) data->dialog; d->SetupWindow = FileDialogSetup; d->CloseWindow = FileDialogClose; d->Obj = data->obj; d->Id = id; d->multi_open = multi > 0; d->initialized = FALSE; d->head_lines = NULL; } static void FileDialogDefSetupItem(GtkWidget *w, struct FileDialog *d, int id) { plot_tab_setup_item(d, d->Id); math_tab_setup_item(d, d->Id); load_tab_setup_item(d, d->Id); file_setup_item(d, d->Id); } static void FileDefDialogSetup(GtkWidget *wi, void *data, int makewidget) { struct FileDialog *d; d = (struct FileDialog *) data; if (makewidget) { FileDialogSetupCommon(wi, d); gtk_notebook_set_tab_pos(d->tab, GTK_POS_TOP); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } FileDialogDefSetupItem(wi, d, d->Id); } static void FileDefDialogClose(GtkWidget *w, void *data) { struct FileDialog *d; int ret; d = (struct FileDialog *) data; switch (d->ret) { case IDOK: break; default: return; } ret = d->ret; d->ret = IDLOOP; if (FileDialogCloseCommon(w, d)) return; d->ret = ret; } void FileDefDialog(struct FileDialog *data, struct objlist *obj, int id) { data->SetupWindow = FileDefDialogSetup; data->CloseWindow = FileDefDialogClose; data->Obj = obj; data->Id = id; } static void delete_file_obj(struct obj_list_data *data, int id) { FitDel(data->obj, id); delobj(data->obj, id); } void CmFileHistory(GtkRecentChooser *w, gpointer client_data) { int ret; char *name, *fname; int id; struct objlist *obj; char *uri; if (Menulock || Globallock) { return; } uri = gtk_recent_chooser_get_current_uri(w); if (uri == NULL) { return; } name = g_filename_from_uri(uri, NULL, NULL); g_free(uri); if (name == NULL) { return; } obj = chkobject("file"); if (obj == NULL) { return; } id = newobj(obj); if (id < 0) { return; } fname = g_strdup(name); if (fname == NULL) { return; } putobj(obj, "file", id, name); FileDialog(NgraphApp.FileWin.data.data, id, FALSE); ret = DialogExecute(TopLevel, &DlgFile); if ((ret == IDDELETE) || (ret == IDCANCEL)) { delete_file_obj(NgraphApp.FileWin.data.data, id); } else { set_graph_modified(); AddDataFileList(fname); } g_free(fname); FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } void CmFileNew(GtkAction *w, gpointer client_data) { char *file; int id, ret; struct objlist *obj; if (Menulock || Globallock) return; if ((obj = chkobject("file")) == NULL) return; if (nGetOpenFileName(TopLevel, _("Data new"), NULL, NULL, NULL, &file, FALSE, Menulocal.changedirectory) != IDOK) { return; } id = newobj(obj); if (id < 0) { g_free(file); return; } changefilename(file); putobj(obj, "file", id, file); FileDialog(NgraphApp.FileWin.data.data, id, FALSE); ret = DialogExecute(TopLevel, &DlgFile); if (ret == IDDELETE || ret == IDCANCEL) { delete_file_obj(NgraphApp.FileWin.data.data, id); } else { set_graph_modified(); AddDataFileList(file); } FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } void CmFileOpen(GtkAction *w, gpointer client_data) { int id, ret, n; char *name; char **file = NULL, **ptr; struct objlist *obj; struct narray farray; if (Menulock || Globallock) return; obj = chkobject("file"); if (obj == NULL) return; ret = nGetOpenFileNameMulti(TopLevel, _("Add Data file"), NULL, &(Menulocal.fileopendir), NULL, &file, Menulocal.changedirectory); n = chkobjlastinst(obj); arrayinit(&farray, sizeof(int)); if (ret == IDOK && file) { for (ptr = file; *ptr; ptr++) { name = *ptr; id = newobj(obj); if (id >= 0) { arrayadd(&farray, &id); changefilename(name); putobj(obj, "file", id, name); } } g_free(file); } if (update_file_obj_multi(obj, &farray, TRUE)) { FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } if (n != chkobjlastinst(obj)) { set_graph_modified(); } arraydel(&farray); } void CmFileClose(GtkAction *w, gpointer client_data) { struct narray farray; struct objlist *obj; int i; int *array, num; if (Menulock || Globallock) return; if ((obj = chkobject("file")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, FileCB, (struct narray *) &farray, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&farray); array = arraydata(&farray); for (i = num - 1; i >= 0; i--) { delete_file_obj(NgraphApp.FileWin.data.data, array[i]); set_graph_modified(); } FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } arraydel(&farray); } int update_file_obj_multi(struct objlist *obj, struct narray *farray, int new_file) { int i, j, num, *array, id0; char *name; num = arraynum(farray); if (num < 1) { return 0; } array = arraydata(farray); id0 = -1; for (i = 0; i < num; i++) { name = NULL; if (id0 != -1) { copy_file_obj_field(obj, array[i], array[id0], FALSE); if (new_file) { getobj(obj, "file", array[i], 0, NULL, &name); AddDataFileList(name); } } else { int ret; FileDialog(NgraphApp.FileWin.data.data, array[i], i < num - 1); ret = DialogExecute(TopLevel, &DlgFile); if (ret == IDCANCEL && new_file) { ret = IDDELETE; } if (ret == IDDELETE) { delete_file_obj(NgraphApp.FileWin.data.data, array[i]); if (! new_file) { set_graph_modified(); } for (j = i + 1; j < num; j++) { array[j]--; } } else { if (new_file) { getobj(obj, "file", array[i], 0, NULL, &name); AddDataFileList(name); } if (ret == IDFAPPLY) { id0 = i; } } } } return 1; } void CmFileUpdate(GtkAction *w, gpointer client_data) { struct objlist *obj; int ret; struct narray farray; int last; if (Menulock || Globallock) return; if ((obj = chkobject("file")) == NULL) return; last = chkobjlastinst(obj); if (last == -1) { return; } else if (last == 0) { arrayinit(&farray, sizeof(int)); arrayadd(&farray, &last); ret = IDOK; } else { SelectDialog(&DlgSelect, obj, FileCB, (struct narray *) &farray, NULL); ret = DialogExecute(TopLevel, &DlgSelect); } if (ret == IDOK && update_file_obj_multi(obj, &farray, FALSE)) { FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } arraydel(&farray); } void CmFileEdit(GtkAction *w, gpointer client_data) { struct objlist *obj; int i; char *name; int last; if (Menulock || Globallock) return; if (Menulocal.editor == NULL) return; if ((obj = chkobject("file")) == NULL) return; last = chkobjlastinst(obj); if (last == -1) { return; } else if (last == 0) { i = 0; } else { CopyDialog(&DlgCopy, obj, -1, FileCB); if (DialogExecute(TopLevel, &DlgCopy) == IDOK) { i = DlgCopy.sel; } else { return; } } if (i < 0) return; if (getobj(obj, "file", i, 0, NULL, &name) == -1) return; edit_file(name); } void CmOptionFileDef(GtkAction *w, gpointer client_data) { struct objlist *obj; int id; if (Menulock || Globallock) return; if ((obj = chkobject("file")) == NULL) return; id = newobj(obj); if (id >= 0) { int modified; modified = get_graph_modified(); FileDefDialog(&DlgFileDef, obj, id); if (DialogExecute(TopLevel, &DlgFileDef) == IDOK) { if (CheckIniFile()) { exeobj(obj, "save_config", id, 0, NULL); } } delobj(obj, id); UpdateAll2(); if (! modified) { reset_graph_modified(); } } } static void FileWinFileEdit(struct obj_list_data *d) { int sel, num; char *name; if (Menulock || Globallock) return; if (Menulocal.editor == NULL) return; sel = d->select; num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) return; if (getobj(d->obj, "file", sel, 0, NULL, &name) == -1) return; edit_file(name); } static void file_edit_popup_func(GtkMenuItem *w, gpointer client_data) { struct obj_list_data *d; d = (struct obj_list_data *) client_data; FileWinFileEdit(d); } static void FileWinFileDelete(struct obj_list_data *d) { int sel, update, num; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), FILE_WIN_COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 0) && (sel <= num)) { delete_file_obj(d, sel); num = chkobjlastinst(d->obj); update = FALSE; if (num < 0) { d->select = -1; update = TRUE; } else if (sel > num) { d->select = num; } else { d->select = sel; } FileWinUpdate(d, update); set_graph_modified(); } } static void file_delete_popup_func(GtkMenuItem *w, gpointer client_data) { struct obj_list_data *d; d = (struct obj_list_data*) client_data; FileWinFileDelete(d); } static int file_obj_copy(struct obj_list_data *d) { int sel, id, num; if (Menulock || Globallock) return -1; sel = list_store_get_selected_int(GTK_WIDGET(d->text), FILE_WIN_COL_ID); num = chkobjlastinst(d->obj); if ((sel < 0) || (sel > num)) return -1; id = newobj(d->obj); if (id < 0) return -1; copy_file_obj_field(d->obj, id, sel, TRUE); return id; } static void FileWinFileCopy(struct obj_list_data *d) { d->select = file_obj_copy(d); FileWinUpdate(d, FALSE); } static void file_copy_popup_func(GtkMenuItem *w, gpointer client_data) { struct obj_list_data *d; d = (struct obj_list_data *) client_data; FileWinFileCopy(d); } static void FileWinFileCopy2(struct obj_list_data *d) { int id, sel, j, num; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), FILE_WIN_COL_ID); id = file_obj_copy(d); num = chkobjlastinst(d->obj); if (id < 0) { d->select = sel; FileWinUpdate(d, TRUE); return; } for (j = num; j > sel + 1; j--) { moveupobj(d->obj, j); } d->select = sel + 1; FileWinUpdate(d, FALSE); } static void file_copy2_popup_func(GtkMenuItem *w, gpointer client_data) { struct obj_list_data *d; d = (struct obj_list_data *) client_data; FileWinFileCopy2(d); } static void FileWinFileUpdate(struct obj_list_data *d) { int sel, ret, num; GtkWidget *parent; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), FILE_WIN_COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 0) && (sel <= num)) { d->setup_dialog(d, sel, FALSE); d->select = sel; parent = (Menulocal.single_window_mode) ? TopLevel : d->parent->Win; ret = DialogExecute(parent, d->dialog); if (ret == IDDELETE) { delete_file_obj(d, sel); d->select = -1; set_graph_modified(); } d->update(d, FALSE); } } static void FileWinFileDraw(struct obj_list_data *d) { int i, sel, hidden, h, num; if (Menulock || Globallock) return; sel = list_store_get_selected_index(GTK_WIDGET(d->text)); num = chkobjlastinst(d->obj); if ((sel >= 0) && (sel <= num)) { for (i = 0; i <= num; i++) { hidden = (i != sel); getobj(d->obj, "hidden", i, 0, NULL, &h); putobj(d->obj, "hidden", i, &hidden); if (h != hidden) { set_graph_modified(); } } d->select = sel; } else { hidden = FALSE; for (i = 0; i <= num; i++) { getobj(d->obj, "hidden", i, 0, NULL, &h); putobj(d->obj, "hidden", i, &hidden); if (h != hidden) { set_graph_modified(); } } d->select = -1; } CmViewerDraw(NULL, GINT_TO_POINTER(FALSE)); FileWinUpdate(d, FALSE); } static void file_draw_popup_func(GtkMenuItem *w, gpointer client_data) { struct obj_list_data *d; d = (struct obj_list_data *) client_data; FileWinFileDraw(d); } void FileWinUpdate(struct obj_list_data *d, int clear) { if (Menulock || Globallock) return; if (d == NULL) return; if (list_sub_window_must_rebuild(d)) { list_sub_window_build(d, file_list_set_val); } else { list_sub_window_set(d, file_list_set_val); } if (! clear && d->select >= 0) { list_store_select_int(GTK_WIDGET(d->text), FILE_WIN_COL_ID, d->select); } } static void FileWinFit(struct obj_list_data *d) { struct objlist *fitobj, *obj2; char *fit; int sel, idnum, fitid = 0, ret, num; struct narray iarray; GtkWidget *parent; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), FILE_WIN_COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) return; if ((fitobj = chkobject("fit")) == NULL) return; if (getobj(d->obj, "fit", sel, 0, NULL, &fit) == -1) return; if (fit) { arrayinit(&iarray, sizeof(int)); if (getobjilist(fit, &obj2, &iarray, FALSE, NULL)) { arraydel(&iarray); return; } idnum = arraynum(&iarray); if ((obj2 != fitobj) || (idnum < 1)) { if (putobj(d->obj, "fit", sel, NULL) == -1) { arraydel(&iarray); return; } } else { fitid = arraylast_int(&iarray); } arraydel(&iarray); } if (fit == NULL) return; parent = (Menulocal.single_window_mode) ? TopLevel : d->parent->Win; ret = execute_fit_dialog(parent, d->obj, sel, fitobj, fitid); if (ret == IDDELETE) { delobj(fitobj, fitid); putobj(d->obj, "fit", sel, NULL); } } #define MARK_PIX_LINE_WIDTH 1 static void set_line_style(struct objlist *obj, int id, int ggc) { struct narray *line_style; int n; getobj(obj, "line_style", id, 0, NULL, &line_style); n = arraynum(line_style); if (n > 0) { int i, *style, *ptr; style = g_malloc(sizeof(*style) * n); if (style == NULL) { GRAlinestyle(ggc, 0, NULL, MARK_PIX_LINE_WIDTH, GRA_LINE_CAP_BUTT, GRA_LINE_JOIN_MITER, 1000); return; } ptr = arraydata(line_style); for (i = 0; i < n; i++) { style[i] = ptr[i] / 40; } GRAlinestyle(ggc, n, style, MARK_PIX_LINE_WIDTH, GRA_LINE_CAP_BUTT, GRA_LINE_JOIN_MITER, 1000); g_free(style); } else { GRAlinestyle(ggc, 0, NULL, MARK_PIX_LINE_WIDTH, GRA_LINE_CAP_BUTT, GRA_LINE_JOIN_MITER, 1000); } } #define CURVE_POINTS_MAX 7 static void draw_curve(int ggc, double *spx, double *spy, int spnum, int spcond) { double spz[CURVE_POINTS_MAX], spc[6][CURVE_POINTS_MAX], spc2[6]; int j, k; for (j = 0; j < CURVE_POINTS_MAX; j++) { spz[j] = j; } spline(spz, spx, spc[0], spc[1], spc[2], spnum, spcond, spcond, 0, 0); spline(spz, spy, spc[3], spc[4], spc[5], spnum, spcond, spcond, 0, 0); GRAcurvefirst(ggc, 0, NULL, NULL, NULL, splinedif, splineint, NULL, spx[0], spy[0]); for (j = 0; j < spnum - 1; j++) { for (k = 0; k < 6; k++) { spc2[k] = spc[k][j]; } if (!GRAcurve(ggc, spc2, spx[j], spy[j])) break; } } static GdkPixbuf * draw_type_pixbuf(struct objlist *obj, int i) { int ggc, fr, fg, fb, fr2, fg2, fb2, type, w, width = 40, height = 20, poly[14], marktype, intp, spcond, spnum, lockstate, found, output; double spx[CURVE_POINTS_MAX], spy[CURVE_POINTS_MAX]; #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_t *pix; #else GdkPixmap *pix; #endif GdkPixbuf *pixbuf; struct objlist *gobj, *robj; N_VALUE *inst; struct gra2cairo_local *local; lockstate = Globallock; Globallock = TRUE; found = find_gra2gdk_inst(&gobj, &inst, &robj, &output, &local); if (! found) { return NULL; } #if GTK_CHECK_VERSION(3, 0, 0) pix = gra2gdk_create_pixmap(local, width, height, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); #else pix = gra2gdk_create_pixmap(local, gtk_widget_get_window(TopLevel), width, height, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); #endif if (pix == NULL) { return NULL; } getobj(obj, "type", i, 0, NULL, &type); getobj(obj, "R", i, 0, NULL, &fr); getobj(obj, "G", i, 0, NULL, &fg); getobj(obj, "B", i, 0, NULL, &fb); getobj(obj, "R2", i, 0, NULL, &fr2); getobj(obj, "G2", i, 0, NULL, &fg2); getobj(obj, "B2", i, 0, NULL, &fb2); ggc = _GRAopen("gra2gdk", "_output", robj, inst, output, -1, -1, -1, NULL, local); if (ggc < 0) { _GRAclose(ggc); g_object_unref(G_OBJECT(pix)); return NULL; } GRAview(ggc, 0, 0, width, height, 0); GRAcolor(ggc, fr, fg, fb, 255); set_line_style(obj, i, ggc); switch (type) { case PLOT_TYPE_MARK: getobj(obj, "mark_type", i, 0, NULL, &marktype); GRAmark(ggc, marktype, width / 2, height / 2, height - 2, fr, fg, fb, 255, fr2, fg2, fb2, 255); break; case PLOT_TYPE_LINE: GRAline(ggc, 1, height / 2, width - 1, height / 2); break; case PLOT_TYPE_POLYGON: case PLOT_TYPE_POLYGON_SOLID_FILL: poly[0] = 1; poly[1] = height / 2; poly[2] = width / 4; poly[3] = 1; poly[4] = width * 3 / 4; poly[5] = height - 1; poly[6] = width - 1; poly[7] = height / 2; poly[8] = width * 3 / 4; poly[9] = 1; poly[10] = width / 4; poly[11] = height - 1; poly[12] = 1; poly[13] = height / 2; GRAdrawpoly(ggc, 7, poly, (type == PLOT_TYPE_POLYGON) ? GRA_FILL_MODE_NONE : GRA_FILL_MODE_WINDING); break; case PLOT_TYPE_CURVE: getobj(obj, "interpolation", i, 0, NULL, &intp); w = (intp >= 2) ? height : width; spx[0] = 1; spx[1] = w / 3 + 1; spx[2] = w * 2 / 3; spx[3] = w - 1; spx[4] = w * 2 / 3; spx[5] = w / 3 + 1; spx[6] = 1; spy[0] = height / 2; spy[1] = 1; spy[2] = height - 1; spy[3] = height / 2; spy[4] = 1; spy[5] = height - 1; spy[6] = height / 2; if ((intp == 0) || (intp == 2)) { spcond = SPLCND2NDDIF; spnum = 4; } else { spcond = SPLCNDPERIODIC; spnum = 7; } draw_curve(ggc, spx, spy, spnum, spcond); if (intp >= 2) { GRAmoveto(ggc, height, height * 3 / 4); GRAtextstyle(ggc, "Serif", GRA_FONT_STYLE_NORMAL, 52, 0, 0); GRAouttext(ggc, "B"); } break; case PLOT_TYPE_DIAGONAL: GRAline(ggc, 1, height - 1, width - 1, 1); break; case PLOT_TYPE_ARROW: spx[0] = 1; spy[0] = height - 1; spx[1] = width - 1; spy[1] = 1; GRAline(ggc, 1, height - 1, width - 1, 1); poly[0] = width - 8; poly[1] = 1; poly[2] = width - 1; poly[3] = 1; poly[4] = width - 5; poly[5] = 6; GRAdrawpoly(ggc, 3, poly, GRA_FILL_MODE_EVEN_ODD); break; case PLOT_TYPE_RECTANGLE: GRArectangle(ggc, 1, height - 1, width - 1, 1, 0); break; case PLOT_TYPE_RECTANGLE_FILL: GRAcolor(ggc, fr2, fg2, fb2, 255); GRArectangle(ggc, 1, height - 1, width - 1, 1, 1); GRAcolor(ggc, fr, fg, fb, 255); GRArectangle(ggc, 1, height - 1, width - 1, 1, 0); break; case PLOT_TYPE_RECTANGLE_SOLID_FILL: GRArectangle(ggc, 1, height - 1, width - 1, 1, 1); break; case PLOT_TYPE_ERRORBAR_X: GRAline(ggc, 1, height / 2, width - 1, height / 2); GRAline(ggc, 1, height / 4, 1, height * 3 / 4); GRAline(ggc, width - 1, height / 4, width - 1, height * 3 / 4); break; case PLOT_TYPE_ERRORBAR_Y: GRAline(ggc, width / 2, 1, width / 2, height - 1); GRAline(ggc, width * 3 / 8, 1, width * 5 / 8, 1); GRAline(ggc, width * 3 / 8, height -1, width * 5 / 8, height - 1); break; case PLOT_TYPE_STAIRCASE_X: GRAmoveto(ggc, 1, height - 1); GRAlineto(ggc, width / 4, height - 1); GRAlineto(ggc, width / 4, height / 2); GRAlineto(ggc, width * 3 / 4, height / 2); GRAlineto(ggc, width * 3 / 4, 1); GRAlineto(ggc, width - 1, 1); break; case PLOT_TYPE_STAIRCASE_Y: GRAmoveto(ggc, 1, height - 1); GRAlineto(ggc, 1, height / 2 + 1); GRAlineto(ggc, width / 2, height / 2 + 1); GRAlineto(ggc, width / 2, height / 4); GRAlineto(ggc, width - 1, height / 4); GRAlineto(ggc, width - 1, 1); break; case PLOT_TYPE_BAR_X: GRArectangle(ggc, 1, height / 4, width - 1, height * 3 / 4, 0); break; case PLOT_TYPE_BAR_Y: GRArectangle(ggc, width * 3 / 8, 1, width * 5 / 8, height - 1, 0); break; case PLOT_TYPE_BAR_FILL_X: GRAcolor(ggc, fr2, fg2, fb2, 255); GRArectangle(ggc, 1, height / 4, width - 1, height * 3 / 4, 1); GRAcolor(ggc, fr, fg, fb, 255); GRArectangle(ggc, 1, height / 4, width - 1, height * 3 / 4, 0); break; case PLOT_TYPE_BAR_FILL_Y: GRAcolor(ggc, fr2, fg2, fb2, 255); GRArectangle(ggc, width * 3 / 8, 1, width * 5 / 8, height - 1, 1); GRAcolor(ggc, fr, fg, fb, 255); GRArectangle(ggc, width * 3 / 8, 1, width * 5 / 8, height - 1, 0); break; case PLOT_TYPE_BAR_SOLID_FILL_X: GRArectangle(ggc, 1, height / 4, width - 1, height * 3 / 4, 1); break; case PLOT_TYPE_BAR_SOLID_FILL_Y: GRArectangle(ggc, width * 3 / 8, 1, width * 5 / 8, height - 1, 1); break; case PLOT_TYPE_FIT: spx[0] = width * 3 / 6 - 1; spx[1] = width * 4 / 6 - 1; spx[2] = width * 5 / 6 - 1; spx[3] = width - 1; spy[0] = height - 1; spy[1] = height / 3; spy[2] = height * 2 / 3; spy[3] = 1; draw_curve(ggc, spx, spy, 4, SPLCND2NDDIF); GRAmoveto(ggc, 1, height * 3 / 4); GRAtextstyle(ggc, "Serif", GRA_FONT_STYLE_NORMAL, 52, 0, 0); GRAouttext(ggc, "fit"); break; } _GRAclose(ggc); gra2cairo_draw_path(local); #if GTK_CHECK_VERSION(3, 0, 0) pixbuf = gdk_pixbuf_get_from_surface(pix, 0, 0, width, height); cairo_surface_destroy(pix); #else pixbuf = gdk_pixbuf_get_from_drawable(NULL, pix, NULL, 0, 0, 0, 0, width, height); g_object_unref(G_OBJECT(pix)); #endif Globallock = lockstate; return pixbuf; } static char * get_axis_obj_str(struct objlist *obj, int id, char *field) { char *tmp, *valstr; int j; sgetobjfield(obj, id, field, NULL, &valstr, FALSE, FALSE, FALSE); if (valstr == NULL) { return NULL; } for (j = 0; (valstr[j] != '\0') && (valstr[j] != ':'); j++); if (valstr[j] == ':') j++; tmp = g_strdup(valstr + j); g_free(valstr); return tmp; } static void file_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row) { int cx, style; unsigned int i; char buf[256]; struct narray *mask, *move; char *file, *bfile, *axis; GdkPixbuf *pixbuf = NULL; for (i = 0; i < FILE_WIN_COL_NUM; i++) { switch (i) { case FILE_WIN_COL_FILE: getobj(d->obj, "mask", row, 0, NULL, &mask); getobj(d->obj, "move_data", row, 0, NULL, &move); getobj(d->obj, "file", row, 0, NULL, &file); if ((arraynum(mask) != 0) || (arraynum(move) != 0)) { style = PANGO_STYLE_ITALIC; } else { style = PANGO_STYLE_NORMAL; } bfile = getbasename(file); if (bfile) { list_store_set_string(GTK_WIDGET(d->text), iter, i, CHK_STR(bfile)); g_free(bfile); } else { list_store_set_string(GTK_WIDGET(d->text), iter, i, "...................."); } list_store_set_int(GTK_WIDGET(d->text), iter, FILE_WIN_COL_MASKED, style); break; case FILE_WIN_COL_TYPE: pixbuf = draw_type_pixbuf(d->obj, row); if (pixbuf) { list_store_set_pixbuf(GTK_WIDGET(d->text), iter, i, pixbuf); g_object_unref(pixbuf); } break; case FILE_WIN_COL_X_AXIS: case FILE_WIN_COL_Y_AXIS: axis = get_axis_obj_str(d->obj, row, Flist[i].name); if (axis) { snprintf(buf, sizeof(buf), "%3s", axis); list_store_set_string(GTK_WIDGET(d->text), iter, i, buf); g_free(axis); } break; case FILE_WIN_COL_HIDDEN: getobj(d->obj, Flist[i].name, row, 0, NULL, &cx); cx = ! cx; list_store_set_val(GTK_WIDGET(d->text), iter, i, Flist[i].type, &cx); break; case FILE_WIN_COL_MASKED: break; default: if (Flist[i].type == G_TYPE_DOUBLE) { getobj(d->obj, Flist[i].name, row, 0, NULL, &cx); list_store_set_double(GTK_WIDGET(d->text), iter, i, cx / 100.0); } else { getobj(d->obj, Flist[i].name, row, 0, NULL, &cx); list_store_set_val(GTK_WIDGET(d->text), iter, i, Flist[i].type, &cx); } } } } void CmFileMath(GtkAction *w, gpointer client_data) { struct objlist *obj; if (Menulock || Globallock) return; obj = chkobject("file"); if (chkobjlastinst(obj) < 0) return; MathDialog(&DlgMath, obj); DialogExecute(TopLevel, &DlgMath); } static int GetDrawFiles(struct narray *farray) { struct objlist *fobj; int lastinst; struct narray ifarray; int i, a; if (farray == NULL) return 1; fobj = chkobject("file"); if (fobj == NULL) return 1; lastinst = chkobjlastinst(fobj); if (lastinst < 0) return 1; arrayinit(&ifarray, sizeof(int)); for (i = 0; i <= lastinst; i++) { getobj(fobj, "hidden", i, 0, NULL, &a); if (!a) arrayadd(&ifarray, &i); } SelectDialog(&DlgSelect, fobj, FileCB, farray, &ifarray); if (DialogExecute(TopLevel, &DlgSelect) != IDOK) { arraydel(&ifarray); arraydel(farray); return 1; } arraydel(&ifarray); return 0; } void CmFileSaveData(GtkAction *w, gpointer client_data) { struct narray farray; struct objlist *obj; int i, num, onum, type, div, curve = FALSE, *array, append; char *file, buf[1024]; char *argv[4]; if (Menulock || Globallock) return; if (GetDrawFiles(&farray)) return; obj = chkobject("file"); if (obj == NULL) return; onum = chkobjlastinst(obj); num = arraynum(&farray); if (num == 0) { arraydel(&farray); return; } array = arraydata(&farray); for (i = 0; i < num; i++) { if (array[i] < 0 || array[i] > onum) continue; getobj(obj, "type", array[i], 0, NULL, &type); if (type == 3) { curve = TRUE; } } div = 10; if (curve) { OutputDataDialog(&DlgOutputData, div); if (DialogExecute(TopLevel, &DlgOutputData) != IDOK) { arraydel(&farray); return; } div = DlgOutputData.div; } if (nGetSaveFileName(TopLevel, _("Data file"), NULL, NULL, NULL, &file, FALSE, Menulocal.changedirectory) != IDOK) { arraydel(&farray); return; } ProgressDialogCreate(_("Making data file")); SetStatusBar(_("Making data file.")); argv[0] = (char *) file; argv[1] = (char *) ÷ argv[3] = NULL; for (i = 0; i < num; i++) { if (array[i] < 0 || array[i] > onum) continue; snprintf(buf, sizeof(buf), "%d/%d", i, num); set_progress(1, buf, 1.0 * (i + 1) / num); append = (i == 0) ? FALSE : TRUE; argv[2] = (char *) &append; if (exeobj(obj, "output_file", array[i], 3, argv)) break; } ProgressDialogFinalize(); ResetStatusBar(); main_window_redraw(); arraydel(&farray); g_free(file); } static gboolean filewin_ev_key_down(GtkWidget *w, GdkEvent *event, gpointer user_data) { struct obj_list_data *d; GdkEventKey *e; g_return_val_if_fail(w != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); if (Menulock || Globallock) return TRUE; d = (struct obj_list_data *) user_data; e = (GdkEventKey *)event; switch (e->keyval) { case GDK_KEY_Delete: FileWinFileDelete(d); UnFocus(); break; case GDK_KEY_Return: if (e->state & GDK_SHIFT_MASK) { return FALSE; } FileWinFileUpdate(d); UnFocus(); break; case GDK_KEY_Insert: if (e->state & GDK_SHIFT_MASK) { FileWinFileCopy2(d); } else { FileWinFileCopy(d); } UnFocus(); break; case GDK_KEY_space: if (e->state & GDK_CONTROL_MASK) return FALSE; FileWinFileDraw(d); UnFocus(); break; case GDK_KEY_f: if (e->state & GDK_CONTROL_MASK) { FileWinFit(d); UnFocus(); } break; default: return FALSE; } return TRUE; } static void popup_show_cb(GtkWidget *widget, gpointer user_data) { int sel, num; unsigned int i; struct obj_list_data *d; d = (struct obj_list_data *) user_data; sel = d->select; num = chkobjlastinst(d->obj); for (i = 1; i < POPUP_ITEM_NUM; i++) { switch (i) { case POPUP_ITEM_TOP: case POPUP_ITEM_UP: gtk_widget_set_sensitive(d->popup_item[i], sel > 0 && sel <= num); break; case POPUP_ITEM_DOWN: case POPUP_ITEM_BOTTOM: gtk_widget_set_sensitive(d->popup_item[i], sel >= 0 && sel < num); break; default: gtk_widget_set_sensitive(d->popup_item[i], sel >= 0 && sel <= num); } } } enum FILE_COMBO_ITEM { FILE_COMBO_ITEM_COLOR_1, FILE_COMBO_ITEM_COLOR_2, FILE_COMBO_ITEM_TYPE, FILE_COMBO_ITEM_MARK, FILE_COMBO_ITEM_INTP, FILE_COMBO_ITEM_LINESTYLE, FILE_COMBO_ITEM_JOIN, FILE_COMBO_ITEM_FIT, FILE_COMBO_ITEM_CLIP, }; static void add_fit_combo_item_to_cbox(GtkTreeStore *list, struct objlist *obj, int id) { char *valstr, buf[1024]; int i; sgetobjfield(obj, id, "fit", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr == NULL) { return; } for (i = 0; (valstr[i] != '\0') && (valstr[i] != ':'); i++); if (valstr[i] == ':') { i++; } if (valstr[i]) { snprintf(buf, sizeof(buf), "Fit:%s", valstr + i); } else { snprintf(buf, sizeof(buf), "Fit:%s", _("Create")); } g_free(valstr); add_text_combo_item_to_cbox(list, NULL, NULL, FILE_COMBO_ITEM_FIT, -1, buf, TOGGLE_NONE, FALSE); } static void create_type_color_combo_box(GtkWidget *cbox, struct objlist *obj, int type, int id) { int count; GtkTreeStore *list; GtkTreeIter parent; count = combo_box_get_num(cbox); if (count > 0) return; list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(cbox))); create_type_combo_item(list, obj, id); switch (type) { case PLOT_TYPE_MARK: case PLOT_TYPE_LINE: case PLOT_TYPE_POLYGON: case PLOT_TYPE_CURVE: case PLOT_TYPE_DIAGONAL: case PLOT_TYPE_ARROW: case PLOT_TYPE_RECTANGLE: case PLOT_TYPE_RECTANGLE_FILL: case PLOT_TYPE_ERRORBAR_X: case PLOT_TYPE_ERRORBAR_Y: case PLOT_TYPE_STAIRCASE_X: case PLOT_TYPE_STAIRCASE_Y: case PLOT_TYPE_BAR_X: case PLOT_TYPE_BAR_Y: case PLOT_TYPE_BAR_FILL_X: case PLOT_TYPE_BAR_FILL_Y: case PLOT_TYPE_FIT: add_line_style_item_to_cbox(list, NULL, FILE_COMBO_ITEM_LINESTYLE, obj, "line_style", id); break; } switch (type) { case PLOT_TYPE_LINE: case PLOT_TYPE_POLYGON: case PLOT_TYPE_CURVE: case PLOT_TYPE_STAIRCASE_X: case PLOT_TYPE_STAIRCASE_Y: case PLOT_TYPE_FIT: add_text_combo_item_to_cbox(list, &parent, NULL, -1, -1, _("Join"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &parent, FILE_COMBO_ITEM_JOIN, obj, "line_join", id); break; } add_text_combo_item_to_cbox(list, NULL, NULL, FILE_COMBO_ITEM_COLOR_1, -1, _("Color 1"), TOGGLE_NONE, FALSE); switch (type) { case PLOT_TYPE_MARK: case PLOT_TYPE_RECTANGLE_FILL: case PLOT_TYPE_BAR_FILL_X: case PLOT_TYPE_BAR_FILL_Y: add_text_combo_item_to_cbox(list, NULL, NULL, FILE_COMBO_ITEM_COLOR_2, -1, _("Color 2"), TOGGLE_NONE, FALSE); break; } if (type == PLOT_TYPE_FIT) { add_fit_combo_item_to_cbox(list, obj, id); } add_bool_combo_item_to_cbox(list, NULL, NULL, FILE_COMBO_ITEM_CLIP, obj, "data_clip", id, _("Clip")); } static void create_type_combo_item(GtkTreeStore *list, struct objlist *obj, int id) { char **enumlist; int i, type; GtkTreeIter parent, iter; gtk_tree_store_append(list, &parent, NULL); gtk_tree_store_set(list, &parent, OBJECT_COLUMN_TYPE_STRING, _("Type"), OBJECT_COLUMN_TYPE_PIXBUF, NULL, OBJECT_COLUMN_TYPE_INT, FILE_COMBO_ITEM_TYPE, OBJECT_COLUMN_TYPE_TOGGLE_VISIBLE, FALSE, OBJECT_COLUMN_TYPE_PIXBUF_VISIBLE, FALSE, -1); enumlist = (char **) chkobjarglist(obj, "type"); type = -1; getobj(obj, "type", id, 0, NULL, &type); for (i = 0; enumlist[i] && enumlist[i][0]; i++) { add_text_combo_item_to_cbox(list, &iter, &parent, FILE_COMBO_ITEM_TYPE, i, _(enumlist[i]), TOGGLE_RADIO, type == i); if (strcmp(enumlist[i], "mark") == 0) { add_mark_combo_item_to_cbox(list, NULL, &iter, FILE_COMBO_ITEM_MARK, obj, "mark_type", id); } else if (strcmp(enumlist[i], "curve") == 0) { add_enum_combo_item_to_cbox(list, NULL, &iter, FILE_COMBO_ITEM_INTP, obj, "interpolation", id); } } } static void select_type(GtkComboBox *w, gpointer user_data) { int sel, col_type, type, mark_type, curve_type, enum_id, found, active, join; struct objlist *obj; struct obj_list_data *d; GtkTreeStore *list; GtkTreeIter iter; menu_lock(FALSE); d = (struct obj_list_data *) user_data; gtk_widget_grab_focus(d->text); sel = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "user-data")); if (sel < 0) return; obj = getobject("file"); getobj(obj, "type", sel, 0, NULL, &type); list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(w))); found = gtk_combo_box_get_active_iter(w, &iter); if (! found) return; gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_INT, &col_type, OBJECT_COLUMN_TYPE_ENUM, &enum_id, -1); switch (col_type) { case FILE_COMBO_ITEM_COLOR_1: if (select_obj_color(obj, sel, OBJ_FIELD_COLOR_TYPE_1)) { return; } break; case FILE_COMBO_ITEM_COLOR_2: if (select_obj_color(obj, sel, OBJ_FIELD_COLOR_TYPE_2)) { return; } break; case FILE_COMBO_ITEM_TYPE: if (enum_id == type) { return; } putobj(obj, "type", sel, &enum_id); if (enum_id == PLOT_TYPE_FIT) { char *fit; int ret; getobj(obj, "fit", sel, 0, NULL, &fit); if (fit == NULL) { ret = show_fit_dialog(obj, sel, (Menulocal.single_window_mode) ? TopLevel : d->parent->Win); if (ret != IDOK) { putobj(obj, "type", sel, &type); return; } } } break; case FILE_COMBO_ITEM_MARK: getobj(obj, "mark_type", sel, 0, NULL, &mark_type); if (type == PLOT_TYPE_MARK && enum_id == mark_type) return; putobj(obj, "mark_type", sel, &enum_id); type = PLOT_TYPE_MARK; putobj(obj, "type", sel, &type); break; case FILE_COMBO_ITEM_INTP: getobj(obj, "interpolation", sel, 0, NULL, &curve_type); if (type == PLOT_TYPE_CURVE && enum_id == curve_type) return; putobj(obj, "interpolation", sel, &enum_id); type = PLOT_TYPE_CURVE; putobj(obj, "type", sel, &type); break; case FILE_COMBO_ITEM_LINESTYLE: if (enum_id < 0 || enum_id >= FwNumStyleNum) { return; } if (chk_sputobjfield(d->obj, sel, "line_style", FwLineStyle[enum_id].list) != 0) { return; } if (! get_graph_modified()) { return; } break; case FILE_COMBO_ITEM_FIT: show_fit_dialog(obj, sel, (Menulocal.single_window_mode) ? TopLevel : d->parent->Win); break; case FILE_COMBO_ITEM_JOIN: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_ENUM, &enum_id, -1); getobj(d->obj, "line_join", sel, 0, NULL, &join); if (join == enum_id) { return; } putobj(d->obj, "line_join", sel, &enum_id); break; case FILE_COMBO_ITEM_CLIP: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); active = ! active; putobj(d->obj, "data_clip", sel, &active); break; default: return; } d->select = sel; d->update(d, FALSE); set_graph_modified(); } static void start_editing_type(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path_str, gpointer user_data) { GtkTreeIter iter; struct obj_list_data *d; GtkComboBox *cbox; int sel, type; struct objlist *obj; menu_lock(TRUE); d = (struct obj_list_data *) user_data; sel = tree_view_get_selected_row_int_from_path(d->text, path_str, &iter, FILE_WIN_COL_ID); if (sel < 0) { return; } cbox = GTK_COMBO_BOX(editable); g_object_set_data(G_OBJECT(cbox), "user-data", GINT_TO_POINTER(sel)); obj = getobject("file"); if (obj == NULL) return; getobj(obj, "type", sel, 0, NULL, &type); create_type_color_combo_box(GTK_WIDGET(cbox), obj, type, sel); g_signal_connect(cbox, "editing-done", G_CALLBACK(select_type), d); gtk_widget_show(GTK_WIDGET(cbox)); return; } static void select_axis(GtkComboBox *w, gpointer user_data, char *axis) { GtkTreeStore *list; GtkTreeIter iter; char buf[64]; int j, sel, found; struct obj_list_data *d; sel = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "user-data")); if (sel < 0) return; d = (struct obj_list_data *) user_data; list = GTK_TREE_STORE(gtk_combo_box_get_model(w)); found = gtk_combo_box_get_active_iter(w, &iter); if (! found) return; gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_INT, &j, -1); if (j < 0) return; snprintf(buf, sizeof(buf), "axis:%d", j); if (sputobjfield(d->obj, sel, axis, buf) == 0) { d->select = sel; } } static void select_axis_x(GtkComboBox *w, gpointer user_data) { select_axis(w, user_data, "axis_x"); } static void select_axis_y(GtkComboBox *w, gpointer user_data) { select_axis(w, user_data, "axis_y"); } static void start_editing(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path, gpointer user_data, int axis) { GtkTreeIter iter; GtkTreeStore *list; struct obj_list_data *d; GtkComboBox *cbox; int lastinst, j, sel, id = 0, is_oid; struct objlist *aobj; char *name, *ptr; menu_lock(TRUE); d = (struct obj_list_data *) user_data; sel = tree_view_get_selected_row_int_from_path(d->text, path, &iter, FILE_WIN_COL_ID); if (sel < 0) { return; } cbox = GTK_COMBO_BOX(editable); g_object_set_data(G_OBJECT(cbox), "user-data", GINT_TO_POINTER(sel)); init_object_combo_box(GTK_WIDGET(editable)); list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(editable))); gtk_tree_store_clear(list); aobj = getobject("axis"); name = get_axis_obj_str(d->obj, sel, (axis == AXIS_X) ? "axis_x" : "axis_y"); if (name) { is_oid = (name[0] == '^'); id = strtol(name + is_oid, &ptr, 10); if (*ptr == '\0') { if (is_oid) { id = chkobjoid(aobj, id); } } g_free(name); } lastinst = chkobjlastinst(aobj); for (j = 0; j <= lastinst; j++) { getobj(aobj, "group", j, 0, NULL, &name); name = CHK_STR(name); add_text_combo_item_to_cbox(list, &iter, NULL, j, -1, name, TOGGLE_NONE, FALSE); if (j == id) { gtk_combo_box_set_active_iter(cbox, &iter); } } d->select = -1; g_signal_connect(cbox, "changed", G_CALLBACK((axis == AXIS_X) ? select_axis_x : select_axis_y), d); } static void start_editing_x(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path, gpointer user_data) { start_editing(renderer, editable, path, user_data, AXIS_X); } static void start_editing_y(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path, gpointer user_data) { start_editing(renderer, editable, path, user_data, AXIS_Y); } static void edited_axis(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data, char *axis) { struct obj_list_data *d; menu_lock(FALSE); d = (struct obj_list_data *) user_data; gtk_widget_grab_focus(d->text); if (str == NULL || d->select < 0) return; d->update(d, FALSE); set_graph_modified(); } static void drag_drop_cb(GtkWidget *w, GdkDragContext *context, gint x, gint y, GtkSelectionData *data, guint info, guint time, gpointer user_data) { gchar **filenames; int num; switch (info) { case DROP_TYPE_FILE: filenames = gtk_selection_data_get_uris(data); num = g_strv_length(filenames); data_dropped(filenames, num, FILE_TYPE_DATA); g_strfreev(filenames); gtk_drag_finish(context, TRUE, FALSE, time); break; } } static void init_dnd(struct SubWin *d) { GtkWidget *widget; GtkTargetEntry target[] = { {"text/uri-list", 0, DROP_TYPE_FILE}, }; widget = d->data.data->text; gtk_drag_dest_set(widget, GTK_DEST_DEFAULT_ALL, target, sizeof(target) / sizeof(*target), GDK_ACTION_COPY); g_signal_connect(widget, "drag-data-received", G_CALLBACK(drag_drop_cb), NULL); } void CmFileWindow(GtkToggleAction *action, gpointer client_data) { struct SubWin *d; GList *list; GtkTreeViewColumn *col; int state; d = &(NgraphApp.FileWin); if (action) { state = gtk_toggle_action_get_active(action); } else { state = TRUE; } if (d->Win) { sub_window_set_visibility(d, state); return; } if (! state) { return; } list_sub_window_create(d, "Data Window", FILE_WIN_COL_NUM, Flist, Filewin_xpm, Filewin48_xpm); d->data.data->update = FileWinUpdate; d->data.data->setup_dialog = FileDialog; d->data.data->dialog = &DlgFile; d->data.data->ev_key = filewin_ev_key_down; d->data.data->delete = delete_file_obj; d->data.data->obj = chkobject("file"); sub_win_create_popup_menu(d->data.data, POPUP_ITEM_NUM, Popup_list, G_CALLBACK(popup_show_cb)); set_combo_cell_renderer_cb(d->data.data, FILE_WIN_COL_X_AXIS, Flist, G_CALLBACK(start_editing_x), G_CALLBACK(edited_axis)); set_combo_cell_renderer_cb(d->data.data, FILE_WIN_COL_Y_AXIS, Flist, G_CALLBACK(start_editing_y), G_CALLBACK(edited_axis)); set_obj_cell_renderer_cb(d->data.data, FILE_WIN_COL_TYPE, Flist, G_CALLBACK(start_editing_type)); init_dnd(d); gtk_tree_view_set_enable_search(GTK_TREE_VIEW(d->data.data->text), TRUE); gtk_tree_view_set_search_column(GTK_TREE_VIEW(d->data.data->text), FILE_WIN_COL_FILE); gtk_tree_view_set_tooltip_column(GTK_TREE_VIEW(d->data.data->text), FILE_WIN_COL_FILE); col = gtk_tree_view_get_column(GTK_TREE_VIEW(d->data.data->text), FILE_WIN_COL_FILE); list = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(col)); if (list) { if (list->data) { GtkCellRenderer *renderer; renderer = list->data; gtk_tree_view_column_add_attribute(col, renderer, "style", FILE_WIN_COL_MASKED); } g_list_free(list); } } ngraph-gtk-6.06.13/src/gtk/x11axis.h0000644000175000017500000000341512241111703013670 00000000000000/* * $Id: x11axis.h,v 1.3 2009-05-14 10:25:27 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ char *AxisCB(struct objlist *obj, int id); void CmAxisNewFrame(GtkAction *w, gpointer client_data); void CmAxisNewSection(GtkAction *w, gpointer client_data); void CmAxisNewCross(GtkAction *w, gpointer client_data); void CmAxisNewSingle(GtkAction *w, gpointer client_data); void CmAxisUpdate(GtkAction *w, gpointer client_data); void CmAxisDel(GtkAction *w, gpointer client_data); void CmAxisZoom(GtkAction *w, gpointer client_data); void CmAxisClear(GtkAction *w, gpointer client_data); void CmAxisScaleUndo(GtkAction *w, gpointer client_data); void CmAxisGridNew(GtkAction *w, gpointer client_data); void CmAxisGridDel(GtkAction *w, gpointer client_data); void CmAxisGridUpdate(GtkAction *w, gpointer client_data); void CmAxisWindow(GtkToggleAction *action, gpointer client_data); void axis_scale_push(struct objlist *obj, int id); void AxisWinUpdate(struct obj_list_data *data, int clear); ngraph-gtk-6.06.13/src/gtk/gtk_widget.h0000644000175000017500000000600312241111703014516 00000000000000#ifndef GTK_WIDGET_HEADER #define GTK_WIDGET_HEADER #define SPIN_ENTRY_MAX 1000000 #if GTK_CHECK_VERSION(3, 4, 0) #define NUM_ENTRY_WIDTH 160 #else #define NUM_ENTRY_WIDTH 80 #endif enum SPIN_BUTTON_TYPE { SPIN_BUTTON_TYPE_WIDTH, SPIN_BUTTON_TYPE_LENGTH, SPIN_BUTTON_TYPE_POSITION, SPIN_BUTTON_TYPE_ANGLE, SPIN_BUTTON_TYPE_POINT, SPIN_BUTTON_TYPE_SPACE_POINT, SPIN_BUTTON_TYPE_PERCENT, SPIN_BUTTON_TYPE_INT, SPIN_BUTTON_TYPE_UINT, SPIN_BUTTON_TYPE_NUM, SPIN_BUTTON_TYPE_NATURAL, SPIN_BUTTON_TYPE_CUSTOM, }; enum OBJ_FIELD_COLOR_TYPE { OBJ_FIELD_COLOR_TYPE_0, OBJ_FIELD_COLOR_TYPE_1, OBJ_FIELD_COLOR_TYPE_2, OBJ_FIELD_COLOR_TYPE_FILL, OBJ_FIELD_COLOR_TYPE_STROKE, OBJ_FIELD_COLOR_TYPE_AXIS_BASE, OBJ_FIELD_COLOR_TYPE_AXIS_GAUGE, OBJ_FIELD_COLOR_TYPE_AXIS_NUM, }; enum SELECT_OBJ_COLOR_RESULT { SELECT_OBJ_COLOR_DIFFERENT, SELECT_OBJ_COLOR_SAME, SELECT_OBJ_COLOR_ERROR, SELECT_OBJ_COLOR_CANCEL, }; enum WIDGET_MARGIN { WIDGET_MARGIN_LEFT = 1, WIDGET_MARGIN_RIGHT = 2, WIDGET_MARGIN_TOP = 4, WIDGET_MARGIN_BOTTOM = 8, }; GtkWidget *create_spin_entry_type(enum SPIN_BUTTON_TYPE type, int set_default_size, int set_default_action); GtkWidget *create_spin_entry(int min, int max, int inc, int set_default_size, int set_default_action); void spin_entry_set_val(GtkWidget *entry, int val); int spin_entry_get_val(GtkWidget *entry); void spin_entry_set_range(GtkWidget *w, int min, int max); void spin_entry_set_inc(GtkWidget *w, int inc, int page); char *entry_get_filename(GtkWidget *w); int entry_set_filename(GtkWidget *w, char *filename); GtkWidget *create_color_button(GtkWidget *win); GtkWidget *create_text_entry(int set_default_size, int set_default_action); GtkWidget *create_file_entry(struct objlist *obj); GtkWidget *create_file_entry_with_cb(GCallback cb, gpointer data); GtkWidget *create_direction_entry(void); GtkWidget *item_setup(GtkWidget *box, GtkWidget *w, char *title, gboolean expand); GtkWidget *get_parent_window(GtkWidget *w); GtkWidget *add_widget_to_table_sub(GtkWidget *table, GtkWidget *w, char *title, int expand, int col, int width, int col_max, int n); GtkWidget *add_widget_to_table(GtkWidget *table, GtkWidget *w, char *title, int expand, int n); GtkWidget *add_copy_button_to_box(GtkWidget *parent_box, GCallback cb, gpointer d, char *obj_name); GtkWidget *get_mnemonic_label(GtkWidget *w); GtkWidget *create_text_view_with_line_number(GtkWidget **v); void text_view_with_line_number_set_text(GtkWidget *view, const gchar *str); void text_view_with_line_number_set_font(GtkWidget *view, const gchar *font); void set_widget_sensitivity_with_label(GtkWidget *w, gboolean state); void set_widget_visibility_with_label(GtkWidget *w, gboolean state); void combo_box_create_mark(GtkWidget *cbox, GtkTreeIter *parent, int col_id, int type); enum SELECT_OBJ_COLOR_RESULT select_obj_color(struct objlist *obj, int id, enum OBJ_FIELD_COLOR_TYPE type); void set_widget_margin(GtkWidget *w, int margin_pos); void set_scale_mark(GtkWidget *scale, GtkPositionType pos, int start, int inc); #endif ngraph-gtk-6.06.13/src/gtk/ox11menu.c0000644000175000017500000014304112241111703014042 00000000000000/* * $Id: ox11menu.c,v 1.90 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for GTK". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for GTK" 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. * * "Ngraph for GTK" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include #include #include #include #include #include #include #include "object.h" #include "odraw.h" #include "ioutil.h" #include "shell.h" #include "nstring.h" #include "nconfig.h" #include "mathfn.h" #include "gra.h" #include "spline.h" #include "strconv.h" #include "gtk_widget.h" #include "gtk_subwin.h" #include "main.h" #include "ogra2cairo.h" #include "ogra2x11.h" #include "ox11menu.h" #include "x11menu.h" #include "x11gui.h" #include "x11view.h" #include "x11graph.h" #include "x11print.h" #include "x11merge.h" #include "x11lgnd.h" #include "x11axis.h" #include "x11file.h" #include "x11cood.h" #include "x11info.h" #define NAME "menu" #define ALIAS "winmenu:gtkmenu" #define PARENT "gra2cairo" #define NVERSION "1.00.00" #define MGTKCONF "[x11menu]" #define G2WINCONF "[gra2gtk]" static char *menuerrorlist[] = { "running.", "cannot open the display.", "cannot open the file", "the GUI is not active", }; #define ERRNUM (sizeof(menuerrorlist) / sizeof(*menuerrorlist)) enum { ERR_MENU_RUN = 100, ERR_MENU_DISPLAY, ERR_MENU_OPEN_FILE, ERR_MENU_GUI, }; struct menulocal Menulocal; struct savedstdio GtkIOSave; static int mxflush(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); enum menu_config_type { MENU_CONFIG_TYPE_NUMERIC, MENU_CONFIG_TYPE_BOOL, MENU_CONFIG_TYPE_STRING, MENU_CONFIG_TYPE_WINDOW, MENU_CONFIG_TYPE_CHILD_WINDOW, MENU_CONFIG_TYPE_COLOR, MENU_CONFIG_TYPE_SCRIPT, MENU_CONFIG_TYPE_DRIVER, MENU_CONFIG_TYPE_CHARMAP, }; static int menu_config_set_four_elements(char *s2, void *data); static int menu_config_set_child_window_geometry(char *s2, void *data); static int menu_config_set_bgcolor(char *s2, void *data); static int menu_config_set_ext_driver(char *s2, void *data); static int menu_config_set_script(char *s2, void *data); static int menu_config_set_char_map(char *s2, void *data); static int *menu_config_menu_geometry[] = { &Menulocal.menux, &Menulocal.menuy, &Menulocal.menuwidth, &Menulocal.menuheight, }; struct child_win_stat { struct SubWin *win; int *stat[5]; }; static struct child_win_stat menu_config_file_geometry = { &NgraphApp.FileWin, { &Menulocal.filex, &Menulocal.filey, &Menulocal.filewidth, &Menulocal.fileheight, &Menulocal.fileopen, } }; static struct child_win_stat menu_config_axis_geometry = { &NgraphApp.AxisWin, { &Menulocal.axisx, &Menulocal.axisy, &Menulocal.axiswidth, &Menulocal.axisheight, &Menulocal.axisopen, } }; static struct child_win_stat menu_config_legend_geometry = { &NgraphApp.LegendWin, { &Menulocal.legendx, &Menulocal.legendy, &Menulocal.legendwidth, &Menulocal.legendheight, &Menulocal.legendopen, } }; static struct child_win_stat menu_config_merge_geometry = { &NgraphApp.MergeWin, { &Menulocal.mergex, &Menulocal.mergey, &Menulocal.mergewidth, &Menulocal.mergeheight, &Menulocal.mergeopen, } }; static struct child_win_stat menu_config_dialog_geometry = { &NgraphApp.InfoWin, { &Menulocal.dialogx, &Menulocal.dialogy, &Menulocal.dialogwidth, &Menulocal.dialogheight, &Menulocal.dialogopen, } }; static struct child_win_stat menu_config_coord_geometry = { &NgraphApp.CoordWin, { &Menulocal.coordx, &Menulocal.coordy, &Menulocal.coordwidth, &Menulocal.coordheight, &Menulocal.coordopen, } }; struct menu_config { char *name; enum menu_config_type type; int (* proc)(char *, void *); void *data; }; static struct menu_config MenuConfig[] = { {"script_console", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.scriptconsole}, {"addin_console", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.addinconsole}, {"show_tip", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.showtip}, {"character_map", MENU_CONFIG_TYPE_CHARMAP, menu_config_set_char_map, &Menulocal.char_map}, {NULL}, }; static struct menu_config MenuConfigDriver[] = { {"ext_driver", MENU_CONFIG_TYPE_DRIVER, menu_config_set_ext_driver, NULL}, {NULL}, }; static struct menu_config MenuConfigScript[] = { {"script", MENU_CONFIG_TYPE_SCRIPT, menu_config_set_script, NULL}, {NULL}, }; static struct menu_config MenuConfigMisc[] = { {"editor", MENU_CONFIG_TYPE_STRING, NULL, &Menulocal.editor}, {"browser", MENU_CONFIG_TYPE_STRING, NULL, &Menulocal.browser}, {"help_browser", MENU_CONFIG_TYPE_STRING, NULL, &Menulocal.help_browser}, {"coordwin_font", MENU_CONFIG_TYPE_STRING, NULL, &Menulocal.coordwin_font}, {"infowin_font", MENU_CONFIG_TYPE_STRING, NULL, &Menulocal.infowin_font}, {"file_preview_font", MENU_CONFIG_TYPE_STRING, NULL, &Menulocal.file_preview_font}, {"change_directory", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.changedirectory}, {"save_path", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.savepath}, {"save_with_data", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.savewithdata}, {"save_with_merge", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.savewithmerge}, {"expand_dir", MENU_CONFIG_TYPE_STRING, NULL, &Menulocal.expanddir}, {"expand", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.expand}, {"load_path", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.loadpath}, {"history_size", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.hist_size}, {"infowin_size", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.info_size}, {"data_head_lines", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.data_head_lines}, {"use_opacity", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.use_opacity}, {"select_data_on_export", MENU_CONFIG_TYPE_BOOL, NULL, &Menulocal.select_data}, {NULL}, }; static struct menu_config MenuConfigViewer[] = { {"viewer_dpi", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.windpi}, {"antialias", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.antialias}, {"viewer_load_file_on_redraw", MENU_CONFIG_TYPE_BOOL, NULL, &Menulocal.redrawf}, {"viewer_load_file_data_number", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.redrawf_num}, {"viewer_grid", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.grid}, {"focus_frame_type", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.focus_frame_type}, {"preserve_width", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.preserve_width}, {"background_color", MENU_CONFIG_TYPE_COLOR, menu_config_set_bgcolor, NULL}, {NULL}, }; static struct menu_config MenuConfigToggleView[] = { {"viewer_show_ruler", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.ruler}, {"sidebar", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.sidebar}, {"status_bar", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.statusbar}, {"scrollbar", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.scrollbar}, {"command_toolbar", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.ctoolbar}, {"pointer_toolbar", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.ptoolbar}, {"cross_gauge", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.show_cross}, {NULL}, }; static struct menu_config MenuConfigOthers[] = { {"png_dpi", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.png_dpi}, #ifdef WINDOWS {"emf_dpi", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.emf_dpi}, #endif {"ps_version", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.ps_version}, {"svg_version", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.svg_version}, {"palette", MENU_CONFIG_TYPE_STRING, NULL, &Menulocal.Palette}, {"main_pane", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.main_pane_pos}, {"side_pane1", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.side_pane1_pos}, {"side_pane2", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.side_pane2_pos}, {"side_pane3", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.side_pane3_pos}, {"single_window_mode",MENU_CONFIG_TYPE_BOOL, NULL, &Menulocal.single_window_mode}, {"file_tab", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.file_tab}, {"axis_tab", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.axis_tab}, {"merge_tab", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.merge_tab}, {"path_tab", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.path_tab}, {"rectangle_tab", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.rectangle_tab}, {"arc_tab", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.arc_tab}, {"mark_tab", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.mark_tab}, {"text_tab", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.text_tab}, {NULL}, }; static struct menu_config MenuConfigGeometry[] = { {"menu_win", MENU_CONFIG_TYPE_WINDOW, menu_config_set_four_elements, menu_config_menu_geometry}, {NULL}, }; static struct menu_config MenuConfigChildGeometry[] = { {"file_win", MENU_CONFIG_TYPE_CHILD_WINDOW, NULL, &menu_config_file_geometry}, {"axis_win", MENU_CONFIG_TYPE_CHILD_WINDOW, NULL, &menu_config_axis_geometry}, {"legend_win", MENU_CONFIG_TYPE_CHILD_WINDOW, NULL, &menu_config_legend_geometry}, {"merge_win", MENU_CONFIG_TYPE_CHILD_WINDOW, NULL, &menu_config_merge_geometry}, {"information_win", MENU_CONFIG_TYPE_CHILD_WINDOW, NULL, &menu_config_dialog_geometry}, {"coordinate_win", MENU_CONFIG_TYPE_CHILD_WINDOW, NULL, &menu_config_coord_geometry}, {NULL}, }; static struct menu_config MenuConfigExtView[] = { {"extwin_dpi", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.exwindpi}, {"extwin_width", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.exwinwidth}, {"extwin_height", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.exwinheight}, {"use_external_viewer", MENU_CONFIG_TYPE_NUMERIC, NULL, &Menulocal.exwin_use_external}, {NULL}, }; static struct menu_config *MenuConfigArrray[] = { MenuConfig, MenuConfigDriver, MenuConfigScript, MenuConfigMisc, MenuConfigViewer, MenuConfigToggleView, MenuConfigOthers, MenuConfigGeometry, MenuConfigChildGeometry, MenuConfigExtView, NULL, }; static NHASH MenuConfigHash = NULL; #define BUF_SIZE 64 #if ! GTK_CHECK_VERSION(3, 4, 0) static void get_palette(void) { GtkSettings *settings; gchar *palette; settings = gtk_settings_get_default(); if (settings == NULL) { return; } palette = NULL; g_object_get(settings, "gtk-color-palette", &palette, NULL); if (palette == NULL) { return; } if (Menulocal.Palette) { g_free(Menulocal.Palette); } Menulocal.Palette = palette; } static void set_palette(void) { GtkWidget *sel; int n; GdkColor *colors; GtkSettings *settings; if (Menulocal.Palette == NULL) { return; } settings = gtk_settings_get_default(); if (settings == NULL) { return; } sel = gtk_color_selection_new(); if (gtk_color_selection_palette_from_string(Menulocal.Palette, &colors, &n)) { g_free(colors); g_object_set(settings, "gtk-color-palette", Menulocal.Palette, NULL); } gtk_widget_destroy(sel); return; } #endif static void add_str_with_int_to_array(struct menu_config *cfg, struct narray *conf) { char *buf; buf = (char *) g_malloc(BUF_SIZE); if (buf) { snprintf(buf, BUF_SIZE, "%s=%d", cfg->name, * (int *) cfg->data); arrayadd(conf, &buf); } } static void add_child_geometry_to_array(struct menu_config *cfg, struct narray *conf) { char *buf; int **data; struct child_win_stat *stat; stat = cfg->data; data = stat->stat; buf = (char *) g_malloc(BUF_SIZE); if (buf) { sub_window_save_geometry(stat->win); sub_window_save_visibility(stat->win); snprintf(buf, BUF_SIZE, "%s=%d,%d,%d,%d,%d", cfg->name, *data[0], *data[1], *data[2], *data[3], *data[4]); arrayadd(conf, &buf); } } static void add_geometry_to_array(struct menu_config *cfg, struct narray *conf) { char *buf; gint x, y, w, h; get_window_geometry(TopLevel, &x, &y, &w, &h); Menulocal.menux = x; Menulocal.menuy = y; Menulocal.menuwidth = w; Menulocal.menuheight = h; buf = (char *) g_malloc(BUF_SIZE); if (buf) { snprintf(buf, BUF_SIZE, "%s=%d,%d,%d,%d", cfg->name, Menulocal.menux, Menulocal.menuy, Menulocal.menuwidth, Menulocal.menuheight); arrayadd(conf, &buf); } } static void add_color_to_array(struct menu_config *cfg, struct narray *conf) { char *buf; buf = (char *) g_malloc(BUF_SIZE); if (buf) { snprintf(buf, BUF_SIZE, "%s=%02x%02x%02x", cfg->name, (int) (Menulocal.bg_r * 255), (int) (Menulocal.bg_g * 255), (int) (Menulocal.bg_b * 255)); arrayadd(conf, &buf); } } static void add_prm_str_to_array(struct menu_config *cfg, struct narray *conf) { char *buf, *prm; prm = CHK_STR(* (char **) cfg->data); buf = g_strdup_printf("%s=%s", cfg->name, prm); if (buf) { arrayadd(conf, &buf); } } static void save_char_map_config(struct narray *conf) { char *title, *data, *buf; struct character_map_list *pcur; pcur = Menulocal.char_map; while (pcur) { title = CHK_STR(pcur->title); data = CHK_STR(pcur->data); buf = g_strdup_printf("character_map=%s,%s", title, data); if (buf) { arrayadd(conf, &buf); } pcur = pcur->next; } } static void save_ext_driver_config(struct narray *conf) { char *buf, *driver, *ext, *option; struct extprinter *pcur; pcur = Menulocal.extprinterroot; while (pcur) { driver = CHK_STR(pcur->driver); ext = CHK_STR(pcur->ext); option= CHK_STR(pcur->option); buf = g_strdup_printf("ext_driver=%s,%s,%s,%s", pcur->name, driver, ext, option); if (buf) { arrayadd(conf, &buf); } pcur = pcur->next; } } static void save_script_config(struct narray *conf) { char *buf, *script, *option, *description; struct script *scur; scur = Menulocal.scriptroot; while (scur) { script = CHK_STR(scur->script); option = CHK_STR(scur->option); description = CHK_STR(scur->description); buf = g_strdup_printf("script=%s,%s,%s,%s", scur->name, script, description, option); if (buf) { arrayadd(conf, &buf); } scur = scur->next; } } static void add_str_to_array(struct narray *conf, char *str) { char *buf; buf = g_strdup(str); if (buf) { arrayadd(conf, &buf); } } static void menu_save_config_sub(struct menu_config *cfg, struct narray *conf) { int i; for (i = 0; cfg[i].name; i++) { switch (cfg[i].type) { case MENU_CONFIG_TYPE_NUMERIC: case MENU_CONFIG_TYPE_BOOL: add_str_with_int_to_array(cfg + i, conf); break; case MENU_CONFIG_TYPE_COLOR: add_color_to_array(cfg + i, conf); break; case MENU_CONFIG_TYPE_STRING: add_prm_str_to_array(cfg + i, conf); break; case MENU_CONFIG_TYPE_WINDOW: add_geometry_to_array(cfg + i, conf); break; case MENU_CONFIG_TYPE_CHILD_WINDOW: add_child_geometry_to_array(cfg + i, conf); break; case MENU_CONFIG_TYPE_SCRIPT: save_script_config(conf); break; case MENU_CONFIG_TYPE_DRIVER: save_ext_driver_config(conf); break; case MENU_CONFIG_TYPE_CHARMAP: save_char_map_config(conf); break; } } } int menu_save_config(int type) { struct narray conf; arrayinit(&conf, sizeof(char *)); if (type & SAVE_CONFIG_TYPE_GEOMETRY) { menu_save_config_sub(MenuConfigGeometry, &conf); } if (type & SAVE_CONFIG_TYPE_CHILD_GEOMETRY) { menu_save_config_sub(MenuConfigChildGeometry, &conf); } if (type & SAVE_CONFIG_TYPE_VIEWER) { menu_save_config_sub(MenuConfigViewer, &conf); } if (type & SAVE_CONFIG_TYPE_EXTERNAL_VIEWER) { menu_save_config_sub(MenuConfigExtView, &conf); } if (type & SAVE_CONFIG_TYPE_TOGGLE_VIEW) { menu_save_config_sub(MenuConfigToggleView, &conf); } if (type & SAVE_CONFIG_TYPE_OTHERS) { #if ! GTK_CHECK_VERSION(3, 4, 0) get_palette(); #endif menu_save_config_sub(MenuConfigOthers, &conf); } if (type & SAVE_CONFIG_TYPE_EXTERNAL_DRIVER) { menu_save_config_sub(MenuConfigDriver, &conf); } if (type & SAVE_CONFIG_TYPE_ADDIN_SCRIPT) { menu_save_config_sub(MenuConfigScript, &conf); } if (type & SAVE_CONFIG_TYPE_MISC) { menu_save_config_sub(MenuConfigMisc, &conf); } replaceconfig(MGTKCONF, &conf); arraydel2(&conf); arrayinit(&conf, sizeof(char *)); if (type & SAVE_CONFIG_TYPE_EXTERNAL_DRIVER) { if (Menulocal.extprinterroot == NULL) { add_str_to_array(&conf, "ext_driver"); } } if (type & SAVE_CONFIG_TYPE_ADDIN_SCRIPT) { if (Menulocal.scriptroot == NULL) { add_str_to_array(&conf, "script"); } } removeconfig(MGTKCONF, &conf); arraydel2(&conf); return 0; } static int menu_config_set_four_elements(char *s2, void *data) { int len, i, val, **ary; char *endptr, *f[] = {NULL, NULL, NULL, NULL}; if (data == NULL) return 0; ary = (int **) data; for (i = 0; i < 4; i++) { f[i] = getitok2(&s2, &len, " \t,"); if (f[i] == NULL) goto End; } for (i = 0; i < 4; i++) { val = strtol(f[i], &endptr, 10); if (endptr[0] == '\0' && val != 0) { *(ary[i]) = val; } } End: for (i = 0; i < 4; i++) { g_free(f[i]); } return 0; } static int menu_config_set_child_window_geometry(char *s2, void *data) { int len, i, val, **ary; char *endptr, *f[] = {NULL, NULL, NULL, NULL, NULL}; if (data == NULL) return 0; ary = ((struct child_win_stat *) data)->stat; for (i = 0; i < 5; i++) { f[i] = getitok2(&s2, &len, " \t,"); if (f[i] == NULL) goto End; } for (i = 0; i < 5; i++) { val = strtol(f[i], &endptr, 10); if (endptr[0] == '\0') { *(ary[i]) = val; } } End: for (i = 0; i < 5; i++) { g_free(f[i]); } return 0; } static int menu_config_set_bgcolor(char *s2, void *data) { char *f1, *endptr; int len, val; f1 = getitok2(&s2, &len, " \t,"); val = strtol(f1, &endptr, 16); if (endptr[0] == '\0') { Menulocal.bg_r = ((val >> 16) & 0xffU) / 255.0; Menulocal.bg_g = ((val >> 8) & 0xffU) / 255.0; Menulocal.bg_b = (val & 0xffU) / 255.0; } g_free(f1); return 0; } static int menu_config_set_char_map(char *s2, void *data) { char *title; int len; struct character_map_list *pcur, **pptr; pptr = (struct character_map_list **) data; if (! g_utf8_validate(s2, -1, NULL)) { return 0; } title = getitok2(&s2, &len, ","); g_strstrip(title); for (; (s2[0] != '\0') && (strchr(" \t,", s2[0])); s2++); g_strstrip(s2); pcur = g_malloc(sizeof(*pcur)); if (pcur == NULL) { g_free(title); return 1; } pcur->title = title; pcur->data = g_strdup(s2); pcur->next = *pptr; *pptr = pcur; return 0; } static int menu_config_set_ext_driver(char *s2, void *data) { char *f[4] = {NULL, NULL, NULL, NULL}; int len, i; struct extprinter *pnew, *pcur, **pptr; pptr = (struct extprinter **) data; pcur = *pptr; f[0] = getitok2(&s2, &len, ","); f[1] = getitok2(&s2, &len, ","); if (s2[1] == ',') { f[2] = NULL; } else { f[2] = getitok2(&s2, &len, ","); } for (; (s2[0] != '\0') && (strchr(" \t,", s2[0])); s2++); f[3] = getitok2(&s2, &len, ""); if (f[0] && f[1]) { pnew = (struct extprinter *) g_malloc(sizeof(struct extprinter)); if (pnew == NULL) { for (i = 0; i < 4; i++) { g_free(f[i]); } return 1; } if (pcur == NULL) { Menulocal.extprinterroot = pnew; } else { pcur->next = pnew; } *pptr = pnew; pcur = pnew; pcur->next = NULL; pcur->name = f[0]; pcur->driver = f[1]; pcur->ext = f[2]; pcur->option = f[3]; } else { for (i = 0; i < 4; i++) { g_free(f[i]); } } return 0; } static int menu_config_set_script(char *s2, void *data) { char *f[] = {NULL, NULL, NULL, NULL}; int len; unsigned int i; struct script *snew, *scur, **sptr; sptr = (struct script **) data; scur = *sptr; f[0] = getitok2(&s2, &len, ","); f[1] = getitok2(&s2, &len, ","); f[2] = getitok2(&s2, &len, ","); for (; (s2[0] != '\0') && (strchr(" \t,", s2[0])); s2++); f[3] = getitok2(&s2, &len, ","); if (f[0] && f[1]) { snew = (struct script *) g_malloc(sizeof(struct script)); if (snew == NULL) { for (i = 0; i < sizeof(f) / sizeof(*f); i++) { g_free(f[i]); } return 1; } if (scur == NULL) { Menulocal.scriptroot = snew; } else { scur->next = snew; } *sptr = snew; scur = snew; scur->next = NULL; scur->name = f[0]; scur->script = f[1]; scur->description = f[2]; scur->option = f[3]; } else { for (i = 0; i < sizeof(f) / sizeof(*f); i++) { g_free(f[i]); } } return 0; } static int mgtkloadconfig(void) { FILE *fp; char *tok, *str, *s2; char *f1; int val; char *endptr; int len; struct extprinter *pcur; struct script *scur; struct menu_config *cfg; fp = openconfig(MGTKCONF); if (fp == NULL) return 0; pcur = Menulocal.extprinterroot; scur = Menulocal.scriptroot; if (nhash_get_ptr(MenuConfigHash, "ext_driver", (void *) &cfg) == 0) { if (cfg) { cfg->data = &pcur; } } if (nhash_get_ptr(MenuConfigHash, "script", (void *) &cfg) == 0) { if (cfg) { cfg->data = &scur; } } while ((tok = getconfig(fp, &str))) { s2 = str; if (nhash_get_ptr(MenuConfigHash, tok, (void *) &cfg) == 0 && cfg) { switch (cfg->type) { case MENU_CONFIG_TYPE_NUMERIC: f1 = getitok2(&s2, &len, " \t,"); if (f1) { val = strtol(f1, &endptr, 10); if (endptr[0] == '\0') { * (int *) (cfg->data) = val; } } g_free(f1); break; case MENU_CONFIG_TYPE_BOOL: f1 = getitok2(&s2, &len, " \t,"); if (f1) { val = strtol(f1, &endptr, 10); if (endptr[0] == '\0') { * (int *) (cfg->data) = (val ? 1 : 0); } } g_free(f1); break; case MENU_CONFIG_TYPE_STRING: f1 = getitok2(&s2, &len, ""); if (f1) { g_free(* (char **) (cfg->data)); * (char **) (cfg->data) = f1; } break; case MENU_CONFIG_TYPE_CHILD_WINDOW: menu_config_set_child_window_geometry(s2, cfg->data); break; case MENU_CONFIG_TYPE_CHARMAP: case MENU_CONFIG_TYPE_COLOR: case MENU_CONFIG_TYPE_SCRIPT: case MENU_CONFIG_TYPE_DRIVER: case MENU_CONFIG_TYPE_WINDOW: if (cfg->proc && cfg->proc(s2, cfg->data)) { g_free(tok); g_free(str); closeconfig(fp); return 1; } break; } } else { fprintf(stderr, "(%s): configuration '%s' in section %s is not used.\n", AppName, tok, MGTKCONF); } g_free(tok); g_free(str); } closeconfig(fp); return 0; } void initwindowconfig(void) { Menulocal.fileopen = Menulocal.axisopen = Menulocal.legendopen = Menulocal.mergeopen = Menulocal.dialogopen = Menulocal.coordopen = FALSE; Menulocal.filex = Menulocal.filey = Menulocal.fileheight = Menulocal.filewidth = DEFAULT_GEOMETRY; Menulocal.axisx = Menulocal.axisy = Menulocal.axisheight = Menulocal.axiswidth = DEFAULT_GEOMETRY; Menulocal.legendx = Menulocal.legendy = Menulocal.legendheight = Menulocal.legendwidth = DEFAULT_GEOMETRY; Menulocal.mergex = Menulocal.mergey = Menulocal.mergeheight = Menulocal.mergewidth = DEFAULT_GEOMETRY; Menulocal.dialogx = Menulocal.dialogy = Menulocal.dialogheight = Menulocal.dialogwidth = DEFAULT_GEOMETRY; Menulocal.coordx = Menulocal.coordy = Menulocal.coordheight = Menulocal.coordwidth = DEFAULT_GEOMETRY; } int mgtkwindowconfig(void) { FILE *fp; char *tok, *str, *s2; struct menu_config *cfg; if ((fp = openconfig(MGTKCONF)) == NULL) return 0; while ((tok = getconfig(fp, &str))) { s2 = str; if (nhash_get_ptr(MenuConfigHash, tok, (void *) &cfg) == 0) { if(cfg && cfg->type == MENU_CONFIG_TYPE_CHILD_WINDOW) { menu_config_set_child_window_geometry(s2, cfg->data); } } g_free(tok); g_free(str); } closeconfig(fp); return 0; } void menuadddrawrable(struct objlist *parent, struct narray *drawrable) { struct objlist *ocur; char *name; ocur = chkobjroot(); while (ocur) { if (chkobjparent(ocur) == parent) { name = chkobjectname(ocur); arrayadd2(drawrable, name); menuadddrawrable(ocur, drawrable); } ocur = ocur->next; } } static void free_script_list(struct script *script) { struct script *scur, *sdel; scur = script; while (scur) { sdel = scur; scur = scur->next; g_free(sdel->name); g_free(sdel->script); g_free(sdel->description); g_free(sdel->option); g_free(sdel); } } static void menulocal_finalize(void) { struct extprinter *pcur, *pdel; struct character_map_list *cmap, *cmap_tmp; int i, j; struct menu_config *cfg; for (i = 0; (cfg = MenuConfigArrray[i]); i++) { for (j = 0; cfg[j].name; j++) { if (cfg[i].type == MENU_CONFIG_TYPE_STRING) { g_free(* (char **) cfg[i].data); * (char **) cfg[i].data = NULL; } } } cmap = Menulocal.char_map; while (cmap) { cmap_tmp = cmap; cmap = cmap_tmp->next; g_free(cmap_tmp->title); g_free(cmap_tmp->data); g_free(cmap_tmp); } Menulocal.char_map = NULL; pcur = Menulocal.extprinterroot; while (pcur) { pdel = pcur; pcur = pcur->next; g_free(pdel->name); g_free(pdel->driver); g_free(pdel->ext); g_free(pdel->option); g_free(pdel); } Menulocal.extprinterroot = NULL; free_script_list(Menulocal.scriptroot); Menulocal.scriptroot = NULL; free_script_list(Menulocal.addin_list); Menulocal.addin_list = NULL; if (Menulocal.pix) { cairo_surface_destroy(Menulocal.pix); } arraydel2(&Menulocal.drawrable); Menulocal.ngpfilelist = NULL; g_free(Menulocal.fileopendir); Menulocal.fileopendir = NULL; g_free(Menulocal.graphloaddir); Menulocal.graphloaddir = NULL; Menulocal.obj = NULL; Menulocal.local = NULL; } static int menuinit(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local; int i; if (!OpenApplication()) { error(obj, ERR_MENU_DISPLAY); goto errexit; } if (_exeparent(obj, (char *) argv[1], inst, rval, argc, argv)) { return 1; } if (_getobj(obj, "_local", inst, &local)) { local = gra2cairo_free(obj, inst); g_free(local); return 1; } memset(&Menulocal, 0, sizeof(Menulocal)); Menulocal.menux = Menulocal.menuy = Menulocal.menuheight = Menulocal.menuwidth = DEFAULT_GEOMETRY; initwindowconfig(); Menulocal.showtip = TRUE; Menulocal.sidebar = TRUE; Menulocal.statusbar = TRUE; Menulocal.ruler = TRUE; Menulocal.scrollbar = TRUE; Menulocal.ptoolbar = TRUE; Menulocal.ctoolbar = TRUE; Menulocal.show_cross = FALSE; Menulocal.scriptconsole = FALSE; Menulocal.addinconsole = TRUE; Menulocal.changedirectory = 1; set_paper_type(21000, 29700); Menulocal.PaperZoom = 10000; Menulocal.exwindpi = DEFAULT_DPI / 2; Menulocal.exwinwidth = 400; Menulocal.exwinheight = 600; Menulocal.exwin_use_external = TRUE; Menulocal.expand = 1; Menulocal.expanddir = g_strdup("./"); Menulocal.loadpath = SAVE_PATH_FULL; Menulocal.ngpfilelist = gtk_recent_manager_get_default(); Menulocal.GRAobj = chkobject("gra"); Menulocal.hist_size = 1000; Menulocal.info_size = 1000; Menulocal.bg_r = 1.0; Menulocal.bg_g = 1.0; Menulocal.bg_b = 1.0; Menulocal.focus_frame_type = N_LINE_TYPE_DOT; Menulocal.main_pane_pos = 600; Menulocal.side_pane1_pos = 500; Menulocal.side_pane2_pos = 300; Menulocal.side_pane3_pos = 200; Menulocal.single_window_mode = FALSE; Menulocal.file_tab = 0; Menulocal.axis_tab = 100; Menulocal.merge_tab = 101; Menulocal.path_tab = 1; Menulocal.rectangle_tab = 2; Menulocal.arc_tab = 3; Menulocal.mark_tab = 4; Menulocal.text_tab = 5; arrayinit(&(Menulocal.drawrable), sizeof(char *)); menuadddrawrable(chkobject("draw"), &(Menulocal.drawrable)); Menulocal.windpi = DEFAULT_DPI; Menulocal.redrawf = TRUE; Menulocal.redrawf_num = 0xffU; Menulocal.grid = 200; Menulocal.data_head_lines = 20; Menulocal.use_opacity = FALSE; Menulocal.select_data = TRUE; Menulocal.local = local; Menulocal.png_dpi = 72; #ifdef WINDOWS Menulocal.emf_dpi = 576; #endif Menulocal.ps_version = 0; Menulocal.svg_version = 0; if (mgtkloadconfig()) goto errexit; gra2cairo_set_antialias(Menulocal.local, Menulocal.antialias); if (_putobj(obj, "antialias", inst, &(Menulocal.antialias))) goto errexit; if (Menulocal.exwindpi < 1) Menulocal.exwindpi = DEFAULT_DPI / 2; if (Menulocal.exwindpi > DPI_MAX) Menulocal.exwindpi = DPI_MAX; if (Menulocal.windpi < 1) Menulocal.windpi = DEFAULT_DPI; if (Menulocal.windpi > DPI_MAX) Menulocal.windpi = DPI_MAX; if (_putobj(obj, "dpi", inst, &(Menulocal.windpi))) goto errexit; if (_putobj(obj, "data_head_lines", inst, &(Menulocal.data_head_lines))) goto errexit; if (_putobj(obj, "redraw_flag", inst, &(Menulocal.redrawf))) goto errexit; if (_putobj(obj, "redraw_num", inst, &(Menulocal.redrawf_num))) goto errexit; Menulocal.local->use_opacity = Menulocal.use_opacity; if (_putobj(obj, "use_opacity", inst, &Menulocal.use_opacity)) goto errexit; i = 0; if (_putobj(obj, "modified", inst, &i)) goto errexit; Menulocal.obj = obj; Menulocal.inst = inst; Menulocal.pix = NULL; Menulocal.lock = 0; #if ! GTK_CHECK_VERSION(3, 4, 0) set_palette(); #endif return 0; errexit: menulocal_finalize(); local = gra2cairo_free(obj, inst); g_free(local); return 1; } static int menudone(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (Menulocal.lock) { error(obj, ERR_MENU_RUN); return 1; } if (_exeparent(obj, (char *) argv[1], inst, rval, argc, argv)) return 1; menulocal_finalize(); return 0; } void mgtkdisplaydialog(const char *str) { DisplayDialog(str); } void mgtkdisplaystatus(const char *str) { DisplayDialog(str); } int mgtkputstderr(const char *s) { return PutStderr(s); } int mgtkputstdout(const char *s) { return PutStdout(s); } int mgtkprintfstderr(char *fmt, ...) { int len; char buf[1024]; va_list ap; va_start(ap, fmt); len = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); PutStderr(buf); return len; } int mgtkprintfstdout(char *fmt, ...) { int len; char buf[1024]; va_list ap; va_start(ap, fmt); len = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); PutStdout(buf); return len; } int mgtkinterrupt(void) { return ChkInterrupt(); } int mgtkinputyn(const char *mes) { char *ptr; int r; ptr = g_locale_to_utf8(CHK_STR(mes), -1, NULL, NULL, NULL); r = InputYN(ptr); g_free(ptr); return r; } static int menumenu(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *file; int r; if (_exeparent(obj, (char *) argv[1], inst, rval, argc, argv)) return 1; if (Menulocal.lock) { error(obj, ERR_MENU_RUN); return 1; } Menulocal.lock = 1; savestdio(&GtkIOSave); file = get_utf8_filename(argv[2]); hide_console(); r = application(file); resotre_console(); if (file) { g_free(file); } loadstdio(&GtkIOSave); Menulocal.lock = 0; return r; } static int mx_evloop(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { reset_event(); return 0; } static int mxredrawflag(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { Menulocal.redrawf = *(int *) argv[2]; return 0; } static int mxredraw_num(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int n; n = *(int *) argv[2]; n = (n < 0) ? 0: n; Menulocal.redrawf_num = n; *(int *) argv[2] = n; return 0; } static int mxuse_opacity(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int n; n = *(int *) argv[2]; Menulocal.local->use_opacity = Menulocal.use_opacity = n; return 0; } static int mx_data_head_lines(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int n; n = *(int *) argv[2]; n = (n < 0) ? 0: n; Menulocal.data_head_lines = n; *(int *) argv[2] = n; return 0; } void main_window_redraw(void) { GdkWindow *win; if (NgraphApp.Viewer.Win == NULL) { return; } win = gtk_widget_get_window(NgraphApp.Viewer.Win); if(win == NULL) { return; } gdk_window_invalidate_rect(win, NULL, FALSE); } void mx_redraw(struct objlist *obj, N_VALUE *inst) { int n; if (Menulocal.region) { mx_clear(Menulocal.region); } if (Menulocal.redrawf) { n = Menulocal.redrawf_num; } else { n = 0; } GRAredraw(obj, inst, TRUE, n); mxflush(obj, inst, NULL, 0, NULL); draw_paper_frame(); main_window_redraw(); } void mx_inslist(struct objlist *obj, N_VALUE *inst, struct objlist *aobj, N_VALUE *ainst, char *afield, int addn) { int gc; _getobj(obj, "_GC", inst, &gc); GRAinslist(gc, aobj, ainst, chkobjectname(aobj), afield, addn); } void mx_dellist(struct objlist *obj, N_VALUE *inst, int deln) { int gc; _getobj(obj, "_GC", inst, &gc); GRAdellist(gc, deln); } static int mxredraw(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } mx_redraw(obj, inst); return 0; } static int mxdpi(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int dpi; if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } dpi = abs(*(int *) argv[2]); if (dpi < 1) dpi = 1; if (dpi > DPI_MAX) dpi = DPI_MAX; Menulocal.windpi = dpi; Menulocal.local->pixel_dot_x = Menulocal.local->pixel_dot_y = dpi / (DPI_MAX * 1.0); *(int *) argv[2] = dpi; main_window_redraw(); return 0; } static int mxflush(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { cairo_surface_t *surface; if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } if (Menulocal.local->cairo) { gra2cairo_draw_path(Menulocal.local); surface = cairo_get_target(Menulocal.local->cairo); if (surface) { cairo_surface_flush(surface); } } return 0; } void #if GTK_CHECK_VERSION(3, 0, 0) mx_clear(cairo_region_t *region) #else mx_clear(GdkRegion *region) #endif { cairo_t *cr; if (Menulocal.pix == NULL || Menulocal.local->cairo == NULL) { return; } cr = Menulocal.local->cairo; cairo_set_source_rgb(cr, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); if (region) { gdk_cairo_region(cr, region); cairo_fill(cr); } else { cairo_reset_clip(cr); cairo_paint(cr); } draw_paper_frame(); } static int mxclear(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } if (_exeparent(obj, (char *) argv[1], inst, rval, argc, argv)) return 1; mx_clear(NULL); main_window_redraw(); return 0; } static int mxfullpathngp(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *name, *ngp2; name = (char *) argv[2]; if (name == NULL) ngp2 = NULL; else ngp2 = getbasename(name); putobj(Menulocal.obj, "ngp", 0, ngp2); return 0; } static int check_object_name(struct objlist *obj, struct narray *array) { int i, n; char **adata; if (array == NULL) return 0; adata = arraydata(array); if (adata == NULL) return 0; n = arraynum(array); if (n == 0) return 0; for (i = 0; i < n; i ++) { if (obj == chkobject(adata[i])) return 0; } return 1; } static int mx_get_focused(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int num, i, id; char *name, *ptr; struct narray *oarray, *sarray; struct Viewer *d; struct FocusObj **focus; if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } arrayfree2(rval->array); rval->array = NULL; d = &(NgraphApp.Viewer); num = arraynum(d->focusobj); if (num < 1) return 0; oarray = arraynew(sizeof(char *)); if (oarray == NULL) return 1; sarray = (argc > 2) ? (struct narray *) argv[2] : NULL; focus = arraydata(d->focusobj); for (i = 0; i < num; i++) { if (check_object_name(focus[i]->obj, sarray)) continue; inst = chkobjinstoid(focus[i]->obj, focus[i]->oid); if (inst) { _getobj(focus[i]->obj, "id", inst, &id); name = chkobjectname(focus[i]->obj); ptr = g_strdup_printf("%s:%d", name, id); if (ptr) { arrayadd(oarray, &ptr); } } } rval->array = oarray; return 0; } static int mx_print(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int show_dialog, select_file, create_window = FALSE, lock; GtkWidget *label; select_file = * (int *) argv[2]; show_dialog = * (int *) argv[3]; if (TopLevel == NULL) { create_window = TRUE; TopLevel = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_type_hint(GTK_WINDOW(TopLevel), GDK_WINDOW_TYPE_HINT_DIALOG); g_signal_connect(TopLevel, "delete-event", G_CALLBACK(gtk_true), NULL); label = gtk_label_new(" Ngraph "); gtk_container_add(GTK_CONTAINER(TopLevel), label); gtk_widget_show_all(TopLevel); reset_event(); } lock = Menulock; menu_lock(FALSE); CmOutputPrinter(select_file, show_dialog); menu_lock(lock); if (create_window) { gtk_widget_destroy(TopLevel); TopLevel = NULL; reset_event(); } return 0; } static int mx_echo(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } if (argv[2]) PutStdout((char *) argv[2]); PutStdout("\n"); return 0; } static int mx_cat(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char buf[1024]; int len, use_stdin = TRUE; int fd; if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } if (argv[2]) { fd = nopen(argv[2], O_RDONLY, 0); if (fd == -1) { error(obj, ERR_MENU_OPEN_FILE); return 1; } use_stdin = FALSE; } else { fd = stdinfd(); } while ((len = nread(fd, buf, sizeof(buf) - 1)) > 0) { buf[len] = '\0'; PutStdout(buf); } if (! use_stdin) { nclose(fd); } return 0; } static int mx_clear_info(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } InfoWinClear(); return 0; } static int mx_show_win(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { unsigned int win; if (Menulocal.single_window_mode) { return 0; } if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } win = * (unsigned int *) (argv[2]); window_action_set_active(win, TRUE); return 0; } static int mx_hide_win(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { unsigned int win; if (Menulocal.single_window_mode) { return 0; } if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } win = * (unsigned int *) (argv[2]); window_action_set_active(win, FALSE); return 0; } static int mx_toggle_win(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int win; if (Menulocal.single_window_mode) { return 0; } if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } win = * (int *) (argv[2]); window_action_toggle(win); return 0; } static int mx_get_ui(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (rval->str) { g_free(rval->str); } rval->str = get_ui_definition(); return 0; } static int mx_get_accel_map(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { FILE *fp; int fd; char buf[1024], *ptr; GString *str; if (rval->str) { g_free(rval->str); } rval->str = NULL; fp = tmpfile(); if (fp == NULL) { putstderr(g_strerror(errno)); return 1; } fd = fileno(fp); gtk_accel_map_save_fd(fd); rewind(fp); str = g_string_new(""); while ((ptr = fgets(buf, sizeof(buf), fp))) { buf[sizeof(buf) - 1] = '\0'; g_string_append(str, buf); } fclose(fp); rval->str = g_string_free(str, FALSE); return 0; } #ifdef HAVE_READLINE_READLINE_H #include #endif #ifdef HAVE_LIBGSL #include #endif static int mx_show_lib_version(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *s, h[256]; int i, n; GString *str; if (rval->str) { g_free(rval->str); } rval->str = NULL; n = 0; s = argv[2]; if (s) { n = s[0] - '0'; n = (n < (int) sizeof(h) - 1) ? n : (int) sizeof(h) - 1; } for (i = 0; i < n; i++) { h[i] = ' '; } h[i] = '\0'; str = g_string_new(""); g_string_append_printf(str, "%sGTK+\n" "%s compile: %d.%d.%d\n" "%s linked: %d.%d.%d\n" "\n", h, h, GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION, h, gtk_major_version, gtk_minor_version, gtk_micro_version); g_string_append_printf(str, "%sGLib\n" "%s compile: %d.%d.%d\n" "%s linked: %d.%d.%d\n" "\n", h, h, GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION, h, glib_major_version, glib_minor_version, glib_micro_version); g_string_append_printf(str, "%sCairo\n" "%s compile: %s\n" "%s linked: %s\n" "\n", h, h, CAIRO_VERSION_STRING, h, cairo_version_string()); g_string_append_printf(str, "%sPango\n" "%s compile: %s\n" "%s linked: %s\n", h, h, PANGO_VERSION_STRING, h, pango_version_string()); #ifdef HAVE_READLINE_READLINE_H g_string_append(str, "\n"); g_string_append_printf(str, "%sreadline\n" "%s compile: %d.%d\n" "%s linked: %s\n", h, h, RL_VERSION_MAJOR, RL_VERSION_MINOR, h, rl_library_version); #endif #ifdef HAVE_LIBGSL g_string_append(str, "\n"); g_string_append_printf(str, "%sGSL\n" #ifdef GSL_VERSION "%s compile: %s\n" #else /* GSL_VERSION */ "%s compile: %d.%d\n" #endif /* GSL_VERSION */ "%s linked: %s\n", h, h, #ifdef GSL_VERSION GSL_VERSION, #else /* GSL_VERSION */ GSL_MAJOR_VERSION, GSL_MINOR_VERSION, #endif /* GSL_VERSION */ h, gsl_version); #endif /* HAVE_LIBGSL */ rval->str = g_string_free(str, FALSE); return 0; } static int mxdraw(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } Draw(FALSE); return 0; } static void SetCaption(int modified) { char buf[1024], *file; getobj(Menulocal.obj, "ngp", 0, 0, NULL, &file); snprintf(buf, sizeof(buf), "%s%s - Ngraph", (modified) ? "*" : "", (file) ? file : _("Unsaved Graph")); gtk_window_set_title(GTK_WINDOW(TopLevel), buf); } static int mxmodified(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int modified; if (TopLevel == NULL) { error(obj, ERR_MENU_GUI); return 1; } modified = * (int *) argv[2]; SetCaption(modified); set_modified_state(modified); return 0; } static int mx_focus_obj(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int n, i, *id_array; char *legend; struct objlist *lobj; struct narray iarray; legend = (char *) argv[2]; if (legend == NULL) { return 0; } arrayinit(&iarray, sizeof(int)); if (getobjilist(legend, &lobj, &iarray, FALSE, NULL)) { return 0; } n = arraynum(&iarray); if (n < 1) { arraydel(&iarray); return 0; } id_array = arraydata(&iarray); for (i = 0; i < n; i++) { Focus(lobj, id_array[i], TRUE); } arraydel(&iarray); return 0; } static int mx_unfocus_obj(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { UnFocus(); return 0; } static int mx_get_locale(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { const char *locale; if (rval->str) { g_free(rval->str); } rval->str = NULL; locale = n_getlocale(); if (locale) { rval->str = g_strdup(locale); } return 0; } static int mx_get_active(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (TopLevel) { rval->i = TRUE; } else { rval->i = FALSE; } return 0; } static int mx_addin_list_append(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int n, id, i; char *sarray, *name, *script, *description, *option, *argv2[2]; struct objlist *sa_obj; struct narray iarray; struct script *addin, *list; sarray = (char *) argv[2]; if (sarray == NULL) { return 0; } arrayinit(&iarray, sizeof(int)); if (getobjilist(sarray, &sa_obj, &iarray, FALSE, NULL)) { return 0; } if (g_strcmp0(chkobjectname(sa_obj), "sarray") != 0) { return 1; } n = arraynum(&iarray); if (n < 1) { arraydel(&iarray); return 0; } id = arraynget_int(&iarray, 0); if (getobj(sa_obj, "num", id, 0, NULL, &n) < 0) { return 0; } if (n < 4) { arraydel(&iarray); return 0; } addin = g_malloc0(sizeof(*addin)); if (addin == NULL) { return 1; } argv2[0] = (char *) &i; argv2[1] = NULL; i = 0; getobj(sa_obj, "get", id, 1, argv2, &script); if (! g_utf8_validate(script, -1, NULL)) { goto Err; } addin->script = g_strdup(script); i = 1; getobj(sa_obj, "get", id, 1, argv2, &name); if (! g_utf8_validate(name, -1, NULL)) { goto Err; } addin->name = g_strdup(name); i = 2; getobj(sa_obj, "get", id, 1, argv2, &description); if (! g_utf8_validate(description, -1, NULL)) { goto Err; } addin->description = g_strdup(description); i = 3; getobj(sa_obj, "get", id, 1, argv2, &option); if (! g_utf8_validate(option, -1, NULL)) { goto Err; } addin->option = g_strdup(option); addin->next = NULL; if (Menulocal.addin_list == NULL) { Menulocal.addin_list = addin; } else { for (list = Menulocal.addin_list; list != addin; list = list->next) { if (list->next == NULL) { list->next = addin; } } } arraydel(&iarray); return 0; Err: if (addin->script) { g_free(addin->script); } if (addin->name) { g_free(addin->name); } if (addin->description) { g_free(addin->description); } if (addin->option) { g_free(addin->option); } g_free(addin); return 0; } int get_graph_modified(void) { int a; if (Menulocal.obj == NULL) return FALSE; getobj(Menulocal.obj, "modified", 0, 0, NULL, &a); return a; } static void graph_modified_sub(int a) { if (Menulocal.obj == NULL) return; putobj(Menulocal.obj, "modified", 0, &a); } void set_graph_modified(void) { graph_modified_sub(1); } void reset_graph_modified(void) { graph_modified_sub(0); } static struct objtable gtkmenu[] = { {"init", NVFUNC, NEXEC, menuinit, NULL, 0}, {"done", NVFUNC, NEXEC, menudone, NULL, 0}, {"menu", NVFUNC, NREAD | NEXEC, menumenu, "s", 0}, {"ngp", NSTR, NREAD | NWRITE, NULL, NULL, 0}, {"fullpath_ngp", NSTR, NREAD | NWRITE, mxfullpathngp, NULL, 0}, {"data_head_lines", NINT, NREAD | NWRITE, mx_data_head_lines, NULL, 0}, {"modified", NBOOL, NREAD | NWRITE, mxmodified, NULL, 0}, {"dpi", NINT, NREAD | NWRITE, mxdpi, NULL, 0}, {"redraw_flag", NBOOL, NREAD | NWRITE, mxredrawflag, NULL, 0}, {"redraw_num", NINT, NREAD | NWRITE, mxredraw_num, NULL, 0}, {"use_opacity", NBOOL, NREAD | NWRITE, mxuse_opacity, NULL,0}, {"redraw", NVFUNC, NREAD | NEXEC, mxredraw, "", 0}, {"draw", NVFUNC, NREAD | NEXEC, mxdraw, "", 0}, {"flush", NVFUNC, NREAD | NEXEC, mxflush, "", 0}, {"clear", NVFUNC, NREAD | NEXEC, mxclear, "", 0}, {"focused", NSAFUNC, NREAD | NEXEC, mx_get_focused, "sa", 0}, {"print", NVFUNC, NREAD | NEXEC, mx_print, "bi", 0}, {"echo", NVFUNC, NREAD | NEXEC, mx_echo, "s", 0}, {"cat", NVFUNC, NREAD | NEXEC, mx_cat, "s", 0}, {"clear_info", NVFUNC, NREAD | NEXEC, mx_clear_info, "", 0}, {"show_window", NVFUNC, NREAD | NEXEC, mx_show_win, "i", 0}, {"hide_window", NVFUNC, NREAD | NEXEC, mx_hide_win, "i", 0}, {"toggle_window", NVFUNC, NREAD | NEXEC, mx_toggle_win, "i", 0}, {"get_ui", NSFUNC, NREAD | NEXEC, mx_get_ui, "", 0}, {"get_accel_map", NSFUNC, NREAD | NEXEC, mx_get_accel_map, "", 0}, {"lib_version", NSFUNC, NREAD | NEXEC, mx_show_lib_version, NULL, 0}, {"focus", NVFUNC, NREAD | NEXEC, mx_focus_obj, "o", 0}, {"unfocus", NVFUNC, NREAD | NEXEC, mx_unfocus_obj, "", 0}, {"locale", NSFUNC, NREAD | NEXEC, mx_get_locale, "", 0}, {"active", NBFUNC, NREAD | NEXEC, mx_get_active, "", 0}, {"addin_list_append", NVFUNC, NREAD | NEXEC, mx_addin_list_append, "o", 0}, {"_evloop", NVFUNC, 0, mx_evloop, NULL, 0}, }; #define TBLNUM (sizeof(gtkmenu) / sizeof(*gtkmenu)) void * addmenu(void) { unsigned int i, j; struct menu_config *cfg; if (MenuConfigHash == NULL) { MenuConfigHash = nhash_new(); if (MenuConfigHash ==NULL) return NULL; for (i = 0; (cfg = MenuConfigArrray[i]); i++) { for (j = 0; cfg[j].name; j++) { if (nhash_set_ptr(MenuConfigHash, cfg[j].name, (void *) (cfg + j))) { nhash_free(MenuConfigHash); return NULL; } } } } return addobject(NAME, ALIAS, PARENT, NVERSION, TBLNUM, gtkmenu, ERRNUM, menuerrorlist, NULL, NULL); } ngraph-gtk-6.06.13/src/gtk/x11commn.c0000644000175000017500000011264512241111703014036 00000000000000/* * $Id: x11commn.c,v 1.60 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include #include #include #include #include "dir_defs.h" #include "object.h" #include "ioutil.h" #include "shell.h" #include "nstring.h" #include "ofile.h" #include "odraw.h" #include "nconfig.h" #include "main.h" #include "gtk_widget.h" #include "x11gui.h" #include "x11graph.h" #include "x11dialg.h" #include "ox11menu.h" #include "x11menu.h" #include "x11commn.h" #include "x11info.h" #define COMMENT_BUF_SIZE 1024 static GtkWidget *ProgressDialog = NULL; static GtkProgressBar *ProgressBar, *ProgressBar2; static unsigned int SaveCursor; static void AddNgpFileList(const char *file); static void ToFullPath(void); static void ToBasename(void); static void ToRalativePath(void); void OpenGRA(void) { unsigned int j; int i, id, otherGC; char *device, *name, *name_str = "viewer"; struct narray *drawrable; N_VALUE *gra_inst; gra_inst = chkobjinstoid(Menulocal.GRAobj, Menulocal.GRAoid); if (gra_inst) { return; } CloseGRA(); for (i = chkobjlastinst(Menulocal.GRAobj); i >= 0; i--) { getobj(Menulocal.GRAobj, "GC", i, 0, NULL, &otherGC); if (otherGC < 0) break; } if (i == -1) { /* closed gra object is not found. generate new gra object */ id = newobj(Menulocal.GRAobj); gra_inst = chkobjinst(Menulocal.GRAobj, id); _getobj(Menulocal.GRAobj, "oid", gra_inst, &(Menulocal.GRAoid)); /* set page settings */ putobj(Menulocal.GRAobj, "paper_width", id, &(Menulocal.PaperWidth)); putobj(Menulocal.GRAobj, "paper_height", id, &(Menulocal.PaperHeight)); putobj(Menulocal.GRAobj, "left_margin", id, &(Menulocal.LeftMargin)); putobj(Menulocal.GRAobj, "top_margin", id, &(Menulocal.TopMargin)); putobj(Menulocal.GRAobj, "zoom", id, &(Menulocal.PaperZoom)); CheckPage(); } else { /* find closed gra object */ id = i; gra_inst = chkobjinst(Menulocal.GRAobj, id); _getobj(Menulocal.GRAobj, "oid", gra_inst, &(Menulocal.GRAoid)); /* get page settings */ CheckPage(); } if (arraynum(&(Menulocal.drawrable)) > 0) { drawrable = arraynew(sizeof(char *)); for (j = 0; j < arraynum(&(Menulocal.drawrable)); j++) { arrayadd2(drawrable, *(char **)arraynget(&(Menulocal.drawrable), j)); } } else { drawrable = NULL; } putobj(Menulocal.GRAobj, "draw_obj", id, drawrable); device = g_strdup("menu:0"); putobj(Menulocal.GRAobj, "device", id, device); name = g_strdup(name_str); putobj(Menulocal.GRAobj, "name", id, name); getobj(Menulocal.GRAobj, "open", id, 0, NULL, &(Menulocal.GC)); } void CheckPage(void) { N_VALUE *gra_inst; gra_inst = chkobjinstoid(Menulocal.GRAobj, Menulocal.GRAoid); if (gra_inst == NULL) { return; } _getobj(Menulocal.GRAobj, "paper_width", gra_inst, &(Menulocal.PaperWidth)); _getobj(Menulocal.GRAobj, "paper_height", gra_inst, &(Menulocal.PaperHeight)); _getobj(Menulocal.GRAobj, "left_margin", gra_inst, &(Menulocal.LeftMargin)); _getobj(Menulocal.GRAobj, "top_margin", gra_inst, &(Menulocal.TopMargin)); _getobj(Menulocal.GRAobj, "zoom", gra_inst, &(Menulocal.PaperZoom)); set_paper_type(Menulocal.PaperWidth, Menulocal.PaperHeight); } static int ValidGRA(void) { int id; struct objlist *graobj; N_VALUE *inst; if ((graobj = chkobject("gra")) == NULL) return -1; id = -1; if ((inst = chkobjinstoid(graobj, Menulocal.GRAoid)) != NULL) _getobj(graobj, "id", inst, &id); if (id == -1) id = chkobjlastinst(graobj); return id; } void CloseGRA(void) { int id; N_VALUE *gra_inst; gra_inst = chkobjinstoid(Menulocal.GRAobj, Menulocal.GRAoid); if (gra_inst == NULL) { return; } _getobj(Menulocal.GRAobj, "id", gra_inst, &id); exeobj(Menulocal.GRAobj, "close", id, 0, NULL); delobj(Menulocal.GRAobj, id); Menulocal.GRAoid = -1; } void ChangeGRA(void) { int i, otherGC; /* search for closed gra object */ for (i = chkobjlastinst(Menulocal.GRAobj); i >= 0; i--) { getobj(Menulocal.GRAobj, "GC", i, 0, NULL, &otherGC); if (otherGC < 0) break; } if (i == -1) { /* closed gra is not find. maintain present gra object */ if (chkobjinstoid(Menulocal.GRAobj, Menulocal.GRAoid) == NULL) { ChangePage(); } } else { /* use closed gra object */ ChangePage(); } CheckPage(); } void SetPageSettingsToGRA(void) { int i, j, num, otherGC, id; struct objlist *obj; N_VALUE *inst; struct narray *drawrable; if ((obj = chkobject("gra")) == NULL) return; for (i = chkobjlastinst(obj); i >= 0; i--) { getobj(obj, "GC", i, 0, NULL, &otherGC); if (otherGC < 0) break; } if (i >= 0) { id = i; inst = chkobjinst(obj, id); putobj(obj, "paper_width", id, &(Menulocal.PaperWidth)); putobj(obj, "paper_height", id, &(Menulocal.PaperHeight)); putobj(obj, "left_margin", id, &(Menulocal.LeftMargin)); putobj(obj, "top_margin", id, &(Menulocal.TopMargin)); putobj(obj, "zoom", id, &(Menulocal.PaperZoom)); _getobj(obj, "draw_obj", inst, &drawrable); arrayfree2(drawrable); drawrable = arraynew(sizeof(char *)); num = arraynum(&(Menulocal.drawrable)); for (j = 0; j < num; j++) { arrayadd2(drawrable, *(char **) arraynget(&(Menulocal.drawrable), j)); } _putobj(obj, "draw_obj", inst, drawrable); } } void GetPageSettingsFromGRA(void) { int i, j, num, otherGC, id; struct objlist *obj; N_VALUE *inst; struct narray *drawrable; if ((obj = chkobject("gra")) == NULL) return; for (i = chkobjlastinst(obj); i >= 0; i--) { getobj(obj, "GC", i, 0, NULL, &otherGC); if (otherGC < 0) break; } if (i >= 0) { id = i; inst = chkobjinst(obj, id); CheckPage(); _getobj(obj, "draw_obj", inst, &drawrable); arraydel2(&(Menulocal.drawrable)); num = arraynum(drawrable); for (j = 0; j < num; j++) { arrayadd2(&(Menulocal.drawrable), *(char **) arraynget(drawrable, j)); } } ChangeGRA(); } static int get_new_axis_id(struct objlist *obj, struct objlist **aobj, int fid, int id, int a) { int spc, aid = 0; char *axis; struct narray iarray; int anum; if (getobj(obj, (a == AXIS_X) ? "axis_x" : "axis_y", fid, 0, NULL, &axis) < 0) { return -1; } if (axis == NULL) { return -1; } arrayinit(&iarray, sizeof(int)); if (getobjilist(axis, aobj, &iarray, FALSE, &spc)) { return -1; } anum = arraynum(&iarray); if (anum > 0 && spc == OBJ_LIST_SPECIFIED_BY_ID) { aid = arraylast_int(&iarray); if (aid > id) { aid--; } } else { aid = -1; } arraydel(&iarray); return aid; } static void AxisDel2(int id) { struct objlist *obj, *aobj; int i, aid1, aid2; char *axis2; N_VALUE *inst; obj = getobject("axisgrid"); if (obj) { for (i = chkobjlastinst(obj); i >= 0; i--) { inst = chkobjinst(obj, i); if (inst == NULL) { continue; } aid1 = get_axis_id(obj, inst, &aobj, AXIS_X); if (aid1 == id) { delobj(obj, i); continue; } aid1 = get_axis_id(obj, inst, &aobj, AXIS_Y); if (aid1 == id) { delobj(obj, i); } } } obj = getobject("file"); if (obj == NULL) { return; } for (i = 0; i <= chkobjlastinst(obj); i++) { aid1 = get_new_axis_id(obj, &aobj, i, id, AXIS_X); aid2 = get_new_axis_id(obj, &aobj, i, id, AXIS_Y); if ((aid1 >= 0) && (aid2 >= 0)) { if (aid1 == aid2) { aid2 = aid1 + 1; } axis2 = g_strdup_printf("%s:%d", chkobjectname(aobj), aid1); if (axis2) { putobj(obj, "axis_x", i, axis2); } axis2 = g_strdup_printf("%s:%d", chkobjectname(aobj), aid2); if (axis2) { putobj(obj, "axis_y", i, axis2); } } } } void AxisDel(int id) { struct objlist *obj; int i, lastinst, *id_array, n; char *group, *group2; char type; N_VALUE *inst, *inst2; char group3[20]; obj = chkobject("axis"); if (obj == NULL) return; inst = chkobjinst(obj, id); if (inst == NULL) return; _getobj(obj, "group", inst, &group); if (group == NULL || group[0] == 'a') { AxisDel2(id); delobj(obj, id); return; } lastinst = chkobjlastinst(obj); type = group[0]; strncpy(group3, group, sizeof(group3) - 1); group3[sizeof(group3) - 1] = '\0'; id_array = g_malloc(sizeof(*id_array) * (lastinst + 1)); if (id_array == NULL) return; n = 0; for (i = lastinst; i >= 0; i--) { inst2 = chkobjinst(obj, i); _getobj(obj, "group", inst2, &group2); if (group2 && group2[0] == type) { if (strcmp(group3 + 2, group2 + 2) == 0) { AxisDel2(i); id_array[n] = i; n++; } } } for (i = 0; i < n; i++) { delobj(obj, id_array[i]); } g_free(id_array); } static void axis_move_each_obj(char *axis_str, int i, struct objlist *obj, int id1, int id2) { struct objlist *aobj; int spc, aid; char *axis, *axis2; struct narray iarray; int anum, len; if (getobj(obj, axis_str, i, 0, NULL, &axis) < 0 || axis == NULL) return; arrayinit(&iarray, sizeof(int)); if (getobjilist(axis, &aobj, &iarray, FALSE, &spc)) return; anum = arraynum(&iarray); if (anum > 0 && spc == OBJ_LIST_SPECIFIED_BY_ID) { aid = arraylast_int(&iarray); if (aid == id1) { aid = id2; } else { if (aid > id1) aid--; if (aid >= id2) aid++; } len = strlen(chkobjectname(aobj)) + 10; axis2 = (char *) g_malloc(len); if (axis2) { snprintf(axis2, len, "%s:%d", chkobjectname(aobj), aid); putobj(obj, axis_str, i, axis2); } } arraydel(&iarray); } void AxisMove(int id1, int id2) { struct objlist *obj; int i; if ((obj = getobject("file")) == NULL) return; for (i = 0; i <= chkobjlastinst(obj); i++) { axis_move_each_obj("axis_x", i, obj, id1, id2); axis_move_each_obj("axis_y", i, obj, id1, id2); } } static void AxisNameToGroup(void) /* this function may exist for compatibility with older version. */ { int idx, idy, idu, idr; int findX, findY, findU, findR, graphtype; int id, id2, num; struct objlist *obj; char *name, *name2, *gp; struct narray group, iarray; int a, j, anum; char *argv[2]; int *data; N_VALUE *inst; if ((obj = (struct objlist *) chkobject("axis")) == NULL) return; num = chkobjlastinst(obj); arrayinit(&iarray, sizeof(int)); for (id = 0; id <= num; id++) { anum = arraynum(&iarray); data = arraydata(&iarray); for (j = 0; j < anum; j++) if (data[j] == id) break; inst = chkobjinst(obj, id); _getobj(obj, "name", inst, &name); _getobj(obj, "group", inst, &gp); if ((j == anum) && (gp[0] == 'a')) { findX = findY = findU = findR = FALSE; graphtype = -1; if (name != NULL) { if (strncmp(name, "sectionX", 8) == 0) { graphtype = 0; findX = TRUE; idx = id; } else if (strncmp(name, "sectionY", 8) == 0) { graphtype = 0; findY = TRUE; idy = id; } else if (strncmp(name, "sectionU", 8) == 0) { graphtype = 0; findU = TRUE; idu = id; } else if (strncmp(name, "sectionR", 8) == 0) { graphtype = 0; findR = TRUE; idr = id; } else if (strncmp(name, "frameX", 6) == 0) { graphtype = 1; findX = TRUE; idx = id; } else if (strncmp(name, "frameY", 6) == 0) { graphtype = 1; findY = TRUE; idy = id; } else if (strncmp(name, "frameU", 6) == 0) { graphtype = 1; findU = TRUE; idu = id; } else if (strncmp(name, "frameR", 6) == 0) { graphtype = 1; findR = TRUE; idr = id; } else if (strncmp(name, "crossX", 6) == 0) { graphtype = 2; findX = TRUE; idx = id; } else if (strncmp(name, "crossY", 6) == 0) { graphtype = 2; findY = TRUE; idy = id; } } for (id2 = id + 1; id2 <= num; id2++) { for (j = 0; j < anum; j++) if (data[j] == id2) break; inst = chkobjinst(obj, id2); _getobj(obj, "name", inst, &name2); _getobj(obj, "group", inst, &gp); if ((j == anum) && (gp[0] == 'a')) { if (graphtype == 0) { if (name2 != NULL) { if ((strncmp(name2, "sectionX", 8) == 0) && (strcmp(name + 8, name2 + 8) == 0)) { findX = TRUE; idx = id2; } else if ((strncmp(name2, "sectionY", 8) == 0) && (strcmp(name + 8, name2 + 8) == 0)) { findY = TRUE; idy = id2; } else if ((strncmp(name2, "sectionU", 8) == 0) && (strcmp(name + 8, name2 + 8) == 0)) { findU = TRUE; idu = id2; } else if ((strncmp(name2, "sectionR", 8) == 0) && (strcmp(name + 8, name2 + 8) == 0)) { findR = TRUE; idr = id2; } } } else if (graphtype == 1) { if (name2 != NULL) { if ((strncmp(name2, "frameX", 6) == 0) && (strcmp(name + 6, name2 + 6) == 0)) { findX = TRUE; idx = id2; } else if ((strncmp(name2, "frameY", 6) == 0) && (strcmp(name + 6, name2 + 6) == 0)) { findY = TRUE; idy = id2; } else if ((strncmp(name2, "frameU", 6) == 0) && (strcmp(name + 6, name2 + 6) == 0)) { findU = TRUE; idu = id2; } else if ((strncmp(name2, "frameR", 6) == 0) && (strcmp(name + 6, name2 + 6) == 0)) { findR = TRUE; idr = id2; } } } else if (graphtype == 2) { if (name2 != NULL) { if ((strncmp(name2, "crossX", 6) == 0) && (strcmp(name + 6, name2 + 6) == 0)) { findX = TRUE; idx = id2; } else if ((strncmp(name2, "crossY", 6) == 0) && (strcmp(name + 6, name2 + 6) == 0)) { findY = TRUE; idy = id2; } } } } } if ((graphtype == 0) && findX && findY && findU && findR) { arrayinit(&group, sizeof(int)); a = 2; arrayadd(&group, &a); arrayadd(&group, &idx); arrayadd(&group, &idy); arrayadd(&group, &idu); arrayadd(&group, &idr); argv[0] = (char *) &group; argv[1] = NULL; exeobj(obj, "grouping", id, 1, argv); arraydel(&group); arrayadd(&iarray, &idx); arrayadd(&iarray, &idy); arrayadd(&iarray, &idu); arrayadd(&iarray, &idr); } else if ((graphtype == 1) && findX && findY && findU && findR) { arrayinit(&group, sizeof(int)); a = 1; arrayadd(&group, &a); arrayadd(&group, &idx); arrayadd(&group, &idy); arrayadd(&group, &idu); arrayadd(&group, &idr); argv[0] = (char *) &group; argv[1] = NULL; exeobj(obj, "grouping", id, 1, argv); arraydel(&group); arrayadd(&iarray, &idx); arrayadd(&iarray, &idy); arrayadd(&iarray, &idu); arrayadd(&iarray, &idr); } else if ((graphtype == 2) && findX && findY) { arrayinit(&group, sizeof(int)); a = 3; arrayadd(&group, &a); arrayadd(&group, &idx); arrayadd(&group, &idy); argv[0] = (char *) &group; argv[1] = NULL; exeobj(obj, "grouping", id, 1, argv); arraydel(&group); arrayadd(&iarray, &idx); arrayadd(&iarray, &idy); } } } arraydel(&iarray); } void FitDel(struct objlist *obj, int id) { char *fit; struct objlist *fitobj; int fitid, idnum; struct narray iarray; if ((getobj(obj, "fit", id, 0, NULL, &fit) >= 0) && (fit != NULL)) { arrayinit(&iarray, sizeof(int)); if (getobjilist(fit, &fitobj, &iarray, FALSE, NULL) == 0) { idnum = arraynum(&iarray); if (idnum >= 1) { fitid = arraylast_int(&iarray); delobj(fitobj, fitid); } } arraydel(&iarray); } } void FitCopy(struct objlist *obj, int did, int sid) { char *fit; struct objlist *fitobj; int fitid; struct narray iarray; struct narray iarray2; int id2, idnum, idnum2; char *field[] = {"name", "equation", NULL}; int fitoid; N_VALUE *inst; if ((getobj(obj, "fit", sid, 0, NULL, &fit) >= 0) && (fit != NULL)) { arrayinit(&iarray, sizeof(int)); if (getobjilist(fit, &fitobj, &iarray, FALSE, NULL) == 0) { idnum = arraynum(&iarray); if (idnum >= 1) { fitid = arraylast_int(&iarray); if ((getobj(obj, "fit", did, 0, NULL, &fit) >= 0) && (fit != NULL)) { arrayinit(&iarray2, sizeof(int)); if (getobjilist(fit, &fitobj, &iarray2, FALSE, NULL) == 0) { idnum2 = arraynum(&iarray2); if (idnum2 >= 1) { id2 = arraylast_int(&iarray2); } else id2 = newobj(fitobj); } else id2 = newobj(fitobj); arraydel(&iarray2); } else id2 = newobj(fitobj); if (id2 >= 0) { copy_obj_field(fitobj, id2, fitid, field); inst = getobjinst(fitobj, id2); _getobj(fitobj, "oid", inst, &fitoid); if ((fit = mkobjlist(fitobj, NULL, fitoid, NULL, TRUE)) != NULL) { if (putobj(obj, "fit", did, fit) == -1) g_free(fit); } } } } arraydel(&iarray); } } void FitClear(void) { struct objlist *obj, *fitobj; int i, anum, id, hidden; char *fit; struct narray iarray; if (Menulock || Globallock) return; if ((obj = chkobject("file")) == NULL) return; if ((fitobj = chkobject("fit")) == NULL) return; for (i = 0; i <= chkobjlastinst(obj); i++) { getobj(obj, "fit", i, 0, NULL, &fit); if (fit == NULL) { continue; } arrayinit(&iarray, sizeof(int)); if (getobjilist(fit, &fitobj, &iarray, FALSE, NULL) == 0) { anum = arraynum(&iarray); if (anum >= 1) { id = arraylast_int(&iarray); getobj(obj, "hidden", i, 0, NULL, &hidden); if (! hidden) { putobj(fitobj, "equation", id, NULL); } } arraydel(&iarray); } } } void DeleteDrawable(void) { struct objlist *fileobj, *drawobj; int i; if ((fileobj = chkobject("file")) != NULL) { for (i = 0; i <= chkobjlastinst(fileobj); i++) FitDel(fileobj, i); } if ((drawobj = chkobject("draw")) != NULL) delchildobj(drawobj); } static void SaveParent(int hFile, struct objlist *parent, int storedata, int storemerge) { struct objlist *ocur; int i, j, instnum; char *s; N_VALUE *inst; char *fname, *fname2; ocur = chkobjroot(); while (ocur != NULL) { if (chkobjparent(ocur) == parent) { if ((instnum = chkobjlastinst(ocur)) != -1) { for (i = 0; i <= instnum; i++) { getobj(ocur, "save", i, 0, NULL, &s); nwrite(hFile, s, strlen(s)); nwrite(hFile, "\n", 1); if (storedata && (ocur == chkobject("file"))) { getobj(ocur, "file", i, 0, NULL, &fname); if (fname != NULL) { for (j = i - 1; j >= 0; j--) { getobj(ocur, "file", j, 0, NULL, &fname2); if ((fname2 != NULL) && (strcmp0(fname, fname2) == 0)) break; } inst = chkobjinst(ocur, i); if (j == -1) { while (_exeobj(ocur, "store_data", inst, 0, NULL) == 0) { _getobj(ocur, "store_data", inst, &s); nwrite(hFile, s, strlen(s)); nwrite(hFile, "\n", 1); } } else { while (_exeobj(ocur, "store_dummy", inst, 0, NULL) == 0) { _getobj(ocur, "store_dummy", inst, &s); nwrite(hFile, s, strlen(s)); nwrite(hFile, "\n", 1); } } } } if (storemerge && (ocur == chkobject("merge"))) { getobj(ocur, "file", i, 0, NULL, &fname); if (fname != NULL) { for (j = i - 1; j >= 0; j--) { getobj(ocur, "file", j, 0, NULL, &fname2); if ((fname2 != NULL) && (strcmp0(fname, fname2) == 0)) break; } inst = chkobjinst(ocur, i); if (j == -1) { while (_exeobj(ocur, "store_data", inst, 0, NULL) == 0) { _getobj(ocur, "store_data", inst, &s); nwrite(hFile, s, strlen(s)); nwrite(hFile, "\n", 1); } } else { while (_exeobj(ocur, "store_dummy", inst, 0, NULL) == 0) { _getobj(ocur, "store_dummy", inst, &s); nwrite(hFile, s, strlen(s)); nwrite(hFile, "\n", 1); } } } } } } SaveParent(hFile, ocur, storedata, storemerge); } ocur = ocur->next; } } int SaveDrawrable(char *name, int storedata, int storemerge) { int hFile; struct objlist *sysobj, *drawobj, *graobj; int id, len, error; char *arg[2]; struct narray sarray; N_VALUE *inst; char *ver, *sysname, *s, *opt, comment[COMMENT_BUF_SIZE]; error = FALSE; hFile = nopen(name, O_CREAT | O_TRUNC | O_RDWR, NFMODE_NORMAL_FILE); if (hFile < 0) { error = TRUE; } else { sysobj = chkobject("system"); inst = chkobjinst(sysobj, 0); _getobj(sysobj, "name", inst, &sysname); _getobj(sysobj, "version", inst, &ver); len = snprintf(comment, sizeof(comment), "#!ngraph\n#%%creator: %s \n#%%version: %s\n", sysname, ver); if (nwrite(hFile, comment, len) != len) error = TRUE; if ((drawobj = chkobject("draw")) != NULL) { SaveParent(hFile, drawobj, storedata, storemerge); if ((graobj = chkobject("gra")) != NULL) { id = ValidGRA(); if (id != -1) { arrayinit(&sarray, sizeof(char *)); opt = "device"; arrayadd(&sarray, &opt); arg[0] = (char *) &sarray; arg[1] = NULL; getobj(graobj, "save", id, 1, arg, &s); arraydel(&sarray); len = strlen(s); if (nwrite(hFile, s, len) != len) error = TRUE; } else { error = TRUE; } } } nclose(hFile); } if (error) ErrorMessage(); return error; } static int get_save_opt(int *sdata, int *smerge, int *path) { int ret, fnum, mnum, i; struct objlist *fobj, *mobj; *path = SAVE_PATH_UNCHANGE; *sdata = FALSE; *smerge = FALSE; fobj = chkobject("file"); mobj = chkobject("merge"); fnum = (fobj) ? chkobjlastinst(fobj) : -1; mnum = (mobj) ? chkobjlastinst(mobj) : -1; if (fnum < 0 && mnum < 0) return IDOK; SaveDialog(&DlgSave, sdata, smerge); ret = DialogExecute(TopLevel, &DlgSave); if (ret != IDOK) return IDCANCEL; *path = DlgSave.Path; for (i = 0; i <= fnum; i++) { putobj(fobj, "save_path", i, path); } for (i = 0; i <= mnum; i++) { putobj(mobj, "save_path", i, path); } return IDOK; } int GraphSave(int overwrite) { char mes[256]; int path; int sdata, smerge; int ret; char *ext; char *initfil; char *file, *prev_wd, *current_wd; if (NgraphApp.FileName != NULL) { initfil = NgraphApp.FileName; if ((ext = getextention(initfil)) != NULL) { if ((strcmp0(ext, "PRM") == 0) || (strcmp0(ext, "prm") == 0)) strcpy(ext, "ngp"); } } else { initfil = NULL; overwrite = FALSE; } prev_wd = current_wd = NULL; if ((initfil == NULL) || (! overwrite || (naccess(initfil, 04) == -1))) { prev_wd = ngetcwd(); ret = nGetSaveFileName(TopLevel, _("Save NGP file"), "ngp", &(Menulocal.graphloaddir), initfil, &file, overwrite, Menulocal.changedirectory); current_wd = ngetcwd(); if (prev_wd && current_wd && strcmp(prev_wd, current_wd) == 0) { g_free(prev_wd); g_free(current_wd); prev_wd = NULL; current_wd = NULL; } } else { file = g_strdup(initfil); if (file == NULL) return IDCANCEL; ret = IDOK; } if (ret == IDOK) { if (prev_wd && nchdir(prev_wd)) { ErrorMessage(); } ret = get_save_opt(&sdata, &smerge, &path); if (ret == IDOK) { snprintf(mes, sizeof(mes), _("Saving `%.128s'."), file); SetStatusBar(mes); if(SaveDrawrable(file, sdata, smerge)) { ret = IDCANCEL; } else { switch (path) { case SAVE_PATH_BASE: ToBasename(); break; case SAVE_PATH_RELATIVE: ToRalativePath(); break; case SAVE_PATH_FULL: ToFullPath(); break; } changefilename(file); AddNgpFileList(file); SetFileName(file); reset_graph_modified(); } ResetStatusBar(); } g_free(file); if (current_wd && nchdir(current_wd)) { ErrorMessage(); } } g_free(prev_wd); g_free(current_wd); return ret; } static void change_filename(char * (*func)(const char *)) { struct objlist *obj; int i; unsigned int j; char *file, *file2, *objname[] = {"file", "merge"}; for (j = 0; j < sizeof(objname) / sizeof(*objname); j++) { obj = chkobject(objname[j]); if (obj == NULL) continue; for (i = 0; i <= chkobjlastinst(obj); i++) { getobj(obj, "file", i, 0, NULL, &file); if (file == NULL) continue; file2 = func(file); if (file2 == NULL) return; if (strcmp(file, file2) == 0) { g_free(file2); continue; } set_graph_modified(); putobj(obj, "file", i, file2); } } } static void ToFullPath(void) { change_filename(getfullpath); } static void ToRalativePath(void) { change_filename(getrelativepath); } static char * get_basename(const char *file) { char *ptr; ptr = getbasename(file); if (ptr == NULL) return NULL; return ptr; } static void ToBasename(void) { change_filename(get_basename); } void LoadNgpFile(char *file, int loadpath, int expand, char *exdir, int console, char *option) { struct objlist *sys; char *expanddir; struct objlist *obj, *aobj; char *name; int i, r, newid, allocnow = FALSE, tmp; char *s; int len; char *argv[2]; struct narray sarray; char mes[256]; int sec; N_VALUE *inst; struct objlist *robj; int idn; changefilename(file); if (naccess(file, R_OK)) { ErrorMessage(); return; } sys = chkobject("system"); if (sys == NULL) return; expanddir = g_strdup(exdir); if (expanddir == NULL) return; putobj(sys, "expand_dir", 0, expanddir); putobj(sys, "expand_file", 0, &expand); tmp = FALSE; putobj(sys, "ignore_path", 0, &tmp); obj = chkobject("shell"); if (obj == NULL) return; newid = newobj(obj); if (newid < 0) return; inst = chkobjinst(obj, newid); arrayinit(&sarray, sizeof(char *)); while ((s = getitok2(&option, &len, " \t")) != NULL) { if (arrayadd(&sarray, &s) == NULL) { g_free(s); arraydel2(&sarray); return; } } name = g_strdup(file); if (name == NULL) { arraydel2(&sarray); return; } if (arrayadd(&sarray, &name) == NULL) { g_free(name); arraydel2(&sarray); return; } DeleteDrawable(); if (console) { allocnow = allocate_console(); } sec = TRUE; argv[0] = (char *) &sec; argv[1] = NULL; _exeobj(obj, "security", inst, 1, argv); argv[0] = (char *) &sarray; argv[1] = NULL; snprintf(mes, sizeof(mes), _("Loading `%.128s'."), name); SetStatusBar(mes); menu_lock(TRUE); idn = getobjtblpos(Menulocal.obj, "_evloop", &robj); registerevloop(chkobjectname(Menulocal.obj), "_evloop", robj, idn, Menulocal.inst, NULL); r = _exeobj(obj, "shell", inst, 1, argv); unregisterevloop(robj, idn, Menulocal.inst); menu_lock(FALSE); sec = FALSE; argv[0] = (char *) &sec; argv[1] = NULL; _exeobj(obj, "security", inst, 1, argv); if (r == 0) { if ((aobj = getobject("axis")) != NULL) { for (i = 0; i <= chkobjlastinst(aobj); i++) exeobj(aobj, "tight", i, 0, NULL); } if ((aobj = getobject("axisgrid")) != NULL) { for (i = 0; i <= chkobjlastinst(aobj); i++) exeobj(aobj, "tight", i, 0, NULL); } SetFileName(file); AddNgpFileList(name); reset_graph_modified(); switch (loadpath) { case LOAD_PATH_BASE: ToBasename(); break; case LOAD_PATH_FULL: ToFullPath(); break; } InfoWinClear(); } AxisNameToGroup(); ResetStatusBar(); arraydel2(&sarray); if (console) { free_console(allocnow); } set_axis_undo_button_sensitivity(FALSE); GetPageSettingsFromGRA(); UpdateAll(); delobj(obj, newid); } void LoadPrmFile(char *file) { struct objlist *obj; char *name; int id; char mes[256]; obj = chkobject("prm"); if (obj == NULL) return; id = newobj(obj); if (id < 0) return; name = g_strdup(file); if (name == NULL) { delobj(obj, id); return; } changefilename(name); putobj(obj, "file", id, name); PrmDialog(&DlgPrm, obj, id); if (DialogExecute(TopLevel, &DlgPrm) == IDOK) { snprintf(mes, sizeof(mes), _("Loading `%.128s'."), name); SetStatusBar(mes); DeleteDrawable(); exeobj(obj, "load", id, 0, NULL); GetPageSettingsFromGRA(); UpdateAll(); ResetStatusBar(); SetFileName(file); set_graph_modified(); InfoWinClear(); } delobj(obj, id); set_axis_undo_button_sensitivity(FALSE); } void FileAutoScale(void) { int anum; struct objlist *aobj, *aobj2; double min, max, inc; char *argv2[2]; char *buf; struct objlist *fobj; int lastinst; int i, j, a; char *ref; struct narray iarray; int anum2, aid2; N_VALUE *inst; char *group, *refgroup; int refother; GString *str; if ((fobj = chkobject("file")) == NULL) return; lastinst = chkobjlastinst(fobj); aobj = chkobject("axis"); anum = chkobjlastinst(aobj); if (lastinst < 0 || aobj == NULL || anum == 0) return; str = g_string_new("file:"); if (str == NULL) { error(NULL, ERRHEAP); return; } for (i = 0; i <= lastinst; i++) { getobj(fobj, "hidden", i, 0, NULL, &a); if (! a) { g_string_append_printf(str, "%d,", i); } } j = str->len; buf = g_string_free(str, FALSE); if (buf[j] == ',') { buf[j] = '\0'; } argv2[0] = (char *) buf; argv2[1] = NULL; for (i = 0; i <= anum; i++) { getobj(aobj, "min", i, 0, NULL, &min); getobj(aobj, "max", i, 0, NULL, &max); getobj(aobj, "inc", i, 0, NULL, &inc); getobj(aobj, "group", i, 0, NULL, &group); getobj(aobj, "reference", i, 0, NULL, &ref); refother = FALSE; if (ref) { refother = TRUE; arrayinit(&iarray, sizeof(int)); if (!getobjilist(ref, &aobj2, &iarray, FALSE, NULL)) { anum2 = arraynum(&iarray); if (anum2 > 0) { aid2 = arraylast_int(&iarray); arraydel(&iarray); inst = getobjinst(aobj2, aid2); if (inst) { _getobj(aobj2, "group", inst, &refgroup); if (refgroup && group && refgroup[0] == group[0] && strcmp(refgroup + 2, group + 2) == 0) refother = FALSE; } } } } if (! refother && (min == max || inc == 0)) { exeobj(aobj, "auto_scale", i, 1, argv2); } } g_free(buf); } void AdjustAxis(void) { struct objlist *aobj; int i, anum; if ((aobj = chkobject("axis")) == NULL) return; anum = chkobjlastinst(aobj); for (i = 0; i <= anum; i++) exeobj(aobj, "adjust", i, 0, NULL); } int CheckSave(void) { int ret; if (get_graph_modified()) { ret = message_box(TopLevel, _("This graph is modified.\nSave this graph?"), _("Confirm"), RESPONS_YESNOCANCEL); if (ret == IDYES) { if (GraphSave(TRUE) == IDCANCEL) return FALSE; } else if (ret != IDNO) return FALSE; } return TRUE; } static void add_hist(const char *file, char *mime) { char *full_name, *uri; GtkRecentData recent_data = { NULL, AppName, NULL, AppName, "ngraph %f", NULL, FALSE, }; if (! g_utf8_validate(file, -1, NULL)) { return; } full_name = getfullpath(file); if (full_name == NULL) { return; } recent_data.mime_type = mime; uri = g_filename_to_uri(full_name, NULL, NULL); g_free(full_name); gtk_recent_manager_add_full(Menulocal.ngpfilelist, uri, &recent_data); g_free(uri); } static void AddNgpFileList(const char *file) { add_hist(file, NGRAPH_GRAPH_MIME); } void AddDataFileList(const char *file) { add_hist(file, NGRAPH_DATA_MIME); } void SetFileName(char *str) { char *ngp, *name; name = g_strdup(str); g_free(NgraphApp.FileName); if (name == NULL) { NgraphApp.FileName = NULL; ngp = NULL; } else { NgraphApp.FileName = getfullpath(name); ngp = getfullpath(name); g_free(name); } putobj(Menulocal.obj, "fullpath_ngp", 0, ngp); } int allocate_console(void) { int allocnow; loadstdio(&GtkIOSave); allocnow = nallocconsole(); nforegroundconsole(); return allocnow; } void free_console(int allocnow) { if (allocnow) nfreeconsole(); putstderr = mgtkputstderr; printfstderr = mgtkprintfstderr; putstdout = mgtkputstdout; printfstdout = mgtkprintfstdout; inputyn = mgtkinputyn; ndisplaydialog = mgtkdisplaydialog; ndisplaystatus = mgtkdisplaystatus; ninterrupt = mgtkinterrupt; } char * FileCB(struct objlist *obj, int id) { char *valstr, *file, *s; getobj(obj, "file", id, 0, NULL, &file); valstr = getbasename(file); s = g_strdup_printf("%s", (valstr) ? valstr : "...................."); if (valstr != NULL) { g_free(valstr); } return s; } int SetFileHidden(void) { struct objlist *fobj; int lastinst; struct narray farray, ifarray; int i, a, r, num, inum, *array; fobj = chkobject("file"); if (fobj == NULL) { return 1; } lastinst = chkobjlastinst(fobj); if (lastinst < 0) { return 1; } arrayinit(&ifarray, sizeof(int)); for (i = 0; i <= lastinst; i++) { getobj(fobj, "hidden", i, 0, NULL, &a); if (!a) { arrayadd(&ifarray, &i); } } r = 0; SelectDialog(&DlgSelect, fobj, FileCB, &farray, &ifarray); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { a = TRUE; for (i = 0; i <= lastinst; i++) { putobj(fobj, "hidden", i, &a); } num = arraynum(&farray); array = arraydata(&farray); a = FALSE; for (i = 0; i < num; i++) { putobj(fobj, "hidden", array[i], &a); } inum = arraynum(&ifarray); if (inum != num) { set_graph_modified(); } else { for (i = 0; i < num; i++) { if (arraynget_int(&ifarray, i) != array[i]) { set_graph_modified(); break; } } } r = 1; } arraydel(&ifarray); arraydel(&farray); return r; } int CheckIniFile(void) { int ret; ret = writecheckconfig(); if (ret == 0) { message_box(TopLevel, _("Ngraph.ini is not found."), "Ngraph.ini", RESPONS_ERROR); return FALSE; } else if ((ret == -1) || (ret == -3)) { message_box(TopLevel, _("Ngraph.ini is write protected."), "Ngraph.ini", RESPONS_ERROR); return FALSE; } else if ((ret == -2) || (ret == 2)) { struct objlist *sys; char *homedir, *buf; sys = getobject("system"); if (sys == NULL) { return FALSE; } if (getobj(sys, "home_dir", 0, 0, NULL, &homedir) == -1) { return FALSE; } buf = g_strdup_printf(_("Install `Ngraph.ini' to %s ?"), homedir); if (message_box(TopLevel, buf, "Ngraph.ini", RESPONS_YESNO) == IDYES) { g_free(buf); if (!copyconfig()) { message_box(TopLevel, _("Ngraph.ini could not be copied."), "Ngraph.ini", RESPONS_ERROR); return FALSE; } } else { g_free(buf); return FALSE; } } return TRUE; } void ProgressDialogSetTitle(char *title) { if (ProgressDialog) gtk_window_set_title(GTK_WINDOW(ProgressDialog), title); } static void show_progress(int pos, char *msg, double fraction) { GtkProgressBar *bar; if (! ProgressDialog) return; if (pos) { bar = ProgressBar2; } else { bar = ProgressBar; } if (fraction < 0) { gtk_progress_bar_pulse(bar); } else { gtk_progress_bar_set_fraction(bar, fraction); } gtk_progress_bar_set_text(bar, msg); } static gboolean cb_del(GtkWidget *w, GdkEvent *event, gpointer user_data) { return TRUE; } static void stop_btn_clicked(GtkButton *button, gpointer user_data) { NgraphApp.Interrupt = TRUE; } void ProgressDialogCreate(char *title) { GtkWidget *btn, *vbox, *hbox; if (TopLevel == NULL) return; if (ProgressDialog) gtk_widget_destroy(ProgressDialog); SaveCursor = NGetCursor(); NSetCursor(GDK_WATCH); set_draw_lock(DrawLockDraw); ProgressDialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(ProgressDialog, "delete-event", G_CALLBACK(cb_del), NULL); gtk_window_set_title(GTK_WINDOW(ProgressDialog), title); gtk_window_set_transient_for(GTK_WINDOW(ProgressDialog), GTK_WINDOW(TopLevel)); gtk_window_set_modal(GTK_WINDOW(ProgressDialog), TRUE); gtk_window_set_position(GTK_WINDOW(ProgressDialog), GTK_WIN_POS_CENTER); gtk_window_set_type_hint(GTK_WINDOW(ProgressDialog), GDK_WINDOW_TYPE_HINT_DIALOG); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif ProgressBar = GTK_PROGRESS_BAR(gtk_progress_bar_new()); gtk_progress_bar_set_ellipsize(ProgressBar, PANGO_ELLIPSIZE_MIDDLE); #if GTK_CHECK_VERSION(3, 0, 0) gtk_progress_bar_set_show_text(ProgressBar, TRUE); #endif gtk_box_pack_start(GTK_BOX(vbox), GTK_WIDGET(ProgressBar), FALSE, FALSE, 4); ProgressBar2 = GTK_PROGRESS_BAR(gtk_progress_bar_new()); gtk_progress_bar_set_ellipsize(ProgressBar2, PANGO_ELLIPSIZE_MIDDLE); #if GTK_CHECK_VERSION(3, 0, 0) gtk_progress_bar_set_show_text(ProgressBar2, TRUE); #endif gtk_box_pack_start(GTK_BOX(vbox), GTK_WIDGET(ProgressBar2), FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif btn = gtk_button_new_from_stock(GTK_STOCK_STOP); g_signal_connect(btn, "clicked", G_CALLBACK(stop_btn_clicked), NULL); gtk_box_pack_end(GTK_BOX(hbox), btn, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 4); gtk_container_add(GTK_CONTAINER(ProgressDialog), vbox); gtk_window_set_default_size(GTK_WINDOW(ProgressDialog), 400, -1); gtk_widget_show_all(ProgressDialog); set_progress_func(show_progress); } void ProgressDialogFinalize(void) { if (TopLevel == NULL) return; NSetCursor(SaveCursor); set_progress_func(NULL); gtk_widget_destroy(ProgressDialog); ProgressDialog = NULL; ProgressBar = NULL; ProgressBar2 = NULL; set_draw_lock(DrawLockNone); } void ErrorMessage(void) { const char *s; char *ptr; s = g_strerror(errno); ptr = g_strdup(s); message_box(NULL, CHK_STR(ptr), _("error"), RESPONS_ERROR); g_free(ptr); } ngraph-gtk-6.06.13/src/gtk/gtk_ruler.c0000644000175000017500000004133712241111703014370 00000000000000/* GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #include "gtk_common.h" #include "gtk_ruler.h" #include "mathfn.h" #include "x11menu.h" #include #include #define RULER_FONT_SIZE 7000 #define RULER_WIDTH 14 #define MINIMUM_INCR 5 #define MAXIMUM_SUBDIVIDE 5 #define MAXIMUM_SCALES 10 typedef struct _Nruler { int orientation, ofst, length, size; #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_t *backing_store; #else /* GTK_CHECK_VERSION(3, 0, 0) */ GdkPixmap *backing_store; #endif /* GTK_CHECK_VERSION(3, 0, 0) */ double lower, upper, position; double save_l, save_u; GtkWidget *widget, *parent; } Nruler; struct _NrulerMetric { gchar *metric_name; gchar *abbrev; /* This should be points_per_unit. This is the size of the unit * in 1/72nd's of an inch and has nothing to do with screen pixels */ gdouble pixels_per_unit; gdouble ruler_scale[MAXIMUM_SCALES]; gint subdivide[MAXIMUM_SUBDIVIDE]; /* five possible modes of subdivision */ }; static const struct _NrulerMetric Metric = { "Centimeters", "Cn", 28.35, { 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000 }, { 1, 5, 10, 50, 100 } }; #define RULER_DATA_KEY "nruler" static void nruler_make_pixmap(Nruler *ruler, GtkWidget *widget, GtkWidget *parent); static void nruler_draw_ticks(Nruler *ruler, GtkWidget *widget); static void nruler_realize(GtkWidget *widget, gpointer user_data); static void nruler_size_allocate(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data); static gboolean nruler_destroy(GtkWidget *widget, gpointer user_data); #if GTK_CHECK_VERSION(3, 0, 0) static void nruler_draw_pos(Nruler *ruler, GtkWidget *widget, cairo_t *cr); static gboolean nruler_expose(GtkWidget *widget, cairo_t *cr, gpointer user_data); static void nruler_get_color(Nruler *ruler, GdkRGBA *fg, GdkRGBA *bg); #else /* GTK_CHECK_VERSION(3, 0, 0) */ static void nruler_draw_pos(Nruler *ruler, GtkWidget *widget); static gboolean nruler_expose(GtkWidget *widget, GdkEventExpose *event, gpointer user_data); static void nruler_get_color(Nruler *ruler, GdkColor *fg, GdkColor *bg); #endif /* GTK_CHECK_VERSION(3, 0, 0) */ GtkWidget * nruler_new(GtkOrientation orientation) { Nruler *ruler; GtkWidget *w, *frame; ruler = g_malloc0(sizeof(*ruler)); if (ruler == NULL) { return NULL; } w = gtk_drawing_area_new(); if (orientation == GTK_ORIENTATION_VERTICAL) { gtk_widget_set_size_request(w, RULER_WIDTH, -1); } else { gtk_widget_set_size_request(w, -1, RULER_WIDTH); } frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_OUT); gtk_container_add(GTK_CONTAINER(frame), w); ruler->orientation = orientation; ruler->widget = w; ruler->parent = frame; g_object_set_data(G_OBJECT(frame), RULER_DATA_KEY, ruler); #if GTK_CHECK_VERSION(3, 0, 0) g_signal_connect(w, "draw", G_CALLBACK(nruler_expose), ruler); #else /* GTK_CHECK_VERSION(3, 0, 0) */ g_signal_connect(w, "expose-event", G_CALLBACK(nruler_expose), ruler); #endif /* GTK_CHECK_VERSION(3, 0, 0) */ g_signal_connect(w, "realize", G_CALLBACK(nruler_realize), ruler); g_signal_connect(w, "size-allocate", G_CALLBACK(nruler_size_allocate), ruler); g_signal_connect(frame, "unrealize", G_CALLBACK(nruler_destroy), ruler); return frame; } void nruler_set_range(GtkWidget *frame, double lower, double upper) { Nruler *ruler; if (frame == NULL) { return; } ruler = g_object_get_data(G_OBJECT(frame), RULER_DATA_KEY); if (ruler == NULL) { return; } ruler->lower = lower; ruler->upper = upper; if (gtk_widget_is_drawable(ruler->widget)) { gtk_widget_queue_draw(ruler->widget); } } void nruler_set_position(GtkWidget *frame, double position) { Nruler *ruler; if (frame == NULL) { return; } ruler = g_object_get_data(G_OBJECT(frame), RULER_DATA_KEY); if (ruler == NULL) { return; } ruler->position = position; if (gtk_widget_is_drawable(ruler->widget)) { gtk_widget_queue_draw(ruler->widget); } } static gboolean nruler_destroy(GtkWidget *widget, gpointer user_data) { Nruler *ruler; g_object_set_data(G_OBJECT(widget), RULER_DATA_KEY, NULL); ruler = (Nruler *) user_data; if (ruler) { if (ruler->backing_store) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_destroy(ruler->backing_store); #else g_object_unref(ruler->backing_store); #endif } g_free(ruler); } return FALSE; } static void nruler_size_allocate(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data) { Nruler *ruler; ruler = (Nruler *) user_data; nruler_make_pixmap(ruler, widget, ruler->parent); } static void nruler_realize(GtkWidget *widget, gpointer user_data) { Nruler *ruler; ruler = (Nruler *) user_data; nruler_make_pixmap(ruler, widget, ruler->parent); } #if GTK_CHECK_VERSION(3, 0, 0) static gboolean nruler_expose(GtkWidget *widget, cairo_t *cr, gpointer user_data) { if (gtk_widget_is_drawable(widget)) { Nruler *ruler = (Nruler *) user_data; nruler_draw_ticks(ruler, widget); nruler_draw_pos(ruler, widget, cr); } return FALSE; } #else /* GTK_CHECK_VERSION(3, 0, 0) */ static gboolean nruler_expose(GtkWidget *widget, GdkEventExpose *event, gpointer user_data) { if (gtk_widget_is_drawable(widget)) { Nruler *ruler = (Nruler *) user_data; nruler_draw_ticks(ruler, widget); nruler_draw_pos(ruler, widget); } return FALSE; } #endif /* GTK_CHECK_VERSION(3, 0, 0) */ static void nruler_make_pixmap(Nruler *ruler, GtkWidget *widget, GtkWidget *parent) { gint width; gint height; GtkAllocation allocation, parent_allocation; if (! gtk_widget_is_drawable(widget)) { return; } gtk_widget_get_allocation(widget, &allocation); gtk_widget_get_allocation(parent, &parent_allocation); if (ruler->orientation == GTK_ORIENTATION_HORIZONTAL) { ruler->length = parent_allocation.width; ruler->size = allocation.height; ruler->ofst = (parent_allocation.width - allocation.width) / 2; } else { ruler->length = parent_allocation.height; ruler->size = allocation.width; ruler->ofst = (parent_allocation.height - allocation.height) / 2; } if (ruler->backing_store) { #if GTK_CHECK_VERSION(3, 0, 0) width = cairo_image_surface_get_width(ruler->backing_store); height = cairo_image_surface_get_height(ruler->backing_store); #elif GTK_CHECK_VERSION(2, 24, 0) gdk_pixmap_get_size(ruler->backing_store, &width, &height); #else gdk_drawable_get_size(ruler->backing_store, &width, &height); #endif if ((width == allocation.width) && (height == allocation.height)) { return; } #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_destroy(ruler->backing_store); #else g_object_unref(ruler->backing_store); #endif } #if GTK_CHECK_VERSION(3, 0, 0) ruler->backing_store = cairo_image_surface_create(CAIRO_FORMAT_RGB24, allocation.width, allocation.height); #else ruler->backing_store = gdk_pixmap_new(gtk_widget_get_window(widget), allocation.width, allocation.height, -1); #endif ruler->save_l = 0; ruler->save_u = 0; } static void nruler_draw_ticks(Nruler *ruler, GtkWidget *widget) { cairo_t *cr; gint i, j, len; gint length, ideal_length; gdouble lower, upper; /* Upper and lower limits, in ruler units */ gdouble increment; /* Number of pixels per unit */ gint scale; /* Number of units per major unit */ gdouble subd_incr; gdouble start, end, cur; gchar unit_str[32]; gint digit_height; gint text_width; gint text_height; gint pos; PangoLayout *layout; PangoRectangle logical_rect, ink_rect; PangoFontDescription *fs; GtkAllocation allocation; #if GTK_CHECK_VERSION(3, 0, 0) GdkRGBA bg, fg; #else GdkColor bg, fg; #endif if (! gtk_widget_is_drawable(widget)) { return; } if (ruler->save_l == ruler->lower && ruler->save_u == ruler->upper) { return; } gtk_widget_get_allocation(widget, &allocation); layout = gtk_widget_create_pango_layout(widget, "012456789"); fs = pango_font_description_new(); pango_font_description_set_size(fs, RULER_FONT_SIZE); pango_layout_set_font_description(layout, fs); pango_font_description_free(fs); pango_layout_get_extents(layout, &ink_rect, &logical_rect); digit_height = PANGO_PIXELS(ink_rect.height) + 2; nruler_get_color(ruler, &fg, &bg); #if GTK_CHECK_VERSION(3, 0, 0) cr = cairo_create(ruler->backing_store); gdk_cairo_set_source_rgba(cr, &bg); #else /* GTK_CHECK_VERSION(3, 0, 0) */ cr = gdk_cairo_create(ruler->backing_store); gdk_cairo_set_source_color(cr, &bg); #endif /* GTK_CHECK_VERSION(3, 0, 0) */ cairo_rectangle(cr, 0, 0, allocation.width, allocation.height); cairo_fill(cr); #if GTK_CHECK_VERSION(3, 0, 0) gdk_cairo_set_source_rgba(cr, &fg); #else gdk_cairo_set_source_color(cr, &fg); #endif if (ruler->orientation == GTK_ORIENTATION_HORIZONTAL) { cairo_rectangle(cr, 0, allocation.height - 1, allocation.width, 1); } else { cairo_rectangle(cr, allocation.width - 1, 0, 1, allocation.height); } upper = ruler->upper / Metric.pixels_per_unit; lower = ruler->lower / Metric.pixels_per_unit; if (upper - lower == 0) { goto out; } increment = (gdouble) ruler->length / (upper - lower); /* determine the scale H * We calculate the text size as for the vruler instead of using * text_width = gdk_string_width(font, unit_str), so that the result * for the scale looks consistent with an accompanying vruler */ /* determine the scale V * use the maximum extents of the ruler to determine the largest * possible number to be displayed. Calculate the height in pixels * of this displayed text. Use this height to find a scale which * leaves sufficient room for drawing the ruler. */ scale = ceil(ruler->upper / Metric.pixels_per_unit); len = g_snprintf(unit_str, sizeof(unit_str), "%d", scale); if (ruler->orientation == GTK_ORIENTATION_HORIZONTAL) { text_width = len * digit_height + 1; for (scale = 0; scale < MAXIMUM_SCALES; scale++) { if (Metric.ruler_scale[scale] * fabs(increment) > 2 * text_width) { break; } } } else { text_height = len * digit_height + 1; for (scale = 0; scale < MAXIMUM_SCALES; scale++) { if (Metric.ruler_scale[scale] * fabs(increment) > 2 * text_height){ break; } } } if (scale == MAXIMUM_SCALES) { scale = MAXIMUM_SCALES - 1; } /* drawing starts here */ length = 0; for (i = MAXIMUM_SUBDIVIDE - 1; i >= 0; i--) { subd_incr = Metric.ruler_scale[scale] / Metric.subdivide[i]; if (subd_incr * fabs(increment) <= MINIMUM_INCR) { continue; } /* Calculate the length of the tickmarks. Make sure that * this length increases for each set of ticks */ ideal_length = ruler->size / (i + 1) - 1; if (ideal_length > ++length) { length = ideal_length; } if (lower < upper) { start = floor(lower / subd_incr) * subd_incr; end = ceil(upper / subd_incr) * subd_incr; } else { start = floor(upper / subd_incr) * subd_incr; end = ceil(lower / subd_incr) * subd_incr; } for (cur = start; cur <= end; cur += subd_incr) { pos = nround((cur - lower) * increment) - ruler->ofst; if (ruler->orientation == GTK_ORIENTATION_HORIZONTAL) { cairo_rectangle(cr, pos, ruler->size - length, 1, length); } else { cairo_rectangle(cr, ruler->size - length, pos, length, 1); } /* draw label */ if (i == 0) { int ofst; len = g_snprintf(unit_str, sizeof(unit_str), "%d", (int) cur); ofst = PANGO_PIXELS(logical_rect.y - ink_rect.y); if (ruler->orientation == GTK_ORIENTATION_HORIZONTAL) { pango_layout_set_text(layout, unit_str, -1); cairo_move_to(cr, pos + 2, ofst + 1); pango_cairo_show_layout(cr, layout); } else { for (j = 0; j < len; j++) { pango_layout_set_text(layout, unit_str + j, 1); cairo_move_to(cr, 1, pos + digit_height * j + 2 + ofst); pango_cairo_show_layout(cr, layout); } } } } } cairo_fill(cr); ruler->save_l = ruler->lower; ruler->save_u = ruler->upper; out: cairo_destroy(cr); g_object_unref(layout); } #if GTK_CHECK_VERSION(3, 0, 0) static void nruler_get_color(Nruler *ruler, GdkRGBA *fg, GdkRGBA *bg) { GdkRGBA color; GtkStyleContext *style; style = gtk_widget_get_style_context(TopLevel); gtk_style_context_get_background_color(style, GTK_STATE_FLAG_NORMAL, &color); color.alpha = 1.0; if (bg) { *bg = color; } if (fg) { #if 0 if (color.red + color.green + color.blue > 1.5) { fg->red = 0.0; fg->green = 0.0; fg->blue = 0.0; } else { fg->red = 1.0; fg->green = 1.0; fg->blue = 1.0; } fg->alpha = 1.0; #else gtk_style_context_get_color(style, GTK_STATE_FLAG_NORMAL, fg); #endif } } #else static void nruler_get_color(Nruler *ruler, GdkColor *fg, GdkColor *bg) { GtkStateType state; GtkStyle *style; state = gtk_widget_get_state(ruler->parent); style = gtk_widget_get_style(ruler->parent); if (fg) { *fg = style->fg[state]; } if (bg) { *bg = style->bg[state]; } } #endif /* GTK_CHECK_VERSION(3, 0, 0) */ static void #if GTK_CHECK_VERSION(3, 0, 0) nruler_draw_pos(Nruler *ruler, GtkWidget *widget, cairo_t *cr) #else /* GTK_CHECK_VERSION(3, 0, 0) */ nruler_draw_pos(Nruler *ruler, GtkWidget *widget) #endif /* GTK_CHECK_VERSION(3, 0, 0) */ { gint x, y; gint width, height; gint bs_width, bs_height; gdouble increment; GtkAllocation allocation; #if GTK_CHECK_VERSION(3, 0, 0) GdkRGBA fg; #else /* GTK_CHECK_VERSION(3, 0, 0) */ GdkColor fg; cairo_t *cr; #endif /* GTK_CHECK_VERSION(3, 0, 0) */ gtk_widget_get_allocation(widget, &allocation); if (! gtk_widget_is_drawable(widget)) { return; } if (ruler->orientation == GTK_ORIENTATION_HORIZONTAL) { width = ruler->length; height = ruler->size; bs_width = height / 2 + 2; bs_width |= 1; /* make sure it's odd */ bs_height = bs_width / 2 + 1; } else { width = ruler->size; height = ruler->length; bs_height = width / 2 + 2; bs_height |= 1; /* make sure it's odd */ bs_width = bs_height / 2 + 1; } if (bs_width <= 0 || bs_height <= 0) { return; } #if ! GTK_CHECK_VERSION(3, 0, 0) cr = gdk_cairo_create(gtk_widget_get_window(widget)); #endif /* ! GTK_CHECK_VERSION(3, 0, 0) */ /* If a backing store exists, restore the ruler */ if (ruler->backing_store) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_set_source_surface(cr, ruler->backing_store, 0, 0); #else /* GTK_CHECK_VERSION(3, 0, 0) */ gdk_cairo_set_source_pixmap(cr, ruler->backing_store, 0, 0); #endif /* GTK_CHECK_VERSION(3, 0, 0) */ cairo_rectangle(cr, 0, 0, allocation.width, allocation.height); cairo_fill(cr); } if (ruler->orientation == GTK_ORIENTATION_HORIZONTAL) { increment = (gdouble) width / (ruler->upper - ruler->lower); x = nround((ruler->position - ruler->lower) * increment) - bs_width / 2 - ruler->ofst; y = (height + bs_height) / 2 - 1; } else { increment = (gdouble) height / (ruler->upper - ruler->lower); x = (width + bs_width) / 2 - 1; y = nround((ruler->position - ruler->lower) * increment) - bs_height / 2 - ruler->ofst; } nruler_get_color(ruler, &fg, NULL); #if GTK_CHECK_VERSION(3, 0, 0) gdk_cairo_set_source_rgba(cr, &fg); #else /* GTK_CHECK_VERSION(3, 0, 0) */ gdk_cairo_set_source_color(cr, &fg); #endif /* GTK_CHECK_VERSION(3, 0, 0) */ cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); cairo_move_to(cr, x, y); if (ruler->orientation == GTK_ORIENTATION_HORIZONTAL) { cairo_line_to(cr, x + bs_width / 2.0, y + bs_height); cairo_line_to(cr, x + bs_width, y); } else { cairo_line_to(cr, x + bs_width, y + bs_height / 2.0); cairo_line_to(cr, x, y + bs_height); } cairo_fill(cr); #if ! GTK_CHECK_VERSION(3, 0, 0) cairo_destroy(cr); #endif /* ! GTK_CHECK_VERSION(3, 0, 0) */ } ngraph-gtk-6.06.13/src/gtk/x11lgndx.c0000644000175000017500000004377612241111703014051 00000000000000/* * $Id: x11lgndx.c,v 1.20 2009-12-17 10:55:44 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include "object.h" #include "gra.h" #include "mathfn.h" #include "spline.h" #include "gtk_combo.h" #include "gtk_widget.h" #include "x11gui.h" #include "x11dialg.h" #include "x11menu.h" #include "ogra2cairo.h" #include "ogra2gdk.h" #include "ox11menu.h" #include "x11commn.h" #define VIEW_SIZE 128 enum LEGEND_DIRECTION { LEGEND_DIRECTION_RIGHT, LEGEND_DIRECTION_LEFT, LEGEND_DIRECTION_BOTTOM, LEGEND_DIRECTION_TOP, }; #define LEGEND_DIRECTION_NUM (LEGEND_DIRECTION_TOP + 1) static double *spx, *spy, *spz; static double *spc[6]; static void LegendGaussDialogScaleH(GtkWidget *w, gpointer client_data); static void LegendGaussDialogDiv(GtkWidget *w, gpointer client_data); #define DIV_MAX 200 #define SCALE_V_MAX 1000.0 #define SCALE_H_MAX 100.0 static void clear_view(struct LegendGaussDialog *d) { GdkWindow *win; win = gtk_widget_get_window(d->view); if (win) { gdk_window_invalidate_rect(win, NULL, TRUE); } } static void LegendGaussDialogSetupItem(GtkWidget *w, struct LegendGaussDialog *d, int id) { int n; SetStyleFromObjField(d->style, d->Obj, id, "style"); SetWidgetFromObjField(d->width, d->Obj, id, "width"); SetWidgetFromObjField(d->join, d->Obj, id, "join"); SetWidgetFromObjField(d->miter, d->Obj, id, "miter_limit"); set_stroke_color(d->color, d->Obj, id); n = d->Dir; if (n >= 0 && n < LEGEND_DIRECTION_NUM) { GtkToggleButton *btn; btn = GTK_TOGGLE_BUTTON(g_slist_nth_data(d->dir_list, n)); gtk_toggle_button_set_active(btn, TRUE); } n = d->Mode; if (n >=0 && n < 4) { GtkToggleButton *btn; btn = GTK_TOGGLE_BUTTON(g_slist_nth_data(d->func_list, n)); gtk_toggle_button_set_active(btn, TRUE); } gtk_range_set_value(GTK_RANGE(d->div), d->Div); gtk_range_set_value(GTK_RANGE(d->sch), d->Position * SCALE_H_MAX); gtk_range_set_value(GTK_RANGE(d->scv), d->Param * SCALE_V_MAX); } static gboolean #if GTK_CHECK_VERSION(3, 0, 0) LegendGaussDialogPaint(GtkWidget *w, cairo_t *cr, gpointer client_data) #else LegendGaussDialogPaint(GtkWidget *w, GdkEventExpose *event, gpointer client_data) #endif { struct LegendGaussDialog *d; int i, j, k, pw, dw, minx, miny, maxx, maxy, amp, wd, GC, spnum, output, found; double ppd, x, y = 0, tmp, spc2[6], dashes[] = {4.0}; GdkWindow *win; struct objlist *gobj, *robj; N_VALUE *inst; struct gra2cairo_local *local; #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_t *pix; #else GdkPixmap *pix; cairo_t *cr; #endif d = (struct LegendGaussDialog *) client_data; win = gtk_widget_get_window(w); if (win == NULL) { return FALSE; } found = find_gra2gdk_inst(&gobj, &inst, &robj, &output, &local); if (! found) { return FALSE; } #if GTK_CHECK_VERSION(3, 0, 0) pix = gra2gdk_create_pixmap(local, VIEW_SIZE, VIEW_SIZE, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); if (pix == NULL) { return FALSE; } #else pix = gra2gdk_create_pixmap(local, win, VIEW_SIZE, VIEW_SIZE, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); if (pix == NULL) { return FALSE; } cr = gdk_cairo_create(win); #endif pw = VIEW_SIZE - 1; dw = (d->Wdx < d->Wdy) ? d->Wdy : d->Wdx; ppd = pw / ((double) dw); minx = VIEW_SIZE / 2 - d->Wdx * ppd / 2; miny = VIEW_SIZE / 2 - d->Wdy * ppd / 2; maxx = VIEW_SIZE / 2 + d->Wdx * ppd / 2; maxy = VIEW_SIZE / 2 + d->Wdy * ppd / 2; switch (d->Dir) { case LEGEND_DIRECTION_TOP: case LEGEND_DIRECTION_BOTTOM: amp = d->Wdy; wd = d->Wdx; break; default: amp = d->Wdx; wd = d->Wdy; } if (d->alloc) { GC = _GRAopen("gra2gdk", "_output", robj, inst, output, -1, -1, -1, NULL, local); GRAlinestyle(GC, 0, NULL, 1, GRA_LINE_CAP_BUTT, GRA_LINE_JOIN_MITER, 1000); if (GC >= 0) { GRAview(GC, minx, miny, maxx, maxy, 1); if (d->Div > DIV_MAX) { d->Div = DIV_MAX; } for (i = 0; i <= (d->Div); i++) { x = wd / ((double) (d->Div)) * i; if (d->Mode == 0) { tmp = (x - wd * 0.5 - wd * d->Position * 0.5) / (wd / (1 + 10 * d->Param) / 2); y = amp * exp(-tmp * tmp); } else if (d->Mode == 1) { tmp = (x - wd * 0.5 - wd * d->Position * 0.5) / (wd / (1 + 10 * d->Param) / 2); y = amp / (tmp * tmp + 1); } else if (d->Mode == 2) { if (d->Position >= 0) { tmp = (x - wd * 0.5 - wd * d->Position * 0.5) / (-wd * 0.5 - wd * d->Position * 0.5); } else { tmp = (x - wd * 0.5 - wd * d->Position * 0.5) / (wd * 0.5 - wd * d->Position * 0.5); } y = amp * tmp * tmp; } else if (d->Mode == 3) { tmp = x / (wd / (0.25 + 10 * d->Param)); y = amp * 0.5 * (sin(2.0 * MPI * (tmp - d->Position * 0.5)) + 1); } switch (d->Dir) { case LEGEND_DIRECTION_TOP: spx[i] = nround(x); spy[i] = d->Wdy - nround(y); break; case LEGEND_DIRECTION_BOTTOM: spx[i] = nround(x); spy[i] = nround(y); break; case LEGEND_DIRECTION_LEFT: spx[i] = d->Wdx - nround(y); spy[i] = d->Wdy - nround(x); break; case LEGEND_DIRECTION_RIGHT: spx[i] = nround(y); spy[i] = d->Wdy - nround(x); break; default: /* never reached*/ spx[i] = 0; spy[i] = 0; } spz[i] = i; spx[i] *= ppd; spy[i] *= ppd; } spnum = d->Div + 1; spline(spz, spx, spc[0], spc[1], spc[2], spnum, SPLCND2NDDIF, SPLCND2NDDIF, 0, 0); spline(spz, spy, spc[3], spc[4], spc[5], spnum, SPLCND2NDDIF, SPLCND2NDDIF, 0, 0); GRAcolor(GC, 0, 0, 0, 255); GRAcurvefirst(GC, 0, NULL, NULL, NULL, splinedif, splineint, NULL, spx[0], spy[0]); for (j = 0; j < spnum - 1; j++) { for (k = 0; k < 6; k++) { spc2[k] = spc[k][j]; } if (! GRAcurve(GC, spc2, spx[j], spy[j])) { break; } } } _GRAclose(GC); gra2cairo_draw_path(local); } #if GTK_CHECK_VERSION(3, 0, 0) cairo_set_source_surface(cr, pix, 0, 0); #else gdk_cairo_set_source_pixmap(cr, pix, 0, 0); #endif cairo_paint(cr); cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); cairo_set_line_width(cr, 1); cairo_set_dash(cr, dashes, sizeof(dashes) / sizeof(*dashes), 0); cairo_rectangle(cr, minx + CAIRO_COORDINATE_OFFSET, miny + CAIRO_COORDINATE_OFFSET, maxx - minx, maxy - miny); cairo_stroke(cr); #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_destroy(pix); #else g_object_unref(G_OBJECT(pix)); cairo_destroy(cr); #endif return FALSE; } static void LegendGaussDialogScaleV(GtkWidget *w, gpointer client_data) { struct LegendGaussDialog *d; d = (struct LegendGaussDialog *) client_data; d->Param = gtk_range_get_value(GTK_RANGE(w)) / SCALE_V_MAX; clear_view(d); } static void LegendGaussDialogScaleH(GtkWidget *w, gpointer client_data) { struct LegendGaussDialog *d; d = (struct LegendGaussDialog *) client_data; d->Position = gtk_range_get_value(GTK_RANGE(w)) / SCALE_H_MAX; clear_view(d); } static int get_radio_index(GSList *top) { int i, n; GtkToggleButton *btn; GSList *list; n = g_slist_length(top); for (i = 0, list = top; i < n; i++, list = list->next) { btn = GTK_TOGGLE_BUTTON(list->data); if (gtk_toggle_button_get_active(btn)) { return i; } } return -1; } static void LegendGaussDialogMode(GtkWidget *w, gpointer client_data) { struct LegendGaussDialog *d; int i; gboolean active; active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); if (! active) return; d = (struct LegendGaussDialog *) client_data; i = get_radio_index(d->func_list); if (i < 0) return; d->Mode = i; clear_view(d); } static void LegendGaussDialogDir(GtkWidget *w, gpointer client_data) { int i; struct LegendGaussDialog *d; gboolean active; active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); if (! active) return; d = (struct LegendGaussDialog *) client_data; i= get_radio_index(d->dir_list); if (i < 0 || i >= LEGEND_DIRECTION_NUM) return; d->Dir = i; clear_view(d); } static void LegendGaussDialogDiv(GtkWidget *w, gpointer client_data) { struct LegendGaussDialog *d; d = (struct LegendGaussDialog *) client_data; d->Div = gtk_range_get_value(GTK_RANGE(w)); clear_view(d); } static void LegendGaussDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *button, *hbox, *hbox2, *vbox, *table; GSList *func_list, *dir_list; struct LegendGaussDialog *d; char title[256]; int i; d = (struct LegendGaussDialog *) data; snprintf(title, sizeof(title), _("Legend Gaussian/Lorentzian/Parabola/Sin %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif button = NULL; button = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(button), _("_Sin")); g_signal_connect(button, "toggled", G_CALLBACK(LegendGaussDialogMode), d); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); button = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(button), _("_Parabola")); g_signal_connect(button, "toggled", G_CALLBACK(LegendGaussDialogMode), d); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); button = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(button), _("_Lorentz")); g_signal_connect(button, "toggled", G_CALLBACK(LegendGaussDialogMode), d); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); button = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(button), _("_Gauss")); g_signal_connect(button, "toggled", G_CALLBACK(LegendGaussDialogMode), d); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); func_list = gtk_radio_button_get_group(GTK_RADIO_BUTTON(button)); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 0); d->func_list = func_list; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_entry_create(); add_widget_to_table(table, w, _("Line _Style:"), TRUE, i++); d->style = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_WIDTH, TRUE, TRUE); add_widget_to_table(table, w, _("_Line Width:"), FALSE, i++); d->width = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, TRUE, TRUE); add_widget_to_table(table, w, _("_Miter:"), FALSE, i++); d->miter = w; w = combo_box_create(); add_widget_to_table(table, w, _("_Join:"), FALSE, i++); d->join = w; w = create_color_button(wi); add_widget_to_table(table, w, _("_Color:"), FALSE, i++); d->color = w; #if GTK_CHECK_VERSION(3, 2, 0) w = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 10, DIV_MAX, 1); #else w = gtk_hscale_new_with_range(10, DIV_MAX, 1); #endif set_scale_mark(w, GTK_POS_BOTTOM, 20, 20); add_widget_to_table(table, w, _("_Division:"), TRUE, i++); g_signal_connect(w, "value-changed", G_CALLBACK(LegendGaussDialogDiv), d); d->div = w; #if GTK_CHECK_VERSION(3, 0, 0) hbox2 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox2 = gtk_hbox_new(FALSE, 4); #endif button = NULL; button = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(button), "_T"); g_signal_connect(button, "toggled", G_CALLBACK(LegendGaussDialogDir), d); gtk_box_pack_start(GTK_BOX(hbox2), button, FALSE, FALSE, 0); button = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(button), "_B"); g_signal_connect(button, "toggled", G_CALLBACK(LegendGaussDialogDir), d); gtk_box_pack_start(GTK_BOX(hbox2), button, FALSE, FALSE, 0); button = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(button), "_L"); g_signal_connect(button, "toggled", G_CALLBACK(LegendGaussDialogDir), d); gtk_box_pack_start(GTK_BOX(hbox2), button, FALSE, FALSE, 0); button = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(button), "_R"); g_signal_connect(button, "toggled", G_CALLBACK(LegendGaussDialogDir), d); gtk_box_pack_start(GTK_BOX(hbox2), button, FALSE, FALSE, 0); dir_list = gtk_radio_button_get_group(GTK_RADIO_BUTTON(button)); d->dir_list = dir_list; add_widget_to_table(table, hbox2, _("Direction:"), TRUE, i++); gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 0); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 2, 0) w = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0, SCALE_V_MAX, 1); #else w = gtk_hscale_new_with_range(0, SCALE_V_MAX, 1); #endif set_scale_mark(w, GTK_POS_BOTTOM, 100, 200); g_signal_connect(w, "value-changed", G_CALLBACK(LegendGaussDialogScaleV), d); d->scv = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 0); w = gtk_drawing_area_new(); d->view = w; gtk_widget_set_size_request(w, VIEW_SIZE, VIEW_SIZE); #if GTK_CHECK_VERSION(3, 0, 0) g_signal_connect(w, "draw", G_CALLBACK(LegendGaussDialogPaint), d); #else g_signal_connect(w, "expose-event", G_CALLBACK(LegendGaussDialogPaint), d); #endif gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 2, 0) w = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, - SCALE_H_MAX, SCALE_H_MAX, 1); #else w = gtk_hscale_new_with_range(- SCALE_H_MAX, SCALE_H_MAX, 1); #endif set_scale_mark(w, GTK_POS_TOP, -100, 25); g_signal_connect(w, "value-changed", G_CALLBACK(LegendGaussDialogScaleH), d); d->sch = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, TRUE, TRUE, 0); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } LegendGaussDialogSetupItem(wi, d, d->Id); } static void LegendGaussDialogClose(GtkWidget *w, void *data) { struct LegendGaussDialog *d; int ret, a, i, amp, wd, gx, gy; double x, y = 0, tmp; struct narray *parray; d = (struct LegendGaussDialog *) data; if (d->ret != IDOK) return; ret = d->ret; d->ret = IDLOOP; if (SetObjFieldFromStyle(d->style, d->Obj, d->Id, "style")) return; if (SetObjFieldFromWidget(d->width, d->Obj, d->Id, "width")) return; if (SetObjFieldFromWidget(d->join, d->Obj, d->Id, "join")) return; if (SetObjFieldFromWidget(d->miter, d->Obj, d->Id, "miter_limit")) return; if (putobj_stroke_color(d->color, d->Obj, d->Id)) return; switch (d->Dir) { case LEGEND_DIRECTION_TOP: case LEGEND_DIRECTION_BOTTOM: amp = d->Wdy; wd = d->Wdx; break; default: amp = d->Wdx; wd = d->Wdy; } parray = arraynew(sizeof(int)); for (i = 0; i <= d->Div; i++) { x = wd / ((double) (d->Div)) * i; if (d->Mode == 0) { tmp = (x - wd * 0.5 - wd * d->Position * 0.5) / (wd / (1 + 10 * d->Param) / 2); y = amp * exp(-tmp * tmp); } else if (d->Mode == 1) { tmp = (x - wd * 0.5 - wd * d->Position * 0.5) / (wd / (1 + 10 * d->Param) / 2); y = amp / (tmp * tmp + 1); } else if (d->Mode == 2) { if (d->Position >= 0) { tmp = (x - wd * 0.5 - wd * d->Position * 0.5) / (-wd * 0.5 - wd * d->Position * 0.5); } else { tmp = (x - wd * 0.5 - wd * d->Position * 0.5) / (wd * 0.5 - wd * d->Position * 0.5); } y = amp * tmp * tmp; } else if (d->Mode == 3) { tmp = x / (wd / (0.25 + 10 * d->Param)); y = amp * 0.5 * (sin(2.0 * MPI * (tmp - d->Position * 0.5)) + 1); } switch (d->Dir) { case LEGEND_DIRECTION_TOP: gx = nround(x); gy = d->Wdy - nround(y); break; case LEGEND_DIRECTION_BOTTOM: gx = nround(x); gy = nround(y); break; case LEGEND_DIRECTION_LEFT: gx = d->Wdx - nround(y); gy = d->Wdy - nround(x); break; case LEGEND_DIRECTION_RIGHT: gx = nround(y); gy = d->Wdy - nround(x); break; default: /* never reached */ gx = 0; gy = 0; } gx += d->Minx; gy += d->Miny; arrayadd(parray, &gx); arrayadd(parray, &gy); } putobj(d->Obj, "points", d->Id, parray); a = 0; putobj(d->Obj, "interpolation", d->Id, &a); d->ret = ret; for (i = 0; i < 6; i++) g_free(spc[i]); g_free(spz); g_free(spy); g_free(spx); } void LegendGaussDialog(struct LegendGaussDialog *data, struct objlist *obj, int id, int minx, int miny, int wdx, int wdy) { int i; data->SetupWindow = LegendGaussDialogSetup; data->CloseWindow = LegendGaussDialogClose; data->Obj = obj; data->Id = id; data->Minx = minx; data->Miny = miny; data->Wdx = wdx; data->Wdy = wdy; data->Div = 20; data->Position = 0; data->Param = 0.175; data->Dir = LEGEND_DIRECTION_TOP; data->Mode = 0; data->alloc = TRUE; spx = (double *) g_malloc(sizeof(double) * (DIV_MAX + 1)); if (spx == NULL) data->alloc = FALSE; spy = (double *) g_malloc(sizeof(double) * (DIV_MAX + 1)); if (spy == NULL) data->alloc = FALSE; spz = (double *) g_malloc(sizeof(double) * (DIV_MAX + 1)); if (spz == NULL) data->alloc = FALSE; for (i = 0; i < 6; i++) { spc[i] = (double *) g_malloc(sizeof(double) * (DIV_MAX + 1)); if (spc[i] == NULL) { data->alloc = FALSE; } } } ngraph-gtk-6.06.13/src/gtk/x11print.c0000644000175000017500000006453012241111703014060 00000000000000/* * $Id: x11print.c,v 1.52 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include "nstring.h" #include "object.h" #include "ioutil.h" #include "gtk_liststore.h" #include "gtk_combo.h" #include "gtk_widget.h" #include "x11gui.h" #include "x11dialg.h" #include "ox11menu.h" #include "ogra2cairofile.h" #include "x11menu.h" #include "x11print.h" #include "x11file.h" #include "x11commn.h" #include "x11view.h" #define DEVICE_BUF_SIZE 20 #define MESSAGE_BUF_SIZE 1024 static char *PsVersion[] = { "PostScript Level 3", "PostScript Level 2", NULL, }; static char *SvgVersion[] = { "SVG version 1.1", "SVG version 1.2", NULL, }; struct print_obj { struct objlist *graobj, *g2wobj; int id; N_VALUE *g2winst; }; static GtkPrintSettings *PrintSettings = NULL; static void DriverDialogSelectCB(GtkWidget *wi, gpointer client_data) { int a, i, l, n; struct extprinter *pcur; struct DriverDialog *d; char *ptr, ngp_ext[] = ".ngp"; d = (struct DriverDialog *) client_data; a = combo_box_get_active(d->driver); if (a < 0) return; pcur = Menulocal.extprinterroot; i = 0; while (pcur) { if (i != a) { pcur = pcur->next; i++; continue; } if (pcur->ext && pcur->ext[0] != '\0') { if (NgraphApp.FileName) { l = strlen(NgraphApp.FileName); n = sizeof(ngp_ext) - 1; if (l > n && strcasecmp(NgraphApp.FileName + l - n, ngp_ext) == 0) { l -= n; } ptr = g_strdup_printf("%.*s.%s", l, NgraphApp.FileName, CHK_STR(pcur->ext)); gtk_entry_set_text(GTK_ENTRY(d->file), CHK_STR(ptr)); g_free(ptr); } d->ext = pcur->ext; } else { gtk_entry_set_text(GTK_ENTRY(d->file), ""); d->ext = NULL; } gtk_entry_set_text(GTK_ENTRY(d->option), CHK_STR(pcur->option)); break; } } static void DriverDialogBrowseCB(GtkEntry *w, GtkEntryIconPosition icon_pos, GdkEvent *event, gpointer user_data) { char *file; const char *str; struct DriverDialog *d; d = (struct DriverDialog *) user_data; str = gtk_entry_get_text(w); if (nGetSaveFileName(d->widget, _("External Driver Output"), d->ext, NULL, str, &file, TRUE, Menulocal.changedirectory) == IDOK) { gtk_entry_set_text(w, file); } g_free(file); } static void DriverDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *table; struct DriverDialog *d; struct extprinter *pcur; int i, j; d = (struct DriverDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); d->driver = w; add_widget_to_table(table, w, _("_Driver:"), FALSE, i++); g_signal_connect(d->driver, "changed", G_CALLBACK(DriverDialogSelectCB), d); w = create_text_entry(FALSE, TRUE); d->option = w; add_widget_to_table(table, w, _("_Option:"), TRUE, i++); w = create_file_entry_with_cb(G_CALLBACK(DriverDialogBrowseCB), d); d->file = w; add_widget_to_table(table, w, _("_File:"), TRUE, i++); gtk_box_pack_start(GTK_BOX(d->vbox), table, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } combo_box_clear(d->driver); pcur = Menulocal.extprinterroot; while (pcur != NULL) { combo_box_append_text(d->driver, pcur->name); pcur = pcur->next; j++; } combo_box_set_active(d->driver, 0); } static void DriverDialogClose(GtkWidget *w, void *data) { int a, i; struct extprinter *pcur; struct DriverDialog *d; const char *s, *file; char *driver, *option; d = (struct DriverDialog *) data; if (d->ret == IDCANCEL) return; a = combo_box_get_active(d->driver); pcur = Menulocal.extprinterroot; i = 0; while (pcur != NULL) { if (i == a && pcur->driver) { driver = g_strdup(pcur->driver); if (driver) { putobj(d->Obj, "driver", d->Id, driver); } break; } pcur = pcur->next; i++; } s = gtk_entry_get_text(GTK_ENTRY(d->option)); file = gtk_entry_get_text(GTK_ENTRY(d->file)); option = NULL; if (s || file) { option = g_strdup_printf("%s%s%s%s", (file) ? "-o '" : "", CHK_STR(file), (file) ? "' " : "", CHK_STR(s)); } putobj(d->Obj, "option", d->Id, option); } void DriverDialog(struct DriverDialog *data, struct objlist *obj, int id) { data->SetupWindow = DriverDialogSetup; data->CloseWindow = DriverDialogClose; data->Obj = obj; data->Id = id; data->ext = NULL; } static void OutputDataDialogSetupItem(GtkWidget *w, struct OutputDataDialog *d) { spin_entry_set_val(d->div_entry, d->div); } static void OutputDataDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox; struct OutputDataDialog *d; d = (struct OutputDataDialog *) data; if (makewidget) { w = create_spin_entry(0, 200, 1, FALSE, TRUE); d->div_entry = w; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif item_setup(hbox, w, _("_Div:"), TRUE); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } OutputDataDialogSetupItem(wi, d); } static void OutputDataDialogClose(GtkWidget *w, void *data) { struct OutputDataDialog *d; d = (struct OutputDataDialog *) data; if (d->ret != IDOK) return; d->div = spin_entry_get_val(d->div_entry); } void OutputDataDialog(struct OutputDataDialog *data, int div) { data->SetupWindow = OutputDataDialogSetup; data->CloseWindow = OutputDataDialogClose; data->div = div; } static void OutputImageDialogSetupItem(GtkWidget *w, struct OutputImageDialog *d) { int i; GtkWidget *vlabel; #if GTK_CHECK_VERSION(3, 0, 0) GtkWidget *window; GtkRequisition minimum_size; #endif vlabel = get_mnemonic_label(d->version); gtk_label_set_text(GTK_LABEL(vlabel), ""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->use_opacity), FALSE); combo_box_clear(d->version); switch (d->DlgType) { case MenuIdOutputPSFile: case MenuIdOutputEPSFile: for (i = 0; PsVersion[i]; i++) { combo_box_append_text(d->version, PsVersion[i]); } set_widget_visibility_with_label(d->dpi, FALSE); set_widget_visibility_with_label(d->version, TRUE); gtk_widget_set_visible(d->t2p, TRUE); gtk_label_set_markup_with_mnemonic(GTK_LABEL(vlabel), _("_PostScript Version:")); gtk_spin_button_set_value(GTK_SPIN_BUTTON(d->dpi), 72); combo_box_set_active(d->version, Menulocal.ps_version); break; case MenuIdOutputPNGFile: set_widget_visibility_with_label(d->dpi, TRUE); set_widget_visibility_with_label(d->version, FALSE); gtk_widget_set_visible(d->t2p, FALSE); gtk_spin_button_set_value(GTK_SPIN_BUTTON(d->dpi), Menulocal.png_dpi); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->use_opacity), Menulocal.use_opacity); break; case MenuIdOutputPDFFile: set_widget_visibility_with_label(d->dpi, FALSE); set_widget_visibility_with_label(d->version, FALSE); gtk_widget_set_visible(d->t2p, TRUE); gtk_spin_button_set_value(GTK_SPIN_BUTTON(d->dpi), 72); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->use_opacity), Menulocal.use_opacity); break; case MenuIdOutputSVGFile: for (i = 0; PsVersion[i]; i++) { combo_box_append_text(d->version, SvgVersion[i]); } set_widget_visibility_with_label(d->dpi, FALSE); set_widget_visibility_with_label(d->version, TRUE); gtk_widget_set_visible(d->t2p, TRUE); gtk_label_set_markup_with_mnemonic(GTK_LABEL(vlabel), _("_SVG Version:")); gtk_spin_button_set_value(GTK_SPIN_BUTTON(d->dpi), 72); combo_box_set_active(d->version, Menulocal.svg_version); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->use_opacity), Menulocal.use_opacity); break; #ifdef CAIRO_HAS_WIN32_SURFACE case MenuIdOutputCairoEMFFile: set_widget_visibility_with_label(d->dpi, TRUE); set_widget_visibility_with_label(d->version, FALSE); gtk_widget_set_visible(d->t2p, FALSE); gtk_spin_button_set_value(GTK_SPIN_BUTTON(d->dpi), Menulocal.emf_dpi); break; #endif /* CAIRO_HAS_WIN32_SURFACE */ } #if GTK_CHECK_VERSION(3, 0, 0) window = gtk_widget_get_parent(GTK_WIDGET(d->vbox)); if (GTK_IS_WINDOW(window)) { gtk_widget_get_preferred_size(GTK_WIDGET(d->vbox), &minimum_size, NULL); gtk_window_resize(GTK_WINDOW(window), minimum_size.width, minimum_size.height); } #endif } static void OutputImageDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w; struct OutputImageDialog *d; char *title; d = (struct OutputImageDialog *) data; if (makewidget) { w = gtk_check_button_new_with_mnemonic(_("_Convert texts to paths")); d->t2p = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); w = gtk_check_button_new_with_mnemonic(_("_Use opacity")); d->use_opacity = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); w = gtk_spin_button_new_with_range(1, DPI_MAX, 1); gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(w), TRUE); gtk_entry_set_activates_default(GTK_ENTRY(w), TRUE); d->dpi = w; item_setup(GTK_WIDGET(d->vbox), w, "_DPI:", FALSE); w = combo_box_create(); d->version = w; item_setup(GTK_WIDGET(d->vbox), w, "", FALSE); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } switch (d->DlgType) { case MenuIdOutputPSFile: title = N_("Cairo PS Output"); break; case MenuIdOutputEPSFile: title = N_("Cairo EPS Output"); break; case MenuIdOutputPNGFile: title = N_("Cairo PNG Output"); break; case MenuIdOutputPDFFile: title = N_("Cairo PDF Output"); break; case MenuIdOutputSVGFile: title = N_("Cairo SVG Output"); break; #ifdef CAIRO_HAS_WIN32_SURFACE case MenuIdOutputCairoEMFFile: title = N_("Cairo EMF Output"); break; #endif /* CAIRO_HAS_WIN32_SURFACE */ default: title = NULL; /* not reachable */ } gtk_window_set_title(GTK_WINDOW(wi), _(title)); OutputImageDialogSetupItem(w, d); } static void OutputImageDialogClose(GtkWidget *w, void *data) { struct OutputImageDialog *d; int a; d = (struct OutputImageDialog *) data; if (d->ret != IDOK) return; d->Dpi = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(d->dpi)); d->UseOpacity = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->use_opacity)); switch (d->DlgType) { case MenuIdOutputPSFile: d->text2path = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->t2p)); a = combo_box_get_active(d->version); switch (a) { case 0: d->Version = TYPE_PS3; break; case 1: default: d->Version = TYPE_PS2; break; } Menulocal.ps_version = a; break; case MenuIdOutputEPSFile: d->text2path = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->t2p)); a = combo_box_get_active(d->version); switch (a) { case 0: d->Version = TYPE_EPS3; break; case 1: default: d->Version = TYPE_EPS2; break; } Menulocal.ps_version = a; break; case MenuIdOutputPNGFile: d->Version = TYPE_PNG; Menulocal.png_dpi = d->Dpi; break; #ifdef CAIRO_HAS_WIN32_SURFACE case MenuIdOutputCairoEMFFile: d->Version = TYPE_EMF; Menulocal.emf_dpi = d->Dpi; break; #endif /* CAIRO_HAS_WIN32_SURFACE */ case MenuIdOutputPDFFile: d->text2path = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->t2p)); d->Version = TYPE_PDF; break; case MenuIdOutputSVGFile: d->text2path = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->t2p)); a = combo_box_get_active(d->version); switch (a) { case 0: d->Version = TYPE_SVG1_1; break; case 1: default: d->Version = TYPE_SVG1_2; break; } Menulocal.svg_version = a; break; } } void OutputImageDialog(struct OutputImageDialog *data, int type) { data->SetupWindow = OutputImageDialogSetup; data->CloseWindow = OutputImageDialogClose; data->DlgType = type; } static void draw_gra(struct objlist *graobj, int id, char *msg, int close) { ProgressDialogCreate(msg); SetStatusBar(msg); if (exeobj(graobj, "open", id, 0, NULL) == 0) { exeobj(graobj, "draw", id, 0, NULL); exeobj(graobj, "flush", id, 0, NULL); if (close) { exeobj(graobj, "close", id, 0, NULL); } } ProgressDialogFinalize(); ResetStatusBar(); main_window_redraw(); } static void draw_page(GtkPrintOperation *operation, GtkPrintContext *context, int page_nr, gpointer user_data) { struct objlist *graobj, *g2wobj; char *argv[2]; struct print_obj *pobj; int id, r; N_VALUE *g2winst; pobj = (struct print_obj *) user_data; graobj = pobj->graobj; g2wobj = pobj->g2wobj; id = pobj->id; g2winst = pobj->g2winst; argv[0] = (char *) context; argv[1] = NULL; r = _exeobj(g2wobj, "_context", g2winst, 1, argv); if (r == 0) { draw_gra(graobj, id, _("Printing."), TRUE); } } static void init_graobj(struct objlist *graobj, int id, char *dev_name, int dev_oid) { struct narray *drawrable; unsigned int i, n; char *device; putobj(graobj, "paper_width", id, &(Menulocal.PaperWidth)); putobj(graobj, "paper_height", id, &(Menulocal.PaperHeight)); putobj(graobj, "left_margin", id, &(Menulocal.LeftMargin)); putobj(graobj, "top_margin", id, &(Menulocal.TopMargin)); putobj(graobj, "zoom", id, &(Menulocal.PaperZoom)); if (arraynum(&(Menulocal.drawrable)) > 0) { drawrable = arraynew(sizeof(char *)); n = arraynum(&(Menulocal.drawrable)); for (i = 0; i < n; i++) { arrayadd2(drawrable, *(char **) arraynget(&(Menulocal.drawrable), i)); } } else { drawrable = NULL; } putobj(graobj, "draw_obj", id, drawrable); device = (char *) g_malloc(DEVICE_BUF_SIZE); snprintf(device, DEVICE_BUF_SIZE, "%s:^%d", dev_name, dev_oid); putobj(graobj, "device", id, device); } void CmOutputPrinter(int select_file, int show_dialog) { GtkPrintOperation *print; GtkPrintOperationResult res; char buf[MESSAGE_BUF_SIZE]; struct objlist *graobj, *g2wobj; int id, g2wid, g2woid, opt; N_VALUE *g2winst; GError *error; struct print_obj pobj; GtkPaperSize *paper_size; GtkPageSetup *page_setup; if (Menulock || Globallock) return; if (select_file && ! SetFileHidden()) return; FileAutoScale(); AdjustAxis(); graobj = chkobject("gra"); if (graobj == NULL) return; g2wobj = chkobject("gra2gtkprint"); if (g2wobj == NULL) return; g2wid = newobj(g2wobj); if (g2wid < 0) return; putobj(g2wobj, "use_opacity", g2wid, &Menulocal.use_opacity); g2winst = chkobjinst(g2wobj, g2wid); _getobj(g2wobj, "oid", g2winst, &g2woid); id = newobj(graobj); init_graobj(graobj, id, "gra2gtkprint", g2woid); print = gtk_print_operation_new(); gtk_print_operation_set_n_pages(print, 1); #if GTK_CHECK_VERSION(2, 18, 0) gtk_print_operation_set_has_selection(print, FALSE); gtk_print_operation_set_support_selection(print, FALSE); gtk_print_operation_set_embed_page_setup(print, FALSE); #endif gtk_print_operation_set_use_full_page(print, TRUE); if (PrintSettings == NULL) PrintSettings = gtk_print_settings_new(); if (Menulocal.PaperId == PAPER_ID_CUSTOM) { paper_size = gtk_paper_size_new_custom(Menulocal.PaperName, Menulocal.PaperName, Menulocal.PaperWidth / 100.0, Menulocal.PaperHeight / 100.0, GTK_UNIT_MM); } else { paper_size = gtk_paper_size_new(Menulocal.PaperName); } page_setup = gtk_page_setup_new(); gtk_page_setup_set_paper_size(page_setup, paper_size); if (Menulocal.PaperLandscape) { gtk_page_setup_set_orientation(page_setup, GTK_PAGE_ORIENTATION_LANDSCAPE); } else { gtk_page_setup_set_orientation(page_setup, GTK_PAGE_ORIENTATION_PORTRAIT); } gtk_print_operation_set_default_page_setup(print, page_setup); gtk_print_operation_set_print_settings(print, PrintSettings); pobj.graobj = graobj; pobj.id = id; pobj.g2wobj = g2wobj; pobj.g2winst = g2winst; g_signal_connect(print, "draw_page", G_CALLBACK(draw_page), &pobj); switch (show_dialog) { case PRINT_SHOW_DIALOG_NONE: opt = GTK_PRINT_OPERATION_ACTION_PRINT; break; case PRINT_SHOW_DIALOG_PREVIEW: opt = GTK_PRINT_OPERATION_ACTION_PREVIEW; break; case PRINT_SHOW_DIALOG_DIALOG: opt = GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG; break; default: opt = GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG; } res = gtk_print_operation_run(print, opt, GTK_WINDOW(TopLevel), &error); if (res == GTK_PRINT_OPERATION_RESULT_ERROR) { snprintf(buf, sizeof(buf), _("Printing error: %s"), error->message); message_box(NULL, buf, _("Print"), RESPONS_ERROR); g_error_free(error); } else if (res == GTK_PRINT_OPERATION_RESULT_APPLY) { if (PrintSettings) g_object_unref(PrintSettings); PrintSettings = g_object_ref(gtk_print_operation_get_print_settings(print)); } g_object_unref(print); delobj(graobj, id); delobj(g2wobj, g2wid); if (select_file) { FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } } void CmOutputDriver(void) { struct objlist *graobj, *g2wobj; int id, g2wid, g2woid; N_VALUE *g2winst; int ret; struct savedstdio stdio; if (Menulock || Globallock) return; if (Menulocal.select_data && ! SetFileHidden()) return; FileAutoScale(); AdjustAxis(); graobj = chkobject("gra"); if (graobj == NULL) return; g2wobj = chkobject("gra2prn"); if (g2wobj == NULL) return; g2wid = newobj(g2wobj); if (g2wid < 0) return; DriverDialog(&DlgDriver, g2wobj, g2wid); ret = DialogExecute(TopLevel, &DlgDriver); if (ret == IDOK) { SetStatusBar(_("Spawning external driver.")); g2winst = chkobjinst(g2wobj, g2wid); _getobj(g2wobj, "oid", g2winst, &g2woid); id = newobj(graobj); init_graobj(graobj, id, "gra2prn", g2woid); ignorestdio(&stdio); draw_gra(graobj, id, _("Drawing."), TRUE); restorestdio(&stdio); delobj(graobj, id); ResetStatusBar(); } delobj(g2wobj, g2wid); if (Menulocal.select_data) { FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } } void CmOutputViewerB(GtkAction *wi, gpointer client_data) { if (Menulock || Globallock) return; FileAutoScale(); AdjustAxis(); if (Menulocal.exwin_use_external) { struct objlist *menuobj; int show_dialog, s; char *argv[3]; menuobj = chkobject("menu"); if (menuobj == NULL) return; s = FALSE; show_dialog = PRINT_SHOW_DIALOG_PREVIEW; argv[0] = (char *) &s; argv[1] = (char *) &show_dialog; argv[2] = NULL; exeobj(menuobj, "print", 0, 2, argv); } else { struct objlist *graobj, *g2wobj; int id, g2wid, g2woid, c; N_VALUE *g2winst; int delgra; if ((graobj = chkobject("gra")) == NULL) return; if ((g2wobj = chkobject("gra2gtk")) == NULL) return; g2wid = newobj(g2wobj); if (g2wid < 0) return; g2winst = chkobjinst(g2wobj, g2wid); _getobj(g2wobj, "oid", g2winst, &g2woid); putobj(g2wobj, "dpi", g2wid, &(Menulocal.exwindpi)); putobj(g2wobj, "width", g2wid, &Menulocal.exwinwidth); putobj(g2wobj, "height", g2wid, &Menulocal.exwinheight); c = Menulocal.bg_r * 255.0; putobj(g2wobj, "BR", g2wid, &c); c = Menulocal.bg_g * 255.0; putobj(g2wobj, "BG", g2wid, &c); c = Menulocal.bg_b * 255.0; putobj(g2wobj, "BB", g2wid, &c); putobj(g2wobj, "use_opacity", g2wid, &Menulocal.use_opacity); id = newobj(graobj); init_graobj(graobj, id, "gra2gtk", g2woid); draw_gra(graobj, id, _("Spawning external viewer."), FALSE); delgra = TRUE; _putobj(g2wobj, "delete_gra", g2winst, &delgra); exeobj(g2wobj, "present", g2wid, 0, NULL); } } static char * get_base_ngp_name(void) { char *ptr, *tmp; if (NgraphApp.FileName == NULL) return NULL; tmp = g_strdup(NgraphApp.FileName); if (tmp == NULL) return NULL; ptr = strrchr(tmp, '.'); if (ptr && strcmp(ptr, ".ngp") == 0) { *ptr = '\0'; } return tmp; } static void CmPrintGRAFile(void) { struct objlist *graobj, *g2wobj; int id, g2wid, g2woid, ret; N_VALUE *g2winst; char *tmp, *file; if (Menulock || Globallock) return; tmp = get_base_ngp_name(); ret = nGetSaveFileName(TopLevel, _("GRA file"), "gra", NULL, tmp, &file, FALSE, Menulocal.changedirectory); if (tmp) g_free(tmp); if (ret != IDOK) return; if (file == NULL) { return; } if (Menulocal.select_data && ! SetFileHidden()) return; FileAutoScale(); AdjustAxis(); if ((graobj = chkobject("gra")) == NULL) { g_free(file); return; } if ((g2wobj = chkobject("gra2file")) == NULL) { g_free(file); return; } g2wid = newobj(g2wobj); if (g2wid < 0) { g_free(file); return; } g2winst = chkobjinst(g2wobj, g2wid); _getobj(g2wobj, "oid", g2winst, &g2woid); putobj(g2wobj, "file", g2wid, file); id = newobj(graobj); init_graobj(graobj, id, "gra2file", g2woid); draw_gra(graobj, id, _("Making GRA file."), TRUE); delobj(graobj, id); delobj(g2wobj, g2wid); if (Menulocal.select_data) { FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } } static void CmOutputImage(int type) { struct objlist *graobj, *g2wobj; int id, g2wid, g2woid; N_VALUE *g2winst; int ret; char *title, *ext_str; char *file, *tmp; if (Menulock || Globallock) return; switch (type) { case MenuIdOutputPSFile: title = "Save as PostScript"; ext_str = "ps"; break; case MenuIdOutputEPSFile: title = "Save as Encapsulated PostScript"; ext_str = "eps"; break; case MenuIdOutputPDFFile: title = "Save as Portable Document Format (PDF)"; ext_str = "pdf"; break; case MenuIdOutputPNGFile: title = "Save as Portable Network Graphics (PNG)"; ext_str = "png"; break; case MenuIdOutputSVGFile: title = "Save as Scalable Vector Graphics (SVG)"; ext_str = "svg"; break; #ifdef CAIRO_HAS_WIN32_SURFACE case MenuIdOutputCairoEMFFile: title = "Save as Windows Enhanced Metafile (EMF)"; ext_str = "emf"; break; #endif /* CAIRO_HAS_WIN32_SURFACE */ default: /* not reachable */ title = NULL; ext_str = NULL; } tmp = get_base_ngp_name(); ret = nGetSaveFileName(TopLevel, title, ext_str, NULL, tmp, &file, FALSE, Menulocal.changedirectory); if (tmp) { g_free(tmp); } if (ret != IDOK) { return; } if (file == NULL) { return; } OutputImageDialog(&DlgImageOut, type); ret = DialogExecute(TopLevel, &DlgImageOut); if (ret != IDOK) { g_free(file); return; } if (Menulocal.select_data && ! SetFileHidden()) return; FileAutoScale(); AdjustAxis(); graobj = chkobject("gra"); if (graobj == NULL) { g_free(file); return; } g2wobj = chkobject("gra2cairofile"); if (g2wobj == NULL) { g_free(file); return; } g2wid = newobj(g2wobj); if (g2wid < 0) { g_free(file); return; } g2winst = chkobjinst(g2wobj, g2wid); _getobj(g2wobj, "oid", g2winst, &g2woid); id = newobj(graobj); putobj(g2wobj, "file", g2wid, file); switch (type) { case MenuIdOutputPSFile: case MenuIdOutputEPSFile: case MenuIdOutputSVGFile: case MenuIdOutputPDFFile: #ifdef CAIRO_HAS_WIN32_SURFACE case MenuIdOutputCairoEMFFile: #endif /* CAIRO_HAS_WIN32_SURFACE */ putobj(g2wobj, "text2path", g2wid, &DlgImageOut.text2path); break; case MenuIdOutputPNGFile: break; } putobj(g2wobj, "use_opacity", g2wid, &DlgImageOut.UseOpacity); putobj(g2wobj, "dpi", g2wid, &DlgImageOut.Dpi); putobj(g2wobj, "format", g2wid, &DlgImageOut.Version); init_graobj(graobj, id, "gra2cairofile", g2woid); draw_gra(graobj, id, _("Drawing."), TRUE); delobj(graobj, id); delobj(g2wobj, g2wid); if (Menulocal.select_data) { FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } } #ifdef WINDOWS static void CmOutputEMF(int type) { struct objlist *graobj, *g2wobj; int id, g2wid, g2woid; N_VALUE *g2winst; int ret; char *title, *ext_str; char *file, *tmp; if (Menulock || Globallock) return; title = "Save as Windows Enhanced Metafile (EMF)"; file = NULL; if (type == MenuIdOutputEMFFile) { ext_str = "emf"; tmp = get_base_ngp_name(); ret = nGetSaveFileName(TopLevel, title, ext_str, NULL, tmp, &file, FALSE, Menulocal.changedirectory); if (tmp) { g_free(tmp); } if (ret != IDOK) { return; } if (file == NULL) { return; } } if (Menulocal.select_data && ! SetFileHidden()) return; FileAutoScale(); AdjustAxis(); graobj = chkobject("gra"); if (graobj == NULL) { g_free(file); return; } g2wobj = chkobject("gra2emf"); if (g2wobj == NULL) { g_free(file); return; } g2wid = newobj(g2wobj); if (g2wid < 0) { g_free(file); return; } g2winst = chkobjinst(g2wobj, g2wid); _getobj(g2wobj, "oid", g2winst, &g2woid); id = newobj(graobj); putobj(g2wobj, "file", g2wid, file); init_graobj(graobj, id, "gra2emf", g2woid); draw_gra(graobj, id, _("Drawing."), TRUE); delobj(graobj, id); delobj(g2wobj, g2wid); if (Menulocal.select_data) { FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } } #endif void CmOutputPrinterB(GtkAction *wi, gpointer client_data) { CmOutputPrinter(FALSE, PRINT_SHOW_DIALOG_DIALOG); } void CmOutputMenu(GtkAction *wi, gpointer client_data) { switch (GPOINTER_TO_INT(client_data)) { case MenuIdOutputGRAFile: CmPrintGRAFile(); break; case MenuIdOutputPSFile: case MenuIdOutputEPSFile: case MenuIdOutputPDFFile: case MenuIdOutputPNGFile: case MenuIdOutputSVGFile: #ifdef CAIRO_HAS_WIN32_SURFACE case MenuIdOutputCairoEMFFile: #endif /* CAIRO_HAS_WIN32_SURFACE */ CmOutputImage(GPOINTER_TO_INT(client_data)); break; #ifdef WINDOWS case MenuIdOutputEMFFile: case MenuIdOutputEMFClipboard: CmOutputEMF(GPOINTER_TO_INT(client_data)); break; #endif } } ngraph-gtk-6.06.13/src/gtk/x11merge.c0000644000175000017500000003017412241111703014020 00000000000000/* * $Id: x11merge.c,v 1.33 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include "object.h" #include "nstring.h" #include "ioutil.h" #include "gtk_liststore.h" #include "gtk_subwin.h" #include "gtk_widget.h" #include "x11bitmp.h" #include "x11gui.h" #include "x11dialg.h" #include "x11menu.h" #include "ox11menu.h" #include "x11file.h" #include "x11merge.h" #include "x11commn.h" #include "x11view.h" static n_list_store Mlist[] = { {" ", G_TYPE_BOOLEAN, TRUE, TRUE, "hidden"}, {"#", G_TYPE_INT, TRUE, FALSE, "id"}, {N_("file"), G_TYPE_STRING, TRUE, TRUE, "file"}, {N_("top"), G_TYPE_DOUBLE, TRUE, TRUE, "top_margin", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {N_("left"), G_TYPE_DOUBLE, TRUE, TRUE, "left_margin", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {N_("zoom"), G_TYPE_DOUBLE, TRUE, TRUE, "zoom", 0, SPIN_ENTRY_MAX, 100, 1000}, {"^#", G_TYPE_INT, TRUE, FALSE, "oid"}, }; #define MERG_WIN_COL_NUM (sizeof(Mlist)/sizeof(*Mlist)) #define MERG_WIN_COL_OID (MERG_WIN_COL_NUM - 1) #define MERG_WIN_COL_HIDDEN 0 #define MERG_WIN_COL_ID 1 #define MERG_WIN_COL_FILE 2 static void merge_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row); static struct subwin_popup_list Popup_list[] = { {GTK_STOCK_ADD, G_CALLBACK(CmMergeOpen), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {N_("_Duplicate"), G_CALLBACK(list_sub_window_copy), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_CLOSE, G_CALLBACK(list_sub_window_delete), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {NULL, NULL, 0, NULL, POP_UP_MENU_ITEM_TYPE_SEPARATOR}, {"_Focus", G_CALLBACK(list_sub_window_focus), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_PREFERENCES, G_CALLBACK(list_sub_window_update), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {NULL, NULL, 0, NULL, POP_UP_MENU_ITEM_TYPE_SEPARATOR}, {GTK_STOCK_GOTO_TOP, G_CALLBACK(list_sub_window_move_top), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GO_UP, G_CALLBACK(list_sub_window_move_up), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GO_DOWN, G_CALLBACK(list_sub_window_move_down), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GOTO_BOTTOM, G_CALLBACK(list_sub_window_move_last), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, }; #define POPUP_ITEM_NUM (sizeof(Popup_list) / sizeof(*Popup_list)) #define POPUP_ITEM_TOP 7 #define POPUP_ITEM_UP 8 #define POPUP_ITEM_DOWN 9 #define POPUP_ITEM_BOTTOM 10 static void MergeDialogSetupItem(struct MergeDialog *d, int file, int id) { if (file) { SetWidgetFromObjField(d->file, d->Obj, id, "file"); gtk_editable_set_position(GTK_EDITABLE(d->file), -1); } SetWidgetFromObjField(d->topmargin, d->Obj, id, "top_margin"); SetWidgetFromObjField(d->leftmargin, d->Obj, id, "left_margin"); SetWidgetFromObjField(d->zoom, d->Obj, id, "zoom"); } static void MergeDialogCopy(GtkWidget *w, gpointer data) { struct MergeDialog *d; int sel; d = (struct MergeDialog *) data; sel = CopyClick(d->widget, d->Obj, d->Id, FileCB); if (sel != -1) { MergeDialogSetupItem(d, FALSE, sel); } } static void MergeDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *frame, *table; struct MergeDialog *d; char title[64]; int i; d = (struct MergeDialog *) data; snprintf(title, sizeof(title), _("Merge %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_file_entry(d->Obj); add_widget_to_table(table, w, _("_File:"), TRUE, i++); d->file = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("_Top Margin:"), FALSE, i++); d->topmargin = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("_Left Margin:"), FALSE, i++); d->leftmargin = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_PERCENT, TRUE, TRUE); add_widget_to_table(table, w, _("_Zoom:"), FALSE, i++); d->zoom = w; frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(d->vbox), frame, TRUE, TRUE, 4); add_copy_button_to_box(GTK_WIDGET(d->vbox), G_CALLBACK(MergeDialogCopy), d, "merge"); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } MergeDialogSetupItem(d, TRUE, d->Id); } static void MergeDialogClose(GtkWidget *w, void *data) { struct MergeDialog *d; int ret; d = (struct MergeDialog *) data; switch(d->ret) { case IDOK: break; default: return; } ret = d->ret; d->ret = IDLOOP; if (SetObjFieldFromWidget(d->file, d->Obj, d->Id, "file")) return; if (SetObjFieldFromWidget(d->topmargin, d->Obj, d->Id, "top_margin")) return; if (SetObjFieldFromWidget(d->leftmargin, d->Obj, d->Id, "left_margin")) return; if (SetObjFieldFromWidget(d->zoom, d->Obj, d->Id, "zoom")) return; d->ret = ret; } void MergeDialog(struct obj_list_data *data, int id, int user_data) { struct MergeDialog *d; d = (struct MergeDialog *) data->dialog; d->SetupWindow = MergeDialogSetup; d->CloseWindow = MergeDialogClose; d->Obj = data->obj; d->Id = id; } void CmMergeOpen(GtkAction *w, gpointer client_data) { struct objlist *obj; char *name = NULL; int id, ret; if (Menulock || Globallock) return; if ((obj = chkobject("merge")) == NULL) return; if (nGetOpenFileName(TopLevel, _("Add Merge file"), "gra", NULL, NULL, &name, TRUE, Menulocal.changedirectory) != IDOK || ! name) return; id = newobj(obj); if (id >= 0) { changefilename(name); putobj(obj, "file", id, name); MergeDialog(NgraphApp.MergeWin.data.data, id, -1); ret = DialogExecute(TopLevel, &DlgMerge); if ((ret == IDDELETE) || (ret == IDCANCEL)) { delobj(obj, id); } else { set_graph_modified(); } } else { g_free(name); } MergeWinUpdate(NgraphApp.MergeWin.data.data, TRUE); } void CmMergeClose(GtkAction *w, gpointer client_data) { struct narray farray; struct objlist *obj; int i; int num, *array; if (Menulock || Globallock) return; if ((obj = chkobject("merge")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, FileCB, (struct narray *) &farray, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&farray); array = arraydata(&farray); for (i = num - 1; i >= 0; i--) { delobj(obj, array[i]); set_graph_modified(); } MergeWinUpdate(NgraphApp.MergeWin.data.data, TRUE); } arraydel(&farray); } void CmMergeUpdate(GtkAction *w, gpointer client_data) { struct narray farray; struct objlist *obj; int i, j; int *array, num; if (Menulock || Globallock) return; if ((obj = chkobject("merge")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, FileCB, (struct narray *) &farray, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&farray); array = arraydata(&farray); for (i = 0; i < num; i++) { MergeDialog(NgraphApp.MergeWin.data.data, array[i], -1); if (DialogExecute(TopLevel, &DlgMerge) == IDDELETE) { delobj(obj, array[i]); set_graph_modified(); for (j = i + 1; j < num; j++) array[j]--; } } MergeWinUpdate(NgraphApp.MergeWin.data.data, TRUE); } arraydel(&farray); } void MergeWinUpdate(struct obj_list_data *d, int clear) { if (d == NULL) return; if (list_sub_window_must_rebuild(d)) { list_sub_window_build(d, merge_list_set_val); } else { list_sub_window_set(d, merge_list_set_val); } if (! clear && d->select >= 0) { list_store_select_int(GTK_WIDGET(d->text), MERG_WIN_COL_ID, d->select); } } static void merge_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row) { int cx; unsigned int i = 0; char *file, *bfile; for (i = 0; i < MERG_WIN_COL_NUM; i++) { switch (i) { case MERG_WIN_COL_FILE: getobj(d->obj, "file", row, 0, NULL, &file); bfile = getbasename(file); if (bfile) { list_store_set_string(GTK_WIDGET(d->text), iter, i, CHK_STR(bfile)); g_free(bfile); } else { list_store_set_string(GTK_WIDGET(d->text), iter, i, "...................."); } break; case MERG_WIN_COL_HIDDEN: getobj(d->obj, Mlist[i].name, row, 0, NULL, &cx); cx = ! cx; list_store_set_val(GTK_WIDGET(d->text), iter, i, Mlist[i].type, &cx); break; default: if (Mlist[i].type == G_TYPE_DOUBLE) { getobj(d->obj, Mlist[i].name, row, 0, NULL, &cx); list_store_set_double(GTK_WIDGET(d->text), iter, i, cx / 100.0); } else { getobj(d->obj, Mlist[i].name, row, 0, NULL, &cx); list_store_set_val(GTK_WIDGET(d->text), iter, i, Mlist[i].type, &cx); } } } } static void popup_show_cb(GtkWidget *widget, gpointer user_data) { unsigned int i; int sel, num; struct obj_list_data *d; d = (struct obj_list_data *) user_data; sel = d->select; num = chkobjlastinst(d->obj); for (i = 1; i < POPUP_ITEM_NUM; i++) { switch (i) { case POPUP_ITEM_TOP: case POPUP_ITEM_UP: gtk_widget_set_sensitive(d->popup_item[i], sel > 0 && sel <= num); break; case POPUP_ITEM_DOWN: case POPUP_ITEM_BOTTOM: gtk_widget_set_sensitive(d->popup_item[i], sel >= 0 && sel < num); break; default: gtk_widget_set_sensitive(d->popup_item[i], sel >= 0 && sel <= num); } } } static void drag_drop_cb(GtkWidget *w, GdkDragContext *context, gint x, gint y, GtkSelectionData *data, guint info, guint time, gpointer user_data) { gchar **filenames; int num; switch (info) { case DROP_TYPE_FILE: filenames = gtk_selection_data_get_uris(data); num = g_strv_length(filenames); data_dropped(filenames, num, FILE_TYPE_MERGE); g_strfreev(filenames); gtk_drag_finish(context, TRUE, FALSE, time); break; } } static void init_dnd(struct SubWin *d) { GtkWidget *widget; GtkTargetEntry target[] = { {"text/uri-list", 0, DROP_TYPE_FILE}, }; widget = d->data.data->text; gtk_drag_dest_set(widget, GTK_DEST_DEFAULT_ALL, target, sizeof(target) / sizeof(*target), GDK_ACTION_COPY); g_signal_connect(widget, "drag-data-received", G_CALLBACK(drag_drop_cb), NULL); } void CmMergeWindow(GtkToggleAction *action, gpointer client_data) { struct SubWin *d; int state; d = &(NgraphApp.MergeWin); if (action) { state = gtk_toggle_action_get_active(action); } else { state = TRUE; } if (d->Win) { sub_window_set_visibility(d, state); return; } if (! state) { return; } list_sub_window_create(d, "Merge Window", MERG_WIN_COL_NUM, Mlist, Mergewin_xpm, Mergewin48_xpm); d->data.data->update = MergeWinUpdate; d->data.data->setup_dialog = MergeDialog; d->data.data->dialog = &DlgMerge; d->data.data->obj = chkobject("merge"); sub_win_create_popup_menu(d->data.data, POPUP_ITEM_NUM, Popup_list, G_CALLBACK(popup_show_cb)); init_dnd(d); gtk_tree_view_set_enable_search(GTK_TREE_VIEW(d->data.data->text), TRUE); gtk_tree_view_set_search_column(GTK_TREE_VIEW(d->data.data->text), MERG_WIN_COL_FILE); gtk_tree_view_set_tooltip_column(GTK_TREE_VIEW(d->data.data->text), MERG_WIN_COL_FILE); } ngraph-gtk-6.06.13/src/gtk/x11view.h0000644000175000017500000000416112241111703013675 00000000000000/* * $Id: x11view.h,v 1.12 2009-05-01 09:15:59 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #define DROP_TYPE_FILE 0 #define DROP_TYPE_TEXT 1 #define FILE_TYPE_AUTO 0 #define FILE_TYPE_MERGE 1 #define FILE_TYPE_DATA 2 #define ROTATE_CLOCKWISE 0 #define ROTATE_COUNTERCLOCKWISE 1 struct Point { int x, y; }; struct FocusObj { struct objlist *obj; int oid; }; enum FOCU_OBJ_TYPE { FOCUS_OBJ_TYPE_AXIS = 0x01, FOCUS_OBJ_TYPE_MERGE = 0x02, FOCUS_OBJ_TYPE_LEGEND = 0x04, FOCUS_OBJ_TYPE_TEXT = 0x08, }; void ViewerWinSetup(void); void ViewerWinClose(void); void ViewerWinUpdate(void); void OpenGC(void); void CloseGC(void); void SetScroller(void); void Focus(struct objlist *fobj, int id, int add); void UnFocus(void); void ChangeDPI(void); void Draw(int SelectFile); void CmViewerClear(GtkAction *w, gpointer client_data); void CmViewerDraw(GtkAction *w, gpointer client_data); void CmViewerButtonArm(GtkAction *w, gpointer client_data); gboolean CmViewerButtonPressed(GtkWidget *widget, GdkEventButton *event, gpointer user_data); int data_dropped(char **filenames, int num, int file_type); void draw_paper_frame(void); void CmEditMenuCB(GtkAction *w, gpointer client_data); void ViewCross(int state); void ViewerUpdateCB(GtkAction *w, gpointer client_data); int check_focused_obj_type(const struct Viewer *d, int *type); ngraph-gtk-6.06.13/src/gtk/ogra2cairo.c0000644000175000017500000010612412241111703014416 00000000000000/* * $Id: ogra2cairo.c,v 1.58 2010-03-04 08:30:17 hito Exp $ */ #include "gtk_common.h" #include #include #include #include #include #include #include #include "mathfn.h" #include "object.h" #include "gra.h" #include "main.h" #include "nstring.h" #include "object.h" #include "ioutil.h" #include "nconfig.h" #include "strconv.h" #include "x11gui.h" #include "ogra2cairo.h" #define NAME "gra2cairo" #define PARENT "gra2" #define OVERSION "1.00.00" #define CAIROCONF "[gra2cairo]" #define DEFAULT_FONT "Sans-serif" #ifndef M_PI #define M_PI 3.141592 #endif char **Gra2CairoErrMsgs = NULL; int Gra2CairoErrMsgNum = 0; int OldConfigExist = FALSE; /* for backward compatibility */ char *gra2cairo_antialias_type[] = { N_("none"), N_("default"), N_("gray"), // N_("subpixel"), NULL, }; struct gra2cairo_config *Gra2cairoConf = NULL; static int Instance = 0; static NHASH CompatibleFontHash = NULL; static struct compatible_font_info CompatibleFont[] = { {"Times", GRA_FONT_STYLE_NORMAL, FALSE, "Serif"}, {"TimesBold", GRA_FONT_STYLE_BOLD, FALSE, "Serif"}, {"TimesItalic", GRA_FONT_STYLE_ITALIC, FALSE, "Serif"}, {"TimesBoldItalic", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Serif"}, {"Helvetica", GRA_FONT_STYLE_NORMAL, FALSE, "Sans-serif"}, {"HelveticaBold", GRA_FONT_STYLE_BOLD, FALSE, "Sans-serif"}, {"HelveticaOblique", GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"HelveticaItalic", GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"HelveticaBoldOblique", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"HelveticaBoldItalic", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"Courier", GRA_FONT_STYLE_NORMAL, FALSE, "Monospace"}, {"CourierBold", GRA_FONT_STYLE_BOLD, FALSE, "Monospace"}, {"CourierOblique", GRA_FONT_STYLE_ITALIC, FALSE, "Monospace"}, {"CourierItalic", GRA_FONT_STYLE_ITALIC, FALSE, "Monospace"}, {"CourierBoldOblique", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Monospace"}, {"CourierBoldItalic", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Monospace"}, {"Symbol", GRA_FONT_STYLE_NORMAL, TRUE, "Serif"}, {"SymbolBold", GRA_FONT_STYLE_BOLD, TRUE, "Serif"}, {"SymbolItalic", GRA_FONT_STYLE_ITALIC, TRUE, "Serif"}, {"SymbolBoldItalic", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, TRUE, "Serif"}, {"Mincho", GRA_FONT_STYLE_NORMAL, FALSE, "Serif"}, {"MinchoBold", GRA_FONT_STYLE_BOLD, FALSE, "Serif"}, {"MinchoItalic", GRA_FONT_STYLE_ITALIC, FALSE, "Serif"}, {"MinchoBoldItalic", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Serif"}, {"Gothic", GRA_FONT_STYLE_NORMAL, FALSE, "Sans-serif"}, {"GothicBold", GRA_FONT_STYLE_BOLD, FALSE, "Sans-serif"}, {"GothicItalic", GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"GothicBoldItalic", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"Tim", GRA_FONT_STYLE_NORMAL, FALSE, "Serif"}, {"TimB", GRA_FONT_STYLE_BOLD, FALSE, "Serif"}, {"TimI", GRA_FONT_STYLE_ITALIC, FALSE, "Serif"}, {"TimBI", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Serif"}, {"Helv", GRA_FONT_STYLE_NORMAL, FALSE, "Sans-serif"}, {"HelvB", GRA_FONT_STYLE_BOLD, FALSE, "Sans-serif"}, {"HelvO", GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"HelvI", GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"HelvBO", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"HelvBI", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"Cour", GRA_FONT_STYLE_NORMAL, FALSE, "Monospace"}, {"CourB", GRA_FONT_STYLE_BOLD, FALSE, "Monospace"}, {"CourO", GRA_FONT_STYLE_ITALIC, FALSE, "Monospace"}, {"CourI", GRA_FONT_STYLE_ITALIC, FALSE, "Monospace"}, {"CourBO", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Monospace"}, {"CourBI", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Monospace"}, {"Sym", GRA_FONT_STYLE_NORMAL, TRUE, "Serif"}, {"SymB", GRA_FONT_STYLE_BOLD, TRUE, "Serif"}, {"SymI", GRA_FONT_STYLE_ITALIC, TRUE, "Serif"}, {"SymBI", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, TRUE, "Serif"}, {"Min", GRA_FONT_STYLE_NORMAL, FALSE, "Serif"}, {"MinB", GRA_FONT_STYLE_BOLD, FALSE, "Serif"}, {"MinI", GRA_FONT_STYLE_ITALIC, FALSE, "Serif"}, {"MinBI", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Serif"}, {"Goth", GRA_FONT_STYLE_NORMAL, FALSE, "Sans-serif"}, {"GothB", GRA_FONT_STYLE_BOLD, FALSE, "Sans-serif"}, {"GothI", GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, {"GothBI", GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC, FALSE, "Sans-serif"}, }; #define FONT_FACE_NUM ((int) (sizeof(FontFaceStr) / sizeof(*FontFaceStr))) static int mxp2dw(struct gra2cairo_local *local, int r) { return ceil(r / local->pixel_dot_x); } static double mxd2pw(struct gra2cairo_local *local, int r) { return r * local->pixel_dot_x; } static int mxp2dh(struct gra2cairo_local *local, int r) { return ceil(r / local->pixel_dot_y); } static double mxd2ph(struct gra2cairo_local *local, int r) { return r * local->pixel_dot_y; } static double mxd2px(struct gra2cairo_local *local, int x) { return x * local->pixel_dot_x + local->offsetx; } static double mxd2py(struct gra2cairo_local *local, int y) { return y * local->pixel_dot_y + local->offsety; } static void free_font_map(struct fontmap *fcur) { struct fontmap *cur, *prev; if (fcur == NULL) return; if (fcur->font) { pango_font_description_free(fcur->font); } g_free(fcur->fontalias); g_free(fcur->fontname); g_free(fcur->alternative); prev = NULL; cur = Gra2cairoConf->fontmap_list_root; while (cur) { if (cur == fcur) { if (prev == NULL) { Gra2cairoConf->fontmap_list_root = cur->next; } else { prev->next = cur->next; } break; } prev = cur; cur = cur->next; } g_free(fcur); } static void add_font_map(struct fontmap *fmap) { struct fontmap *cur; if (Gra2cairoConf->fontmap_list_root == NULL) { Gra2cairoConf->fontmap_list_root = fmap; return; } cur = Gra2cairoConf->fontmap_list_root; while (cur->next) { cur = cur->next; } cur->next = fmap; } static struct fontmap * create_font_map(const char *fontalias, const char *fontname, const char *alternative) { struct fontmap *fnew; if (Gra2cairoConf->fontmap == NULL) return NULL; if (nhash_get_ptr(Gra2cairoConf->fontmap, fontalias, (void *) &fnew) == 0) { free_font_map(fnew); } fnew = g_malloc(sizeof(struct fontmap)); if (fnew == NULL) { return NULL; } if (nhash_set_ptr(Gra2cairoConf->fontmap, fontalias, fnew)) { g_free(fnew); return NULL; } fnew->fontalias = g_strdup(fontalias); fnew->fontname = g_strdup(fontname); fnew->alternative = g_strdup(alternative); fnew->font = NULL; fnew->next = NULL; add_font_map(fnew); Gra2cairoConf->font_num++; return fnew; } void gra2cairo_save_config(void) { char *buf; struct fontmap *fcur; struct narray conf; arrayinit(&conf, sizeof(char *)); if (gra2cairo_get_fontmap_num() == 0) { buf = g_strdup("font"); if (buf) { arrayadd(&conf, &buf); removeconfig(CAIROCONF, &conf); } } else { fcur = Gra2cairoConf->fontmap_list_root; while (fcur) { buf = g_strdup_printf("font=%s,%s%s%s", fcur->fontalias, fcur->fontname, (fcur->alternative) ? "," : "", CHK_STR(fcur->alternative)); if (buf) { arrayadd(&conf, &buf); } fcur = fcur->next; } replaceconfig(CAIROCONF, &conf); } /* for backward compatibility */ if (OldConfigExist) { buf = g_strdup("font_map"); if (buf) { arrayadd(&conf, &buf); removeconfig(CAIROCONF, &conf); } OldConfigExist = FALSE; } arraydel2(&conf); } static int loadconfig(void) { FILE *fp; char *tok, *str, *s2; char *f1, *f2, *f3; int len; struct fontmap *fnew; fp = openconfig(CAIROCONF); if (fp == NULL) return 0; while ((tok = getconfig(fp, &str))) { s2 = str; if (strcmp(tok, "font") == 0) { f1 = getitok2(&s2, &len, ","); f2 = getitok2(&s2, &len, ","); for (; (s2[0] != '\0') && (strchr(" \x09,", s2[0])); s2++); f3 = getitok2(&s2, &len, ""); if (f1 && f2) { fnew = create_font_map(f1, f2, f3); g_free(f1); g_free(f2); if (fnew == NULL) { g_free(tok); closeconfig(fp); return 1; } } else { g_free(f1); g_free(f2); } g_free(f3); } else if (strcmp(tok, "font_map") == 0) { /* for backward compatibility */ char *f4, *endptr; int two_byte; OldConfigExist = TRUE; f1 = getitok2(&s2, &len, " \t,"); f3 = getitok2(&s2, &len, " \t,"); f4 = getitok2(&s2, &len, " \t,"); two_byte = strtol(f4, &endptr, 10); g_free(f3); g_free(f4); for (; (s2[0] != '\0') && (strchr(" \x09,", s2[0])); s2++); f2 = getitok2(&s2, &len, ""); fnew = NULL; if (f1 && f2) { struct compatible_font_info *info; struct fontmap *tmp; info = gra2cairo_get_compatible_font_info(f1); if (info) { if (nhash_get_ptr(Gra2cairoConf->fontmap, info->name, (void *) &tmp)) { g_free(f1); f1 = g_strdup(info->name); if (f1) { fnew = create_font_map(f1, f2, NULL); } if (fnew == NULL) { g_free(tok); g_free(f1); g_free(f2); closeconfig(fp); return 1; } } else { if (two_byte) { gra2cairo_set_alternative_font(info->name, f2); } } } } g_free(f1); g_free(f2); } else { fprintf(stderr, "(%s): configuration '%s' in section %s is not used.\n", AppName,tok, CAIROCONF); } g_free(tok); g_free(str); } closeconfig(fp); return 0; } static int free_fonts_sub(struct nhash *h, void *d) { struct fontmap *fcur; fcur = (struct fontmap *) h->val.p; free_font_map(fcur); return 0; } static void free_fonts(struct gra2cairo_config *conf) { nhash_each(conf->fontmap, free_fonts_sub, NULL); conf->font_num = 0; } static int init_conf(void) { Gra2cairoConf = g_malloc(sizeof(*Gra2cairoConf)); if (Gra2cairoConf == NULL) return 1; Gra2cairoConf->fontmap = nhash_new(); if (Gra2cairoConf->fontmap == NULL) { g_free(Gra2cairoConf); Gra2cairoConf = NULL; return 1; } Gra2cairoConf->fontmap_list_root = NULL; Gra2cairoConf->font_num = 0; if (loadconfig()) { free_fonts(Gra2cairoConf); nhash_free(Gra2cairoConf->fontmap); g_free(Gra2cairoConf); Gra2cairoConf = NULL; return 1; } return 0; } static void free_conf(void) { if (Gra2cairoConf == NULL) return; free_fonts(Gra2cairoConf); nhash_free(Gra2cairoConf->fontmap); g_free(Gra2cairoConf); Gra2cairoConf = NULL; } struct fontmap * gra2cairo_get_fontmap(const char *fontalias) { struct fontmap *fnew; if (nhash_get_ptr(Gra2cairoConf->fontmap, fontalias, (void *) &fnew)) { return NULL; } return fnew; } int gra2cairo_get_fontmap_num(void) { int n = 0; if (Gra2cairoConf->fontmap) { n = nhash_num(Gra2cairoConf->fontmap); } return n; } void gra2cairo_remove_fontmap(const char *fontalias) { struct fontmap *fnew; if (nhash_get_ptr(Gra2cairoConf->fontmap, fontalias, (void *) &fnew) == 0) { free_font_map(fnew); nhash_del(Gra2cairoConf->fontmap, fontalias); } } void gra2cairo_update_fontmap(const char *fontalias, const char *fontname) { struct fontmap *fcur; if (fontname == NULL || fontalias == NULL) return; if (nhash_get_ptr(Gra2cairoConf->fontmap, fontalias, (void *) &fcur)) return; if (strcmp(fontname, fcur->fontname)) { g_free(fcur->fontname); fcur->fontname = g_strdup(fontname); } if (fcur->font) { pango_font_description_free(fcur->font); fcur->font = NULL; } } void gra2cairo_add_fontmap(const char *fontalias, const char *fontname) { struct fontmap *fnew; if (nhash_get_ptr(Gra2cairoConf->fontmap, fontalias, (void *) &fnew) == 0) { free_font_map(fnew); } create_font_map(fontalias, fontname, NULL); } void gra2cairo_set_alternative_font(const char *fontalias, const char *fontname) { struct fontmap *fnew; if (nhash_get_ptr(Gra2cairoConf->fontmap, fontalias, (void *) &fnew)) { return; } g_free(fnew->alternative); if (fontname) { gchar *ptr; ptr = g_strdup(fontname); if (ptr) { g_strstrip(ptr); if (ptr[0]) { fnew->alternative = ptr; } else { fnew->alternative = NULL; g_free(ptr); } } } else { fnew->alternative = NULL; } if (fnew->font) { pango_font_description_free(fnew->font); fnew->font = NULL; } } static int gra2cairo_init(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local = NULL; int antialias = ANTIALIAS_TYPE_DEFAULT; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; if (Gra2cairoConf == NULL && init_conf()) { goto errexit; } local = g_malloc(sizeof(struct gra2cairo_local)); if (local == NULL) goto errexit; if (_putobj(obj, "_local", inst, local)) goto errexit; if (_putobj(obj, "antialias", inst, &antialias)) goto errexit; local->cairo = NULL; local->fontalias = NULL; local->layout = NULL; local->pixel_dot_x = 1; local->pixel_dot_y = 1; local->linetonum = 0; local->text2path = FALSE; local->antialias = antialias; local->region = NULL; local->font_style = GRA_FONT_STYLE_NORMAL; local->symbol = FALSE; local->use_opacity = FALSE; Instance++; return 0; errexit: if (Instance == 0) free_conf(); g_free(local); return 1; } void gra2cairo_draw_path(struct gra2cairo_local *local) { if (local->cairo && local->linetonum) { double x, y; cairo_get_current_point(local->cairo, &x, &y); cairo_stroke(local->cairo); cairo_move_to(local->cairo, x, y); local->linetonum = 0; } } struct gra2cairo_local * gra2cairo_free(struct objlist *obj, N_VALUE *inst) { struct gra2cairo_local *local; _getobj(obj, "_local", inst, &local); if (local == NULL) return NULL; if (local->cairo) { gra2cairo_draw_path(local); cairo_destroy(local->cairo); } if (local->layout) { g_object_unref(local->layout); } if (local->fontalias) { g_free(local->fontalias); } Instance--; if (Instance == 0) { free_conf(); } return local; } static int gra2cairo_done(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; if (OldConfigExist) { /* for backward compatibility */ gra2cairo_save_config(); } gra2cairo_free(obj, inst); return 0; } int #if GTK_CHECK_VERSION(3, 0, 0) gra2cairo_clip_region(struct gra2cairo_local *local, cairo_region_t *region) #else gra2cairo_clip_region(struct gra2cairo_local *local, GdkRegion *region) #endif { if (local == NULL || local->cairo == NULL) return 1; cairo_new_path(local->cairo); if (region) { gdk_cairo_region(local->cairo, region); cairo_clip(local->cairo); local->region = region; } else { cairo_reset_clip(local->cairo); local->region = NULL; } return 0; } static double gra2cairo_get_pixel_dot(struct objlist *obj, N_VALUE *inst, char **argv) { int dpi; dpi = *(int *) argv[2]; if (dpi < 1) dpi = 1; if (dpi > DPI_MAX) dpi = DPI_MAX; *(int *)argv[2] = dpi; return dpi / (DPI_MAX * 1.0); } static int gra2cairo_set_dpi(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int dpi; struct gra2cairo_local *local; dpi = *(int *) argv[2]; _getobj(obj, "_local", inst, &local); _putobj(obj, "dpix", inst, &dpi); _putobj(obj, "dpiy", inst, &dpi); local->pixel_dot_x = local->pixel_dot_y = gra2cairo_get_pixel_dot(obj, inst, argv); return 0; } static int gra2cairo_set_dpi_x(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local; _getobj(obj, "_local", inst, &local); local->pixel_dot_x = gra2cairo_get_pixel_dot(obj, inst, argv); return 0; } static int gra2cairo_set_dpi_y(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local; _getobj(obj, "_local", inst, &local); local->pixel_dot_y = gra2cairo_get_pixel_dot(obj, inst, argv); return 0; } void gra2cairo_set_antialias(struct gra2cairo_local *local, int antialias) { if (local->cairo == NULL) return; local->antialias = antialias; switch (antialias) { case ANTIALIAS_TYPE_NONE: antialias = CAIRO_ANTIALIAS_NONE; break; case ANTIALIAS_TYPE_DEFAULT: antialias = CAIRO_ANTIALIAS_DEFAULT; break; case ANTIALIAS_TYPE_GRAY: antialias = CAIRO_ANTIALIAS_GRAY; break; case ANTIALIAS_TYPE_SUBPIXEL: antialias = CAIRO_ANTIALIAS_SUBPIXEL; break; } cairo_set_antialias(local->cairo, antialias); } static int set_antialias(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int antialias; struct gra2cairo_local *local; antialias = *(int *) argv[2]; _getobj(obj, "_local", inst, &local); gra2cairo_set_antialias(local, antialias); return 0; } struct compatible_font_info * gra2cairo_get_compatible_font_info(const char *name) { int i; if (name == NULL) { return NULL; } if (CompatibleFontHash == NULL) { return NULL; } if (nhash_get_int(CompatibleFontHash, name, &i)) { return NULL; } return &CompatibleFont[i]; } static struct fontmap * loadfont(char *fontalias, int font_style, int *symbol) { struct fontmap *fcur; PangoFontDescription *pfont; PangoStyle style; PangoWeight weight; *symbol = FALSE; if (nhash_get_ptr(Gra2cairoConf->fontmap, fontalias, (void *) &fcur)) { int i; if (nhash_get_int(CompatibleFontHash, fontalias, &i) == 0) { if (nhash_get_ptr(Gra2cairoConf->fontmap, CompatibleFont[i].name, (void *) &fcur) == 0) { font_style = CompatibleFont[i].style; *symbol = CompatibleFont[i].symbol; } } if (fcur == NULL && nhash_get_ptr(Gra2cairoConf->fontmap, DEFAULT_FONT, (void *) &fcur)) { return NULL; } } if (fcur->font) { pfont = fcur->font; } else { gchar *ptr; pfont = pango_font_description_new(); ptr = g_strdup_printf("%s%s%s", fcur->fontname, (fcur->alternative) ? "," : "", CHK_STR(fcur->alternative)); if (ptr) { pango_font_description_set_family(pfont, ptr); g_free(ptr); } else { return NULL; } } if (font_style > 0 && (font_style & GRA_FONT_STYLE_ITALIC)) { style = PANGO_STYLE_ITALIC; } else { style = PANGO_STYLE_NORMAL; } pango_font_description_set_style(pfont, style); if (font_style > 0 && (font_style & GRA_FONT_STYLE_BOLD)) { weight = PANGO_WEIGHT_BOLD; } else { weight = PANGO_WEIGHT_NORMAL; } pango_font_description_set_weight(pfont, weight); fcur->font = pfont; return fcur; } static void relative_move(cairo_t *cr, double x, double y) { if (cairo_has_current_point(cr)) { cairo_rel_move_to(cr, x, y); } else { cairo_move_to(cr, x, y); } } static void draw_str(struct gra2cairo_local *local, int draw, char *str, struct fontmap *font, int size, int space, int *fw, int *ah, int *dh) { PangoAttribute *attr; PangoAttrList *alist; PangoLayoutIter *piter; int w, h, baseline; if (size == 0 || str == NULL) { if (fw) *fw = 0; if (ah) *ah = 0; if (dh) *dh = 0; return; } if (local->layout == NULL) { local->layout = pango_cairo_create_layout(local->cairo); } alist = pango_attr_list_new(); attr = pango_attr_size_new_absolute(mxd2ph(local, size) * PANGO_SCALE); pango_attr_list_insert(alist, attr); attr = pango_attr_letter_spacing_new(mxd2ph(local, space) * PANGO_SCALE); pango_attr_list_insert(alist, attr); pango_layout_set_font_description(local->layout, font->font); pango_layout_set_attributes(local->layout, alist); pango_attr_list_unref(alist); pango_layout_set_text(local->layout, str, -1); pango_layout_get_pixel_size(local->layout, &w, &h); piter = pango_layout_get_iter(local->layout); baseline = pango_layout_iter_get_baseline(piter) / PANGO_SCALE; if (fw) *fw = w; if (ah) *ah = baseline; if (dh) *dh = h - baseline; if (draw && str) { double x, y; double cx, cy; x = - local->fontsin * baseline; y = - local->fontcos * baseline; cairo_get_current_point(local->cairo, &cx, &cy); relative_move(local->cairo, x, y); cairo_save(local->cairo); cairo_rotate(local->cairo, -local->fontdir * G_PI / 180.); pango_cairo_update_layout(local->cairo, local->layout); if (local->text2path) { pango_cairo_layout_path(local->cairo, local->layout); cairo_fill(local->cairo); cairo_restore(local->cairo); cairo_move_to(local->cairo, cx + w * local->fontcos, cy - w * local->fontsin); } else { pango_cairo_show_layout(local->cairo, local->layout); cairo_restore(local->cairo); relative_move(local->cairo, w * local->fontcos - x, - w * local->fontsin - y); } } pango_layout_iter_free(piter); } static int check_cairo_status(cairo_t *cairo) { int r; r = cairo_status(cairo); if (r != CAIRO_STATUS_SUCCESS) { return r + 100; } r = cairo_surface_status(cairo_get_target(cairo)); if (r != CAIRO_STATUS_SUCCESS) { return r + 100; } return 0; } static int gra2cairo_flush(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local; cairo_surface_t *surface; _getobj(obj, "_local", inst, &local); if (local->cairo == NULL) return -1; gra2cairo_draw_path(local); surface = cairo_get_target(local->cairo); if (surface) { cairo_surface_flush(surface); } return check_cairo_status(local->cairo); } char * gra2cairo_get_utf8_str(const char *cstr, int symbol) { char *tmp; size_t l, i, j; l = strlen(cstr); tmp = g_malloc(l * 6 + 1); if (tmp == NULL) { return NULL; } for (j = i = 0; i <= l; i++) { if (cstr[i] == '\\') { if (cstr[i + 1] == 'x' && g_ascii_isxdigit(cstr[i + 2]) && g_ascii_isxdigit(cstr[i + 3])) { char buf[8]; int len, k; gunichar wc; wc = g_ascii_xdigit_value(cstr[i + 2]) * 16 + g_ascii_xdigit_value(cstr[i + 3]); len = g_unichar_to_utf8(wc, buf); for (k = 0; k < len; k++) { tmp[j++] = buf[k]; } i += 3; } else { i += 1; tmp[j++] = cstr[i]; } } else { tmp[j++] = cstr[i]; } tmp[j] = '\0'; } if (symbol) { char *ptr; ptr = ascii2greece(tmp); if (ptr) { g_free(tmp); tmp = ptr; } } return tmp; } static int gra2cairo_output(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char code, *cstr, *tmp; int *cpar, i, r, font_style; double x, y, w, h, fontsize, fontspace, fontdir, fontsin, fontcos, a1, a2; cairo_line_join_t join; cairo_line_cap_t cap; double *dashlist = NULL; struct gra2cairo_local *local; local = (struct gra2cairo_local *)argv[2]; code = *(char *)(argv[3]); cpar = (int *)argv[4]; cstr = argv[5]; if (local->cairo == NULL) return -1; if (code != 'T') { gra2cairo_draw_path(local); } switch (code) { case 'I': gra2cairo_set_antialias(local, local->antialias); local->linetonum = 0; r = check_cairo_status(local->cairo); if (r) { error(obj, r); return 1; } case '%': case 'X': break; case 'E': r = check_cairo_status(local->cairo); if (r) { error(obj, r); return 1; } break; case 'V': local->offsetx = mxd2pw(local, cpar[1]); local->offsety = mxd2ph(local, cpar[2]); cairo_new_path(local->cairo); if (cpar[5]) { x = mxd2pw(local, cpar[1]); y = mxd2ph(local, cpar[2]); w = mxd2pw(local, cpar[3]) - x; h = mxd2ph(local, cpar[4]) - y; cairo_reset_clip(local->cairo); cairo_rectangle(local->cairo, x, y, w, h); cairo_clip(local->cairo); } else { cairo_reset_clip(local->cairo); } if (local->region) { gra2cairo_clip_region(local, local->region); } break; case 'A': if (cpar[1] == 0) { cairo_set_dash(local->cairo, NULL, 0, 0); } else { dashlist = g_malloc(sizeof(* dashlist) * cpar[1]); if (dashlist == NULL) break; for (i = 0; i < cpar[1]; i++) { dashlist[i] = mxd2pw(local, cpar[6 + i]); if (dashlist[i] <= 0) { dashlist[i] = 1; } } cairo_set_dash(local->cairo, dashlist, cpar[1], 0); g_free(dashlist); } cairo_set_line_width(local->cairo, mxd2pw(local, cpar[2])); if (cpar[3] == 2) { cap = CAIRO_LINE_CAP_SQUARE; } else if (cpar[3] == 1) { cap = CAIRO_LINE_CAP_ROUND; } else { cap = CAIRO_LINE_CAP_BUTT; } cairo_set_line_cap(local->cairo, cap); if (cpar[4] == 2) { join = CAIRO_LINE_JOIN_BEVEL; } else if (cpar[4] == 1) { join = CAIRO_LINE_JOIN_ROUND; } else { join = CAIRO_LINE_JOIN_MITER; } cairo_set_line_join(local->cairo, join); break; case 'G': if (local->use_opacity && cpar[0] > 3 && cpar[4] < 255) { cairo_set_source_rgba(local->cairo, cpar[1] / 255.0, cpar[2] / 255.0, cpar[3] / 255.0, cpar[4] / 255.0); } else { cairo_set_source_rgb(local->cairo, cpar[1] / 255.0, cpar[2] / 255.0, cpar[3] / 255.0); } break; case 'M': cairo_move_to(local->cairo, mxd2px(local, cpar[1]), mxd2py(local, cpar[2])); break; case 'N': relative_move(local->cairo, mxd2pw(local, cpar[1]), mxd2ph(local, cpar[2])); break; case 'L': cairo_new_path(local->cairo); cairo_move_to(local->cairo, mxd2px(local, cpar[1]), mxd2py(local, cpar[2])); cairo_line_to(local->cairo, mxd2px(local, cpar[3]), mxd2py(local, cpar[4])); cairo_stroke(local->cairo); break; case 'T': cairo_line_to(local->cairo, mxd2px(local, cpar[1]), mxd2py(local, cpar[2])); local->linetonum++; break; case 'C': x = mxd2px(local, cpar[1] - cpar[3]); y = mxd2py(local, cpar[2] - cpar[4]); w = mxd2pw(local, cpar[3]); h = mxd2ph(local, cpar[4]); a1 = cpar[5] * (M_PI / 18000.0); a2 = cpar[6] * (M_PI / 18000.0) + a1; if (w == 0 || h == 0 || a1 == a2) break; cairo_new_path(local->cairo); cairo_save(local->cairo); cairo_translate(local->cairo, x + w, y + h); cairo_scale(local->cairo, w, h); cairo_arc_negative(local->cairo, 0., 0., 1., -a1, -a2); cairo_restore (local->cairo); switch (cpar[7]) { case 1: cairo_line_to(local->cairo, x + w, y + h); /* fall through */ case 2: cairo_close_path(local->cairo); cairo_fill(local->cairo); break; case 3: cairo_line_to(local->cairo, x + w, y + h); /* fall through */ case 4: cairo_close_path(local->cairo); cairo_stroke(local->cairo); break; default: cairo_stroke(local->cairo); } break; case 'B': cairo_new_path(local->cairo); if (cpar[1] <= cpar[3]) { x = mxd2px(local, cpar[1]); w = mxd2pw(local, cpar[3] - cpar[1]); } else { x = mxd2px(local, cpar[3]); w = mxd2pw(local, cpar[1] - cpar[3]); } if (cpar[2] <= cpar[4]) { y = mxd2py(local, cpar[2]); h = mxd2ph(local, cpar[4] - cpar[2]); } else { y = mxd2py(local, cpar[4]); h = mxd2ph(local, cpar[2] - cpar[4]); } cairo_rectangle(local->cairo, x, y, w, h); if (cpar[5] == 0) { cairo_stroke(local->cairo); } else { cairo_fill(local->cairo); } break; case 'P': cairo_new_path(local->cairo); cairo_arc(local->cairo, mxd2px(local, cpar[1]), mxd2py(local, cpar[2]), mxd2pw(local, 1), 0, 2 * M_PI); cairo_fill(local->cairo); break; case 'R': cairo_new_path(local->cairo); if (cpar[1] == 0) break; for (i = 0; i < cpar[1]; i++) { cairo_line_to(local->cairo, mxd2px(local, cpar[i * 2 + 2]), mxd2py(local, cpar[i * 2 + 3])); } cairo_stroke(local->cairo); break; case 'D': cairo_new_path(local->cairo); if (cpar[1] == 0) break; for (i = 0; i < cpar[1]; i++) { cairo_line_to(local->cairo, mxd2px(local, cpar[i * 2 + 3]), mxd2py(local, cpar[i * 2 + 4])); } cairo_close_path(local->cairo); switch (cpar[2]) { case 0: cairo_stroke(local->cairo); break; case 1: cairo_set_fill_rule(local->cairo, CAIRO_FILL_RULE_EVEN_ODD); cairo_fill(local->cairo); break; case 2: cairo_set_fill_rule(local->cairo, CAIRO_FILL_RULE_WINDING); cairo_fill(local->cairo); break; } break; case 'F': g_free(local->fontalias); local->fontalias = g_strdup(cstr); break; case 'H': fontspace = cpar[2] / 72.0 * 25.4; local->fontspace = fontspace; fontsize = cpar[1] / 72.0 * 25.4; local->fontsize = fontsize; fontdir = cpar[3] * MPI / 18000.0; fontsin = sin(fontdir); fontcos = cos(fontdir); local->fontdir = (cpar[3] % 36000) / 100.0; if (local->fontdir < 0) { local->fontdir += 360; } local->fontsin = fontsin; local->fontcos = fontcos; font_style = (cpar[0] > 3) ? cpar[4] : -1; local->loadfont = loadfont(local->fontalias, font_style, &local->symbol); break; case 'S': if (local->loadfont == NULL) break; tmp = gra2cairo_get_utf8_str(cstr, local->symbol); if (tmp) { draw_str(local, TRUE, tmp, local->loadfont, local->fontsize, local->fontspace, NULL, NULL, NULL); g_free(tmp); } break; case 'K': if (local->loadfont == NULL) break; tmp = sjis_to_utf8(cstr); if (tmp) { draw_str(local, TRUE, tmp, local->loadfont, local->fontsize, local->fontspace, NULL, NULL, NULL); g_free(tmp); } break; default: break; } return 0; } int gra2cairo_strwidth(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local; gchar *font, *str; double size, dir, s,c ; int width, style, symbol; struct fontmap *fcur; str = argv[3]; size = ( * (int *) argv[4]) / 72.0 * 25.4; font = argv[5]; style = * (int *) (argv[6]); if (size == 0) { rval->i = 0; return 0; } if (_getobj(obj, "_local", inst, &local)) return 1; if (local->cairo == NULL) return 0; fcur = loadfont(font, style, &symbol); if (fcur == NULL) { rval->i = nround(size * 0.600); return 0; } dir = local->fontdir; s = local->fontsin; c = local->fontcos; local->fontdir = 0; local->fontsin = 0; local->fontcos = 1; if (symbol) { char *ptr; ptr = ascii2greece(str); if (ptr == NULL) { return 1; } str = ptr; } draw_str(local, FALSE, str, fcur, size, 0, &width, NULL, NULL); if (symbol) { g_free(str); } rval->i = mxp2dw(local, width); local->fontsin = s; local->fontcos = c; local->fontdir = dir; return 0; } int gra2cairo_charheight(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local; char *font; double size, dir, s, c; char *func; int height, descent, ascent, style, symbol; struct fontmap *fcur; func = (char *)argv[1]; size = (*(int *)(argv[3])) / 72.0 * 25.4; font = (char *)(argv[4]); style = *(int *) (argv[5]); if (size == 0) { rval->i = 0; return 0; } if (_getobj(obj, "_local", inst, &local)) return 1; if (local->cairo == NULL) return 1; if (strcmp0(func, "_charascent") == 0) { height = TRUE; } else { height = FALSE; } fcur = loadfont(font, style, &symbol); if (fcur == NULL) { if (height) { rval->i = nround(size * 0.562); } else { rval->i = nround(size * 0.250); } return 0; } dir = local->fontdir; s = local->fontsin; c = local->fontcos; local->fontdir = 0; local->fontsin = 0; local->fontcos = 1; draw_str(local, FALSE, "A", fcur, size, 0, NULL, &ascent, &descent); if (height) { rval->i = mxp2dh(local, ascent); } else { rval->i = mxp2dh(local, descent); } local->fontsin = s; local->fontcos = c; local->fontdir = dir; return 0; } static int use_opacity(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local; if (_getobj(obj, "_local", inst, &local)) return 1; local->use_opacity = * (int *) argv[2]; return 0; } static struct objtable gra2cairo[] = { {"init", NVFUNC, 0, gra2cairo_init, NULL, 0}, {"done", NVFUNC, 0, gra2cairo_done, NULL, 0}, {"dpi", NINT, NREAD | NWRITE, gra2cairo_set_dpi, NULL, 0}, {"dpix", NINT, NREAD | NWRITE, gra2cairo_set_dpi_x, NULL, 0}, {"dpiy", NINT, NREAD | NWRITE, gra2cairo_set_dpi_y, NULL, 0}, {"flush",NVFUNC,NREAD|NEXEC,gra2cairo_flush,"",0}, {"antialias", NENUM, NREAD | NWRITE, set_antialias, gra2cairo_antialias_type, 0}, {"use_opacity", NBOOL, NREAD | NWRITE, use_opacity, NULL,0}, {"_output", NVFUNC, 0, gra2cairo_output, NULL, 0}, {"_strwidth", NIFUNC, 0, gra2cairo_strwidth, NULL, 0}, {"_charascent", NIFUNC, 0, gra2cairo_charheight, NULL, 0}, {"_chardescent", NIFUNC, 0, gra2cairo_charheight, NULL, 0}, {"_local", NPOINTER, 0, NULL, NULL, 0}, }; #define TBLNUM (sizeof(gra2cairo) / sizeof(*gra2cairo)) void * addgra2cairo() /* addgra2cairoile() returns NULL on error */ { int i; if (CompatibleFontHash == NULL) { CompatibleFontHash = nhash_new(); if (CompatibleFontHash == NULL) { return NULL; } for (i = 0; i < (int) (sizeof(CompatibleFont) / sizeof(*CompatibleFont)); i++) { nhash_set_int(CompatibleFontHash, CompatibleFont[i].old_name, i); } } if (Gra2CairoErrMsgs == NULL) { Gra2CairoErrMsgs = g_malloc(sizeof(*Gra2CairoErrMsgs) * CAIRO_STATUS_LAST_STATUS); Gra2CairoErrMsgNum = CAIRO_STATUS_LAST_STATUS; for (i = 0; i < CAIRO_STATUS_LAST_STATUS; i++) { Gra2CairoErrMsgs[i] = g_strdup(cairo_status_to_string(i)); } } return addobject(NAME, NULL, PARENT, OVERSION, TBLNUM, gra2cairo, Gra2CairoErrMsgNum, Gra2CairoErrMsgs, NULL, NULL); } ngraph-gtk-6.06.13/src/gtk/x11merge.h0000644000175000017500000000226112241111703014021 00000000000000/* * $Id: x11merge.h,v 1.1.1.1 2008-05-29 09:37:33 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ void MergeWinUpdate(struct obj_list_data *d, int clear); void CmMergeOpen(GtkAction *w, gpointer client_data); void CmMergeClose(GtkAction *w, gpointer client_data); void CmMergeUpdate(GtkAction *w, gpointer client_data); void CmMergeWindow(GtkToggleAction *action, gpointer client_data); ngraph-gtk-6.06.13/src/gtk/Makefile.am0000644000175000017500000000251012241111703014250 00000000000000EXTRA_DIST = dir_defs.h.in AM_CPPFLAGS = -DLOCALEDIR=\""@localedir@"\" noinst_LTLIBRARIES = libngraphui.la nodist_libngraphui_la_SOURCES = dir_defs.h libngraphui_la_SOURCES = gtk_common.h gtk_combo.c gtk_combo.h \ gtk_entry_completion.c gtk_entry_completion.h gtk_liststore.c \ gtk_liststore.h gtk_subwin.c gtk_subwin.h main.c main.h \ ogra2x11.c ogra2cairo.c ogra2emf.c ogra2cairo.h \ ogra2cairofile.c ogra2gtkprint.c ogra2cairofile.h ogra2x11.h \ ogra2gdk.c ogra2gdk.h ox11dlg.c ox11menu.c ox11menu.h \ x11axis.c x11axis.h x11bitmp.c x11bitmp.h x11commn.c \ x11commn.h x11cood.c x11cood.h x11dialg.c x11dialg.h \ x11file.c x11file.h x11graph.c x11graph.h x11gui.c x11gui.h \ x11info.c x11info.h x11lgnd.c x11lgnd.h x11lgndx.c x11menu.c \ x11menu.h x11merge.c x11merge.h x11opt.c x11opt.h \ x11opt_proto.h x11print.c x11print.h x11view.c x11view.h \ gtk_widget.c gtk_widget.h gtk_ruler.c gtk_ruler.h BUILT_SOURCES = ${nodist_libngraphui_la_SOURCES} ngraphconfdir = $(sysconfdir)/$(PACKAGE) pixmapdir = $(datadir)/pixmaps/$(PACKAGE) dir_defs.h: dir_defs.h.in Makefile sh ../../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" dir_defs.h.in libngraphui_la_LDFLAGS = -static libngraphui_la_CFLAGS = $(GTK_CFLAGS) -I.. -I../math CLEANFILES = dir_defs.h ngraph-gtk-6.06.13/src/gtk/x11gui.c0000644000175000017500000006402612241111704013511 00000000000000/* * $Id: x11gui.c,v 1.41 2010-04-01 06:08:23 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include #include #include "object.h" #include "nstring.h" #include "ioutil.h" #include "gtk_widget.h" #include "gtk_combo.h" #include "ox11menu.h" #include "x11gui.h" #include "x11dialg.h" #include "x11menu.h" #include "x11commn.h" struct nGetOpenFileData { GtkWidget *parent, *widget, *chdir_cb; int ret; char *title; char **init_dir; const char *init_file; int chdir; char *ext; char **file; int mustexist; int overwrite; int multi; int changedir; }; static struct nGetOpenFileData FileSelection = {NULL, NULL}; void set_sensitivity_by_check_instance(GtkWidget *widget, gpointer user_data) { char *name; struct objlist *obj; int n; name = (char *) user_data; obj = chkobject(name); n = chkobjlastinst(obj); gtk_widget_set_sensitive(widget, n > 0); } static void dialog_destroyed_cb(GtkWidget *w, gpointer user_data) { ((struct DialogType *) user_data)->widget = NULL; } static gboolean dialog_key_down_cb(GtkWidget *w, GdkEvent *event, gpointer user_data) { GdkEventKey *e; g_return_val_if_fail(w != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); e = (GdkEventKey *)event; switch (e->keyval) { case GDK_KEY_w: if (e->state & GDK_CONTROL_MASK) { gtk_dialog_response(GTK_DIALOG(w), GTK_RESPONSE_CANCEL); return TRUE; } return FALSE; } return FALSE; } static gboolean dialog_delete_cb(GtkWidget *w, GdkEvent *e, gpointer user_data) { return TRUE; } int ndialog_run(GtkWidget *dlg) { int lock_state, r; if (dlg == NULL) { return GTK_RESPONSE_CANCEL; } lock_state = DnDLock; r = gtk_dialog_run(GTK_DIALOG(dlg)); DnDLock = lock_state; return r; } int DialogExecute(GtkWidget *parent, void *dialog) { GtkWidget *dlg, *win_ptr; struct DialogType *data; gint res_id, lockstate; lockstate = DnDLock; DnDLock = TRUE; data = (struct DialogType *) dialog; if (data->widget && (data->parent != parent)) { #if 1 gtk_window_set_transient_for(GTK_WINDOW(data->widget), GTK_WINDOW(parent)); data->parent = parent; #else gtk_widget_destroy(data->widget); reset_event(); data->widget = NULL; #endif } if (data->widget == NULL) { dlg = gtk_dialog_new(); gtk_window_set_transient_for(GTK_WINDOW(dlg), GTK_WINDOW(parent)); gtk_window_set_modal(GTK_WINDOW(dlg), TRUE); gtk_window_set_resizable(GTK_WINDOW(dlg), TRUE); gtk_window_set_destroy_with_parent(GTK_WINDOW(dlg), TRUE); g_signal_connect(dlg, "delete-event", G_CALLBACK(dialog_delete_cb), data); g_signal_connect(dlg, "destroy", G_CALLBACK(dialog_destroyed_cb), data); g_signal_connect(dlg, "key-press-event", G_CALLBACK(dialog_key_down_cb), NULL); data->parent = parent; data->widget = dlg; data->vbox = GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))); data->show_cancel = TRUE; data->ok_button = GTK_STOCK_OK; gtk_window_set_title(GTK_WINDOW(dlg), _(data->resource)); data->SetupWindow(dlg, data, TRUE); if (data->show_cancel) { gtk_dialog_add_button(GTK_DIALOG(dlg), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); } gtk_dialog_add_button(GTK_DIALOG(dlg), data->ok_button, GTK_RESPONSE_OK); gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_OK); } else { dlg = data->widget; data->SetupWindow(dlg, data, FALSE); } gtk_widget_hide(dlg); gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_OK); data->widget = dlg; data->ret = IDLOOP; gtk_widget_show(dlg); win_ptr = get_current_window(); set_current_window(dlg); if (data->focus) gtk_widget_grab_focus(data->focus); while (data->ret == IDLOOP) { res_id = ndialog_run(dlg); if (res_id < 0) { switch (res_id) { case GTK_RESPONSE_OK: data->ret = IDOK; break; default: data->ret = IDCANCEL; break; } } else { data->ret = res_id; } if (data->CloseWindow) { data->CloseWindow(dlg, data); } } // gtk_widget_destroy(dlg); // data->widget = NULL; set_current_window(win_ptr); gtk_widget_hide(dlg); reset_event(); DnDLock = lockstate; return data->ret; } void message_beep(GtkWidget * parent) { gdk_beep(); reset_event(); } static void set_dialog_position(GtkWidget *w, const int *x, const int *y) { if (x == NULL || y == NULL || *x < 0 || *y < 0) return; gtk_window_move(GTK_WINDOW(w), *x, *y); } static void get_dialog_position(GtkWidget *w, int *x, int *y) { if (x == NULL || y == NULL) return; gtk_window_get_position(GTK_WINDOW(w), x, y); if (*x < 0) *x = 0; if (*y < 0) *y = 0; } int message_box(GtkWidget * parent, const char *message, const char *title, int mode) { GtkWidget *dlg; int data; GtkMessageType dlg_type; GtkButtonsType dlg_button; gint res_id; if (title == NULL) { title = _("Error"); } switch (mode) { case RESPONS_YESNOCANCEL: case RESPONS_YESNO: dlg_button = GTK_BUTTONS_YES_NO; dlg_type = GTK_MESSAGE_QUESTION; break; case RESPONS_ERROR: dlg_button = GTK_BUTTONS_OK; dlg_type = GTK_MESSAGE_ERROR; break; default: dlg_button = GTK_BUTTONS_OK; dlg_type = GTK_MESSAGE_INFO; } if (parent == NULL) parent = get_current_window(); dlg = gtk_message_dialog_new(GTK_WINDOW(parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, dlg_type, dlg_button, "%.256s", message); switch (mode) { case RESPONS_YESNOCANCEL: case RESPONS_YESNO: gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_YES); break; } gtk_window_set_title(GTK_WINDOW(dlg), title); gtk_window_set_resizable(GTK_WINDOW(dlg), FALSE); if (mode == RESPONS_YESNOCANCEL) { gtk_dialog_add_button(GTK_DIALOG(dlg), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); } gtk_widget_show_all(dlg); res_id = ndialog_run(dlg); switch (res_id) { case GTK_RESPONSE_OK: data = IDYES; break; case GTK_RESPONSE_YES: data = IDYES; break; case GTK_RESPONSE_NO: data = IDNO; break; case GTK_RESPONSE_CANCEL: data = IDCANCEL; break; default: if ((mode == RESPONS_OK) || (mode == RESPONS_ERROR)) { data = IDOK; } else if (mode == RESPONS_YESNO) { data = IDNO; } else { data = IDCANCEL; } } gtk_widget_destroy(dlg); reset_event(); return data; } int DialogInput(GtkWidget * parent, const char *title, const char *mes, const char *init_str, char **s, int *x, int *y) { GtkWidget *dlg, *text; GtkBox *vbox; int data; gint res_id; dlg = gtk_dialog_new_with_buttons(title, GTK_WINDOW(parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_OK); gtk_window_set_resizable(GTK_WINDOW(dlg), FALSE); vbox = GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))); if (mes) { GtkWidget *label; label = gtk_label_new(mes); gtk_box_pack_start(vbox, label, FALSE, FALSE, 5); } text = create_text_entry(FALSE, TRUE); if (init_str) { gtk_entry_set_text(GTK_ENTRY(text), init_str); } gtk_box_pack_start(vbox, text, FALSE, FALSE, 5); set_dialog_position(dlg, x, y); gtk_widget_show_all(dlg); res_id = ndialog_run(dlg); switch (res_id) { case GTK_RESPONSE_OK: *s = g_strdup(gtk_entry_get_text(GTK_ENTRY(text))); data = IDOK; break; default: data = IDCANCEL; break; } get_dialog_position(dlg, x, y); gtk_widget_destroy(dlg); reset_event(); return data; } int DialogRadio(GtkWidget *parent, const char *title, const char *caption, struct narray *array, int *r, int *x, int *y) { GtkWidget *dlg, *btn, **btn_ary; GtkBox *vbox; int data; gint res_id; char **d; int i, anum; d = arraydata(array); anum = arraynum(array); btn_ary = g_malloc(anum * sizeof(*btn_ary)); if (btn_ary == NULL) return IDCANCEL; dlg = gtk_dialog_new_with_buttons(title, GTK_WINDOW(parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_OK); gtk_window_set_resizable(GTK_WINDOW(dlg), FALSE); vbox = GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))); if (caption) { GtkWidget *label; label = gtk_label_new(caption); gtk_box_pack_start(vbox, label, FALSE, FALSE, 5); } btn = NULL; for (i = 0; i < anum; i++) { btn = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(btn), d[i]); gtk_box_pack_start(vbox, btn, FALSE, FALSE, 2); btn_ary[i] = btn; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(btn), i == *r); } set_dialog_position(dlg, x, y); gtk_widget_show_all(dlg); res_id = ndialog_run(dlg); switch (res_id) { case GTK_RESPONSE_OK: *r = -1; for (i = 0; i < anum; i++) { if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(btn_ary[i]))) { *r = i; break; } } data = IDOK; break; default: data = IDCANCEL; break; } g_free(btn_ary); get_dialog_position(dlg, x, y); gtk_widget_destroy(dlg); reset_event(); return data; } int DialogButton(GtkWidget *parent, const char *title, const char *caption, struct narray *array, int *x, int *y) { GtkWidget *dlg; gint res_id; char **d; int i, anum; d = arraydata(array); anum = arraynum(array); if (anum < 1) { return -1; } dlg = gtk_dialog_new(); for (i = 0; i < anum; i++) { if (d[i] && g_utf8_validate(d[i], -1, NULL)) { gtk_dialog_add_button(GTK_DIALOG(dlg), d[i], i); } } if (title && g_utf8_validate(title, -1, NULL)) { gtk_window_set_title(GTK_WINDOW(dlg), title); } if (caption && g_utf8_validate(caption, -1, NULL)) { GtkWidget *box, *label; box = gtk_dialog_get_content_area(GTK_DIALOG(dlg)); label = gtk_label_new(caption); gtk_box_pack_start(GTK_BOX(box), label, TRUE, TRUE, 4); } gtk_window_set_resizable(GTK_WINDOW(dlg), FALSE); set_dialog_position(dlg, x, y); gtk_widget_show_all(dlg); res_id = ndialog_run(dlg); get_dialog_position(dlg, x, y); gtk_widget_destroy(dlg); reset_event(); return res_id; } int DialogCombo(GtkWidget *parent, const char *title, const char *caption, struct narray *array, int sel, char **r, int *x, int *y) { GtkWidget *dlg, *combo; GtkBox *vbox; int data; gint res_id; char **d; int i, anum; d = arraydata(array); anum = arraynum(array); *r = NULL; dlg = gtk_dialog_new_with_buttons(title, GTK_WINDOW(parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_OK); gtk_window_set_resizable(GTK_WINDOW(dlg), FALSE); vbox = GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))); if (caption) { GtkWidget *label; label = gtk_label_new(caption); gtk_box_pack_start(vbox, label, FALSE, FALSE, 5); } combo = combo_box_create(); for (i = 0; i < anum; i++) { combo_box_append_text(combo, d[i]); } if (sel < 0 || sel >= anum) { sel = 0; } combo_box_set_active(combo, sel); gtk_box_pack_start(vbox, combo, FALSE, FALSE, 2); set_dialog_position(dlg, x, y); gtk_widget_show_all(dlg); res_id = ndialog_run(dlg); switch (res_id) { case GTK_RESPONSE_OK: i = combo_box_get_active(combo); if (i >= 0) *r = g_strdup(d[i]); data = IDOK; break; default: data = IDCANCEL; break; } get_dialog_position(dlg, x, y); gtk_widget_destroy(dlg); reset_event(); return data; } int DialogComboEntry(GtkWidget *parent, const char *title, const char *caption, struct narray *array, int sel, char **r, int *x, int *y) { GtkWidget *dlg, *combo; GtkBox *vbox; int data; gint res_id; char **d; const char *s; int i, anum; d = arraydata(array); anum = arraynum(array); *r = NULL; dlg = gtk_dialog_new_with_buttons(title, GTK_WINDOW(parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_OK); gtk_window_set_resizable(GTK_WINDOW(dlg), FALSE); vbox = GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))); if (caption) { GtkWidget *label; label = gtk_label_new(caption); gtk_box_pack_start(vbox, label, FALSE, FALSE, 5); } combo = combo_box_entry_create(); for (i = 0; i < anum; i++) { combo_box_append_text(combo, d[i]); } if (sel >= 0 && sel < anum) { combo_box_set_active(combo, sel); } gtk_box_pack_start(vbox, combo, FALSE, FALSE, 2); set_dialog_position(dlg, x, y); gtk_widget_show_all(dlg); res_id = ndialog_run(dlg); switch (res_id) { case GTK_RESPONSE_OK: s = combo_box_entry_get_text(combo); if (s) { *r = g_strdup(s); } else { *r = NULL; } data = IDOK; break; default: data = IDCANCEL; break; } get_dialog_position(dlg, x, y); gtk_widget_destroy(dlg); reset_event(); return data; } int DialogSpinEntry(GtkWidget *parent, const char *title, const char *caption, double min, double max, double inc, double *r, int *x, int *y) { GtkWidget *dlg, *spin; GtkBox *vbox; int data, n; gint res_id; double prec; dlg = gtk_dialog_new_with_buttons(title, GTK_WINDOW(parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_OK); gtk_window_set_resizable(GTK_WINDOW(dlg), FALSE); vbox = GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))); if (caption) { GtkWidget *label; label = gtk_label_new(caption); gtk_box_pack_start(vbox, label, FALSE, FALSE, 5); } if (inc == 0) inc = 1; spin = gtk_spin_button_new_with_range(min, max, inc); gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(spin), TRUE); gtk_spin_button_set_value(GTK_SPIN_BUTTON(spin), *r); gtk_box_pack_start(vbox, spin, FALSE, FALSE, 2); gtk_entry_set_activates_default(GTK_ENTRY(spin), TRUE); prec = log10(fabs(inc)); if (prec < 0) { n = ceil(- prec); } else { n = 0; } gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spin), n); set_dialog_position(dlg, x, y); gtk_widget_show_all(dlg); res_id = ndialog_run(dlg); switch (res_id) { case GTK_RESPONSE_OK: *r = gtk_spin_button_get_value(GTK_SPIN_BUTTON(spin)); data = IDOK; break; default: data = IDCANCEL; break; } get_dialog_position(dlg, x, y); gtk_widget_destroy(dlg); reset_event(); return data; } int DialogCheck(GtkWidget *parent, const char *title, const char *caption, struct narray *array, int *r, int *x, int *y) { GtkWidget *dlg, *btn, **btn_ary; GtkBox *vbox; int data; gint res_id; char **d; int i, anum; d = arraydata(array); anum = arraynum(array); btn_ary = g_malloc(anum * sizeof(*btn_ary)); if (btn_ary == NULL) return IDCANCEL; dlg = gtk_dialog_new_with_buttons(title, GTK_WINDOW(parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_OK); gtk_window_set_resizable(GTK_WINDOW(dlg), FALSE); vbox = GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))); if (caption) { GtkWidget *label; label = gtk_label_new(caption); gtk_box_pack_start(vbox, label, FALSE, FALSE, 5); } btn = NULL; for (i = 0; i < anum; i++) { btn = gtk_check_button_new_with_mnemonic(d[i]); gtk_box_pack_start(vbox, btn, FALSE, FALSE, 2); btn_ary[i] = btn; } for (i = 0; i < anum; i++) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(btn_ary[i]), r[i]); } set_dialog_position(dlg, x, y); gtk_widget_show_all(dlg); res_id = ndialog_run(dlg); switch (res_id) { case GTK_RESPONSE_OK: for (i = 0; i < anum; i++) { r[i] = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(btn_ary[i])); } data = IDOK; break; default: data = IDCANCEL; break; } g_free(btn_ary); get_dialog_position(dlg, x, y); gtk_widget_destroy(dlg); reset_event(); return data; } static void free_str_list(GSList *top) { int i, n; GSList *list; n = g_slist_length(top); for (i = 0, list = top; i < n; i++, list = list->next) { g_free(list->data); } g_slist_free(top); } static void fsok(GtkWidget *dlg) { struct nGetOpenFileData *data; char *file, *file2, **farray; const char *filter_name; int i, k, len, n; GStatBuf buf; GSList *top, *list; GtkFileFilter *filter; data = &FileSelection; top = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(dlg)); filter = gtk_file_chooser_get_filter(GTK_FILE_CHOOSER(dlg)); if (filter) { filter_name = gtk_file_filter_get_name(filter); } else { filter_name = NULL; } if (filter_name == NULL || strcmp(filter_name, _("All")) == 0) { data->ext = NULL; } n = g_slist_length(top); farray = g_malloc(sizeof(*farray) * (n + 1)); if (farray == NULL) { free_str_list(top); return; } data->file = farray; k = 0; for (list = top; list; list = list->next) { char *tmp; tmp = (char *) list->data; if (tmp == NULL || strlen(tmp) < 1) { gdk_beep(); continue; } file = get_utf8_filename(tmp); for (i = strlen(file) - 1; (i > 0) && (file[i] != '/') && (file[i] != '.'); i--); if ((file[i] != '.') && data->ext) { len = strlen(data->ext) + 1; } else { len = 0; } if (len) { file2 = g_strdup_printf("%s.%s", file, data->ext); g_free(file); } else { file2 = file; } if (file2) { if (data->mustexist) { if ((nstat(file2, &buf) != 0) || ((buf.st_mode & S_IFMT) != S_IFREG) || (naccess(file2, R_OK) != 0)) { gdk_beep(); error22(NULL, 0, "I/O error", file2); g_free(file2); continue; } } else { if ((nstat(file2, &buf) == 0) && ((buf.st_mode & S_IFMT) != S_IFREG)) { gdk_beep(); error22(NULL, 0, "I/O error", file2); g_free(file2); continue; } } farray[k] = file2; k++; } } if (k == 0) return; if (data->changedir && k > 0) { data->chdir = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data->chdir_cb)); if (data->chdir && data->init_dir) { char *dir; g_free(*(data->init_dir)); dir = g_path_get_dirname(farray[0]); *(data->init_dir) = dir; } } farray[k] = NULL; free_str_list(top); data->ret = IDOK; } static void file_dialog_set_current_neme(GtkWidget *dlg, const char *full_name) { char *name; if (dlg == NULL || full_name == NULL) return; name = getbasename(full_name); if (name) { gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dlg), name); g_free(name); } } static int check_overwrite(GtkWidget *parent, const char *filename) { int r; char *buf; if (filename == NULL || naccess(filename, W_OK)) return 0; buf = g_strdup_printf(_("`%s'\n\nOverwrite existing file?"), CHK_STR(filename)); r = message_box(parent, buf, "Driver", RESPONS_YESNO); g_free(buf); return r != IDYES; } static char * get_filename_with_ext(const char *basename, const char *ext) { char *filename; int len, ext_len, i; if (basename == NULL) { return NULL; } if (ext == NULL || ext[0] == '\0') { return g_strdup(basename); } ext_len = strlen(ext); len = strlen(basename); i = len - ext_len; if (i > 0 && g_strcmp0(basename + i, ext) == 0 && basename[i - 1] == '.') { return g_strdup(basename); } filename = g_strdup_printf("%s%s%s", basename, (basename[len -1] == '.') ? "" : ".", ext); return filename; } static int FileSelectionDialog(GtkWidget *parent, int type, char *stock) { struct nGetOpenFileData *data; GtkWidget *dlg, *rc; GtkFileFilter *filter; char *fname; data = &FileSelection; data->parent = (parent) ? parent : TopLevel; dlg = gtk_file_chooser_dialog_new(data->title, GTK_WINDOW(data->parent), type, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, stock, GTK_RESPONSE_ACCEPT, NULL); rc = gtk_check_button_new_with_mnemonic(_("_Change current directory")); gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))), rc, FALSE, FALSE, 5); data->chdir_cb = rc; gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dlg), data->multi); data->widget = dlg; if (data->ext) { char *filter_str, *filter_name, *ext_name; filter_str = g_strdup_printf("*.%s", data->ext); ext_name = g_ascii_strup(data->ext, -1); filter_name = g_strdup_printf(_("%s file (*.%s)"), ext_name, data->ext); g_free(ext_name); filter = gtk_file_filter_new(); gtk_file_filter_add_pattern(filter, filter_str); gtk_file_filter_set_name(filter, filter_name); gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dlg), filter); g_free(filter_str); g_free(filter_name); filter = gtk_file_filter_new(); gtk_file_filter_add_pattern(filter, "*"); gtk_file_filter_set_name(filter, _("All")); gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dlg), filter); } if (data->init_dir && *(data->init_dir)) { gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dlg), *(data->init_dir)); } gtk_widget_show_all(dlg); if (data->changedir && data->init_dir) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(data->chdir_cb), data->chdir); } else { gtk_widget_hide(data->chdir_cb); } fname = get_filename_with_ext(data->init_file, data->ext); if (fname) { if (type == GTK_FILE_CHOOSER_ACTION_SAVE) { #ifdef WINDOWS char *tmp; tmp = g_locale_from_utf8(fname, -1, NULL, NULL, NULL); if (tmp) { file_dialog_set_current_neme(dlg, tmp); g_free(tmp); } #else /* WINDOWS */ file_dialog_set_current_neme(dlg, fname); #endif /* WINDOWS */ } else { gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dlg), fname); } g_free(fname); } data->ret = IDCANCEL; while (1) { if (ndialog_run(dlg) != GTK_RESPONSE_ACCEPT) break; fsok(dlg); if (data->ret == IDOK && type == GTK_FILE_CHOOSER_ACTION_SAVE) { file_dialog_set_current_neme(dlg, FileSelection.file[0]); if (! data->overwrite && check_overwrite(dlg, FileSelection.file[0])) { data->ret = IDCANCEL; continue; } } break; } gtk_widget_destroy(dlg); reset_event(); data->widget = NULL; return data->ret; } int nGetOpenFileNameMulti(GtkWidget * parent, char *title, char *defext, char **init_dir, const char *init_file, char ***file, int chd) { int ret; FileSelection.title = title; FileSelection.init_dir = init_dir; FileSelection.init_file = init_file; FileSelection.file = NULL; FileSelection.chdir = chd; FileSelection.ext = defext; FileSelection.mustexist = TRUE; FileSelection.overwrite = FALSE; FileSelection.multi = TRUE; FileSelection.changedir = TRUE; ret = FileSelectionDialog(parent, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_OPEN); if (ret == IDOK) { *file = FileSelection.file; if (FileSelection.chdir && init_dir && nchdir(*init_dir)) { ErrorMessage(); } } else { *file = NULL; } return ret; } int nGetOpenFileName(GtkWidget *parent, char *title, char *defext, char **init_dir, const char *init_file, char **file, int exist, int chd) { int ret; FileSelection.title = title; FileSelection.init_dir = init_dir; FileSelection.init_file = init_file; FileSelection.file = NULL; FileSelection.chdir = chd; FileSelection.ext = defext; FileSelection.mustexist = exist; FileSelection.overwrite = FALSE; FileSelection.multi = FALSE; FileSelection.changedir = TRUE; ret = FileSelectionDialog(parent, (exist) ? GTK_FILE_CHOOSER_ACTION_OPEN : GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_OPEN); if (ret == IDOK) { *file = FileSelection.file[0]; g_free(FileSelection.file); if (FileSelection.chdir && init_dir && nchdir(*init_dir)) { ErrorMessage(); } } else { *file = NULL; } return ret; } int nGetSaveFileName(GtkWidget * parent, char *title, char *defext, char **init_dir, const char *init_file, char **file, int overwrite, int chd) { int ret; FileSelection.title = title; FileSelection.init_dir = init_dir; FileSelection.init_file = init_file; FileSelection.file = NULL; FileSelection.chdir = chd; FileSelection.ext = defext; FileSelection.mustexist = FALSE; FileSelection.overwrite = overwrite; FileSelection.multi = FALSE; FileSelection.changedir = TRUE; ret = FileSelectionDialog(parent, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_SAVE); if (ret == IDOK) { *file = FileSelection.file[0]; g_free(FileSelection.file); if (FileSelection.chdir && init_dir && nchdir(*init_dir)) { ErrorMessage(); } } else { *file = NULL; } return ret; } void get_window_geometry(GtkWidget *win, gint *x, gint *y, gint *w, gint *h) { gtk_window_get_size(GTK_WINDOW(win), w, h); gtk_window_get_position(GTK_WINDOW(win), x, y); } ngraph-gtk-6.06.13/src/gtk/x11opt_proto.h0000644000175000017500000001655312241111703014760 00000000000000#ifndef HAVE_UPDATE_FUNC static void CREATE_NAME(Pref, DialogUpdate)(GtkWidget *w, gpointer client_data) { struct CREATE_NAME(Pref, Dialog) *d; int a, j; struct LIST_TYPE *fcur; d = (struct CREATE_NAME(Pref, Dialog) *) client_data; a = list_store_get_selected_index(d->list); j = 0; fcur = LIST_ROOT; while (fcur) { if (j == a) break; fcur = fcur->next; j++; } #ifdef SET_DIALOG if (fcur) { CREATE_NAME(Set, Dialog)(&SET_DIALOG, fcur); DialogExecute(d->widget, &SET_DIALOG); CREATE_NAME(Pref, DialogSetupItem)(d); } #endif } #endif #ifdef LIST_INIT static void CREATE_NAME(Pref, DialogAdd)(GtkWidget *w, gpointer client_data) { struct LIST_TYPE *fcur, *fprev, *fnew; struct CREATE_NAME(Pref, Dialog) *d; d = (struct CREATE_NAME(Pref, Dialog) *) client_data; fprev = NULL; fcur = LIST_ROOT; while (fcur) { fprev = fcur; fcur = fcur->next; } fnew = (struct LIST_TYPE *) g_malloc(sizeof(struct LIST_TYPE)); if (fnew == NULL) { return; } LIST_INIT(fnew); if (fprev == NULL) { LIST_ROOT = fnew; } else { fprev->next = fnew; } CREATE_NAME(Set, Dialog)(&SET_DIALOG, fnew); if (DialogExecute(d->widget, &SET_DIALOG) != IDOK) { if (fprev == NULL) { LIST_ROOT = NULL; } else { fprev->next = NULL; } g_free(fnew); } CREATE_NAME(Pref, DialogSetupItem)(d); } #endif #ifdef LIST_FREE static void CREATE_NAME(Pref, DialogRemove)(GtkWidget *w, gpointer client_data) { int a, j; struct LIST_TYPE *fcur, *fprev, *fdel; struct CREATE_NAME(Pref, Dialog) *d; d = (struct CREATE_NAME(Pref, Dialog) *) client_data; a = list_store_get_selected_index(d->list); j = 0; fprev = NULL; fcur = LIST_ROOT; while (fcur) { if (j == a) { fdel = fcur; if (fprev == NULL) LIST_ROOT = fcur->next; else fprev->next = fcur->next; fcur = fcur->next; LIST_FREE(fdel); CREATE_NAME(Pref, DialogSetupItem)(d); break; } else { fprev = fcur; fcur = fcur->next; } j++; } } #endif static int CREATE_NAME(Pref, DialogMoveSub)(struct CREATE_NAME(Pref, Dialog) *d, int a) { int j, n; struct LIST_TYPE *fcur, *fprev, *next; n = list_store_get_num(d->list); if (a < 0 || a >= n - 1) return -1; j = 0; fprev = NULL; fcur = LIST_ROOT; while (fcur) { if (j == a) { next = fcur->next; if (next == NULL) { break; } else if (fprev == NULL) { LIST_ROOT = next; } else { fprev->next = next; } fcur->next = next->next; next->next = fcur; break; } fprev = fcur; fcur = fcur->next; j++; } CREATE_NAME(Pref, DialogSetupItem)(d); return a; } static void CREATE_NAME(Pref, DialogUp)(GtkWidget *w, gpointer client_data) { struct CREATE_NAME(Pref, Dialog) *d; int a; d = (struct CREATE_NAME(Pref, Dialog) *) client_data; a = list_store_get_selected_index(d->list); a = CREATE_NAME(Pref, DialogMoveSub)(d, a - 1); if (a >= 0) { list_store_select_nth(d->list, a); } } static void CREATE_NAME(Pref, DialogDown)(GtkWidget *w, gpointer client_data) { struct CREATE_NAME(Pref, Dialog) *d; int a; d = (struct CREATE_NAME(Pref, Dialog) *) client_data; a = list_store_get_selected_index(d->list); a = CREATE_NAME(Pref, DialogMoveSub)(d, a); if (a >= 0) { list_store_select_nth(d->list, a + 1); } } static gboolean CREATE_NAME(Pref, ListDefailtCb)(GtkWidget *w, GdkEventAny *e, gpointer user_data) { struct CREATE_NAME(Pref, Dialog) *d; int i; d = (struct CREATE_NAME(Pref, Dialog) *) user_data; i = list_store_get_selected_index(d->list); if (i < 0) return FALSE; if (e->type == GDK_2BUTTON_PRESS) { CREATE_NAME(Pref, DialogUpdate)(NULL, d); return TRUE; } else if (e->type == GDK_KEY_PRESS) { GdkEventKey *ke; ke = (GdkEventKey *) e; switch (ke->keyval) { case GDK_KEY_Return: CREATE_NAME(Pref, DialogUpdate)(NULL, d); return TRUE; break; case GDK_KEY_Up: if (ke->state & GDK_SHIFT_MASK) { CREATE_NAME(Pref, DialogUp)(NULL, d); return TRUE; } break; case GDK_KEY_Down: if (ke->state & GDK_SHIFT_MASK) { CREATE_NAME(Pref, DialogDown)(NULL, d); return TRUE; } break; case GDK_KEY_Delete: CREATE_NAME(Pref, DialogRemove)(NULL, d); return TRUE; break; } } return FALSE; } static gboolean CREATE_NAME(Pref, ListSelCb)(GtkTreeSelection *sel, gpointer user_data) { int a, n; struct CREATE_NAME(Pref, Dialog) *d; d = (struct CREATE_NAME(Pref, Dialog) *) user_data; a = list_store_get_selected_index(d->list); n = list_store_get_num(d->list); gtk_widget_set_sensitive(d->update_b, a >= 0); gtk_widget_set_sensitive(d->del_b, a >= 0); gtk_widget_set_sensitive(d->up_b, a > 0); gtk_widget_set_sensitive(d->down_b, a >= 0 && a < n - 1); return FALSE; } static void CREATE_NAME(Pref, DialogCreateWidgets)(struct CREATE_NAME(Pref, Dialog) *d, GtkWidget *win_box, int n, n_list_store * list) { GtkWidget *w, *hbox, *vbox, *swin; GtkTreeSelection *sel; hbox = gtk_hbox_new(FALSE, 4); swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); w = list_store_create(n, list); d->list = w; g_signal_connect(d->list, "button-press-event", G_CALLBACK(CREATE_NAME(Pref, ListDefailtCb)), d); g_signal_connect(d->list, "key-press-event", G_CALLBACK(CREATE_NAME(Pref, ListDefailtCb)), d); gtk_container_add(GTK_CONTAINER(swin), w); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); g_signal_connect(sel, "changed", G_CALLBACK(CREATE_NAME(Pref, ListSelCb)), d); w = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(w), swin); if (win_box) { gtk_box_pack_start(GTK_BOX(win_box), w, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(hbox), win_box, TRUE, TRUE, 4); } else { gtk_box_pack_start(GTK_BOX(hbox), w, TRUE, TRUE, 4); } vbox = gtk_vbox_new(FALSE, 4); w = gtk_button_new_from_stock(GTK_STOCK_ADD); g_signal_connect(w, "clicked", G_CALLBACK(CREATE_NAME(Pref, DialogAdd)), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_button_new_from_stock(GTK_STOCK_PREFERENCES); g_signal_connect(w, "clicked", G_CALLBACK(CREATE_NAME(Pref, DialogUpdate)), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_widget_set_sensitive(w, FALSE); d->update_b = w; w = gtk_button_new_from_stock(GTK_STOCK_REMOVE); g_signal_connect(w, "clicked", G_CALLBACK(CREATE_NAME(Pref, DialogRemove)), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_widget_set_sensitive(w, FALSE); d->del_b = w; w = gtk_button_new_from_stock(GTK_STOCK_GO_DOWN); g_signal_connect(w, "clicked", G_CALLBACK(CREATE_NAME(Pref, DialogDown)), d); gtk_box_pack_end(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_widget_set_sensitive(w, FALSE); d->down_b = w; w = gtk_button_new_from_stock(GTK_STOCK_GO_UP); g_signal_connect(w, "clicked", G_CALLBACK(CREATE_NAME(Pref, DialogUp)), d); gtk_box_pack_end(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_widget_set_sensitive(w, FALSE); d->up_b = w; gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, TRUE, TRUE, 4); d->show_cancel = FALSE; d->ok_button = GTK_STOCK_CLOSE; } #undef LIST_TYPE #undef LIST_ROOT #undef LIST_FREE #undef LIST_INIT #undef SET_DIALOG #undef CREATE_NAME #undef HAVE_UPDATE_FUNC ngraph-gtk-6.06.13/src/gtk/ogra2gtkprint.c0000644000175000017500000000466712241111703015174 00000000000000/* * $Id: ogra2gtkprint.c,v 1.6 2008-09-18 08:13:43 hito Exp $ */ #include "gtk_common.h" #include #include #include #include #include #include #include #include #include #include "mathfn.h" #include "object.h" #include "ioutil.h" #include "x11gui.h" #include "ogra2cairo.h" #define NAME "gra2gtkprint" #define PARENT "gra2cairo" #define OVERSION "1.00.00" #ifndef M_PI #define M_PI 3.141592 #endif static int gra2gtkprint_init(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) { return 1; } return 0; } static int gra2gtkprint_done(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gra2cairo_local *local; _getobj(obj, "_local", inst, &local); if (local && local->cairo) { gra2cairo_draw_path(local); local->cairo = NULL; /* the instance of cairo is created by GtkPrintContext */ } if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; return 0; } static int create_cairo(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { cairo_t *cairo; int dpi, id, r; struct gra2cairo_local *local; GtkPrintContext *gpc; gpc = GTK_PRINT_CONTEXT(argv[2]); if (gpc == NULL) { error(obj, CAIRO_STATUS_NULL_POINTER + 100); return 1; } cairo = gtk_print_context_get_cairo_context(gpc); r = cairo_status(cairo); if (r != CAIRO_STATUS_SUCCESS) { error(obj, r + 100); return 1; } _getobj(obj, "id", inst, &id); dpi = gtk_print_context_get_dpi_x(gpc); if (putobj(obj, "dpix", id, &dpi) < 0) { error(obj, ERRFIELD); return 1; } dpi = gtk_print_context_get_dpi_y(gpc); if (putobj(obj, "dpiy", id, &dpi) < 0) { error(obj, ERRFIELD); return 1; } _getobj(obj, "_local", inst, &local); local->cairo = cairo; return 0; } static struct objtable gra2gtkprint[] = { {"init", NVFUNC, NEXEC, gra2gtkprint_init, NULL, 0}, {"done", NVFUNC, NEXEC, gra2gtkprint_done, NULL, 0}, {"_context", NVFUNC, 0, create_cairo, NULL,0}, }; #define TBLNUM (sizeof(gra2gtkprint) / sizeof(*gra2gtkprint)) void * addgra2gtkprint() /* addgra2gtkprint() returns NULL on error */ { return addobject(NAME, NULL, PARENT, OVERSION, TBLNUM, gra2gtkprint, Gra2CairoErrMsgNum, Gra2CairoErrMsgs, NULL, NULL); } ngraph-gtk-6.06.13/src/gtk/ogra2x11.h0000644000175000017500000000164412241111703013740 00000000000000/* * $Id: ogra2x11.h,v 1.2 2008-12-31 12:30:49 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ void *addgra2gtk(void); ngraph-gtk-6.06.13/src/gtk/gtk_combo.h0000644000175000017500000000125512241111703014336 00000000000000/* * $Id: gtk_combo.h,v 1.1.1.1 2008-05-29 09:37:33 hito Exp $ */ #ifndef GTKCOMBO_HEADER #define GTKCOMBO_HEADER GtkWidget *combo_box_create(void); GtkWidget *combo_box_entry_create(void); void combo_box_entry_set_text(GtkWidget *cbox, char *str); const char *combo_box_entry_get_text(GtkWidget *cbox); int combo_box_get_active(GtkWidget *cbox); char *combo_box_get_active_text(GtkWidget *cbox); void combo_box_set_active(GtkWidget *cbox, int i); void combo_box_clear(GtkWidget *cbox); int combo_box_get_num(GtkWidget *cbox); void combo_box_append_text(GtkWidget *cbox, char *str); int combo_box_get_selected_row(GtkWidget *view, gchar *path, GtkTreeIter *iter, int col); #endif ngraph-gtk-6.06.13/src/gtk/ox11menu.h0000644000175000017500000001244012241111703014045 00000000000000/* * $Id: ox11menu.h,v 1.37 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for GTK". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for GTK" 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. * * "Ngraph for GTK" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef _O_X11_MENU_HEADER #define _O_X11_MENU_HEADER #define LINETOLIMIT 500 #define DEFAULT_GEOMETRY -100000 #define ERRRUN 100 #define ERRCMAP 101 #define ERRFONT 102 #define HIST_SIZE_MAX 10000 #define INFOWIN_SIZE_MAX 10000 extern int Globallock; extern struct savedstdio GtkIOSave; enum paper_id { PAPER_ID_A3, PAPER_ID_A4, PAPER_ID_A5, PAPER_ID_B4, PAPER_ID_B5, PAPER_ID_LETTER, PAPER_ID_LEGAL, PAPER_ID_CUSTOM, }; struct extprinter { char *name; char *driver; char *ext; char *option; struct extprinter *next; }; struct script { char *name; char *script; char *description; char *option; struct script *next; }; struct prnprinter { char *name; char *driver; char *option; char *prn; struct prnprinter *next; }; struct character_map_list { char *title, *data; struct character_map_list *next; }; struct menulocal { cairo_surface_t *pix; int redrawf, redrawf_num; int windpi, data_head_lines; int grid; #if GTK_CHECK_VERSION(3, 0, 0) cairo_region_t *region; #else GdkRegion *region; #endif int lock; struct gra2cairo_local *local; int antialias; char *editor, *browser, *help_browser; struct objlist *obj; N_VALUE *inst; struct objlist *GRAobj; int GRAoid; int GC; int PaperWidth, PaperHeight, PaperLandscape; char *PaperName, *Palette; enum paper_id PaperId; int LeftMargin, TopMargin; int PaperZoom; struct narray drawrable; struct extprinter *extprinterroot; struct script *scriptroot, *addin_list; int menuheight, menuwidth, menux, menuy; int fileheight, filewidth, filex, filey, fileopen; int axisheight, axiswidth, axisx, axisy, axisopen; int legendheight, legendwidth, legendx, legendy, legendopen; int mergeheight, mergewidth, mergex, mergey, mergeopen; int dialogheight, dialogwidth, dialogx, dialogy, dialogopen; int coordheight, coordwidth, coordx, coordy, coordopen; int exwindpi, exwinwidth, exwinheight, exwin_use_external; char *fileopendir, *graphloaddir, *expanddir, *coordwin_font, *infowin_font, *file_preview_font; int expand, loadpath, expandtofullpath, changedirectory, savehistory; int savepath, savewithdata, savewithmerge; GtkRecentManager *ngpfilelist; int scriptconsole, addinconsole; int statusbar, sidebar, ruler, scrollbar, ctoolbar, ptoolbar, show_cross, showtip, preserve_width; int hist_size, info_size; double bg_r, bg_g, bg_b; int focus_frame_type, use_opacity, select_data; int side_pane1_pos, side_pane2_pos, side_pane3_pos, main_pane_pos, single_window_mode; int file_tab, axis_tab, merge_tab, path_tab, rectangle_tab, arc_tab, mark_tab, text_tab; #ifdef WINDOWS int emf_dpi; #endif int png_dpi, ps_version, svg_version; struct character_map_list *char_map; }; extern struct menulocal Menulocal; enum SAVE_CONFIG_TYPE { SAVE_CONFIG_TYPE_GEOMETRY = 0x0001, SAVE_CONFIG_TYPE_CHILD_GEOMETRY = 0x0002, SAVE_CONFIG_TYPE_VIEWER = 0x0004, SAVE_CONFIG_TYPE_EXTERNAL_DRIVER = 0x0008, SAVE_CONFIG_TYPE_ADDIN_SCRIPT = 0x0010, SAVE_CONFIG_TYPE_MISC = 0x0020, SAVE_CONFIG_TYPE_EXTERNAL_VIEWER = 0x0040, SAVE_CONFIG_TYPE_FONTS = 0x0080, SAVE_CONFIG_TYPE_TOGGLE_VIEW = 0x0100, SAVE_CONFIG_TYPE_OTHERS = 0x0200, }; #define SAVE_CONFIG_TYPE_X11MENU (SAVE_CONFIG_TYPE_GEOMETRY \ | SAVE_CONFIG_TYPE_CHILD_GEOMETRY \ | SAVE_CONFIG_TYPE_VIEWER \ | SAVE_CONFIG_TYPE_EXTERNAL_VIEWER \ | SAVE_CONFIG_TYPE_EXTERNAL_DRIVER \ | SAVE_CONFIG_TYPE_ADDIN_SCRIPT \ | SAVE_CONFIG_TYPE_MISC) void mx_redraw(struct objlist *obj, N_VALUE *inst); #if GTK_CHECK_VERSION(3, 0, 0) void mx_clear(cairo_region_t *region); #else void mx_clear(GdkRegion *region); #endif void mx_inslist(struct objlist *obj, N_VALUE *inst, struct objlist *aobj, N_VALUE *ainst, char *afield, int addn); void mx_dellist(struct objlist *obj, N_VALUE *inst, int deln); void mgtkdisplaydialog(const char *str); void mgtkdisplaystatus(const char *str); int mgtkputstderr(const char *s); int mgtkprintfstderr(char *fmt, ...); int mgtkinterrupt(void); int mgtkinputyn(const char *mes); int mgtkputstdout(const char *s); int mgtkprintfstdout(char *fmt, ...); void initwindowconfig(void); int mgtkwindowconfig(void); void menuadddrawrable(struct objlist *parent, struct narray *drawrable); int get_graph_modified(void); void set_graph_modified(void); void reset_graph_modified(void); int menu_save_config(int type); void main_window_redraw(void); #endif ngraph-gtk-6.06.13/src/gtk/x11axis.c0000644000175000017500000030120512241111703013661 00000000000000/* * $Id: x11axis.c,v 1.81 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include "object.h" #include "nstring.h" #include "mathfn.h" #include "gra.h" #include "axis.h" #include "gtk_liststore.h" #include "gtk_subwin.h" #include "gtk_combo.h" #include "gtk_widget.h" #include "x11bitmp.h" #include "x11gui.h" #include "x11dialg.h" #include "x11menu.h" #include "ox11menu.h" #include "x11graph.h" #include "x11file.h" #include "x11view.h" #include "x11axis.h" #include "x11commn.h" static n_list_store Alist[] = { {" ", G_TYPE_BOOLEAN, TRUE, TRUE, "hidden"}, {"#", G_TYPE_INT, TRUE, FALSE, "id"}, {N_("name"), G_TYPE_STRING, TRUE, FALSE, "group"}, {N_("min"), G_TYPE_STRING, TRUE, TRUE, "min"}, {N_("max"), G_TYPE_STRING, TRUE, TRUE, "max"}, {N_("inc"), G_TYPE_STRING, TRUE, TRUE, "inc"}, {N_("type"), G_TYPE_PARAM, TRUE, TRUE, "type"}, {"x", G_TYPE_DOUBLE, TRUE, TRUE, "x", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {"y", G_TYPE_DOUBLE, TRUE, TRUE, "y", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {N_("dir"), G_TYPE_DOUBLE, TRUE, TRUE, "direction", 0, 36000, 100, 1500}, {N_("len"), G_TYPE_DOUBLE, TRUE, TRUE, "length", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {"^#", G_TYPE_INT, TRUE, FALSE, "oid"}, }; #define AXIS_WIN_COL_NUM (sizeof(Alist)/sizeof(*Alist)) #define AXIS_WIN_COL_OID (AXIS_WIN_COL_NUM - 1) #define AXIS_WIN_COL_HIDDEN 0 #define AXIS_WIN_COL_ID 1 #define AXIS_WIN_COL_NAME 2 #define AXIS_WIN_COL_MIN 3 #define AXIS_WIN_COL_MAX 4 #define AXIS_WIN_COL_INC 5 #define AXIS_WIN_COL_TYPE 6 #define AXIS_WIN_COL_X 7 #define AXIS_WIN_COL_Y 8 static void axiswin_scale_clear(GtkMenuItem *item, gpointer user_data); static void axis_delete_popup_func(GtkMenuItem *w, gpointer client_data); static void AxisWinAxisTop(GtkWidget *w, gpointer client_data); static void AxisWinAxisUp(GtkWidget *w, gpointer client_data); static void AxisWinAxisDown(GtkWidget *w, gpointer client_data); static void AxisWinAxisLast(GtkWidget *w, gpointer client_data); static struct subwin_popup_list Popup_list[] = { {N_("_Duplicate"), G_CALLBACK(list_sub_window_copy), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_DELETE, G_CALLBACK(axis_delete_popup_func), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {NULL, NULL, 0, NULL, POP_UP_MENU_ITEM_TYPE_SEPARATOR}, {N_("_Focus"), G_CALLBACK(list_sub_window_focus), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_CLEAR, G_CALLBACK(axiswin_scale_clear), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_PROPERTIES, G_CALLBACK(list_sub_window_update), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {NULL, NULL, 0, NULL, POP_UP_MENU_ITEM_TYPE_SEPARATOR}, {GTK_STOCK_GOTO_TOP, G_CALLBACK(AxisWinAxisTop), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GO_UP, G_CALLBACK(AxisWinAxisUp), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GO_DOWN, G_CALLBACK(AxisWinAxisDown), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GOTO_BOTTOM, G_CALLBACK(AxisWinAxisLast), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, }; #define POPUP_ITEM_NUM (sizeof(Popup_list) / sizeof(*Popup_list)) #define POPUP_ITEM_TOP 7 #define POPUP_ITEM_UP 8 #define POPUP_ITEM_DOWN 9 #define POPUP_ITEM_BOTTOM 10 #define ID_BUF_SIZE 16 #define TITLE_BUF_SIZE 128 static void axis_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row); static int check_axis_history(struct objlist *obj); #define TIME_FORMAT_STR N_( \ "%a The abbreviated weekday name.\n" \ "%A The full weekday name.\n" \ "%b The abbreviated month name.\n" \ "%B The full month name.\n" \ "%c Equivalent to %a %b %e %T %Y.\n" \ "%C The century number (year/100).\n" \ "%d The day of the month (01 to 31).\n" \ "%e The day of the month (1 to 31).\n" \ "%F Equivalent to %Y-%m-%d.\n" \ "%H The hour (00 to 23).\n" \ "%I The hour (01 to 12).\n" \ "%j The day of the year (001 to 366).\n" \ "%k The hour (0 to 23).\n" \ "%l The hour (1 to 12).\n" \ "%m The month (01 to 12).\n" \ "%M The minute (00 to 59).\n" \ "%n A newline character.\n" \ "%p Either \"AM\" or \"PM\".\n" \ "%P Either \"am\" or \"pm\".\n" \ "%r Equivalent to %I:%M:%S %p.\n" \ "%R Equivalent to %H:%M.\n" \ "%S The second (00 to 60).\n" \ "%T Equivalent to %H:%M:%S.\n" \ "%u The day of the week, Monday being 1 (1 to 7).\n" \ "%w The day of the week, Sunday being 0 (0 to 6).\n" \ "%y The year without a century (00 to 99).\n" \ "%Y The year including the century.\n" \ "%+ Equivalent to %a %b %e %T GMT %Y.\n" \ "%% A literal '%' character.") void axis_scale_push(struct objlist *obj, int id) { int n; exeobj(obj, "scale_push", id, 0, NULL); n = check_axis_history(obj); set_axis_undo_button_sensitivity(n > 0); } char * AxisCB(struct objlist *obj, int id) { char *s, *valstr, *name; int dir; getobj(obj, "direction", id, 0, NULL, &dir); getobj(obj, "group", id, 0, NULL, &name); s = NULL; name = CHK_STR(name); sgetobjfield(obj, id, "type", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { s = g_strdup_printf("%-10s %.6s %s:%.2f", name, _(valstr), _("dir"), dir / 100.0); g_free(valstr); } return s; } char * AxisHistoryCB(struct objlist *obj, int id) { int num; struct narray *array; getobj(obj, "scale_history", id, 0, NULL, &array); num = arraynum(array) / 3; if (num == 0) return NULL; return AxisCB(obj, id); } static char * GridCB(struct objlist *obj, int id) { char *s, *s1, *s2; getobj(obj, "axis_x", id, 0, NULL, &s1); getobj(obj, "axis_y", id, 0, NULL, &s2); s = g_strdup_printf("%.8s %.8s", (s1)? s1: "-----", (s2)? s2: "-----"); return s; } static void bg_button_toggled(GtkToggleButton *button, gpointer user_data) { struct GridDialog *d; gboolean state; d = (struct GridDialog *) user_data; state = gtk_toggle_button_get_active(button); set_widget_sensitivity_with_label(d->bcolor, state); } static void GridDialogSetupItem(GtkWidget *w, struct GridDialog *d, int id) { char *valstr; int i, j; int lastinst; struct objlist *aobj; char *name; aobj = getobject("axis"); lastinst = chkobjlastinst(aobj); combo_box_clear(d->axisx); combo_box_clear(d->axisy); for (j = 0; j <= lastinst; j++) { getobj(aobj, "group", j, 0, NULL, &name); name = CHK_STR(name); combo_box_append_text(d->axisx, name); combo_box_append_text(d->axisy, name); } sgetobjfield(d->Obj, id, "axis_x", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { for (i = 0; (valstr[i] != '\0') && (valstr[i] != ':'); i++); if (valstr[i] == ':') { i++; } combo_box_entry_set_text(d->axisx, valstr + i); g_free(valstr); } sgetobjfield(d->Obj, id, "axis_y", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { for (i = 0; (valstr[i] != '\0') && (valstr[i] != ':'); i++); if (valstr[i] == ':') { i++; } combo_box_entry_set_text(d->axisy, valstr + i); g_free(valstr); } SetWidgetFromObjField(d->draw_x, d->Obj, id, "grid_x"); SetWidgetFromObjField(d->draw_y, d->Obj, id, "grid_y"); for (i = 0; i < GRID_DIALOG_STYLE_NUM; i++) { char width[] = "width1", style[] = "style1"; style[sizeof(style) - 2] += i; SetStyleFromObjField(d->style[i], d->Obj, id, style); width[sizeof(width) - 2] += i; SetWidgetFromObjField(d->width[i], d->Obj, id, width); } SetWidgetFromObjField(d->background, d->Obj, id, "background"); bg_button_toggled(GTK_TOGGLE_BUTTON(d->background), d); set_color(d->color, d->Obj, id, NULL); set_color(d->bcolor, d->Obj, id, "B"); } static void grid_copy_clicked(GtkButton *btn, gpointer user_data) { int sel; struct GridDialog *d; d = (struct GridDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, GridCB); if (sel != -1) { GridDialogSetupItem(d->widget, d, sel); } } static void GridDialogAxis(GtkWidget *w, gpointer client_data) { char buf[10]; int a, oid; struct objlist *aobj; aobj = getobject("axis"); a = combo_box_get_active(w); if (a < 0) return; getobj(aobj, "oid", a, 0, NULL, &oid); snprintf(buf, sizeof(buf), "^%d", oid); combo_box_entry_set_text(w, buf); } static void gauge_syle_setup(struct GridDialog *d, GtkWidget *table, int n, int j) { GtkWidget *w; char buf[TITLE_BUF_SIZE]; if (n < 0 || n >= GRID_DIALOG_STYLE_NUM) return; snprintf(buf, sizeof(buf), _("_Style %d:"), n + 1); w = combo_box_entry_create(); add_widget_to_table_sub(table, w, buf, TRUE, 0, 1, 4, j); d->style[n] = w; snprintf(buf, sizeof(buf), _("_Width %d:"), n + 1); w = create_spin_entry_type(SPIN_BUTTON_TYPE_WIDTH, TRUE, TRUE); add_widget_to_table_sub(table, w, buf, FALSE, 2, 1, 4, j); d->width[n] = w; } static void GridDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *frame, *w, *hbox, *table; struct GridDialog *d; char title[TITLE_BUF_SIZE]; int i, j; d = (struct GridDialog *) data; snprintf(title, sizeof(title), _("Grid %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); d = (struct GridDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif j = 0; w = combo_box_entry_create(); add_widget_to_table(table, w, _("Axis (_X):"), FALSE, j++); g_signal_connect(w, "changed", G_CALLBACK(GridDialogAxis), NULL); d->axisx = w; w = gtk_check_button_new_with_mnemonic(_("draw _X grid")); add_widget_to_table(table, w, NULL, FALSE, j++); d->draw_x = w; w = combo_box_entry_create(); add_widget_to_table(table, w, _("Axis (_Y):"), FALSE, j++); g_signal_connect(w, "changed", G_CALLBACK(GridDialogAxis), NULL); d->axisy = w; w = gtk_check_button_new_with_mnemonic(_("draw _Y grid")); add_widget_to_table(table, w, NULL, FALSE, j++); d->draw_y = w; frame = gtk_frame_new(_("Axis")); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(hbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif j = 0; w = create_color_button(wi); add_widget_to_table(table, w, _("_Color:"), FALSE, j++); d->color = w; w = gtk_check_button_new_with_mnemonic(_("_Background")); add_widget_to_table(table, w, NULL, FALSE, j++); g_signal_connect(w, "toggled", G_CALLBACK(bg_button_toggled), d); d->background = w; w = create_color_button(wi); add_widget_to_table(table, w, _("_Background Color:"), FALSE, j++); d->bcolor = w; frame = gtk_frame_new(_("Color")); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 4, FALSE); #endif j = 0; for (i = 0; i < GRID_DIALOG_STYLE_NUM; i++) { gauge_syle_setup(d, table, i, j++); } frame = gtk_frame_new(_("Style")); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(d->vbox), frame, FALSE, FALSE, 4); add_copy_button_to_box(GTK_WIDGET(d->vbox), G_CALLBACK(grid_copy_clicked), d, "axisgrid"); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } GridDialogSetupItem(wi, d, d->Id); } static void GridDialogClose(GtkWidget *w, void *data) { struct GridDialog *d; int ret; int i; d = (struct GridDialog *) data; switch (d->ret) { case IDOK: break; default: return; } ret = d->ret; d->ret = IDLOOP; if (SetObjAxisFieldFromWidget(d->axisx, d->Obj, d->Id, "axis_x")) return; if (SetObjAxisFieldFromWidget(d->axisy, d->Obj, d->Id, "axis_y")) return; for (i = 0; i < GRID_DIALOG_STYLE_NUM; i++) { char width[] = "width1", style[] = "style1"; style[sizeof(style) - 2] += i; if (SetObjFieldFromStyle(d->style[i], d->Obj, d->Id, style)) return; width[sizeof(width) - 2] += i; if (SetObjFieldFromWidget(d->width[i], d->Obj, d->Id, width)) return; } if (SetObjFieldFromWidget(d->draw_x, d->Obj, d->Id, "grid_x")) return; if (SetObjFieldFromWidget(d->draw_y, d->Obj, d->Id, "grid_y")) return; if (SetObjFieldFromWidget(d->background, d->Obj, d->Id, "background")) return; if (putobj_color(d->color, d->Obj, d->Id, NULL)) return; if (putobj_color(d->bcolor, d->Obj, d->Id, "B")) return; d->ret = ret; } void GridDialog(struct GridDialog *data, struct objlist *obj, int id) { data->SetupWindow = GridDialogSetup; data->CloseWindow = GridDialogClose; data->Obj = obj; data->Id = id; } static void set_axis_id(GtkWidget *w, int id) { char buf[256]; if (id != -1) { snprintf(buf, sizeof(buf), "id:%d", id); } else { buf[0] = '\0'; } gtk_label_set_text(GTK_LABEL(w), buf); } static void SectionDialogSetupItem(GtkWidget *w, struct SectionDialog *d) { spin_entry_set_val(d->x, d->X); spin_entry_set_val(d->y, d->Y); set_axis_id(d->xid, d->IDX); set_axis_id(d->yid, d->IDY); set_axis_id(d->uid, d->IDU); set_axis_id(d->rid, d->IDR); set_axis_id(d->gid, *(d->IDG)); spin_entry_set_val(d->width, d->LenX); spin_entry_set_val(d->height, d->LenY); } static void SectionDialogAxisX(GtkWidget *w, gpointer client_data) { struct SectionDialog *d; d = (struct SectionDialog *) client_data; if (d->IDX >= 0) { AxisDialog(NgraphApp.AxisWin.data.data, d->IDX, -1); DialogExecute(d->widget, &DlgAxis); } } static void SectionDialogAxisY(GtkWidget *w, gpointer client_data) { struct SectionDialog *d; d = (struct SectionDialog *) client_data; if (d->IDY >= 0) { AxisDialog(NgraphApp.AxisWin.data.data, d->IDY, -1); DialogExecute(d->widget, &DlgAxis); } } static void SectionDialogAxisU(GtkWidget *w, gpointer client_data) { struct SectionDialog *d; d = (struct SectionDialog *) client_data; if (d->IDU >= 0) { AxisDialog(NgraphApp.AxisWin.data.data, d->IDU, -1); DialogExecute(d->widget, &DlgAxis); } } static void SectionDialogAxisR(GtkWidget *w, gpointer client_data) { struct SectionDialog *d; d = (struct SectionDialog *) client_data; if (d->IDR >= 0) { AxisDialog(NgraphApp.AxisWin.data.data, d->IDR, -1); DialogExecute(d->widget, &DlgAxis); } } static void SectionDialogGrid(GtkWidget *w, gpointer client_data) { struct SectionDialog *d; char *ref; int ret, oidx, oidy, create = FALSE; d = (struct SectionDialog *) client_data; if (*(d->IDG) == -1) { if ((*(d->IDG) = newobj(d->Obj2)) >= 0) { if ((ref = (char *) g_malloc(ID_BUF_SIZE)) != NULL) { getobj(d->Obj, "oid", d->IDX, 0, NULL, &oidx); snprintf(ref, ID_BUF_SIZE, "axis:^%d", oidx); putobj(d->Obj2, "axis_x", *(d->IDG), ref); } if ((ref = (char *) g_malloc(ID_BUF_SIZE)) != NULL) { getobj(d->Obj, "oid", d->IDY, 0, NULL, &oidy); snprintf(ref, ID_BUF_SIZE, "axis:^%d", oidy); putobj(d->Obj2, "axis_y", *(d->IDG), ref); } create = TRUE; } } if (*(d->IDG) >= 0) { GridDialog(&DlgGrid, d->Obj2, *(d->IDG)); ret = DialogExecute(d->widget, &DlgGrid); switch (ret) { case IDCANCEL: if (! create) break; case IDDELETE: delobj(d->Obj2, *(d->IDG)); *(d->IDG) = -1; if (create) break; default: set_graph_modified(); } } SectionDialogSetupItem(d->widget, d); } static void SectionDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *vbox, *table; struct SectionDialog *d; int i; d = (struct SectionDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_X:", FALSE, i++); d->x = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_Y:", FALSE, i++); d->y = w; gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("Graph _Width:"), FALSE, i++); d->width = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("Graph _Height:"), FALSE, i++); d->height = w; gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_button_new_with_mnemonic(_("_X axis")); g_signal_connect(w, "clicked", G_CALLBACK(SectionDialogAxisX), d); d->xaxis = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_label_new(NULL); d->xid = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_button_new_with_mnemonic(_("_Y axis")); g_signal_connect(w, "clicked", G_CALLBACK(SectionDialogAxisY), d); d->yaxis = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_label_new(NULL); d->yid = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_button_new_with_mnemonic(_("_U axis")); g_signal_connect(w, "clicked", G_CALLBACK(SectionDialogAxisU), d); d->uaxis = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_label_new(NULL); d->uid = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_button_new_with_mnemonic(_("_R axis")); g_signal_connect(w, "clicked", G_CALLBACK(SectionDialogAxisR), d); d->raxis = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_label_new(NULL); d->rid = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_button_new_with_mnemonic(_("_Grid")); g_signal_connect(w, "clicked", G_CALLBACK(SectionDialogGrid), d); d->grid = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_label_new(NULL); d->gid = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } SectionDialogSetupItem(wi, d); } static void SectionDialogClose(GtkWidget *w, void *data) { struct SectionDialog *d; int ret; int type; struct narray group; char *argv[2]; d = (struct SectionDialog *) data; if (d->ret != IDOK) return; ret = d->ret; d->ret = IDLOOP; d->X = spin_entry_get_val(d->x); d->Y = spin_entry_get_val(d->y); d->LenX = spin_entry_get_val(d->width); d->LenY = spin_entry_get_val(d->height); if ((d->X != d->X0) || (d->Y != d->Y0) || (d->LenX0 != d->LenX) || (d->LenY0 != d->LenY)) { arrayinit(&group, sizeof(int)); if (d->Section) type = 2; else type = 1; arrayadd(&group, &type); arrayadd(&group, &(d->IDX)); arrayadd(&group, &(d->IDY)); arrayadd(&group, &(d->IDU)); arrayadd(&group, &(d->IDR)); arrayadd(&group, &(d->X)); arrayadd(&group, &(d->Y)); arrayadd(&group, &(d->LenX)); arrayadd(&group, &(d->LenY)); argv[0] = (char *) &group; argv[1] = NULL; exeobj(d->Obj, "group_position", d->IDX, 1, argv); arraydel(&group); } d->ret = ret; } void SectionDialog(struct SectionDialog *data, int x, int y, int lenx, int leny, struct objlist *obj, int idx, int idy, int idu, int idr, struct objlist *obj2, int *idg, int section) { data->SetupWindow = SectionDialogSetup; data->CloseWindow = SectionDialogClose; data->X0 = data->X = x; data->Y0 = data->Y = y; data->LenX0 = data->LenX = lenx; data->LenY0 = data->LenY = leny; data->Obj = obj; data->Obj2 = obj2; data->IDX = idx; data->IDY = idy; data->IDU = idu; data->IDR = idr; data->IDG = idg; data->Section = section; data->MaxX = Menulocal.PaperWidth * (10000.0 / Menulocal.PaperZoom); data->MaxY = Menulocal.PaperHeight * (10000.0 / Menulocal.PaperZoom); } static void CrossDialogSetupItem(GtkWidget *w, struct CrossDialog *d) { spin_entry_set_val(d->x, d->X); spin_entry_set_val(d->y, d->Y); set_axis_id(d->xid, d->IDX); set_axis_id(d->yid, d->IDY); spin_entry_set_val(d->width, d->LenX); spin_entry_set_val(d->height, d->LenY); } static void CrossDialogAxisX(GtkWidget *w, gpointer client_data) { struct CrossDialog *d; d = (struct CrossDialog *) client_data; if (d->IDX >= 0) { AxisDialog(NgraphApp.AxisWin.data.data, d->IDX, -1); DialogExecute(d->widget, &DlgAxis); } } static void CrossDialogAxisY(GtkWidget *w, gpointer client_data) { struct CrossDialog *d; d = (struct CrossDialog *) client_data; if (d->IDY >= 0) { AxisDialog(NgraphApp.AxisWin.data.data, d->IDY, -1); DialogExecute(d->widget, &DlgAxis); } } static void CrossDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *vbox, *table; struct CrossDialog *d; int i; d = (struct CrossDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_X:", FALSE, i++); d->x = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_Y:", FALSE, i++); d->y = w; gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("Graph _Width:"), FALSE, i++); d->width = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("Graph _Height:"), FALSE, i++); d->height = w; gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_button_new_with_mnemonic(_("_X axis")); g_signal_connect(w, "clicked", G_CALLBACK(CrossDialogAxisX), d); d->xaxis = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_label_new(NULL); d->xid = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_button_new_with_mnemonic(_("_Y axis")); g_signal_connect(w, "clicked", G_CALLBACK(CrossDialogAxisY), d); d->yaxis = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_label_new(NULL); d->yid = w; gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } CrossDialogSetupItem(wi, d); } static void CrossDialogClose(GtkWidget *w, void *data) { struct CrossDialog *d; int ret; int type; struct narray group; char *argv[2]; d = (struct CrossDialog *) data; if (d->ret != IDOK) return; ret = d->ret; d->ret = IDLOOP; d->X = spin_entry_get_val(d->x); d->Y = spin_entry_get_val(d->y); d->LenX = spin_entry_get_val(d->width); d->LenY = spin_entry_get_val(d->height); if ((d->X != d->X0) || (d->Y != d->Y0) || (d->LenX != d->LenX0) || (d->LenY != d->LenY0)) { arrayinit(&group, sizeof(int)); type = 3; arrayadd(&group, &type); arrayadd(&group, &(d->IDX)); arrayadd(&group, &(d->IDY)); arrayadd(&group, &(d->X)); arrayadd(&group, &(d->Y)); arrayadd(&group, &(d->LenX)); arrayadd(&group, &(d->LenY)); argv[0] = (char *) &group; argv[1] = NULL; exeobj(d->Obj, "group_position", d->IDX, 1, argv); arraydel(&group); } if ((d->IDX != -1) && (d->IDY != -1)) { exeobj(d->Obj, "adjust", d->IDX, 0, NULL); exeobj(d->Obj, "adjust", d->IDY, 0, NULL); } d->ret = ret; } void CrossDialog(struct CrossDialog *data, int x, int y, int lenx, int leny, struct objlist *obj, int idx, int idy) { data->SetupWindow = CrossDialogSetup; data->CloseWindow = CrossDialogClose; data->X0 = data->X = x; data->Y0 = data->Y = y; data->LenX0 = data->LenX = lenx; data->LenY0 = data->LenY = leny; data->Obj = obj; data->IDX = idx; data->IDY = idy; data->MaxX = Menulocal.PaperWidth * (10000.0 / Menulocal.PaperZoom); data->MaxY = Menulocal.PaperHeight * (10000.0 / Menulocal.PaperZoom); } static void ZoomDialogSetupItem(GtkWidget *w, struct ZoomDialog *d) { spin_entry_set_val(d->zoom_entry, d->zoom); } static void ZoomDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *vbox; struct ZoomDialog *d; d = (struct ZoomDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = create_spin_entry_type(SPIN_BUTTON_TYPE_PERCENT, TRUE, TRUE); item_setup(vbox, w, _("_Zoom:"), TRUE); d->zoom_entry = w; gtk_box_pack_start(GTK_BOX(d->vbox), vbox, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } ZoomDialogSetupItem(wi, d); } static void ZoomDialogClose(GtkWidget *w, void *data) { struct ZoomDialog *d; d = (struct ZoomDialog *) data; if (d->ret != IDOK) return; d->zoom = spin_entry_get_val(d->zoom_entry); } void ZoomDialog(struct ZoomDialog *data) { data->SetupWindow = ZoomDialogSetup; data->CloseWindow = ZoomDialogClose; } static void scale_tab_setup_item(struct AxisDialog *d, int id) { char *valstr; int i, j; double min, max, inc, pmin, pmax, pinc; int lastinst; char *name; struct narray *array; int num; double *data; char buf[30]; combo_box_clear(d->min); combo_box_clear(d->max); combo_box_clear(d->inc); getobj(d->Obj, "min", id, 0, NULL, &min); getobj(d->Obj, "max", id, 0, NULL, &max); getobj(d->Obj, "inc", id, 0, NULL, &inc); getobj(d->Obj, "scale_history", d->Id, 0, NULL, &array); if (array) { pmin = min; pmax = max; pinc = inc; num = arraynum(array) / 3; data = arraydata(array); for (j = 0; j < num; j++) { if (data[0 + j * 3] != pmin) { snprintf(buf, sizeof(buf), "%.15g", data[0 + j * 3]); combo_box_append_text(d->min, buf); } pmin = data[0 + j * 3]; if (data[1 + j * 3] != pmax) { snprintf(buf, sizeof(buf), "%.15g", data[1 + j * 3]); combo_box_append_text(d->max, buf); } pmax = data[1 + j * 3]; if (data[2 + j * 3] != pinc) { snprintf(buf, sizeof(buf), "%.15g", data[2 + j * 3]); combo_box_append_text(d->inc, buf); } pinc = data[2 + j * 3]; } } if ((min == 0) && (max == 0) && (inc == 0)) { combo_box_entry_set_text(d->min, "0"); combo_box_entry_set_text(d->max, "0"); combo_box_entry_set_text(d->inc, "0"); } else { snprintf(buf, sizeof(buf), "%.15g", min); combo_box_entry_set_text(d->min, buf); snprintf(buf, sizeof(buf), "%.15g", max); combo_box_entry_set_text(d->max, buf); snprintf(buf, sizeof(buf), "%.15g", inc); combo_box_entry_set_text(d->inc, buf); } SetWidgetFromObjField(d->div, d->Obj, id, "div"); SetWidgetFromObjField(d->scale, d->Obj, id, "type"); combo_box_clear(d->ref); lastinst = chkobjlastinst(d->Obj); combo_box_append_text(d->ref, _("none")); for (j = 0; j <= lastinst; j++) { getobj(d->Obj, "group", j, 0, NULL, &name); name =CHK_STR(name); combo_box_append_text(d->ref, name); } sgetobjfield(d->Obj, id, "reference", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { for (i = 0; (valstr[i] != '\0') && (valstr[i] != ':'); i++); if (valstr[i] == ':') { i++; } combo_box_entry_set_text(d->ref, valstr + i); g_free(valstr); } SetWidgetFromObjField(d->margin, d->Obj, id, "auto_scale_margin"); } static void AxisDialogClear(GtkWidget *w, gpointer client_data) { struct AxisDialog *d; d = (struct AxisDialog *) client_data; combo_box_entry_set_text(d->min, "0"); combo_box_entry_set_text(d->max, "0"); combo_box_entry_set_text(d->inc, "0"); } static void AxisDialogFile(GtkWidget *w, gpointer client_data) { struct AxisDialog *d; struct objlist *fobj; struct narray farray; d = (struct AxisDialog *) client_data; fobj = chkobject("file"); if (fobj == NULL) return; if (chkobjlastinst(fobj) == -1) return; SelectDialog(&DlgSelect, fobj, FileCB, (struct narray *) &farray, NULL); if (DialogExecute(d->widget, &DlgSelect) == IDOK) { int a, i, anum, num, *array; num = arraynum(&farray); array = arraydata(&farray); anum = chkobjlastinst(d->Obj); if (num > 0 && anum != 0) { char *buf, *argv2[2]; GString *str; int type; struct narray *result; str = g_string_sized_new(32); if (str) { g_string_append(str, "file:"); for (i = 0; i < num; i++) { if (i == num - 1) { g_string_append_printf(str, "%d", array[i]); } else { g_string_append_printf(str, "%d,", array[i]); } } buf = g_string_free(str, FALSE); argv2[0] = (char *) buf; argv2[1] = NULL; if (getobj(d->Obj, "type", d->Id, 0, NULL, &type) == -1) { arraydel(&farray); g_free(buf); return; } a = combo_box_get_active(d->scale); if (a >= 0 && (putobj(d->Obj, "type", d->Id, &a) == -1)) { arraydel(&farray); g_free(buf); return; } getobj(d->Obj, "get_auto_scale", d->Id, 1, argv2, &result); g_free(buf); if (arraynum(result) == 3) { char s[30]; snprintf(s, sizeof(s), "%.15g", arraynget_double(result, 0)); combo_box_entry_set_text(d->min, s); snprintf(s, sizeof(s), "%.15g", arraynget_double(result, 1)); combo_box_entry_set_text(d->max, s); snprintf(s, sizeof(s), "%.15g", arraynget_double(result, 2)); combo_box_entry_set_text(d->inc, s); } putobj(d->Obj, "type", d->Id, &type); } } } arraydel(&farray); } static void AxisDialogRef(GtkWidget *w, gpointer client_data) { struct AxisDialog *d; char buf[10]; int a, oid; d = (struct AxisDialog *) client_data; a = combo_box_get_active(w); if (a < 0) { return; } if (a == 0) { combo_box_entry_set_text(w, ""); return; } getobj(d->Obj, "oid", a - 1, 0, NULL, &oid); snprintf(buf, sizeof(buf), "^%d", oid); combo_box_entry_set_text(w, buf); } static void file_button_show(GtkWidget *widget, gpointer user_data) { static struct objlist *file = NULL; int n; if (file == NULL) { file = chkobject("file"); } if (file == NULL) return; n = chkobjlastinst(file); gtk_widget_set_sensitive(widget, n >= 0); } static void scale_tab_copy_clicked(GtkButton *btn, gpointer user_data) { struct AxisDialog *d; int sel; d = (struct AxisDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, AxisCB); if (sel != -1) { scale_tab_setup_item(d, sel); } } static GtkWidget * scale_tab_create(struct AxisDialog *d) { GtkWidget *parent_box, *w, *frame, *table, *hbox; int i; #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_entry_create(); add_widget_to_table(table, w, _("_Min:"), TRUE, i++); d->min = w; w = combo_box_entry_create(); add_widget_to_table(table, w, _("_Max:"), TRUE, i++); d->max = w; w = combo_box_entry_create(); add_widget_to_table(table, w, _("_Inc:"), TRUE, i++); d->inc = w; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 12); #else hbox = gtk_hbox_new(FALSE, 12); #endif w = gtk_button_new_from_stock(GTK_STOCK_CLEAR); g_signal_connect(w, "clicked", G_CALLBACK(AxisDialogClear), d); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 0); w = gtk_button_new_with_mnemonic(_("_File")); g_signal_connect(w, "clicked", G_CALLBACK(AxisDialogFile), d); g_signal_connect(w, "map", G_CALLBACK(file_button_show), NULL); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); add_widget_to_table(table, hbox, "", FALSE, i++); w = combo_box_create(); add_widget_to_table(table, w, _("_Scale:"), FALSE, i++); d->scale = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_UINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Div:"), FALSE, i++); d->div = w; w = combo_box_entry_create(); add_widget_to_table(table, w, _("_Ref:"), FALSE, i++); gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 1.5, -1); g_signal_connect(w, "changed", G_CALLBACK(AxisDialogRef), d); d->ref = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_PERCENT, TRUE, TRUE); add_widget_to_table(table, w, _("_Auto scale margin:"), FALSE, i++); d->margin = w; frame = gtk_frame_new(_("Scale")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); #if GTK_CHECK_VERSION(3, 0, 0) parent_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else parent_box = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(parent_box), frame, TRUE, TRUE, 4); add_copy_button_to_box(parent_box, G_CALLBACK(scale_tab_copy_clicked), d, "axis"); return parent_box; } static int baseline_tab_set_value(struct AxisDialog *axis) { struct AxisBase *d; d = &axis->base; if (SetObjFieldFromStyle(d->style, axis->Obj, axis->Id, "style")) return 1; if (SetObjFieldFromWidget(d->width, axis->Obj, axis->Id, "width")) return 1; if (SetObjFieldFromWidget(d->baseline, axis->Obj, axis->Id, "baseline")) return 1; if (SetObjFieldFromWidget(d->arrow, axis->Obj, axis->Id, "arrow")) return 1; if (SetObjFieldFromWidget(d->arrowlen, axis->Obj, axis->Id, "arrow_length")) return 1; if (SetObjFieldFromWidget(d->arrowwid, axis->Obj, axis->Id, "arrow_width")) return 1; if (SetObjFieldFromWidget(d->wave, axis->Obj, axis->Id, "wave")) return 1; if (SetObjFieldFromWidget(d->wavelen, axis->Obj, axis->Id, "wave_length")) return 1; if (SetObjFieldFromWidget(d->wavewid, axis->Obj, axis->Id, "wave_width")) return 1; if (putobj_color(d->color, axis->Obj, axis->Id, NULL)) return 1; return 0; } static void baseline_tab_setup_item(struct AxisDialog *axis, int id) { struct AxisBase *d; d = &axis->base; SetStyleFromObjField(d->style, axis->Obj, id, "style"); SetWidgetFromObjField(d->width, axis->Obj, id, "width"); SetWidgetFromObjField(d->baseline, axis->Obj, id, "baseline"); SetWidgetFromObjField(d->arrow, axis->Obj, id, "arrow"); SetWidgetFromObjField(d->arrowlen, axis->Obj, id, "arrow_length"); SetWidgetFromObjField(d->arrowwid, axis->Obj, id, "arrow_width"); SetWidgetFromObjField(d->wave, axis->Obj, id, "wave"); SetWidgetFromObjField(d->wavelen, axis->Obj, id, "wave_length"); SetWidgetFromObjField(d->wavewid, axis->Obj, id, "wave_width"); set_color(d->color, axis->Obj, id, NULL); } static void baseline_tab_copy_clicked(GtkButton *btn, gpointer user_data) { struct AxisDialog *d; int sel; d = (struct AxisDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, AxisCB); if (sel != -1) { baseline_tab_setup_item(d, sel); } } static GtkWidget * baseline_tab_create(GtkWidget *wi, struct AxisDialog *dd) { GtkWidget *w, *hbox, *vbox, *frame, *table; struct AxisBase *d; int i; d = &dd->base; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = gtk_check_button_new_with_mnemonic(_("Draw _Baseline")); add_widget_to_table(table, w, NULL, FALSE , i++); d->baseline = w; w = combo_box_entry_create(); gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 1.5, -1); add_widget_to_table(table, w, _("Line _Style:"), TRUE, i++); d->style = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_WIDTH, TRUE, TRUE); add_widget_to_table(table, w, _("_Line Width:"), FALSE, i++); d->width = w; w = create_color_button(wi); add_widget_to_table(table, w, _("_Color:"), FALSE, i++); d->color = w; frame = gtk_frame_new(_("Baseline")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif i = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Position:"), FALSE, i++); d->arrow = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_PERCENT, TRUE, TRUE); spin_entry_set_inc(w, 1000, 10000); add_widget_to_table(table, w, _("_Arrow length:"), FALSE, i++); d->arrowlen = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_PERCENT, TRUE, TRUE); spin_entry_set_inc(w, 1000, 10000); add_widget_to_table(table, w, _("_Arrow width:"), FALSE, i++); d->arrowwid = w; frame = gtk_frame_new(_("Arrow")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_RIGHT); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Position:"), FALSE, i++); d->wave = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, TRUE, TRUE); add_widget_to_table(table, w, _("_Wave length:"), FALSE, i++); d->wavelen = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_WIDTH, TRUE, TRUE); add_widget_to_table(table, w, _("_Wave width:"), FALSE, i++); d->wavewid = w; frame = gtk_frame_new(_("Wave")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_RIGHT); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 4); add_copy_button_to_box(vbox, G_CALLBACK(baseline_tab_copy_clicked), dd, "axis"); return vbox; } static int gauge_tab_set_value(struct AxisDialog *axis) { int i; struct AxisGauge *d; d = &axis->gauge; if (SetObjFieldFromWidget(d->gauge, axis->Obj, axis->Id, "gauge")) return 1; if (SetObjFieldFromWidget(d->min, axis->Obj, axis->Id, "gauge_min")) return 1; if (SetObjFieldFromWidget(d->max, axis->Obj, axis->Id, "gauge_max")) return 1; if (SetObjFieldFromStyle(d->style, axis->Obj, axis->Id, "gauge_style")) return 1; for (i = 0; i < GAUGE_STYLE_NUM; i++) { char width[] = "gauge_width1", length[] = "gauge_length1"; width[sizeof(width) - 2] += i; if (SetObjFieldFromWidget(d->width[i], axis->Obj, axis->Id, width)) return 1; length[sizeof(length) - 2] += i; if (SetObjFieldFromWidget(d->length[i], axis->Obj, axis->Id, length)) return 1; } if (putobj_color(d->color, axis->Obj, axis->Id, "gauge_")) return 1; return 0; } static void gauge_tab_setup_item(struct AxisDialog *axis, int id) { int i; struct AxisGauge *d; d = &axis->gauge; SetWidgetFromObjField(d->gauge, axis->Obj, id, "gauge"); SetWidgetFromObjField(d->min, axis->Obj, id, "gauge_min"); SetWidgetFromObjField(d->max, axis->Obj, id, "gauge_max"); SetStyleFromObjField(d->style, axis->Obj, id, "gauge_style"); for (i = 0; i < GAUGE_STYLE_NUM; i++) { char width[] = "gauge_width1", length[] = "gauge_length1"; width[sizeof(width) - 2] += i; SetWidgetFromObjField(d->width[i], axis->Obj, id, width); length[sizeof(length) - 2] += i; SetWidgetFromObjField(d->length[i], axis->Obj, id, length); } set_color(d->color, axis->Obj, id, "gauge_"); } static void gauge_tab_copy_clicked(GtkButton *btn, gpointer user_data) { struct AxisDialog *d; int sel; d = (struct AxisDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, AxisCB); if (sel != -1) { gauge_tab_setup_item(d, sel); } } static GtkWidget * gauge_tab_create(GtkWidget *wi, struct AxisDialog *dd) { GtkWidget *parent_box, *w, *vbox, *frame, *table; struct AxisGauge *d; int i, j; char buf[TITLE_BUF_SIZE]; d = &dd->gauge; #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif j = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Gauge:"), FALSE, j++); d->gauge = w; w = create_text_entry(FALSE, TRUE); gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 3, -1); add_widget_to_table(table, w, _("_Min:"), TRUE, j++); d->min = w; w = create_text_entry(FALSE, TRUE); gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 3, -1); add_widget_to_table(table, w, _("_Max:"), TRUE, j++); d->max = w; frame = gtk_frame_new(_("Range")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 4, FALSE); #endif j = 0; w = combo_box_entry_create(); add_widget_to_table_sub(table, w, _("_Style:"), TRUE, 0, 3, 4, j++); d->style = w; w = create_color_button(wi); add_widget_to_table_sub(table, w, _("_Color:"), FALSE, 0, 1, 4, j++); d->color = w; for (i = 0; i < GAUGE_STYLE_NUM; i++) { snprintf(buf, sizeof(buf), _("_Width %d:"), i + 1); w = create_spin_entry_type(SPIN_BUTTON_TYPE_WIDTH, TRUE, TRUE); add_widget_to_table_sub(table, w, buf, TRUE, 0, 1, 4, j); d->width[i] = w; snprintf(buf, sizeof(buf), _("_Length %d:"), i + 1); w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, TRUE, TRUE); add_widget_to_table_sub(table, w, buf, TRUE, 2, 1, 4, j++); d->length[i] = w; } frame = gtk_frame_new(_("Style")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); #if GTK_CHECK_VERSION(3, 0, 0) parent_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else parent_box = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(parent_box), vbox, TRUE, TRUE, 4); add_copy_button_to_box(parent_box, G_CALLBACK(gauge_tab_copy_clicked), dd, "axis"); return parent_box; } static int set_num_format(struct AxisDialog *axis, struct AxisNumbering *d) { GString *format; int a; char *new, *old; format = g_string_new("%"); if (format == NULL) { return 1; } if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->add_plus))) { g_string_append_c(format, '+'); } a = combo_box_get_active(d->fraction); if (a == 0) { g_string_append_c(format, 'g'); } else if (a > 0) { g_string_append_printf(format, ".%df", a - 1); } if (getobj(axis->Obj, "num_format", axis->Id, 0, NULL, &old) == -1) { return 1; } new = g_string_free(format, FALSE); if (g_strcmp0(old, new)) { set_graph_modified(); } if (putobj(axis->Obj, "num_format", axis->Id, new) == -1) { return 1; } if (getobj(axis->Obj, "num_format", axis->Id, 0, NULL, &new) == -1){ return 1; } return 0; } static int numbering_tab_set_value(struct AxisDialog *axis) { struct AxisNumbering *d; d = &axis->numbering; if (SetObjFieldFromWidget(d->num, axis->Obj, axis->Id, "num")) return 1; if (SetObjFieldFromWidget(d->begin, axis->Obj, axis->Id, "num_begin")) return 1; if (SetObjFieldFromWidget(d->step, axis->Obj, axis->Id, "num_step")) return 1; if (SetObjFieldFromWidget(d->numnum, axis->Obj, axis->Id, "num_num")) return 1; if (SetObjFieldFromWidget(d->head, axis->Obj, axis->Id, "num_head")) return 1; if (set_num_format(axis, d)) return 1; if (SetObjFieldFromWidget(d->tail, axis->Obj, axis->Id, "num_tail")) return 1; if (SetObjFieldFromWidget(d->date_format, axis->Obj, axis->Id, "num_date_format")) return 1; if (SetObjFieldFromWidget(d->align, axis->Obj, axis->Id, "num_align")) return 1; if (SetObjFieldFromWidget(d->direction, axis->Obj, axis->Id, "num_direction")) return 1; if (SetObjFieldFromWidget(d->shiftp, axis->Obj, axis->Id, "num_shift_p")) return 1; if (SetObjFieldFromWidget(d->shiftn, axis->Obj, axis->Id, "num_shift_n")) return 1; if (SetObjFieldFromWidget(d->log_power, axis->Obj, axis->Id, "num_log_pow")) return 1; if (SetObjFieldFromWidget(d->no_zero, axis->Obj, axis->Id, "num_no_zero")) return 1; if (SetObjFieldFromWidget(d->norm, axis->Obj, axis->Id, "num_auto_norm")) return 1; return 0; } static void numbering_tab_setup_item(struct AxisDialog *axis, int id) { char *format, *endptr; int j, a; struct AxisNumbering *d; d = &axis->numbering; SetWidgetFromObjField(d->num, axis->Obj, id, "num"); SetWidgetFromObjField(d->begin, axis->Obj, id, "num_begin"); SetWidgetFromObjField(d->step, axis->Obj, id, "num_step"); SetWidgetFromObjField(d->numnum, axis->Obj, id, "num_num"); SetWidgetFromObjField(d->head, axis->Obj, id, "num_head"); combo_box_clear(d->fraction); for (j = 0; j < FwNumStyleNum; j++) { combo_box_append_text(d->fraction, _(FwNumStyle[j])); } getobj(axis->Obj, "num_format", id, 0, NULL, &format); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->add_plus), strchr(format, '+') != NULL); if ((strchr(format, 'f') == NULL) || (strchr(format, '.') == NULL)) { a = 0; } else { a = strtol(strchr(format, '.') + 1, &endptr, 10) + 1; } if (a < 0) { a = 0; } else if (a > 10) { a = 10; } combo_box_set_active(d->fraction, a); SetWidgetFromObjField(d->date_format, axis->Obj, id, "num_date_format"); SetWidgetFromObjField(d->tail, axis->Obj, id, "num_tail"); SetWidgetFromObjField(d->align, axis->Obj, id, "num_align"); SetWidgetFromObjField(d->direction, axis->Obj, id, "num_direction"); SetWidgetFromObjField(d->shiftp, axis->Obj, id, "num_shift_p"); SetWidgetFromObjField(d->shiftn, axis->Obj, id, "num_shift_n"); SetWidgetFromObjField(d->log_power, axis->Obj, id, "num_log_pow"); SetWidgetFromObjField(d->no_zero, axis->Obj, id, "num_no_zero"); SetWidgetFromObjField(d->norm, axis->Obj, id, "num_auto_norm"); } static void numbering_tab_copy_clicked(GtkButton *btn, gpointer user_data) { struct AxisDialog *d; int sel; d = (struct AxisDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, AxisCB); if (sel != -1) { numbering_tab_setup_item(d, sel); } } static void num_direction_changed(GtkWidget *w, gpointer client_data) { int dir, state; struct AxisDialog *d; d = (struct AxisDialog *) client_data; dir = combo_box_get_active(w); state = (dir != AXIS_NUM_POS_OBLIQUE1 && dir != AXIS_NUM_POS_OBLIQUE2); set_widget_sensitivity_with_label(d->numbering.align, state); } static GtkWidget * numbering_tab_create(GtkWidget *wi, struct AxisDialog *dd) { GtkWidget *w, *hbox, *vbox, *frame, *table; struct AxisNumbering *d; int i; d = &dd->numbering; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); #else hbox = gtk_hbox_new(FALSE, 4); vbox = gtk_vbox_new(FALSE, 0); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Numbering:"), FALSE, i++); d->num = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_UINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Begin:"), FALSE, i++); d->begin = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_UINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Step:"), FALSE, i++); d->step = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_NUM, TRUE, TRUE); add_widget_to_table(table, w, _("_Num:"), FALSE, i++); d->numnum = w; frame = gtk_frame_new(_("Range")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Align:"), FALSE, i++); d->align = w; w = combo_box_create(); add_widget_to_table(table, w, _("_Direction:"), FALSE, i++); g_signal_connect(w, "changed", G_CALLBACK(num_direction_changed), dd); d->direction = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("shift (_P):"), FALSE, i++); d->shiftp = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("shift (_N):"), FALSE, i++); d->shiftn = w; frame = gtk_frame_new(_("Position")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Fraction:"), FALSE, i++); d->fraction = w; w = create_text_entry(TRUE, TRUE); add_widget_to_table(table, w, _("_Head:"), TRUE, i++); d->head = w; w = create_text_entry(TRUE, TRUE); add_widget_to_table(table, w, _("_Tail:"), TRUE, i++); d->tail = w; w = create_text_entry(TRUE, TRUE); gtk_widget_set_tooltip_text(w, _(TIME_FORMAT_STR)); add_widget_to_table(table, w, _("_Date/time format:"), TRUE, i++); d->date_format = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_UINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Auto normalization:"), FALSE, i++); d->norm = w; w = gtk_check_button_new_with_mnemonic(_("_Log power")); add_widget_to_table(table, w, NULL, FALSE, i++); d->log_power = w; w = gtk_check_button_new_with_mnemonic(_("_Add plus")); d->add_plus = w; add_widget_to_table(table, w, NULL, FALSE, i++); w = gtk_check_button_new_with_mnemonic(_("no _Zero")); add_widget_to_table(table, w, NULL, FALSE, i++); d->no_zero = w; frame = gtk_frame_new(_("Format")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_RIGHT); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 4); add_copy_button_to_box(vbox, G_CALLBACK(numbering_tab_copy_clicked), dd, "axis"); return vbox; } static int font_tab_set_value(struct AxisDialog *axis) { struct AxisFont *d; int style, bold, italic, old_style; d = &axis->font; if (SetObjFieldFromWidget(d->space, axis->Obj, axis->Id, "num_space")) return 1; if (SetObjFieldFromWidget(d->pt, axis->Obj, axis->Id, "num_pt")) return 1; if (SetObjFieldFromWidget(d->script, axis->Obj, axis->Id, "num_script_size")) return 1; SetObjFieldFromFontList(d->font, axis->Obj, axis->Id, "num_font"); if (putobj_color(d->color, axis->Obj, axis->Id, "num_")) return 1; style = 0; bold = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->font_bold)); if (bold) { style |= GRA_FONT_STYLE_BOLD; } italic = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->font_italic)); if (italic) { style |= GRA_FONT_STYLE_ITALIC; } getobj(axis->Obj, "num_font_style", axis->Id, 0, NULL, &old_style); if (old_style != style) { putobj(axis->Obj, "num_font_style", axis->Id, &style); set_graph_modified(); } return 0; } static void font_tab_setup_item(struct AxisDialog *axis, int id) { struct compatible_font_info *compatible; struct AxisFont *d; int style; d = &axis->font; SetWidgetFromObjField(d->space, axis->Obj, id, "num_space"); SetWidgetFromObjField(d->pt, axis->Obj, id, "num_pt"); SetWidgetFromObjField(d->script, axis->Obj, id, "num_script_size"); set_color(d->color, axis->Obj, id, "num_"); compatible = SetFontListFromObj(d->font, axis->Obj, id, "num_font"); if (compatible) { style = compatible->style; } else { getobj(axis->Obj, "num_font_style", axis->Id, 0, NULL, &style); } gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->font_bold), style & GRA_FONT_STYLE_BOLD); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->font_italic), style & GRA_FONT_STYLE_ITALIC); } static void font_tab_copy_clicked(GtkButton *btn, gpointer user_data) { struct AxisDialog *d; int sel; d = (struct AxisDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, AxisCB); if (sel != -1) { font_tab_setup_item(d, sel); } } static GtkWidget * font_tab_create(GtkWidget *wi, struct AxisDialog *dd) { GtkWidget *w, *vbox, *table, *frame, *btn_box; struct AxisFont *d; int i; d = &dd->font; #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Point:"), FALSE, i++); d->pt = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_SPACE_POINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Space:"), FALSE, i++); d->space = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_PERCENT, TRUE, TRUE); add_widget_to_table(table, w, _("_Script size:"), FALSE, i++); d->script = w; w = combo_box_create(); add_widget_to_table(table, w, _("_Font:"), FALSE, i++); d->font = w; #if GTK_CHECK_VERSION(3, 2, 0) btn_box = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL); #else btn_box = gtk_hbutton_box_new(); #endif gtk_box_set_spacing(GTK_BOX(btn_box), 10); w = gtk_check_button_new_with_label("gtk-bold"); gtk_button_set_use_stock(GTK_BUTTON(w), TRUE); d->font_bold = w; gtk_box_pack_start(GTK_BOX(btn_box), w, FALSE, FALSE, 0); w = gtk_check_button_new_with_label("gtk-italic"); gtk_button_set_use_stock(GTK_BUTTON(w), TRUE); d->font_italic = w; gtk_box_pack_start(GTK_BOX(btn_box), w, FALSE, FALSE, 0); add_widget_to_table(table, btn_box, "", FALSE, i++); w = create_color_button(wi); add_widget_to_table(table, w, _("_Color:"), FALSE, i++); d->color = w; frame = gtk_frame_new(_("Font")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 4); add_copy_button_to_box(vbox, G_CALLBACK(font_tab_copy_clicked), dd, "axis"); return vbox; } static int position_tab_set_value(struct AxisDialog *axis) { struct AxisPos *d; d = &axis->position; if (SetObjFieldFromWidget(d->x, axis->Obj, axis->Id, "x")) return 1; if (SetObjFieldFromWidget(d->y, axis->Obj, axis->Id, "y")) return 1; if (SetObjFieldFromWidget(d->len, axis->Obj, axis->Id, "length")) return 1; if (SetObjFieldFromWidget(d->direction, axis->Obj, axis->Id, "direction")) return 1; if (SetObjAxisFieldFromWidget(d->adjust, axis->Obj, axis->Id, "adjust_axis")) return 1; if (SetObjFieldFromWidget(d->adjustpos, axis->Obj, axis->Id, "adjust_position")) return 1; return 0; } static void position_tab_setup_item(struct AxisDialog *axis, int id) { char *valstr; int i, j; int lastinst; char *name; struct AxisPos *d; d = &axis->position; SetWidgetFromObjField(d->x, axis->Obj, id, "x"); SetWidgetFromObjField(d->y, axis->Obj, id, "y"); SetWidgetFromObjField(d->len, axis->Obj, id, "length"); SetWidgetFromObjField(d->direction, axis->Obj, id, "direction"); lastinst = chkobjlastinst(axis->Obj); combo_box_clear(d->adjust); combo_box_append_text(d->adjust, _("none")); for (j = 0; j <= lastinst; j++) { getobj(axis->Obj, "group", j, 0, NULL, &name); name = CHK_STR(name); combo_box_append_text(d->adjust, name); } sgetobjfield(axis->Obj, id, "adjust_axis", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { for (i = 0; (valstr[i] != '\0') && (valstr[i] != ':'); i++); if (valstr[i] == ':') i++; combo_box_entry_set_text(d->adjust, valstr + i); g_free(valstr); } SetWidgetFromObjField(d->adjustpos, axis->Obj, id, "adjust_position"); } static void position_tab_copy_clicked(GtkButton *btn, gpointer user_data) { struct AxisDialog *d; int sel; d = (struct AxisDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, AxisCB); if (sel != -1) { position_tab_setup_item(d, sel); } } static GtkWidget * position_tab_create(GtkWidget *wi, struct AxisDialog *dd) { GtkWidget *w, *vbox, *frame, *table; struct AxisPos *d; int i; d = &dd->position; #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_X:", FALSE, i++); d->x = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_Y:", FALSE, i++); d->y = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("_Length:"), FALSE, i++); d->len = w; w = create_direction_entry(); add_widget_to_table(table, w, _("_Direction:"), FALSE, i++); d->direction = w; w = combo_box_entry_create(); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH, -1); #else gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 2, -1); #endif g_signal_connect(w, "changed", G_CALLBACK(AxisDialogRef), dd); add_widget_to_table(table, w, _("_Adjust:"), FALSE, i++); d->adjust = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_UINT, TRUE, TRUE); add_widget_to_table(table, w, _("Adjust _Position:"), FALSE, i++); d->adjustpos = w; frame = gtk_frame_new(_("Position")); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 4); add_copy_button_to_box(vbox, G_CALLBACK(position_tab_copy_clicked), dd, "axis"); return vbox; } static void AxisDialogSetup(GtkWidget *wi, void *data, int makewidget) { struct AxisDialog *d; char *group; char title[25]; d = (struct AxisDialog *) data; getobj(d->Obj, "group", d->Id, 0, NULL, &group); group = CHK_STR(group); snprintf(title, sizeof(title), _("Axis %d %s"), d->Id, group); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { GtkWidget *notebook, *w, *label; notebook = gtk_notebook_new(); gtk_notebook_set_scrollable(GTK_NOTEBOOK(notebook), FALSE); w = scale_tab_create(d); label = gtk_label_new_with_mnemonic(_("_Scale")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), w, label); w = baseline_tab_create(wi, d); label = gtk_label_new_with_mnemonic(_("_Baseline")); d->base.tab_id = gtk_notebook_append_page(GTK_NOTEBOOK(notebook), w, label); w = gauge_tab_create(wi, d); label = gtk_label_new_with_mnemonic(_("_Gauge")); d->gauge.tab_id = gtk_notebook_append_page(GTK_NOTEBOOK(notebook), w, label); w = numbering_tab_create(wi, d); label = gtk_label_new_with_mnemonic(_("_Numbering")); d->numbering.tab_id = gtk_notebook_append_page(GTK_NOTEBOOK(notebook), w, label); w = font_tab_create(wi, d); label = gtk_label_new_with_mnemonic(_("_Font")); d->font.tab_id = gtk_notebook_append_page(GTK_NOTEBOOK(notebook), w, label); w = position_tab_create(wi, d); label = gtk_label_new_with_mnemonic(_("_Position")); d->position.tab_id = gtk_notebook_append_page(GTK_NOTEBOOK(notebook), w, label); gtk_box_pack_start(GTK_BOX(d->vbox), notebook, TRUE, TRUE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); d->tab = GTK_NOTEBOOK(notebook); } position_tab_setup_item(d, d->Id); font_tab_setup_item(d, d->Id); gauge_tab_setup_item(d, d->Id); numbering_tab_setup_item(d, d->Id); baseline_tab_setup_item(d, d->Id); scale_tab_setup_item(d, d->Id); } static int scale_tab_set_value(struct AxisDialog *d) { axis_scale_push(d->Obj, d->Id); if (SetObjFieldFromWidget(d->min, d->Obj, d->Id, "min")) { return 1; } if (SetObjFieldFromWidget(d->max, d->Obj, d->Id, "max")) { return 1; } if (SetObjFieldFromWidget(d->inc, d->Obj, d->Id, "inc")) { return 1; } if (SetObjFieldFromWidget(d->div, d->Obj, d->Id, "div")) { return 1; } if (SetObjFieldFromWidget(d->scale, d->Obj, d->Id, "type")) { return 1; } if (SetObjAxisFieldFromWidget(d->ref, d->Obj, d->Id, "reference")) { return 1; } if (SetObjFieldFromWidget(d->margin, d->Obj, d->Id, "auto_scale_margin")) { return 1; } return 0; } static void AxisDialogClose(GtkWidget *w, void *data) { struct AxisDialog *d; int ret; d = (struct AxisDialog *) data; switch (d->ret) { case IDOK: break; default: return; } ret = d->ret; d->ret = IDLOOP; if (scale_tab_set_value(d)) { gtk_notebook_set_current_page(d->tab, 0); return; } if (font_tab_set_value(d)) { gtk_notebook_set_current_page(d->tab, d->font.tab_id); return; } if (numbering_tab_set_value(d)) { gtk_notebook_set_current_page(d->tab, d->numbering.tab_id); return; } if (baseline_tab_set_value(d)){ gtk_notebook_set_current_page(d->tab, d->base.tab_id); return; } if (gauge_tab_set_value(d)){ gtk_notebook_set_current_page(d->tab, d->gauge.tab_id); return; } if (position_tab_set_value(d)){ gtk_notebook_set_current_page(d->tab, d->position.tab_id); return; } d->ret = ret; } void AxisDialog(struct obj_list_data *data, int id, int user_data) { struct AxisDialog *d; d = (struct AxisDialog *) data->dialog; d->SetupWindow = AxisDialogSetup; d->CloseWindow = AxisDialogClose; d->Obj = data->obj; d->Id = id; } void CmAxisNewFrame(GtkAction *w, gpointer client_data) { struct objlist *obj, *obj2; int idx, idy, idu, idr, idg, ret; int type, x, y, lenx, leny; struct narray group; char *argv[2]; if (Menulock || Globallock) return; if ((obj = chkobject("axis")) == NULL) return; if ((obj2 = getobject("axisgrid")) == NULL) return; idx = newobj(obj); idy = newobj(obj); idu = newobj(obj); idr = newobj(obj); idg = -1; arrayinit(&group, sizeof(int)); type = 1; x = 3500; y = 22000; lenx = 14000; leny = 14000; arrayadd(&group, &type); arrayadd(&group, &idx); arrayadd(&group, &idy); arrayadd(&group, &idu); arrayadd(&group, &idr); arrayadd(&group, &x); arrayadd(&group, &y); arrayadd(&group, &lenx); arrayadd(&group, &leny); argv[0] = (char *) &group; argv[1] = NULL; exeobj(obj, "default_grouping", idr, 1, argv); arraydel(&group); SectionDialog(&DlgSection, x, y, lenx, leny, obj, idx, idy, idu, idr, obj2, &idg, FALSE); ret = DialogExecute(TopLevel, &DlgSection); if ((ret == IDDELETE) || (ret == IDCANCEL)) { if (idg != -1) { delobj(obj2, idg); } delobj(obj, idr); delobj(obj, idu); delobj(obj, idy); delobj(obj, idx); } else { set_graph_modified(); } AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); } void CmAxisNewSection(GtkAction *w, gpointer client_data) { struct objlist *obj, *obj2; int idx, idy, idu, idr, idg, ret, oidx, oidy; int type, x, y, lenx, leny; struct narray group; char *argv[2]; char *ref; if (Menulock || Globallock) return; if ((obj = getobject("axis")) == NULL) return; if ((obj2 = getobject("axisgrid")) == NULL) return; idx = newobj(obj); idy = newobj(obj); idu = newobj(obj); idr = newobj(obj); idg = newobj(obj2); arrayinit(&group, sizeof(int)); type = 2; x = 3500; y = 22000; lenx = 14000; leny = 14000; arrayadd(&group, &type); arrayadd(&group, &idx); arrayadd(&group, &idy); arrayadd(&group, &idu); arrayadd(&group, &idr); arrayadd(&group, &x); arrayadd(&group, &y); arrayadd(&group, &lenx); arrayadd(&group, &leny); argv[0] = (char *) &group; argv[1] = NULL; exeobj(obj, "default_grouping", idr, 1, argv); arraydel(&group); if (idg >= 0) { getobj(obj, "oid", idx, 0, NULL, &oidx); if ((ref = (char *) g_malloc(ID_BUF_SIZE)) != NULL) { snprintf(ref, ID_BUF_SIZE, "axis:^%d", oidx); putobj(obj2, "axis_x", idg, ref); } getobj(obj, "oid", idy, 0, NULL, &oidy); if ((ref = (char *) g_malloc(ID_BUF_SIZE)) != NULL) { snprintf(ref, ID_BUF_SIZE, "axis:^%d", oidy); putobj(obj2, "axis_y", idg, ref); } } SectionDialog(&DlgSection, x, y, lenx, leny, obj, idx, idy, idu, idr, obj2, &idg, TRUE); ret = DialogExecute(TopLevel, &DlgSection); if ((ret == IDDELETE) || (ret == IDCANCEL)) { delobj(obj2, idg); delobj(obj, idr); delobj(obj, idu); delobj(obj, idy); delobj(obj, idx); } else { set_graph_modified(); } AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); } void CmAxisNewCross(GtkAction *w, gpointer client_data) { struct objlist *obj; int idx, idy, ret; int type, x, y, lenx, leny; struct narray group; char *argv[2]; if (Menulock || Globallock) return; if ((obj = chkobject("axis")) == NULL) return; idx = newobj(obj); idy = newobj(obj); arrayinit(&group, sizeof(int)); type = 3; x = 3500; y = 22000; lenx = 14000; leny = 14000; arrayadd(&group, &type); arrayadd(&group, &idx); arrayadd(&group, &idy); arrayadd(&group, &x); arrayadd(&group, &y); arrayadd(&group, &lenx); arrayadd(&group, &leny); argv[0] = (char *) &group; argv[1] = NULL; exeobj(obj, "default_grouping", idy, 1, argv); arraydel(&group); CrossDialog(&DlgCross, x, y, lenx, leny, obj, idx, idy); ret = DialogExecute(TopLevel, &DlgCross); if ((ret == IDDELETE) || (ret == IDCANCEL)) { delobj(obj, idy); delobj(obj, idx); } else set_graph_modified(); AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); } void CmAxisNewSingle(GtkAction *w, gpointer client_data) { struct objlist *obj; int id, ret; if (Menulock || Globallock) return; if ((obj = chkobject("axis")) == NULL) return; if ((id = newobj(obj)) >= 0) { AxisDialog(NgraphApp.AxisWin.data.data, id, -1); ret = DialogExecute(TopLevel, &DlgAxis); if ((ret == IDDELETE) || (ret == IDCANCEL)) { delobj(obj, id); } else set_graph_modified(); AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); } } void CmAxisDel(GtkAction *w, gpointer client_data) { struct objlist *obj; if (Menulock || Globallock) return; if ((obj = chkobject("axis")) == NULL) return; if (chkobjlastinst(obj) == -1) return; CopyDialog(&DlgCopy, obj, -1, AxisCB); if (DialogExecute(TopLevel, &DlgCopy) == IDOK && DlgCopy.sel >= 0) { AxisDel(DlgCopy.sel); set_graph_modified(); AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } } void CmAxisUpdate(GtkAction *w, gpointer client_data) { struct objlist *obj; int i, ret; if (Menulock || Globallock) return; if ((obj = chkobject("axis")) == NULL) return; if (chkobjlastinst(obj) == -1) return; CopyDialog(&DlgCopy, obj, -1, AxisCB); if (DialogExecute(TopLevel, &DlgCopy) == IDOK) { i = DlgCopy.sel; if (i < 0) return; } else { return; } AxisDialog(NgraphApp.AxisWin.data.data, i, -1); if ((ret = DialogExecute(TopLevel, &DlgAxis)) == IDDELETE) { AxisDel(i); } AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } void CmAxisZoom(GtkAction *w, gpointer client_data) { struct narray farray; struct objlist *obj; int i; int *array, num, room; double zoom, min, max, mid, wd; char *argv[4]; if (Menulock || Globallock) return; if ((obj = chkobject("axis")) == NULL) return; if (chkobjlastinst(obj) == -1) return; ZoomDialog(&DlgZoom); if ((DialogExecute(TopLevel, &DlgZoom) == IDOK) && (DlgZoom.zoom > 0)) { zoom = DlgZoom.zoom / 10000.0; SelectDialog(&DlgSelect, obj, AxisCB, (struct narray *) &farray, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&farray); array = arraydata(&farray); for (i = 0; i < num; i++) { getobj(obj, "min", array[i], 0, NULL, &min); getobj(obj, "max", array[i], 0, NULL, &max); wd = (max - min) / 2; if (wd != 0) { mid = (min + max) / 2; min = mid - wd * zoom; max = mid + wd * zoom; room = 0; argv[0] = (char *) &min; argv[1] = (char *) &max; argv[2] = (char *) &room; argv[3] = NULL; exeobj(obj, "scale", array[i], 3, argv); set_graph_modified(); } } AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); } arraydel(&farray); } } static void axiswin_scale_clear(GtkMenuItem *item, gpointer user_data) { struct obj_list_data *d; struct objlist *obj; int sel, num; if (Menulock || Globallock) return; obj = chkobject("axis"); if (obj == NULL) return; d = (struct obj_list_data *) user_data; sel = list_store_get_selected_int(d->text, AXIS_WIN_COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 0) && (sel <= num)) { d->setup_dialog(d, sel, -1); d->select = sel; axis_scale_push(obj, sel); exeobj(obj, "clear", sel, 0, NULL); set_graph_modified(); d->update(d, FALSE); } } void CmAxisClear(GtkAction *w, gpointer client_data) { struct narray farray; struct objlist *obj; int i; int *array, num; if (Menulock || Globallock) return; if ((obj = chkobject("axis")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, AxisCB, (struct narray *) &farray, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&farray); array = arraydata(&farray); for (i = 0; i < num; i++) { axis_scale_push(obj, array[i]); exeobj(obj, "clear", array[i], 0, NULL); set_graph_modified(); } AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); } arraydel(&farray); } void CmAxisGridNew(GtkAction *w, gpointer client_data) { struct objlist *obj; int id, ret; if (Menulock || Globallock) return; if ((obj = chkobject("axisgrid")) == NULL) return; if ((id = newobj(obj)) >= 0) { GridDialog(&DlgGrid, obj, id); ret = DialogExecute(TopLevel, &DlgGrid); if ((ret == IDDELETE) || (ret == IDCANCEL)) { delobj(obj, id); } else set_graph_modified(); } } void CmAxisGridDel(GtkAction *w, gpointer client_data) { struct narray farray; struct objlist *obj; int i; int num, *array; if (Menulock || Globallock) return; if ((obj = chkobject("axisgrid")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, GridCB, (struct narray *) &farray, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&farray); array = arraydata(&farray); for (i = num - 1; i >= 0; i--) { delobj(obj, array[i]); set_graph_modified(); } } arraydel(&farray); } void CmAxisGridUpdate(GtkAction *w, gpointer client_data) { struct narray farray; struct objlist *obj; int i, j, ret; int *array, num; if (Menulock || Globallock) return; if ((obj = chkobject("axisgrid")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, GridCB, (struct narray *) &farray, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&farray); array = arraydata(&farray); for (i = 0; i < num; i++) { GridDialog(&DlgGrid, obj, array[i]); if ((ret = DialogExecute(TopLevel, &DlgGrid)) == IDDELETE) { delobj(obj, array[i]); set_graph_modified(); for (j = i + 1; j < num; j++) array[j]--; } } } arraydel(&farray); } void AxisWinUpdate(struct obj_list_data *d, int clear) { if (Menulock || Globallock) return; if (d == NULL) return; if (list_sub_window_must_rebuild(d)) { list_sub_window_build(d, axis_list_set_val); } else { list_sub_window_set(d, axis_list_set_val); } if (! clear && d->select >= 0) { list_store_select_int(GTK_WIDGET(d->text), AXIS_WIN_COL_ID, d->select); } } static void AxisDelCB(struct obj_list_data *data, int id) { AxisDel(id); } static void axis_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row) { int cx; unsigned int i; double min, max, inc; char buf[256], *valstr; for (i = 0; i < AXIS_WIN_COL_NUM; i++) { switch (i) { case AXIS_WIN_COL_NAME: getobj(d->obj, "group", row, 0, NULL, &valstr); if (valstr) { list_store_set_string(GTK_WIDGET(d->text), iter, i, valstr); } else { list_store_set_string(GTK_WIDGET(d->text), iter, i, "....."); } break; case AXIS_WIN_COL_MIN: getobj(d->obj, "min", row, 0, NULL, &min); break; case AXIS_WIN_COL_MAX: getobj(d->obj, "max", row, 0, NULL, &max); if ((min == 0) && (max == 0)) { list_store_set_string(GTK_WIDGET(d->text), iter, i - 1, "---------"); list_store_set_string(GTK_WIDGET(d->text), iter, i, "---------"); } else { snprintf(buf, sizeof(buf), "%g", min); list_store_set_string(GTK_WIDGET(d->text), iter, i - 1, buf); snprintf(buf, sizeof(buf), "%g", max); list_store_set_string(GTK_WIDGET(d->text), iter, i, buf); } break; case AXIS_WIN_COL_TYPE: sgetobjfield(d->obj, row, "type", NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { list_store_set_string(GTK_WIDGET(d->text), iter, i, _(valstr)); g_free(valstr); } break; case AXIS_WIN_COL_INC: getobj(d->obj, "inc", row, 0, NULL, &inc); if (inc == 0) { list_store_set_string(GTK_WIDGET(d->text), iter, i, "---------"); } else { snprintf(buf, sizeof(buf), "%g", inc); list_store_set_string(GTK_WIDGET(d->text), iter, i, buf); } break; case AXIS_WIN_COL_HIDDEN: getobj(d->obj, Alist[i].name, row, 0, NULL, &cx); cx = ! cx; list_store_set_val(GTK_WIDGET(d->text), iter, i, Alist[i].type, &cx); break; default: if (Alist[i].type == G_TYPE_DOUBLE) { getobj(d->obj, Alist[i].name, row, 0, NULL, &cx); list_store_set_double(GTK_WIDGET(d->text), iter, i, cx / 100.0); } else { getobj(d->obj, Alist[i].name, row, 0, NULL, &cx); list_store_set_val(GTK_WIDGET(d->text), iter, i, Alist[i].type, &cx); } } } } static int check_axis_history(struct objlist *obj) { struct narray *array; int num, n, i; n = chkobjlastinst(obj); if (n < 0) return 0; num = 0; for (i = 0; i <= n; i++) { getobj(obj, "scale_history", i, 0, NULL, &array); num += arraynum(array) / 3; } return num; } void CmAxisScaleUndo(GtkAction *w, gpointer client_data) { char *argv[1]; struct objlist *obj; struct narray farray; int i, n, num, *array; if (Menulock || Globallock) return; if ((obj = chkobject("axis")) == NULL) return; if (check_axis_history(obj) == 0) return; SelectDialog(&DlgSelect, obj, AxisHistoryCB, (struct narray *) &farray, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&farray); array = arraydata(&farray); for (i = num - 1; i >= 0; i--) { argv[0] = NULL; exeobj(obj, "scale_pop", array[i], 0, argv); set_graph_modified(); } n = check_axis_history(obj); set_axis_undo_button_sensitivity(n > 0); AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); } arraydel(&farray); } static void popup_show_cb(GtkWidget *widget, gpointer user_data) { unsigned int i; int sel, num; struct obj_list_data *d; d = (struct obj_list_data *) user_data; sel = d->select; num = chkobjlastinst(d->obj); for (i = 0; i < POPUP_ITEM_NUM; i++) { switch (i) { case POPUP_ITEM_TOP: case POPUP_ITEM_UP: gtk_widget_set_sensitive(d->popup_item[i], sel > 0 && sel <= num); break; case POPUP_ITEM_DOWN: case POPUP_ITEM_BOTTOM: gtk_widget_set_sensitive(d->popup_item[i], sel >= 0 && sel < num); break; default: gtk_widget_set_sensitive(d->popup_item[i], sel >= 0 && sel <= num); } } } enum CHANGE_DIR { CHANGE_DIR_X, CHANGE_DIR_Y, }; static void pos_edited_common(struct obj_list_data *d, int id, char *str, enum CHANGE_DIR dir) { int x, y, pos1, pos2, man, ecode; double val; char *argv[3]; if (str == NULL || id < 0) return; switch (dir) { case CHANGE_DIR_X: getobj(d->obj, "x", id, 0, NULL, &pos1); break; case CHANGE_DIR_Y: getobj(d->obj, "y", id, 0, NULL, &pos1); break; } ecode = str_calc(str, &val, NULL, NULL); if (ecode || val != val || val == HUGE_VAL || val == - HUGE_VAL) { return; } pos2 = nround(val * 100); if (pos1 == pos2) return; switch (dir) { case CHANGE_DIR_X: x = (pos2 - pos1); y = 0; break; case CHANGE_DIR_Y: x = 0; y = (pos2 - pos1); break; } argv[0] = (char *) &x; argv[1] = (char *) &y; argv[2] = NULL; getobj(d->obj, "group_manager", id, 0, NULL, &man); if (man >= 0) { exeobj(d->obj, "move", man, 2, argv); set_graph_modified(); AxisWinUpdate(d, TRUE); } } static void pos_x_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { struct obj_list_data *d; int sel; menu_lock(FALSE); d = (struct obj_list_data *) user_data; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); pos_edited_common(d, sel, str, CHANGE_DIR_X); } static void pos_y_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { struct obj_list_data *d; int sel; menu_lock(FALSE); d = (struct obj_list_data *) user_data; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); pos_edited_common(d, sel, str, CHANGE_DIR_Y); } static void axis_prm_edited_common(struct obj_list_data *d, char *field, gchar *str) { int sel, num; menu_lock(FALSE); sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) return; axis_scale_push(d->obj, sel); if (chk_sputobjfield(d->obj, sel, field, str)) return; d->select = sel; d->update(d, FALSE); } static void min_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { axis_prm_edited_common((struct obj_list_data *) user_data, "min", str); } static void max_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { axis_prm_edited_common((struct obj_list_data *) user_data, "max", str); } static void inc_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { axis_prm_edited_common((struct obj_list_data *) user_data, "inc", str); } enum AXIS_COMBO_ITEM { AXIS_COMBO_ITEM_SCALE, AXIS_COMBO_ITEM_BASE_DRAW, AXIS_COMBO_ITEM_BASE_COLOR, AXIS_COMBO_ITEM_BASE_STYLE, AXIS_COMBO_ITEM_BASE_ARROW, AXIS_COMBO_ITEM_BASE_WAVE, AXIS_COMBO_ITEM_GAUGE_POS, AXIS_COMBO_ITEM_GAUGE_COLOR, AXIS_COMBO_ITEM_GAUGE_STYLE, AXIS_COMBO_ITEM_NUM_POS, AXIS_COMBO_ITEM_NUM_ALIGN, AXIS_COMBO_ITEM_NUM_DIR, AXIS_COMBO_ITEM_NUM_LOG, AXIS_COMBO_ITEM_NUM_NO_ZERO, AXIS_COMBO_ITEM_NUM_COLOR, AXIS_COMBO_ITEM_NUM_FONT, AXIS_COMBO_ITEM_NUM_BOLD, AXIS_COMBO_ITEM_NUM_ITALIC, }; static void create_base_combo_item(GtkTreeStore *list, GtkTreeIter *parent, struct objlist *obj, int id) { GtkTreeIter iter, child; gtk_tree_store_append(list, &iter, parent); gtk_tree_store_set(list, &iter, OBJECT_COLUMN_TYPE_STRING, _("Baseline"), OBJECT_COLUMN_TYPE_PIXBUF, NULL, OBJECT_COLUMN_TYPE_INT, -1, OBJECT_COLUMN_TYPE_TOGGLE_VISIBLE, FALSE, OBJECT_COLUMN_TYPE_PIXBUF_VISIBLE, FALSE, -1); #if GTK_CHECK_VERSION(3, 0, 0) add_bool_combo_item_to_cbox(list, NULL, &iter, AXIS_COMBO_ITEM_BASE_DRAW, obj, "baseline", id, _("Draw")); #endif add_line_style_item_to_cbox(list, &iter, AXIS_COMBO_ITEM_BASE_STYLE, obj, "style", id); add_text_combo_item_to_cbox(list, &child, &iter, -1, -1, _("Arrow"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &child, AXIS_COMBO_ITEM_BASE_ARROW, obj, "arrow", id); add_text_combo_item_to_cbox(list, &child, &iter, -1, -1, _("Wave"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &child, AXIS_COMBO_ITEM_BASE_WAVE, obj, "wave", id); add_text_combo_item_to_cbox(list, NULL, &iter, AXIS_COMBO_ITEM_BASE_COLOR, -1, _("Color"), TOGGLE_NONE, FALSE); #if ! GTK_CHECK_VERSION(3, 0, 0) add_bool_combo_item_to_cbox(list, NULL, &iter, AXIS_COMBO_ITEM_BASE_DRAW, obj, "baseline", id, _("Draw")); #endif } static void create_gauge_combo_item(GtkTreeStore *list, GtkTreeIter *parent, struct objlist *obj, int id) { GtkTreeIter iter, child; gtk_tree_store_append(list, &iter, parent); gtk_tree_store_set(list, &iter, OBJECT_COLUMN_TYPE_STRING, _("Gauge"), OBJECT_COLUMN_TYPE_PIXBUF, NULL, OBJECT_COLUMN_TYPE_INT, -1, OBJECT_COLUMN_TYPE_TOGGLE_VISIBLE, FALSE, OBJECT_COLUMN_TYPE_PIXBUF_VISIBLE, FALSE, -1); add_text_combo_item_to_cbox(list, &child, &iter, -1, -1, _("Position"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &child, AXIS_COMBO_ITEM_GAUGE_POS, obj, "gauge", id); add_line_style_item_to_cbox(list, &iter, AXIS_COMBO_ITEM_GAUGE_STYLE, obj, "gauge_style", id); add_text_combo_item_to_cbox(list, NULL, &iter, AXIS_COMBO_ITEM_GAUGE_COLOR, -1, _("Color"), TOGGLE_NONE, FALSE); } static void create_num_combo_item(GtkTreeStore *list, GtkTreeIter *parent, struct objlist *obj, int id) { GtkTreeIter iter, child; gtk_tree_store_append(list, &iter, parent); gtk_tree_store_set(list, &iter, OBJECT_COLUMN_TYPE_STRING, _("Numbering"), OBJECT_COLUMN_TYPE_PIXBUF, NULL, OBJECT_COLUMN_TYPE_INT, -1, OBJECT_COLUMN_TYPE_TOGGLE_VISIBLE, FALSE, OBJECT_COLUMN_TYPE_PIXBUF_VISIBLE, FALSE, -1); add_text_combo_item_to_cbox(list, &child, &iter, -1, -1, _("Position"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &child, AXIS_COMBO_ITEM_NUM_POS, obj, "num", id); add_text_combo_item_to_cbox(list, &child, &iter, -1, -1, _("Align"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &child, AXIS_COMBO_ITEM_NUM_ALIGN, obj, "num_align", id); add_text_combo_item_to_cbox(list, &child, &iter, -1, -1, _("Direction"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &child, AXIS_COMBO_ITEM_NUM_DIR, obj, "num_direction", id); add_text_combo_item_to_cbox(list, &child, &iter, -1, -1, _("Font"), TOGGLE_NONE, FALSE); add_font_combo_item_to_cbox(list, NULL, &child, AXIS_COMBO_ITEM_NUM_FONT, obj, "num_font", id); add_separator_combo_item_to_cbox(list, NULL, &child); add_font_style_combo_item_to_cbox(list, NULL, &child, AXIS_COMBO_ITEM_NUM_BOLD, AXIS_COMBO_ITEM_NUM_ITALIC, obj, "num_font_style", id); add_text_combo_item_to_cbox(list, NULL, &iter, AXIS_COMBO_ITEM_NUM_COLOR, -1, _("Color"), TOGGLE_NONE, FALSE); add_bool_combo_item_to_cbox(list, NULL, &iter, AXIS_COMBO_ITEM_NUM_LOG, obj, "num_log_pow", id, _("Log power")); add_bool_combo_item_to_cbox(list, NULL, &iter, AXIS_COMBO_ITEM_NUM_NO_ZERO, obj, "num_no_zero", id, _("No zero")); } static void create_type_combo_box(GtkWidget *cbox, struct objlist *obj, int id) { GtkTreeStore *list; GtkTreeIter iter; list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(cbox))); gtk_tree_store_clear(list); add_text_combo_item_to_cbox(list, &iter, NULL, -1, -1, _("Scale"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &iter, AXIS_COMBO_ITEM_SCALE, obj, "type", id); create_base_combo_item(list, NULL, obj, id); create_gauge_combo_item(list, NULL, obj, id); create_num_combo_item(list, NULL, obj, id); } static void select_type(GtkComboBox *w, gpointer user_data) { int sel, col_type, type, enum_id, found, active, style; struct objlist *obj; struct obj_list_data *d; GtkTreeStore *list; GtkTreeIter iter; char *font, *ptr; menu_lock(FALSE); d = (struct obj_list_data *) user_data; sel = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "user-data")); if (sel < 0) return; obj = getobject("axis"); list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(w))); found = gtk_combo_box_get_active_iter(w, &iter); if (! found) return; gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_INT, &col_type, OBJECT_COLUMN_TYPE_ENUM, &enum_id, -1); switch (col_type) { case AXIS_COMBO_ITEM_SCALE: getobj(d->obj, "type", sel, 0, NULL, &type); if (type == enum_id) { return; } putobj(d->obj, "type", sel, &enum_id); break; case AXIS_COMBO_ITEM_BASE_DRAW: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); active = ! active; putobj(d->obj, "baseline", sel, &active); break; case AXIS_COMBO_ITEM_BASE_COLOR: if (select_obj_color(obj, sel, OBJ_FIELD_COLOR_TYPE_AXIS_BASE)) { return; } break; case AXIS_COMBO_ITEM_BASE_STYLE: if (enum_id < 0 || enum_id >= FwNumStyleNum) { return; } if (chk_sputobjfield(d->obj, sel, "style", FwLineStyle[enum_id].list) != 0) { return; } if (! get_graph_modified()) { return; } break; case AXIS_COMBO_ITEM_BASE_ARROW: getobj(d->obj, "arrow", sel, 0, NULL, &type); if (type == enum_id) { return; } putobj(d->obj, "arrow", sel, &enum_id); break; case AXIS_COMBO_ITEM_BASE_WAVE: getobj(d->obj, "wave", sel, 0, NULL, &type); if (type == enum_id) { return; } putobj(d->obj, "wave", sel, &enum_id); break; case AXIS_COMBO_ITEM_GAUGE_POS: getobj(d->obj, "gauge", sel, 0, NULL, &type); if (type == enum_id) { return; } putobj(d->obj, "gauge", sel, &enum_id); break; case AXIS_COMBO_ITEM_GAUGE_COLOR: if (select_obj_color(obj, sel, OBJ_FIELD_COLOR_TYPE_AXIS_GAUGE)) { return; } break; case AXIS_COMBO_ITEM_GAUGE_STYLE: if (enum_id < 0 || enum_id >= FwNumStyleNum) { return; } if (chk_sputobjfield(d->obj, sel, "gauge_style", FwLineStyle[enum_id].list) != 0) { return; } if (! get_graph_modified()) { return; } break; case AXIS_COMBO_ITEM_NUM_POS: getobj(d->obj, "num", sel, 0, NULL, &type); if (type == enum_id) { return; } putobj(d->obj, "num", sel, &enum_id); break; case AXIS_COMBO_ITEM_NUM_ALIGN: getobj(d->obj, "num_align", sel, 0, NULL, &type); if (type == enum_id) { return; } putobj(d->obj, "num_align", sel, &enum_id); break; case AXIS_COMBO_ITEM_NUM_DIR: getobj(d->obj, "num_direction", sel, 0, NULL, &type); if (type == enum_id) { return; } putobj(d->obj, "num_direction", sel, &enum_id); break; case AXIS_COMBO_ITEM_NUM_LOG: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); active = ! active; putobj(d->obj, "num_log_pow", sel, &active); break; case AXIS_COMBO_ITEM_NUM_NO_ZERO: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); active = ! active; putobj(d->obj, "num_no_zero", sel, &active); break; case AXIS_COMBO_ITEM_NUM_COLOR: if (select_obj_color(obj, sel, OBJ_FIELD_COLOR_TYPE_AXIS_NUM)) { return; } break; case AXIS_COMBO_ITEM_NUM_FONT: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_STRING, &font, -1); getobj(d->obj, "num_font", sel, 0, NULL, &ptr); if (g_strcmp0(font, ptr) == 0) { g_free(font); return; } putobj(d->obj, "num_font", sel, font); break; case AXIS_COMBO_ITEM_NUM_BOLD: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); getobj(d->obj, "num_font_style", sel, 0, NULL, &type); style = (type & GRA_FONT_STYLE_ITALIC) | (active ? 0 : GRA_FONT_STYLE_BOLD); putobj(d->obj, "num_font_style", sel, &style); break; case AXIS_COMBO_ITEM_NUM_ITALIC: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); getobj(d->obj, "num_font_style", sel, 0, NULL, &type); style = (type & GRA_FONT_STYLE_BOLD) | (active ? 0 : GRA_FONT_STYLE_ITALIC); putobj(d->obj, "num_font_style", sel, &style); break; default: return; } d->select = sel; d->update(d, FALSE); set_graph_modified(); } static void start_editing_type(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path, gpointer user_data) { GtkTreeIter iter; struct obj_list_data *d; GtkWidget *cbox; int sel; struct objlist *obj; menu_lock(TRUE); d = (struct obj_list_data *) user_data; sel = tree_view_get_selected_row_int_from_path(d->text, path, &iter, AXIS_WIN_COL_ID); if (sel < 0) { return; } cbox = GTK_WIDGET(editable); g_object_set_data(G_OBJECT(cbox), "user-data", GINT_TO_POINTER(sel)); init_object_combo_box(cbox); obj = getobject("axis"); if (obj == NULL) { return; } create_type_combo_box(cbox, obj, sel); g_signal_connect(cbox, "editing-done", G_CALLBACK(select_type), d); gtk_widget_show(cbox); return; } static void axiswin_delete_axis(struct obj_list_data *d) { int sel, num; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), AXIS_WIN_COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 0) && (sel <= num)) { AxisDel(sel); AxisWinUpdate(d, TRUE); FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); set_graph_modified(); d->select = -1; } } static void axis_delete_popup_func(GtkMenuItem *w, gpointer client_data) { struct obj_list_data *d; d = (struct obj_list_data *) client_data; axiswin_delete_axis(d); } static void AxisWinAxisTop(GtkWidget *w, gpointer client_data) { int sel, num; struct obj_list_data *d; d = (struct obj_list_data *) client_data; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), AXIS_WIN_COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 0) && (sel <= num)) { movetopobj(d->obj, sel); d->select = 0; AxisMove(sel,0); AxisWinUpdate(d, FALSE); FileWinUpdate(NgraphApp.FileWin.data.data, FALSE); set_graph_modified(); } } static void AxisWinAxisLast(GtkWidget *w, gpointer client_data) { int sel, num; struct obj_list_data *d; d = (struct obj_list_data *) client_data; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), AXIS_WIN_COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 0) && (sel <= num)) { movelastobj(d->obj, sel); d->select = num; AxisMove(sel, num); AxisWinUpdate(d, FALSE); FileWinUpdate(NgraphApp.FileWin.data.data, FALSE); set_graph_modified(); } } static void AxisWinAxisUp(GtkWidget *w, gpointer client_data) { int sel, num; struct obj_list_data *d; d = (struct obj_list_data *) client_data; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), AXIS_WIN_COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 1) && (sel <= num)) { moveupobj(d->obj, sel); d->select = sel - 1; AxisMove(sel, sel - 1); AxisWinUpdate(d, FALSE); FileWinUpdate(NgraphApp.FileWin.data.data, FALSE); set_graph_modified(); } } static void AxisWinAxisDown(GtkWidget *w, gpointer client_data) { int sel, num; struct obj_list_data *d; d = (struct obj_list_data *) client_data; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), AXIS_WIN_COL_ID); num = chkobjlastinst(d->obj); if (sel >= 0 && sel <= num-1) { movedownobj(d->obj, sel); d->select = sel + 1; AxisMove(sel, sel + 1); AxisWinUpdate(d, FALSE); FileWinUpdate(NgraphApp.FileWin.data.data, FALSE); set_graph_modified(); } } static gboolean axiswin_ev_key_down(GtkWidget *w, GdkEvent *event, gpointer user_data) { struct obj_list_data *d; GdkEventKey *e; g_return_val_if_fail(w != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); if (Menulock || Globallock) return TRUE; d = (struct obj_list_data *) user_data; e = (GdkEventKey *)event; switch (e->keyval) { case GDK_KEY_Delete: axiswin_delete_axis(d); break; case GDK_KEY_Home: if (e->state & GDK_SHIFT_MASK) AxisWinAxisTop(w, d); else return FALSE; break; case GDK_KEY_End: if (e->state & GDK_SHIFT_MASK) AxisWinAxisLast(w, d); else return FALSE; break; case GDK_KEY_Up: if (e->state & GDK_SHIFT_MASK) AxisWinAxisUp(w, d); else return FALSE; break; case GDK_KEY_Down: if (e->state & GDK_SHIFT_MASK) AxisWinAxisDown(w, d); else return FALSE; break; default: return FALSE; } return TRUE; } void CmAxisWindow(GtkToggleAction *action, gpointer client_data) { struct SubWin *d; int state; d = &(NgraphApp.AxisWin); if (action) { state = gtk_toggle_action_get_active(action); } else { state = TRUE; } if (d->Win) { sub_window_set_visibility(d, state); return; } if (! state) { return; } list_sub_window_create(d, "Axis Window", AXIS_WIN_COL_NUM, Alist, Axiswin_xpm, Axiswin48_xpm); d->data.data->update = AxisWinUpdate; d->data.data->setup_dialog = AxisDialog; d->data.data->dialog = &DlgAxis; d->data.data->ev_key = axiswin_ev_key_down; d->data.data->delete = AxisDelCB; d->data.data->obj = chkobject("axis"); sub_win_create_popup_menu(d->data.data, POPUP_ITEM_NUM, Popup_list, G_CALLBACK(popup_show_cb)); set_editable_cell_renderer_cb(d->data.data, AXIS_WIN_COL_X, Alist, G_CALLBACK(pos_x_edited)); set_editable_cell_renderer_cb(d->data.data, AXIS_WIN_COL_Y, Alist, G_CALLBACK(pos_y_edited)); set_editable_cell_renderer_cb(d->data.data, AXIS_WIN_COL_MIN, Alist, G_CALLBACK(min_edited)); set_editable_cell_renderer_cb(d->data.data, AXIS_WIN_COL_MAX, Alist, G_CALLBACK(max_edited)); set_editable_cell_renderer_cb(d->data.data, AXIS_WIN_COL_INC, Alist, G_CALLBACK(inc_edited)); set_combo_cell_renderer_cb(d->data.data, AXIS_WIN_COL_TYPE, Alist, G_CALLBACK(start_editing_type), NULL); list_store_set_align(GTK_WIDGET(d->data.data->text), AXIS_WIN_COL_MIN, 1.0); list_store_set_align(GTK_WIDGET(d->data.data->text), AXIS_WIN_COL_MAX, 1.0); list_store_set_align(GTK_WIDGET(d->data.data->text), AXIS_WIN_COL_INC, 1.0); gtk_tree_view_set_enable_search(GTK_TREE_VIEW(d->data.data->text), TRUE); gtk_tree_view_set_search_column(GTK_TREE_VIEW(d->data.data->text), AXIS_WIN_COL_NAME); gtk_tree_view_set_tooltip_column(GTK_TREE_VIEW(d->data.data->text), AXIS_WIN_COL_NAME); } ngraph-gtk-6.06.13/src/gtk/gtk_entry_completion.h0000644000175000017500000000066212241111703016632 00000000000000/* * $Id: gtk_entry_completion.h,v 1.1.1.1 2008-05-29 09:37:33 hito Exp $ */ GtkEntryCompletion *entry_completion_create(void); void entry_completion_set_entry(GtkEntryCompletion *comp, GtkWidget *entry); int entry_completion_save(GtkEntryCompletion *comp, char *file, int size); int entry_completion_load(GtkEntryCompletion *comp, char *file, int size); void entry_completion_append(GtkEntryCompletion *comp, const char *str); ngraph-gtk-6.06.13/src/gtk/x11cood.h0000644000175000017500000000210012241111703013636 00000000000000/* * $Id: x11cood.h,v 1.2 2009-02-06 08:25:14 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ void CoordWinSetFont(const char *font); void CoordWinUpdate(int clear); void CoordWinSetCoord(int x, int y); void CmCoordinateWindow(GtkToggleAction *action, gpointer client_data); ngraph-gtk-6.06.13/src/gtk/x11opt.c0000644000175000017500000014437012241111703013527 00000000000000/* * $Id: x11opt.c,v 1.81 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include "object.h" #include "ioutil.h" #include "nstring.h" #include "nconfig.h" #include "odraw.h" #include "gtk_liststore.h" #include "gtk_subwin.h" #include "gtk_combo.h" #include "gtk_widget.h" #include "x11gui.h" #include "x11dialg.h" #include "ox11menu.h" #include "x11menu.h" #include "x11file.h" #include "x11graph.h" #include "x11view.h" #include "x11lgnd.h" #include "x11opt.h" #include "x11commn.h" #include "x11cood.h" #include "x11info.h" #define MESSAGE_BUF_SIZE 4096 #define WIN_SIZE_MIN 100 #define WIN_SIZE_MAX 2048 #define GRID_MAX 1000 static void DefaultDialogSetup(GtkWidget *wi, void *data, int makewidget) { struct DefaultDialog *d; GtkWidget *w; d = (struct DefaultDialog *) data; if (makewidget) { w = gtk_check_button_new_with_mnemonic(_("_Geometry")); d->geometry = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); w = gtk_check_button_new_with_mnemonic(_("_Child Geometry")); d->child_geometry = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); w = gtk_check_button_new_with_mnemonic(_("_Viewer")); d->viewer = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); w = gtk_check_button_new_with_mnemonic(_("_External Viewer")); d->external_viewer = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); w = gtk_check_button_new_with_mnemonic(_("_Font aliases")); d->fonts = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); w = gtk_check_button_new_with_mnemonic(_("_External Driver")); d->external_driver = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); w = gtk_check_button_new_with_mnemonic(_("_Add-in Script")); d->addin_script = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); w = gtk_check_button_new_with_mnemonic(_("_Miscellaneous")); d->misc = w; gtk_box_pack_start(GTK_BOX(d->vbox), w, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->geometry), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->child_geometry), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->viewer), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->external_viewer), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->external_driver), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->addin_script), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->misc), FALSE); gtk_widget_set_visible(d->geometry, ! Menulocal.single_window_mode); gtk_widget_set_visible(d->child_geometry, ! Menulocal.single_window_mode); } static int save_config(int type) { if (!CheckIniFile()) { return 1; } if (type & SAVE_CONFIG_TYPE_X11MENU) { menu_save_config(type); } if (type & SAVE_CONFIG_TYPE_FONTS) { gra2cairo_save_config(); } return 0; } static void DefaultDialogClose(GtkWidget *win, void *data) { struct DefaultDialog *d; unsigned int i; int ret, type; struct { GtkWidget *btn; enum SAVE_CONFIG_TYPE type; } btns[] = { {NULL, SAVE_CONFIG_TYPE_GEOMETRY}, {NULL, SAVE_CONFIG_TYPE_CHILD_GEOMETRY}, {NULL, SAVE_CONFIG_TYPE_VIEWER}, {NULL, SAVE_CONFIG_TYPE_EXTERNAL_DRIVER}, {NULL, SAVE_CONFIG_TYPE_ADDIN_SCRIPT}, {NULL, SAVE_CONFIG_TYPE_MISC}, {NULL, SAVE_CONFIG_TYPE_EXTERNAL_VIEWER}, {NULL, SAVE_CONFIG_TYPE_FONTS}, }; d = (struct DefaultDialog *) data; if (d->ret != IDOK) return; ret = d->ret; d->ret = IDLOOP; btns[0].btn = d->geometry; btns[1].btn = d->child_geometry; btns[2].btn = d->viewer; btns[3].btn = d->external_driver; btns[4].btn = d->addin_script; btns[5].btn = d->misc; btns[6].btn = d->external_viewer; btns[7].btn = d->fonts; type = 0; for (i = 0; i < sizeof(btns) / sizeof(*btns); i++) { if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(btns[i].btn))) { type |= btns[i].type; } } if (save_config(type)) { d->ret = ret; return; } d->ret = ret; } void DefaultDialog(struct DefaultDialog *data) { data->SetupWindow = DefaultDialogSetup; data->CloseWindow = DefaultDialogClose; } static void active_script_changed(GtkComboBox *widget, gpointer user_data) { struct SetScriptDialog *d; struct script *addin; int i, n; d = (struct SetScriptDialog *) user_data; n = gtk_combo_box_get_active(widget); if (n < 1) { gtk_entry_set_text(GTK_ENTRY(d->name), ""); gtk_entry_set_text(GTK_ENTRY(d->script), ""); gtk_entry_set_text(GTK_ENTRY(d->option), ""); gtk_entry_set_text(GTK_ENTRY(d->description), ""); return; } addin = Menulocal.addin_list; for (i = 0; i < n - 1; i++) { if (addin == NULL) { return; } addin = addin->next; } gtk_entry_set_text(GTK_ENTRY(d->name), CHK_STR(addin->name)); gtk_entry_set_text(GTK_ENTRY(d->script), CHK_STR(addin->script)); gtk_entry_set_text(GTK_ENTRY(d->option), CHK_STR(addin->option)); gtk_entry_set_text(GTK_ENTRY(d->description), CHK_STR(addin->description)); return; } static void remove_char(char *str, int c) { int i, j, n; if (str == NULL) { return; } n = strlen(str); for (i = 0; i < n; i++) { if (str[i] == c) { for (j = i; j < n; j++) { str[j] = str[j + 1]; } n--; } } } static void SetScriptDialogSetupItem(GtkWidget *w, struct SetScriptDialog *d) { struct script *addin; char *title; combo_box_clear(d->addins); combo_box_append_text(d->addins, "Custom"); if (Menulocal.addin_list == NULL) { set_widget_sensitivity_with_label(d->addins, FALSE); } else { set_widget_sensitivity_with_label(d->addins, TRUE); for (addin = Menulocal.addin_list; addin; addin = addin->next) { title = g_strdup(addin->name); if (title) { remove_char(title, '_'); combo_box_append_text(d->addins, title); g_free(title); } } active_script_changed(GTK_COMBO_BOX(d->addins), d); } if (d->Script->name) { combo_box_set_active(d->addins, 0); gtk_entry_set_text(GTK_ENTRY(d->name), CHK_STR(d->Script->name)); gtk_entry_set_text(GTK_ENTRY(d->script), CHK_STR(d->Script->script)); gtk_entry_set_text(GTK_ENTRY(d->option), CHK_STR(d->Script->option)); gtk_entry_set_text(GTK_ENTRY(d->description), CHK_STR(d->Script->description)); } else { combo_box_set_active(d->addins, 1); } } static void SetScriptDialogBrowse(GtkEntry *w, GtkEntryIconPosition icon_pos, GdkEvent *event, gpointer user_data) { char *file; if (nGetOpenFileName(TopLevel, _("Add-in Script"), "nsc", NULL, NULL, &file, TRUE, FALSE) == IDOK) { entry_set_filename(GTK_WIDGET(w), file); } g_free(file); } static void SetScriptDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *table; struct SetScriptDialog *d; int i; d = (struct SetScriptDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Add-in:"), TRUE, i++); g_signal_connect(w, "changed", G_CALLBACK(active_script_changed), d); d->addins = w; w = create_text_entry(FALSE, TRUE); add_widget_to_table(table, w, _("_Name:"), TRUE, i++); d->name = w; w = create_file_entry_with_cb(G_CALLBACK(SetScriptDialogBrowse), NULL); add_widget_to_table(table, w, _("_Script file:"), TRUE, i++); d->script = w; w = create_text_entry(FALSE, TRUE); add_widget_to_table(table, w, _("_Option:"), TRUE, i++); d->option = w; w = create_text_entry(FALSE, TRUE); add_widget_to_table(table, w, _("_Description:"), TRUE, i++); d->description = w; gtk_box_pack_start(GTK_BOX(d->vbox), table, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } SetScriptDialogSetupItem(wi, d); } static int set_scrpt_option(GtkWidget *entry, char **opt, char *msg) { const char *buf; char *buf2; buf = gtk_entry_get_text(GTK_ENTRY(entry)); if (msg && strlen(buf) == 0) { message_box(NULL, msg, NULL, RESPONS_OK); return 1; } buf2 = g_strdup(buf); if (buf2) { g_free(*opt); *opt = buf2; } return 0; } static int set_scrpt_file(GtkWidget *entry, char **opt, char *msg) { char *buf; buf = entry_get_filename(entry); if (buf == NULL) { return 1; } if (msg && strlen(buf) == 0) { message_box(NULL, msg, NULL, RESPONS_OK); g_free(buf); return 1; } g_free(*opt); *opt = buf; return 0; } static void SetScriptDialogClose(GtkWidget *w, void *data) { int ret; struct SetScriptDialog *d; d = (struct SetScriptDialog *) data; if (d->ret != IDOK) return; ret = d->ret; d->ret = IDLOOP; if (set_scrpt_option(d->name, &(d->Script->name), _("Please specify script name."))) { return; } if (set_scrpt_file(d->script, &(d->Script->script), _("Please specify script file name."))) { return; } if (set_scrpt_option(d->option, &(d->Script->option), NULL)) { return; } if (set_scrpt_option(d->description, &(d->Script->description), _("Please specify script description."))) { return; } d->ret = ret; } void SetScriptDialog(struct SetScriptDialog *data, struct script *sc) { data->SetupWindow = SetScriptDialogSetup; data->CloseWindow = SetScriptDialogClose; data->Script = sc; } static void PrefScriptDialogSetupItem(struct PrefScriptDialog *d) { struct script *fcur; GtkTreeIter iter; list_store_clear(d->list); fcur = Menulocal.scriptroot; while (fcur) { list_store_append(d->list, &iter); list_store_set_string(d->list, &iter, 0, fcur->name); list_store_set_string(d->list, &iter, 1, fcur->script); list_store_set_string(d->list, &iter, 2, fcur->description); fcur = fcur->next; } } static void script_free(struct script *fdel) { g_free(fdel->name); g_free(fdel->script); g_free(fdel->description); g_free(fdel->option); g_free(fdel); } static void script_init(struct script *fnew) { fnew->next = NULL; fnew->name = NULL; fnew->script = NULL; fnew->option = NULL; fnew->description = NULL; } #define LIST_TYPE script #define LIST_ROOT Menulocal.scriptroot #define SET_DIALOG DlgSetScript #define LIST_FREE script_free #define LIST_INIT script_init #define CREATE_NAME(a, c) a ## Script ## c #include "x11opt_proto.h" static void PrefScriptDialogSetup(GtkWidget *wi, void *data, int makewidget) { struct PrefScriptDialog *d; n_list_store list[] = { {N_("name"), G_TYPE_STRING, TRUE, FALSE, NULL}, {N_("file"), G_TYPE_STRING, TRUE, FALSE, NULL}, {N_("description"), G_TYPE_STRING, TRUE, FALSE, NULL}, }; d = (struct PrefScriptDialog *) data; if (makewidget) { gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_SAVE, IDSAVE); PrefScriptDialogCreateWidgets(d, NULL, sizeof(list) / sizeof(*list), list); gtk_window_set_default_size(GTK_WINDOW(wi), 400, 300); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } PrefScriptDialogSetupItem(d); } static void PrefScriptDialogClose(GtkWidget *w, void *data) { struct PrefScriptDialog *d; d = (struct PrefScriptDialog *) data; switch (d->ret) { case IDSAVE: save_config(SAVE_CONFIG_TYPE_ADDIN_SCRIPT); case IDOK: create_addin_menu(); break; } } void PrefScriptDialog(struct PrefScriptDialog *data) { data->SetupWindow = PrefScriptDialogSetup; data->CloseWindow = PrefScriptDialogClose; } static void SetDriverDialogSetupItem(GtkWidget *w, struct SetDriverDialog *d) { gtk_entry_set_text(GTK_ENTRY(d->name), CHK_STR(d->Driver->name)); gtk_entry_set_text(GTK_ENTRY(d->driver), CHK_STR(d->Driver->driver)); gtk_entry_set_text(GTK_ENTRY(d->option), CHK_STR(d->Driver->option)); gtk_entry_set_text(GTK_ENTRY(d->ext), CHK_STR(d->Driver->ext)); } static void SetDriverDialogBrowse(GtkEntry *w, GtkEntryIconPosition icon_pos, GdkEvent *event, gpointer user_data) { char *file; struct SetDriverDialog *d; d = (struct SetDriverDialog *) user_data; if (nGetOpenFileName(d->widget, _("External Driver"), NULL, NULL, NULL, &file, TRUE, FALSE) == IDOK) { entry_set_filename(GTK_WIDGET(w), file); } g_free(file); } static void SetDriverDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *table; struct SetDriverDialog *d; int i; d = (struct SetDriverDialog *) data; if (makewidget) { #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_text_entry(FALSE, TRUE); add_widget_to_table(table, w, _("_Name:"), TRUE, i++); d->name = w; w = create_file_entry_with_cb(G_CALLBACK(SetDriverDialogBrowse), d); add_widget_to_table(table, w, _("_Driver:"), TRUE, i++); d->driver = w; w = create_text_entry(FALSE, TRUE); add_widget_to_table(table, w, _("_Option:"), TRUE, i++); d->option = w; w = create_text_entry(FALSE, TRUE); add_widget_to_table(table, w, _("_Extension:"), TRUE, i++); d->ext = w; gtk_box_pack_start(GTK_BOX(d->vbox), table, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } SetDriverDialogSetupItem(wi, d); } static void SetDriverDialogClose(GtkWidget *w, void *data) { const char *buf; char *buf2; int ret; struct SetDriverDialog *d; d = (struct SetDriverDialog *) data; if (d->ret != IDOK) return; ret = d->ret; d->ret = IDLOOP; buf = gtk_entry_get_text(GTK_ENTRY(d->name)); if (strlen(buf) == 0) { message_box(d->widget, _("Please specify driver name."), NULL, RESPONS_OK); return; } buf2 = g_strdup(buf); if (buf2) { g_free(d->Driver->name); d->Driver->name = buf2; } buf2 = entry_get_filename(d->driver); if (buf2) { g_free(d->Driver->driver); d->Driver->driver = buf2; } buf = gtk_entry_get_text(GTK_ENTRY(d->ext)); buf2 = g_strdup(buf); if (buf2) { g_free(d->Driver->ext); d->Driver->ext = buf2; } buf = gtk_entry_get_text(GTK_ENTRY(d->option)); buf2 = g_strdup(buf); if (buf2) { g_free(d->Driver->option); d->Driver->option = buf2; } d->ret = ret; } void SetDriverDialog(struct SetDriverDialog *data, struct extprinter *prn) { data->SetupWindow = SetDriverDialogSetup; data->CloseWindow = SetDriverDialogClose; data->Driver = prn; } static void PrefDriverDialogSetupItem(struct PrefDriverDialog *d) { struct extprinter *fcur; GtkTreeIter iter; list_store_clear(d->list); fcur = Menulocal.extprinterroot; while (fcur) { list_store_append(d->list, &iter); list_store_set_string(d->list, &iter, 0, fcur->name); fcur = fcur->next; } } static void extprinter_free(struct extprinter *fdel) { g_free(fdel->name); g_free(fdel->driver); g_free(fdel->option); g_free(fdel->ext); g_free(fdel); } static void extprinter_init(struct extprinter *fnew) { fnew->next = NULL; fnew->name = NULL; fnew->driver = NULL; fnew->option = NULL; fnew->ext = NULL; } #define LIST_TYPE extprinter #define LIST_ROOT Menulocal.extprinterroot #define SET_DIALOG DlgSetDriver #define LIST_FREE extprinter_free #define LIST_INIT extprinter_init #define CREATE_NAME(a, c) a ## Driver ## c #include "x11opt_proto.h" static void PrefDriverDialogSetup(GtkWidget *wi, void *data, int makewidget) { struct PrefDriverDialog *d; n_list_store list[] = { {N_("Driver"), G_TYPE_STRING, TRUE, FALSE, NULL}, }; d = (struct PrefDriverDialog *) data; if (makewidget) { gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_SAVE, IDSAVE); PrefDriverDialogCreateWidgets(d, NULL, sizeof(list) / sizeof(*list), list); gtk_window_set_default_size(GTK_WINDOW(wi), 400, 300); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } PrefDriverDialogSetupItem(d); } static void PrefDriverDialogClose(GtkWidget *w, void *data) { struct PrefDriverDialog *d; d = (struct PrefDriverDialog *) data; if (d->ret == IDSAVE) { save_config(SAVE_CONFIG_TYPE_EXTERNAL_DRIVER); } } void PrefDriverDialog(struct PrefDriverDialog *data) { data->SetupWindow = PrefDriverDialogSetup; data->CloseWindow = PrefDriverDialogClose; } static void FontSettingDialogSetupItem(GtkWidget *w, struct FontSettingDialog *d) { gtk_entry_set_text(GTK_ENTRY(d->alias), CHK_STR(d->alias_str)); gtk_editable_set_editable(GTK_EDITABLE(d->alias), ! d->is_update); if (d->font_str) { char *tmp; tmp = g_strdup_printf("%s, 16", d->font_str); gtk_font_button_set_font_name(GTK_FONT_BUTTON(d->font_b), tmp); g_free(tmp); } list_store_clear(d->list); if (d->alternative_str) { GtkTreeIter iter; gchar **ary; int i; ary = g_strsplit(d->alternative_str, ",", 0); for (i = 0; ary[i]; i++) { list_store_append(d->list, &iter); list_store_set_string(d->list, &iter, 0, ary[i]); } g_strfreev(ary); } d->alias_str = NULL; d->font_str = NULL; d->alternative_str = NULL; } static gboolean AlternativeFontListSelCb(GtkTreeSelection *sel, gpointer user_data) { int a, n; struct FontSettingDialog *d; d = (struct FontSettingDialog *) user_data; a = list_store_get_selected_index(d->list); n = list_store_get_num(d->list); gtk_widget_set_sensitive(d->del_b, a >= 0); gtk_widget_set_sensitive(d->up_b, a > 0); gtk_widget_set_sensitive(d->down_b, a >= 0 && a < n - 1); return FALSE; } static gchar * get_font_family(const gchar *font_name) { gchar *ptr; const gchar *family; PangoFontDescription *pdesc; pdesc = pango_font_description_from_string(font_name); family = pango_font_description_get_family(pdesc); if (family == NULL) { return NULL; } ptr = g_strdup(family); pango_font_description_free(pdesc); return ptr; } static void FontSettingDialogAddAlternative(GtkWidget *w, gpointer client_data) { struct FontSettingDialog *d; GtkWidget *dialog; d = (struct FontSettingDialog *) client_data; #if GTK_CHECK_VERSION(3, 2, 0) dialog = gtk_font_chooser_dialog_new(_("Alternative font"), NULL); if (ndialog_run(dialog) != GTK_RESPONSE_CANCEL) { const gchar *font_name; PangoFontFamily *family; GtkTreeIter iter; family = gtk_font_chooser_get_font_family(GTK_FONT_CHOOSER(dialog)); if (family) { font_name = pango_font_family_get_name(family); list_store_append(d->list, &iter); list_store_set_string(d->list, &iter, 0, font_name); } } #else dialog = gtk_font_selection_dialog_new(_("Alternative font")); if (ndialog_run(dialog) != GTK_RESPONSE_CANCEL) { gchar *font_name, *family; GtkTreeIter iter; font_name = gtk_font_selection_dialog_get_font_name(GTK_FONT_SELECTION_DIALOG(dialog)); family = get_font_family(font_name); g_free(font_name); if (family) { list_store_append(d->list, &iter); list_store_set_string(d->list, &iter, 0, family); g_free(family); } } #endif gtk_widget_destroy (dialog); } static void FontSettingDialogRemoveAlternative(GtkWidget *w, gpointer client_data) { struct FontSettingDialog *d; GtkTreeIter iter; d = (struct FontSettingDialog *) client_data; if (list_store_get_selected_iter(d->list, &iter)) { GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(d->list)); gtk_list_store_remove(GTK_LIST_STORE(model), &iter); } } static void FontSettingDialogDownAlternative(GtkWidget *wi, gpointer data) { struct FontSettingDialog *d; GtkTreeIter iter, next_iter; GtkTreeModel *model; GtkTreeSelection *sel; d = (struct FontSettingDialog *) data; if (! list_store_get_selected_iter(d->list, &iter)) { return; } model = gtk_tree_view_get_model(GTK_TREE_VIEW(d->list)); next_iter = iter; if (! gtk_tree_model_iter_next(GTK_TREE_MODEL(model), &next_iter)) { return; } gtk_list_store_move_after(GTK_LIST_STORE(model), &iter, &next_iter); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->list)); AlternativeFontListSelCb(sel, data); } static void FontSettingDialogUpAlternative(GtkWidget *wi, gpointer data) { struct FontSettingDialog *d; GtkTreeIter iter, prev_iter; GtkTreeModel *model; GtkTreePath *path; GtkTreeSelection *sel; d = (struct FontSettingDialog *) data; if (! list_store_get_selected_iter(d->list, &iter)) { return; } model = gtk_tree_view_get_model(GTK_TREE_VIEW(d->list)); path = gtk_tree_model_get_path(GTK_TREE_MODEL(model), &iter); if (gtk_tree_path_prev(path)) { gtk_tree_model_get_iter(GTK_TREE_MODEL(model), &prev_iter, path); gtk_list_store_move_before(GTK_LIST_STORE(model), &iter, &prev_iter); } gtk_tree_path_free(path); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->list)); AlternativeFontListSelCb(sel, data); } static void FontSettingDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *vbox, *table, *frame, *swin; struct FontSettingDialog *d; GtkTreeSelection *sel; d = (struct FontSettingDialog *) data; if (makewidget) { n_list_store list[] = { {N_("Font name"), G_TYPE_STRING, TRUE, FALSE, NULL}, }; int j; #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif j = 0; w = gtk_entry_new(); add_widget_to_table(table, w, _("_Alias:"), TRUE, j++); d->alias = w; w = gtk_font_button_new(); gtk_font_button_set_show_size(GTK_FONT_BUTTON(w), FALSE); gtk_font_button_set_show_style(GTK_FONT_BUTTON(w), FALSE); add_widget_to_table(table, w, _("_Font:"), TRUE, j++); d->font_b = w; gtk_box_pack_start(GTK_BOX(d->vbox), table, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); w = list_store_create(sizeof(list) / sizeof(*list), list); gtk_tree_view_set_reorderable(GTK_TREE_VIEW(w), TRUE); d->list = w; gtk_container_add(GTK_CONTAINER(swin), w); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w)); g_signal_connect(sel, "changed", G_CALLBACK(AlternativeFontListSelCb), d); gtk_box_pack_start(GTK_BOX(hbox), swin, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_button_new_from_stock(GTK_STOCK_ADD); g_signal_connect(w, "clicked", G_CALLBACK(FontSettingDialogAddAlternative), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); w = gtk_button_new_from_stock(GTK_STOCK_REMOVE); g_signal_connect(w, "clicked", G_CALLBACK(FontSettingDialogRemoveAlternative), d); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_widget_set_sensitive(w, FALSE); d->del_b = w; w = gtk_button_new_from_stock(GTK_STOCK_GO_DOWN); g_signal_connect(w, "clicked", G_CALLBACK(FontSettingDialogDownAlternative), d); gtk_box_pack_end(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_widget_set_sensitive(w, FALSE); d->down_b = w; w = gtk_button_new_from_stock(GTK_STOCK_GO_UP); g_signal_connect(w, "clicked", G_CALLBACK(FontSettingDialogUpAlternative), d); gtk_box_pack_end(GTK_BOX(vbox), w, FALSE, FALSE, 4); gtk_widget_set_sensitive(w, FALSE); d->up_b = w; gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 4); frame = gtk_frame_new(_("Alternative fonts")); gtk_container_add(GTK_CONTAINER(frame), hbox); gtk_box_pack_start(GTK_BOX(d->vbox), frame, TRUE, TRUE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } FontSettingDialogSetupItem(wi, d); } static char * get_font_alias(struct FontSettingDialog *d) { const char *alias; char *tmp, *ptr; alias = gtk_entry_get_text(GTK_ENTRY(d->alias)); tmp = g_strdup(alias); if (tmp == NULL) return NULL; g_strstrip(tmp); for (ptr = tmp; *ptr != '\0'; ptr++) { if (*ptr == '\t') *ptr = ' '; } if (tmp[0] == '\0') { g_free(tmp); tmp = NULL; } return tmp; } static void FontSettingDialogClose(GtkWidget *wi, void *data) { struct FontSettingDialog *d; gchar *alias, *family, *font; const gchar *font_name; struct fontmap *fmap; GString *alt; GtkTreeIter iter; d = (struct FontSettingDialog *) data; if (d->ret == IDCANCEL) { return; } alias = get_font_alias(d); if (alias == NULL) { if (! d->is_update) { message_box(d->widget, _("Please specify a new alias name."), NULL, RESPONS_OK); } d->ret = IDLOOP; return; } fmap = gra2cairo_get_fontmap(alias); if (fmap && ! d->is_update) { message_box(d->widget, _("Alias name already exists."), NULL, RESPONS_OK); d->ret = IDLOOP; g_free(alias); return; } font_name = gtk_font_button_get_font_name(GTK_FONT_BUTTON(d->font_b)); family = get_font_family(font_name); if (family == NULL) { g_free(alias); return; } if (d->is_update) { gra2cairo_update_fontmap(alias, family); } else { gra2cairo_add_fontmap(alias, family); } g_free(family); if (! list_store_get_iter_first(d->list, &iter)) { gra2cairo_set_alternative_font(alias, NULL); g_free(alias); return; } font = list_store_get_string(d->list, &iter, 0); alt = g_string_new(font); g_free(font); while (list_store_iter_next(d->list, &iter)) { font = list_store_get_string(d->list, &iter, 0); g_string_append_printf(alt, ",%s", font); g_free(font); } gra2cairo_set_alternative_font(alias, alt->str); g_string_free(alt, TRUE); g_free(alias); } void FontSettingDialog(struct FontSettingDialog *d, const char *alias, const char *font, const char *alternative) { d->SetupWindow = FontSettingDialogSetup; d->CloseWindow = FontSettingDialogClose; d->alias_str = alias; d->font_str = font; d->alternative_str = alternative; d->is_update = (alias != NULL); } static void PrefFontDialogSetupItem(struct PrefFontDialog *d) { struct fontmap *fcur; GtkTreeIter iter; list_store_clear(d->list); fcur = Gra2cairoConf->fontmap_list_root; while (fcur) { list_store_append(d->list, &iter); list_store_set_string(d->list, &iter, 0, fcur->fontalias); list_store_set_string(d->list, &iter, 1, fcur->fontname); list_store_set_string(d->list, &iter, 2, fcur->alternative); fcur = fcur->next; } } static void PrefFontDialogUpdate(GtkWidget *w, gpointer client_data) { struct PrefFontDialog *d; struct fontmap *fcur; char *fontalias; int ret; d = (struct PrefFontDialog *) client_data; fontalias = list_store_get_selected_string(d->list, 0); if (fontalias == NULL) return; fcur = gra2cairo_get_fontmap(fontalias); g_free(fontalias); if (fcur == NULL) return; FontSettingDialog(&DlgFontSetting, fcur->fontalias, fcur->fontname, fcur->alternative); ret = DialogExecute(d->widget, &DlgFontSetting); if (ret == IDOK) { PrefFontDialogSetupItem(d); } } static void PrefFontDialogRemove(GtkWidget *w, gpointer client_data) { struct PrefFontDialog *d; char *fontalias; d = (struct PrefFontDialog *) client_data; fontalias = list_store_get_selected_string(d->list, 0); gra2cairo_remove_fontmap(fontalias); g_free(fontalias); PrefFontDialogSetupItem(d); } static void PrefFontDialogAdd(GtkWidget *w, gpointer client_data) { struct PrefFontDialog *d; int ret; d = (struct PrefFontDialog *) client_data; FontSettingDialog(&DlgFontSetting, NULL, NULL, NULL); ret = DialogExecute(d->widget, &DlgFontSetting); if (ret == IDOK) { PrefFontDialogSetupItem(d); } } #define HAVE_UPDATE_FUNC #define LIST_TYPE fontmap #define LIST_ROOT Gra2cairoConf->fontmap_list_root #define CREATE_NAME(a, c) a ## Font ## c #include "x11opt_proto.h" static void PrefFontDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *vbox; struct PrefFontDialog *d; n_list_store list[] = { {N_("alias"), G_TYPE_STRING, TRUE, FALSE, NULL}, {N_("name"), G_TYPE_STRING, TRUE, FALSE, NULL}, {N_("alternative fonts"), G_TYPE_STRING, TRUE, FALSE, NULL}, }; d = (struct PrefFontDialog *) data; if (makewidget) { gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_SAVE, IDSAVE); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif PrefFontDialogCreateWidgets(d, vbox, sizeof(list) / sizeof(*list), list); gtk_window_set_default_size(GTK_WINDOW(wi), 550, 300); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } PrefFontDialogSetupItem(d); } static void PrefFontDialogClose(GtkWidget *w, void *data) { struct PrefFontDialog *d; d = (struct PrefFontDialog *) data; if (d->ret == IDSAVE) { save_config(SAVE_CONFIG_TYPE_FONTS); } } void PrefFontDialog(struct PrefFontDialog *data) { data->SetupWindow = PrefFontDialogSetup; data->CloseWindow = PrefFontDialogClose; } static void MiscDialogSetupItem(GtkWidget *w, struct MiscDialog *d) { if (Menulocal.editor) gtk_entry_set_text(GTK_ENTRY(d->editor), Menulocal.editor); if (Menulocal.help_browser) gtk_entry_set_text(GTK_ENTRY(d->help_browser), Menulocal.help_browser); if (Menulocal.browser) gtk_entry_set_text(GTK_ENTRY(d->browser), Menulocal.browser); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->directory), Menulocal.changedirectory); combo_box_set_active(d->path, Menulocal.savepath); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->datafile), Menulocal.savewithdata); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->mergefile), Menulocal.savewithmerge); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->expand), Menulocal.expand); if (Menulocal.expanddir) gtk_entry_set_text(GTK_ENTRY(d->expanddir), Menulocal.expanddir); combo_box_set_active(d->loadpath, Menulocal.loadpath); spin_entry_set_val(d->hist_size, Menulocal.hist_size); spin_entry_set_val(d->info_size, Menulocal.info_size); spin_entry_set_val(d->data_head_lines, Menulocal.data_head_lines); if (Menulocal.coordwin_font) { gtk_font_button_set_font_name(GTK_FONT_BUTTON(d->coordwin_font), Menulocal.coordwin_font); } if (Menulocal.infowin_font) { gtk_font_button_set_font_name(GTK_FONT_BUTTON(d->infowin_font), Menulocal.infowin_font); } if (Menulocal.file_preview_font) { gtk_font_button_set_font_name(GTK_FONT_BUTTON(d->file_preview_font), Menulocal.file_preview_font); } gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->use_opacity), Menulocal.use_opacity); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->select_data), Menulocal.select_data); } static void set_file_in_entry(GtkEntry *w, GtkEntryIconPosition icon_pos, GdkEvent *event, gpointer user_data) { char *file; struct SetDriverDialog *d; d = (struct SetDriverDialog *) user_data; if (nGetOpenFileName(d->widget, _("Select program"), NULL, NULL, NULL, &file, TRUE, FALSE) == IDOK) { entry_set_filename(GTK_WIDGET(w), file); } g_free(file); } static void MiscDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox2, *vbox2, *frame, *table; struct MiscDialog *d; int i, j; d = (struct MiscDialog *) data; if (makewidget) { d->show_cancel = FALSE; gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_CANCEL, IDCANCEL); gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_SAVE, IDSAVE); #if GTK_CHECK_VERSION(3, 0, 0) hbox2 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else hbox2 = gtk_hbox_new(FALSE, 4); vbox2 = gtk_vbox_new(FALSE, 4); #endif frame = gtk_frame_new(_("External programs")); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_file_entry_with_cb(G_CALLBACK(set_file_in_entry), d); add_widget_to_table(table, w, _("_Editor:"), TRUE, i++); d->editor = w; w = create_file_entry_with_cb(G_CALLBACK(set_file_in_entry), d); add_widget_to_table(table, w, _("_Help browser:"), TRUE, i++); d->help_browser = w; w = create_file_entry_with_cb(G_CALLBACK(set_file_in_entry), d); add_widget_to_table(table, w, _("_Web browser:"), TRUE, i++); d->browser = w; gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(vbox2), frame, FALSE, FALSE, 4); frame = gtk_frame_new(NULL); gtk_frame_set_label(GTK_FRAME(frame), _("Save graph")); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Path:"), FALSE, i++); for (j = 0; pathchar[j]; j++) { combo_box_append_text(w, _(pathchar[j])); } d->path = w; w = gtk_check_button_new_with_mnemonic(_("include _Data file")); d->datafile = w; add_widget_to_table(table, w, NULL, FALSE, i++); w = gtk_check_button_new_with_mnemonic(_("include _Merge file")); d->mergefile = w; add_widget_to_table(table, w, NULL, FALSE, i++); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(vbox2), frame, FALSE, FALSE, 4); frame = gtk_frame_new(NULL); gtk_frame_set_label(GTK_FRAME(frame), _("Load graph")); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = gtk_check_button_new_with_mnemonic(_("_Expand include file")); add_widget_to_table(table, w, NULL, FALSE, i++); d->expand = w; w = create_text_entry(FALSE, TRUE); add_widget_to_table(table, w, _("_Expand directory:"), TRUE, i++); d->expanddir = w; w = combo_box_create(); add_widget_to_table(table, w, _("_Path:"), FALSE, i++); for (j = 0; LoadPathStr[j]; j++) { combo_box_append_text(w, _(LoadPathStr[j])); } d->loadpath = w; gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(vbox2), frame, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(hbox2), vbox2, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox2 = gtk_vbox_new(FALSE, 4); #endif frame = gtk_frame_new(_("Size")); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry(1, HIST_SIZE_MAX, 1, FALSE, TRUE); add_widget_to_table(table, w, _("_Size of completion history:"), FALSE, i++); d->hist_size = w; w = create_spin_entry(1, INFOWIN_SIZE_MAX, 1, FALSE, TRUE); add_widget_to_table(table, w, _("_Length of information view:"), FALSE, i++); d->info_size = w; w = create_spin_entry(0, SPIN_ENTRY_MAX, 1, FALSE, TRUE); add_widget_to_table(table, w, _("_Length of data preview:"), FALSE, i++); d->data_head_lines = w; gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(vbox2), frame, FALSE, FALSE, 4); frame = gtk_frame_new(_("Font")); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = gtk_font_button_new(); add_widget_to_table(table, w, _("_Coordinate view:"), FALSE, i++); d->coordwin_font = w; w = gtk_font_button_new(); add_widget_to_table(table, w, _("_Information view:"), FALSE, i++); d->infowin_font = w; w = gtk_font_button_new(); add_widget_to_table(table, w, _("data _Preview:"), FALSE, i++); d->file_preview_font = w; gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(vbox2), frame, FALSE, FALSE, 4); frame = gtk_frame_new(_("Miscellaneous")); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = gtk_check_button_new_with_mnemonic(_("_Check \"change current directory\"")); add_widget_to_table(table, w, NULL, FALSE, i++); d->directory = w; w = gtk_check_button_new_with_mnemonic(_("_Use opacity")); add_widget_to_table(table, w, NULL, FALSE, i++); d->use_opacity = w; w = gtk_check_button_new_with_mnemonic(_("_Show select data dialog on exporting")); add_widget_to_table(table, w, NULL, FALSE, i++); d->select_data = w; gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(vbox2), frame, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(hbox2), vbox2, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), hbox2, TRUE, TRUE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } MiscDialogSetupItem(wi, d); } static int set_font(char **cfg, GtkWidget *btn) { const char *buf; buf = gtk_font_button_get_font_name(GTK_FONT_BUTTON(btn)); if (buf && *cfg) { if (strcmp(*cfg, buf)) { g_free(*cfg); } else { buf = NULL; } } if (buf) { *cfg = g_strdup(buf); return 1; } return 0; } static void set_program_name(GtkWidget *entry, char **prm) { const char *buf; char *buf2; buf = gtk_entry_get_text(GTK_ENTRY(entry)); if (buf) { buf2 = g_strdup(buf); if (buf2) { changefilename(buf2); g_free(*prm); } *prm = buf2; } else { g_free(*prm); *prm = NULL; } } static void MiscDialogClose(GtkWidget *w, void *data) { struct MiscDialog *d; int a, ret; const char *buf; char *buf2; d = (struct MiscDialog *) data; if (d->ret != IDOK && d->ret != IDSAVE) return; ret = d->ret; d->ret = IDLOOP; set_program_name(d->editor, &Menulocal.editor); set_program_name(d->help_browser, &Menulocal.help_browser); set_program_name(d->browser, &Menulocal.browser); Menulocal.changedirectory = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->directory)); a = combo_box_get_active(d->path); if (a >= 0) { Menulocal.savepath = a; } Menulocal.savewithdata = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->datafile)); Menulocal.savewithmerge = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->mergefile)); Menulocal.expand = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->expand)); buf = gtk_entry_get_text(GTK_ENTRY(d->expanddir)); if (buf) { buf2 = g_strdup(buf); if (buf2) { g_free(Menulocal.expanddir); Menulocal.expanddir = buf2; } } Menulocal.loadpath = combo_box_get_active(d->loadpath); a = spin_entry_get_val(d->hist_size); if (a <= HIST_SIZE_MAX && a > 0) Menulocal.hist_size = a; a = spin_entry_get_val(d->info_size); if (a <= INFOWIN_SIZE_MAX && a > 0) Menulocal.info_size = a; a = spin_entry_get_val(d->data_head_lines); putobj(d->Obj, "data_head_lines", d->Id, &a); if (set_font(&Menulocal.coordwin_font, d->coordwin_font)) { CoordWinSetFont(Menulocal.coordwin_font); } if (set_font(&Menulocal.infowin_font, d->infowin_font)) { InfoWinSetFont(Menulocal.infowin_font); } set_font(&Menulocal.file_preview_font, d->file_preview_font); Menulocal.use_opacity = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->use_opacity)); putobj(d->Obj, "use_opacity", d->Id, &Menulocal.use_opacity); Menulocal.select_data = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->select_data)); d->ret = ret; if (d->ret == IDSAVE) { save_config(SAVE_CONFIG_TYPE_MISC); } } void MiscDialog(struct MiscDialog *data, struct objlist *obj, int id) { data->SetupWindow = MiscDialogSetup; data->CloseWindow = MiscDialogClose; data->Obj = obj; data->Id = id; } static void ExViewerDialogSetupItem(GtkWidget *w, struct ExViewerDialog *d) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->use_external), Menulocal.exwin_use_external); gtk_range_set_value(GTK_RANGE(d->dpi), Menulocal.exwindpi); spin_entry_set_val(d->width, Menulocal.exwinwidth); spin_entry_set_val(d->height, Menulocal.exwinheight); } static void use_external_toggled(GtkToggleButton *togglebutton, gpointer user_data) { gboolean state; struct ExViewerDialog *d; d = (struct ExViewerDialog *) user_data; state = ! gtk_toggle_button_get_active(togglebutton); set_widget_sensitivity_with_label(d->dpi, state); set_widget_sensitivity_with_label(d->width, state); set_widget_sensitivity_with_label(d->height, state); } static void ExViewerDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *table; struct ExViewerDialog *d; int i; d = (struct ExViewerDialog *) data; if (makewidget) { d->show_cancel = FALSE; gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_CANCEL, IDCANCEL); gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_SAVE, IDSAVE); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = gtk_check_button_new_with_mnemonic(_("use _External previewer")); add_widget_to_table(table, w, NULL, FALSE, i++); g_signal_connect(w, "toggled", G_CALLBACK(use_external_toggled), d); d->use_external = w; #if GTK_CHECK_VERSION(3, 2, 0) w = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 20, 620, 1); #else w = gtk_hscale_new_with_range(20, 620, 1); #endif d->dpi = w; add_widget_to_table(table, w, "_DPI:", TRUE, i++); w = create_spin_entry(WIN_SIZE_MIN, WIN_SIZE_MAX, 1, FALSE, TRUE); add_widget_to_table(table, w, _("Window _Width:"), FALSE, i++); d->width = w; w = create_spin_entry(WIN_SIZE_MIN, WIN_SIZE_MAX, 1, FALSE, TRUE); add_widget_to_table(table, w, _("Window _Height:"), FALSE, i++); d->height = w; gtk_box_pack_start(GTK_BOX(d->vbox), table, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } ExViewerDialogSetupItem(wi, d); } static void ExViewerDialogClose(GtkWidget *w, void *data) { struct ExViewerDialog *d; d = (struct ExViewerDialog *) data; if (d->ret != IDOK && d->ret != IDSAVE) return; Menulocal.exwindpi = gtk_range_get_value(GTK_RANGE(d->dpi)); Menulocal.exwinwidth = spin_entry_get_val(d->width); Menulocal.exwinheight = spin_entry_get_val(d->height); Menulocal.exwin_use_external = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->use_external)); if (d->ret == IDSAVE) { save_config(SAVE_CONFIG_TYPE_EXTERNAL_VIEWER); } } void ExViewerDialog(struct ExViewerDialog *data) { data->SetupWindow = ExViewerDialogSetup; data->CloseWindow = ExViewerDialogClose; } static void ViewerDialogSetupItem(GtkWidget *w, struct ViewerDialog *d) { int a; #if GTK_CHECK_VERSION(3, 4, 0) GdkRGBA color; #else GdkColor color; #endif getobj(d->Obj, "dpi", d->Id, 0, NULL, &(d->dpis)); gtk_range_set_value(GTK_RANGE(d->dpi), d->dpis); getobj(d->Obj, "antialias", d->Id, 0, NULL, &a); combo_box_set_active(d->antialias, a); getobj(d->Obj, "redraw_flag", d->Id, 0, NULL, &a); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->loadfile), a); spin_entry_set_val(d->data_num, Menulocal.redrawf_num); spin_entry_set_val(d->grid, Menulocal.grid); combo_box_set_active(d->fftype, (Menulocal.focus_frame_type == N_LINE_TYPE_SOLID) ? 0 : 1); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->preserve_width), Menulocal.preserve_width); #if GTK_CHECK_VERSION(3, 4, 0) color.red = Menulocal.bg_r; color.green = Menulocal.bg_g; color.blue = Menulocal.bg_b; color.alpha = 1; gtk_color_chooser_set_use_alpha(GTK_COLOR_CHOOSER(d->bgcol), FALSE); gtk_color_chooser_set_rgba(GTK_COLOR_CHOOSER(d->bgcol), &color); #else color.red = Menulocal.bg_r * 65535; color.green = Menulocal.bg_g * 65535; color.blue = Menulocal.bg_b * 65535; gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(d->bgcol), FALSE); gtk_color_button_set_color(GTK_COLOR_BUTTON(d->bgcol), &color); #endif } static void load_file_toggled(GtkToggleButton *togglebutton, gpointer user_data) { gboolean state; struct ViewerDialog *d; d = (struct ViewerDialog *) user_data; state = gtk_toggle_button_get_active(togglebutton); set_widget_sensitivity_with_label(d->data_num, state); } static void ViewerDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *table; struct ViewerDialog *d; int i, j; d = (struct ViewerDialog *) data; if (makewidget) { d->show_cancel = FALSE; gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_CANCEL, IDCANCEL); gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_SAVE, IDSAVE); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; #if GTK_CHECK_VERSION(3, 2, 0) w = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 20, 620, 1); #else w = gtk_hscale_new_with_range(20, 620, 1); #endif d->dpi = w; add_widget_to_table(table, w, "_DPI:", TRUE, i++); w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, FALSE, TRUE); spin_entry_set_range(w, 1, GRID_MAX); add_widget_to_table(table, w, _("_Grid:"), FALSE, i++); d->grid = w; w = create_color_button(wi); add_widget_to_table(table, w, _("_Background Color:"), FALSE, i++); d->bgcol = w; w = combo_box_create(); combo_box_append_text(w, _("solid")); combo_box_append_text(w, _("dot")); add_widget_to_table(table, w, _("_Line attribute of focus frame:"), FALSE, i++); d->fftype = w; w = combo_box_create(); for (j = 0; gra2cairo_antialias_type[j]; j++) { combo_box_append_text(w, _(gra2cairo_antialias_type[j])); } d->antialias = w; add_widget_to_table(table, w, _("_Antialias:"), FALSE, i++); w = gtk_check_button_new_with_mnemonic(_("_Preserve line width and style")); d->preserve_width = w; add_widget_to_table(table, w, NULL, FALSE, i++); w = gtk_check_button_new_with_mnemonic(_("_Load files on redraw")); g_signal_connect(w, "toggled", G_CALLBACK(load_file_toggled), d); d->loadfile = w; add_widget_to_table(table, w, NULL, FALSE, i++); w = create_spin_entry_type(SPIN_BUTTON_TYPE_UINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Maximum number of data on redraw:"), FALSE, i++); d->data_num = w; gtk_box_pack_start(GTK_BOX(d->vbox), table, FALSE, FALSE, 4); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } ViewerDialogSetupItem(wi, d); } static void ViewerDialogClose(GtkWidget *w, void *data) { struct ViewerDialog *d; int ret, dpi, a; #if GTK_CHECK_VERSION(3, 4, 0) GdkRGBA color; #else GdkColor color; #endif d = (struct ViewerDialog *) data; if (d->ret != IDOK && d->ret != IDSAVE) return; ret = d->ret; d->ret = IDLOOP; dpi = gtk_range_get_value(GTK_RANGE(d->dpi)); if (d->dpis != dpi) { if (putobj(d->Obj, "dpi", d->Id, &dpi) == -1) return; d->Clear = TRUE; } a = combo_box_get_active(d->antialias); if (putobj(d->Obj, "antialias", d->Id, &a) == -1) return; Menulocal.antialias = a; a = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->loadfile)); a = a ? TRUE : FALSE; if (putobj(d->Obj, "redraw_flag", d->Id, &a) == -1) return; a = spin_entry_get_val(d->data_num); if (putobj(d->Obj, "redraw_num", d->Id, &a) == -1) return; Menulocal.preserve_width = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->preserve_width)); #if GTK_CHECK_VERSION(3, 4, 0) gtk_color_chooser_get_rgba(GTK_COLOR_CHOOSER(d->bgcol), &color); Menulocal.bg_r = color.red; Menulocal.bg_g = color.green; Menulocal.bg_b = color.blue; #else gtk_color_button_get_color(GTK_COLOR_BUTTON(d->bgcol), &color); Menulocal.bg_r = color.red / 65535.0; Menulocal.bg_g = color.green / 65535.0; Menulocal.bg_b = color.blue / 65535.0; #endif Menulocal.grid = spin_entry_get_val(d->grid); a = combo_box_get_active(d->fftype); Menulocal.focus_frame_type = ((a == 0) ? N_LINE_TYPE_SOLID : N_LINE_TYPE_DOT); d->ret = ret; if (d->ret == IDSAVE) { save_config(SAVE_CONFIG_TYPE_VIEWER); } } void ViewerDialog(struct ViewerDialog *data, struct objlist *obj, int id) { data->SetupWindow = ViewerDialogSetup; data->CloseWindow = ViewerDialogClose; data->Obj = obj; data->Id = id; data->Clear = FALSE; } void CmOptionSaveNgp(GtkAction *w, gpointer client_data) { char *ngpfile; char mes[MESSAGE_BUF_SIZE]; int i, path; struct objlist *obj; if (Menulock || Globallock) return; ngpfile = getscriptname("Ngraph.ngp"); if (ngpfile == NULL) return; path = 1; obj = chkobject("file"); if (obj) { for (i = 0; i <= chkobjlastinst(obj); i++) { putobj(obj, "save_path", i, &path); } } obj = chkobject("merge"); if (obj) { for (i = 0; i <= chkobjlastinst(obj); i++) { putobj(obj, "save_path", i, &path); } } if (naccess(ngpfile, 04) == 0) { snprintf(mes, sizeof(mes), _("`%s'\n\nOverwrite existing file?"), ngpfile); if (message_box(NULL, mes, _("Save as Ngraph.ngp"), RESPONS_YESNO) != IDYES) { g_free(ngpfile); return; } } snprintf(mes, sizeof(mes), _("Saving `%.128s'."), ngpfile); SetStatusBar(mes); SaveDrawrable(ngpfile, FALSE, FALSE); ResetStatusBar(); g_free(ngpfile); return; } void CmOptionViewer(GtkAction *w, gpointer client_data) { int r; if (Menulock || Globallock) return; ViewerDialog(&DlgViewer, Menulocal.obj, 0); r = DialogExecute(TopLevel, &DlgViewer); if (r == IDOK && DlgViewer.Clear) { ChangeDPI(); } } void CmOptionExtViewer(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; ExViewerDialog(&DlgExViewer); DialogExecute(TopLevel, &DlgExViewer); } void CmOptionPrefFont(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; PrefFontDialog(&DlgPrefFont); DialogExecute(TopLevel, &DlgPrefFont); } #if 0 static void CmOptionPrefDriver(void) { if (Menulock || Globallock) return; PrefDriverDialog(&DlgPrefDriver); DialogExecute(TopLevel, &DlgPrefDriver); } #endif void CmOptionScript(GtkAction *w, gpointer client_datavoid) { if (Menulock || Globallock) return; PrefScriptDialog(&DlgPrefScript); DialogExecute(TopLevel, &DlgPrefScript); } void CmOptionMisc(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; MiscDialog(&DlgMisc, Menulocal.obj, 0); DialogExecute(TopLevel, &DlgMisc); } void CmOptionSaveDefault(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; DefaultDialog(&DlgDefault); DialogExecute(TopLevel, &DlgDefault); } ngraph-gtk-6.06.13/src/gtk/x11cood.c0000644000175000017500000000661312241111704013647 00000000000000/* * $Id: x11cood.c,v 1.15 2009-11-16 09:13:05 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include "ntime.h" #include "object.h" #include "axis.h" #include "gtk_subwin.h" #include "x11bitmp.h" #include "x11gui.h" #include "ox11menu.h" #include "x11menu.h" #include "x11cood.h" void CoordWinSetFont(const char *font) { const char *ptr; PangoAttrList *pattr; PangoFontDescription *desc; GtkLabel *label; label = GTK_LABEL(NgraphApp.CoordWin.data.text); if (label == NULL) return; pattr = gtk_label_get_attributes(label); if (pattr == NULL) { pattr = pango_attr_list_new(); gtk_label_set_attributes(GTK_LABEL(label), pattr); } ptr = (font) ? font : "Monospace"; desc = pango_font_description_from_string(ptr); pango_attr_list_change(pattr, pango_attr_font_desc_new(desc)); pango_font_description_free(desc); } void CoordWinSetCoord(int x, int y) { struct objlist *obj; int i, num, type; char *argv[3]; double a; char *name; struct SubWin *d; static GString *str = NULL; static int lock = FALSE; d = &(NgraphApp.CoordWin); obj = chkobject("axis"); if (d->Win == NULL || obj == NULL || d->data.text == NULL) { return; } num = chkobjlastinst(obj) + 1; if (lock) { return; } lock = TRUE; if (str == NULL) { str = g_string_new(""); gtk_label_set_text(GTK_LABEL(d->data.text), ""); if (str == NULL) { lock = FALSE; return; } } g_string_printf(str, "(X:%6.2f Y:%6.2f)", x / 100.0, y / 100.0); argv[0] = (char *) &x; argv[1] = (char *) &y; argv[2] = NULL; for (i = 0; i < num; i++) { if (getobj(obj, "coordinate", i, 2, argv, &a) == -1) { continue; } getobj(obj, "group", i, 0, NULL, &name); getobj(obj, "type", i, 0, NULL, &type); g_string_append_printf(str, "\n%2d %5s %+.7e", i, name, a); if (type == AXIS_TYPE_MJD) { char *s; s = nstrftime("\n %F %T", a); if (s) { g_string_append(str, s); g_free(s); } } } gtk_label_set_text(GTK_LABEL(d->data.text), str->str); lock = FALSE; } void CoordWinUpdate(int clear) { } void CmCoordinateWindow(GtkToggleAction *action, gpointer client_data) { struct SubWin *d; int state; d = &(NgraphApp.CoordWin); if (action) { state = gtk_toggle_action_get_active(action); } else { state = TRUE; } if (d->Win) { sub_window_set_visibility(d, state); return; } if (! state) { return; } label_sub_window_create(d, "Coordinate Window", Coordwin_xpm, Coordwin48_xpm); CoordWinSetFont(Menulocal.coordwin_font); } ngraph-gtk-6.06.13/src/gtk/gtk_widget.c0000644000175000017500000007710212241111703014521 00000000000000#include #include #include "mathfn.h" #include "object.h" #include "otext.h" #include "gtk_common.h" #include "gtk_widget.h" #include "ox11menu.h" #include "x11menu.h" #include "x11gui.h" void set_widget_margin(GtkWidget *w, int margin_pos) { #if GTK_CHECK_VERSION(3, 0, 0) if (margin_pos & WIDGET_MARGIN_LEFT) { gtk_widget_set_margin_left(w, 4); } if (margin_pos & WIDGET_MARGIN_RIGHT) { gtk_widget_set_margin_right(w, 4); } if (margin_pos & WIDGET_MARGIN_BOTTOM) { gtk_widget_set_margin_bottom(w, 4); } if (margin_pos & WIDGET_MARGIN_TOP) { gtk_widget_set_margin_top(w, 4); } #endif } void set_scale_mark(GtkWidget *scale, GtkPositionType pos, int start, int inc) { int max, val; GtkAdjustment *adj; adj = gtk_range_get_adjustment(GTK_RANGE(scale)); max = gtk_adjustment_get_upper(adj); for (val = start; val <=max; val += inc) { gtk_scale_add_mark(GTK_SCALE(scale), val, pos, NULL); } switch (pos) { case GTK_POS_BOTTOM: gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_TOP); break; case GTK_POS_TOP: gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_BOTTOM); break; case GTK_POS_LEFT: gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_RIGHT); break; case GTK_POS_RIGHT: gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_LEFT); break; } } GtkWidget * get_mnemonic_label(GtkWidget *w) { GList *list; GtkWidget *label; if (w == NULL) { return NULL; } list = gtk_widget_list_mnemonic_labels(w); if (list == NULL) { return NULL; } label = GTK_WIDGET(list->data); g_list_free(list); return label; } void set_widget_sensitivity_with_label(GtkWidget *w, gboolean state) { GtkWidget *label; if(w == NULL) { return; } if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_LABEL)) { label = w; w = gtk_label_get_mnemonic_widget(GTK_LABEL(w)); } else { label = get_mnemonic_label(w); } if (w) { gtk_widget_set_sensitive(w, state); } if (label) { gtk_widget_set_sensitive(label, state); } } void set_widget_visibility_with_label(GtkWidget *w, gboolean state) { GtkWidget *label; if(w == NULL) { return; } if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_LABEL)) { label = w; w = gtk_label_get_mnemonic_widget(GTK_LABEL(w)); } else { label = get_mnemonic_label(w); } if (w) { gtk_widget_set_visible(w, state); } if (label) { gtk_widget_set_visible(label, state); } } GtkWidget * add_widget_to_table_sub(GtkWidget *table, GtkWidget *w, char *title, int expand, int col, int width, int col_max, int n) { GtkWidget *label; #if ! GTK_CHECK_VERSION(3, 4, 0) GtkWidget *align; int x, y; g_object_get(table, "n-columns", &x, "n-rows", &y, NULL); x = (x > col_max) ? x : col_max; y = (y > n + 1) ? y : n + 1; gtk_table_resize(GTK_TABLE(table), y, x); #endif label = NULL; if (title) { label = gtk_label_new_with_mnemonic(title); gtk_label_set_mnemonic_widget(GTK_LABEL(label), w); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_halign(label, GTK_ALIGN_START); g_object_set(label, "margin", GINT_TO_POINTER(4), NULL); gtk_grid_attach(GTK_GRID(table), label, col, n, 1, 1); #else gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, col, col + 1, n, n + 1, GTK_FILL, 0, 4, 4); #endif col++; } if (w) { #if GTK_CHECK_VERSION(3, 4, 0) if (expand) { gtk_widget_set_hexpand(w, TRUE); gtk_widget_set_halign(w, GTK_ALIGN_FILL); } else { gtk_widget_set_halign(w, GTK_ALIGN_START); } g_object_set(w, "margin", GINT_TO_POINTER(4), NULL); gtk_grid_attach(GTK_GRID(table), w, col, n, width, 1); #else align = gtk_alignment_new(0, 0.5, (expand) ? 1 : 0, 0); gtk_container_add(GTK_CONTAINER(align), w); gtk_table_attach(GTK_TABLE(table), align, col, col + width, n, n + 1, ((expand) ? GTK_EXPAND : 0) | GTK_FILL, 0, 4, 4); #endif } return label; } GtkWidget * add_widget_to_table(GtkWidget *table, GtkWidget *w, char *title, int expand, int n) { return add_widget_to_table_sub(table, w, title, expand, 0, (title) ? 1 : 2, 2, n); } GtkWidget * add_copy_button_to_box(GtkWidget *parent_box, GCallback cb, gpointer d, char *obj_name) { GtkWidget *hbox, *w; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = gtk_button_new_with_mnemonic(_("_Copy Settings")); g_signal_connect(w, "map", G_CALLBACK(set_sensitivity_by_check_instance), obj_name); g_signal_connect(w, "clicked", cb, d); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(parent_box), hbox, FALSE, FALSE, 4); return hbox; } GtkWidget * item_setup(GtkWidget *box, GtkWidget *w, char *title, gboolean expand) { GtkWidget *hbox, *label; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_grid_new(); label = gtk_label_new_with_mnemonic(title); gtk_label_set_mnemonic_widget(GTK_LABEL(label), w); g_object_set(label, "margin", GINT_TO_POINTER(2), NULL); g_object_set(w, "margin", GINT_TO_POINTER(2), NULL); if (expand) { gtk_widget_set_hexpand(w, TRUE); gtk_widget_set_halign(w, GTK_ALIGN_FILL); } else { gtk_widget_set_halign(w, GTK_ALIGN_START); } gtk_grid_attach(GTK_GRID(hbox), label, 0, 0, 1, 1); gtk_grid_attach(GTK_GRID(hbox), w, 1, 0, 1, 1); #else hbox = gtk_hbox_new(FALSE, 4); label = gtk_label_new_with_mnemonic(title); gtk_label_set_mnemonic_widget(GTK_LABEL(label), w); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 2); gtk_box_pack_start(GTK_BOX(hbox), w, expand, expand, 2); #endif gtk_box_pack_start(GTK_BOX(box), hbox, expand, expand, 4); return label; } int entry_set_filename(GtkWidget *w, char *filename) { gtk_entry_set_text(GTK_ENTRY(w), filename); return 0; } char * entry_get_filename(GtkWidget *w) { const char *utf8filename; utf8filename = gtk_entry_get_text(GTK_ENTRY(w)); if (utf8filename == NULL) { return NULL; } return g_strdup(utf8filename); } GtkWidget * get_parent_window(GtkWidget *w) { GtkWidget *ptr; ptr = w; while (ptr && ! G_TYPE_CHECK_INSTANCE_TYPE(ptr, GTK_TYPE_WINDOW)) { ptr = gtk_widget_get_parent(ptr); } return (ptr) ? ptr : TopLevel; } static void entry_icon_file_select(GtkEntry *w, GtkEntryIconPosition icon_pos, GdkEvent *event, gpointer user_data) { struct objlist *obj; char *file, *ext; obj = (struct objlist *) user_data; if (obj == NULL) return; ext = NULL; if (chkobjfield(obj, "ext") == 0 && chkobjlastinst(obj) >= 0) { getobj(obj, "ext", 0, 0, NULL, &ext); } if (nGetOpenFileName(get_parent_window(GTK_WIDGET(w)), obj->name, ext, NULL, gtk_entry_get_text(w), &file, TRUE, Menulocal.changedirectory) == IDOK && file) { entry_set_filename(GTK_WIDGET(w), file); g_free(file); } } GtkWidget * create_file_entry_with_cb(GCallback cb, gpointer data) { GtkWidget *w; w = create_text_entry(TRUE, TRUE); gtk_entry_set_icon_from_stock(GTK_ENTRY(w), GTK_ENTRY_ICON_SECONDARY, GTK_STOCK_OPEN); g_signal_connect(w, "icon-release", cb, data); return w; } GtkWidget * create_file_entry(struct objlist *obj) { return create_file_entry_with_cb(G_CALLBACK(entry_icon_file_select), obj); } static void direction_icon_released(GtkEntry *entry, GtkEntryIconPosition pos, GdkEvent *event, gpointer user_data) { int angle, val, rest; angle = gtk_spin_button_get_value(GTK_SPIN_BUTTON(entry)); val = angle % 360; val += (val < 0) ? 360 : 0; switch (pos) { case GTK_ENTRY_ICON_SECONDARY: if (angle == 360) { val = 0; } else { val -= val % 90; val += 90; } break; case GTK_ENTRY_ICON_PRIMARY: if (angle == 0) { val = 360; } else { rest = val % 90; if (rest == 0) { val -= 90; } else { val -= rest; } } break; } val += (val < 0) ? 360 : 0; gtk_spin_button_set_value(GTK_SPIN_BUTTON(entry), val); } GtkWidget * create_direction_entry(void) { GtkWidget *w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_ANGLE, FALSE, TRUE); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 1.2, -1); #else gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 1.5, -1); #endif gtk_entry_set_icon_from_stock(GTK_ENTRY(w), GTK_ENTRY_ICON_SECONDARY, GTK_STOCK_GO_UP); gtk_entry_set_icon_from_stock(GTK_ENTRY(w), GTK_ENTRY_ICON_PRIMARY, GTK_STOCK_GO_DOWN); g_signal_connect(w, "icon-release", G_CALLBACK(direction_icon_released), NULL); return w; } GtkWidget * create_text_entry(int set_default_size, int set_default_action) { GtkWidget *w; w = gtk_entry_new(); if (set_default_size) gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH, -1); if (set_default_action) gtk_entry_set_activates_default(GTK_ENTRY(w), TRUE); return w; } static double int2val(enum SPIN_BUTTON_TYPE type, int ival) { gdouble val; switch (type) { case SPIN_BUTTON_TYPE_WIDTH: case SPIN_BUTTON_TYPE_LENGTH: case SPIN_BUTTON_TYPE_POSITION: case SPIN_BUTTON_TYPE_ANGLE: case SPIN_BUTTON_TYPE_SPACE_POINT: case SPIN_BUTTON_TYPE_POINT: case SPIN_BUTTON_TYPE_PERCENT: val = ival * 0.01; break; case SPIN_BUTTON_TYPE_INT: case SPIN_BUTTON_TYPE_UINT: case SPIN_BUTTON_TYPE_NUM: case SPIN_BUTTON_TYPE_CUSTOM: default: val = ival; } return val; } static int val2int(enum SPIN_BUTTON_TYPE type, double val) { int ival; switch (type) { case SPIN_BUTTON_TYPE_WIDTH: case SPIN_BUTTON_TYPE_LENGTH: case SPIN_BUTTON_TYPE_POSITION: case SPIN_BUTTON_TYPE_ANGLE: case SPIN_BUTTON_TYPE_SPACE_POINT: case SPIN_BUTTON_TYPE_POINT: case SPIN_BUTTON_TYPE_PERCENT: ival = nround(val * 100); break; case SPIN_BUTTON_TYPE_INT: case SPIN_BUTTON_TYPE_UINT: case SPIN_BUTTON_TYPE_NUM: case SPIN_BUTTON_TYPE_CUSTOM: default: ival = val; } return ival; } void spin_entry_set_range(GtkWidget *w, int min, int max) { enum SPIN_BUTTON_TYPE type; type = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "user-data")); gtk_spin_button_set_range(GTK_SPIN_BUTTON(w), int2val(type, min), int2val(type, max)); } void spin_entry_set_inc(GtkWidget *w, int inc, int page) { enum SPIN_BUTTON_TYPE type; type = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "user-data")); gtk_spin_button_set_increments(GTK_SPIN_BUTTON(w), int2val(type, inc), int2val(type, page)); } void spin_entry_set_val(GtkWidget *entry, int ival) { gdouble min, max, val; enum SPIN_BUTTON_TYPE type; type = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(entry), "user-data")); val = int2val(type, ival); gtk_spin_button_get_range(GTK_SPIN_BUTTON(entry), &min, &max); if (val < min) { val = min; } else if (val > max) { val = max; } gtk_spin_button_set_value(GTK_SPIN_BUTTON(entry), val); } int spin_entry_get_val(GtkWidget *entry) { gdouble val; enum SPIN_BUTTON_TYPE type; type = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(entry), "user-data")); val = gtk_spin_button_get_value(GTK_SPIN_BUTTON(entry)); return val2int(type, val); } static int spin_change_value_cb(GtkSpinButton *spinbutton, GtkScrollType arg1, gpointer user_data) { const char *str; double oval, val; int ecode; str = gtk_entry_get_text(GTK_ENTRY(spinbutton)); if (str == NULL) return 0; oval = gtk_spin_button_get_value(GTK_SPIN_BUTTON(spinbutton)); ecode = str_calc(str, &val, NULL, NULL); if (ecode || val != val || val == HUGE_VAL || val == - HUGE_VAL) { gtk_spin_button_set_value(GTK_SPIN_BUTTON(spinbutton), oval); return 0; } gtk_spin_button_set_value(GTK_SPIN_BUTTON(spinbutton), val); return 0; } static GtkWidget * _create_spin_entry(enum SPIN_BUTTON_TYPE type, double min, double max, double inc, double page, gboolean numeric, gboolean wrap, int set_default_size, int set_default_action) { GtkWidget *w; w = gtk_spin_button_new_with_range(min, max, inc); gtk_entry_set_alignment(GTK_ENTRY(w), 1.0); gtk_spin_button_set_increments(GTK_SPIN_BUTTON(w), inc, page); gtk_spin_button_set_wrap(GTK_SPIN_BUTTON(w), wrap); gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(w), FALSE); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(w), (numeric) ? 0 : 2); if (set_default_size) gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH, -1); if (set_default_action) gtk_entry_set_activates_default(GTK_ENTRY(w), TRUE); g_object_set_data(G_OBJECT(w), "user-data", GINT_TO_POINTER(type)); g_signal_connect(w, "input", G_CALLBACK(spin_change_value_cb), NULL); return w; } GtkWidget * create_spin_entry_type(enum SPIN_BUTTON_TYPE type, int set_default_size, int set_default_action) { double min, max, inc, page = 10; gboolean wrap = FALSE, numeric = FALSE; switch (type) { case SPIN_BUTTON_TYPE_WIDTH: min = 0; max = int2val(type, SPIN_ENTRY_MAX); inc = 0.1; page = 1; break; case SPIN_BUTTON_TYPE_LENGTH: min = 0; max = int2val(type, SPIN_ENTRY_MAX); inc = 1; break; case SPIN_BUTTON_TYPE_POSITION: min = int2val(type, - SPIN_ENTRY_MAX); max = int2val(type, SPIN_ENTRY_MAX); inc = 1; break; case SPIN_BUTTON_TYPE_ANGLE: min = 0; max = 360; inc = 1; page = 15; wrap = TRUE; break; case SPIN_BUTTON_TYPE_SPACE_POINT: min = 0; max = int2val(type, SPIN_ENTRY_MAX); inc = 1; break; case SPIN_BUTTON_TYPE_POINT: min = int2val(type, TEXT_SIZE_MIN); max = int2val(type, SPIN_ENTRY_MAX); inc = 2; break; case SPIN_BUTTON_TYPE_PERCENT: min = 0; max = int2val(type, SPIN_ENTRY_MAX); inc = 1; break; case SPIN_BUTTON_TYPE_INT: min = INT_MIN; max = INT_MAX; inc = 1; numeric = TRUE; break; case SPIN_BUTTON_TYPE_UINT: min = 0; max = INT_MAX; inc = 1; numeric = TRUE; break; case SPIN_BUTTON_TYPE_NUM: min = -1; max = INT_MAX; inc = 1; numeric = TRUE; break; case SPIN_BUTTON_TYPE_NATURAL: min = 1; max = INT_MAX; inc = 1; numeric = TRUE; break; case SPIN_BUTTON_TYPE_CUSTOM: min = INT_MIN; max = INT_MAX; inc = 1; numeric = TRUE; break; default: type = SPIN_BUTTON_TYPE_CUSTOM; min = INT_MIN; max = INT_MAX; inc = 1; numeric = TRUE; } return _create_spin_entry(type, min, max, inc, page, numeric, wrap, set_default_size, set_default_action); } GtkWidget * create_spin_entry(int min, int max, int inc, int set_default_size, int set_default_action) { return _create_spin_entry(SPIN_BUTTON_TYPE_CUSTOM, min, max, inc, inc * 10, TRUE, FALSE, set_default_size, set_default_action); } #if GTK_CHECK_VERSION(3, 4, 0) static void show_color_sel(GtkWidget *w, gpointer user_data) { GdkRGBA col; char buf[64]; gtk_color_chooser_get_rgba(GTK_COLOR_CHOOSER(w), &col); snprintf(buf, sizeof(buf), "#%02X%02X%02X", nround(col.red * 255), nround(col.green * 255), nround(col.blue * 255)); gtk_widget_set_tooltip_text(w, buf); } #else static gboolean show_color_sel(GtkWidget *w, GdkEventButton *e, gpointer user_data) { GtkWidget *dlg; GtkColorSelection *sel; GdkColor col; GtkColorButton *button; gboolean r; guint16 alpha; button = GTK_COLOR_BUTTON(w); gtk_color_button_get_color(button, &col); alpha = (Menulocal.use_opacity) ? gtk_color_button_get_alpha(button) : 0xffff; dlg = gtk_color_selection_dialog_new(_("Pick a Color")); gtk_window_set_transient_for(GTK_WINDOW(dlg), GTK_WINDOW(user_data)); sel = GTK_COLOR_SELECTION(gtk_color_selection_dialog_get_color_selection(GTK_COLOR_SELECTION_DIALOG(dlg))); gtk_color_selection_set_has_palette(sel, TRUE); gtk_color_selection_set_has_opacity_control(sel, Menulocal.use_opacity); gtk_color_selection_set_current_color(sel, &col); gtk_color_selection_set_current_alpha(sel, alpha); r = ndialog_run(dlg); gtk_color_selection_get_current_color(sel, &col); alpha = gtk_color_selection_get_current_alpha(sel); gtk_widget_destroy(dlg); if (r == GTK_RESPONSE_OK) { char buf[64]; snprintf(buf, sizeof(buf), "#%02X%02X%02X", col.red >> 8, col.green >> 8, col.blue >> 8); gtk_widget_set_tooltip_text(w, buf); gtk_color_button_set_color(button, &col); gtk_color_button_set_alpha(button, alpha); } return TRUE; } static gboolean color_button_key_event(GtkWidget *w, GdkEventKey *e, gpointer u) { switch (e->keyval) { case GDK_KEY_space: case GDK_KEY_Return: if (e->type == GDK_KEY_RELEASE) { show_color_sel(w, NULL, u); } return TRUE; } return FALSE; } #endif GtkWidget * create_color_button(GtkWidget *win) { GtkWidget *w; w = gtk_color_button_new(); #if GTK_CHECK_VERSION(3, 4, 0) g_signal_connect(w, "color-set", G_CALLBACK(show_color_sel), win); #else gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(w), Menulocal.use_opacity); g_signal_connect(w, "button-release-event", G_CALLBACK(show_color_sel), win); g_signal_connect(w, "key-press-event", G_CALLBACK(color_button_key_event), win); g_signal_connect(w, "key-release-event", G_CALLBACK(color_button_key_event), win); #endif return w; } static void set_adjustment(GtkAdjustment *adj, gdouble inc) { gdouble val, min, max; if (adj == NULL || inc == 0) { return; } min = gtk_adjustment_get_lower(adj); max = gtk_adjustment_get_upper(adj) - gtk_adjustment_get_page_size(adj); val = gtk_adjustment_get_value(adj); val += inc; if (max < min) { return; } if (val < min) { val = min; } else if (val > max) { val = max; } gtk_adjustment_set_value(adj, val); } static gboolean text_view_scroll_event(GtkWidget *widget, GdkEventScroll *event, gpointer user_data) { GtkRange *scl; GtkAdjustment *x_adj, *y_adj; gdouble x, y; switch (event->direction) { case GDK_SCROLL_UP: scl = g_object_get_data(G_OBJECT(widget), "vscroll"); y_adj = gtk_range_get_adjustment(scl); y = - gtk_adjustment_get_step_increment(y_adj); x_adj = NULL; x = 0; break; case GDK_SCROLL_DOWN: scl = g_object_get_data(G_OBJECT(widget), "vscroll"); y_adj = gtk_range_get_adjustment(scl); y = gtk_adjustment_get_step_increment(y_adj); x_adj = NULL; x = 0; break; case GDK_SCROLL_LEFT: scl = g_object_get_data(G_OBJECT(widget), "hscroll"); x_adj = gtk_range_get_adjustment(scl); x = - gtk_adjustment_get_step_increment(x_adj); y_adj = NULL; y = 0; break; case GDK_SCROLL_RIGHT: scl = g_object_get_data(G_OBJECT(widget), "hscroll"); x_adj = gtk_range_get_adjustment(scl); x = gtk_adjustment_get_step_increment(x_adj); y_adj = NULL; y = 0; break; #if GTK_CHECK_VERSION(3, 4, 0) case GDK_SCROLL_SMOOTH: if (gdk_event_get_scroll_deltas((GdkEvent *) event, &x, &y)) { scl = g_object_get_data(G_OBJECT(widget), "hscroll"); x_adj = gtk_range_get_adjustment(scl); x *= gtk_adjustment_get_step_increment(x_adj); scl = g_object_get_data(G_OBJECT(widget), "vscroll"); y_adj = gtk_range_get_adjustment(scl); y *= gtk_adjustment_get_step_increment(y_adj); break; } return FALSE; #endif default: return FALSE; } set_adjustment(x_adj, x); set_adjustment(y_adj, y); return FALSE; } static void set_scroll_visibility(GtkWidget *scroll) { GtkAdjustment *adj; gdouble min, max, page; if (scroll == NULL) { return; } adj = gtk_range_get_adjustment(GTK_RANGE(scroll)); min = gtk_adjustment_get_lower(adj); max = gtk_adjustment_get_upper(adj); page = gtk_adjustment_get_page_size(adj); gtk_widget_set_visible(scroll, max - min > page); } static void text_view_size_allocate(GtkWidget*widget, GdkRectangle *allocation, gpointer user_data) { GtkWidget *scl; scl = g_object_get_data(G_OBJECT(widget), "hscroll"); set_scroll_visibility(scl); scl = g_object_get_data(G_OBJECT(widget), "vscroll"); set_scroll_visibility(scl); } static void set_linumber_color(GtkWidget *w, guint r, guint g, guint b) { #if GTK_CHECK_VERSION(3, 0, 0) GdkRGBA col; col.red = r * 1.0 / 0xFFFF; col.green = g * 1.0 / 0xFFFF; col.blue = b * 1.0 / 0xFFFF; col.alpha = 1.0; gtk_widget_override_background_color(w, GTK_STATE_NORMAL, &col); gtk_widget_override_background_color(w, GTK_STATE_ACTIVE, &col); gtk_widget_override_background_color(w, GTK_STATE_PRELIGHT, &col); gtk_widget_override_background_color(w, GTK_STATE_SELECTED, &col); gtk_widget_override_background_color(w, GTK_STATE_INSENSITIVE, &col); col.red = 0; col.green = 0; col.blue = 0; col.alpha = 1.0; gtk_widget_override_color(w, GTK_STATE_NORMAL, &col); gtk_widget_override_color(w, GTK_STATE_ACTIVE, &col); gtk_widget_override_color(w, GTK_STATE_PRELIGHT, &col); gtk_widget_override_color(w, GTK_STATE_SELECTED, &col); gtk_widget_override_color(w, GTK_STATE_INSENSITIVE, &col); #else GdkColor col; col.red = r; col.green = g; col.blue = b; gtk_widget_modify_base(w, GTK_STATE_NORMAL, &col); gtk_widget_modify_base(w, GTK_STATE_ACTIVE, &col); gtk_widget_modify_base(w, GTK_STATE_PRELIGHT, &col); gtk_widget_modify_base(w, GTK_STATE_SELECTED, &col); gtk_widget_modify_base(w, GTK_STATE_INSENSITIVE, &col); col.red = 0; col.green = 0; col.blue = 0; gtk_widget_modify_text(w, GTK_STATE_NORMAL, &col); gtk_widget_modify_text(w, GTK_STATE_ACTIVE, &col); gtk_widget_modify_text(w, GTK_STATE_PRELIGHT, &col); gtk_widget_modify_text(w, GTK_STATE_SELECTED, &col); gtk_widget_modify_text(w, GTK_STATE_INSENSITIVE, &col); #endif gtk_widget_set_sensitive(w, FALSE); } #if GTK_CHECK_VERSION(3, 0, 0) static void (* get_preferred_width_org) (GtkWidget *w, gint *min, gint *natulal); static void (* get_preferred_height_org) (GtkWidget *w, gint *min, gint *natulal); static void get_preferred_width(GtkWidget *w, gint *min, gint *natulal) { get_preferred_width_org(w, min, natulal); if (*min > 240) { *min = 0; } } static void get_preferred_height(GtkWidget *w, gint *min, gint *natulal) { get_preferred_height_org(w, min, natulal); *min = 0; } #endif GtkWidget * create_text_view_with_line_number(GtkWidget **v) { GtkWidget *view, *ln, *swin, *hs, *vs; GtkAdjustment *hadj, *vadj; GtkTextBuffer *buf; buf = gtk_text_buffer_new(NULL); view = gtk_text_view_new_with_buffer(buf); buf = gtk_text_buffer_new(NULL); ln = gtk_text_view_new_with_buffer(buf); set_linumber_color(ln, 0xCC00, 0xCC00, 0xCC00); g_object_set_data(G_OBJECT(view), "line_number", ln); gtk_widget_set_size_request(GTK_WIDGET(view), 240, 120); gtk_widget_set_size_request(GTK_WIDGET(ln), -1, 120); gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE); gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(view), FALSE); gtk_text_view_set_editable(GTK_TEXT_VIEW(ln), FALSE); gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(ln), FALSE); #if GTK_CHECK_VERSION(3, 4, 0) swin = gtk_grid_new(); #else swin = gtk_table_new(3, 2, FALSE); #endif #if GTK_CHECK_VERSION(3, 2, 0) hs = gtk_scrollbar_new(GTK_ORIENTATION_HORIZONTAL, NULL); vs = gtk_scrollbar_new(GTK_ORIENTATION_VERTICAL, NULL); #else hs = gtk_hscrollbar_new(NULL); vs = gtk_vscrollbar_new(NULL); #endif g_object_set_data(G_OBJECT(view), "hscroll", hs); g_object_set_data(G_OBJECT(view), "vscroll", vs); hadj = gtk_range_get_adjustment(GTK_RANGE(hs)); vadj = gtk_range_get_adjustment(GTK_RANGE(vs)); #if GTK_CHECK_VERSION(3, 0, 0) gtk_scrollable_set_hadjustment(GTK_SCROLLABLE(view), hadj); gtk_scrollable_set_vadjustment(GTK_SCROLLABLE(view), vadj); gtk_scrollable_set_vadjustment(GTK_SCROLLABLE(ln), vadj); /* fix-me: is there any other way to set minimum size of GtkTextView? */ get_preferred_width_org = GTK_WIDGET_GET_CLASS(view)->get_preferred_width; get_preferred_height_org = GTK_WIDGET_GET_CLASS(view)->get_preferred_height; GTK_WIDGET_GET_CLASS(view)->get_preferred_width = get_preferred_width; GTK_WIDGET_GET_CLASS(view)->get_preferred_height = get_preferred_height; #else gtk_widget_set_scroll_adjustments(view, hadj, vadj); gtk_widget_set_scroll_adjustments(ln, NULL, vadj); #endif g_signal_connect(view, "scroll-event", G_CALLBACK(text_view_scroll_event), NULL); g_signal_connect(view, "size-allocate", G_CALLBACK(text_view_size_allocate), NULL); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_vexpand(ln, TRUE); gtk_grid_attach(GTK_GRID(swin), ln, 0, 0, 1, 1); gtk_widget_set_hexpand(view, TRUE); gtk_widget_set_vexpand(view, TRUE); gtk_grid_attach(GTK_GRID(swin), view, 1, 0, 1, 1); gtk_widget_set_vexpand(hs, TRUE); gtk_grid_attach(GTK_GRID(swin), hs, 0, 1, 2, 1); gtk_widget_set_vexpand(vs, TRUE); gtk_grid_attach(GTK_GRID(swin), vs, 2, 0, 1, 1); #else gtk_table_attach(GTK_TABLE(swin), ln, 0, 1, 0, 1, 0, GTK_EXPAND | GTK_FILL, 0, 0); gtk_table_attach(GTK_TABLE(swin), view, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); gtk_table_attach(GTK_TABLE(swin), hs, 0, 2, 1, 2, GTK_FILL, GTK_FILL, 0, 0); gtk_table_attach(GTK_TABLE(swin), vs, 2, 3, 0, 1, GTK_FILL, GTK_FILL, 0, 0); #endif if (v) { *v = view; } return swin; } void text_view_with_line_number_set_text(GtkWidget *view, const gchar *str) { GtkWidget *ln; GtkTextBuffer *buf, *ln_buf; int p, i, n; GString *s; gchar *ptr; GtkTextIter start, end; buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(view)); gtk_text_buffer_set_text(buf, str, -1); ln = g_object_get_data(G_OBJECT(view), "line_number"); if (ln == NULL) { return; } s = g_string_sized_new(256); if (s == NULL) { return; } n = gtk_text_buffer_get_line_count(buf); ln_buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(ln)); p = ceil(log10(n + 1)); for (i = 0; i < n; i++) { g_string_append_printf(s, "%*d \n", p, i + 1); } ptr = g_string_free(s, FALSE); gtk_text_buffer_set_text(ln_buf, ptr, -1); g_free(ptr); gtk_text_buffer_get_iter_at_offset(ln_buf, &start, 0); gtk_text_buffer_get_iter_at_offset(ln_buf, &end, -1); } void text_view_with_line_number_set_font(GtkWidget *view, const gchar *font) { PangoFontDescription *desc; GtkWidget *ln; desc = pango_font_description_from_string(font); #if GTK_CHECK_VERSION(3, 0, 0) gtk_widget_override_font(view, NULL); gtk_widget_override_font(view, desc); #else gtk_widget_modify_font(view, NULL); gtk_widget_modify_font(view, desc); #endif ln = g_object_get_data(G_OBJECT(view), "line_number"); if (ln == NULL) { pango_font_description_free(desc); return; } #if GTK_CHECK_VERSION(3, 0, 0) gtk_widget_override_font(ln, NULL); gtk_widget_override_font(ln, desc); #else gtk_widget_modify_font(ln, NULL); gtk_widget_modify_font(ln, desc); #endif pango_font_description_free(desc); } enum SELECT_OBJ_COLOR_RESULT select_obj_color(struct objlist *obj, int id, enum OBJ_FIELD_COLOR_TYPE type) { GtkWidget *dlg; int r, g, b, a, rr ,gg, bb, aa, response; #if GTK_CHECK_VERSION(3, 4, 0) GdkRGBA color; #else GtkWidget *sel; GdkColor color; #endif char *title; switch (type) { case OBJ_FIELD_COLOR_TYPE_STROKE: title = _("Stroke Color"); getobj(obj, "stroke_R", id, 0, NULL, &r); getobj(obj, "stroke_G", id, 0, NULL, &g); getobj(obj, "stroke_B", id, 0, NULL, &b); getobj(obj, "stroke_A", id, 0, NULL, &a); break; case OBJ_FIELD_COLOR_TYPE_FILL: title = _("Fill Color"); getobj(obj, "fill_R", id, 0, NULL, &r); getobj(obj, "fill_G", id, 0, NULL, &g); getobj(obj, "fill_B", id, 0, NULL, &b); getobj(obj, "fill_A", id, 0, NULL, &a); break; case OBJ_FIELD_COLOR_TYPE_0: title = _("Color"); getobj(obj, "R", id, 0, NULL, &r); getobj(obj, "G", id, 0, NULL, &g); getobj(obj, "B", id, 0, NULL, &b); getobj(obj, "A", id, 0, NULL, &a); break; case OBJ_FIELD_COLOR_TYPE_1: title = _("Color 1"); getobj(obj, "R", id, 0, NULL, &r); getobj(obj, "G", id, 0, NULL, &g); getobj(obj, "B", id, 0, NULL, &b); getobj(obj, "A", id, 0, NULL, &a); break; case OBJ_FIELD_COLOR_TYPE_2: title = _("Color 2"); getobj(obj, "R2", id, 0, NULL, &r); getobj(obj, "G2", id, 0, NULL, &g); getobj(obj, "B2", id, 0, NULL, &b); getobj(obj, "A2", id, 0, NULL, &a); break; case OBJ_FIELD_COLOR_TYPE_AXIS_BASE: title = _("Axis baseline color"); getobj(obj, "R", id, 0, NULL, &r); getobj(obj, "G", id, 0, NULL, &g); getobj(obj, "B", id, 0, NULL, &b); getobj(obj, "A", id, 0, NULL, &a); break; case OBJ_FIELD_COLOR_TYPE_AXIS_GAUGE: title = _("Axis gauge color"); getobj(obj, "gauge_R", id, 0, NULL, &r); getobj(obj, "gauge_G", id, 0, NULL, &g); getobj(obj, "gauge_B", id, 0, NULL, &b); getobj(obj, "gauge_A", id, 0, NULL, &a); break; case OBJ_FIELD_COLOR_TYPE_AXIS_NUM: title = _("Axis numbering color"); getobj(obj, "num_R", id, 0, NULL, &r); getobj(obj, "num_G", id, 0, NULL, &g); getobj(obj, "num_B", id, 0, NULL, &b); getobj(obj, "num_A", id, 0, NULL, &a); break; default: return SELECT_OBJ_COLOR_ERROR; } if (! Menulocal.use_opacity) { a = 255; } #if GTK_CHECK_VERSION(3, 4, 0) color.red = r / 255.0; color.green = g / 255.0; color.blue = b / 255.0; color.alpha = a / 255.0; dlg = gtk_color_chooser_dialog_new(title, GTK_WINDOW(NgraphApp.FileWin.Win)); gtk_color_chooser_set_rgba(GTK_COLOR_CHOOSER(dlg), &color); gtk_color_chooser_set_use_alpha(GTK_COLOR_CHOOSER(dlg), Menulocal.use_opacity); response = ndialog_run(dlg); gtk_color_chooser_get_rgba(GTK_COLOR_CHOOSER(dlg), &color); gtk_widget_destroy(dlg); if (response != GTK_RESPONSE_OK) { return SELECT_OBJ_COLOR_CANCEL; } rr = nround(color.red * 255); gg = nround(color.green * 255); bb = nround(color.blue * 255); aa = nround(color.alpha * 255); #else color.red = (r & 0xffU) * 257; color.green = (g & 0xffU) * 257; color.blue = (b & 0xffU) * 257; dlg = gtk_color_selection_dialog_new(title); sel = gtk_color_selection_dialog_get_color_selection(GTK_COLOR_SELECTION_DIALOG(dlg)); gtk_color_selection_set_has_palette(GTK_COLOR_SELECTION(sel), TRUE); gtk_color_selection_set_has_opacity_control(GTK_COLOR_SELECTION(sel), Menulocal.use_opacity); gtk_color_selection_set_current_color(GTK_COLOR_SELECTION(sel), &color); gtk_color_selection_set_current_alpha(GTK_COLOR_SELECTION(sel), (a & 0xffU) * 257); response = ndialog_run(dlg); gtk_color_selection_get_current_color(GTK_COLOR_SELECTION(sel), &color); aa = gtk_color_selection_get_current_alpha(GTK_COLOR_SELECTION(sel)); gtk_widget_destroy(dlg); if (response != GTK_RESPONSE_OK) { return SELECT_OBJ_COLOR_CANCEL; } rr = (color.red >> 8); gg = (color.green >> 8); bb = (color.blue >> 8); aa >>= 8; #endif switch (type) { case OBJ_FIELD_COLOR_TYPE_STROKE: putobj(obj, "stroke_R", id, &rr); putobj(obj, "stroke_G", id, &gg); putobj(obj, "stroke_B", id, &bb); putobj(obj, "stroke_A", id, &aa); break; case OBJ_FIELD_COLOR_TYPE_FILL: putobj(obj, "fill_R", id, &rr); putobj(obj, "fill_G", id, &gg); putobj(obj, "fill_B", id, &bb); putobj(obj, "fill_A", id, &aa); break; case OBJ_FIELD_COLOR_TYPE_0: case OBJ_FIELD_COLOR_TYPE_1: case OBJ_FIELD_COLOR_TYPE_AXIS_BASE: putobj(obj, "R", id, &rr); putobj(obj, "G", id, &gg); putobj(obj, "B", id, &bb); putobj(obj, "A", id, &aa); break; case OBJ_FIELD_COLOR_TYPE_2: putobj(obj, "R2", id, &rr); putobj(obj, "G2", id, &gg); putobj(obj, "B2", id, &bb); putobj(obj, "A2", id, &aa); break; case OBJ_FIELD_COLOR_TYPE_AXIS_GAUGE: putobj(obj, "gauge_R", id, &rr); putobj(obj, "gauge_G", id, &gg); putobj(obj, "gauge_B", id, &bb); putobj(obj, "gauge_A", id, &aa); break; case OBJ_FIELD_COLOR_TYPE_AXIS_NUM: putobj(obj, "num_R", id, &rr); putobj(obj, "num_G", id, &gg); putobj(obj, "num_B", id, &bb); putobj(obj, "num_A", id, &aa); break; default: return SELECT_OBJ_COLOR_ERROR; } return (rr == r && gg == g && bb == b && aa == a) ? SELECT_OBJ_COLOR_SAME : SELECT_OBJ_COLOR_DIFFERENT; } ngraph-gtk-6.06.13/src/gtk/gtk_subwin.c0000644000175000017500000011274712241111703014552 00000000000000/* * $Id: gtk_subwin.c,v 1.68 2010-04-01 06:08:23 hito Exp $ */ #include "gtk_common.h" #include #include #include #include #include "object.h" #include "nstring.h" #include "mathfn.h" #include "main.h" #include "ox11menu.h" #include "x11menu.h" #include "x11view.h" #include "x11gui.h" #include "x11dialg.h" #include "gtk_liststore.h" #include "gtk_widget.h" #include "gtk_combo.h" #include "gtk_subwin.h" #define DOUBLE_CLICK_PERIOD 250 static void hidden(struct obj_list_data *d); static void modify_numeric(struct obj_list_data *d, char *field, int val); static void modify_string(struct obj_list_data *d, char *field, char *str); static void toggle_boolean(struct obj_list_data *d, char *field, int sel); static void file_select(GtkEntry *w, GtkEntryIconPosition icon_pos, GdkEvent *event, gpointer user_data) { struct obj_list_data *d; int sel, num; char *file, *ext; GtkWidget *parent; d = user_data; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } ext = NULL; if (chkobjfield(d->obj, "ext") == 0) { getobj(d->obj, "ext", sel, 0, NULL, &ext); } parent = (Menulocal.single_window_mode) ? TopLevel : d->parent->Win; if (nGetOpenFileName(parent, _("Open"), ext, NULL, gtk_entry_get_text(w), &file, TRUE, Menulocal.changedirectory) == IDOK && file) { if (file) { gtk_entry_set_text(w, file); modify_string(d, "file", file); g_free(file); } } } #if GTK_CHECK_VERSION(3, 0, 0) && ! GTK_CHECK_VERSION(3, 2, 0) static gboolean cell_focus_out(GtkWidget *widget, GdkEvent *event, gpointer user_data) { menu_lock(FALSE); return FALSE; } #endif static void select_enum(GtkComboBox *w, gpointer user_data) { int j, val, sel; struct obj_list_data *d; n_list_store *list; d = (struct obj_list_data *) user_data; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); if (sel < 0) { return; } list = g_object_get_data(G_OBJECT(w), "user-data"); getobj(d->obj, list->name, sel, 0, NULL, &val); j = combo_box_get_active(GTK_WIDGET(w)); if (j < 0 || j == val) return; if (putobj(d->obj, list->name, sel, &j) >= 0) { d->select = sel; } } static void start_editing_enum(GtkCellEditable *editable, struct obj_list_data *d, n_list_store *list) { GtkComboBox *cbox; int sel, type; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); cbox = GTK_COMBO_BOX(editable); g_object_set_data(G_OBJECT(cbox), "user-data", list); SetWidgetFromObjField(GTK_WIDGET(cbox), d->obj, sel, list->name); getobj(d->obj, list->name, sel, 0, NULL, &type); combo_box_set_active(GTK_WIDGET(cbox), type); d->select = -1; g_signal_connect(cbox, "changed", G_CALLBACK(select_enum), d); } #if GTK_CHECK_VERSION(3, 8, 0) static void spin_button_size_allocated(GtkWidget *widget, GdkRectangle *allocation, gpointer user_data) { GtkRequisition requisition; GdkRectangle new_allocation; gtk_widget_get_preferred_size(widget, &requisition, NULL); if (requisition.width <= allocation->width) { return; } new_allocation = *allocation; new_allocation.x -= (requisition.width - allocation->width) / 2; new_allocation.width = requisition.width; gtk_widget_size_allocate(widget, &new_allocation); } #endif static void start_editing(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path, gpointer user_data) { GtkTreeView *view; GtkTreeModel *model; GtkTreeIter iter; n_list_store *list; struct obj_list_data *d; menu_lock(TRUE); UnFocus(); d = user_data; view = GTK_TREE_VIEW(d->text); model = gtk_tree_view_get_model(view); list = (n_list_store *) g_object_get_data(G_OBJECT(renderer), "user-data"); if (list == NULL) return; if (! gtk_tree_model_get_iter_from_string(model, &iter, path)) return; list_store_select_iter(GTK_WIDGET(view), &iter); switch (list->type) { case G_TYPE_ENUM: start_editing_enum(editable, d, list); break; case G_TYPE_STRING: if (GTK_IS_ENTRY(editable)) { int sel; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); if (chkobjfieldtype(d->obj, list->name) == NDOUBLE) { char buf[64]; double val; getobj(d->obj, list->name, sel, 0, NULL, &val); snprintf(buf, sizeof(buf), "%.15g", val); gtk_entry_set_text(GTK_ENTRY(editable), buf); } else { char *valstr; if (strcmp(list->name, "file") == 0) { gtk_entry_set_icon_from_stock(GTK_ENTRY(editable), GTK_ENTRY_ICON_SECONDARY, GTK_STOCK_OPEN); g_signal_connect(editable, "icon-release", G_CALLBACK(file_select), d); } sgetobjfield(d->obj, sel, list->name, NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { gtk_entry_set_text(GTK_ENTRY(editable), CHK_STR(valstr)); g_free(valstr); } } #if GTK_CHECK_VERSION(3, 0, 0) && ! GTK_CHECK_VERSION(3, 2, 0) /* this code may need to avoid a bug of GTK+ 3.0 */ g_signal_connect(editable, "focus-out-event", G_CALLBACK(cell_focus_out), d); #endif } break; case G_TYPE_DOUBLE: case G_TYPE_INT: if (GTK_IS_SPIN_BUTTON(editable)) { #if GTK_CHECK_VERSION(3, 8, 0) g_signal_connect(editable, "size-allocate", G_CALLBACK(spin_button_size_allocated), NULL); #endif gtk_entry_set_alignment(GTK_ENTRY(editable), 1.0); gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(editable), FALSE); if (list->max == 36000) { gtk_spin_button_set_wrap(GTK_SPIN_BUTTON(editable), TRUE); } } break; } } static void cancel_editing(GtkCellRenderer *renderer, gpointer user_data) { menu_lock(FALSE); if (user_data) { struct obj_list_data *d; d = (struct obj_list_data *) user_data; gtk_widget_grab_focus(d->text); } } static void toggle_cb(GtkCellRendererToggle *cell_renderer, gchar *path, gpointer user_data) { struct obj_list_data *d; n_list_store *list; long int sel; GtkTreeModel *model; GtkTreeIter iter; d = user_data; list = (n_list_store *) g_object_get_data(G_OBJECT(cell_renderer), "user-data"); if (list == NULL) { return; } model = gtk_tree_view_get_model(GTK_TREE_VIEW(d->text)); if (model == NULL) { return; } if (! gtk_tree_model_get_iter_from_string(model, &iter, path)) { return; } gtk_tree_model_get(model, &iter, COL_ID, &sel, -1); toggle_boolean(d, list->name, sel); } static void enum_cb(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { struct obj_list_data *d; menu_lock(FALSE); d = (struct obj_list_data *) user_data; gtk_widget_grab_focus(d->text); if (str == NULL || d->select < 0) return; d->update(d, FALSE); set_graph_modified(); } static void numeric_cb(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { GtkTreeView *view; GtkTreeModel *model; struct obj_list_data *d; n_list_store *list; double val; int ecode; menu_lock(FALSE); d = user_data; if (str == NULL) return; view = GTK_TREE_VIEW(d->text); model = gtk_tree_view_get_model(view); list = (n_list_store *) g_object_get_data(G_OBJECT(cell_renderer), "user-data"); if (list == NULL) return; ecode = str_calc(str, &val, NULL, NULL); if (ecode || val != val || val == HUGE_VAL || val == - HUGE_VAL) { return; } if (list->type == G_TYPE_DOUBLE || list->type == G_TYPE_FLOAT) val *= 100; if (G_TYPE_CHECK_INSTANCE_TYPE(model, GTK_TYPE_LIST_STORE)) { modify_numeric(d, list->name, nround(val)); } } static void string_cb(GtkCellRenderer *renderer, gchar *path, gchar *str, gpointer user_data) { GtkTreeView *view; GtkTreeModel *model; GtkTreeIter iter; struct obj_list_data *d; n_list_store *list; menu_lock(FALSE); d = user_data; view = GTK_TREE_VIEW(d->text); model = gtk_tree_view_get_model(view); list = (n_list_store *) g_object_get_data(G_OBJECT(renderer), "user-data"); if (list == NULL) return; if (! gtk_tree_model_get_iter_from_string(model, &iter, path)) return; list_store_select_iter(GTK_WIDGET(view), &iter); if (G_TYPE_CHECK_INSTANCE_TYPE(model, GTK_TYPE_LIST_STORE)) { modify_string(d, list->name, str); } } static void set_cell_renderer_cb(struct obj_list_data *d, int n, n_list_store *list, GtkWidget *w) { int i; GtkTreeViewColumn *col; GtkCellRenderer *rend; GtkTreeView *view; GList *glist; view = GTK_TREE_VIEW(w); for (i = 0; i < n; i++) { if (! list[i].editable) continue; col = gtk_tree_view_get_column(view, i); glist = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(col)); rend = GTK_CELL_RENDERER(glist->data); g_list_free(glist); switch (list[i].type) { case G_TYPE_BOOLEAN: g_signal_connect(rend, "toggled", G_CALLBACK(toggle_cb), d); break; case G_TYPE_DOUBLE: case G_TYPE_INT: list[i].edited_id = g_signal_connect(rend, "edited", G_CALLBACK(numeric_cb), d); g_signal_connect(rend, "editing-started", G_CALLBACK(start_editing), d); g_signal_connect(rend, "editing-canceled", G_CALLBACK(cancel_editing), NULL); break; case G_TYPE_ENUM: list[i].edited_id = g_signal_connect(rend, "edited", G_CALLBACK(enum_cb), d); g_signal_connect(rend, "editing-started", G_CALLBACK(start_editing), d); g_signal_connect(rend, "editing-canceled", G_CALLBACK(cancel_editing), d); break; case G_TYPE_STRING: list[i].edited_id = g_signal_connect(rend, "edited", G_CALLBACK(string_cb), d); g_signal_connect(rend, "editing-started", G_CALLBACK(start_editing), d); g_signal_connect(rend, "editing-canceled", G_CALLBACK(cancel_editing), NULL); break; } } } static GtkCellRenderer * get_cell_renderer_from_tree_view(GtkWidget *view, int i) { GtkTreeViewColumn *col; GtkCellRenderer *rend; GList *glist; col = gtk_tree_view_get_column(GTK_TREE_VIEW(view), i); glist = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(col)); rend = GTK_CELL_RENDERER(glist->data); g_list_free(glist); return rend; } void set_editable_cell_renderer_cb(struct obj_list_data *d, int i, n_list_store *list, GCallback end) { GtkCellRenderer *rend; if (list == NULL || end == NULL || i < 0) return; if (! list[i].editable) return; rend = get_cell_renderer_from_tree_view(d->text, i); if (list[i].edited_id) { g_signal_handler_disconnect(rend, list[i].edited_id); } list[i].edited_id = g_signal_connect(rend, "edited", G_CALLBACK(end), d); } static void combo_edited_cb(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { struct obj_list_data *d; menu_lock(FALSE); d = (struct obj_list_data *) user_data; gtk_widget_grab_focus(d->text); } void set_combo_cell_renderer_cb(struct obj_list_data *d, int i, n_list_store *list, GCallback start, GCallback end) { GtkCellRenderer *rend; if (list == NULL || i < 0) return; if (! list[i].editable || (list[i].type != G_TYPE_ENUM && list[i].type != G_TYPE_PARAM)) return; rend = get_cell_renderer_from_tree_view(d->text, i); if (list[i].edited_id) { g_signal_handler_disconnect(rend, list[i].edited_id); } if (end) { list[i].edited_id = g_signal_connect(rend, "edited", G_CALLBACK(end), d); } else { list[i].edited_id = g_signal_connect(rend, "edited", G_CALLBACK(combo_edited_cb), d); } if (start) g_signal_connect(rend, "editing-started", G_CALLBACK(start), d); g_signal_connect(rend, "editing-canceled", G_CALLBACK(cancel_editing), d); } void set_obj_cell_renderer_cb(struct obj_list_data *d, int i, n_list_store *list, GCallback start) { GtkCellRenderer *rend; if (list == NULL || i < 0) return; if (! list[i].editable || list[i].type != G_TYPE_OBJECT) return; rend = get_cell_renderer_from_tree_view(d->text, i); if (start) g_signal_connect(rend, "editing-started", G_CALLBACK(start), d); g_signal_connect(rend, "editing-canceled", G_CALLBACK(cancel_editing), d); } static void get_geometry(struct SubWin *d, int *x, int *y, int *w, int *h) { switch (d->type) { case TypeFileWin: *w = Menulocal.filewidth; *h = Menulocal.fileheight; *x = Menulocal.filex; *y = Menulocal.filey; break; case TypeAxisWin: *w = Menulocal.axiswidth; *h = Menulocal.axisheight; *x = Menulocal.axisx; *y = Menulocal.axisy; break; case TypeLegendWin: *w = Menulocal.legendwidth; *h = Menulocal.legendheight; *x = Menulocal.legendx; *y = Menulocal.legendy; break; case TypeMergeWin: *w = Menulocal.mergewidth; *h = Menulocal.mergeheight; *x = Menulocal.mergex; *y = Menulocal.mergey; break; case TypeInfoWin: *w = Menulocal.dialogwidth; *h = Menulocal.dialogheight; *x = Menulocal.dialogx; *y = Menulocal.dialogy; break; case TypeCoordWin: *w = Menulocal.coordwidth; *h = Menulocal.coordheight; *x = Menulocal.coordx; *y = Menulocal.coordy; break; default: *w = DEFAULT_GEOMETRY; *h = DEFAULT_GEOMETRY; *x = DEFAULT_GEOMETRY; *y = DEFAULT_GEOMETRY; break; } } static void set_geometry(struct SubWin *d, int x, int y, int w, int h) { switch (d->type) { case TypeFileWin: Menulocal.filewidth = w; Menulocal.fileheight = h; Menulocal.filex = x; Menulocal.filey = y; break; case TypeAxisWin: Menulocal.axiswidth = w; Menulocal.axisheight = h; Menulocal.axisx = x; Menulocal.axisy = y; break; case TypeLegendWin: Menulocal.legendwidth = w; Menulocal.legendheight = h; Menulocal.legendx = x; Menulocal.legendy = y; break; case TypeMergeWin: Menulocal.mergewidth = w; Menulocal.mergeheight = h; Menulocal.mergex = x; Menulocal.mergey = y; break; case TypeInfoWin: Menulocal.dialogwidth = w; Menulocal.dialogheight = h; Menulocal.dialogx = x; Menulocal.dialogy = y; break; case TypeCoordWin: Menulocal.coordwidth = w; Menulocal.coordheight = h; Menulocal.coordx = x; Menulocal.coordy = y; break; } } static void set_visibility(struct SubWin *d, int s) { switch (d->type) { case TypeFileWin: Menulocal.fileopen = s; break; case TypeAxisWin: Menulocal.axisopen = s; break; case TypeLegendWin: Menulocal.legendopen = s; break; case TypeMergeWin: Menulocal.mergeopen = s; break; case TypeInfoWin: Menulocal.dialogopen = s; break; case TypeCoordWin: Menulocal.coordopen = s; break; } } #define DEFAULT_WIDTH 240 #define DEFAULT_HEIGHT 320 void sub_window_set_geometry(struct SubWin *d, int resize) { int w, h, x, y, x0, y0; if (d->Win == NULL) return; get_geometry(d, &x, &y, &w, &h); if (w == DEFAULT_GEOMETRY) { w = DEFAULT_WIDTH; } if (h == DEFAULT_GEOMETRY) { h = DEFAULT_HEIGHT; } if ((x != DEFAULT_GEOMETRY) && (y != DEFAULT_GEOMETRY)) { gtk_window_get_position(GTK_WINDOW(TopLevel), &x0, &y0); x += x0; y += y0; if (x < 0) { x = 0; } if (y < 0) { y = 0; } gtk_window_move(GTK_WINDOW(d->Win), x, y); } gtk_window_set_default_size(GTK_WINDOW(d->Win), w, h); if (resize) { gtk_window_resize(GTK_WINDOW(d->Win), w, h); } } static int get_window_visibility(struct SubWin *d) { GdkWindow *win; GdkWindowState state; if (d->Win == NULL) { return 0; } win = gtk_widget_get_window(d->Win); if (win == NULL) { return 0; } state = gdk_window_get_state(win); return ! (state & GDK_WINDOW_STATE_WITHDRAWN); } void sub_window_save_geometry(struct SubWin *d) { gint x, y, x0, y0, w, h; if (Menulocal.single_window_mode || ! get_window_visibility(d)) { return; } gtk_window_get_position(GTK_WINDOW(TopLevel), &x0, &y0); get_window_geometry(d->Win, &x, &y, &w, &h); set_geometry(d, x - x0, y - y0, w, h); } void sub_window_save_visibility(struct SubWin *d) { int state; state = get_window_visibility(d); set_visibility(d, state); } static void sub_window_hide(struct SubWin *d) { if (d->Win) { sub_window_save_geometry(d); gtk_widget_hide(d->Win); } } static void sub_window_show(struct SubWin *d) { if (d->Win) { gtk_window_present(GTK_WINDOW(d->Win)); } } static void sub_window_show_all(struct SubWin *d) { if (d->Win) { gtk_widget_show_all(d->Win); } } void sub_window_set_visibility(struct SubWin *d, int state) { if (d->Win == NULL) { return; } if (state) { if (! gtk_widget_get_realized(d->Win)) { sub_window_show_all(d); sub_window_set_geometry(d, TRUE); } sub_window_show(d); } else { sub_window_hide(d); } } static void cb_show(GtkWidget *widget, gpointer user_data) { struct SubWin *d; d = user_data; if (d->Win == NULL) return; sub_window_set_geometry(d, FALSE); } static gboolean cb_del(GtkWidget *w, GdkEvent *event, gpointer user_data) { struct SubWin *d; d = (struct SubWin *) user_data; window_action_set_active(d->type, FALSE); return TRUE; } static void cb_destroy(GtkWidget *w, gpointer user_data) { struct SubWin *d; struct obj_list_data *ptr, *next; d = user_data; d->Win = NULL; switch (d->type) { case TypeFileWin: case TypeAxisWin: case TypeMergeWin: case TypeLegendWin: for (ptr = d->data.data; ptr; ptr = next) { if (ptr->popup) { gtk_widget_destroy(ptr->popup); } if (ptr->popup_item) { g_free(ptr->popup_item); } next = ptr->next; g_free(ptr); } d->data.data = NULL; break; default: d->data.text = NULL; break; } } static void obj_copy(struct objlist *obj, int dest, int src) { char *field[] = {"name", NULL}; copy_obj_field(obj, dest, src, field); } static void copy(struct obj_list_data *d) { int sel, id, num; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel >= 0 && sel <= num) { id = newobj(d->obj); if (id >= 0) { obj_copy(d->obj, id, sel); set_graph_modified(); d->select = id; d->update(d, FALSE); } } } static void delete(struct obj_list_data *d) { int sel, num; int update; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } UnFocus(); if (d->delete) { d->delete(d, sel); } else { delobj(d->obj, sel); } num = chkobjlastinst(d->obj); if (num < 0) { d->select = -1; update = TRUE; } else if (sel > num) { d->select = num; update = FALSE; } else { d->select = sel; update = FALSE; } d->update(d, update); set_graph_modified(); } static void move_top(struct obj_list_data *d) { int sel, num; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } UnFocus(); movetopobj(d->obj, sel); d->select = 0; d->update(d, FALSE); set_graph_modified(); } static void move_last(struct obj_list_data *d) { int sel, num; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } movelastobj(d->obj, sel); d->select = num; d->update(d, FALSE); set_graph_modified(); } static void move_up(struct obj_list_data *d) { int sel, num; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 1) && (sel <= num)) { moveupobj(d->obj, sel); d->select = sel - 1; d->update(d, FALSE); set_graph_modified(); } } static void move_down(struct obj_list_data *d) { int sel, num; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 0) && (sel < num)) { movedownobj(d->obj, sel); d->select = sel + 1; d->update(d, FALSE); set_graph_modified(); } } static void update(struct obj_list_data *d) { int sel, ret, num; GtkWidget *parent; if (Menulock || Globallock) return; UnFocus(); sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } parent = (Menulocal.single_window_mode) ? TopLevel : d->parent->Win; d->setup_dialog(d, sel, -1); d->select = sel; if ((ret = DialogExecute(parent, d->dialog)) == IDDELETE) { if (d->delete) { d->delete(d, sel); } else { delobj(d->obj, sel); } d->select = -1; set_graph_modified(); } d->update(d, FALSE); } static void focus(struct obj_list_data *d, int add) { int sel, num; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if ((sel >= 0) && (sel <= num)) Focus(d->obj, sel, add); } static void toggle_boolean(struct obj_list_data *d, char *field, int sel) { int v1, num; if (Menulock || Globallock) return; num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } getobj(d->obj, field, sel, 0, NULL, &v1); v1 = ! v1; if (putobj(d->obj, field, sel, &v1) < 0) { return; } d->select = sel; d->update(d, FALSE); set_graph_modified(); } static void modify_numeric(struct obj_list_data *d, char *field, int val) { int sel, v1, v2, num; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } getobj(d->obj, field, sel, 0, NULL, &v1); if (putobj(d->obj, field, sel, &val) < 0) { return; } getobj(d->obj, field, sel, 0, NULL, &v2); if (v1 != v2) { d->select = sel; d->update(d, FALSE); set_graph_modified(); } } static void modify_string(struct obj_list_data *d, char *field, char *str) { int sel, num; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } if (chk_sputobjfield(d->obj, sel, field, str)) return; d->select = sel; d->update(d, FALSE); } static void hidden(struct obj_list_data *d) { int sel, num; int hidden; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } UnFocus(); getobj(d->obj, "hidden", sel, 0, NULL, &hidden); hidden = hidden ? FALSE : TRUE; putobj(d->obj, "hidden", sel, &hidden); d->select = sel; d->update(d, FALSE); set_graph_modified(); } static void set_hidden_state(struct obj_list_data *d, int hide) { int sel, num; int hidden; if (Menulock || Globallock) return; sel = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); num = chkobjlastinst(d->obj); if (sel < 0 || sel > num) { return; } getobj(d->obj, "hidden", sel, 0, NULL, &hidden); if (hidden != hide) { putobj(d->obj, "hidden", sel, &hide); d->select = sel; d->update(d, FALSE); set_graph_modified(); } } static void popup_menu_position(GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer user_data) { GtkWidget *w; GdkWindow *gdk_win; w = user_data; gdk_win = gtk_widget_get_window(w); gdk_window_get_origin(gdk_win, x, y); } static void do_popup(GdkEventButton *event, struct obj_list_data *d) { int button, event_time; GtkMenuPositionFunc func; if (event) { button = event->button; event_time = event->time; func = NULL; } else { button = 0; event_time = gtk_get_current_event_time(); func = popup_menu_position; } if (d->parent->type == TypeFileWin || d->parent->type == TypeAxisWin || d->parent->type == TypeMergeWin || d->parent->type == TypeLegendWin) { d->select = list_store_get_selected_int(GTK_WIDGET(d->text), COL_ID); } gtk_menu_popup(GTK_MENU(d->popup), NULL, NULL, func, d->text, button, event_time); } static gboolean ev_button_down(GtkWidget *w, GdkEventButton *event, gpointer user_data) { struct obj_list_data *d; static guint32 time = 0; int tdif; if (Menulock || Globallock) return FALSE; g_return_val_if_fail(w != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); tdif = event->time - time; time = event->time; /* following check is necessary for editable column. */ if (tdif > 0 && tdif < DOUBLE_CLICK_PERIOD) return TRUE; d = user_data; if (d->ev_button && d->ev_button(w, event, user_data)) return TRUE; switch (event->button) { case 1: if (event->type == GDK_2BUTTON_PRESS) { update(d); return TRUE; } break; } return FALSE; } static gboolean ev_button_up(GtkWidget *w, GdkEventButton *event, gpointer user_data) { struct obj_list_data *d; if (Menulock || Globallock) return FALSE; g_return_val_if_fail(w != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); d = user_data; switch (event->button) { case 3: if (d->popup) { do_popup(event, d); return TRUE; } break; } return FALSE; } static gboolean ev_key_down(GtkWidget *w, GdkEvent *event, gpointer user_data) { struct obj_list_data *d; GdkEventKey *e; g_return_val_if_fail(w != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); if (Menulock || Globallock) return TRUE; d = user_data; e = (GdkEventKey *)event; if (d->ev_key && d->ev_key(w, event, user_data)) return TRUE; switch (e->keyval) { case GDK_KEY_Delete: delete(d); break; case GDK_KEY_Insert: copy(d); break; case GDK_KEY_Home: if (e->state & GDK_SHIFT_MASK) move_top(d); else return FALSE; break; case GDK_KEY_End: if (e->state & GDK_SHIFT_MASK) move_last(d); else return FALSE; break; case GDK_KEY_Up: if (e->state & GDK_SHIFT_MASK) move_up(d); else return FALSE; break; case GDK_KEY_Down: if (e->state & GDK_SHIFT_MASK) move_down(d); else return FALSE; break; case GDK_KEY_Return: if (e->state & GDK_SHIFT_MASK) { e->state &= ~ GDK_SHIFT_MASK; return FALSE; } update(d); break; case GDK_KEY_BackSpace: hidden(d); break; case GDK_KEY_space: if (e->state & GDK_CONTROL_MASK) return FALSE; if (! d->can_focus) return FALSE; if (e->state & GDK_SHIFT_MASK) { list_sub_window_add_focus(NULL, d); } else { list_sub_window_focus(NULL, d); } break; default: return FALSE; } return TRUE; } static gboolean ev_sub_win_key_down(GtkWidget *w, GdkEvent *event, gpointer user_data) { GdkEventKey *e; struct SubWin *d; d = user_data; g_return_val_if_fail(w != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); e = (GdkEventKey *)event; switch (e->keyval) { case GDK_KEY_w: if (e->state & GDK_CONTROL_MASK) { window_action_set_active(d->type, FALSE); return TRUE; } return FALSE; } return FALSE; } #ifdef WINDOWS #include static void hide_minimize_menu_item(GtkWidget *widget, gpointer user_data) { HWND handle; HMENU menu; handle = GDK_WINDOW_HWND(gtk_widget_get_window(widget)); menu = GetSystemMenu(handle, FALSE); RemoveMenu(menu, SC_MINIMIZE, MF_BYCOMMAND); } #endif static void swin_realized(GtkWidget *widget, gpointer user_data) { struct obj_list_data *ptr; ptr = (struct obj_list_data *) user_data; ptr->update(ptr, TRUE); } static GtkWidget * sub_window_create(struct SubWin *d, const char *title, GtkWidget *swin, const char **xpm, const char **xpm2) { GtkWidget *dlg; GdkPixbuf *icon; GtkWindowGroup *group; dlg = gtk_window_new(GTK_WINDOW_TOPLEVEL); if (AccelGroup) gtk_window_add_accel_group(GTK_WINDOW(dlg), AccelGroup); d->Win = dlg; if (xpm) { icon = gdk_pixbuf_new_from_xpm_data(xpm); if (xpm2) { GList *tmp, *list = NULL; list = g_list_append(list, icon); icon = gdk_pixbuf_new_from_xpm_data(xpm2); list = g_list_append(list, icon); gtk_window_set_icon_list(GTK_WINDOW(dlg), list); tmp = list; while (tmp) { g_object_unref(tmp->data); tmp = tmp->next; } g_list_free(list); } else { gtk_window_set_icon(GTK_WINDOW(dlg), icon); } } if (title) { gtk_window_set_title(GTK_WINDOW(dlg), title); } group = gtk_window_get_group(GTK_WINDOW(TopLevel)); gtk_window_group_add_window(group, GTK_WINDOW(dlg)); // gtk_widget_set_parent_window(GTK_WIDGET(dlg), TopLevel); // gtk_window_set_destroy_with_parent(GTK_WINDOW(dlg), TRUE); // gtk_window_set_type_hint(GTK_WINDOW(dlg), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_type_hint(GTK_WINDOW(dlg), GDK_WINDOW_TYPE_HINT_UTILITY); gtk_window_set_transient_for(GTK_WINDOW(dlg), GTK_WINDOW(TopLevel)); gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dlg), TRUE); gtk_window_set_skip_pager_hint(GTK_WINDOW(dlg), FALSE); gtk_window_set_urgency_hint(GTK_WINDOW(dlg), FALSE); gtk_container_add(GTK_CONTAINER(dlg), swin); #ifdef WINDOWS g_signal_connect(dlg, "realize", G_CALLBACK(hide_minimize_menu_item), NULL); #endif g_signal_connect(dlg, "show", G_CALLBACK(cb_show), d); g_signal_connect(dlg, "delete-event", G_CALLBACK(cb_del), d); g_signal_connect(dlg, "destroy", G_CALLBACK(cb_destroy), d); g_signal_connect(dlg, "key-press-event", G_CALLBACK(ev_sub_win_key_down), d); gtk_widget_show_all(swin); return dlg; } GtkWidget * text_sub_window_create(struct SubWin *d, const char *title, const char **xpm, const char **xpm2) { GtkWidget *view, *swin; GtkTextBuffer *buf; buf = gtk_text_buffer_new(NULL); view = gtk_text_view_new_with_buffer(buf); gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE); gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(view), FALSE); d->data.text = view; swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(swin), view); return sub_window_create(d, title, swin, xpm, xpm2); } GtkWidget * label_sub_window_create(struct SubWin *d, const char *title, const char **xpm, const char **xpm2) { GtkWidget *label, *swin; label = gtk_label_new(NULL); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_halign(label, GTK_ALIGN_START); gtk_widget_set_valign(label, GTK_ALIGN_START); #else gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0); #endif gtk_label_set_selectable(GTK_LABEL(label), TRUE); gtk_label_set_line_wrap(GTK_LABEL(label), FALSE); gtk_label_set_single_line_mode(GTK_LABEL(label), FALSE); d->data.text = label; swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); #if GTK_CHECK_VERSION(3, 8, 0) gtk_container_add(GTK_CONTAINER(swin), label); #else gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(swin), label); #endif return sub_window_create(d, title, swin, xpm, xpm2); } static gboolean list_focused(GtkWidget *widget, GdkEvent *ev, gpointer user_data) { set_focus_insensitive(&NgraphApp.Viewer); return FALSE; } static struct obj_list_data * list_widget_create(struct SubWin *d, int lisu_num, n_list_store *list, int can_focus, GtkWidget **w) { struct obj_list_data *data; GtkWidget *lstor, *swin; GList *rend_list, *col_list, *col; data = g_malloc0(sizeof(*data)); data->select = -1; data->parent = d; data->can_focus = can_focus; data->list = list; data->list_col_num = lisu_num; data->next = NULL; lstor = list_store_create(lisu_num, list); data->text = lstor; set_cell_renderer_cb(data, lisu_num, list, lstor); g_signal_connect(lstor, "button-press-event", G_CALLBACK(ev_button_down), data); g_signal_connect(lstor, "button-release-event", G_CALLBACK(ev_button_up), data); g_signal_connect(lstor, "key-press-event", G_CALLBACK(ev_key_down), data); /* to handle key-press-event correctly in single window mode */ g_signal_connect(lstor, "focus-in-event", G_CALLBACK(list_focused), NULL); gtk_tree_view_set_enable_search(GTK_TREE_VIEW(lstor), TRUE); gtk_tree_view_set_search_column(GTK_TREE_VIEW(lstor), COL_ID); swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(swin), lstor); col_list = gtk_tree_view_get_columns(GTK_TREE_VIEW(lstor)); for (col = g_list_next(col_list); col; col = g_list_next(col)) { rend_list = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(col->data)); gtk_tree_view_column_add_attribute(GTK_TREE_VIEW_COLUMN(col->data), GTK_CELL_RENDERER(rend_list->data), "sensitive", 0); g_list_free(rend_list); } g_list_free(col_list); g_signal_connect(swin, "realize", G_CALLBACK(swin_realized), data); *w = swin; return data; } GtkWidget * list_sub_window_create(struct SubWin *d, const char *title, int lisu_num, n_list_store *list, const char **xpm, const char **xpm2) { GtkWidget *swin; struct obj_list_data *data; data = list_widget_create(d, lisu_num, list, d->type != TypeFileWin, &swin); d->data.data = data; return sub_window_create(d, title, swin, xpm, xpm2); } GtkWidget * tree_sub_window_create(struct SubWin *d, const char *title, int page_num, int *lisu_num, n_list_store **list, GtkWidget **icons, const char **xpm, const char **xpm2) { GtkWidget *tab, *swin; int i; struct obj_list_data *data, *prev; char *str; tab = gtk_notebook_new(); gtk_notebook_popup_enable(GTK_NOTEBOOK(tab)); prev = NULL; for (i = 0; i < page_num; i++) { data = list_widget_create(d, lisu_num[i], list[i], TRUE, &swin); if (prev) { prev->next = data; } else { d->data.data = data; } gtk_notebook_append_page(GTK_NOTEBOOK(tab), swin, icons[i]); str = gtk_widget_get_tooltip_text(icons[i]); gtk_notebook_set_menu_label_text(GTK_NOTEBOOK(tab), swin, str); g_free(str); prev = data; } gtk_notebook_set_current_page(GTK_NOTEBOOK(tab), 0); return sub_window_create(d, title, tab, xpm, xpm2); } gboolean list_sub_window_must_rebuild(struct obj_list_data *d) { int n, num; num = chkobjlastinst(d->obj); n = list_store_get_num(GTK_WIDGET(d->text)); return (n != num + 1); } void list_sub_window_build(struct obj_list_data *d, list_sub_window_set_val_func func) { GtkTreeIter iter; int i, num; num = chkobjlastinst(d->obj); list_store_clear(d->text); for (i = 0; i <= num; i++) { list_store_append(GTK_WIDGET(d->text), &iter); func(d, &iter, i); } } void list_sub_window_set(struct obj_list_data *d, list_sub_window_set_val_func func) { GtkTreeIter iter; int i, num; gboolean state; state = list_store_get_iter_first(GTK_WIDGET(d->text), &iter); if (! state) return; num = chkobjlastinst(d->obj); for (i = 0; i <= num; i++) { func(d, &iter, i); if (! list_store_iter_next(GTK_WIDGET(d->text), &iter)) { break; } } } void list_sub_window_delete(GtkMenuItem *item, gpointer user_data) { delete((struct obj_list_data *) user_data); } void list_sub_window_copy(GtkMenuItem *item, gpointer user_data) { copy((struct obj_list_data *) user_data); } void list_sub_window_move_top(GtkMenuItem *item, gpointer user_data) { move_top((struct obj_list_data *) user_data); } void list_sub_window_move_last(GtkMenuItem *item, gpointer user_data) { move_last((struct obj_list_data *) user_data); } void list_sub_window_move_up(GtkMenuItem *item, gpointer user_data) { move_up((struct obj_list_data *) user_data); } void list_sub_window_move_down(GtkMenuItem *item, gpointer user_data) { move_down((struct obj_list_data *) user_data); } void list_sub_window_update(GtkMenuItem *item, gpointer user_data) { update((struct obj_list_data *) user_data); } void list_sub_window_hide(GtkMenuItem *item, gpointer user_data) { int hide; hide = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(item)); set_hidden_state((struct obj_list_data *)user_data, ! hide); } void list_sub_window_focus(GtkMenuItem *item, gpointer user_data) { focus((struct obj_list_data *) user_data, FALSE); } void list_sub_window_add_focus(GtkMenuItem *item, gpointer user_data) { focus((struct obj_list_data *) user_data, TRUE); } static gboolean ev_popup_menu(GtkWidget *w, gpointer client_data) { struct obj_list_data *d; if (Menulock || Globallock) return TRUE; d = (struct obj_list_data *) client_data; do_popup(NULL, d); return TRUE; } GtkWidget * sub_win_create_popup_menu(struct obj_list_data *d, int n, struct subwin_popup_list *list, GCallback cb) { GtkWidget *menu, *item; int i = 0; if (d->popup_item) g_free(d->popup_item); d->popup_item = g_malloc(sizeof(GtkWidget *) * n); menu = gtk_menu_new(); for (i = 0; i < n; i++) { switch (list[i].type) { case POP_UP_MENU_ITEM_TYPE_NORMAL: if (list[i].use_stock) { item = gtk_image_menu_item_new_from_stock(list[i].title, list[i].accel_group); } else { item = gtk_menu_item_new_with_mnemonic(_(list[i].title)); } g_signal_connect(item, "activate", list[i].func, d); break; case POP_UP_MENU_ITEM_TYPE_CHECK: item = gtk_check_menu_item_new_with_mnemonic(_(list[i].title)); g_signal_connect(item, "toggled", list[i].func, d); break; case POP_UP_MENU_ITEM_TYPE_SEPARATOR: default: item = gtk_separator_menu_item_new(); break; } d->popup_item[i] = item; gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); } d->popup = menu; gtk_widget_show_all(menu); gtk_menu_attach_to_widget(GTK_MENU(menu), GTK_WIDGET(d->text), NULL); g_signal_connect(d->text, "popup-menu", G_CALLBACK(ev_popup_menu), d); if (cb) g_signal_connect(menu, "show", cb, d); return menu; } ngraph-gtk-6.06.13/src/gtk/ox11dlg.c0000644000175000017500000003536412241111704013655 00000000000000/* * $Id: ox11dlg.c,v 1.29 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include "object.h" #include "mathfn.h" #include "nstring.h" #include "ioutil.h" #include "ox11menu.h" #include "main.h" #include "x11gui.h" #define NAME "dialog" #define PARENT "object" #define NVERSION "1.00.00" #define ERRDISPLAY 100 #define ERRNODLGINST 101 static char *dlgerrorlist[] = { "cannot open display.", "no instance for dialog", }; #define ERRNUM (sizeof(dlgerrorlist) / sizeof(*dlgerrorlist)) GtkWidget *DLGTopLevel = NULL; static int dlginit(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int pos = -1; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) { return 1; } if (!OpenApplication()) { error(obj, ERRDISPLAY); return 1; } if (DLGTopLevel == NULL) { DLGTopLevel = gtk_window_new(GTK_WINDOW_TOPLEVEL); } _putobj(obj, "x", inst, &pos); _putobj(obj, "y", inst, &pos); return 0; } static int dlgdone(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; return 0; } static int dlgconfirm(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *mes, *title; int rcode, locksave; if (_getobj(obj, "title", inst, &title)) { title = NULL; } mes = (char *)argv[2]; locksave = Globallock; Globallock = TRUE; mes = CHK_STR(mes); rcode = message_box(DLGTopLevel, mes, (title) ? title : "Select", RESPONS_YESNO); Globallock = locksave; if (rcode == IDYES) { rval->i = 1; } else { rval->i = 0; } return (rcode == IDYES)? 0 : 1; } static int dlgmessage(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *mes, *title; int locksave; if (_getobj(obj, "title", inst, &title)) { title = NULL; } mes = (char *)argv[2]; locksave = Globallock; Globallock = TRUE; message_box(DLGTopLevel, CHK_STR(mes), (title) ? title : "Confirm", RESPONS_OK); Globallock = locksave; return 0; } static int dlginput(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *mes, *title, *init_str; int locksave, x, y, r; char *inputbuf; locksave = Globallock; Globallock = TRUE; init_str = (char *)argv[2]; g_free(rval->str); rval->str = NULL; inputbuf = NULL; if (_getobj(obj, "title", inst, &title)) { title = NULL; } if (_getobj(obj, "caption", inst, &mes)) { mes = NULL; } if (_getobj(obj, "x", inst, &x)) { x = -1; } if (_getobj(obj, "y", inst, &y)) { y = -1; } r = DialogInput(DLGTopLevel, (title) ? title : "Input", mes, init_str, &inputbuf, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); if (r == IDOK && inputbuf != NULL) { rval->str = inputbuf; } else { g_free(inputbuf); Globallock = locksave; return 1; } Globallock = locksave; return 0; } struct narray * get_sarray_argument(struct narray *sarray) { int m, n, i, j, id; char *ptr, sa[] = "sarray:", *argv[2]; struct narray iarray; struct objlist *saobj; n = arraynum(sarray); if (n != 1) return sarray; ptr = * (char **) arraydata(sarray); if (ptr == NULL) return sarray; if (strncmp(ptr, sa, sizeof(sa) / sizeof(*sa) - 1)) return sarray; arrayinit(&iarray, sizeof(int)); if (getobjilist(ptr, &saobj, &iarray, FALSE, NULL)) return sarray; n = arraynum(&iarray); for (j = 0; j < n; j++) { id = arraynget_int(&iarray, j); if (getobj(saobj, "num", id, 0, NULL, &m) == -1) continue; if (m < 1) continue; for (i = 0; i < m; i++) { argv[0] = (char *) & i; argv[1] = NULL; getobj(saobj, "get", id, 1, argv, &ptr); if (arrayadd2(sarray, ptr) == NULL) goto End; } } End: if (arraynum(sarray) > 1) { arrayndel2(sarray, 0); } arraydel(&iarray); return sarray; } static int dlgbutton(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *title, *caption; int rcode, x, y; struct narray *sarray; sarray = get_sarray_argument((struct narray *) argv[2]); if (arraynum(sarray) == 0) { return -1; } if (_getobj(obj, "title", inst, &title)) { title = NULL; } if (_getobj(obj, "caption", inst, &caption)) { caption = NULL; } if (_getobj(obj, "x", inst, &x)) { x = -1; } if (_getobj(obj, "y", inst, &y)) { y = -1; } g_free(rval->str); rval->str = NULL; rcode = DialogButton(DLGTopLevel, (title) ? title : "Buttons", caption, sarray, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); if (rcode >= 0) { const char *str; str = arraynget_str(sarray, rcode); if (str) { rval->str = g_strdup(str); } } return 0; } static int dlgradio(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *title, *caption; int locksave, r, x, y, ret; struct narray *iarray, *sarray; sarray = get_sarray_argument((struct narray *) argv[2]); if (arraynum(sarray) == 0) return 1; locksave = Globallock; Globallock = TRUE; if (_getobj(obj, "title", inst, &title)) { title = NULL; } if (_getobj(obj, "caption", inst, &caption)) { caption = NULL; } if (_getobj(obj, "select", inst, &iarray)) { iarray = NULL; } if (_getobj(obj, "x", inst, &x)) { x = -1; } if (_getobj(obj, "y", inst, &y)) { y = -1; } r = arraylast_int(iarray); ret = DialogRadio(DLGTopLevel, (title) ? title : "Select", caption, sarray, &r, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); if (ret != IDOK) { Globallock = locksave; return 1; } rval->i = r; Globallock = locksave; return 0; } static int dlgcombo(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int locksave, sel, ret, x, y; char *r, *title, *caption; struct narray *iarray, *sarray; sarray = get_sarray_argument((struct narray *) argv[2]); if (arraynum(sarray) == 0) return 1; locksave = Globallock; Globallock = TRUE; g_free(rval->str); rval->str = NULL; if (_getobj(obj, "title", inst, &title)) { title = NULL; } if (_getobj(obj, "caption", inst, &caption)) { caption = NULL; } if (_getobj(obj, "select", inst, &iarray)) { iarray = NULL; } if (_getobj(obj, "x", inst, &x)) { x = -1; } if (_getobj(obj, "y", inst, &y)) { y = -1; } sel = arraylast_int(iarray); if (strcmp(argv[1], "combo") == 0) { ret = DialogCombo(DLGTopLevel, (title) ? title : "Select", caption, sarray, sel, &r, &x, &y); } else { ret = DialogComboEntry(DLGTopLevel, (title) ? title : "Input", caption, sarray, sel, &r, &x, &y); } _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); if (ret != IDOK) { Globallock = locksave; return 1; } rval->str = r; Globallock = locksave; return 0; } static int dlgspin(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int locksave, ret, type, x, y; char *title, *caption; double min, max, inc, r; locksave = Globallock; Globallock = TRUE; if (_getobj(obj, "title", inst, &title)) { title = NULL; } if (_getobj(obj, "caption", inst, &caption)) { caption = NULL; } if (_getobj(obj, "x", inst, &x)) { x = -1; } if (_getobj(obj, "y", inst, &y)) { y = -1; } type = argv[1][0]; switch (type) { case 'd': min = * (double *) argv[2]; max = * (double *) argv[3]; inc = * (double *) argv[4]; r = * (double *) argv[5]; break; case 'i': min = * (int *) argv[2]; max = * (int *) argv[3]; inc = * (int *) argv[4]; r = * (int *) argv[5]; break; default: Globallock = locksave; return 1; } ret = DialogSpinEntry(DLGTopLevel, (title) ? title : "Input", caption, min, max, inc, &r, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); if (ret != IDOK) { Globallock = locksave; return 1; } switch (type) { case 'd': rval->d = r; break; case 'i': rval->i = nround(r); break; default: Globallock = locksave; return 1; } Globallock = locksave; return 0; } static int dlgcheck(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int locksave, *r, i, n, inum, *ptr, x, y, ret; struct narray *array, *sarray, *iarray; char *title, *caption; sarray = get_sarray_argument((struct narray *) argv[2]); n = arraynum(sarray); if (n == 0) return 1; arrayfree(rval->array); rval->array = NULL; array = arraynew(sizeof(int)); if (array == NULL) { return 1; } if (_getobj(obj, "title", inst, &title)) { title = NULL; } if (_getobj(obj, "caption", inst, &caption)) { caption = NULL; } if (_getobj(obj, "select", inst, &iarray)) { iarray = NULL; } if (_getobj(obj, "x", inst, &x)) { x = -1; } if (_getobj(obj, "y", inst, &y)) { y = -1; } r = g_malloc(n * sizeof(int)); if (r == NULL) { arrayfree(array); return 1; } memset(r, 0, n * sizeof(int)); locksave = Globallock; Globallock = TRUE; inum = arraynum(iarray); for (i = 0; i < inum; i++) { ptr = (int *) arraynget(iarray, i); if (ptr && *ptr >= 0 && *ptr < n) r[*ptr] = 1; } ret = DialogCheck(DLGTopLevel, (title) ? title : "Check", caption, sarray, r, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); if (ret != IDOK) { arrayfree(array); g_free(r); Globallock = locksave; return 1; } for (i = 0; i < n; i++) { if (r[i]) arrayadd(array, &i); } g_free(r); rval->array = array; Globallock = locksave; return 0; } static int dlgbeep(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int locksave; locksave = Globallock; Globallock = TRUE; message_beep(DLGTopLevel); Globallock = locksave; return 0; } static int dlggetopenfile(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; char **d; int anum; char *filter = NULL, *initfile = NULL; int locksave; int ret; char *file; locksave = Globallock; Globallock = TRUE; g_free(rval->str); rval->str = NULL; array = (struct narray *)argv[2]; d = arraydata(array); anum = arraynum(array); switch (anum) { case 0: break; case 2: initfile = d[1]; case 1: filter = d[0]; break; default: filter = d[0]; initfile = d[1]; } ret = nGetOpenFileName(DLGTopLevel, _("Open file"), filter, NULL, initfile, &file, TRUE, TRUE); if (ret == IDOK) { if (file) { changefilename(file); rval->str = file; } } Globallock = locksave; return (ret == IDOK)? 0 : 1; } static int dlggetopenfiles(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; char **d; int anum, i; char *filter = NULL, *initfile = NULL; int locksave; int ret; char **file = NULL, *name; struct narray *farray; locksave = Globallock; Globallock = TRUE; arrayfree2(rval->array); rval->array = NULL; array = (struct narray *)argv[2]; d = arraydata(array); anum = arraynum(array); switch (anum) { case 0: break; case 2: initfile = d[1]; case 1: filter = d[0]; break; default: filter = d[0]; initfile = d[1]; } ret = nGetOpenFileNameMulti(DLGTopLevel, _("Open files"), filter, NULL, initfile, &file, TRUE); if (ret == IDOK) { farray = arraynew(sizeof(char *)); for (i = 0; file[i]; i++) { changefilename(file[i]); arrayadd(farray, &name); } rval->array = farray; } g_free(file); Globallock = locksave; return (ret == IDOK)? 0 : 1; } static int dlggetsavefile(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; char **d; int anum; char *filter = NULL, *initfile = NULL; int locksave; int ret; char *file; locksave = Globallock; Globallock = TRUE; g_free(rval->str); rval->str = NULL; array = (struct narray *)argv[2]; d = arraydata(array); anum = arraynum(array); switch (anum) { case 0: break; case 2: initfile = d[1]; case 1: filter = d[0]; break; default: filter = d[0]; initfile = d[1]; } ret = nGetSaveFileName(DLGTopLevel, _("Save file"), filter, NULL, initfile, &file, FALSE, TRUE); if (ret == IDOK) { if (file) { changefilename(file); rval->str = file; } } Globallock = locksave; return (ret == IDOK) ? 0 : 1; } static struct objtable dialog[] = { {"init", NVFUNC, NEXEC, dlginit, NULL, 0}, {"done", NVFUNC, NEXEC, dlgdone, NULL, 0}, {"next", NPOINTER, 0, NULL, NULL, 0}, {"x", NINT, NREAD | NWRITE, NULL, NULL, 0}, {"y", NINT, NREAD | NWRITE, NULL, NULL, 0}, {"title", NSTR, NREAD | NWRITE, NULL, NULL, 0}, {"caption", NSTR, NREAD | NWRITE, NULL, NULL, 0}, {"select", NIARRAY, NREAD | NWRITE, NULL, NULL, 0}, {"yesno", NIFUNC, NREAD | NEXEC, dlgconfirm, "s", 0}, {"message", NVFUNC, NREAD | NEXEC, dlgmessage, "s", 0}, {"input", NSFUNC, NREAD | NEXEC, dlginput, "s", 0}, {"radio", NIFUNC, NREAD | NEXEC, dlgradio, "sa", 0}, {"check", NIAFUNC, NREAD | NEXEC, dlgcheck, "sa", 0}, {"button", NSFUNC, NREAD | NEXEC, dlgbutton, "sa", 0}, {"combo", NSFUNC, NREAD | NEXEC, dlgcombo, "sa", 0}, {"combo_entry", NSFUNC, NREAD | NEXEC, dlgcombo, "sa", 0}, {"double_entry", NDFUNC, NREAD | NEXEC, dlgspin, "dddd", 0}, {"integer_entry", NIFUNC, NREAD | NEXEC, dlgspin, "iiii", 0}, {"beep", NVFUNC, NREAD | NEXEC, dlgbeep, "", 0}, {"get_open_file", NSFUNC, NREAD | NEXEC, dlggetopenfile, "sa", 0}, {"get_open_files", NSAFUNC, NREAD | NEXEC, dlggetopenfiles, "sa", 0}, {"get_save_file", NSFUNC, NREAD | NEXEC, dlggetsavefile, "sa", 0}, }; #define TBLNUM (sizeof(dialog) / sizeof(*dialog)) void * adddialog() { return addobject(NAME, NULL, PARENT, NVERSION, TBLNUM, dialog, ERRNUM, dlgerrorlist, NULL, NULL); } ngraph-gtk-6.06.13/src/gtk/dir_defs.h.in0000644000175000017500000000111712241111703014553 00000000000000/* * $Id: dir_defs.h.in,v 1.3 2009-06-18 11:32:11 hito Exp $ */ #ifndef _DIR_DEFS_HEADER #define _DIR_DEFS_HEADER #ifdef WINDOWS extern char *DOCDIR, *NDATADIR, *ADDINDIR, *LIBDIR, *PLUGINDIR, *CONFDIR, *PIXMAPDIR; #define HOME_DIR "Ngraph" #else /* WINDOWS */ #define DOCDIR "DOCDIRDEF" #define LIBDIR "LIBEXECDIRDEF" #define PLUGINDIR "LIBDIRDEF/plugins" #define NDATADIR "DATADIRDEF" #define ADDINDIR "DATADIRDEF/addin" #define CONFDIR "CONFDIRDEF" #define PIXMAPDIR "PIXMAPDIRDEF" #define HOME_DIR ".Ngraph" #endif /* WINDOWS */ #define HELP_FILE "ngraph.html" #endif ngraph-gtk-6.06.13/src/gtk/main.h0000644000175000017500000000076512241111703013323 00000000000000#ifndef _MAIN_HEADER #define _MAIN_HEADER extern char *AppName, *AppClass, *Auther[], *Translator, *Documenter[]; #if ! GTK_CHECK_VERSION(3, 0, 0) extern char *License; #endif #define NGRAPH_GRAPH_MIME "application/x-ngraph" #define NGRAPH_DATA_MIME "text/plain" #define NGRAPH_TEXT_MIME "text/" int OpenApplication(void); int nallocconsole(void); void nfreeconsole(void); void nforegroundconsole(void); void hide_console(void); void resotre_console(void); const char *n_getlocale(void); #endif ngraph-gtk-6.06.13/src/gtk/gtk_entry_completion.c0000644000175000017500000000647212241111703016632 00000000000000/* * $Id: gtk_entry_completion.c,v 1.8 2010-03-04 08:30:16 hito Exp $ */ #include #include #include #include #include "gtk_common.h" #include "ioutil.h" #include "object.h" static int HistSize; GtkEntryCompletion * entry_completion_create(void) { GtkListStore *list; GtkEntryCompletion *comp; list = gtk_list_store_new(1, G_TYPE_STRING); comp = gtk_entry_completion_new(); gtk_entry_completion_set_model(comp, GTK_TREE_MODEL(list)); gtk_entry_completion_set_inline_completion(comp, FALSE); gtk_entry_completion_set_popup_completion(comp, TRUE); gtk_entry_completion_set_popup_set_width(comp, TRUE); gtk_entry_completion_set_text_column(comp, 0); return comp; } void entry_completion_set_entry(GtkEntryCompletion *comp, GtkWidget *entry) { GtkWidget *old_entry; if (comp == NULL || entry == NULL) { return; } old_entry = gtk_entry_completion_get_entry(comp); if (old_entry) { gtk_entry_set_completion(GTK_ENTRY(old_entry), NULL); } gtk_entry_set_completion(GTK_ENTRY(entry), comp); } static gboolean save_history_cb(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { FILE *fp; int *a; char *v; fp = (FILE *) data; a = gtk_tree_path_get_indices(path); if (a == NULL || a[0] >= HistSize) return TRUE; gtk_tree_model_get(model, iter, 0, &v, -1); if (v) { fprintf(fp, "%s\n", v); g_free(v); } return FALSE; } static gboolean add_completion(GtkListStore *list, FILE *fp) { char *buf; GtkTreeIter iter; int r; r = fgetline(fp, &buf); if (r || buf == NULL) return TRUE; g_strchomp(buf); if (g_utf8_validate(buf, -1, NULL)) { gtk_list_store_append(list, &iter); gtk_list_store_set(list, &iter, 0, buf, -1); } g_free(buf); return FALSE; } int entry_completion_save(GtkEntryCompletion *comp, char *file, int size) { FILE *fp; GtkTreeModel *model; model = gtk_entry_completion_get_model(comp); if (model == NULL) return 1; fp = nfopen(file, "w"); if (fp == NULL) return 1; HistSize = size; gtk_tree_model_foreach(model, save_history_cb, fp); fclose(fp); return 0; } int entry_completion_load(GtkEntryCompletion *comp, char *file, int size) { FILE *fp; int i; GtkTreeModel *model; model = gtk_entry_completion_get_model(comp); if (model == NULL) return 1; gtk_list_store_clear(GTK_LIST_STORE(model)); fp = nfopen(file, "r"); if (fp == NULL) return 1; for (i = 0; i < size; i++) { if (add_completion(GTK_LIST_STORE(model), fp)) break; } fclose(fp); return 0; } void entry_completion_append(GtkEntryCompletion *comp, const char *str) { gboolean found; GtkTreeModel *model; GtkTreeIter iter; char *v = NULL; if (comp == NULL || str == NULL || strlen(str) == 0) return; model = gtk_entry_completion_get_model(comp); if (model == NULL) return; found = gtk_tree_model_get_iter_first(model, &iter); while (found) { gtk_tree_model_get(model, &iter, 0, &v, -1); if (v) { if (strcmp(str, v) == 0) { gtk_list_store_remove(GTK_LIST_STORE(model), &iter); g_free(v); break; } g_free(v); } found = gtk_tree_model_iter_next(model, &iter); } gtk_list_store_prepend(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, 0, str, -1); } ngraph-gtk-6.06.13/src/gtk/x11bitmp.c0000644000175000017500000013231312241111703014032 00000000000000/* * $Id: x11bitmp.c,v 1.8 2009-01-07 02:39:34 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" const gchar *Icon_xpm[] = { "48 48 11 1", ". c #000000", "# c #0000ff", "a c None", "b c #00ffff", "c c #808000", "d c #808080", "e c #c0c0c0", "f c #ff0000", "g c #ffff00", "h c #ffffff", "i c #008080", /* pixels */ "aaaaaaaaaaaaaaaaaaaaaaaadddaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaddhhhdaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaddhhhhhhdaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaddhhhhhhhhhdaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaddhhhhhhhhhhhhdaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaddhhhhhhhhhhhhhhhdaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaddhhhhhhhhhhhhhhhhhhdaaaaaaaaaaaaaaa", "aaaaaaaaaaddhhhhhhhh##hhhhhffhhhhdaaaaaaaaaaaaaa", "aaaaaaaaddhhhhhhhhh#bb#hhhffhhhhhhdaaaaaaaaaaaaa", "aaaaaaddhhhhhhhhhhh#bb#hhffhhhhhhhhdaaaaaaaaaaaa", "aaaaddhhhhhhhhhhhhhh##hhffhhhhhhhhhhdaaaaaaaaaaa", "aaddhhhhhhhhhhhhhhhhhhhffhh##hhhhhhhhdaaaaaaaaaa", "adhhhhhhhh##hhhh##hhhhffhh#bb#hhhhhhhhdaaaaaaaaa", "addhhhhhh#bb#hh#bb#hhffhhh#bb#hhhhhhhhhdaaaaaaaa", ".eedhhhhh#bb#hh#bb#hffhhhhh##hhhhhhhhhhhdaaaaaaa", ".eeedhhhhh##hhhh##hffhhhhhhhhhhhhhhhhhhhhdaaaaaa", ".eeeedh.hhhhhhhhhhffhhhhhhhhhhhhhhhhhhhhhhdaaaaa", ".eeeeed..h.hhhhhhffhhhhhhhhhhhhhh.hhhh..hhhdaaaa", ".eeeeedh..hhhhhhffh##hhhhhhhhhhhhh.h..hhhhhhdaaa", ".eeeeed.h..hhhhffh#bb#hhhhhhhhhhhh..hhhhhhhhhdaa", ".eeeedhhhh..h.ffhh#bb#hhhhh.hhhh..hh.hhhhhhhhhda", ".eeedhhhhhh..ffhhhh##hhhhhhh.h..hhhhhhhhhhhhhhhd", ".eedhhhhhh.h..hhhhhhhhhhhhhh..hhhhhhhhhhhhhhhhhh", ".edhhhhhhhhff..h.hhhh.hhhh..ee.eeeeeeeeeeeeehhhh", ".dhhhhhhhhffhh..hhhhhh.h..hheeeeeeeeeeeeeeeehhhh", ".dhhhhhhhffhh.h..hhhhh..hhhheeeeeeeeeeeeeeeehhhh", "..dhhhhhffhhhhhh..hh..hh.hhheeeccccccccccccccchh", "a..dhhhffhhhhhhhh...hhhhhhhheeecgggggggggggggggh", "aa..dhhhhhhhhhhh....hhhhhhhheeecgggggggggggggggd", "aaa..dhhhhhhhh..hhh..hhhhhhheeecgiiiiiiiiiiiiiga", "aaaa..dhhhhh..hhhhhh..h.hhhheeecgiibiibiibiibiga", "aaaaa..dhhhhhhhhhhhhh..hhhhheeecgiibiibiibiibiga", "aaaaaa..dhhhhhhhhhhh.h..hhhheeecgiiiiiiiiiiiiiga", "aaaaaaa..dhhhhhhhhhhhhh..hhheeecggggggggggggggga", "aaaaaaaa..dhhhhhhhhhhhhhhhhheeecggggggggggggggga", "bbbbaaaaa..dbbbbhhhhhhhhhhhheeecggg##gg##gg##gga", "bbbbbaaaaa..bbbbhhhhhhhhhhhheedcgg.##g.##g.##gga", "bbbbbbaaaaa.bbbbhhhhhhhhhhhhdd.cgg..gg..gg..ggga", "bbbbbbbaaaaabbbbhhhhhhhhhhdd...cggggggggggggggga", "bbbbbbbbaaaabbbbhhhhhhhhdd.....cggg##gg##gg##gga", "bbbbbbbbbaaabbbbdhhhhhdd...a...cgg.##g.##g.##gga", "bbbbabbbbbaabbbb.dhhdd...aaa...cgg..gg..gg..ggga", "bbbbaabbbbbabbbb..dd...aaaaa...cggggggggggggggga", "bbbbaaabbbbbbbbba....aaaaaaaaaacggg##gg##gg##gga", "bbbbaaaabbbbbbbbaa.aaaaaaaaaaaacgg.##g.##g.##gga", "bbbbaaaaabbbbbbbaaaaaaaaaaaaaaacgg..gg..gg..ggga", "bbbbaaaaaabbbbbbaaaaaaaaaaaaaaaaggggggggggggggga", "bbbbaaaaaaabbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }; const gchar *Icon_xpm_64[] = { "64 64 11 1", ". c #000000", "# c #0000ff", "a c None", "b c #008080", "c c #00ffff", "d c #808000", "e c #808080", "f c #c0c0c0", "g c #ff0000", "h c #ffff00", "i c #ffffff", /* pixels */ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeeeiieeaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaeeeiiiiieeaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaeeeiiiiiiiieeaaaaaaaaaaaaaaaaaaaaaaaaa", "a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iiiiiiggiiiiiiiiiiiiiiiiiiiiiiiiiieeaaaaaaaa", ".efffeeiiiiiiiiiiiiiiiiiiggiiiiiiiiiiiiiiiiiiiiiiiiiiiieeaaaaaaa", ".effffeei..iiiiiiiiiiiiiggiiiiiiiiiiiiiiiiiiiiii.iiiiiiieeaaaaaa", ".efffffeei..i.iiiiiiiiiggiiiiiiiiiiiiiiiiiiiiiiii...iiiiieeaaaaa", ".effffffeei..iiiiiiiiiggiiiiiiiiiiiiiiiiiiiiiiii...iiiiiiieeaaaa", ".effffffee.i..iiiiiiiggiii##iiiiiiiiiiiiii.iii...ii.iiiiiiieeaaa", ".efffffeeiiii..i.iiiggiii#cc#iiiiiiiiiiiiii....iiiiiiiiiiiiieeaa", ".effffeeiiiiii..iiiggiiii#cc#iiiiiiiiiiiii...iiiiiiiiiiiiiiiieea", ".efffeeiiiiii.i..iggiiiiii##iiiiiiii.iii...ii.iiiiiiiiiiiiiiiiee", ".effeeiiiiiiiiii..g.iiiiiiiiiiiiiiiif....fffffffffffffffffffiiie", ".efeeiiiiiiiiiiig..iiiiiiiiiiiiiiiii...fffffffffffffffffffffiiii", ".eeeiiiiiiiiiiig.i..iiiiiiiiii.iii...ff.ffffffffffffffffffffiiii", ".eeiiiiiiiiiiiggiii..i.iiiiiiii....iffffffffffffffffffffffffiiii", ".eiiiiiiiiiiiggiiiii..iiiiiiii...iiiffffffffffffffffffffffffiiii", ".eeiiiiiiiiiggiiiii.i..iiiii...ii.iiffffffffffffffffffffffffiiii", "..eeiiiiiiiggiiiiiiiii..ii...iiiiiiiffffffddddddddddddddddddddii", "a..eeiiiiiggiiiiiiiiiii....iiiiiiiiiffffffdddddddddddddddddddddi", "aa..eeiiiigiiiiiiiiiii....iiiiiiiiiiffffffddhhhhhhhhhhhhhhhhhhhh", "aaa..eeiiiiiiiii.iii...ii..i.iiiiiiiffffffddhhhhhhhhhhhhhhhhhhhh", "aaaa..eeiiiiiiiii....iiiii..iiiiiiiiffffffddhhbbbbbbbbbbbbbbbbhh", "aaaaa..eeiiiiiii...iiiiii.i..iiiiiiiffffffddhhbbcbbcbbcbbcbbcbhh", "aaaaaa..eeiiiii..ii.iiiiiiii..i.iiiiffffffddhhbbbbbbbbbbbbbbbbhh", "aaaaaaa..eeiiiiiiiiiiiiiiiiii..iiiiiffffffddhhbbcbbcbbcbbcbbcbhh", "aaaaaaaa..eeiiiiiiiiiiiiiiii.i..iiiiffffffddhhbbbbbbbbbbbbbbbbhh", "aaaaaaaaa..eeiiiiiiiiiiiiiiiiii.iiiiffffffddhhhhhhhhhhhhhhhhhhhh", "aaaaaaaaaa..eeiiiiiiiiiiiiiiiiiiiiiiffffffddhhhhhhhhhhhhhhhhhhhh", "aaaaaaaaaaa..eeiiiiiiiiiiiiiiiiiiiiiffffffddhhh##hhhh##hhhh##hhh", "aaaaaaaaaaaa..eeiiiiiiiiiiiiiiiiiiiiffffffddhh.###hh.###hh.###hh", "aaaaaaaaaaaaa..eeiiiiiiiiiiiiiiiiiiiffffeeddhh..##hh..##hh..##hh", "aaaaaaaaaaaaaa..eeiiiiiiiiiiiiiiiiiiffeee.ddhhh..hhhh..hhhh..hhh", "ccccaaaaaaaacccc.eeiiiiiiiiiiiiiiiiieee...ddhhhhhhhhhhhhhhhhhhhh", "cccccaaaaaaacccc..eeiiiiiiiiiiiiiieee.....ddhhhhhhhhhhhhhhhhhhhh", "ccccccaaaaaacccca..eeiiiiiiiiiiieee.......ddhhh##hhhh##hhhh##hhh", "cccccccaaaaaccccaa..eeiiiiiiiieee.........ddhh.###hh.###hh.###hh", "ccccccccaaaaccccaaa..eeiiiiieee....a......ddhh..##hh..##hh..##hh", "cccccccccaaaccccaaaa..eeiieee....aaa..c...ddhhh..hhhh..hhhh..hhh", "ccccacccccaaccccaaaaa..eeee....aaaaa..c...ddhhhhhhhhhhhhhhhhhhhh", "ccccaacccccaccccaaccca.cec.cccaacccc..ccccddhhhhhhhhhhhhhhhhhhhh", "ccccaaacccccccccacaaacacc..aaacacaaac.c...cdhhh##hhhh##hhhh##hhh", "ccccaaaaccccccccacaaacac.aaccccacaaac.c...cdhh.###hh.###hh.###hh", "ccccaaaaacccccccacaaacacaacaaacacaaacacaaacdhh..##hh..##hh..##hh", "ccccaaaaaaccccccaaccccacaacaaacaccccaacaaacdhhh..hhhh..hhhh..hhh", "ccccaaaaaaacccccacaaacacaaaccccacaaaaacaaacdhhhhhhhhhhhhhhhhhhhh", "ccccaaaaaaaaccccaacccaaaaaaaaaaacaaaaaaaaaaahhhhhhhhhhhhhhhhhhhh" }; const gchar * Arc_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c None", " ", " ", " ..... ", " ......... ", " ...+++++... ", " ..+++++++++.. ", " ..+++++++++++.. ", " ..+++++++++++.. ", " ..+++++++++++++.. ", " ..+++++++++++++.. ", " ..+++++++++++++.. ", " ..+++++++++++++.. ", " ..+++++++++++++.. ", " ..+++++++++++.. ", " ..+++++++++++.. ", " ..+++++++++.. ", " ...+++++... ", " ......... ", " ..... ", " "}; const gchar * Axispoint_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " . ", " ... ", " ..... ", " . ", " . ", " ... .... ", " . .++.... ", " . .+++++..... ", " ... ..++++++++.. ", " . .++++++... ", " . .+++++.. ", " ... ..+++++.. ", " . .++.+++.. ", " . .+...+++.. ", " ..... .+. ..+++.. ", " . ... ..+++..", " . . ..+.. ", " ... ... ", " . . "}; const gchar * Axiswin_xpm[] = { "20 20 4 1", " c None", ". c #000000", "+ c #FFFFFF", "* c #666666", "................... ", ".+++++++++++++++++.*", ".++++++.++++++++++.*", ".+++++...+++++++++.*", ".++++.....++++++++.*", ".++++++.++++++++++.*", ".++++++.++++++++++.*", ".+++++...+++++++++.*", ".++++++.++++++++++.*", ".++++++.++++++++++.*", ".+++++...+++++++++.*", ".++++++.+++++.++++.*", ".++++++.++.++..+++.*", ".+++............++.*", ".++++++.++.++..+++.*", ".++++++.+++++.++++.*", ".++++++.++++++++++.*", ".+++++++++++++++++.*", "...................*", " *******************"}; const gchar * Clear_xpm[] = { "20 20 4 1", " c None", ". c #000000", "+ c #FFFFFF", "* c #0099FF", " ", " ..... ", " .*.+++. ", " .*.*.+++. ", " .*.*.*.+++. ", " .*.*.*.*.+++. ", " .*.*.*.*.*.+++.", " .*.*.*.*.*.*....", " .*.*.*.*.*.*.....", " .*.*.*.*.*.*..... ", " ..*.*.*.*.*..... ", " .++.*.*.*.*..... ", " .+++.*.*.*..... ", " .++++.*.*..... ", " .+++++.*..... ", " .+++++..... ", " .+++++++. ", " .+.+++. ", " ..... ", " "}; const gchar * Coordwin_xpm[] = { "20 20 4 1", " c None", ". c #000000", "+ c #FFFFFF", "* c #666666", "................... ", ".+++++++++++++++++.*", ".+++++++++++++++++.*", ".+++..++++++++++++.*", ".++....+++++++++++.*", ".++....+++++++++++.*", ".+++..++..++++++++.*", ".+++++++++..++++++.*", ".+++++++++++..++++.*", ".+++++++++++++..++.*", ".+++++++++++++++++.*", ".+++++++++++++++++.*", ".+++.+++.++.+++.++.*", ".++++.+.++++.+.+++.*", ".+++++.++++++.++++.*", ".++++.+.+++++.++++.*", ".+++.+++.++++.++++.*", ".+++++++++++++++++.*", "...................*", " *******************"}; const gchar * Cross_xpm[] = { "20 20 2 1", " c None", ". c #000000", " ", " ", " . ", " ... ", " ..... ", " . ", " . ", " ... ", " . ", " . ", " ... ", " . ", " . . ", " . . . .. ", " ................. ", " . . . .. ", " . . . ", " . ", " ", " "}; const gchar * Curve_xpm[] = { "20 20 2 1", " c None", ". c #000000", " ", " ", " ..... ", " ...... ", " ... ", " .. ", " .. ", " .. ", " .. ..... ", " ... ....... ", " ......... ... ", " ....... .. ", " .. ", " .. ", " .. ", " ... ", " ...... ", " ..... ", " ", " "}; const gchar * Datapoint_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " ", " .. ", " .... ", " .... ", " .. ", " .... ", " .++.... ", " .+++++..... ", " ..++++++++.. ", " .++++++... ", " .+++++.. ", " ..+++++.. ", " .++.+++.. ", " .+...+++.. ", " .+. ..+++.. ", " ... ..+++..", " . ..+.. ", " ... ", " . "}; const gchar * Draw_xpm[] = { "20 20 4 1", " c None", ". c #000000", "+ c #00CCCC", "* c #CC9900", " ", " . ", " .+. ", " .+++. ", " .+++.+. ", " .+++.+.+. ", " .+++.+.+... ", " .+++.+.+..... ", " .+++.+.+..... ", " .+++.+.+..... ", " .+++.+.+..... ", " .*.+.+.+..... ", " .**.+.+..... ", " .***.+..... ", " .****..... ", " .*****... ", " ..*****. ", " ....... ", " ", " "}; const gchar * Eval_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " ........ ", " .++++++. ", " ...++++. ", " .++++++. ", " ...++++. ", " .++++++. ", " ...++++. ", " .++++++. ....... ", " ....+++. ......... ", " .++++++. .. .. ", " ...++++. .. .. ", " .++++++. ..... ", " ...++++. ..... ", " .++++++. ... ", " ...++++. ", " .++++++. ... ", " ........ ... ", " ", " "}; const gchar * Fileopen_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " .. ", " ...... ", " .+++. ", " .+....... ", " .+.+++++. ", " .+.+......... ", " ...+.+++++++. ", " .+.+++++.......", " .+.++++..+++++.", " .+.+++...+.+.+.", " ...++....+.+.+.", " .+.....+++++.", " .+.+.+.+.+.+.", " .+.+.+.+.+.+.", " ...+++++++++.", " .+.+.+.+.+.", " .+.+.+.+.+.", " .+++++++++.", " ..........."}; const gchar * Filewin_xpm[] = { "20 20 4 1", " c None", ". c #000000", "+ c #FFFFFF", "* c #666666", "................... ", ".+++++++++++++++++.*", ".++++.++++++++++++.*", ".++++.++++++++++++.*", ".++++.+++.+.+.+.++.*", ".++++.+++.+.+.+.++.*", ".+++++++++++++++++.*", ".+++..++++++++++++.*", ".+++++.+++++++++++.*", ".++++.+++.+.+.+.++.*", ".+++...++.+.+.+.++.*", ".+++++++++++++++++.*", ".+++..++++++++++++.*", ".+++++.+++++++++++.*", ".++++..++.+.+.+.++.*", ".+++++.++.+.+.+.++.*", ".+++..++++++++++++.*", ".+++++++++++++++++.*", "...................*", " *******************"}; const gchar * Frame_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c None", " ", " ", " ", " ............... ", " .+++.++.++.+++. ", " .++++++.++++++. ", " .+++++++++++++. ", " ..+++++++++++.. ", " .+++++++++++++. ", " .+++++++++++++. ", " ...+++++++++... ", " .+++++++++++++. ", " .+++++++++++++. ", " ..+++++++++++.. ", " .+++++++++++++. ", " .++++++.++++++. ", " .+++.++.++.+++. ", " ............... ", " ", " "}; const gchar * Gauss_xpm[] = { "20 20 2 1", " c None", ". c #000000", " ", " ", " ", " ", " ", " ... ", " . . ", " .. .. ", " .. .. ", " .. .. ", " .. .. ", " .. .. ", " .. .. ", " .. .. ", " .. ... ", " .. .. ", " ..... ..... ", " .... .... ", " ", " "}; const char * Infowin_xpm[] = { "20 20 3 1", " c None", ". c #0000FF", "+ c #FFFFFF", " ", " .... ", " ....+..... ", " ....+++..... ", " .....+++...... ", " .......+........ ", " ................ ", " .....+++++...... ", " ........+++....... ", " ........+++....... ", " ........+++....... ", " ........+++....... ", " .......+++...... ", " .......+++...... ", " .......+++...... ", " ......+++..... ", " ...+++++++.. ", " .......... ", " .... ", " "}; const gchar * Legendpoint_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " .. ... .. ", " . . . . . . ", " . . ... . ", " .... . . . . ", " . . ... .. ", " ", " .... ", " .++.... ", " .+++++..... ", " ..++++++++.. ", " .++++++... ", " .+++++.. ", " ..+++++.. ", " .++.+++.. ", " .+...+++.. ", " .+. ..+++.. ", " ... ..+++..", " . ..+.. ", " ... ", " . "}; const gchar * Legendwin_xpm[] = { "20 20 4 1", " c None", ". c #000000", "+ c #FFFFFF", "* c #666666", "................... ", ".+++++++++++++++++.*", ".+++.+.+++++++++++.*", ".+++.+.+..++++++++.*", ".+++.+.+++.+++++++.*", ".++++++++++.++++++.*", ".+++++++++++.+++++.*", ".++++++++++++.+.++.*", ".++++.++++++++..++.*", ".+++...++++++...++.*", ".++++.++++++++++++.*", ".+++++.+++++++++++.*", ".+++++.+++++++++++.*", ".++++++.++++++++++.*", ".++++++.++++.+.+++.*", ".+++++++...+.+.+++.*", ".+++++++++++.+.+++.*", ".+++++++++++++++++.*", "...................*", " *******************"}; const gchar * Line_xpm[] = { "20 20 2 1", " c None", ". c #000000", " ", " ", " . ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ............... ", " ............... ", " ", " ", " "}; const gchar * Load_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", "........... ", ".+++++++++. ", ".+..++++++. ", ".+++++++++. ", ".+++++++++. ", "........... ", " ", " ", " ... .......", " ... ..+++++.", " ... .. ...+.+.+.", " ... .. ....+.+.+.", " ....... .....+++++.", " .........+.+.+.+.+.", " ...... .+.+.+.+.+.", " .. .+++++++++.", " . .+.+.+.+.+.", " .+.+.+.+.+.", " .+++++++++.", " ..........."}; const gchar * Mark_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " ", " ..... ", " ......... ", " ...++...... ", " ..++++....... ", " ..+++++........ ", " ..+++++........ ", " ..++++++......... ", " ..++++++......... ", " ..++++++......... ", " ..++++++......... ", " ..++++++......... ", " ..+++++........ ", " ..+++++........ ", " ..++++....... ", " ...++...... ", " ......... ", " ..... ", " "}; const gchar * Math_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " ............... ", " .+++++++++++++.. ", " .+...........+.. ", " .+.+.+.+.+.+.+.. ", " .+.+.+.+.+.+.+.. ", " .+...........+.. ", " .+++++++++++++.. ", " .+..+..+..+..+.. ", " .+..+..+..+..+.. ", " .+++++++++++++.. ", " .+..+..+..+..+.. ", " .+..+..+..+..+.. ", " .+++++++++++++.. ", " .+..+..+..+..+.. ", " .+..+..+..+..+.. ", " .+++++++++++++.. ", " ................ ", " ............... ", " "}; const gchar * Mergewin_xpm[] = { "20 20 4 1", " c None", ". c #000000", "+ c #FFFFFF", "* c #666666", "................... ", ".+++++++++++++++++.*", ".+...............+.*", ".+..++.++.++.++..+.*", ".+..+++++++++++..+.*", ".+...+++++++++...+.*", ".+..+++++++++++..+.*", ".+..++.++.++.++..+.*", ".+...............+.*", ".+++++++++++++++++.*", ".+...............+.*", ".+..++.++.++.++..+.*", ".+..+++++++++++..+.*", ".+...+++++++++...+.*", ".+..+++++++++++..+.*", ".+..++.++.++.++..+.*", ".+...............+.*", ".+++++++++++++++++.*", "...................*", " *******************"}; const gchar * Point_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " ", " ... ", " .+.... ", " ..+++.... ", " .++++++.... ", " .+++++++++.. ", " ..++++++... ", " .++++++. ", " .++++++.. ", " ..++++++.. ", " .+...+++.. ", " .+. ..+++.. ", " ... ..+++.. ", " . ..+++.. ", " ..+++.. ", " ..+.. ", " ... ", " . ", " "}; const gchar * Polygon_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c None", " ", " ", " . ", " ... ", " ..+.. ", " ..+++.. ", " ..+++++.. ", " ..+++++++.. ", " ..+++++++++.. ", " ..+++++++++++.. ", " ..+++++++++++++.. ", " ..+++++++++++.. ", " ..+++++++++.. ", " ..+++++++.. ", " ..+++++.. ", " ..+++.. ", " ..+.. ", " ... ", " . ", " "}; const gchar * Preview_xpm[] = { "20 20 4 1", " c None", ". c #000000", "+ c #FFFFFF", "* c #0000FF", " ", " ................ ", " .**************. ", " .********+*+*+*. ", " .**************. ", " .++++++++++++++. ", " .++++++++++++++. ", " .+++........+++. ", " .+++.++++++.+++. ", " .+++.++++++.+++. ", " .+++.++++++.+++. ", " .+++.++++++.+++. ", " .+++.++++++.+++. ", " .+++.++++++.+++. ", " .+++.++++++.+++. ", " .+++.++++++.+++. ", " .+++........+++. ", " .++++++++++++++. ", " ................ ", " "}; const gchar * Print_xpm[] = { "20 20 6 1", " c None", ". c #000000", "+ c #FFFFFF", "* c #CCCCCC", "# c #999999", "R c #FF9999", " ", " ", " ............", " .++++++++++. ", " .++++++++++. ", " .++++++++++. ", " .++++++++++. ", " .++++++++++. ", " .++++++++++.....", " .++++++++++...#.", " ..++++++++++..##.", " ..............###.", " ..............####.", " .************.####.", " .*RRR********.####.", " .************.###. ", " .*RRR********.##. ", " .************.#. ", " ............... ", " "}; const gchar * Rect_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " ", " ", " ............. ", " ............. ", " ..+++++++++.. ", " ..+++++++++.. ", " ..+++++++++.. ", " ..+++++++++.. ", " ..+++++++++.. ", " ..+++++++++.. ", " ..+++++++++.. ", " ..+++++++++.. ", " ..+++++++++.. ", " ..+++++++++.. ", " ..+++++++++.. ", " ............. ", " ............. ", " ", " "}; const gchar * Save_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", "........... ", ".+++++++++. ", ".+..++++++. ", ".+++++++++. ", ".+++++++++. ", "........... ", " ", " . ", " ... .......", " ..... ..+++++.", "....... ...+.+.+.", " ... ....+.+.+.", " ... .....+++++.", " ... .+.+.+.+.+.", " ..... .+.+.+.+.+.", " ..... .+++++++++.", " .... .+.+.+.+.+.", " .+.+.+.+.+.", " .+++++++++.", " ..........."}; const gchar * Scale_xpm[] = { "20 20 2 1", " c None", ". c #000000", " ", " . ", " ... ", " ..... ....... ", " . ......... ", " . .. .. ", " . .. .. ", " . ..... ", " . ..... ", " . ... ", " . ", " . ... ", " . ... ", " . ", " . . ", " . .. ", " ................. ", " . .. ", " . . ", " "}; const gchar * Scaleundo_xpm[] = { "20 20 3 1", " c None", ". c #000000", "= c #0000CC", " ", ". . . . ... .. ", ". . .. . . . . .", ". . . . . . . . .", ". . . .. . . . .", " .. . . ... .. ", " ", " = ", " == ", " === ", " =============== ", " ================ ", " ================= ", " ================== ", " ================= ", " ================ ", " =============== ", " === ", " == ", " = "}; const gchar * Section_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " ", " ................ ", " .++.++.++.++.++. ", " .++.++.++.++.++. ", " ................ ", " .++.++.++.++.++. ", " .++.++.++.++.++. ", " ................ ", " .++.++.++.++.++. ", " .++.++.++.++.++. ", " ................ ", " .++.++.++.++.++. ", " .++.++.++.++.++. ", " ................ ", " .++.++.++.++.++. ", " .++.++.++.++.++. ", " ................ ", " ", " "}; const gchar * Single_xpm[] = { "20 20 2 1", " c None", ". c #000000", " ", " ", " . ", " ... ", " ..... ", " . ", " . ", " ... ", " . ", " . ", " ... ", " . ", " . ", " ... ", " . ", " . ", " ... ", " . ", " . ", " "}; const gchar * Text_xpm[] = { "20 20 2 1", " c None", ". c #000000", " ", " ", " ", " ", " ............... ", " ... ... ... ", " .. ... .. ", " .. ... .. ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ... ", " ......... ", " ", " ", " "}; const gchar * Trimming_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " . ", " .... . ", " ..... .+. ", " . .++. ", " . .++. ", " ... .+++. ", " . .+++. ", " .. .+++. ", " .++.. .++. ", " .+++.. .+. ", " .++++. .. .. ", " ...++++.......+. ", " . .++++....++++.", " . .... ......+.", " ... .+. ...", " . ..+. ", " . .++.. ", " ..... .++. ", " . ... "}; const gchar * Zoom_xpm[] = { "20 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " ...... ", " .......... ", " ...++++++... ", " ..++++++++.. ", " ..++++..++++.. ", " ..++++..++++.. ", " ..++......++.. ", " ..++......++.. ", " ..++++..++++.. ", " ..++++..++++.. ", " ...++++++++.. ", " .....+++++.... ", " .............. ", " ....+........ ", " ...+.. ", " ..+.. ", " ... ", " ", " "}; const gchar * Move_xpm[] = { "20 20 2 1", " c None", ". c #000000", " ", " ", " ", " .. ", " .... ", " ...... ", " .. ", " . .. . ", " .. .. .. ", " .............. ", " .............. ", " .. .. .. ", " . .. . ", " .. ", " ...... ", " .... ", " .. ", " ", " ", " "}; const char * Axiswin48_xpm[] = { "48 48 5 1", " g None", ". g #000000", "+ g #FFFFFF", "@ g #666666", "# g #333333", ".............................................. ", ".++++++++++++++++++++++++++++++++++++++++++++. ", ".++++++++++++++++++++++++++++++++++++++++++++.@@", ".++++++++++++++++++++++++++++++++++++++++++++.@@", ".+++++++++++.++++++++++++++++++++++++++++++++.@@", ".++++++++++...+++++++++++++++++++++++++++++++.@@", ".+++++++++.....++++++++++++++++++++++++++++++.@@", ".++++++++.......+++++++++++++++++++++++++++++.@@", ".+++++++...#.....++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++..#.....++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++..#.....++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++..#.....+++++++++++++++++++++.++++++.@@", ".++++++++++#.+++.+++++++.++++++.++++++..+++++.@@", ".++++++++++#.+++.+++++++.++++++.++++++...++++.@@", ".++++++++++#.+++.+++++++.++++++.++++++....+++.@@", ".++........#...............................++.@@", ".++###################################....+++.@@", ".++++++++++#.+++.+++++++.++++++.++++++...++++.@@", ".++++++++++#.+++.+++++++.++++++.++++++..+++++.@@", ".++++++++++#.+++++++++++++++++++++++++.++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++#.++++++++++++++++++++++++++++++++.@@", ".++++++++++++++++++++++++++++++++++++++++++++.@@", ".++++++++++++++++++++++++++++++++++++++++++++.@@", "..............................................@@", " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"}; const char * Coordwin48_xpm[] = { "48 48 5 1", " c None", ". c #020501", "+ c #5F615E", "@ c #959794", "# c #FDFFFB", ".............................................. ", ".############################################. ", ".############################################.++", ".############################################.++", ".#####@+++@##################################.++", ".####@.....@#################################.++", ".####+.....+#################################.++", ".####+......#################################.++", ".####+......#################################.++", ".####@.....+#################################.++", ".#####@+..+##################################.++", ".#############+.@############################.++", ".#############+...@##########################.++", ".##############@....@########################.++", ".################@....@######################.++", ".##################@...+#####################.++", ".####################@...+###################.++", ".######################@...+#################.++", ".########################+...+###############.++", ".##########################+...@#############.++", ".############################+...@###########.++", ".##############################+...@#########.++", ".###############################@+...@#######.++", ".#################################@...@######.++", ".###################################@+#######.++", ".############################################.++", ".############################################.++", ".############################################.++", ".#########+.+####+.+#######+.+######+.+######.++", ".##########..@##@..#########..@####@..#######.++", ".##########+..##..@##########..####..########.++", ".###########..@+.+###########@.+##+.@########.++", ".###########@....#############+.@@.+#########.++", ".############+..@##############....##########.++", ".############+..@##############@..@##########.++", ".###########@...+###############..###########.++", ".###########..@..@##############..###########.++", ".##########+.+#@..##############..###########.++", ".#########@..###..+#############..###########.++", ".#########..@###@..#############..###########.++", ".########+.+#####+.+############..###########.++", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", "..............................................++", " ++++++++++++++++++++++++++++++++++++++++++++++", " ++++++++++++++++++++++++++++++++++++++++++++++"}; const char * Filewin48_xpm[] = { "48 48 5 1", " c None", ". c #010400", "+ c #565855", "@ c #898B88", "# c #FBFEFA", ".............................................. ", ".############################################. ", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", ".######@.####################################.++", ".#####...######@#####@#####@#####@###########.++", ".#######.#####+.+###+.+###+.+###+.+##########.++", ".#######.#####+.+###+.+###+.+###+.+##########.++", ".#######.#####+.+###+.+###+.+###+.+##########.++", ".#######.#####+.+###+.+###+.+###+.+##########.++", ".#######.#####@.@###@.@###@.@###@.@##########.++", ".##############@#####@#####@#####@###########.++", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", ".#####..+####################################.++", ".####+@#@.#####@#####@#####@#####@###########.++", ".####.###.####+.+###+.+###+.+###+.+##########.++", ".#######++####+.+###+.+###+.+###+.+##########.++", ".#####@.@#####+.+###+.+###+.+###+.+##########.++", ".####@.@######+.+###+.+###+.+###+.+##########.++", ".####.....####@.@###@.@###@.@###@.@##########.++", ".##############@#####@#####@#####@###########.++", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", ".####@...@###################################.++", ".####..##.#####@#####@#####@#####@###########.++", ".#######@+####+.+###+.+###+.+###+.+##########.++", ".######..@####+.+###+.+###+.+###+.+##########.++", ".########.####+.+###+.+###+.+###+.+##########.++", ".####.+#@.####+.+###+.+###+.+###+.+##########.++", ".####@...@####@.@###@.@###@.@###@.@##########.++", ".##############@#####@#####@#####@###########.++", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", "..............................................++", " ++++++++++++++++++++++++++++++++++++++++++++++", " ++++++++++++++++++++++++++++++++++++++++++++++"}; const char * Infowin48_xpm[] = { "48 48 3 1", " c None", "+ c #0000FF", "# c #FFFFFF", " ", " ", " ", " ", " ++++++ ", " ++++++++++++++ ", " +++++++####+++++++ ", " ++++++++######++++++++ ", " ++++++++########++++++++ ", " +++++++++########+++++++++ ", " ++++++++++########++++++++++ ", " +++++++++++########+++++++++++ ", " +++++++++++++######+++++++++++++ ", " +++++++++++++++####+++++++++++++++ ", " ++++++++++++++++++++++++++++++++++ ", " ++++++++++++++++++++++++++++++++++++ ", " ++++++++++++++++++++++++++++++++++++ ", " ++++++++++++++++++++++++++++++++++++++ ", " ++++++++++++###########+++++++++++++++ ", " ++++++++++++###########+++++++++++++++ ", " +++++++++++++++########+++++++++++++++ ", " +++++++++++++++++#######++++++++++++++++ ", " +++++++++++++++++#######++++++++++++++++ ", " +++++++++++++++++#######++++++++++++++++ ", " +++++++++++++++++#######++++++++++++++++ ", " +++++++++++++++++#######++++++++++++++++ ", " +++++++++++++++++#######++++++++++++++++ ", " ++++++++++++++++#######+++++++++++++++ ", " ++++++++++++++++#######+++++++++++++++ ", " ++++++++++++++++#######+++++++++++++++ ", " ++++++++++++++++#######+++++++++++++++ ", " +++++++++++++++#######++++++++++++++ ", " +++++++++++++++#######++++++++++++++ ", " ++++++++++++++#######+++++++++++++ ", " ++++++++++++++#######+++++++++++++ ", " +++++++++++++#######++++++++++++ ", " ++++++++++++#######+++++++++++ ", " ++++++++++#########+++++++++ ", " ++++++##############++++++ ", " +++++##############+++++ ", " ++++++++++++++++++++++ ", " ++++++++++++++++++ ", " ++++++++++++++ ", " ++++++ ", " ", " ", " ", " "}; const char * Legendwin48_xpm[] = { "48 48 5 1", " c None", ". c #010400", "+ c #5E605D", "@ c #A9ABA8", "# c #FDFFFC", ".............................................. ", ".############################################. ", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", ".##.+##.+###..............@##################.++", ".##.+##.+###...............@#################.++", ".##.+##.+################...@################.++", ".##.+##.+#################...@###############.++", ".##.+##.+##################...@##############.++", ".##.+##.+###################...@#############.++", ".##.+##.+####################...@############.++", ".#############################...@###########.++", ".##############################...@##########.++", ".###############################...@####@####.++", ".################################...@##@.+###.++", ".#################################...@+...@##.++", ".##################################.......@##.++", ".##################################@......@##.++", ".#################################+.......@##.++", ".################################+........@##.++", ".##@+.......@####################.........@##.++", ".##@.........####################@.......+@##.++", ".##@........+################################.++", ".##@.......+#################################.++", ".##@......@##################################.++", ".##@.......##################################.++", ".##@...+@...#################################.++", ".###+.@##@...################################.++", ".####@####@...###############################.++", ".##########@...##############################.++", ".###########@...#############################.++", ".############@...####################+.##+.##.++", ".#############@...###################+.##+.##.++", ".##############@...##################+.##+.##.++", ".###############@...#################+.##+.##.++", ".################@...################+.##+.##.++", ".#################@...............###+.##+.##.++", ".##################@..............###+.##+.##.++", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", ".############################################.++", "..............................................++", " ++++++++++++++++++++++++++++++++++++++++++++++", " ++++++++++++++++++++++++++++++++++++++++++++++"}; const char * Mergewin48_xpm[] = { "48 48 4 1", " g None", ". g #000000", "+ g #FFFFFF", "@ g #666666", ".............................................. ", ".++++++++++++++++++++++++++++++++++++++++++++. ", ".++++++++++++++++++++++++++++++++++++++++++++.@@", ".++++++++++++++++++++++++++++++++++++++++++++.@@", ".+++......................................+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++....++++++++++++++++++++++++++++++....+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++....++++++++++++++++++++++++++++++....+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++......................................+++.@@", ".++++++++++++++++++++++++++++++++++++++++++++.@@", ".++++++++++++++++++++++++++++++++++++++++++++.@@", ".+++......................................+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++....++++++++++++++++++++++++++++++....+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++....++++++++++++++++++++++++++++++....+++.@@", ".+++.++++++++++++++++++++++++++++++++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++.+++++.+++++++.+++++++.+++++++.++++++.+++.@@", ".+++......................................+++.@@", ".++++++++++++++++++++++++++++++++++++++++++++.@@", ".++++++++++++++++++++++++++++++++++++++++++++.@@", ".++++++++++++++++++++++++++++++++++++++++++++.@@", "..............................................@@", " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"}; ngraph-gtk-6.06.13/src/gtk/x11view.c0000644000175000017500000042336312241111703013701 00000000000000/* -*- coding: utf-8 -*- */ /* * $Id: x11view.c,v 1.186 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include "object.h" #include "gra.h" #include "ofile.h" #include "olegend.h" #include "oarc.h" #include "opath.h" #include "mathfn.h" #include "ioutil.h" #include "nstring.h" #include "shell.h" #include "gtk_liststore.h" #include "gtk_widget.h" #include "gtk_ruler.h" #include "strconv.h" #include "x11gui.h" #include "x11dialg.h" #include "ogra2cairo.h" #include "ox11menu.h" #include "x11menu.h" #include "x11graph.h" #include "x11file.h" #include "x11axis.h" #include "x11info.h" #include "x11cood.h" #include "x11lgnd.h" #include "x11view.h" #include "x11commn.h" #include "x11merge.h" #define ID_BUF_SIZE 16 #define SCROLL_INC 20 #define POINT_ERROR 4 #define ZOOM_SPEED_NORMAL 1.4 #define ZOOM_SPEED_LITTLE 1.1 enum object_move_type { OBJECT_MOVE_TYPE_TOP, OBJECT_MOVE_TYPE_UP, OBJECT_MOVE_TYPE_DOWN, OBJECT_MOVE_TYPE_LAST, }; #define Button1 1 #define Button2 2 #define Button3 3 #define Button4 4 #define Button5 5 enum EvalDialogColType { EVAL_DIALOG_COL_TYPE_ID, EVAL_DIALOG_COL_TYPE_LN, EVAL_DIALOG_COL_TYPE_X, EVAL_DIALOG_COL_TYPE_Y, EVAL_DIALOG_COL_TYPE_N, }; enum ViewerAlignType { VIEW_ALIGN_LEFT, VIEW_ALIGN_RIGHT, VIEW_ALIGN_HCENTER, VIEW_ALIGN_TOP, VIEW_ALIGN_VCENTER, VIEW_ALIGN_BOTTOM, }; #define POINT_LENGTH 5 #define FOCUS_FRAME_OFST 5 #define FOCUS_RECT_SIZE 6 #if GTK_CHECK_VERSION(3, 0, 0) static cairo_region_t *region = NULL; #else static GdkRegion *region = NULL; #endif static int PaintLock = FALSE, ZoomLock = FALSE, DefaultMode = 0, KeepMouseMode = FALSE; #define EVAL_NUM_MAX 5000 static struct evaltype EvalList[EVAL_NUM_MAX]; static struct narray SelList; // static char evbuf[256]; #define IDEVMASK 101 #define IDEVMOVE 102 static void ViewerEvSize(GtkWidget *w, GtkAllocation *allocation, gpointer client_data); static void ViewerEvHScroll(GtkRange *range, gpointer user_data); static void ViewerEvVScroll(GtkRange *range, gpointer user_data); #if GTK_CHECK_VERSION(3, 0, 0) static gboolean ViewerEvPaint(GtkWidget *w, cairo_t *cr, gpointer client_data); #else static gboolean ViewerEvPaint(GtkWidget *w, GdkEventExpose *e, gpointer client_data); #endif static gboolean ViewerEvLButtonDown(unsigned int state, TPoint *point, struct Viewer *d); static gboolean ViewerEvLButtonUp(unsigned int state, TPoint *point, struct Viewer *d); static gboolean ViewerEvLButtonDblClk(unsigned int state, TPoint *point, struct Viewer *d); static gboolean ViewerEvMouseMove(unsigned int state, TPoint *point, struct Viewer *d); static gboolean ViewerEvButtonDown(GtkWidget *w, GdkEventButton *e, gpointer client_data); static gboolean ViewerEvButtonUp(GtkWidget *w, GdkEventButton *e, gpointer client_data); static gboolean ViewerEvMouseMotion(GtkWidget *w, GdkEventMotion *e, gpointer client_data); static gboolean ViewerEvScroll(GtkWidget *w, GdkEventScroll *e, gpointer client_data); static gboolean ViewerEvKeyDown(GtkWidget *w, GdkEventKey *e, gpointer client_data); static gboolean ViewerEvKeyUp(GtkWidget *w, GdkEventKey *e, gpointer client_data); static void DelList(struct objlist *obj, N_VALUE *inst, const struct Viewer *d); static void ViewUpdate(void); static void ViewCopy(void); static void do_popup(GdkEventButton *event, struct Viewer *d); static int check_focused_obj(struct narray *focusobj, struct objlist *fobj, int oid); static int get_mouse_cursor_type(struct Viewer *d, int x, int y); static void reorder_object(enum object_move_type type); static void move_data_cancel(struct Viewer *d, gboolean show_message); static void SetHRuler(const struct Viewer *d); static void SetVRuler(const struct Viewer *d); static void clear_focus_obj(const struct Viewer *d); static void ViewDelete(void); static int text_dropped(const char *str, gint x, gint y, struct Viewer *d); static int add_focus_obj(struct narray *focusobj, struct objlist *obj, int oid); static void ShowFocusFrame(cairo_t *cr, const struct Viewer *d); static void AddInvalidateRect(struct objlist *obj, N_VALUE *inst); static void AddList(struct objlist *obj, N_VALUE *inst); static void RotateFocusedObj(int direction); static void set_mouse_cursor_hover(struct Viewer *d, int x, int y); static void CheckGrid(int ofs, unsigned int state, int *x, int *y, double *zoom); #define GRAY 0.5 #define DOT_LENGTH 4.0 static int mxd2p(int r) { return nround(r * Menulocal.local->pixel_dot_x); } #if 0 static int mxd2px(int x) { return nround(x * Menulocal.local->pixel_dot_x + Menulocal.local->offsetx); } static int mxd2py(int y) { return nround(y * Menulocal.local->pixel_dot_y + Menulocal.local->offsety); } #endif static int mxp2d(int r) { return ceil(r / Menulocal.local->pixel_dot_x); } static int calc_mouse_x(int x, double zoom, const struct Viewer *d) { return nround((mxp2d(x + d->hscroll - d->cx) - Menulocal.LeftMargin) / zoom); } static int calc_mouse_y(int y, double zoom, const struct Viewer *d) { return nround((mxp2d(y + d->vscroll - d->cy) - Menulocal.TopMargin) / zoom); } static double range_increment(GtkWidget *w, double inc) { double val; val = gtk_range_get_value(GTK_RANGE(w)); gtk_range_set_value(GTK_RANGE(w), val + inc); return val; } static char SCRIPT_IDN[] = "#! ngraph\n# clipboard\n\n"; #define SCRIPT_IDN_LEN (sizeof(SCRIPT_IDN) - 1) static int CopyFocusedObjects(void) { struct narray *focus_array; struct FocusObj **focus; struct objlist *axis; char *s; int i, r, n, id, num; GtkClipboard* clipboard; GString *str; focus_array = NgraphApp.Viewer.focusobj; n = arraynum(focus_array); if (n < 1) return 1; focus = arraydata(focus_array); str = g_string_sized_new(256); if (str == NULL) return 1; axis = chkobject("axis"); g_string_append(str, SCRIPT_IDN); num = 0; for (i = 0; i < n; i++) { if (focus[i]->obj == axis) { g_string_free(str, TRUE); return 1; } id = chkobjoid(focus[i]->obj, focus[i]->oid); if (id < 0) continue; r = getobj(focus[i]->obj, "save", id, 0, NULL, &s); if (r < 0 || s == NULL) { g_string_free(str, TRUE); return 1; } g_string_append(str, s); num++; } if (num > 0) { clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); gtk_clipboard_set_text(clipboard, str->str, -1); } g_string_free(str, TRUE); return 0; } static int CutFocusedObjects(void) { if (CopyFocusedObjects()) return 1; ViewDelete(); return 0; } static void check_last_insts(struct objlist *parent, struct narray *array) { struct objlist *ocur; int instnum; ocur = parent->child; while (chkobjparent(ocur) == parent) { instnum = chkobjlastinst(ocur); arrayadd(array, &instnum); if (ocur->child) { check_last_insts(ocur, array); } ocur = ocur->next; } return; } static void focus_new_insts(struct objlist *parent, struct narray *array) { struct objlist *ocur; int i, instnum, prev_instnum, oid; N_VALUE *inst; ocur = parent->child; while (chkobjparent(ocur) == parent) { instnum = chkobjlastinst(ocur); prev_instnum = arraynget_int(array, 0); arrayndel(array, 0); if (chkobjfield(ocur, "bbox") == 0) { for (i = prev_instnum + 1; i <= instnum; i++) { getobj(ocur, "oid", i, 0, NULL, &oid); add_focus_obj(NgraphApp.Viewer.focusobj, ocur, oid); inst = chkobjinst(ocur, i); AddList(ocur, inst); AddInvalidateRect(ocur, inst); } } if (ocur->child) { focus_new_insts(ocur, array); } ocur = ocur->next; } return; } static void paste_cb(GtkClipboard *clipboard, const gchar *text, gpointer data) { struct narray idarray; struct objlist *draw_obj; GdkWindow *window; if (text == NULL) return; window = gtk_widget_get_window(NgraphApp.Viewer.Win); if (window == NULL) return; if (strncmp(text, SCRIPT_IDN, SCRIPT_IDN_LEN)) { gint w, h; #if GTK_CHECK_VERSION(2, 24, 0) w = gdk_window_get_width(window); h = gdk_window_get_height(window); #else gdk_window_get_geometry(window, NULL, NULL, &w, &h, NULL); #endif text_dropped(text, w / 2, h / 2, &NgraphApp.Viewer); return; } draw_obj = chkobject("draw"); if (draw_obj == NULL) return; arrayinit(&idarray, sizeof(int)); check_last_insts(draw_obj, &idarray); UnFocus(); eval_script(text, TRUE); focus_new_insts(draw_obj, &idarray); arraydel(&idarray); if (arraynum(NgraphApp.Viewer.focusobj) > 0) { set_graph_modified(); NgraphApp.Viewer.allclear = FALSE; NgraphApp.Viewer.ShowFrame = TRUE; gtk_widget_grab_focus(NgraphApp.Viewer.Win); UpdateAll(); } } static void PasteObjectsFromClipboard(void) { GtkClipboard *clip; struct Viewer *d; #if GTK_CHECK_VERSION(3, 4, 0) GdkDevice *device; GdkWindow *win; #endif d = &NgraphApp.Viewer; if (d->Win == NULL || (d->Mode != PointB && d->Mode != LegendB)) { return; } clip = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); if (gtk_clipboard_wait_is_text_available(clip)) { gint x, y; gtk_clipboard_request_text(clip, paste_cb, NULL); #if GTK_CHECK_VERSION(3, 4, 0) device = gtk_get_current_event_device(); /* fix-me: is there any other appropriate way to get the device? */ if (device && gdk_device_get_source(device) != GDK_SOURCE_KEYBOARD) { win = gtk_widget_get_window(d->Win); if (win) { gdk_window_get_device_position(win, device, &x, &y, NULL); set_mouse_cursor_hover(d, x, y); } } #else gtk_widget_get_pointer(d->Win, &x, &y); set_mouse_cursor_hover(d, x, y); #endif } } static int graph_dropped(char *fname) { int load; char *ext; if (fname == NULL) { return 1; } load = FALSE; ext = getextention(fname); if (ext == NULL) return 1; if (strcmp0(ext, "prm") == 0) { if (!CheckSave()) return 0; LoadPrmFile(fname); load = TRUE; } else if (strcmp0(ext, "ngp") == 0) { if (!CheckSave()) return 0; LoadNgpFile(fname, Menulocal.loadpath, Menulocal.expand, Menulocal.expanddir, FALSE, "-f"); load = TRUE; } if (load) { CmViewerDraw(NULL, GINT_TO_POINTER(FALSE)); return 0; } return 1; } static int new_merge_obj(char *name, struct objlist *obj) { int id, ret; id = newobj(obj); if (id < 0) return 1; changefilename(name); putobj(obj, "file", id, name); MergeDialog(NgraphApp.MergeWin.data.data, id, -1); ret = DialogExecute(TopLevel, &DlgMerge); if ((ret == IDDELETE) || (ret == IDCANCEL)) { delobj(obj, id); } else { set_graph_modified(); } return 0; } static int arc_get_angle(struct objlist *obj, N_VALUE *inst, unsigned int round, int point, int px, int py, int *angle1, int *angle2) { int x, y, rx, ry, a1, a2; double dx, dy, r, angle; if (inst == NULL) return 1; if (point != ARC_POINT_TYPE_ANGLE1 && point != ARC_POINT_TYPE_ANGLE2) return 1; _getobj(obj, "x", inst, &x); _getobj(obj, "y", inst, &y); _getobj(obj, "rx", inst, &rx); _getobj(obj, "ry", inst, &ry); _getobj(obj, "angle1", inst, &a1); _getobj(obj, "angle2", inst, &a2); if (rx < 1 || ry < 1) return 1; dx = 1.0 * (px - x) / rx; dy = 1.0 * (y - py) / ry; r = sqrt(dx * dx + dy * dy); if (dx == 0 && dy == 0) return 1; if (dx >= 0 && dy >= 0) { if (dx > dy) { angle = acos(dx / r) / MPI * 180; } else { angle = asin(dy / r) / MPI * 180; } } else if (dx < 0 && dy >= 0) { if (-dx > dy) { angle = acos(-dx / r) / MPI * 180; } else { angle = asin(dy / r) / MPI * 180; } angle = 180 - angle; } else if (dx < 0 && dy < 0) { if (-dx > -dy) { angle = acos(-dx / r) / MPI * 180; } else { angle = asin(-dy / r) / MPI * 180; } angle += 180; } else { if (dx > -dy) { angle = acos(dx / r) / MPI * 180; } else { angle = asin(-dy / r) / MPI * 180; } angle = 360 - angle; } if (round & GDK_CONTROL_MASK) { int tmp; angle = nround(angle); tmp = angle / 15; angle = tmp * 15; } else if (! (round & GDK_SHIFT_MASK)) { angle = nround(angle); } angle *= 100; switch (point) { case ARC_POINT_TYPE_ANGLE1: a2 += a1; a1 = angle; a2 -= a1; break; case ARC_POINT_TYPE_ANGLE2: a2 = angle - a1; break; } a1 %= 36000; if (a1 < 0) a1 += 36000; a2 %= 36000; if (a2 < 0) { a2 += 36000; } if (a2 < 500) a2 = 36000; if (angle1) *angle1 = a1; if (angle2) *angle2 = a2; return 0; } static int new_file_obj(char *name, struct objlist *obj, int *id0, int multi) { int id, ret; id = newobj(obj); if (id < 0) { return 1; } putobj(obj, "file", id, name); if (*id0 != -1) { copy_file_obj_field(obj, id, *id0, FALSE); AddDataFileList(name); return 0; } FileDialog(NgraphApp.FileWin.data.data, id, multi); ret = DialogExecute(TopLevel, &DlgFile); if ((ret == IDDELETE) || (ret == IDCANCEL)) { FitDel(obj, id); delobj(obj, id); } else { if (ret == IDFAPPLY) { *id0 = id; } set_graph_modified(); AddDataFileList(name); } return 0; } int data_dropped(char **filenames, int num, int file_type) { char *name, *ext; int i, id0, type, ret; struct objlist *obj, *mobj; obj = chkobject("file"); if (obj == NULL) { return 1; } mobj = chkobject("merge"); if (mobj == NULL) { return 1; } id0 = -1; for (i = 0; i < num; i++) { name = g_filename_from_uri(filenames[i], NULL, NULL); if (name == NULL) { continue; } type = file_type; if (type == FILE_TYPE_AUTO) { ext = getextention(name); if (ext && strcmp0(ext, "gra") == 0) { type = FILE_TYPE_MERGE; } else { type = FILE_TYPE_DATA; } } ret = 1; if (type == FILE_TYPE_MERGE) { ret = new_merge_obj(name, mobj); } else { ret = new_file_obj(name, obj, &id0, i < num - 1); } if (ret) { g_free(name); continue; } } MergeWinUpdate(NgraphApp.MergeWin.data.data, TRUE); FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); return 0; } static int text_dropped(const char *str, gint x, gint y, struct Viewer *d) { N_VALUE *inst; char *ptr; double zoom = Menulocal.PaperZoom / 10000.0; struct objlist *obj; int id, x1, y1, r, i, j, l; obj = chkobject("text"); if (obj == NULL) return 1; l = strlen(str); ptr = g_malloc(l * 2 + 1); if (ptr == NULL) return 1; for (i = j = 0; i < l; i++, j++) { switch (str[i]) { case '\n': ptr[j] = '\\'; j++; ptr[j] = 'n'; break; case '%': case '^': case '_': case '\\': ptr[j] = '\\'; j++; ptr[j] = str[i]; break; default: ptr[j] = str[i]; break; } } ptr[j] = '\0'; id = newobj(obj); if (id < 0) { g_free(ptr); return 1; } inst = chkobjinst(obj, id); x1 = calc_mouse_x(x, zoom, d); y1 = calc_mouse_y(y, zoom, d); CheckGrid(FALSE, 0, &x1, &y1, NULL); _putobj(obj, "x", inst, &x1); _putobj(obj, "y", inst, &y1); _putobj(obj, "text", inst, ptr); PaintLock= TRUE; LegendTextDialog(&DlgLegendText, obj, id); r = DialogExecute(TopLevel, &DlgLegendText); if ((r == IDDELETE) || (r == IDCANCEL)) { delobj(obj, id); } else { int oid; UnFocus(); getobj(obj, "oid", id, 0, NULL, &oid); add_focus_obj(NgraphApp.Viewer.focusobj, obj, oid); d->allclear = FALSE; AddList(obj, inst); AddInvalidateRect(obj, inst); set_graph_modified(); d->ShowFrame = TRUE; gtk_widget_grab_focus(d->Win); UpdateAll(); } PaintLock = FALSE; return 0; } static void drag_drop_cb(GtkWidget *w, GdkDragContext *context, gint x, gint y, GtkSelectionData *data, guint info, guint time, gpointer user_data) { gchar **filenames, *str; int num, r, success; struct Viewer *d; success = FALSE; if (Globallock || Menulock || DnDLock) goto End; d = (struct Viewer *) user_data; switch (info) { case DROP_TYPE_TEXT: str = (gchar *) gtk_selection_data_get_text(data); if (str) { r = text_dropped(str, x, y, d); g_free(str); success = (! r); } break; case DROP_TYPE_FILE: filenames = gtk_selection_data_get_uris(data); num = g_strv_length(filenames); r = 1; if (num == 1) { char *fname; fname = g_filename_from_uri(filenames[0], NULL, NULL); if (fname == NULL) { g_strfreev(filenames); break; } r = graph_dropped(fname); g_free(fname); } if (r && data_dropped(filenames, num, FILE_TYPE_AUTO) == 0) { success = TRUE; } else { success = TRUE; } g_strfreev(filenames); break; } End: gtk_drag_finish(context, success, FALSE, time); } static void init_dnd(struct Viewer *d) { GtkWidget *widget; GtkTargetEntry target[] = { {"text/uri-list", 0, DROP_TYPE_FILE}, }; GtkTargetList *list; widget = d->Win; gtk_drag_dest_set(widget, GTK_DEST_DEFAULT_ALL, target, sizeof(target) / sizeof(*target), GDK_ACTION_COPY); list = gtk_drag_dest_get_target_list(widget); gtk_target_list_add_text_targets(list, DROP_TYPE_TEXT); g_signal_connect(widget, "drag-data-received", G_CALLBACK(drag_drop_cb), d); } static void eval_dialog_set_parent_cal(GtkWidget *w, GtkTreeIter *iter, int id, int n) { tree_store_set_int(w, iter, EVAL_DIALOG_COL_TYPE_ID, id); tree_store_set_int(w, iter, EVAL_DIALOG_COL_TYPE_LN, n); tree_store_set_int(w, iter, EVAL_DIALOG_COL_TYPE_N, -1); } static void EvalDialogSetupItem(GtkWidget *w, struct EvalDialog *d) { int i, id, n; GtkTreeIter iter, parent; char buf[64]; tree_store_clear(d->list); id = -1; n = 0; for (i = d->Num - 1; i >= 0; i--) { if (id != EvalList[i].id) { if (id >= 0) { eval_dialog_set_parent_cal(d->list, &parent, id, n); } tree_store_prepend(d->list, &parent, NULL); id = EvalList[i].id; n = 0; } tree_store_prepend(d->list, &iter, &parent); tree_store_set_int(d->list, &iter, EVAL_DIALOG_COL_TYPE_ID, EvalList[i].id); tree_store_set_int(d->list, &iter, EVAL_DIALOG_COL_TYPE_LN, EvalList[i].line); snprintf(buf, sizeof(buf), "%+.15e", EvalList[i].x); tree_store_set_string(d->list, &iter, EVAL_DIALOG_COL_TYPE_X, buf); snprintf(buf, sizeof(buf), "%+.15e", EvalList[i].y); tree_store_set_string(d->list, &iter, EVAL_DIALOG_COL_TYPE_Y, buf); tree_store_set_int(d->list, &iter, EVAL_DIALOG_COL_TYPE_N, i); n++; } eval_dialog_set_parent_cal(d->list, &parent, id, n); gtk_tree_view_expand_all(GTK_TREE_VIEW(d->list)); } static void eval_dialog_copy_selected(GtkWidget *w, gpointer *user_data) { GtkTreeView *tv; GtkClipboard *clip; GtkTreeSelection *sel; GtkTreeIter iter; GtkTreeModel *model; GList *list, *ptr; GString *str; tv = GTK_TREE_VIEW(user_data); sel = gtk_tree_view_get_selection(tv); list = gtk_tree_selection_get_selected_rows(sel, &model); str = g_string_sized_new(256); if (str == NULL) return; for (ptr = g_list_first(list); ptr; ptr = g_list_next(ptr)) { gboolean found; int id, ln; char *x, *y; found = gtk_tree_model_get_iter(model, &iter, ptr->data); if (! found) continue; if (gtk_tree_path_get_depth(ptr->data) < 2) { gtk_tree_model_get(model, &iter, EVAL_DIALOG_COL_TYPE_ID, &id, EVAL_DIALOG_COL_TYPE_LN, &ln, -1); g_string_append_printf(str, "%d %d\n", id, ln); } else { gtk_tree_model_get(model, &iter, EVAL_DIALOG_COL_TYPE_ID, &id, EVAL_DIALOG_COL_TYPE_LN, &ln, EVAL_DIALOG_COL_TYPE_X, &x, EVAL_DIALOG_COL_TYPE_Y, &y, -1); if (x && y) { g_string_append_printf(str, "%d %d %s %s\n", id, ln, x, y); } g_free(x); g_free(y); } } if (str->len > 0) { clip = gtk_clipboard_get(GDK_SELECTION_PRIMARY); gtk_clipboard_set_text(clip, str->str, -1); clip = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); gtk_clipboard_set_text(clip, str->str, -1); } g_string_free(str, TRUE); g_list_foreach(list, free_tree_path_cb, NULL); g_list_free(list); } static gboolean eval_data_sel_cb(GtkTreeSelection *sel, gpointer user_data) { int n; GtkWidget *w; w = GTK_WIDGET(user_data); n = gtk_tree_selection_count_selected_rows(sel); gtk_widget_set_sensitive(w, n); return FALSE; } static void EvalDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *swin, *hbox; GtkTreeSelection *sel; struct EvalDialog *d; n_list_store list[] = { {"#", G_TYPE_INT, TRUE, FALSE, NULL}, {_("Line No."), G_TYPE_INT, TRUE, FALSE, NULL}, {"X", G_TYPE_STRING, TRUE, FALSE, NULL}, {"Y", G_TYPE_STRING, TRUE, FALSE, NULL}, {"N", G_TYPE_INT, FALSE, FALSE, NULL}, }; d = (struct EvalDialog *) data; if (makewidget) { gtk_dialog_add_buttons(GTK_DIALOG(wi), _("_Mask"), IDEVMASK, _("_Move"), IDEVMOVE, NULL); swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); w = tree_store_create(sizeof(list) / sizeof(*list), list); tree_store_set_selection_mode(w, GTK_SELECTION_MULTIPLE); d->list = w; gtk_container_add(GTK_CONTAINER(swin), w); w = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(w), swin); gtk_box_pack_start(GTK_BOX(d->vbox), w, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = gtk_button_new_from_stock(GTK_STOCK_SELECT_ALL); g_signal_connect(w, "clicked", G_CALLBACK(tree_store_select_all_cb), d->list); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); w = gtk_button_new_from_stock(GTK_STOCK_COPY); g_signal_connect(w, "clicked", G_CALLBACK(eval_dialog_copy_selected), d->list); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); gtk_widget_set_sensitive(w, FALSE); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->list)); g_signal_connect(sel, "changed", G_CALLBACK(eval_data_sel_cb), w); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); d->show_cancel = FALSE; d->ok_button = GTK_STOCK_CLOSE; gtk_window_set_default_size(GTK_WINDOW(wi), 540, 400); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } EvalDialogSetupItem(wi, d); } static void select_data_cb(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { struct EvalDialog *d; int a; a = gtk_tree_path_get_depth(path); if (a < 2) return; d = (struct EvalDialog *) data; gtk_tree_model_get(model, iter, EVAL_DIALOG_COL_TYPE_N, &a, -1); if (a >= 0) { arrayadd(d->sel, &a); } } static void EvalDialogClose(GtkWidget *w, void *data) { struct EvalDialog *d; GtkTreeSelection *selected; d = (struct EvalDialog *) data; if ((d->ret == IDEVMASK) || (d->ret == IDEVMOVE)) { selected = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->list)); gtk_tree_selection_selected_foreach(selected, select_data_cb, d); } } void EvalDialog(struct EvalDialog *data, struct objlist *obj, int num, struct narray *iarray) { data->SetupWindow = EvalDialogSetup; data->CloseWindow = EvalDialogClose; data->Obj = obj; data->Num = num; arrayinit(iarray, sizeof(int)); data->sel = iarray; } static gboolean scrollbar_scroll_cb(GtkWidget *w, GdkEventScroll *e, gpointer client_data) { #if GTK_CHECK_VERSION(3, 4, 0) gdouble x, y; #endif switch (e->direction) { case GDK_SCROLL_UP: case GDK_SCROLL_LEFT: range_increment(w, -SCROLL_INC); break; case GDK_SCROLL_DOWN: case GDK_SCROLL_RIGHT: range_increment(w, SCROLL_INC); break; #if GTK_CHECK_VERSION(3, 4, 0) case GDK_SCROLL_SMOOTH: if (gdk_event_get_scroll_deltas((GdkEvent *) e, &x, &y)) { range_increment(w, y * SCROLL_INC); } return TRUE; #endif default: return FALSE; } return TRUE; } static void menu_activate(GtkMenuShell *menushell, gpointer user_data) { struct Viewer *d; d = (struct Viewer *) user_data; if (d->MoveData) { move_data_cancel(d, FALSE); } } static gboolean ev_popup_menu(GtkWidget *w, gpointer client_data) { struct Viewer *d; if (Menulock || Globallock) return TRUE; d = (struct Viewer *) client_data; do_popup(NULL, d); return TRUE; } void ViewerWinSetup(void) { struct Viewer *d; int x, y, width, height; GdkWindow *win; d = &NgraphApp.Viewer; Menulocal.GRAoid = -1; d->Mode = PointB; d->Capture = FALSE; d->MoveData = FALSE; d->MouseMode = MOUSENONE; d->focusobj = arraynew(sizeof(struct FocusObj *)); d->points = arraynew(sizeof(struct Point *)); d->FrameOfsX = 0; d->FrameOfsY = 0; d->LineX = 0; d->LineY = 0; d->Angle = -1; d->CrossX = 0; d->CrossY = 0; d->ShowFrame = FALSE; d->ShowLine = FALSE; d->ShowRect = FALSE; d->allclear = TRUE; d->ignoreredraw = FALSE; d->KeyMask = 0; region = NULL; OpenGC(); OpenGRA(); SetScroller(); win = gtk_widget_get_window(NgraphApp.Viewer.Win); gdk_window_get_position(win, &x, &y); #if GTK_CHECK_VERSION(2, 24, 0) width = gdk_window_get_width(win); height = gdk_window_get_height(win); #else gdk_drawable_get_size(win, &width, &height); #endif d->cx = width / 2; d->cy = height / 2; d->hscroll = gtk_range_get_value(GTK_RANGE(d->HScroll)); d->vscroll = gtk_range_get_value(GTK_RANGE(d->VScroll)); ChangeDPI(); #if GTK_CHECK_VERSION(3, 0, 0) g_signal_connect(d->Win, "draw", G_CALLBACK(ViewerEvPaint), d); #else g_signal_connect(d->Win, "expose-event", G_CALLBACK(ViewerEvPaint), d); #endif g_signal_connect(d->Win, "size-allocate", G_CALLBACK(ViewerEvSize), d); g_signal_connect(d->HScroll, "value-changed", G_CALLBACK(ViewerEvHScroll), d); g_signal_connect(d->VScroll, "value-changed", G_CALLBACK(ViewerEvVScroll), d); g_signal_connect(d->HScroll, "scroll-event", G_CALLBACK(scrollbar_scroll_cb), d); g_signal_connect(d->VScroll, "scroll-event", G_CALLBACK(scrollbar_scroll_cb), d); init_dnd(d); gtk_widget_add_events(d->Win, GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | #if GTK_CHECK_VERSION(3, 4, 0) GDK_SCROLL_MASK | GDK_SMOOTH_SCROLL_MASK | #endif GDK_KEY_RELEASE_MASK); GTK_WIDGET_SET_CAN_FOCUS(d->Win); g_signal_connect(d->Win, "button-press-event", G_CALLBACK(ViewerEvButtonDown), d); g_signal_connect(d->Win, "button-release-event", G_CALLBACK(ViewerEvButtonUp), d); g_signal_connect(d->Win, "motion-notify-event", G_CALLBACK(ViewerEvMouseMotion), d); g_signal_connect(d->Win, "scroll-event", G_CALLBACK(ViewerEvScroll), d); g_signal_connect(d->Win, "key-press-event", G_CALLBACK(ViewerEvKeyDown), d); g_signal_connect(d->Win, "key-release-event", G_CALLBACK(ViewerEvKeyUp), d); g_signal_connect(d->Win, "popup-menu", G_CALLBACK(ev_popup_menu), d); g_signal_connect(d->menu, "selection-done", G_CALLBACK(menu_activate), d); } void ViewerWinClose(void) { struct Viewer *d; d = &NgraphApp.Viewer; CloseGC(); CloseGRA(); arrayfree2(d->focusobj); arrayfree2(d->points); d->focusobj = NULL; d->points = NULL; if (region) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_region_destroy(region); #else gdk_region_destroy(region); #endif region = NULL; } } static int ViewerWinFileUpdate(int x1, int y1, int x2, int y2, int err) { struct objlist *fileobj; char *argv[7]; struct narray *sarray; char **sdata; int snum; struct objlist *dobj; int did, id, limit; char *dfield; N_VALUE *dinst; int i; struct narray *eval; int evalnum; int minx, miny, maxx, maxy; struct savedstdio save; char mes[256]; struct narray dfile; int ret; ret = FALSE; ignorestdio(&save); minx = (x1 < x2) ? x1 : x2; miny = (y1 < y2) ? y1 : y2; maxx = (x1 > x2) ? x1 : x2; maxy = (y1 > y2) ? y1 : y2; limit = 1; argv[0] = (char *) &minx; argv[1] = (char *) &miny; argv[2] = (char *) &maxx; argv[3] = (char *) &maxy; argv[4] = (char *) &err; argv[5] = (char *) &limit; argv[6] = NULL; fileobj = chkobject("file"); if (! fileobj) goto End; arrayinit(&dfile, sizeof(int)); if (_getobj(Menulocal.obj, "_list", Menulocal.inst, &sarray)) goto End; if ((snum = arraynum(sarray)) == 0) goto End; sdata = arraydata(sarray); snprintf(mes, sizeof(mes), _("Searching for data.")); SetStatusBar(mes); ProgressDialogCreate(_("Searching for data.")); for (i = 1; i < snum; i++) { dobj = getobjlist(sdata[i], &did, &dfield, NULL); if (dobj && chkobjchild(fileobj, dobj)) { dinst = chkobjinstoid(dobj, did); if (dinst) { _getobj(dobj, "id", dinst, &id); _exeobj(dobj, "evaluate", dinst, 6, argv); _getobj(dobj, "evaluate", dinst, &eval); evalnum = arraynum(eval) / 3; if (evalnum != 0) arrayadd(&dfile, &id); } } } ProgressDialogFinalize(); ResetStatusBar(); ret = update_file_obj_multi(fileobj, &dfile, FALSE); arraydel(&dfile); End: restorestdio(&save); return ret; } static void mask_selected_data(struct objlist *fileobj, int selnum, struct narray *sel_list) { int masknum, i, j, sel; struct narray *mask; for (i = 0; i < selnum; i++) { sel = arraynget_int(sel_list, i); getobj(fileobj, "mask", EvalList[sel].id, 0, NULL, &mask); if (mask == NULL) { mask = arraynew(sizeof(int)); putobj(fileobj, "mask", EvalList[sel].id, mask); } masknum = arraynum(mask); if (masknum == 0 || (arraynget_int(mask, masknum - 1)) < EvalList[sel].line) { arrayadd(mask, &(EvalList[sel].line)); exeobj(fileobj, "modified", EvalList[sel].id, 0, NULL); set_graph_modified(); } else if ((arraynget_int(mask, 0)) > EvalList[sel].line) { arrayins(mask, &(EvalList[sel].line), 0); exeobj(fileobj, "modified", EvalList[sel].id, 0, NULL); set_graph_modified(); } else { if (bsearch_int(arraydata(mask), masknum, EvalList[sel].line, &j) == 0) { arrayins(mask, &(EvalList[sel].line), j); exeobj(fileobj, "modified", EvalList[sel].id, 0, NULL); set_graph_modified(); } } } } static void Evaluate(int x1, int y1, int x2, int y2, int err, struct Viewer *d) { struct objlist *fileobj; char *argv[7]; struct narray *sarray; char **sdata; int snum; struct objlist *dobj; int did, id, limit; char *dfield; N_VALUE *dinst; int i, j; struct narray *eval; int evalnum, tot; int minx, miny, maxx, maxy; struct savedstdio save; double line, dx, dy; char mes[256]; int ret; int selnum; minx = (x1 < x2) ? x1 : x2; miny = (y1 < y2) ? y1 : y2; maxx = (x1 > x2) ? x1 : x2; maxy = (y1 > y2) ? y1 : y2; limit = EVAL_NUM_MAX; argv[0] = (char *) &minx; argv[1] = (char *) &miny; argv[2] = (char *) &maxx; argv[3] = (char *) &maxy; argv[4] = (char *) &err; argv[5] = (char *) &limit; argv[6] = NULL; if ((fileobj = chkobject("file")) == NULL) return; ignorestdio(&save); snprintf(mes, sizeof(mes), _("Evaluating.")); SetStatusBar(mes); if (_getobj(Menulocal.obj, "_list", Menulocal.inst, &sarray)) return; if ((snum = arraynum(sarray)) == 0) return; ProgressDialogCreate(_("Evaluating")); sdata = arraydata(sarray); tot = 0; for (i = 1; i < snum; i++) { dobj = getobjlist(sdata[i], &did, &dfield, NULL); if (dobj && fileobj == dobj) { dinst = chkobjinstoid(dobj, did); if (dinst) { _getobj(dobj, "id", dinst, &id); _exeobj(dobj, "evaluate", dinst, 6, argv); _getobj(dobj, "evaluate", dinst, &eval); evalnum = arraynum(eval) / 3; for (j = 0; j < evalnum; j++) { if (tot >= limit) break; tot++; line = arraynget_double(eval, j * 3 + 0); dx = arraynget_double(eval, j * 3 + 1); dy = arraynget_double(eval, j * 3 + 2); EvalList[tot - 1].id = id; EvalList[tot - 1].line = nround(line); EvalList[tot - 1].x = dx; EvalList[tot - 1].y = dy; } if (tot >= limit) break; } } } ProgressDialogFinalize(); ResetStatusBar(); if (tot > 0) { EvalDialog(&DlgEval, fileobj, tot, &SelList); ret = DialogExecute(TopLevel, &DlgEval); selnum = arraynum(&SelList); if (ret == IDEVMASK) { mask_selected_data(fileobj, selnum, &SelList); arraydel(&SelList); } else if ((ret == IDEVMOVE) && (selnum > 0)) { NSetCursor(GDK_TCROSS); d->Capture = TRUE; d->MoveData = TRUE; } } restorestdio(&save); } static void Trimming(int x1, int y1, int x2, int y2, struct Viewer *d) { struct narray farray; struct objlist *obj; int i, id; int *array, num; int vx1, vy1, vx2, vy2; int maxx, maxy, minx, miny; int dir, rcode1, rcode2, room; double ax, ay, ip1, ip2, min, max; char *argv[4]; if ((x1 == x2) && (y1 == y2)) return; if ((obj = chkobject("axis")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, AxisCB, (struct narray *) &farray, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { vx1 = x1 - x2; vy1 = y1 - y2; vx2 = x2 - x1; vy2 = y1 - y2; num = arraynum(&farray); array = arraydata(&farray); for (i = 0; i < num; i++) { id = array[i]; getobj(obj, "direction", id, 0, NULL, &dir); ax = cos(dir / 18000.0 * MPI); ay = -sin(dir / 18000.0 * MPI); ip1 = ax * vx1 + ay * vy1; ip2 = ax * vx2 + ay * vy2; if (fabs(ip1) > fabs(ip2)) { if (ip1 > 0) { maxx = x1; maxy = y1; minx = x2; miny = y2; } else if (ip1 < 0) { maxx = x2; maxy = y2; minx = x1; miny = y1; } else { maxx = minx = 0; maxy = miny = 0; } } else { if (ip2 > 0) { maxx = x2; maxy = y1; minx = x1; miny = y2; } else if (ip2 < 0) { maxx = x1; maxy = y2; minx = x2; miny = y1; } else { maxx = minx = 0; maxy = miny = 0; } } if ((minx != maxx) && (miny != maxy)) { argv[0] = (char *) &minx; argv[1] = (char *) &miny; argv[2] = NULL; rcode1 = getobj(obj, "coordinate", id, 2, argv, &min); argv[0] = (char *) &maxx; argv[1] = (char *) &maxy; argv[2] = NULL; rcode2 = getobj(obj, "coordinate", id, 2, argv, &max); if ((rcode1 != -1) && (rcode2 != -1)) { axis_scale_push(obj, id); room = 0; argv[0] = (char *) &min; argv[1] = (char *) &max; argv[2] = (char *) &room; argv[3] = NULL; exeobj(obj, "scale", id, 3, argv); set_graph_modified(); } } } AdjustAxis(); d->allclear = TRUE; UpdateAll(); } arraydel(&farray); } static int Match(char *objname, int x1, int y1, int x2, int y2, int err, const struct Viewer *d) { struct objlist *fobj; char *argv[6]; struct narray *sarray; char **sdata; int snum; struct objlist *dobj; int did; char *dfield; N_VALUE *dinst; int i, match, r; int minx, miny, maxx, maxy; struct savedstdio save; minx = (x1 < x2) ? x1 : x2; miny = (y1 < y2) ? y1 : y2; maxx = (x1 > x2) ? x1 : x2; maxy = (y1 > y2) ? y1 : y2; argv[0] = (char *) &minx; argv[1] = (char *) &miny; argv[2] = (char *) &maxx; argv[3] = (char *) &maxy; argv[4] = (char *) &err; argv[5] = NULL; fobj = chkobject(objname); if (! fobj) return 0; if (_getobj(Menulocal.obj, "_list", Menulocal.inst, &sarray)) return 0; if ((snum = arraynum(sarray)) == 0) return 0; ignorestdio(&save); sdata = arraydata(sarray); r = 0; for (i = 1; i < snum; i++) { dobj = getobjlist(sdata[i], &did, &dfield, NULL); if (! dobj || ! chkobjchild(fobj, dobj)) continue; dinst = chkobjinstoid(dobj, did); if (! dinst) continue; _exeobj(dobj, "match", dinst, 5, argv); _getobj(dobj, "match", dinst, &match); if (! match) continue; if (add_focus_obj(d->focusobj, dobj, did)) { r++; } } restorestdio(&save); return r; } static void AddList(struct objlist *obj, N_VALUE *inst) { int addi; struct objlist *aobj; char *afield; int i, j, po, num, oid, id, id2; struct objlist **objlist; struct objlist *obj2; N_VALUE *inst2, *ainst; char *field, **objname; struct narray *draw, drawrable; aobj = obj; ainst = inst; afield = "draw"; addi = -1; _getobj(obj, "id", inst, &id); draw = &(Menulocal.drawrable); num = arraynum(draw); if (num == 0) { arrayinit(&drawrable, sizeof(char *)); menuadddrawrable(chkobject("draw"), &drawrable); draw = &drawrable; num = arraynum(draw); } objlist = (struct objlist **) g_malloc(sizeof(struct objlist *) * num); if (objlist == NULL) return; po = 0; for (i = 0; i < num; i++) { objname = (char **) arraynget(draw, i); objlist[i] = chkobject(*objname); if (objlist[i] == obj) po = i; } i = 1; j = 0; while ((obj2 = GRAgetlist(Menulocal.GC, &oid, &field, i)) != NULL) { for (; j < num; j++) { if (objlist[j] == obj2) break; } if (j == po) { inst2 = chkobjinstoid(obj2, oid); if (inst2 == NULL) { GRAdellist(Menulocal.GC, i); continue; } _getobj(obj2, "id", inst2, &id2); if (id2 > id) { addi = i; g_free(objlist); mx_inslist(Menulocal.obj, Menulocal.inst, aobj, ainst, afield, addi); if (draw != &(Menulocal.drawrable)) { arraydel2(draw); } return; } } else if (j > po) { addi = i; g_free(objlist); mx_inslist(Menulocal.obj, Menulocal.inst, aobj, ainst, afield, addi); if (draw != &(Menulocal.drawrable)) { arraydel2(draw); } return; } i++; } addi = i; g_free(objlist); mx_inslist(Menulocal.obj, Menulocal.inst, aobj, ainst, afield, addi); if (draw != &(Menulocal.drawrable)) arraydel2(draw); } static void DelList(struct objlist *obj, N_VALUE *inst, const struct Viewer *d) { int i, oid, oid2; struct objlist *obj2; char *field; _getobj(obj, "oid", inst, &oid); i = 0; while ((obj2 = GRAgetlist(Menulocal.GC, &oid2, &field, i)) != NULL) { if ((obj2 == obj) && (oid == oid2)) mx_dellist(Menulocal.obj, Menulocal.inst, i); i++; } } static void AddInvalidateRect(struct objlist *obj, N_VALUE *inst) { struct narray *abbox; int bboxnum, *bbox; double zoom; #if GTK_CHECK_VERSION(3, 0, 0) cairo_rectangle_int_t rect; #else GdkRectangle rect; #endif if (chkobjfield(obj, "bbox")) { return; } _exeobj(obj, "bbox", inst, 0, NULL); _getobj(obj, "bbox", inst, &abbox); bboxnum = arraynum(abbox); bbox = arraydata(abbox); if (bboxnum < 4) { return; } zoom = Menulocal.PaperZoom / 10000.0; rect.x = mxd2p(bbox[0] * zoom + Menulocal.LeftMargin) - 7; rect.y = mxd2p(bbox[1] * zoom + Menulocal.TopMargin) - 7; rect.width = mxd2p(bbox[2] * zoom + Menulocal.LeftMargin) - rect.x + 7; rect.height = mxd2p(bbox[3] * zoom + Menulocal.TopMargin) - rect.y + 7; #if GTK_CHECK_VERSION(3, 0, 0) if (region == NULL) { region = cairo_region_create_rectangle(&rect); } else { cairo_region_union_rectangle(region, &rect); } #else if (region == NULL) { region = gdk_region_new(); } gdk_region_union_with_rect(region, &rect); #endif } static void GetLargeFrame(int *minx, int *miny, int *maxx, int *maxy, const struct Viewer *d) { int i, num; struct FocusObj **focus; struct narray *abbox; int bboxnum, *bbox; N_VALUE *inst; struct savedstdio save; ignorestdio(&save); *minx = *miny = *maxx = *maxy = 0; num = arraynum(d->focusobj); focus = arraydata(d->focusobj); inst = chkobjinstoid(focus[0]->obj, focus[0]->oid); if (inst) { _exeobj(focus[0]->obj, "bbox", inst, 0, NULL); _getobj(focus[0]->obj, "bbox", inst, &abbox); bboxnum = arraynum(abbox); bbox = arraydata(abbox); if (bboxnum >= 4) { *minx = bbox[0]; *miny = bbox[1]; *maxx = bbox[2]; *maxy = bbox[3]; } } for (i = 1; i < num; i++) { inst = chkobjinstoid(focus[i]->obj, focus[i]->oid); if (inst == NULL) { continue; } _exeobj(focus[i]->obj, "bbox", inst, 0, NULL); _getobj(focus[i]->obj, "bbox", inst, &abbox); bboxnum = arraynum(abbox); bbox = arraydata(abbox); if (bboxnum < 4) { continue; } if (bbox[0] < *minx) { *minx = bbox[0]; } if (bbox[1] < *miny) { *miny = bbox[1]; } if (bbox[2] > *maxx) { *maxx = bbox[2]; } if (bbox[3] > *maxy) { *maxy = bbox[3]; } } restorestdio(&save); } static int coord_conv_x(int x, double zoom, const struct Viewer *d) { return mxd2p(x * zoom + Menulocal.LeftMargin) - d->hscroll + d->cx + CAIRO_COORDINATE_OFFSET; } static int coord_conv_y(int y, double zoom, const struct Viewer *d) { return mxd2p(y * zoom + Menulocal.TopMargin) - d->vscroll + d->cy + CAIRO_COORDINATE_OFFSET; } static void GetFocusFrame(int *minx, int *miny, int *maxx, int *maxy, int ofsx, int ofsy, const struct Viewer *d) { int x1, y1, x2, y2; double zoom; GetLargeFrame(&x1, &y1, &x2, &y2, d); zoom = Menulocal.PaperZoom / 10000.0; *minx = coord_conv_x((x1 + ofsx), zoom, d); *miny = coord_conv_y((y1 + ofsy), zoom, d); *maxx = coord_conv_x((x2 + ofsx), zoom, d); *maxy = coord_conv_y((y2 + ofsy), zoom, d); } static void ShowFocusFrame(cairo_t *cr, const struct Viewer *d) { int i, j, num; struct FocusObj **focus; struct narray *abbox; int bboxnum; int *bbox; int x1, y1, x2, y2; N_VALUE *inst; struct savedstdio save; double zoom; int minx, miny, height, width; ignorestdio(&save); cairo_set_source_rgb(cr, GRAY, GRAY, GRAY); if (Menulocal.focus_frame_type == N_LINE_TYPE_SOLID) { cairo_set_dash(cr, NULL, 0, 0); } else { double dash[] = {DOT_LENGTH}; cairo_set_dash(cr, dash, sizeof(dash) / sizeof(*dash), 0); } // cairo_set_operator(cr, CAIRO_OPERATOR_DIFFERENCE); num = arraynum(d->focusobj); focus = arraydata(d->focusobj); if (num > 0) { GetFocusFrame(&x1, &y1, &x2, &y2, d->FrameOfsX, d->FrameOfsY, d); x1 -= FOCUS_FRAME_OFST; y1 -= FOCUS_FRAME_OFST; x2 += FOCUS_FRAME_OFST - 1; y2 += FOCUS_FRAME_OFST - 1; minx = (x1 < x2) ? x1 : x2; miny = (y1 < y2) ? y1 : y2; width = abs(x2 - x1); height = abs(y2 - y1); cairo_rectangle(cr, minx, miny, width, height); cairo_stroke(cr); cairo_rectangle(cr, x1 - FOCUS_RECT_SIZE, y1 - FOCUS_RECT_SIZE, FOCUS_RECT_SIZE, FOCUS_RECT_SIZE); cairo_rectangle(cr, x1 - FOCUS_RECT_SIZE, y2, FOCUS_RECT_SIZE, FOCUS_RECT_SIZE); cairo_rectangle(cr, x2, y1 - FOCUS_RECT_SIZE, FOCUS_RECT_SIZE, FOCUS_RECT_SIZE); cairo_rectangle(cr, x2, y2, FOCUS_RECT_SIZE, FOCUS_RECT_SIZE); cairo_fill(cr); } zoom = Menulocal.PaperZoom / 10000.0; if (num > 1) { for (i = 0; i < num; i++) { inst = chkobjinstoid(focus[i]->obj, focus[i]->oid); if (inst == NULL) { continue; } _exeobj(focus[i]->obj, "bbox", inst, 0, NULL); _getobj(focus[i]->obj, "bbox", inst, &abbox); bboxnum = arraynum(abbox); bbox = arraydata(abbox); if (bboxnum < 4) { continue; } x1 = coord_conv_x((bbox[0] + d->FrameOfsX), zoom, d); y1 = coord_conv_y((bbox[1] + d->FrameOfsY), zoom, d); x2 = coord_conv_x((bbox[2] + d->FrameOfsX), zoom, d); y2 = coord_conv_y((bbox[3] + d->FrameOfsY), zoom, d); minx = (x1 < x2) ? x1 : x2; miny = (y1 < y2) ? y1 : y2; width = abs(x2 - x1); height = abs(y2 - y1); cairo_rectangle(cr, minx, miny, width, height); cairo_stroke(cr); } } else if (num == 1) { i = 0; inst = chkobjinstoid(focus[i]->obj, focus[i]->oid); if (inst) { _exeobj(focus[i]->obj, "bbox", inst, 0, NULL); _getobj(focus[i]->obj, "bbox", inst, &abbox); bboxnum = arraynum(abbox); bbox = arraydata(abbox); for (j = 4; j < bboxnum; j += 2) { x1 = coord_conv_x((bbox[j] + d->FrameOfsX), zoom, d); y1 = coord_conv_y((bbox[j + 1] + d->FrameOfsY), zoom, d); cairo_rectangle(cr, x1 - FOCUS_RECT_SIZE / 2 - CAIRO_COORDINATE_OFFSET, y1 - FOCUS_RECT_SIZE / 2 - CAIRO_COORDINATE_OFFSET, FOCUS_RECT_SIZE, FOCUS_RECT_SIZE); } cairo_fill(cr); } } restorestdio(&save); } static void AlignFocusedObj(int align) { int i, num, bboxnum, *bbox, minx, miny, maxx, maxy, dx, dy; struct FocusObj **focus; struct narray *abbox; char *argv[4]; N_VALUE *inst; struct Viewer *d; if (Menulock || Globallock) return; d = &NgraphApp.Viewer; num = arraynum(d->focusobj); if (num < 1) { return; } focus = arraydata(d->focusobj); if (num == 1) { maxx = Menulocal.PaperWidth; maxy = Menulocal.PaperHeight; minx = 0; miny = 0; } else { GetLargeFrame(&minx, &miny, &maxx, &maxy, d); } if (maxx < minx || maxy < miny) return; d->allclear = FALSE; PaintLock = TRUE; for (i = 0; i < num; i++) { inst = chkobjinstoid(focus[i]->obj, focus[i]->oid); if (inst == NULL) { continue; } _getobj(focus[i]->obj, "bbox", inst, &abbox); bboxnum = arraynum(abbox); bbox = arraydata(abbox); if (bboxnum < 4) { continue; } dx = dy = 0; switch (align) { case VIEW_ALIGN_LEFT: dx = minx - bbox[0]; break; case VIEW_ALIGN_VCENTER: dx = (maxx + minx - bbox[2] - bbox[0]) / 2; break; case VIEW_ALIGN_RIGHT: dx = maxx - bbox[2]; break; case VIEW_ALIGN_TOP: dy = miny - bbox[1]; break; case VIEW_ALIGN_HCENTER: dy = (maxy + miny - bbox[3] - bbox[1]) / 2; break; case VIEW_ALIGN_BOTTOM: dy = maxy - bbox[3]; break; } if (dx == 0 && dy == 0) continue; argv[0] = (char *) &dx; argv[1] = (char *) &dy; argv[2] = NULL; if (focus[i]->obj == chkobject("axis")) { d->allclear = TRUE; } AddInvalidateRect(focus[i]->obj, inst); _exeobj(focus[i]->obj, "move", inst, 2, argv); set_graph_modified(); AddInvalidateRect(focus[i]->obj, inst); } PaintLock = FALSE; UpdateAll(); } static void execute_selected_instances(struct FocusObj **focus, int num, int argc, char **argv, char *field) { N_VALUE *inst; int i; for (i = 0; i < num; i++) { inst = chkobjinstoid(focus[i]->obj, focus[i]->oid); if (inst == NULL) { continue; } if (chkobjfield(focus[i]->obj, field) == 0) { AddInvalidateRect(focus[i]->obj, inst); _exeobj(focus[i]->obj, field, inst, argc, argv); set_graph_modified(); AddInvalidateRect(focus[i]->obj, inst); } } } static void RotateFocusedObj(int direction) { int num, minx, miny, maxx, maxy, angle, type; int use_pivot, px, py; struct FocusObj **focus; char *argv[5]; struct Viewer *d; if (Menulock || Globallock) return; d = &NgraphApp.Viewer; num = check_focused_obj_type(d, &type); if (num < 1 || (type & FOCUS_OBJ_TYPE_MERGE)) { return; } angle = (direction == ROTATE_CLOCKWISE) ? 27000 : 9000; focus = arraydata(d->focusobj); PaintLock = TRUE; argv[0] = (char *) ∠ argv[1] = (char *) &use_pivot; argv[2] = (char *) &px; argv[3] = (char *) &py; argv[4] = NULL; if (num == 1) { use_pivot = 0; px = 0; py = 0; } else { GetLargeFrame(&minx, &miny, &maxx, &maxy, d); use_pivot = 1; px = (minx + maxx) / 2; py = (miny + maxy) / 2; } execute_selected_instances(focus, num, 4, argv, "rotate"); PaintLock = FALSE; UpdateAll(); } static void FlipFocusedObj(enum FLIP_DIRECTION dir) { int num, minx, miny, maxx, maxy, type; int use_pivot, p; struct FocusObj **focus; char *argv[4]; struct Viewer *d; if (Menulock || Globallock) return; d = &NgraphApp.Viewer; num = check_focused_obj_type(d, &type); if (num < 1 || (type & FOCUS_OBJ_TYPE_MERGE)) { return; } focus = arraydata(d->focusobj); PaintLock = TRUE; argv[0] = (char *) &dir; argv[1] = (char *) &use_pivot; argv[2] = (char *) &p; argv[3] = NULL; if (num == 1) { use_pivot = 0; p = 0; } else { GetLargeFrame(&minx, &miny, &maxx, &maxy, d); use_pivot = 1; p = (dir == FLIP_DIRECTION_HORIZONTAL) ? (minx + maxx) / 2 : (miny + maxy) / 2; } execute_selected_instances(focus, num, 3, argv, "flip"); PaintLock = FALSE; UpdateAll(); } static int check_angle(int a) { if (a < 0) { a %= 36000; if (a < 0) { a += 36000; } } else if (a > 36000) { a %= 36000; } return a; } static void draw_cairo_arc(cairo_t *cr, int x, int y, int rx, int ry, int a1, int a2) { double da1, da2; if (rx < 1 || ry < 1) { return; } cairo_save(cr); cairo_translate(cr, x, y); cairo_scale(cr, rx, ry); da1 = check_angle(a1) * (M_PI / 18000.0); da2 = check_angle(a1 + a2) * (M_PI / 18000.0); cairo_arc_negative(cr, 0.0, 0.0, 1.0, -da1, -da2); cairo_restore(cr); } static void show_focus_line_arc(cairo_t *cr, int change, double zoom, struct objlist *obj, N_VALUE *inst, struct Viewer *d) { int x, y, rx, ry, pie_slice, fill, a1, a2, close_path; _getobj(obj, "x", inst, &x); _getobj(obj, "y", inst, &y); _getobj(obj, "rx", inst, &rx); _getobj(obj, "ry", inst, &ry); _getobj(obj, "angle1", inst, &a1); _getobj(obj, "angle2", inst, &a2); _getobj(obj, "close_path", inst, &close_path); _getobj(obj, "fill", inst, &fill); _getobj(obj, "pieslice", inst, &pie_slice); close_path = (close_path || fill); switch (change) { case ARC_POINT_TYPE_R: ry -= d->LineY; rx -= d->LineX; break; case ARC_POINT_TYPE_ANGLE1: case ARC_POINT_TYPE_ANGLE2: if (arc_get_angle(obj, inst, d->KeyMask, change, d->MouseX2, d->MouseY2, &a1, &a2)) { return; } d->Angle = (change == ARC_POINT_TYPE_ANGLE1) ? a1 : (a1 + a2) % 36000; break; } if (rx > 0 && ry > 0) { rx = mxd2p(rx * zoom); ry = mxd2p(ry * zoom); x = coord_conv_x(x, zoom, d); y = coord_conv_y(y, zoom, d); draw_cairo_arc(cr, x, y, rx, ry, a1, a2); if (close_path) { if (pie_slice) { cairo_line_to(cr, x, y); } cairo_close_path(cr); } cairo_stroke(cr); } } static void draw_frame_rect(cairo_t *gc, int change, double zoom, int *bbox, const struct Viewer *d) { int x1 = 0, y1 = 0, x2 = 0, y2 = 0; int minx, miny, height, width; switch (change) { case 0: x1 = coord_conv_x(bbox[4] + d->LineX, zoom, d); y1 = coord_conv_y(bbox[5] + d->LineY, zoom, d); x2 = coord_conv_x(bbox[8], zoom, d); y2 = coord_conv_y(bbox[9], zoom, d); break; case 1: x1 = coord_conv_x(bbox[4], zoom, d); y1 = coord_conv_y(bbox[5] + d->LineY, zoom, d); x2 = coord_conv_x(bbox[8] + d->LineX, zoom, d); y2 = coord_conv_y(bbox[9], zoom, d); break; case 2: x1 = coord_conv_x(bbox[4], zoom, d); y1 = coord_conv_y(bbox[5], zoom, d); x2 = coord_conv_x(bbox[8] + d->LineX, zoom, d); y2 = coord_conv_y(bbox[9] + d->LineY, zoom, d); break; case 3: x1 = coord_conv_x(bbox[4] + d->LineX, zoom, d); y1 = coord_conv_y(bbox[5], zoom, d); x2 = coord_conv_x(bbox[8], zoom, d); y2 = coord_conv_y(bbox[9] + d->LineY, zoom, d); break; } minx = (x1 < x2) ? x1 : x2; miny = (y1 < y2) ? y1 : y2; width = abs(x2 - x1); height = abs(y2 - y1); cairo_rectangle(gc, minx, miny, width, height); cairo_stroke(gc); } static void draw_focus_line(cairo_t *gc, int change, double zoom, int bboxnum, int *bbox, int close_path, const struct Viewer *d) { int j, ofsx, ofsy, x1, y1; for (j = 4; j < bboxnum; j += 2) { if (change == (j - 4) / 2) { ofsx = d->LineX; ofsy = d->LineY; } else { ofsx = 0; ofsy = 0; } x1 = coord_conv_x(bbox[j] + ofsx, zoom, d); y1 = coord_conv_y(bbox[j + 1] + ofsy, zoom, d); if (j == 4) { cairo_move_to(gc, x1, y1); } else { cairo_line_to(gc, x1, y1); } } if (close_path) { cairo_close_path(gc); } cairo_stroke(gc); } static void ShowFocusLine(cairo_t *cr, struct Viewer *d) { int num; struct FocusObj **focus; struct narray *abbox; int bboxnum; int *bbox; N_VALUE *inst; struct savedstdio save; double zoom; char *group; double dash[] = {DOT_LENGTH}; ignorestdio(&save); cairo_set_source_rgb(cr, GRAY, GRAY, GRAY); cairo_set_dash(cr, dash, sizeof(dash) / sizeof(*dash), 0); // cairo_set_operator(cr, CAIRO_OPERATOR_DIFFERENCE); num = arraynum(d->focusobj); focus = arraydata(d->focusobj); zoom = Menulocal.PaperZoom / 10000.0; if (num != 1) { goto End; } inst = chkobjinstoid(focus[0]->obj, focus[0]->oid); if (inst == NULL) { goto End; } _exeobj(focus[0]->obj, "bbox", inst, 0, NULL); _getobj(focus[0]->obj, "bbox", inst, &abbox); bboxnum = arraynum(abbox); bbox = arraydata(abbox); if (focus[0]->obj == chkobject("rectangle")) { draw_frame_rect(cr, d->ChangePoint, zoom, bbox, d); } else if (focus[0]->obj == chkobject("arc")) { show_focus_line_arc(cr, d->ChangePoint, zoom, focus[0]->obj, inst, d); } else if (focus[0]->obj == chkobject("path")) { int close_path, fill; _getobj(focus[0]->obj, "close_path", inst, &close_path); _getobj(focus[0]->obj, "fill", inst, &fill); close_path = (close_path || fill); draw_focus_line(cr, d->ChangePoint, zoom, bboxnum, bbox, close_path, d); } else if (focus[0]->obj == chkobject("axis")) { _getobj(focus[0]->obj, "group", inst, &group); if (group && group[0] != 'a') { draw_frame_rect(cr, d->ChangePoint, zoom, bbox, d); } else { draw_focus_line(cr, d->ChangePoint, zoom, bboxnum, bbox, FALSE, d); } } End: // cairo_set_operator(cr, CAIRO_OPERATOR_OVER); restorestdio(&save); } static void ShowPoints(cairo_t *cr, const struct Viewer *d) { int i, num, x1, y1, x2, y2; struct Point **po; double zoom; int minx, miny, height, width; double dash[] = {DOT_LENGTH}; cairo_set_source_rgb(cr, GRAY, GRAY, GRAY); // cairo_set_operator(cr, CAIRO_OPERATOR_DIFFERENCE); num = arraynum(d->points); po = arraydata(d->points); zoom = Menulocal.PaperZoom / 10000.0; if (d->Mode & POINT_TYPE_DRAW1) { if (num >= 2) { cairo_set_dash(cr, dash, sizeof(dash) / sizeof(*dash), 0); x1 = coord_conv_x(po[0]->x, zoom, d); y1 = coord_conv_y(po[0]->y, zoom, d); x2 = coord_conv_x(po[1]->x, zoom, d); y2 = coord_conv_y(po[1]->y, zoom, d); minx = (x1 < x2) ? x1 : x2; miny = (y1 < y2) ? y1 : y2; width = abs(x2 - x1); height = abs(y2 - y1); if (d->Mode == ArcB) { draw_cairo_arc(cr, minx + width / 2, miny + height / 2, width / 2, height / 2, 0, 36000); } else { cairo_rectangle(cr, minx, miny, width, height); } cairo_stroke(cr); } } else { cairo_set_dash(cr, NULL, 0, 0); for (i = 0; i < num; i++) { x1 = coord_conv_x(po[i]->x, zoom, d); y1 = coord_conv_y(po[i]->y, zoom, d); cairo_move_to(cr, x1 - (POINT_LENGTH - 1), y1); cairo_line_to(cr, x1 + POINT_LENGTH, y1); cairo_move_to(cr, x1, y1 - (POINT_LENGTH - 1)); cairo_line_to(cr, x1, y1 + POINT_LENGTH); } cairo_stroke(cr); if (num >= 1) { cairo_set_dash(cr, dash, sizeof(dash) / sizeof(*dash), 0); x1 = coord_conv_x(po[0]->x, zoom, d); y1 = coord_conv_y(po[0]->y, zoom, d); cairo_move_to(cr, x1, y1); for (i = 1; i < num; i++) { x1 = coord_conv_x(po[i]->x, zoom, d); y1 = coord_conv_y(po[i]->y, zoom, d); cairo_line_to(cr, x1, y1); } cairo_stroke(cr); } } // cairo_set_operator(cr, CAIRO_OPERATOR_OVER); } static void ShowFrameRect(cairo_t *cr, const struct Viewer *d) { int x1, y1, x2, y2; double zoom; int minx, miny, width, height; double dash[] = {DOT_LENGTH}; if (d->MouseX1 == d->MouseX2 && d->MouseY1 == d->MouseY2) { return; } zoom = Menulocal.PaperZoom / 10000.0; cairo_set_source_rgb(cr, GRAY, GRAY, GRAY); cairo_set_dash(cr, dash, sizeof(dash) / sizeof(*dash), 0); // cairo_set_operator(cr, CAIRO_OPERATOR_DIFFERENCE); x1 = coord_conv_x(d->MouseX1, zoom, d); y1 = coord_conv_y(d->MouseY1, zoom, d); x2 = coord_conv_x(d->MouseX2, zoom, d); y2 = coord_conv_y(d->MouseY2, zoom, d); minx = (x1 < x2) ? x1 : x2; miny = (y1 < y2) ? y1 : y2; width = abs(x2 - x1); height = abs(y2 - y1); cairo_rectangle(cr, minx, miny, width, height); cairo_stroke(cr); // cairo_set_operator(cr, CAIRO_OPERATOR_OVER); } static void ShowCrossGauge(cairo_t *cr, const struct Viewer *d) { int x, y, width, height; double zoom; GdkWindow *win; cairo_set_source_rgb(cr, GRAY, GRAY, GRAY); cairo_set_dash(cr, NULL, 0, 0); // cairo_set_operator(cr, CAIRO_OPERATOR_DIFFERENCE); win = gtk_widget_get_window(d->Win); if (win == NULL) { return; } #if GTK_CHECK_VERSION(2, 24, 0) width = gdk_window_get_width(win); height = gdk_window_get_height(win); #else gdk_drawable_get_size(win, &width, &height); #endif zoom = Menulocal.PaperZoom / 10000.0; x = coord_conv_x(d->CrossX, zoom, d); y = coord_conv_y(d->CrossY, zoom, d); cairo_move_to(cr, x, 0); cairo_line_to(cr, x, height); cairo_move_to(cr, 0, y); cairo_line_to(cr, width, y); cairo_stroke(cr); // cairo_set_operator(cr, CAIRO_OPERATOR_OVER); } static void CheckGrid(int ofs, unsigned int state, int *x, int *y, double *zoom) { int offset; int grid; if ((state & GDK_CONTROL_MASK) && ! ofs && x != NULL && y != NULL) { if (abs(*x) > abs(*y)) { *y = 0; } else { *x = 0; } } grid = Menulocal.grid; if (state & GDK_SHIFT_MASK) { return; } if (ofs) { offset = grid / 2; } else { offset = 0; } if (x != NULL) { *x = ((*x + offset) / grid) * grid; } if (y != NULL) { *y = ((*y + offset) / grid) * grid; } if (zoom != NULL) { *zoom = nround(*zoom * grid) / ((double) grid); } } static void mouse_down_point(unsigned int state, TPoint *point, struct Viewer *d) { d->Capture = TRUE; if (arraynum(d->focusobj) && ! (state & GDK_SHIFT_MASK)) { d->ShowFrame = FALSE; clear_focus_obj(d); } d->MouseMode = MOUSEPOINT; d->ShowRect = TRUE; } static double calc_zoom(struct Viewer *d, int vx1, int vy1, int *x2, int *y2) { int vx2, vy2; double cc, nn, zoom2; vx1 -= d->RefX1 - d->MouseDX; vy1 -= d->RefY1 - d->MouseDY; vx2 = (d->RefX2 - d->RefX1); vy2 = (d->RefY2 - d->RefY1); cc = 1.0 * vx1 * vx2 + 1.0 * vy1 * vy2; nn = 1.0 * vx2 * vx2 + 1.0 * vy2 * vy2; if ((nn == 0) || (cc < 0)) { zoom2 = 0; } else { zoom2 = cc / nn; } if (x2) { *x2 = vx2; } if (y2) { *y2 = vy2; } return zoom2; } static void set_zoom_prm(struct Viewer *d, int vx2, int vy2, double zoom2) { int vx1, vy1; vx1 = d->RefX1 + vx2 * zoom2; vy1 = d->RefY1 + vy2 * zoom2; d->MouseX1 = d->RefX1; d->MouseY1 = d->RefY1; d->MouseX2 = vx1; d->MouseY2 = vy1; } static void init_zoom(unsigned int state, struct Viewer *d) { int vx1, vy1, vx2, vy2; double zoom2; d->ShowFrame = FALSE; d->MouseDX = d->RefX2 - d->MouseX1; d->MouseDY = d->RefY2 - d->MouseY1; vx1 = d->MouseX1; vy1 = d->MouseY1; zoom2 = calc_zoom(d, vx1, vy1, &vx2, &vy2); CheckGrid(FALSE, state, NULL, NULL, &zoom2); set_zoom_prm(d, vx2, vy2, zoom2); d->ShowRect = TRUE; } static void mouse_down_move(unsigned int state, TPoint *point, struct Viewer *d) { int cursor; cursor = get_mouse_cursor_type(d, point->x, point->y); if (cursor == GDK_LEFT_PTR) { NSetCursor(cursor); return; } d->Capture = TRUE; switch (cursor) { case GDK_TOP_LEFT_CORNER: GetLargeFrame(&(d->RefX2), &(d->RefY2), &(d->RefX1), &(d->RefY1), d); d->MouseMode = MOUSEZOOM1; NSetCursor(cursor); init_zoom(state, d); break; case GDK_TOP_RIGHT_CORNER: GetLargeFrame(&(d->RefX1), &(d->RefY2), &(d->RefX2), &(d->RefY1), d); d->MouseMode = MOUSEZOOM2; NSetCursor(cursor); init_zoom(state, d); break; case GDK_BOTTOM_RIGHT_CORNER: GetLargeFrame(&(d->RefX1), &(d->RefY1), &(d->RefX2), &(d->RefY2), d); d->MouseMode = MOUSEZOOM3; NSetCursor(cursor); init_zoom(state, d); break; case GDK_BOTTOM_LEFT_CORNER: GetLargeFrame(&(d->RefX2), &(d->RefY1), &(d->RefX1), &(d->RefY2), d); d->MouseMode = MOUSEZOOM4; NSetCursor(cursor); init_zoom(state, d); break; case GDK_CROSSHAIR: d->MouseMode = MOUSECHANGE; d->Angle = -1; d->ShowFrame = FALSE; d->ShowLine = TRUE; d->LineX = d->LineY = 0; NSetCursor(cursor); break; case GDK_FLEUR: d->MouseMode = MOUSEDRAG; break; } } static void mouse_down_move_data(struct Viewer *d) { struct objlist *fileobj, *aobjx, *aobjy; struct narray iarray, *move, *movex, *movey; int selnum, sel, i, ax, ay, anum, iline, j, movenum; double dx, dy; char *axis, *argv[3]; int *ptr; fileobj = chkobject("file"); if (fileobj == NULL) goto ErrEnd; selnum = arraynum(&SelList); for (i = 0; i < selnum; i++) { sel = arraynget_int(&SelList, i); if (getobj(fileobj, "axis_x", EvalList[sel].id, 0, NULL, &axis) == -1) goto ErrEnd; arrayinit(&iarray, sizeof(int)); if (getobjilist(axis, &aobjx, &iarray, FALSE, NULL)) { ax = -1; } else { anum = arraynum(&iarray); ax = (anum < 1) ? -1 : (arraylast_int(&iarray)); arraydel(&iarray); } if (getobj(fileobj, "axis_y", EvalList[sel].id, 0, NULL, &axis) == -1) goto ErrEnd; arrayinit(&iarray, sizeof(int)); if (getobjilist(axis, &aobjy, &iarray, FALSE, NULL)) { ay = -1; } else { anum = arraynum(&iarray); ay = (anum < 1) ? -1 : (arraylast_int(&iarray)); arraydel(&iarray); } if (ax == -1 || ax == -1) goto ErrEnd; argv[0] = (char *) &(d->MouseX1); argv[1] = (char *) &(d->MouseY1); argv[2] = NULL; if (getobj(aobjx, "coordinate", ax, 2, argv, &dx) == -1 || getobj(aobjy, "coordinate", ay, 2, argv, &dy) == -1) goto ErrEnd; if (exeobj(fileobj, "move_data_adjust", EvalList[sel].id, 0, NULL) == -1) goto ErrEnd; if (getobj(fileobj, "move_data", EvalList[sel].id, 0, NULL, &move) == -1) goto ErrEnd; if (getobj(fileobj, "move_data_x", EvalList[sel].id, 0, NULL, &movex) == -1) goto ErrEnd; if (getobj(fileobj, "move_data_y", EvalList[sel].id, 0, NULL, &movey) == - 1) goto ErrEnd; if (move == NULL) { move = arraynew(sizeof(int)); putobj(fileobj, "move_data", EvalList[sel].id, move); } if (movex == NULL) { movex = arraynew(sizeof(double)); putobj(fileobj, "move_data_x", EvalList[sel].id, movex); } if (movey == NULL) { movey = arraynew(sizeof(double)); putobj(fileobj, "move_data_y", EvalList[sel].id, movey); } movenum = arraynum(move); for (j = 0; j < movenum; j++) { ptr = (int *) arraynget(move, j); if (ptr) { iline = * ptr; if (iline == EvalList[sel].line) break; } } if (j == movenum) { arrayadd(move, &(EvalList[sel].line)); arrayadd(movex, &dx); arrayadd(movey, &dy); set_graph_modified(); } else { arrayput(move, &(EvalList[sel].line), j); arrayput(movex, &dx, j); arrayput(movey, &dy, j); set_graph_modified(); } } if (selnum > 0) message_box(NULL, _("Data points are moved."), "Confirm", RESPONS_OK); ErrEnd: move_data_cancel(d, FALSE); } #define VIEWER_DPI_MAX 620 #define VIEWER_DPI_MIN 20 #define ANIM_DIV 1 static void show_zoom_animation(struct Viewer *d, TPoint *point, double zoom) { cairo_pattern_t *pattern; cairo_matrix_t matrix; cairo_t *cr; int i; double inc, z; GdkWindow *win; win = gtk_widget_get_window(d->Win); if (win == NULL) { return; } cr = gdk_cairo_create(win); inc = (zoom - 1) / ANIM_DIV; pattern = cairo_pattern_create_for_surface(Menulocal.pix); cairo_set_source(cr, pattern); for (i = 1; i <= ANIM_DIV; i++) { z = 1 + inc * i; cairo_matrix_init(&matrix, z, 0, 0, z, (point->x + d->hscroll - d->cx) - point->x * z, (point->y + d->vscroll - d->cy) - point->y * z); cairo_pattern_set_matrix(pattern, &matrix); #if GTK_CHECK_VERSION(3, 0, 0) cairo_paint(cr); #else cairo_fill(cr); #endif } cairo_pattern_destroy(pattern); cairo_destroy(cr); } #ifdef SHOW_MOVE_ANIMATION static void show_move_animation(struct Viewer *d, int x, int y) { cairo_pattern_t *pattern; cairo_matrix_t matrix; cairo_t *cr; int i, n; double incx, incy; GdkWindow *win; win = gtk_widget_get_window(d->Win); if (win == NULL) { return; } if (abs(x) < 1 && abs(y) < 1) { return; } cr = gdk_cairo_create(win); n = abs(x) / 4; if (abs(y) / 4 > n) { n = abs(y) / 4; } if (n > ANIM_DIV) { n = ANIM_DIV; } incx = 1.0 * x / n; incy = 1.0 * y / n; pattern = cairo_pattern_create_for_surface(Menulocal.pix); cairo_set_source(cr, pattern); for (i = 1; i <= n; i++) { cairo_matrix_init(&matrix, 1, 0, 0, 1, (d->hscroll - d->cx) + incx * i, (d->vscroll - d->cy) + incy * i); cairo_pattern_set_matrix(pattern, &matrix); #if GTK_CHECK_VERSION(3, 0, 0) cairo_paint(cr); #else cairo_fill(cr); #endif } cairo_pattern_destroy(pattern); cairo_destroy(cr); } #endif /* SHOW_MOVE_ANIMATION */ static void mouse_down_zoom2(unsigned int state, TPoint *point, struct Viewer *d, int zoom_out, double factor) { static double saved_dpi_d = -1; static double saved_dpi_i = -1; double dpi, ratio; int vdpi; if (ZoomLock) { return; } ZoomLock = TRUE; if (state & GDK_SHIFT_MASK) { #ifdef SHOW_MOVE_ANIMATION show_move_animation(d, point->x - d->cx , point->y - d->cy); #endif /* SHOW_MOVE_ANIMATION */ d->hscroll -= (d->cx - point->x); d->vscroll -= (d->cy - point->y); ChangeDPI(); goto End; } if (getobj(Menulocal.obj, "dpi", 0, 0, NULL, &vdpi) == -1) { goto End; } if (saved_dpi_i < 0 || saved_dpi_i != vdpi) { saved_dpi_i = vdpi; saved_dpi_d = vdpi; } dpi = (zoom_out) ? saved_dpi_d / factor : saved_dpi_d * factor; if (dpi < VIEWER_DPI_MIN) { saved_dpi_i = VIEWER_DPI_MIN; message_beep(TopLevel); } else if (dpi > VIEWER_DPI_MAX) { saved_dpi_i = VIEWER_DPI_MAX; message_beep(TopLevel); } else { saved_dpi_d = dpi; saved_dpi_i = nround(dpi); } ratio = vdpi / saved_dpi_i; if (vdpi != nround(saved_dpi_i)) { show_zoom_animation(d, point, ratio); } vdpi = saved_dpi_i; if (putobj(Menulocal.obj, "dpi", 0, &vdpi) != -1) { d->hscroll -= (d->cx - point->x) * (1 - ratio); d->vscroll -= (d->cy - point->y) * (1 - ratio); ChangeDPI(); } End: ZoomLock = FALSE; } static void mouse_down_zoom(unsigned int state, TPoint *point, struct Viewer *d, int zoom_out) { mouse_down_zoom2(state, point, d, zoom_out, ZOOM_SPEED_NORMAL); } static void mouse_down_zoom_little(unsigned int state, TPoint *point, struct Viewer *d, int zoom_out) { mouse_down_zoom2(state, point, d, zoom_out, ZOOM_SPEED_LITTLE); } static void mouse_down_set_points(unsigned int state, struct Viewer *d, int n) { int x1, y1, i; struct Point *po; if (d->Capture) return; x1 = d->MouseX1; y1 = d->MouseY1; CheckGrid(TRUE, state, &x1, &y1, NULL); for (i = 0; i < n; i++) { po = (struct Point *) g_malloc(sizeof(struct Point)); if (po) { po->x = x1; po->y = y1; arrayadd(d->points, &po); } } d->Capture = TRUE; } static gboolean ViewerEvLButtonDown(unsigned int state, TPoint *point, struct Viewer *d) { double zoom; int pos; if (Menulock || Globallock) return FALSE; if (region) { return FALSE; } zoom = Menulocal.PaperZoom / 10000.0; d->MouseX1 = d->MouseX2 = calc_mouse_x(point->x, zoom, d); d->MouseY1 = d->MouseY2 = calc_mouse_y(point->y, zoom, d); d->MouseMode = MOUSENONE; if (d->MoveData) { mouse_down_move_data(d); return TRUE; } switch (d->Mode) { case PointB: case LegendB: case AxisB: pos = NGetCursor(); if (pos == GDK_LEFT_PTR) { if (state & GDK_CONTROL_MASK) { NSetCursor(GDK_FLEUR); d->MouseMode = MOUSESCROLLE; return TRUE; } else { mouse_down_point(state, point, d); } } else { mouse_down_move(state, point, d); } break; case TrimB: case DataB: case EvalB: if (state & GDK_CONTROL_MASK) { NSetCursor(GDK_FLEUR); d->MouseMode = MOUSESCROLLE; return TRUE; } else { d->Capture = TRUE; d->MouseMode = MOUSEPOINT; d->ShowRect = TRUE; } break; case MarkB: case TextB: mouse_down_set_points(state, d, 1); break; case ZoomB: mouse_down_zoom(state, point, d, state & GDK_CONTROL_MASK); break; default: mouse_down_set_points(state, d, 2); break; } gtk_widget_queue_draw(d->Win); return TRUE; } static void mouse_up_point(unsigned int state, TPoint *point, double zoom, struct Viewer *d) { int x1, x2, y1, y2, err; d->Capture = FALSE; d->ShowRect = FALSE; d->MouseX2 = calc_mouse_x(point->x, zoom, d); d->MouseY2 = calc_mouse_y(point->y, zoom, d); x1 = d->MouseX1; y1 = d->MouseY1; x2 = d->MouseX2; y2 = d->MouseY2; err = mxp2d(POINT_ERROR) / zoom; switch (d->Mode) { case PointB: case AxisB: Match("axis", x1, y1, x2, y2, err, d); /* fall-through */ case LegendB: if (d->Mode != AxisB) { Match("legend", x1, y1, x2, y2, err, d); Match("merge", x1, y1, x2, y2, err, d); } d->FrameOfsX = d->FrameOfsY = 0; d->ShowFrame = TRUE; break; case TrimB: Trimming(x1, y1, x2, y2, d); break; case DataB: if (ViewerWinFileUpdate(x1, y1, x2, y2, err)) { UpdateAll(); } break; case EvalB: Evaluate(x1, y1, x2, y2, err, d); break; default: /* never reached */ break; } } static void mouse_up_drag(unsigned int state, TPoint *point, double zoom, struct Viewer *d) { int i, dx, dy, num, axis; char *argv[5]; N_VALUE *inst; struct FocusObj *focus; struct objlist *obj; axis = FALSE; if (d->MouseX1 == d->MouseX2 && d->MouseY1 == d->MouseY2) { return; } d->ShowFrame = FALSE; d->MouseX2 = calc_mouse_x(point->x, zoom, d); d->MouseY2 = calc_mouse_y(point->y, zoom, d); dx = d->MouseX2 - d->MouseX1; dy = d->MouseY2 - d->MouseY1; CheckGrid(FALSE, state, &dx, &dy, NULL); num = arraynum(d->focusobj); PaintLock = TRUE; if (dx != 0 || dy != 0) { argv[0] = (char *) &dx; argv[1] = (char *) &dy; argv[2] = NULL; for (i = num - 1; i >= 0; i--) { focus = *(struct FocusObj **) arraynget(d->focusobj, i); obj = focus->obj; if (obj == chkobject("axis")) axis = TRUE; inst = chkobjinstoid(focus->obj, focus->oid); if (inst) { AddInvalidateRect(obj, inst); _exeobj(obj, "move", inst, 2, argv); set_graph_modified(); AddInvalidateRect(obj, inst); } } } PaintLock = FALSE; d->FrameOfsX = d->FrameOfsY = 0; d->ShowFrame = TRUE; if (d->Mode == LegendB || (d->Mode == PointB && !axis)) { d->allclear=FALSE; } UpdateAll(); } static void mouse_up_zoom(unsigned int state, TPoint *point, double zoom, struct Viewer *d) { int vx1, vy1, zm, i, num, axis; double zoom2; char *argv[5]; N_VALUE *inst; struct FocusObj *focus; struct objlist *obj; axis = FALSE; d->ShowRect = FALSE; vx1 = calc_mouse_x(point->x, zoom, d); vy1 = calc_mouse_y(point->y, zoom, d); d->MouseX2 = vx1; d->MouseY2 = vy1; zoom2 = calc_zoom(d, vx1, vy1, NULL, NULL); if ((d->Mode != DataB) && (d->Mode != EvalB)) { CheckGrid(FALSE, state, NULL, NULL, &zoom2); } if (zoom2 * 10000 > G_MAXINT) { return; } zm = nround(zoom2 * 10000); if (zm < 1000) { zm = 1000; } if (zm != 10000) { argv[0] = (char *) &zm; argv[1] = (char *) &(d->RefX1); argv[2] = (char *) &(d->RefY1); argv[3] = (char *) &Menulocal.preserve_width; argv[4] = NULL; num = arraynum(d->focusobj); PaintLock = TRUE; for (i = num - 1; i >= 0; i--) { focus = *(struct FocusObj **) arraynget(d->focusobj, i); obj = focus->obj; if (obj == chkobject("axis")) { axis = TRUE; } inst = chkobjinstoid(focus->obj, focus->oid); if (inst) { AddInvalidateRect(obj, inst); _exeobj(obj, "zooming", inst, 4, argv); set_graph_modified(); AddInvalidateRect(obj, inst); } } } PaintLock = FALSE; d->FrameOfsX = d->FrameOfsY = 0; d->ShowFrame = TRUE; if (d->Mode == LegendB || (d->Mode == PointB && !axis)) { d->allclear = FALSE; } UpdateAll(); } static void mouse_up_change(unsigned int state, TPoint *point, double zoom, struct Viewer *d) { int dx, dy, axis; char *argv[5]; N_VALUE *inst; struct FocusObj *focus; struct objlist *obj; axis = FALSE; d->ShowLine = FALSE; if ((d->MouseX1 != d->MouseX2) || (d->MouseY1 != d->MouseY2)) { d->MouseX2 = calc_mouse_x(point->x, zoom, d); d->MouseY2 = calc_mouse_y(point->y, zoom, d); dx = d->MouseX2 - d->MouseX1; dy = d->MouseY2 - d->MouseY1; if ((d->Mode != DataB) && (d->Mode != EvalB)) { CheckGrid(FALSE, state, &dx, &dy, NULL); } if (dx != 0 || dy != 0) { argv[0] = (char *) &(d->ChangePoint); argv[1] = (char *) &dx; argv[2] = (char *) &dy; argv[3] = NULL; PaintLock = TRUE; focus = *(struct FocusObj **) arraynget(d->focusobj, 0); obj = focus->obj; inst = chkobjinstoid(focus->obj, focus->oid); if (obj == chkobject("arc") && (d->ChangePoint == ARC_POINT_TYPE_ANGLE1 || d->ChangePoint == ARC_POINT_TYPE_ANGLE2)) { if (arc_get_angle(obj, inst, state, d->ChangePoint, d->MouseX2, d->MouseY2, &dx, &dy)) inst = NULL; } else if (obj == chkobject("axis")) { axis = TRUE; } if (inst) { AddInvalidateRect(obj, inst); _exeobj(obj, "change", inst, 3, argv); set_graph_modified(); AddInvalidateRect(obj, inst); } PaintLock = FALSE; } d->FrameOfsX = d->FrameOfsY = 0; d->ShowFrame = TRUE; if (d->Mode == LegendB || (d->Mode == PointB && !axis)) d->allclear = FALSE; UpdateAll(); } else { d->FrameOfsX = d->FrameOfsY = 0; d->ShowFrame = TRUE; } } static void mouse_up_lgend1(unsigned int state, TPoint *point, double zoom, struct Viewer *d) { int x1, y1, num; struct Point *po; d->Capture = FALSE; d->MouseX1 = calc_mouse_x(point->x, zoom, d); d->MouseY1 = calc_mouse_y(point->y, zoom, d); x1 = d->MouseX1; y1 = d->MouseY1; CheckGrid(TRUE, state, &x1, &y1, NULL); num = arraynum(d->points); if (num >= 1) { po = *(struct Point **) arraynget(d->points, 0); po->x = x1; po->y = y1; } if (arraynum(d->points) == 1) { ViewerEvLButtonDblClk(state, point, d); } } static void mouse_up_lgend2(unsigned int state, TPoint *point, double zoom, struct Viewer *d) { int num, x1, y1; struct Point *po; d->MouseX1 = calc_mouse_x(point->x, zoom, d); d->MouseY1 = calc_mouse_y(point->y, zoom, d); x1 = d->MouseX1; y1 = d->MouseY1; CheckGrid(TRUE, state, &x1, &y1, NULL); num = arraynum(d->points); if (num >= 2) { po = *(struct Point **) arraynget(d->points, num - 2); } if ((num < 2) || (po->x != x1) || (po->y != y1)) { po = (struct Point *) g_malloc(sizeof(struct Point)); if (po) { po->x = x1; po->y = y1; arrayadd(d->points, &po); } } if ((d->Mode & POINT_TYPE_DRAW1) || d->Mode == SingleB) { if (arraynum(d->points) == 3) { d->Capture = FALSE; ViewerEvLButtonDblClk(state, point, d); } } } static void set_drag_info(struct Viewer *d) { char buf[32]; snprintf(buf, sizeof(buf), "(% .2f, % .2f)", d->FrameOfsX / 100.0, d->FrameOfsY / 100.0); gtk_label_set_text(GTK_LABEL(NgraphApp.Message_extra), buf); } #define CLEAR_DRAG_INFO 0 #if CLEAR_DRAG_INFO static void reset_drag_info(struct Viewer *d) { gtk_label_set_text(GTK_LABEL(NgraphApp.Message_extra), NULL); } #endif static void SetPoint(struct Viewer *d, int x, int y) { char buf[128]; struct Point *po; unsigned int num; // x += Menulocal.LeftMargin; // y += Menulocal.TopMargin; if (NgraphApp.Message && GTK_WIDGET_VISIBLE(NgraphApp.Message)) { snprintf(buf, sizeof(buf), "% 6.2f, % 6.2f", x / 100.0, y / 100.0); gtk_label_set_text(GTK_LABEL(NgraphApp.Message_pos), buf); switch (d->MouseMode) { case MOUSECHANGE: if (d->Angle >= 0) { snprintf(buf, sizeof(buf), "%6.2f°", d->Angle / 100.0); gtk_label_set_text(GTK_LABEL(NgraphApp.Message_extra), buf); } else { snprintf(buf, sizeof(buf), "(% .2f, % .2f)", d->LineX / 100.0, d->LineY / 100.0); gtk_label_set_text(GTK_LABEL(NgraphApp.Message_extra), buf); } break; case MOUSEZOOM1: case MOUSEZOOM2: case MOUSEZOOM3: case MOUSEZOOM4: snprintf(buf, sizeof(buf), "% .2f%%", d->Zoom * 100); gtk_label_set_text(GTK_LABEL(NgraphApp.Message_extra), buf); break; case MOUSEDRAG: set_drag_info(d); break; default: num = arraynum(d->points); po = (num > 1) ? (* (struct Point **) arraynget(d->points, num - 2)) : NULL; if (d->Capture && po) { snprintf(buf, sizeof(buf), "(% .2f, % .2f)", (x - po->x) / 100.0, (y - po->y) / 100.0); gtk_label_set_text(GTK_LABEL(NgraphApp.Message_extra), buf); } else { gtk_label_set_text(GTK_LABEL(NgraphApp.Message_extra), NULL); } } } nruler_set_position(NgraphApp.Viewer.HRuler, N2GTK_RULER_METRIC(x)); nruler_set_position(NgraphApp.Viewer.VRuler, N2GTK_RULER_METRIC(y)); CoordWinSetCoord(x, y); } static gboolean ViewerEvLButtonUp(unsigned int state, TPoint *point, struct Viewer *d) { double zoom; if (Menulock || Globallock) return FALSE; zoom = Menulocal.PaperZoom / 10000.0; if (d->MouseMode == MOUSESCROLLE) { NSetCursor(GDK_LEFT_PTR); d->MouseMode = MOUSENONE; return FALSE; } if (! d->Capture) return TRUE; switch (d->Mode) { case PointB: case LegendB: case AxisB: case TrimB: case DataB: case EvalB: d->Capture = FALSE; switch (d->MouseMode) { case MOUSEDRAG: mouse_up_drag(state, point, zoom, d); break; case MOUSEZOOM1: case MOUSEZOOM2: case MOUSEZOOM3: case MOUSEZOOM4: mouse_up_zoom(state, point, zoom, d); break; case MOUSECHANGE: mouse_up_change(state, point, zoom, d); break; case MOUSEPOINT: mouse_up_point(state, point, zoom, d); if (d->Mode & POINT_TYPE_POINT) { d->allclear = FALSE; UpdateAll(); } break; case MOUSENONE: case MOUSESCROLLE: break; } NSetCursor(get_mouse_cursor_type(d, point->x, point->y)); d->MouseMode = MOUSENONE; SetPoint(d, d->MouseX2, d->MouseY2); break; case MarkB: case TextB: mouse_up_lgend1(state, point, zoom, d); break; default: mouse_up_lgend2(state, point, zoom, d); } set_focus_sensitivity(d); return TRUE; } static void swapint(int *a, int *b) { int tmp; tmp = *a; *a = *b; *b = tmp; } static void create_legend1(struct Viewer *d) { int id, num, x1, y1, ret; N_VALUE *inst; struct objlist *obj = NULL; struct Point *po; d->Capture = FALSE; num = arraynum(d->points); if (d->Mode == MarkB) { obj = chkobject("mark"); } else { obj = chkobject("text"); } if (obj) { id = newobj(obj); if (id >= 0) { if (num >= 1) { po = *(struct Point **) arraynget(d->points, 0); x1 = po->x; y1 = po->y; } inst = chkobjinst(obj, id); _putobj(obj, "x", inst, &x1); _putobj(obj, "y", inst, &y1); PaintLock = TRUE; if (d->Mode == MarkB) { LegendMarkDialog(&DlgLegendMark, obj, id); ret = DialogExecute(TopLevel, &DlgLegendMark); } else { LegendTextDialog(&DlgLegendText, obj, id); ret = DialogExecute(TopLevel, &DlgLegendText); } if ((ret == IDDELETE) || (ret == IDCANCEL)) { delobj(obj, id); } else { AddList(obj, inst); AddInvalidateRect(obj, inst); set_graph_modified(); } PaintLock = FALSE; } } arraydel2(d->points); d->allclear = FALSE; UpdateAll(); } static void create_path(struct Viewer *d) { struct objlist *obj = NULL; struct narray *parray; struct Point *po; N_VALUE *inst; int i, num, id, ret = IDCANCEL; d->Capture = FALSE; num = arraynum(d->points); obj = chkobject("path"); if (num < 3 || obj == NULL) { goto ExitCreatePath; } id = newobj(obj); if (id < 0) { goto ExitCreatePath; } inst = chkobjinst(obj, id); parray = arraynew(sizeof(int)); for (i = 0; i < num - 1; i++) { po = *(struct Point **) arraynget(d->points, i); arrayadd(parray, &po->x); arrayadd(parray, &po->y); } _putobj(obj, "points", inst, parray); PaintLock = TRUE; LegendArrowDialog(&DlgLegendArrow, obj, id); ret = DialogExecute(TopLevel, &DlgLegendArrow); if (ret == IDDELETE || ret == IDCANCEL) { delobj(obj, id); } else { AddList(obj, inst); AddInvalidateRect(obj, inst); set_graph_modified(); } PaintLock = FALSE; ExitCreatePath: arraydel2(d->points); d->allclear = FALSE; UpdateAll(); } static void create_legend3(struct Viewer *d) { int id, num, x1, y1, x2, y2, ret = IDCANCEL; N_VALUE *inst; struct objlist *obj = NULL; struct Point **pdata; d->Capture = FALSE; num = arraynum(d->points); pdata = arraydata(d->points); if (num >= 3) { if (d->Mode == RectB) { obj = chkobject("rectangle"); } else if (d->Mode == ArcB) { obj = chkobject("arc"); } if (obj) { id = newobj(obj); if (id >= 0) { inst = chkobjinst(obj, id); x1 = pdata[0]->x; y1 = pdata[0]->y; x2 = pdata[1]->x; y2 = pdata[1]->y; if (x1 > x2) swapint(&x1, &x2); if (y1 > y2) swapint(&y1, &y2); PaintLock = TRUE; if (d->Mode == RectB) { _putobj(obj, "x1", inst, &x1); _putobj(obj, "y1", inst, &y1); _putobj(obj, "x2", inst, &x2); _putobj(obj, "y2", inst, &y2); LegendRectDialog(&DlgLegendRect, obj, id); ret = DialogExecute(TopLevel, &DlgLegendRect); } else if (d->Mode == ArcB) { int x, y, rx, ry; x = (x1 + x2) / 2; y = (y1 + y2) / 2; rx = abs(x1 - x); ry = abs(y1 - y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); _putobj(obj, "rx", inst, &rx); _putobj(obj, "ry", inst, &ry); LegendArcDialog(&DlgLegendArc, obj, id); ret = DialogExecute(TopLevel, &DlgLegendArc); } if ((ret == IDDELETE) || (ret == IDCANCEL)) { delobj(obj, id); } else { AddList(obj, inst); AddInvalidateRect(obj, inst); set_graph_modified(); } PaintLock = FALSE; } } } arraydel2(d->points); d->allclear = FALSE; UpdateAll(); } static void create_legendx(struct Viewer *d) { int id, num, x1, y1, x2, y2, ret = IDCANCEL, type; N_VALUE *inst; struct objlist *obj = NULL; struct Point **pdata; d->Capture = FALSE; num = arraynum(d->points); pdata = arraydata(d->points); if (num >= 3) { obj = chkobject("path"); if (obj) { id = newobj(obj); if (id >= 0) { type = PATH_TYPE_CURVE; putobj(obj, "type", id, &type); inst = chkobjinst(obj, id); x1 = pdata[0]->x; y1 = pdata[0]->y; x2 = pdata[1]->x; y2 = pdata[1]->y; if (x1 > x2) swapint(&x1, &x2); if (y1 > y2) swapint(&y1, &y2); PaintLock = TRUE; if ((x1 != x2) && (y1 != y2)) { LegendGaussDialog(&DlgLegendGauss, obj, id, x1, y1, x2 - x1, y2 - y1); ret = DialogExecute(TopLevel, &DlgLegendGauss); if (ret != IDOK) { delobj(obj, id); } else { AddList(obj, inst); AddInvalidateRect(obj, inst); set_graph_modified(); } } PaintLock = FALSE; } } } arraydel2(d->points); d->allclear = FALSE; UpdateAll(); } static void create_single_axis(struct Viewer *d) { int id, num, x1, y1, x2, y2, lenx, dir, ret = IDCANCEL; double fx1, fy1; N_VALUE *inst; struct objlist *obj = NULL; struct Point **pdata; d->Capture = FALSE; num = arraynum(d->points); pdata = arraydata(d->points); if (num >= 3) { obj = chkobject("axis"); if (obj != NULL) { if ((id = newobj(obj)) >= 0) { inst = chkobjinst(obj, id); x1 = pdata[0]->x; y1 = pdata[0]->y; x2 = pdata[1]->x; y2 = pdata[1]->y; fx1 = x2 - x1; fy1 = y2 - y1; lenx = nround(sqrt(fx1 * fx1 + fy1 * fy1)); if (fx1 == 0) { if (fy1 >= 0) { dir = 27000; } else { dir = 9000; } } else { dir = nround(atan(-fy1 / fx1) / MPI * 18000); if (fx1 < 0) dir += 18000; if (dir < 0) dir += 36000; if (dir >= 36000) dir -= 36000; } inst = chkobjinst(obj, id); _putobj(obj, "x", inst, &x1); _putobj(obj, "y", inst, &y1); _putobj(obj, "length", inst, &lenx); _putobj(obj, "direction", inst, &dir); AxisDialog(NgraphApp.AxisWin.data.data, id, TRUE); ret = DialogExecute(TopLevel, &DlgAxis); if (ret == IDDELETE || ret == IDCANCEL) { delobj(obj, id); } else { AddList(obj, inst); set_graph_modified(); } } } } arraydel2(d->points); d->allclear = TRUE; UpdateAll(); } static void create_axis(struct Viewer *d) { int idx, idy, idu, idr, idg, oidx, oidy, type, num, x1, y1, x2, y2, lenx, leny, ret = IDCANCEL; N_VALUE *inst; char *argv[2], *ref; struct objlist *obj = NULL, *obj2; struct Point **pdata; struct narray group; d->Capture = FALSE; num = arraynum(d->points); pdata = arraydata(d->points); if (num >= 3) { obj = chkobject("axis"); obj2 = chkobject("axisgrid"); if (obj != NULL) { x1 = pdata[0]->x; y1 = pdata[0]->y; x2 = pdata[1]->x; y2 = pdata[1]->y; lenx = abs(x1 - x2); leny = abs(y1 - y2); x1 = (x1 < x2) ? x1 : x2; y1 = (y1 > y2) ? y1 : y2; idx = newobj(obj); idy = newobj(obj); if (d->Mode != CrossB) { idu = newobj(obj); idr = newobj(obj); arrayinit(&group, sizeof(int)); if (d->Mode == FrameB) { type = 1; } else { type = 2; } arrayadd(&group, &type); arrayadd(&group, &idx); arrayadd(&group, &idy); arrayadd(&group, &idu); arrayadd(&group, &idr); arrayadd(&group, &x1); arrayadd(&group, &y1); arrayadd(&group, &lenx); arrayadd(&group, &leny); argv[0] = (char *) &group; argv[1] = NULL; exeobj(obj, "default_grouping", idr, 1, argv); arraydel(&group); } else { arrayinit(&group, sizeof(int)); type = 3; arrayadd(&group, &type); arrayadd(&group, &idx); arrayadd(&group, &idy); arrayadd(&group, &x1); arrayadd(&group, &y1); arrayadd(&group, &lenx); arrayadd(&group, &leny); argv[0] = (char *) &group; argv[1] = NULL; exeobj(obj, "default_grouping", idx, 1, argv); arraydel(&group); } if ((d->Mode == SectionB) && (obj2 != NULL)) { idg = newobj(obj2); if (idg >= 0) { getobj(obj, "oid", idx, 0, NULL, &oidx); ref = g_malloc(ID_BUF_SIZE); if (ref) { snprintf(ref, ID_BUF_SIZE, "axis:^%d", oidx); putobj(obj2, "axis_x", idg, ref); } getobj(obj, "oid", idy, 0, NULL, &oidy); ref = g_malloc(ID_BUF_SIZE); if (ref) { snprintf(ref, ID_BUF_SIZE, "axis:^%d", oidy); putobj(obj2, "axis_y", idg, ref); } } } else { idg = -1; } if (d->Mode == FrameB) { SectionDialog(&DlgSection, x1, y1, lenx, leny, obj, idx, idy, idu, idr, obj2, &idg, FALSE); ret = DialogExecute(TopLevel, &DlgSection); } else if (d->Mode == SectionB) { SectionDialog(&DlgSection, x1, y1, lenx, leny, obj, idx, idy, idu, idr, obj2, &idg, TRUE); ret = DialogExecute(TopLevel, &DlgSection); } else if (d->Mode == CrossB) { CrossDialog(&DlgCross, x1, y1, lenx, leny, obj, idx, idy); ret = DialogExecute(TopLevel, &DlgCross); } if ((ret == IDDELETE) || (ret == IDCANCEL)) { if (d->Mode != CrossB) { delobj(obj, idr); delobj(obj, idu); } delobj(obj, idy); delobj(obj, idx); if ((idg != -1) && (obj2 != NULL)) { delobj(obj2, idg); } } else { inst = chkobjinst(obj, idx); if (inst) AddList(obj, inst); inst = chkobjinst(obj, idy); if (inst) AddList(obj, inst); if (d->Mode != CrossB) { inst = chkobjinst(obj, idu); if (inst) AddList(obj, inst); inst = chkobjinst(obj, idr); if (inst) AddList(obj, inst); } if ((idg != -1) && (obj2 != NULL)) { inst = chkobjinst(obj2, idg); if (inst) AddList(obj2, inst); } set_graph_modified(); } } } arraydel2(d->points); d->allclear = TRUE; UpdateAll(); } static gboolean ViewerEvLButtonDblClk(unsigned int state, TPoint *point, struct Viewer *d) { if (Menulock || Globallock) return FALSE; switch (d->Mode) { case PointB: case LegendB: case AxisB: d->Capture = FALSE; ViewUpdate(); break; case TrimB: case DataB: case EvalB: break; case MarkB: case TextB: create_legend1(d); break; case PathB: create_path(d); break; case RectB: case ArcB: create_legend3(d); break; case GaussB: create_legendx(d); break; case SingleB: create_single_axis(d); break; case FrameB: case SectionB: case CrossB: create_axis(d); break; case ZoomB: break; } if ((d->Mode & POINT_TYPE_DRAW_ALL) && ! KeepMouseMode) { gtk_radio_action_set_current_value(NgraphApp.viewb, DefaultMode); } return TRUE; } static void move_data_cancel(struct Viewer *d, gboolean show_message) { arraydel(&SelList); d->MoveData = FALSE; d->Capture = FALSE; NSetCursor(GDK_LEFT_PTR); if (show_message) message_box(NULL, _("Moving data points is canceled."), "Confirm", RESPONS_OK); } static gboolean ViewerEvRButtonDown(unsigned int state, TPoint *point, struct Viewer *d, GdkEventButton *e) { int num; struct Point *po; double zoom; if (Menulock || Globallock) return FALSE; if (d->MoveData) { move_data_cancel(d, TRUE); } else if (d->Capture) { zoom = Menulocal.PaperZoom / 10000.0; switch (d->Mode) { case PathB: num = arraynum(d->points); if (num > 0) { arrayndel2(d->points, num - 1); if (num <= 2) { arraydel2(d->points); d->Capture = FALSE; } else { po = *(struct Point **) arraylast(d->points); if (po != NULL) { d->MouseX1 = (mxp2d(d->hscroll + point->x - d->cx) - Menulocal.LeftMargin) / zoom; d->MouseY1 = (mxp2d(d->vscroll + point->y - d->cy) - Menulocal.TopMargin) / zoom; po->x = d->MouseX1; po->y = d->MouseY1; CheckGrid(TRUE, state, &(po->x), &(po->y), NULL); } } break; case RectB: case ArcB: case GaussB: case SingleB: case FrameB: case SectionB: case CrossB: arraydel2(d->points); d->Capture = FALSE; break; default: break; } } } else if (d->Mode == ZoomB) { mouse_down_zoom(state, point, d, ! (state & GDK_CONTROL_MASK)); } else if (d->MouseMode == MOUSENONE) { do_popup(e, d); } gtk_widget_queue_draw(d->Win); return TRUE; } static gboolean ViewerEvMButtonDown(unsigned int state, TPoint *point, struct Viewer *d) { if (Menulock || Globallock) return FALSE; if (d->Mode == ZoomB) { #ifdef SHOW_MOVE_ANIMATION show_move_animation(d, point->x - d->cx , point->y - d->cy); #endif /* SHOW_MOVE_ANIMATION */ d->hscroll -= (d->cx - point->x); d->vscroll -= (d->cy - point->y); ChangeDPI(); } else { ViewerEvLButtonDown(state, point, d); ViewerEvLButtonUp(state, point, d); ViewerEvLButtonDblClk(state, point, d); } return FALSE; } static int get_mouse_cursor_type(struct Viewer *d, int x, int y) { int j, x1, y1, x2, y2, num, cursor, bboxnum, *bbox; N_VALUE *inst; struct narray *abbox; struct FocusObj **focus; double zoom; if (d->MoveData) return GDK_TCROSS; num = arraynum(d->focusobj); if (num == 0) return GDK_LEFT_PTR; GetFocusFrame(&x1, &y1, &x2, &y2, d->FrameOfsX, d->FrameOfsY, d); if (x >= x1 && x <= x2 && y >= y1 && y <= y2) { cursor = GDK_FLEUR; } else if (x > x1 - FOCUS_RECT_SIZE - FOCUS_FRAME_OFST && x < x1 - FOCUS_FRAME_OFST && y > y1 - FOCUS_RECT_SIZE - FOCUS_FRAME_OFST && y < y1 - FOCUS_FRAME_OFST) { cursor = GDK_TOP_LEFT_CORNER; } else if (x > x1 - FOCUS_RECT_SIZE - FOCUS_FRAME_OFST && x < x1 - FOCUS_FRAME_OFST && y < y2 + FOCUS_RECT_SIZE + FOCUS_FRAME_OFST - 1 && y > y2 + FOCUS_FRAME_OFST - 1) { cursor = GDK_BOTTOM_LEFT_CORNER; } else if (x < x2 + FOCUS_RECT_SIZE + FOCUS_FRAME_OFST - 1 && x > x2 + FOCUS_FRAME_OFST - 1 && y > y1 - FOCUS_RECT_SIZE - FOCUS_FRAME_OFST && y < y1 - FOCUS_FRAME_OFST) { cursor = GDK_TOP_RIGHT_CORNER; } else if (x < x2 + FOCUS_RECT_SIZE + FOCUS_FRAME_OFST - 1 && x > x2 + FOCUS_FRAME_OFST - 1 && y < y2 + FOCUS_RECT_SIZE + FOCUS_FRAME_OFST - 1 && y > y2 + FOCUS_FRAME_OFST - 1) { cursor = GDK_BOTTOM_RIGHT_CORNER; } else { cursor = GDK_LEFT_PTR; } if (num > 1) return cursor; focus = arraydata(d->focusobj); inst = chkobjinstoid(focus[0]->obj, focus[0]->oid); if (inst == NULL) return cursor; zoom = Menulocal.PaperZoom / 10000.0; _exeobj(focus[0]->obj, "bbox", inst, 0, NULL); _getobj(focus[0]->obj, "bbox", inst, &abbox); bboxnum = arraynum(abbox); bbox = arraydata(abbox); for (j = 4; j < bboxnum; j += 2) { x1 = coord_conv_x((bbox[j] + d->FrameOfsX), zoom, d); y1 = coord_conv_y((bbox[j + 1] + d->FrameOfsY), zoom, d); if (x > x1 - FOCUS_RECT_SIZE / 2 && x < x1 + FOCUS_RECT_SIZE / 2 && y > y1 - FOCUS_RECT_SIZE / 2 && y < y1 + FOCUS_RECT_SIZE / 2) { cursor = GDK_CROSSHAIR; d->ChangePoint = (j - 4) / 2; break; } } return cursor; } static void set_mouse_cursor_hover(struct Viewer *d, int x, int y) { if (d->Mode != PointB && d->Mode != LegendB && d->Mode != AxisB) return; NSetCursor(get_mouse_cursor_type(d, x, y)); } static void update_frame_rect(TPoint *point, struct Viewer *d, double zoom) { d->MouseX2 = calc_mouse_x(point->x, zoom, d); d->MouseY2 = calc_mouse_y(point->y, zoom, d); } #define SQRT3 1.73205080756888 static void calc_snap_angle(struct narray *points, int *dx, int *dy) { struct Point *po2; int x, y, w, h, n; double angle, l; x = *dx; y = *dy; n = arraynum(points); if (n < 2) return; po2 = *(struct Point **) arraynget(points, n - 2); w = x - po2->x; h = y - po2->y; if (h == 0 || w == 0) return; l = sqrt(w * w + h * h); if (w / h) { angle = acos(w / l); if (h < 0) angle = -angle; } else { angle = asin(h / l); if (w < 0) angle = -angle; } if (angle < 0) angle += 2 * MPI; angle *= 180 / MPI; if (angle < 15) { y = po2->y; } else if (angle < 37) { /* 30 */ y = po2->y + w / SQRT3; } else if (angle < 52) { /* 45 */ y = po2->y + w; } else if (angle < 75) { /* 60 */ x = po2->x + h / SQRT3; } else if (angle < 105) { /* 90 */ x = po2->x; } else if (angle < 127) { /* 120 */ x = po2->x - h / SQRT3; } else if (angle < 142) { /* 135 */ y = po2->y - w; } else if (angle < 165) { /* 150 */ y = po2->y - w / SQRT3; } else if (angle < 195) { /* 180 */ y = po2->y; } else if (angle < 217) { /* 210 */ y = po2->y + w / SQRT3; } else if (angle < 232) { /* 225 */ y = po2->y + w; } else if (angle < 255) { /* 240 */ x = po2->x + h / SQRT3; } else if (angle < 285) { /* 270 */ x = po2->x; } else if (angle < 307) { /* 300 */ x = po2->x - h / SQRT3; } else if (angle < 322) { /* 315 */ y = po2->y - w; } else if (angle < 345) { /* 330 */ y = po2->y - w / SQRT3; } else { /* 360 */ y = po2->y; } *dx = x; *dy = y; } static void calc_integer_ratio(struct narray *points, int *dx, int *dy) { struct Point *po2; int x, y, w, h; x = *dx; y = *dy; po2 = *(struct Point **) arraynget(points, 0); if (po2 == NULL) { return; } w = abs(x - po2->x); h = abs(y - po2->y); if (w < h) { w *= (w) ? h / w: 0; if (y > po2->y) { y = po2->y + w; } else { y = po2->y - w; } } else { h *= (h) ? w / h: 0; if (x > po2->x) { x = po2->x + h; } else { x = po2->x - h; } } *dx = x; *dy = y; } static void mouse_move_drag(unsigned int state, TPoint *point, double zoom, struct Viewer *d) { int x, y; d->MouseX2 = calc_mouse_x(point->x, zoom, d); d->MouseY2 = calc_mouse_y(point->y, zoom, d); x = d->MouseX2 - d->MouseX1; y = d->MouseY2 - d->MouseY1; CheckGrid(FALSE, state, &x, &y, NULL); d->FrameOfsX = x; d->FrameOfsY = y; } static void mouse_move_zoom(unsigned int state, TPoint *point, double zoom, struct Viewer *d) { double zoom2; int vx1, vx2, vy1, vy2; vx1 = calc_mouse_x(point->x, zoom, d); vy1 = calc_mouse_y(point->y, zoom, d); zoom2 = calc_zoom(d, vx1, vy1, &vx2, &vy2); if ((d->Mode != DataB) && (d->Mode != EvalB)) CheckGrid(FALSE, state, NULL, NULL, &zoom2); d->Zoom = zoom2; set_zoom_prm(d, vx2, vy2, zoom2); } static void mouse_move_change(unsigned int state, TPoint *point, double zoom, struct Viewer *d) { int x, y; d->MouseX2 = calc_mouse_x(point->x, zoom, d); d->MouseY2 = calc_mouse_y(point->y, zoom, d); x = d->MouseX2 - d->MouseX1; y = d->MouseY2 - d->MouseY1; if ((d->Mode != DataB) && (d->Mode != EvalB)) { CheckGrid(FALSE, state, &x, &y, NULL); } d->LineX = x; d->LineY = y; } static void mouse_move_scroll(TPoint *point, const struct Viewer *d) { int h, w; GdkWindow *win; win = gtk_widget_get_window(d->Win); if (win == NULL) { return; } #if GTK_CHECK_VERSION(2, 24, 0) w = gdk_window_get_width(win); h = gdk_window_get_height(win); #else gdk_window_get_geometry(win, NULL, NULL, &w, &h, NULL); #endif if (point->y > h) { range_increment(d->VScroll, SCROLL_INC); } else if (point->y < 0) { range_increment(d->VScroll, -SCROLL_INC); } if (point->x > w) { range_increment(d->HScroll, SCROLL_INC); } else if (point->x < 0) { range_increment(d->HScroll, -SCROLL_INC); } } static void mouse_move_draw(unsigned int state, int *dx, int *dy, const struct Viewer *d) { struct Point *po; if (arraynum(d->points) == 0) { return; } po = *(struct Point **) arraylast(d->points); if (state & GDK_CONTROL_MASK) { if (d->Mode & POINT_TYPE_DRAW1) { calc_integer_ratio(d->points, dx, dy); } else if (d->Mode & POINT_TYPE_DRAW2) { calc_snap_angle(d->points, dx, dy); if (! (state & GDK_SHIFT_MASK)) { CheckGrid(FALSE, 0, dx, dy, NULL); } } } if (po != NULL) { po->x = *dx; po->y = *dy; } } static gboolean ViewerEvMouseMove(unsigned int state, TPoint *point, struct Viewer *d) { int dx, dy; double zoom; if (Menulock || Globallock) { return FALSE; } if (gtk_widget_get_window(d->Win) == NULL) { return FALSE; } d->KeyMask = state; zoom = Menulocal.PaperZoom / 10000.0; dx = calc_mouse_x(point->x, zoom, d); dy = calc_mouse_y(point->y, zoom, d); if (d->MouseMode == MOUSESCROLLE) { range_increment(d->HScroll, mxd2p(d->MouseX1 - dx)); range_increment(d->VScroll, mxd2p(d->MouseY1 - dy)); return FALSE; } if ((d->Mode != DataB) && (d->Mode != EvalB) && (d->Mode != ZoomB) && (d->MouseMode != MOUSEPOINT) && (((d->Mode != PointB) && (d->Mode != LegendB) && (d->Mode != AxisB)) || (d->MouseMode != MOUSENONE))) { CheckGrid(TRUE, state, &dx, &dy, NULL); } d->CrossX = dx; d->CrossY = dy; mouse_move_scroll(point, d); if (! d->Capture) { set_mouse_cursor_hover(d, point->x, point->y); } else { int pos; pos = NGetCursor(); if (pos == GDK_FLEUR || pos == GDK_TOP_LEFT_CORNER || pos == GDK_BOTTOM_LEFT_CORNER || pos == GDK_TOP_RIGHT_CORNER || pos == GDK_BOTTOM_RIGHT_CORNER || pos == GDK_CROSSHAIR || (d->Mode & POINT_TYPE_TRIM)) { switch (d->MouseMode) { case MOUSEDRAG: mouse_move_drag(state, point, zoom, d); break; case MOUSEZOOM1: case MOUSEZOOM2: case MOUSEZOOM3: case MOUSEZOOM4: mouse_move_zoom(state, point, zoom, d); break; case MOUSECHANGE: mouse_move_change(state, point, zoom, d); break; case MOUSEPOINT: update_frame_rect(point, d, zoom); break; case MOUSENONE: case MOUSESCROLLE: break; } } else if (d->Mode & POINT_TYPE_POINT) { if (d->MouseMode == MOUSEPOINT) { update_frame_rect(point, d, zoom); } } else { mouse_move_draw(state, &dx, &dy, d); } } SetPoint(d, dx, dy); if ((region == NULL && Menulocal.show_cross && gtk_widget_is_drawable(d->Win)) || (d->Mode & POINT_TYPE_DRAW_ALL) || d->MouseMode != MOUSENONE) { gtk_widget_queue_draw(d->Win); } return FALSE; } static gboolean ViewerEvMouseMotion(GtkWidget *w, GdkEventMotion *e, gpointer client_data) { TPoint point; #if 0 static guint32 etime = 0; if (e->time - etime < 100) return FALSE; etime = e->time; #endif point.x = e->x; point.y = e->y; ViewerEvMouseMove(e->state, &point, (struct Viewer *) client_data); gdk_event_request_motions(e); /* handles is_hint events */ return FALSE; } static void popup_menu_position(GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer user_data) { struct Viewer *d; GdkWindow *win; d = (struct Viewer *) user_data; win = gtk_widget_get_window(d->Win); if (win == NULL) { return; } gdk_window_get_origin(win, x, y); } int check_focused_obj_type(const struct Viewer *d, int *type) { int num, i, t; static struct objlist *axis, *merge, *legend, *text; struct FocusObj *focus; num = arraynum(d->focusobj); if (axis == NULL) axis = chkobject("axis"); if (merge == NULL) merge = chkobject("merge"); if (legend == NULL) legend = chkobject("legend"); if (text == NULL) text = chkobject("text"); if (axis == NULL || merge == NULL || legend == NULL || text == NULL) { return 0; } t = 0; for (i = 0; i < num; i++) { focus = *(struct FocusObj **) arraynget(d->focusobj, i); if (chkobjchild(legend, focus->obj)) { t |= FOCUS_OBJ_TYPE_LEGEND; if (chkobjchild(text, focus->obj)) { t |= FOCUS_OBJ_TYPE_TEXT; } } else if (chkobjchild(axis, focus->obj)) { t |= FOCUS_OBJ_TYPE_AXIS; } else if (chkobjchild(merge, focus->obj)) { t |= FOCUS_OBJ_TYPE_MERGE; } } if (type) *type = t; return num; } static void do_popup(GdkEventButton *event, struct Viewer *d) { int button, event_time; GtkMenuPositionFunc func = NULL; if (d->popup == NULL) { return; } if (event) { button = event->button; event_time = event->time; } else { button = 0; event_time = gtk_get_current_event_time(); func = popup_menu_position; } gtk_menu_popup(GTK_MENU(d->popup), NULL, NULL, func, d, button, event_time); } static gboolean ViewerEvScroll(GtkWidget *w, GdkEventScroll *e, gpointer client_data) { struct Viewer *d; TPoint point; #if GTK_CHECK_VERSION(3, 4, 0) gdouble x, y; #endif point.x = e->x; point.y = e->y; d = (struct Viewer *) client_data; switch (e->direction) { case GDK_SCROLL_UP: if (e->state & GDK_CONTROL_MASK) { mouse_down_zoom_little(0, &point, d, FALSE); } else { range_increment(d->VScroll, -SCROLL_INC); } return TRUE; case GDK_SCROLL_DOWN: if (e->state & GDK_CONTROL_MASK) { mouse_down_zoom_little(0, &point, d, TRUE); } else { range_increment(d->VScroll, SCROLL_INC); } return TRUE; case GDK_SCROLL_LEFT: range_increment(d->HScroll, -SCROLL_INC); return TRUE; case GDK_SCROLL_RIGHT: range_increment(d->HScroll, SCROLL_INC); return TRUE; #if GTK_CHECK_VERSION(3, 4, 0) case GDK_SCROLL_SMOOTH: if (gdk_event_get_scroll_deltas((GdkEvent *) e, &x, &y)) { if ((e->state & GDK_CONTROL_MASK) && y != 0) { mouse_down_zoom_little(0, &point, d, y > 0); } else { range_increment(d->HScroll, x * SCROLL_INC); range_increment(d->VScroll, y * SCROLL_INC); } } return TRUE; #endif } return FALSE; } static gboolean ViewerEvButtonDown(GtkWidget *w, GdkEventButton *e, gpointer client_data) { struct Viewer *d; TPoint point; d = (struct Viewer *) client_data; d->KeyMask = e->state; point.x = e->x; point.y = e->y; gtk_widget_grab_focus(w); switch (e->button) { case Button1: if (e->type == GDK_BUTTON_PRESS) { return ViewerEvLButtonDown(e->state, &point, d); } else { return ViewerEvLButtonDblClk(e->state, &point, d); } break; case Button2: return ViewerEvMButtonDown(e->state, &point, d); case Button3: return ViewerEvRButtonDown(e->state, &point, d, e); } return FALSE; } static gboolean ViewerEvButtonUp(GtkWidget *w, GdkEventButton *e, gpointer client_data) { struct Viewer *d; TPoint point; d = (struct Viewer *) client_data; d->KeyMask = e->state; point.x = e->x; point.y = e->y; switch (e->button) { case Button1: return ViewerEvLButtonUp(e->state, &point, d); } return FALSE; } static void move_focus_frame(GdkEventKey *e, struct Viewer *d) { int dx = 0, dy = 0, mv; double zoom; zoom = Menulocal.PaperZoom / 10000.0; mv = (e->state & GDK_SHIFT_MASK) ? Menulocal.grid / 10 : Menulocal.grid; switch (e->keyval) { case GDK_KEY_Down: dy = mv; break; case GDK_KEY_Up: dy = -mv; break; case GDK_KEY_Right: dx = mv; break; case GDK_KEY_Left: dx = -mv; break; default: return; } if (dx != 0 || dy != 0) { d->FrameOfsX += dx / zoom; d->FrameOfsY += dy / zoom; d->MouseMode = MOUSEDRAG; set_drag_info(d); main_window_redraw(); } } static int viewer_key_scroll(GdkEventKey *e, struct Viewer *d) { switch (e->keyval) { case GDK_KEY_Up: range_increment(d->VScroll, -SCROLL_INC); return TRUE; case GDK_KEY_Down: range_increment(d->VScroll, SCROLL_INC); return TRUE; case GDK_KEY_Left: range_increment(d->HScroll, -SCROLL_INC); return TRUE; case GDK_KEY_Right: range_increment(d->HScroll, SCROLL_INC); return TRUE; } return FALSE; } static gboolean ViewerEvKeyDown(GtkWidget *w, GdkEventKey *e, gpointer client_data) { struct Viewer *d; d = (struct Viewer *) client_data; if (Menulock || Globallock) goto EXIT_PRAPAGATE; switch (e->keyval) { case GDK_KEY_Escape: if (d->MoveData) { move_data_cancel(d, TRUE); } else { UnFocus(); } gtk_radio_action_set_current_value(NgraphApp.viewb, DefaultMode); goto EXIT_PRAPAGATE; case GDK_KEY_space: CmViewerDraw(NULL, GINT_TO_POINTER(FALSE)); return TRUE; case GDK_KEY_Page_Up: range_increment(d->VScroll, -SCROLL_INC * 4); return TRUE; case GDK_KEY_Page_Down: range_increment(d->VScroll, SCROLL_INC * 4); return TRUE; case GDK_KEY_Down: case GDK_KEY_Up: case GDK_KEY_Left: case GDK_KEY_Right: if (arraynum(d->focusobj) == 0) { return viewer_key_scroll(e, d); } if (((d->MouseMode == MOUSENONE) || (d->MouseMode == MOUSEDRAG)) && (d->Mode & POINT_TYPE_POINT)) { move_focus_frame(e, d); return TRUE; } break; case GDK_KEY_Shift_L: case GDK_KEY_Shift_R: if (d->Mode == ZoomB) { NSetCursor(GDK_PLUS); return TRUE; } break; case GDK_KEY_Control_L: case GDK_KEY_Control_R: if (d->Mode == ZoomB) { NSetCursor(GDK_TARGET); return TRUE; } break; default: break; } EXIT_PRAPAGATE: set_focus_sensitivity(d); return FALSE; } static gboolean ViewerEvKeyUp(GtkWidget *w, GdkEventKey *e, gpointer client_data) { struct Viewer *d; int num, i, dx, dy; struct FocusObj *focus; N_VALUE *inst; struct objlist *obj; char *argv[4]; int axis = FALSE; if (Menulock || Globallock) return FALSE; d = (struct Viewer *) client_data; switch (e->keyval) { case GDK_KEY_Shift_L: case GDK_KEY_Shift_R: case GDK_KEY_Control_L: case GDK_KEY_Control_R: if (d->Mode == ZoomB) { NSetCursor(GDK_TARGET); return TRUE; } break; case GDK_KEY_Down: case GDK_KEY_Up: case GDK_KEY_Left: case GDK_KEY_Right: if (d->MouseMode != MOUSEDRAG) break; dx = d->FrameOfsX; dy = d->FrameOfsY; argv[0] = (char *) &dx; argv[1] = (char *) &dy; argv[2] = NULL; num = arraynum(d->focusobj); axis = FALSE; PaintLock = TRUE; for (i = num - 1; i >= 0; i--) { focus = *(struct FocusObj **) arraynget(d->focusobj, i); obj = focus->obj; if (obj == chkobject("axis")) axis = TRUE; if ((inst = chkobjinstoid(focus->obj, focus->oid)) != NULL) { AddInvalidateRect(obj, inst); _exeobj(obj, "move", inst, 2, argv); set_graph_modified(); AddInvalidateRect(obj, inst); } } PaintLock = FALSE; d->FrameOfsX = d->FrameOfsY = 0; d->ShowFrame = TRUE; if (! axis) { d->allclear = FALSE; } UpdateAll(); d->MouseMode = MOUSENONE; #if CLEAR_DRAG_INFO reset_drag_info(d); #endif return TRUE; default: break; } return FALSE; } static void ViewerEvSize(GtkWidget *w, GtkAllocation *allocation, gpointer client_data) { struct Viewer *d; d = (struct Viewer *) client_data; d->cx = allocation->width / 2; d->cy = allocation->height / 2; ChangeDPI(); } #if ! GTK_CHECK_VERSION(3, 0, 0) static cairo_t * create_cairo(GdkWindow *win) { cairo_t *cr; cr = gdk_cairo_create(win); cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); cairo_set_line_width(cr, 1); return cr; } #endif static gboolean #if GTK_CHECK_VERSION(3, 0, 0) ViewerEvPaint(GtkWidget *w, cairo_t *cr, gpointer client_data) #else ViewerEvPaint(GtkWidget *w, GdkEventExpose *e, gpointer client_data) #endif { #if ! GTK_CHECK_VERSION(3, 0, 0) cairo_t *cr; #endif struct Viewer *d; d = (struct Viewer *) client_data; if (ZoomLock) { return TRUE; } #if ! GTK_CHECK_VERSION(3, 0, 0) if (e && e->count != 0) { return TRUE; } cr = create_cairo(gtk_widget_get_window(w)); if (cr == NULL) { return TRUE; } #endif if (Menulocal.pix) { #if ! GTK_CHECK_VERSION(3, 0, 0) gdk_cairo_region(cr, e->region); #endif cairo_set_source_surface(cr, Menulocal.pix, nround(- d->hscroll + d->cx), nround(- d->vscroll + d->cy)); #if GTK_CHECK_VERSION(3, 0, 0) cairo_paint(cr); #else cairo_fill(cr); #endif } if (! Globallock) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); cairo_set_line_width(cr, 1); #endif /* I think it is not necessary to check chkobjinstoid(Menulocal.GRAobj, Menulocal.GRAoid). */ if (d->ShowFrame) { ShowFocusFrame(cr, d); } ShowPoints(cr, d); if (d->ShowLine) { ShowFocusLine(cr, d); } if (d->ShowRect) { ShowFrameRect(cr, d); } if (Menulocal.show_cross) { ShowCrossGauge(cr, d); } } if (! PaintLock && region) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_region_destroy(region); #else gdk_region_destroy(region); #endif region = NULL; } #if ! GTK_CHECK_VERSION(3, 0, 0) cairo_destroy(cr); #endif return FALSE; } static void ViewerEvVScroll(GtkRange *range, gpointer user_data) { struct Viewer *d; d = (struct Viewer *) user_data; d->vscroll = gtk_range_get_value(range); SetVRuler(d); main_window_redraw(); } static void ViewerEvHScroll(GtkRange *range, gpointer user_data) { struct Viewer *d; d = (struct Viewer *) user_data; d->hscroll = gtk_range_get_value(range); SetHRuler(d); main_window_redraw(); } void ViewerWinUpdate(void) { int i, num, lock_state; struct FocusObj **focus; struct Viewer *d; lock_state = PaintLock; PaintLock = TRUE; d = &NgraphApp.Viewer; if (chkobjinstoid(Menulocal.GRAobj, Menulocal.GRAoid) == NULL) { CloseGC(); CloseGRA(); OpenGRA(); OpenGC(); SetScroller(); ChangeDPI(); } CheckPage(); num = arraynum(d->focusobj); focus = arraydata(d->focusobj); for (i = num - 1; i >= 0; i--) { if (chkobjoid(focus[i]->obj, focus[i]->oid) == -1) { arrayndel2(d->focusobj, i); } } if (arraynum(d->focusobj) == 0) { clear_focus_obj(d); } if (d->allclear) { mx_clear(NULL); mx_redraw(Menulocal.obj, Menulocal.inst); } else if (region) { Menulocal.region = region; gra2cairo_clip_region(Menulocal.local, region); mx_redraw(Menulocal.obj, Menulocal.inst); gra2cairo_clip_region(Menulocal.local, NULL); Menulocal.region = NULL; } PaintLock = lock_state; main_window_redraw(); d->allclear = TRUE; } static void SetHRuler(const struct Viewer *d) { gdouble x1, x2, zoom; int width; GdkWindow *win; win = gtk_widget_get_window(d->Win); if (win == NULL) { return; } #if GTK_CHECK_VERSION(2, 24, 0) width = gdk_window_get_width(win); #else gdk_drawable_get_size(win, &width, NULL); #endif zoom = Menulocal.PaperZoom / 10000.0; x1 = N2GTK_RULER_METRIC(calc_mouse_x(0, zoom, d)); x2 = x1 + N2GTK_RULER_METRIC(mxp2d(width)) / zoom; nruler_set_range(d->HRuler, x1, x2); } static void SetVRuler(const struct Viewer *d) { gdouble y1, y2, zoom; int height; GdkWindow *win; win = gtk_widget_get_window(d->Win); if (win == NULL) { return; } #if GTK_CHECK_VERSION(2, 24, 0) height = gdk_window_get_height(win); #else gdk_drawable_get_size(win, NULL, &height); #endif zoom = Menulocal.PaperZoom / 10000.0; y1 = N2GTK_RULER_METRIC(calc_mouse_y(0, zoom, d)); y2 = y1 + N2GTK_RULER_METRIC(mxp2d(height)) / zoom; nruler_set_range(d->VRuler, y1, y2); } #define CHECK_FOCUSED_OBJ_ERROR -1 #define CHECK_FOCUSED_OBJ_NOT_FOUND -2 static int check_focused_obj(struct narray *focusobj, struct objlist *fobj, int oid) { int i, num; struct FocusObj *focus; if (fobj == NULL) return CHECK_FOCUSED_OBJ_ERROR; num = arraynum(focusobj); for (i = 0; i < num; i++) { focus = *(struct FocusObj **) arraynget(focusobj, i); if (focus == NULL) continue; if (fobj == focus->obj && oid == focus->oid) { return i; } } return CHECK_FOCUSED_OBJ_NOT_FOUND; } static int add_focus_obj(struct narray *focusobj, struct objlist *obj, int oid) { struct FocusObj *focus; int r; if (chkobjfield(obj, "bbox")) return FALSE; r = check_focused_obj(focusobj, obj, oid); if (r != CHECK_FOCUSED_OBJ_NOT_FOUND) return FALSE; focus = (struct FocusObj *) g_malloc(sizeof(struct FocusObj)); if (! focus) return FALSE; focus->obj = obj; focus->oid = oid; arrayadd(focusobj, &focus); return TRUE; } static void clear_focus_obj(const struct Viewer *d) { arraydel2(d->focusobj); } void Focus(struct objlist *fobj, int id, int add) { int oid, focus; N_VALUE *inst; struct narray *sarray; char **sdata; int snum; struct objlist *dobj; int did; char *dfield; int i; struct savedstdio save; int man; struct Viewer *d; if (fobj == NULL) return; d = &NgraphApp.Viewer; if (! chkobjchild(chkobject("legend"), fobj) && ! chkobjchild(chkobject("axis"), fobj) && ! chkobjchild(chkobject("merge"), fobj)) { return; } if (! add) UnFocus(); inst = chkobjinst(fobj, id); _getobj(fobj, "oid", inst, &oid); if (_getobj(Menulocal.obj, "_list", Menulocal.inst, &sarray)) return; snum = arraynum(sarray); if (snum == 0) return; ignorestdio(&save); sdata = arraydata(sarray); for (i = 1; i < snum; i++) { dobj = getobjlist(sdata[i], &did, &dfield, NULL); if (! dobj || (fobj != dobj) || (did != oid)) { continue; } if (chkobjchild(chkobject("axis"), dobj)) { getobj(fobj, "group_manager", id, 0, NULL, &man); if (man < 0) continue; getobj(fobj, "oid", man, 0, NULL, &did); } focus = check_focused_obj(d->focusobj, fobj, did); if (focus >= 0) { arrayndel2(d->focusobj, focus); break; } add_focus_obj(d->focusobj, dobj, did); d->MouseMode = MOUSENONE; break; } if (arraynum(d->focusobj) == 0) { UnFocus(); } d->allclear = FALSE; UpdateAll(); d->ShowFrame = TRUE; /* this is inconvenient when one use single window mode. */ /* gtk_widget_grab_focus(d->Win); */ restorestdio(&save); } void UnFocus(void) { struct Viewer *d; d = &NgraphApp.Viewer; if (arraynum(d->focusobj) != 0) { clear_focus_obj(d); } d->ShowFrame = FALSE; if (arraynum(d->points) != 0) { arraydel2(d->points); } gtk_widget_queue_draw(d->Win); } static void create_pix(int w, int h) { GdkWindow *window; cairo_t *cr; window = gtk_widget_get_window(NgraphApp.Viewer.Win); if (window == NULL) { return; } if (w == 0) { w = 1; } if (h == 0) { h = 1; } if (Menulocal.local->cairo) { cairo_destroy(Menulocal.local->cairo); } Menulocal.local->cairo = NULL; if (Menulocal.pix){ cairo_surface_destroy(Menulocal.pix); } Menulocal.pix = cairo_image_surface_create(CAIRO_FORMAT_RGB24, w + 1, h + 1); cr = cairo_create(Menulocal.pix); Menulocal.local->cairo = cr; cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); cairo_set_source_rgb(cr, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); cairo_paint(cr); gra2cairo_set_antialias(Menulocal.local, Menulocal.antialias); #if 0 cairo_set_tolerance(Menulocal.local->cairo, 0.1); #endif Menulocal.local->offsetx = 0; Menulocal.local->offsety = 0; } void OpenGC(void) { int width, height; Menulocal.local->pixel_dot_x = Menulocal.local->pixel_dot_y = Menulocal.windpi / 25.4 / 100; Menulocal.local->offsetx = 0; Menulocal.local->offsety = 0; width = mxd2p(Menulocal.PaperWidth); height = mxd2p(Menulocal.PaperHeight); if (width == 0) width = 1; if (height == 0) height = 1; create_pix(width, height); Menulocal.region = NULL; } void SetScroller(void) { int width, height, x, y; struct Viewer *d; d = &NgraphApp.Viewer; width = mxd2p(Menulocal.PaperWidth); height = mxd2p(Menulocal.PaperHeight); x = width / 2; y = height / 2; gtk_range_set_range(GTK_RANGE(d->HScroll), 0, width); gtk_range_set_value(GTK_RANGE(d->HScroll), x); gtk_range_set_increments(GTK_RANGE(d->HScroll), 10, 40); gtk_range_set_range(GTK_RANGE(d->VScroll), 0, height); gtk_range_set_value(GTK_RANGE(d->VScroll), y); gtk_range_set_increments(GTK_RANGE(d->VScroll), 10, 40); d->hscroll = x; d->vscroll = y; } static double get_range_max(GtkWidget *w) { GtkAdjustment *adj; double val; adj = gtk_range_get_adjustment(GTK_RANGE(w)); val = (adj) ? gtk_adjustment_get_upper(adj) : 0; return val; } void ChangeDPI(void) { int width, height, i, num, XPos, YPos, XRange = 0, YRange = 0; gint w, h; N_VALUE *inst; double ratex, ratey; struct objlist *obj; struct narray *array; struct Viewer *d; d = &NgraphApp.Viewer; XRange = get_range_max(d->HScroll); YRange = get_range_max(d->VScroll); XPos = nround(d->hscroll); YPos = nround(d->vscroll); if (XPos < 0) { XPos = 0; } if (XPos > XRange) { XPos = XRange; } if (YPos < 0) { YPos = 0; } if (YPos > YRange) { YPos = YRange; } ratex = (XRange == 0) ? 0 : XPos / (double) XRange; ratey = (YRange == 0) ? 0 : YPos / (double) YRange; width = mxd2p(Menulocal.PaperWidth); height = mxd2p(Menulocal.PaperHeight); if (Menulocal.pix) { w = cairo_image_surface_get_width(Menulocal.pix) - 1; h = cairo_image_surface_get_height(Menulocal.pix) - 1; } else { h = w = 0; } if (w != width || h != height) { create_pix(width, height); mx_redraw(Menulocal.obj, Menulocal.inst); } XPos = nround(width * ratex); YPos = nround(height * ratey); gtk_range_set_range(GTK_RANGE(d->HScroll), 0, width); gtk_range_set_value(GTK_RANGE(d->HScroll), XPos); d->hscroll = XPos; gtk_range_set_range(GTK_RANGE(d->VScroll), 0, height); gtk_range_set_value(GTK_RANGE(d->VScroll), YPos); d->vscroll = YPos; if ((obj = chkobject("text")) != NULL) { num = chkobjlastinst(obj); for (i = 0; i <= num; i++) { inst = chkobjinst(obj, i); _getobj(obj, "bbox", inst, &array); arrayfree(array); _putobj(obj, "bbox", inst, NULL); } } main_window_redraw(); SetHRuler(d); SetVRuler(d); } void CloseGC(void) { if (Menulocal.region != NULL) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_region_destroy(Menulocal.region); #else gdk_region_destroy(Menulocal.region); #endif } Menulocal.region = NULL; UnFocus(); } void ReopenGC(void) { Menulocal.local->pixel_dot_x = Menulocal.local->pixel_dot_y = Menulocal.windpi / 25.4 / 100; if (Menulocal.region != NULL) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_region_destroy(Menulocal.region); #else gdk_region_destroy(Menulocal.region); #endif } Menulocal.region = NULL; } void draw_paper_frame(void) { int w, h; cairo_t *cr; if (Menulocal.local->cairo == NULL || Menulocal.pix == NULL) return; w = cairo_image_surface_get_width(Menulocal.pix) - 1; h = cairo_image_surface_get_height(Menulocal.pix) - 1; cr = Menulocal.local->cairo; cairo_save(cr); cairo_reset_clip(cr); cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1); cairo_set_dash(cr, NULL, 0, 0); #if GTK_CHECK_VERSION(2, 22, 0) cairo_rectangle(cr, CAIRO_COORDINATE_OFFSET, CAIRO_COORDINATE_OFFSET, w, h); #else cairo_rectangle(cr, 0, 0, w, h); #endif cairo_stroke(cr); cairo_restore(cr); } void Draw(int SelectFile) { struct Viewer *d; N_VALUE *gra_inst; d = &NgraphApp.Viewer; if (SelectFile && !SetFileHidden()) return; ProgressDialogCreate(_("Scaling")); FileAutoScale(); AdjustAxis(); FitClear(); SetStatusBar(_("Drawing.")); ProgressDialogSetTitle(_("Drawing")); ReopenGC(); if (region) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_region_destroy(region); #else gdk_region_destroy(region); #endif } region = NULL; gra_inst = chkobjinstoid(Menulocal.GRAobj, Menulocal.GRAoid); if (gra_inst != NULL) { d->ignoreredraw = TRUE; _exeobj(Menulocal.GRAobj, "clear", gra_inst, 0, NULL); // reset_event(); /* XmUpdateDisplay(d->Win); */ _exeobj(Menulocal.GRAobj, "draw", gra_inst, 0, NULL); _exeobj(Menulocal.GRAobj, "flush", gra_inst, 0, NULL); d->ignoreredraw = FALSE; } draw_paper_frame(); ResetStatusBar(); ProgressDialogFinalize(); main_window_redraw(); if (SelectFile) { FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } } static void Clear(void) { N_VALUE *gra_inst; gra_inst = chkobjinstoid(Menulocal.GRAobj, Menulocal.GRAoid); if (gra_inst != NULL) { UnFocus(); _exeobj(Menulocal.GRAobj, "clear", gra_inst, 0, NULL); ReopenGC(); } InfoWinClear(); } void CmViewerDraw(GtkAction *w, gpointer client_data) { int select_file; if (Menulock || Globallock) return; select_file = GPOINTER_TO_INT(client_data); Draw(select_file); FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); } void CmViewerClear(GtkAction *w, gpointer client_data) { if (Menulock || Globallock) return; Clear(); FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); } static int search_axis_group(struct objlist *obj, int id, const char *group, int *findX, int *findY, int *findU, int *findR, int *findG, int *idx, int *idy, int *idu, int *idr, int *idg) { int j, id2, did, type; struct objlist *dobj, *aobj, *gobj; N_VALUE *inst2, *dinst; char *group2; struct narray *sarray; int snum; char **sdata; char *dfield; *findX = *findY = *findU = *findR = *findG = FALSE; type = group[0]; for (j = 0; j <= id; j++) { inst2 = chkobjinst(obj, j); _getobj(obj, "group", inst2, &group2); _getobj(obj, "id", inst2, &id2); if (group2 == NULL || group2[0] != type) continue; if (strcmp(group + 2, group2 + 2) != 0) continue; if (group2[1] == 'X') { *findX = TRUE; *idx = id2; } else if (group2[1] == 'Y') { *findY = TRUE; *idy = id2; } else if (group2[1] == 'U') { *findU = TRUE; *idu = id2; } else if (group2[1] == 'R') { *findR = TRUE; *idr = id2; } } if ((type == 's' || type == 'f') && *findX && *findY && ! _getobj(Menulocal.obj, "_list", Menulocal.inst, &sarray) && ((snum = arraynum(sarray)) >= 0)) { sdata = arraydata(sarray); gobj = chkobject("axisgrid"); for (j = 1; j < snum; j++) { int aid1, aid2; dobj = getobjlist(sdata[j], &did, &dfield, NULL); if (dobj == NULL || dobj != gobj) { continue; } dinst = chkobjinstoid(dobj, did); if (dinst == NULL) { continue; } aid1 = get_axis_id(dobj, dinst, &aobj, AXIS_X); aid2 = get_axis_id(dobj, dinst, &aobj, AXIS_Y); if (aid1 >= 0 && aid2 >= 0 && obj == aobj && aid1 == *idx && aid2 == *idy) { *findG = TRUE; _getobj(dobj, "id", dinst, idg); break; } } } return type; } static void ViewUpdate(void) { int i, id, num; struct FocusObj *focus; struct objlist *obj, *dobj = NULL; N_VALUE *inst, *dinst; int ret; int x1, y1; int idx = 0, idy = 0, idu = 0, idr = 0, idg, lenx, leny; int findX, findY, findU, findR, findG; char type; char *group; int axis; struct Viewer *d; if (Menulock || Globallock) return; d = &NgraphApp.Viewer; d->ShowFrame = FALSE; d->ShowRect = FALSE; num = arraynum(d->focusobj); axis = FALSE; PaintLock = TRUE; for (i = num - 1; i >= 0; i--) { focus = *(struct FocusObj **) arraynget(d->focusobj, i); if (focus == NULL) continue; inst = chkobjinstoid(focus->obj, focus->oid); if (inst == NULL) continue; obj = focus->obj; _getobj(obj, "id", inst, &id); ret = IDCANCEL; if (obj == chkobject("axis")) { axis = TRUE; _getobj(obj, "group", inst, &group); if (group && group[0] != 'a') { type = search_axis_group(obj, id, group, &findX, &findY, &findU, &findR, &findG, &idx, &idy, &idu, &idr, &idg); if (((type == 's') || (type == 'f')) && findX && findY && findU && findR) { dobj = chkobject("axisgrid"); if (! findG) { idg = -1; } getobj(obj, "y", idx, 0, NULL, &y1); getobj(obj, "x", idy, 0, NULL, &x1); getobj(obj, "y", idu, 0, NULL, &leny); getobj(obj, "x", idr, 0, NULL, &lenx); leny = y1 - leny; lenx = lenx - x1; SectionDialog(&DlgSection, x1, y1, lenx, leny, obj, idx, idy, idu, idr, dobj, &idg, type == 's'); ret = DialogExecute(TopLevel, &DlgSection); if (ret == IDDELETE) { AxisDel(id); set_graph_modified(); arrayndel2(d->focusobj, i); } if (! findG && idg != -1) { dinst = chkobjinst(dobj, idg); if (dinst) { AddList(dobj, dinst); } } } else if ((type == 'c') && findX && findY) { getobj(obj, "x", idx, 0, NULL, &x1); getobj(obj, "y", idy, 0, NULL, &y1); getobj(obj, "length", idx, 0, NULL, &lenx); getobj(obj, "length", idy, 0, NULL, &leny); CrossDialog(&DlgCross, x1, y1, lenx, leny, obj, idx, idy); ret = DialogExecute(TopLevel, &DlgCross); if (ret == IDDELETE) { AxisDel(id); set_graph_modified(); arrayndel2(d->focusobj, i); } } } else { AxisDialog(NgraphApp.AxisWin.data.data, id, TRUE); ret = DialogExecute(TopLevel, &DlgAxis); if (ret == IDDELETE) { AxisDel(id); set_graph_modified(); arrayndel2(d->focusobj, i); } } } else { AddInvalidateRect(obj, inst); if (obj == chkobject("path")) { LegendArrowDialog(&DlgLegendArrow, obj, id); ret = DialogExecute(TopLevel, &DlgLegendArrow); } else if (obj == chkobject("rectangle")) { LegendRectDialog(&DlgLegendRect, obj, id); ret = DialogExecute(TopLevel, &DlgLegendRect); } else if (obj == chkobject("arc")) { LegendArcDialog(&DlgLegendArc, obj, id); ret = DialogExecute(TopLevel, &DlgLegendArc); } else if (obj == chkobject("mark")) { LegendMarkDialog(&DlgLegendMark, obj, id); ret = DialogExecute(TopLevel, &DlgLegendMark); } else if (obj == chkobject("text")) { LegendTextDialog(&DlgLegendText, obj, id); ret = DialogExecute(TopLevel, &DlgLegendText); } else if (obj == chkobject("merge")) { MergeDialog(NgraphApp.MergeWin.data.data, id, 0); ret = DialogExecute(TopLevel, &DlgMerge); } if (ret == IDDELETE) { set_graph_modified(); delobj(obj, id); } if (ret == IDOK) AddInvalidateRect(obj, inst); } } PaintLock = FALSE; if (arraynum(d->focusobj) == 0) clear_focus_obj(d); if (! axis) d->allclear = FALSE; UpdateAll(); d->ShowFrame = TRUE; } static void ViewDelete(void) { int i, id, num; struct FocusObj *focus; struct objlist *obj; N_VALUE *inst; int axis; struct Viewer *d; if (Menulock || Globallock) return; d = &NgraphApp.Viewer; if ((d->MouseMode != MOUSENONE) || (d->Mode != PointB && d->Mode != LegendB && d->Mode != AxisB)) { return; } d->ShowFrame = FALSE; axis = FALSE; PaintLock = TRUE; num = arraynum(d->focusobj); for (i = num - 1; i >= 0; i--) { focus = *(struct FocusObj **) arraynget(d->focusobj, i); obj = focus->obj; inst = chkobjinstoid(obj, focus->oid); if (inst == NULL) continue; AddInvalidateRect(obj, inst); DelList(obj, inst, d); _getobj(obj, "id", inst, &id); if (obj == chkobject("axis")) { AxisDel(id); axis = TRUE; } else { delobj(obj, id); } set_graph_modified(); } PaintLock = FALSE; if (! axis) d->allclear = FALSE; if (num != 0) UpdateAll(); NSetCursor(GDK_LEFT_PTR); } static void reorder_object(enum object_move_type type) { int id, num; struct FocusObj *focus; struct objlist *obj; N_VALUE *inst; struct Viewer *d; if (Menulock || Globallock) return; d = &NgraphApp.Viewer; if (d->MouseMode != MOUSENONE || (d->Mode != PointB && d->Mode != LegendB && d->Mode != AxisB)) return; num = arraynum(d->focusobj); if (num != 1) return; focus = *(struct FocusObj **) arraynget(d->focusobj, 0); obj = focus->obj; if (! chkobjchild(chkobject("legend"), obj) && ! chkobjchild(chkobject("merge"), obj)) return; inst = chkobjinstoid(obj, focus->oid); if (inst == NULL) return; DelList(obj, inst, d); _getobj(obj, "id", inst, &id); switch (type) { case OBJECT_MOVE_TYPE_TOP: movetopobj(obj, id); break; case OBJECT_MOVE_TYPE_LAST: movelastobj(obj, id); break; case OBJECT_MOVE_TYPE_UP: moveupobj(obj, id); break; case OBJECT_MOVE_TYPE_DOWN: movedownobj(obj, id); break; } AddList(obj, inst); set_graph_modified(); d->allclear = TRUE; UpdateAll(); } static void ncopyobj(struct objlist *obj, int id1, int id2) { char *field[] = {"name", NULL}; copy_obj_field(obj, id1, id2, field); } static void ViewCopyAxis(struct objlist *obj, int id, struct FocusObj *focus, N_VALUE *inst) { int id2; struct objlist *dobj; N_VALUE *inst2; int findX, findY, findU, findR, findG; char *axisx, *axisy; int oidx, oidy; int idx = 0, idy = 0, idu = 0, idr = 0, idg; int idx2, idy2, idu2, idr2, idg2; char type; char *group; int tp; struct narray agroup; char *argv[2]; _getobj(obj, "group", inst, &group); if (group && group[0] != 'a') { type = search_axis_group(obj, id, group, &findX, &findY, &findU, &findR, &findG, &idx, &idy, &idu, &idr, &idg); if (((type == 's') || (type == 'f')) && findX && findY && findU && findR) { if ((idx2 = newobj(obj)) >= 0) { ncopyobj(obj, idx2, idx); inst2 = chkobjinst(obj, idx2); _getobj(obj, "oid", inst2, &oidx); AddList(obj, inst2); AddInvalidateRect(obj, inst2); set_graph_modified(); } else { AddInvalidateRect(obj, inst); } if ((idy2 = newobj(obj)) >= 0) { ncopyobj(obj, idy2, idy); inst2 = chkobjinst(obj, idy2); _getobj(obj, "oid", inst2, &oidy); AddList(obj, inst2); AddInvalidateRect(obj, inst2); set_graph_modified(); } else { AddInvalidateRect(obj, inst); } if ((idu2 = newobj(obj)) >= 0) { ncopyobj(obj, idu2, idu); inst2 = chkobjinst(obj, idu2); if (idx2 >= 0) { axisx = (char *) g_malloc(ID_BUF_SIZE); if (axisx) { snprintf(axisx, ID_BUF_SIZE, "axis:^%d", oidx); putobj(obj, "reference", idu2, axisx); } } AddList(obj, inst2); AddInvalidateRect(obj, inst2); set_graph_modified(); } else { AddInvalidateRect(obj, inst); } if ((idr2 = newobj(obj)) >= 0) { ncopyobj(obj, idr2, idr); inst2 = chkobjinst(obj, idr2); if (idy2 >= 0) { axisy = (char *) g_malloc(ID_BUF_SIZE); if(axisy) { snprintf(axisy, ID_BUF_SIZE, "axis:^%d", oidy); putobj(obj, "reference", idr2, axisy); } } arrayinit(&agroup, sizeof(int)); if (type == 'f') tp = 1; else tp = 2; arrayadd(&agroup, &tp); arrayadd(&agroup, &idx2); arrayadd(&agroup, &idy2); arrayadd(&agroup, &idu2); arrayadd(&agroup, &idr2); argv[0] = (char *) &agroup; argv[1] = NULL; exeobj(obj, "grouping", idr2, 1, argv); arraydel(&agroup); _getobj(obj, "oid", inst2, &(focus->oid)); AddList(obj, inst2); AddInvalidateRect(obj, inst2); set_graph_modified(); } else { AddInvalidateRect(obj, inst); } if (findG) { dobj = chkobject("axisgrid"); if ((idg2 = newobj(dobj)) >= 0) { ncopyobj(dobj, idg2, idg); inst2 = chkobjinst(dobj, idg2); if (idx2 >= 0 && idu2 >= 0) { axisx = (char *) g_malloc(ID_BUF_SIZE); if (axisx) { snprintf(axisx, ID_BUF_SIZE, "axis:^%d", oidx); putobj(dobj, "axis_x", idg2, axisx); } } if (idy2 >= 0 && idr2 >= 0) { axisy = (char *) g_malloc(ID_BUF_SIZE); if (axisy) { snprintf(axisy, ID_BUF_SIZE, "axis:^%d", oidy); putobj(dobj, "axis_y", idg2, axisy); } } AddList(dobj, inst2); set_graph_modified(); } } } else if ((type == 'c') && findX && findY) { if ((idx2 = newobj(obj)) >= 0) { ncopyobj(obj, idx2, idx); inst2 = chkobjinst(obj, idx2); _getobj(obj, "oid", inst2, &oidx); AddList(obj, inst2); AddInvalidateRect(obj, inst2); set_graph_modified(); } else { AddInvalidateRect(obj, inst); } if ((idy2 = newobj(obj)) >= 0) { ncopyobj(obj, idy2, idy); inst2 = chkobjinst(obj, idy2); _getobj(obj, "oid", inst2, &oidy); arrayinit(&agroup, sizeof(int)); tp = 3; arrayadd(&agroup, &tp); arrayadd(&agroup, &idx2); arrayadd(&agroup, &idy2); argv[0] = (char *) &agroup; argv[1] = NULL; exeobj(obj, "grouping", idy2, 1, argv); arraydel(&agroup); focus->oid = oidy; AddList(obj, inst2); AddInvalidateRect(obj, inst2); set_graph_modified(); } else { AddInvalidateRect(obj, inst); } if (idx2 >= 0 && idy2 >= 0) { axisy = (char *) g_malloc(ID_BUF_SIZE); if (axisy) { snprintf(axisy, ID_BUF_SIZE, "axis:^%d", oidy); putobj(obj, "adjust_axis", idx2, axisy); } axisx = (char *) g_malloc(ID_BUF_SIZE); if (axisx) { snprintf(axisx, ID_BUF_SIZE, "axis:^%d", oidx); putobj(obj, "adjust_axis", idy2, axisx); } } } } else { if ((id2 = newobj(obj)) >= 0) { ncopyobj(obj, id2, id); inst2 = chkobjinst(obj, id2); _getobj(obj, "oid", inst2, &(focus->oid)); AddList(obj, inst2); AddInvalidateRect(obj, inst2); set_graph_modified(); } else { AddInvalidateRect(obj, inst); } } } static void ViewCopy(void) { int i, id, id2, num; struct FocusObj *focus; struct objlist *obj; N_VALUE *inst, *inst2; int axis = FALSE; struct Viewer *d; if (Menulock || Globallock) return; d = &NgraphApp.Viewer; if (d->MouseMode != MOUSENONE || ! (d->Mode & POINT_TYPE_POINT)) return; d->ShowFrame = FALSE; axis = FALSE; PaintLock = TRUE; num = arraynum(d->focusobj); for (i = 0; i < num; i++) { focus = * (struct FocusObj **) arraynget(d->focusobj, i); if (focus == NULL) continue; inst = chkobjinstoid(focus->obj, focus->oid); if (inst == NULL) continue; obj = focus->obj; _getobj(obj, "id", inst, &id); if (obj == chkobject("axis")) { axis = TRUE; ViewCopyAxis(obj, id, focus, inst); } else { if ((id2 = newobj(obj)) >= 0) { ncopyobj(obj, id2, id); inst2 = chkobjinst(obj, id2); _getobj(obj, "oid", inst2, &(focus->oid)); AddList(obj, inst2); AddInvalidateRect(obj, inst2); set_graph_modified(); } else { AddInvalidateRect(obj, inst); } } } PaintLock = FALSE; if (! axis) d->allclear = FALSE; UpdateAll(); d->ShowFrame = TRUE; } void ViewCross(int state) { struct Viewer *d; if (Menulock || Globallock) return; d = &NgraphApp.Viewer; Menulocal.show_cross = state; if (gtk_widget_is_drawable(d->Win)) { gtk_widget_queue_draw(d->Win); } } void ViewerUpdateCB(GtkAction *w, gpointer client_data) { ViewUpdate(); } gboolean CmViewerButtonPressed(GtkWidget *widget, GdkEventButton *event, gpointer user_data) { KeepMouseMode = (event->state & GDK_SHIFT_MASK); return FALSE; } void CmEditMenuCB(GtkAction *w, gpointer client_data) { switch (GPOINTER_TO_INT(client_data)) { case MenuIdEditCut: CutFocusedObjects(); break; case MenuIdEditCopy: CopyFocusedObjects(); break; case MenuIdEditPaste: PasteObjectsFromClipboard(); break; case MenuIdEditDelete: ViewDelete(); break; case MenuIdEditDuplicate: ViewCopy(); break; case MenuIdAlignLeft: AlignFocusedObj(VIEW_ALIGN_LEFT); break; case MenuIdAlignVCenter: AlignFocusedObj(VIEW_ALIGN_VCENTER); break; case MenuIdAlignRight: AlignFocusedObj(VIEW_ALIGN_RIGHT); break; case MenuIdAlignTop: AlignFocusedObj(VIEW_ALIGN_TOP); break; case MenuIdAlignHCenter: AlignFocusedObj(VIEW_ALIGN_HCENTER); break; case MenuIdAlignBottom: AlignFocusedObj(VIEW_ALIGN_BOTTOM); break; case MenuIdEditRotateCW: RotateFocusedObj(ROTATE_CLOCKWISE); break; case MenuIdEditRotateCCW: RotateFocusedObj(ROTATE_COUNTERCLOCKWISE); break; case MenuIdEditFlipHorizontally: FlipFocusedObj(FLIP_DIRECTION_HORIZONTAL); break; case MenuIdEditFlipVertically: FlipFocusedObj(FLIP_DIRECTION_VERTICAL); break; case MenuIdEditOrderTop: reorder_object(OBJECT_MOVE_TYPE_TOP); break; case MenuIdEditOrderUp: reorder_object(OBJECT_MOVE_TYPE_UP); break; case MenuIdEditOrderDown: reorder_object(OBJECT_MOVE_TYPE_DOWN); break; case MenuIdEditOrderBottom: reorder_object(OBJECT_MOVE_TYPE_LAST); break; } } void CmViewerButtonArm(GtkAction *action, gpointer client_data) { int mode = PointB; struct Viewer *d; d = &NgraphApp.Viewer; if (! gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action))) { return; } mode = GPOINTER_TO_INT(client_data); UnFocus(); switch (mode) { case PointB: DefaultMode = 0; NSetCursor(GDK_LEFT_PTR); break; case LegendB: DefaultMode = 1; NSetCursor(GDK_LEFT_PTR); break; case AxisB: DefaultMode = 2; NSetCursor(GDK_LEFT_PTR); break; case DataB: DefaultMode = 3; NSetCursor(GDK_LEFT_PTR); break; case TrimB: case EvalB: NSetCursor(GDK_LEFT_PTR); break; case TextB: NSetCursor(GDK_XTERM); break; case ZoomB: NSetCursor(GDK_TARGET); break; default: NSetCursor(GDK_PENCIL); } NgraphApp.Viewer.Mode = mode; NgraphApp.Viewer.Capture = FALSE; NgraphApp.Viewer.MouseMode = MOUSENONE; if (d->MoveData) { move_data_cancel(d, TRUE); } gtk_widget_queue_draw(d->Win); } ngraph-gtk-6.06.13/src/gtk/x11graph.h0000644000175000017500000000337012241111703014025 00000000000000/* * $Id: x11graph.h,v 1.3 2009-06-09 06:38:53 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef X11GRAPH_HEADER void CmGraphQuit(GtkAction *w, gpointer client_data); void CmGraphNewMenu(GtkAction *w, gpointer client_data); void CmGraphHistory(GtkRecentChooser *w, gpointer client_data); void CmGraphLoad(GtkAction *w, gpointer client_data); void CmGraphSave(GtkAction *w, gpointer client_data); void CmGraphOverWrite(GtkAction *w, gpointer client_data); void CmGraphShell(GtkAction *w, gpointer client_data); void CmGraphDirectory(GtkAction *w, gpointer client_data); void CmHelpHelp(GtkAction *w, gpointer client_data); void CmHelpAbout(GtkAction *w, gpointer client_data); void CmGraphSwitch(GtkAction *w, gpointer client_data); void CmGraphPage(GtkAction *w, gpointer client_data); int set_paper_type(int w, int h); enum LOAD_PATH_TYPE { LOAD_PATH_UNCHANGE, LOAD_PATH_FULL, LOAD_PATH_BASE, }; extern char *LoadPathStr[]; #endif /* X11GRAPH_HEADER */ ngraph-gtk-6.06.13/src/gtk/x11menu.c0000644000175000017500000027762412241111703013702 00000000000000/* --*-coding:utf-8-*-- */ /* * $Id: x11menu.c,v 1.116 2010-04-01 06:08:23 hito Exp $ */ #include "gtk_common.h" #include #include #include #include #include #include #include #include #include #include #include "dir_defs.h" #include "object.h" #include "ioutil.h" #include "shell.h" #include "nstring.h" #include "nconfig.h" #include "mathfn.h" #include "gra.h" #include "spline.h" #include "gtk_entry_completion.h" #include "gtk_subwin.h" #include "gtk_widget.h" #include "gtk_ruler.h" #include "main.h" #include "x11bitmp.h" #include "x11dialg.h" #include "ogra2cairo.h" #include "ogra2gdk.h" #include "ox11menu.h" #include "x11menu.h" #include "x11info.h" #include "x11cood.h" #include "x11gui.h" #include "x11merge.h" #include "x11commn.h" #include "x11lgnd.h" #include "x11axis.h" #include "x11file.h" #include "x11graph.h" #include "x11print.h" #include "x11opt.h" #include "x11view.h" #define TEXT_HISTORY "text_history" #define MATH_X_HISTORY "math_x_history" #define MATH_Y_HISTORY "math_y_history" #define FUNCTION_HISTORY "function_history" #define FIT_HISTORY "fit_history" #define KEYMAP_FILE "accel_map" #define UI_FILE "NgraphUI.xml" #define USE_EXT_DRIVER 0 #if GTK_CHECK_VERSION(2, 24, 0) #define SIDE_PANE_TAB_ID "side_pane" #else static char *SIDE_PANE_TAB_ID = "side_pane"; #endif int Menulock = FALSE, DnDLock = FALSE; struct NgraphApp NgraphApp = {0}; GtkWidget *TopLevel = NULL; GtkAccelGroup *AccelGroup = NULL; static GtkActionGroup *ActionGroup = NULL; static GtkWidget *CurrentWindow = NULL, *CToolbar = NULL, *PToolbar = NULL; static enum {APP_CONTINUE, APP_QUIT, APP_QUIT_FORCE} Hide_window = APP_CONTINUE; static int DrawLock = FALSE; static unsigned int CursorType; static GtkUIManager *NgraphUi; #if USE_EXT_DRIVER static GtkWidget *ExtDrvOutMenu = NULL #endif static void CmReloadWindowConfig(GtkAction *w, gpointer user_data); static void CmToggleSingleWindowMode(GtkToggleAction *action, gpointer client_data); static void script_exec(GtkWidget *w, gpointer client_data); GdkCursorType Cursor[] = { GDK_LEFT_PTR, GDK_XTERM, GDK_CROSSHAIR, GDK_TOP_LEFT_CORNER, GDK_TOP_RIGHT_CORNER, GDK_BOTTOM_RIGHT_CORNER, GDK_BOTTOM_LEFT_CORNER, GDK_TARGET, GDK_SIZING, GDK_SIZING, GDK_WATCH, GDK_FLEUR, GDK_PENCIL, GDK_TCROSS, }; #define CURSOR_TYPE_NUM (sizeof(Cursor) / sizeof(*Cursor)) static void clear_information(GtkAction *w, gpointer user_data); static void toggle_view_cb(GtkToggleAction *action, gpointer data); struct actions { const char *name; GtkAction *action; enum { FOCUS_TYPE_1 = 0, FOCUS_TYPE_2, FOCUS_TYPE_3, FOCUS_TYPE_4, FOCUS_TYPE_5, FOCUS_TYPE_6, FOCUS_TYPE_NUM, } type; }; static void set_action_sensitivity(struct actions *actions, int *focus_type, int n); enum { RECENT_TYPE_GRAPH, RECENT_TYPE_DATA, }; struct NgraphActionEntry { enum { ACTION_TYPE_NORMAL, ACTION_TYPE_TOGGLE, ACTION_TYPE_RADIO, ACTION_TYPE_RECENT, } type; const gchar *name; const gchar *stock_id; const gchar *label; const gchar *tooltip; gchar *caption; GCallback callback; int user_data; const char *icon; const char *accel_path; guint accel_key; GdkModifierType accel_mods; }; static struct NgraphActionEntry ActionEntry[] = { { ACTION_TYPE_NORMAL, "GraphMenuAction", NULL, N_("_Graph"), NULL, NULL, NULL, }, { ACTION_TYPE_NORMAL, "GraphNewMenuAction", NULL, N_("_New graph"), NULL, NULL, NULL, 0, NULL, NULL, }, { ACTION_TYPE_NORMAL, "GraphExportMenuAction", NULL, N_("_Export image"), NULL, NULL, NULL, 0, NULL, NULL, }, { ACTION_TYPE_NORMAL, "GraphAddinMenuAction", NULL, N_("_Add-in"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "GraphAddinSubMenuAction", NULL, N_("_Add-in"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "EditMenuAction", NULL, N_("_Edit"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "ViewMenuAction", NULL, N_("_View"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "DataMenuAction", NULL, N_("_Data"), NULL, NULL, NULL }, { ACTION_TYPE_NORMAL, "AxisMenuAction", NULL, N_("_Axis"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "LegendMenuAction", NULL, N_("_Legend"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "MergeMenuAction", NULL, N_("_Merge"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "PreferenceMenuAction", NULL, N_("_Preference"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "HelpMenuAction", NULL, N_("_Help"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "GraphNewFrameAction", NULL, N_("_Frame graph"), N_("Create frame graph"), NULL, G_CALLBACK(CmGraphNewMenu), MenuIdGraphNewFrame, NGRAPH_FRAME_ICON_FILE, "/Graph/New graph/Frame graph", }, { ACTION_TYPE_NORMAL, "GraphNewSectionAction", NULL, N_("_Section graph"), N_("Create section graph"), NULL, G_CALLBACK(CmGraphNewMenu), MenuIdGraphNewSection, NGRAPH_SECTION_ICON_FILE, "/Graph/New graph/Section graph", }, { ACTION_TYPE_NORMAL, "GraphNewCrossAction", NULL, N_("_Cross graph"), N_("Create cross graph"), NULL, G_CALLBACK(CmGraphNewMenu), MenuIdGraphNewCross, NGRAPH_CROSS_ICON_FILE, "/Graph/New graph/Cross graph", }, { ACTION_TYPE_NORMAL, "GraphNewClearAction", NULL, N_("_All clear"), N_("Clear graph"), NULL, G_CALLBACK(CmGraphNewMenu), MenuIdGraphAllClear, NULL, "/Graph/New graph/All clear", }, { ACTION_TYPE_NORMAL, "GraphLoadAction", GTK_STOCK_OPEN, N_("_Load graph"), N_("Load NGP"), N_("Load NGP file"), G_CALLBACK(CmGraphLoad), 0, NULL, "/Graph/Load graph", GDK_KEY_r, GDK_CONTROL_MASK }, { ACTION_TYPE_RECENT, "GraphRecentAction", NULL, N_("_Recent graphs"), NULL, NULL, NULL, RECENT_TYPE_GRAPH, }, { ACTION_TYPE_NORMAL, "GraphSaveAction", GTK_STOCK_SAVE, NULL, N_("Save NGP"), N_("Save NGP file"), G_CALLBACK(CmGraphOverWrite), 0, NULL, "/Graph/Save", GDK_KEY_s, GDK_CONTROL_MASK }, { ACTION_TYPE_NORMAL, "GraphSaveAsAction", GTK_STOCK_SAVE_AS, NULL, N_("Save NGP"), NULL, G_CALLBACK(CmGraphSave), 0, NULL, "/Graph/SaveAs", GDK_KEY_s, GDK_CONTROL_MASK | GDK_SHIFT_MASK }, { ACTION_TYPE_NORMAL, "GraphExportGRAAction", NULL, N_("_GRA file"), N_("Export as GRA file"), NULL, G_CALLBACK(CmOutputMenu), MenuIdOutputGRAFile, NULL, "/Graph/Export image/GRA File", }, { ACTION_TYPE_NORMAL, "GraphExportPSAction", NULL, N_("_PS file"), N_("Export as PostScript file"), NULL, G_CALLBACK(CmOutputMenu), MenuIdOutputPSFile, NULL, "/Graph/Export image/PS File", }, { ACTION_TYPE_NORMAL, "GraphExportEPSAction", NULL, N_("_EPS file"), N_("Export as Encapsulate PostScript file"), NULL, G_CALLBACK(CmOutputMenu), MenuIdOutputEPSFile, NULL, "/Graph/Export image/EPS File", }, { ACTION_TYPE_NORMAL, "GraphExportPDFAction", NULL, N_("P_DF file"), N_("Export as Portable Document Format"), NULL, G_CALLBACK(CmOutputMenu), MenuIdOutputPDFFile, NULL, "/Graph/Export image/PDF File", }, { ACTION_TYPE_NORMAL, "GraphExportSVGAction", NULL, N_("_SVG file"), N_("Export as Scalable Vector Graphics file"), NULL, G_CALLBACK(CmOutputMenu), MenuIdOutputSVGFile, NULL, "/Graph/Export image/SVG File", }, { ACTION_TYPE_NORMAL, "GraphExportPNGAction", NULL, N_("P_NG file"), N_("Export as Portable Network Graphics file"), NULL, G_CALLBACK(CmOutputMenu), MenuIdOutputPNGFile, NULL, "/Graph/Export image/PNG File", }, #ifdef CAIRO_HAS_WIN32_SURFACE { ACTION_TYPE_NORMAL, "GraphExportCairoEMFAction", NULL, N_("_EMF file"), N_("Export as Windows Enhanced Metafile"), NULL, G_CALLBACK(CmOutputMenu), MenuIdOutputCairoEMFFile, NULL, "/Graph/Export image/EMF File (cairo)", }, #endif /* CAIRO_HAS_WIN32_SURFACE */ #ifdef WINDOWS { ACTION_TYPE_NORMAL, "GraphExportEMFFileAction", NULL, N_("_EMF file"), N_("Export as Windows Enhanced Metafile"), NULL, G_CALLBACK(CmOutputMenu), MenuIdOutputEMFFile, NULL, "/Graph/Export image/EMF File", }, { ACTION_TYPE_NORMAL, "GraphExportEMFClipboardAction", NULL, N_("_Clipboard (EMF)"), N_("Copy to the clipboard as Windows Enhanced Metafile "), NULL, G_CALLBACK(CmOutputMenu), MenuIdOutputEMFClipboard, NULL, "/Graph/Export image/Clipboard", }, #endif /* WINDOWS */ { ACTION_TYPE_NORMAL, "GraphDrawOrderAction", NULL, N_("_Draw order"), NULL, NULL, G_CALLBACK(CmGraphSwitch), 0, NULL, "/Graph/Draw order", }, { ACTION_TYPE_NORMAL, "GraphPageSetupAction", GTK_STOCK_PAGE_SETUP, NULL, NULL, NULL, G_CALLBACK(CmGraphPage), 0, NULL, "/Graph/Page", }, { ACTION_TYPE_NORMAL, "GraphPrintPreviewAction", GTK_STOCK_PRINT_PREVIEW, NULL, N_("Print preview"), N_("Print preview"), G_CALLBACK(CmOutputViewerB), 0, NULL, "/Graph/Print preview", }, { ACTION_TYPE_NORMAL, "GraphPrintAction", GTK_STOCK_PRINT, NULL, N_("Print"), N_("Print"), G_CALLBACK(CmOutputPrinterB), 0, NULL, "/Graph/Print", GDK_KEY_p, GDK_CONTROL_MASK, }, { ACTION_TYPE_NORMAL, "GraphCurrentDirectoryAction", NULL, N_("_Current directory"), NULL, NULL, G_CALLBACK(CmGraphDirectory), 0, NULL, "/Graph/Current directory", }, { ACTION_TYPE_NORMAL, "GraphShellAction", NULL, N_("_Ngraph shell"), NULL, NULL, G_CALLBACK(CmGraphShell), 0, NULL, "/Graph/Ngraph shell", }, { ACTION_TYPE_NORMAL, "GraphQuitAction", GTK_STOCK_QUIT, NULL, NULL, NULL, G_CALLBACK(CmGraphQuit), 0, NULL, "/Graph/Quit", GDK_KEY_q, GDK_CONTROL_MASK, }, { ACTION_TYPE_NORMAL, "EditCutAction", GTK_STOCK_CUT, NULL, NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditCut, NULL, "/Edit/Cut", GDK_KEY_x, GDK_CONTROL_MASK, }, { ACTION_TYPE_NORMAL, "EditCopyAction", GTK_STOCK_COPY, NULL, NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditCopy, NULL, "/Edit/Copy", GDK_KEY_c, GDK_CONTROL_MASK, }, { ACTION_TYPE_NORMAL, "EditPasteAction", GTK_STOCK_PASTE, NULL, NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditPaste, NULL, "/Edit/Paste", GDK_KEY_v, GDK_CONTROL_MASK, }, { ACTION_TYPE_NORMAL, "EditDeleteAction", GTK_STOCK_DELETE, NULL, NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditDelete, NULL, "/Edit/Delete", GDK_KEY_Delete, }, { ACTION_TYPE_NORMAL, "EditDuplicateAction", NULL, N_("_Duplicate"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditDuplicate, NULL, "/Edit/Duplicate", GDK_KEY_Insert, }, { ACTION_TYPE_NORMAL, "EditOrderAction", NULL, N_("draw _Order"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "EditOrderTopAction", GTK_STOCK_GOTO_TOP, NULL, NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditOrderTop, NULL, "/Edit/draw Order/Top", GDK_KEY_Home, GDK_SHIFT_MASK, }, { ACTION_TYPE_NORMAL, "EditOrderUpAction", GTK_STOCK_GO_UP, NULL, NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditOrderUp, NULL, "/Edit/draw Order/Up", }, { ACTION_TYPE_NORMAL, "EditOrderDownAction", GTK_STOCK_GO_DOWN, NULL, NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditOrderDown, NULL, "/Edit/draw Order/Down", }, { ACTION_TYPE_NORMAL, "EditOrderBottomAction", GTK_STOCK_GOTO_BOTTOM, NULL, NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditOrderBottom, NULL, "/Edit/draw Order/Bottom", GDK_KEY_End, GDK_SHIFT_MASK, }, { ACTION_TYPE_NORMAL, "EditAlignAction", NULL, N_("_Align"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "EditAlignLeftAction", NULL, N_("_Left"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdAlignLeft, NGRAPH_ALIGN_L_ICON_FILE, "/Edit/Align/Left", }, { ACTION_TYPE_NORMAL, "EditAlignRightAction", NULL, N_("_Right"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdAlignRight, NGRAPH_ALIGN_R_ICON_FILE, "/Edit/Align/Right", }, { ACTION_TYPE_NORMAL, "EditAlignVCenterAction", NULL, N_("_Vertical center"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdAlignVCenter, NGRAPH_ALIGN_VC_ICON_FILE, "/Edit/Align/Vertical center", }, { ACTION_TYPE_NORMAL, "EditAlignTopAction", NULL, N_("_Top"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdAlignTop, NGRAPH_ALIGN_T_ICON_FILE, "/Edit/Align/Top", }, { ACTION_TYPE_NORMAL, "EditAlignBottomAction", NULL, N_("_Bottom"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdAlignBottom, NGRAPH_ALIGN_B_ICON_FILE, "/Edit/Align/Bottom", }, { ACTION_TYPE_NORMAL, "EditAlignHCenterAction", NULL, N_("_Horizontal center"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdAlignHCenter, NGRAPH_ALIGN_HC_ICON_FILE, "/Edit/Align/Horizontal center", }, { ACTION_TYPE_NORMAL, "EditRotateAction", NULL, N_("_Rotate"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "EditRotateCWAction", NULL, N_("rotate _90 degree clockwise"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditRotateCW, NULL, "/Edit/RotateCW", }, { ACTION_TYPE_NORMAL, "EditRotateCCWAction", NULL, N_("rotate 9_0 degree counter-clockwise"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditRotateCCW, NULL, "/Edit/RotateCCW", }, { ACTION_TYPE_NORMAL, "EditFlipAction", NULL, N_("_Flip"), NULL, NULL, }, { ACTION_TYPE_NORMAL, "EditFlipHAction", NULL, N_("flip _Horizontally"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditFlipHorizontally, NULL, "/Edit/FlipHorizontally", }, { ACTION_TYPE_NORMAL, "EditFlipVActiopn", NULL, N_("flip _Vertically"), NULL, NULL, G_CALLBACK(CmEditMenuCB), MenuIdEditFlipVertically, NULL, "/Edit/FlipVertically", }, { ACTION_TYPE_TOGGLE, "ViewToggleSingleWindowModeAction", NULL, N_("Single window mode"), N_("Single window mode"), N_("Toggle single window mode"), G_CALLBACK(CmToggleSingleWindowMode), 0, NULL, "/View/Single window mode", }, { ACTION_TYPE_TOGGLE, "ViewToggleDataWindowAction", NULL, "Data Window", "Data Window", N_("Activate Data Window"), G_CALLBACK(CmFileWindow), 0, NGRAPH_FILEWIN_ICON_FILE, "/View/Data Window", GDK_KEY_F3, 0, }, { ACTION_TYPE_TOGGLE, "ViewToggleAxisWindowAction", NULL, "Axis Window", "Axis Window", N_("Activate Axis Window"), G_CALLBACK(CmAxisWindow), 0, NGRAPH_AXISWIN_ICON_FILE, "/View/Axis Window", GDK_KEY_F4, 0, }, { ACTION_TYPE_TOGGLE, "ViewToggleLegendWindowAction", NULL, "Legend Window", "Legend Window", N_("Activate Legend Window"), G_CALLBACK(CmLegendWindow), 0, NGRAPH_LEGENDWIN_ICON_FILE, "/View/Legend Window", GDK_KEY_F5, 0, }, { ACTION_TYPE_TOGGLE, "ViewToggleMergeWindowAction", NULL, "Merge Window", "Merge Window", N_("Activate Merge Window"), G_CALLBACK(CmMergeWindow), 0, NGRAPH_MERGEWIN_ICON_FILE, "/View/Merge Window", GDK_KEY_F6, 0, }, { ACTION_TYPE_TOGGLE, "ViewToggleCoordinateWindowAction", NULL, "Coordinate Window", "Coordinate Window", N_("Activate Coordinate Window"), G_CALLBACK(CmCoordinateWindow), 0, NGRAPH_COORDWIN_ICON_FILE, "/View/Coordinate Window", GDK_KEY_F7, 0, }, { ACTION_TYPE_TOGGLE, "ViewToggleInformationWindowAction", NULL, "Information Window", "Information Window", N_("Activate Information Window"), G_CALLBACK(CmInformationWindow), 0, NGRAPH_INFOWIN_ICON_FILE, "/View/Information Window", GDK_KEY_F8, 0, }, { ACTION_TYPE_NORMAL, "ViewDrawAction", NULL, N_("_Draw"), N_("Draw"), N_("Draw on Viewer Window"), G_CALLBACK(CmViewerDraw), TRUE, NGRAPH_DRAW_ICON_FILE, "/View/Draw", GDK_KEY_d, GDK_CONTROL_MASK, }, { ACTION_TYPE_NORMAL, "ViewDrawDirectAction", NULL, N_("_Draw"), N_("Draw"), N_("Draw on Viewer Window"), G_CALLBACK(CmViewerDraw), FALSE, NGRAPH_DRAW_ICON_FILE, "/View/DrawDirect", }, { ACTION_TYPE_NORMAL, "ViewClearAction", GTK_STOCK_CLEAR, NULL, N_("Clear Image"), N_("Clear Viewer Window"), G_CALLBACK(CmViewerClear), 0, NULL, "/View/Clear", GDK_KEY_e, GDK_CONTROL_MASK, }, { ACTION_TYPE_NORMAL, "ViewDefaultWindowConfigAction", NULL, N_("default _Window config"), NULL, NULL, G_CALLBACK(CmReloadWindowConfig), 0, NULL, "/View/default Window config", }, { ACTION_TYPE_NORMAL, "ViewClearInformationWindowAction", NULL, N_("_Clear information view"), NULL, NULL, G_CALLBACK(clear_information), 0, NULL, "/View/Clear information window", }, { ACTION_TYPE_TOGGLE, "ViewSidebarAction", NULL, N_("_Sidebar"), NULL, NULL, G_CALLBACK(toggle_view_cb), MenuIdToggleSidebar, NULL, "/View/Sidebar", }, { ACTION_TYPE_TOGGLE, "ViewStatusbarAction", NULL, N_("_Statusbar"), NULL, NULL, G_CALLBACK(toggle_view_cb), MenuIdToggleStatusbar, NULL, "/View/Statusbar", }, { ACTION_TYPE_TOGGLE, "ViewRulerAction", NULL, N_("_Ruler"), NULL, NULL, G_CALLBACK(toggle_view_cb), MenuIdToggleRuler, NULL, "/View/Ruler", }, { ACTION_TYPE_TOGGLE, "ViewScrollbarAction", NULL, N_("_Scrollbar"), NULL, NULL, G_CALLBACK(toggle_view_cb), MenuIdToggleScrollbar, NULL, "/View/Scrollbar", }, { ACTION_TYPE_TOGGLE, "ViewCommandToolbarAction", NULL, N_("_Command toolbar"), NULL, NULL, G_CALLBACK(toggle_view_cb), MenuIdToggleCToolbar, NULL, "/View/Command toolbar", }, { ACTION_TYPE_TOGGLE, "ViewToolboxAction", NULL, N_("_Toolbox"), NULL, NULL, G_CALLBACK(toggle_view_cb), MenuIdTogglePToolbar, NULL, "/View/Toolbox", }, { ACTION_TYPE_TOGGLE, "ViewCrossGaugeAction", NULL, N_("cross _Gauge"), NULL, NULL, G_CALLBACK(toggle_view_cb), MenuIdToggleCrossGauge, NULL, "/View/cross Gauge", GDK_KEY_g, GDK_CONTROL_MASK, }, { ACTION_TYPE_NORMAL, "DataNewAction", NULL, N_("_New"), NULL, NULL, G_CALLBACK(CmFileNew), 0, NULL, "/Data/New", }, { ACTION_TYPE_NORMAL, "DataAddAction", GTK_STOCK_FILE, N_("_Add"), N_("Add Data"), N_("Add Data file"), G_CALLBACK(CmFileOpen), 0, NULL, "/Data/Add", GDK_KEY_o, GDK_CONTROL_MASK, }, { ACTION_TYPE_RECENT, "DataRecentAction", NULL, N_("_Recent data"), NULL, NULL, NULL, RECENT_TYPE_DATA, }, { ACTION_TYPE_NORMAL, "DataPropertyAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(CmFileUpdate), 0, NULL, "/Data/Property", }, { ACTION_TYPE_NORMAL, "DataCloseAction", GTK_STOCK_CLOSE, NULL, NULL, NULL, G_CALLBACK(CmFileClose), 0, NULL, "/Data/Close", }, { ACTION_TYPE_NORMAL, "DataEditAction", GTK_STOCK_EDIT, NULL, NULL, NULL, G_CALLBACK(CmFileEdit), 0, NULL, "/Data/Edit", }, { ACTION_TYPE_NORMAL, "DataSaveAction", NULL, N_("_Save data"), NULL, NULL, G_CALLBACK(CmFileSaveData), 0, NULL, "/Data/Save data", }, { ACTION_TYPE_NORMAL, "DataMathAction", NULL, N_("_Math Transformation"), N_("Math Transformation"), N_("Set Math Transformation"), G_CALLBACK(CmFileMath), 0, NGRAPH_MATH_ICON_FILE, "/Data/Math", }, { ACTION_TYPE_NORMAL, "AxisAddAction", GTK_STOCK_ADD, NULL, NULL, }, { ACTION_TYPE_NORMAL, "AxisAddFrameAction", NULL, N_("_Frame graph"), NULL, NULL, G_CALLBACK(CmAxisNewFrame), 0, NGRAPH_FRAME_ICON_FILE, "/Axis/Add/Frame graph", }, { ACTION_TYPE_NORMAL, "AxisAddSectionAction", NULL, N_("_Section graph"), NULL, NULL, G_CALLBACK(CmAxisNewSection), 0, NGRAPH_SECTION_ICON_FILE, "/Axis/Add/Section graph", }, { ACTION_TYPE_NORMAL, "AxisAddCrossAction", NULL, N_("_Cross graph"), NULL, NULL, G_CALLBACK(CmAxisNewCross), 0, NGRAPH_CROSS_ICON_FILE, "/Axis/Add/Cross graph", }, { ACTION_TYPE_NORMAL, "AxisAddSingleAction", NULL, N_("Single _Axis"), NULL, NULL, G_CALLBACK(CmAxisNewSingle), 0, NGRAPH_SINGLE_ICON_FILE, "/Axis/Add/Single axis", }, { ACTION_TYPE_NORMAL, "AxisPropertyAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(CmAxisUpdate), 0, NULL, "/Axis/Property", }, { ACTION_TYPE_NORMAL, "AxisDeleteAction", GTK_STOCK_DELETE, NULL, NULL, NULL, G_CALLBACK(CmAxisDel), 0, NULL, "/Axis/Delete", }, { ACTION_TYPE_NORMAL, "AxisScaleZoomAction", NULL, N_("Scale _Zoom"), NULL, NULL, G_CALLBACK(CmAxisZoom), 0, NULL, "/Axis/Scale Zoom", }, { ACTION_TYPE_NORMAL, "AxisScaleClearAction", NULL, N_("Scale _Clear"), N_("Clear Scale"), N_("Clear Scale"), G_CALLBACK(CmAxisClear), 0, NGRAPH_SCALE_ICON_FILE, "/Axis/Scale Clear", GDK_KEY_c, GDK_SHIFT_MASK | GDK_CONTROL_MASK, }, { ACTION_TYPE_NORMAL, "AxisScaleUndoAction", GTK_STOCK_UNDO, N_("Scale _Undo"), N_("Scale Undo"), N_("Undo Scale Settings"), G_CALLBACK(CmAxisScaleUndo), 0, NULL, "/Axis/Scale Undo", }, { ACTION_TYPE_NORMAL, "AxisGridAction", NULL, N_("_Grid"), NULL, }, { ACTION_TYPE_NORMAL, "AxisGridNewAction", GTK_STOCK_ADD, NULL, NULL, NULL, G_CALLBACK(CmAxisGridNew), 0, NULL, "/Axis/Grid/Add", }, { ACTION_TYPE_NORMAL, "AxisGridPropertyAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(CmAxisGridUpdate), 0, NULL, "/Axis/Grid/Property", }, { ACTION_TYPE_NORMAL, "AxisGridDeleteAction", GTK_STOCK_DELETE, NULL, NULL, NULL, G_CALLBACK(CmAxisGridDel), 0, NULL, "/Axis/Grid/Delete", }, { ACTION_TYPE_NORMAL, "MergeAddAction", GTK_STOCK_ADD, NULL, NULL, NULL, G_CALLBACK(CmMergeOpen), 0, NULL, "/Merge/Add", }, { ACTION_TYPE_NORMAL, "MergePropertyAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(CmMergeUpdate), 0, NULL, "/Merge/Property", }, { ACTION_TYPE_NORMAL, "MergeCloseAction", GTK_STOCK_CLOSE, NULL, NULL, NULL, G_CALLBACK(CmMergeClose), 0, NULL, "/Merge/Close", }, { ACTION_TYPE_NORMAL, "LegendPathMenuAction", NULL, N_("_Path"), NULL, NULL, NULL, 0, NGRAPH_LINE_ICON_FILE, }, { ACTION_TYPE_NORMAL, "LegendRectangleMenuAction", NULL, N_("_Rectangle"), NULL, NULL, NULL, 0, NGRAPH_RECT_ICON_FILE, }, { ACTION_TYPE_NORMAL, "LegendArcMenuAction", NULL, N_("_Arc"), NULL, NULL, NULL, 0, NGRAPH_ARC_ICON_FILE, }, { ACTION_TYPE_NORMAL, "LegendMarkMenuAction", NULL, N_("_Mark"), NULL, NULL, NULL, 0, NGRAPH_MARK_ICON_FILE, }, { ACTION_TYPE_NORMAL, "LegendTextMenuAction", NULL, N_("_Text"), NULL, NULL, NULL, 0, NGRAPH_TEXT_ICON_FILE, }, { ACTION_TYPE_NORMAL, "LegendPathPropertyAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(CmLineUpdate), 0, NULL, "/Legend/Path/Property", }, { ACTION_TYPE_NORMAL, "LegendPathDeleteAction", GTK_STOCK_DELETE, NULL, NULL, NULL, G_CALLBACK(CmLineDel), 0, NULL, "/Legend/Path/Delete", }, { ACTION_TYPE_NORMAL, "LegendRectanglePropertyAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(CmRectUpdate), 0, NULL, "/Legend/Rectangle/Property", }, { ACTION_TYPE_NORMAL, "LegendRectangleDeleteAction", GTK_STOCK_DELETE, NULL, NULL, NULL, G_CALLBACK(CmRectDel), 0, NULL, "/Legend/Rectangle/Delete", }, { ACTION_TYPE_NORMAL, "LegendArcPropertyAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(CmArcUpdate), 0, NULL, "/Legend/Arc/Property", }, { ACTION_TYPE_NORMAL, "LegendArcDeleteAction", GTK_STOCK_DELETE, NULL, NULL, NULL, G_CALLBACK(CmArcDel), 0, NULL, "/Legend/Arc/Delete", }, { ACTION_TYPE_NORMAL, "LegendMarkPropertyAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(CmMarkUpdate), 0, NULL, "/Legend/Mark/Property", }, { ACTION_TYPE_NORMAL, "LegendMarkDeleteAction", GTK_STOCK_DELETE, NULL, NULL, NULL, G_CALLBACK(CmMarkDel), 0, NULL, "/Legend/Mark/Delete", }, { ACTION_TYPE_NORMAL, "LegendTextPropertyAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(CmTextUpdate), 0, NULL, "/Legend/Text/Property", }, { ACTION_TYPE_NORMAL, "LegendTextDeleteAction", GTK_STOCK_DELETE, NULL, NULL, NULL, G_CALLBACK(CmTextDel), 0, NULL, "/Legend/Text/Delete", }, { ACTION_TYPE_NORMAL, "PreferenceViewerAction", NULL, N_("_Viewer"), NULL, NULL, G_CALLBACK(CmOptionViewer), 0, NULL, "/Preference/Viewer", }, { ACTION_TYPE_NORMAL, "PreferenceExternalViewerAction", NULL, N_("_External viewer"), NULL, NULL, G_CALLBACK(CmOptionExtViewer), 0, NULL, "/Preference/External Viewer", }, { ACTION_TYPE_NORMAL, "PreferenceFontAction", NULL, N_("_Font aliases"), NULL, NULL, G_CALLBACK(CmOptionPrefFont), 0, NULL, "/Preference/Font aliases", }, { ACTION_TYPE_NORMAL, "PreferenceAddinAction", NULL, N_("_Add-in script"), NULL, NULL, G_CALLBACK(CmOptionScript), 0, NULL, "/Preference/Addin Script", }, { ACTION_TYPE_NORMAL, "PreferenceMiscAction", NULL, N_("_Miscellaneous"), NULL, NULL, G_CALLBACK(CmOptionMisc), 0, NULL, "/Preference/Miscellaneous", }, { ACTION_TYPE_NORMAL, "PreferenceSaveSettingAction", NULL, N_("save as default (_Settings)"), NULL, NULL, G_CALLBACK(CmOptionSaveDefault), 0, NULL, "/Preference/save as default (Settings)", }, { ACTION_TYPE_NORMAL, "PreferenceSaveGraphAction", NULL, N_("save as default (_Graph)"), NULL, NULL, G_CALLBACK(CmOptionSaveNgp), 0, NULL, "/Preference/save as default (Graph)", }, { ACTION_TYPE_NORMAL, "PreferenceDataDefaultAction", NULL, N_("_Data file default"), NULL, NULL, G_CALLBACK(CmOptionFileDef), 0, NULL, "/Preference/Data file default", }, { ACTION_TYPE_NORMAL, "PreferenceTextDefaultAction", NULL, N_("_Legend text default"), NULL, NULL, G_CALLBACK(CmOptionTextDef), 0, NULL, "/Preference/Legend text default", }, { ACTION_TYPE_NORMAL, "HelpHelpAction", GTK_STOCK_HELP, NULL, NULL, NULL, G_CALLBACK(CmHelpHelp), 0, NULL, "/Help/Help", GDK_KEY_F1, 0, }, { ACTION_TYPE_NORMAL, "HelpAboutAction", GTK_STOCK_ABOUT, NULL, NULL, NULL, G_CALLBACK(CmHelpAbout), 0, NULL, "/Help/About", }, { ACTION_TYPE_NORMAL, "PopupUpdateAction", GTK_STOCK_PROPERTIES, NULL, NULL, NULL, G_CALLBACK(ViewerUpdateCB), 0, NULL, "/Popup/Update", GDK_KEY_Return, }, { ACTION_TYPE_RADIO, "ToolboxPointAction", NULL, N_("Point"), N_("Pointer"), N_("Legend and Axis Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: Fine)"), G_CALLBACK(CmViewerButtonArm), PointB, NGRAPH_POINT_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxLegendAction", NULL, N_("Legend"), N_("Legend Pointer"), N_("Legend Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: Fine)"), G_CALLBACK(CmViewerButtonArm), LegendB, NGRAPH_LEGENDPOINT_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxAxisAction", NULL, N_("Axis"), N_("Axis Pointer"), N_("Axis Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: Fine)"), G_CALLBACK(CmViewerButtonArm), AxisB, NGRAPH_AXISPOINT_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxDataAction", NULL, N_("Data"), N_("Data Pointer"), N_("Data Pointer"), G_CALLBACK(CmViewerButtonArm), DataB, NGRAPH_DATAPOINT_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxPathAction", NULL, N_("Path"), N_("Path"), N_("New Legend Path (+SHIFT: Fine +CONTROL: snap angle)"), G_CALLBACK(CmViewerButtonArm), PathB, NGRAPH_LINE_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxRectangleAction", NULL, N_("Rectangle"), N_("Rectangle"), N_("New Legend Rectangle (+SHIFT: Fine +CONTROL: square integer ratio rectangle)"), G_CALLBACK(CmViewerButtonArm), RectB, NGRAPH_RECT_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxArcAction", NULL, N_("Arc"), N_("Arc"), N_("New Legend Arc (+SHIFT: Fine +CONTROL: circle or integer ratio ellipse)"), G_CALLBACK(CmViewerButtonArm), ArcB, NGRAPH_ARC_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxMarkAction", NULL, N_("Mark"), N_("Mark"), N_("New Legend Mark (+SHIFT: Fine)"), G_CALLBACK(CmViewerButtonArm), MarkB, NGRAPH_MARK_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxTextAction", NULL, N_("Text"), N_("Text"), N_("New Legend Text (+SHIFT: Fine)"), G_CALLBACK(CmViewerButtonArm), TextB, NGRAPH_TEXT_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxGaussAction", NULL, N_("Gauss"), N_("Gaussian"), N_("New Legend Gaussian (+SHIFT: Fine +CONTROL: integer ratio)"), G_CALLBACK(CmViewerButtonArm), GaussB, NGRAPH_GAUSS_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxFrameAction", NULL, N_("Frame axis"), N_("Frame Graph"), N_("New Frame Graph (+SHIFT: Fine +CONTROL: integer ratio)"), G_CALLBACK(CmViewerButtonArm), FrameB, NGRAPH_FRAME_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxSectionAction", NULL, N_("Section axis"), N_("Section Graph"), N_("New Section Graph (+SHIFT: Fine +CONTROL: integer ratio)"), G_CALLBACK(CmViewerButtonArm), SectionB, NGRAPH_SECTION_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxCrossAction", NULL, N_("Cross axis"), N_("Cross Graph"), N_("New Cross Graph (+SHIFT: Fine +CONTROL: integer ratio)"), G_CALLBACK(CmViewerButtonArm), CrossB, NGRAPH_CROSS_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxSingleAction", NULL, N_("Single axis"), N_("Single Axis"), N_("New Single Axis (+SHIFT: Fine +CONTROL: snap angle)"), G_CALLBACK(CmViewerButtonArm), SingleB, NGRAPH_SINGLE_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxTrimmingAction", NULL, N_("Trimming"), N_("Axis Trimming"), N_("Axis Trimming (+SHIFT: Fine)"), G_CALLBACK(CmViewerButtonArm), TrimB, NGRAPH_TRIMMING_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxEvaluateAction", NULL, N_("Evaluate"), N_("Evaluate Data"), N_("Evaluate Data Point"), G_CALLBACK(CmViewerButtonArm), EvalB, NGRAPH_EVAL_ICON_FILE, }, { ACTION_TYPE_RADIO, "ToolboxZoomAction", NULL, N_("Zoom"), N_("Viewer Zoom"), N_("Viewer Zoom-In (+CONTROL: Zoom-Out +SHIFT: Centering)"), G_CALLBACK(CmViewerButtonArm), ZoomB, NGRAPH_ZOOM_ICON_FILE, }, }; GdkColor white, gray; void set_current_window(GtkWidget *w) { CurrentWindow = w; } GtkWidget * get_current_window(void) { return (CurrentWindow) ? CurrentWindow : TopLevel; } void menu_lock(int lock) { GtkWidget *w; static int count = 0; if (lock) { count++; } else { count--; } if (count > 0) { Menulock = TRUE; } else { Menulock = FALSE; count = 0; } if (NgraphApp.Viewer.menu == NULL) { return; } gtk_widget_set_sensitive(NgraphApp.Viewer.menu, ! Menulock); w = gtk_paned_get_child1(GTK_PANED(NgraphApp.Viewer.main_pane)); if (w) { gtk_widget_set_sensitive(w, ! Menulock); } } void set_axis_undo_button_sensitivity(int state) { static GtkAction *axis_undo = NULL; if (axis_undo == NULL){ axis_undo = gtk_action_group_get_action(ActionGroup, "AxisScaleUndoAction"); } gtk_action_set_sensitive(axis_undo, state); } void set_draw_lock(int lock) { DrawLock = lock; } #ifndef WINDOWS static void kill_signal_handler(int sig) { Hide_window = APP_QUIT; } static void term_signal_handler(int sig) { Hide_window = APP_QUIT_FORCE; } #endif /* WINDOWS */ static int AppMainLoop(void) { Hide_window = APP_CONTINUE; while (TRUE) { NgraphApp.Interrupt = FALSE; gtk_main_iteration(); if (Hide_window != APP_CONTINUE && ! gtk_events_pending()) { int state = Hide_window; Hide_window = APP_CONTINUE; switch (state) { case APP_QUIT: if (CheckSave()) { return 0; } break; case APP_QUIT_FORCE: return 1; } } } return 0; } void reset_event(void) { while (gtk_events_pending()) { gtk_main_iteration(); } } struct WmStateHint { unsigned long state; GtkWindow icon; }; static gboolean CloseCallback(GtkWidget *w, GdkEvent *event, gpointer user_data) { CmGraphQuit(NULL, user_data); return TRUE; } void QuitGUI(void) { if (TopLevel) { Hide_window = TRUE; } } int find_gra2gdk_inst(struct objlist **o, N_VALUE **i, struct objlist **ro, int *routput, struct gra2cairo_local **rlocal) { static struct objlist *obj = NULL, *robj = NULL; static int pos; N_VALUE *inst = NULL; int id; if (obj == NULL) { obj = chkobject("gra2gdk"); pos = getobjtblpos(obj, "_output", &robj); } if (obj == NULL) return FALSE; inst = chkobjinst(obj, 0); if (inst == NULL) { id = newobj(obj); if (id < 0) return FALSE; inst = chkobjinst(obj, 0); } if (inst == NULL) { return FALSE; } _getobj(obj, "_local", inst, rlocal); *routput = pos; *i = inst; *o = obj; *ro = robj; return TRUE; } void create_addin_menu(void) { GtkWidget *menu, *item, *parent; struct script *fcur; parent = gtk_ui_manager_get_widget(NgraphUi, "/MenuBar/GraphMenu/GraphAddin"); if (parent == NULL) { return; } gtk_widget_set_sensitive(parent, Menulocal.scriptroot != NULL); if (Menulocal.scriptroot == NULL) { return; } menu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(parent)); if (menu) { gtk_widget_destroy(menu); } menu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(parent), menu); fcur = Menulocal.scriptroot; while (fcur) { if (fcur->name && fcur->script) { item = gtk_menu_item_new_with_mnemonic(fcur->name); g_signal_connect(item, "activate", G_CALLBACK(script_exec), fcur); gtk_menu_shell_append(GTK_MENU_SHELL(menu), GTK_WIDGET(item)); if (Menulocal.showtip && fcur->description) { gtk_widget_set_tooltip_text(item, fcur->description); } } fcur = fcur->next; } gtk_widget_show_all(menu); } static void set_action_sensitivity(struct actions *actions, int *focus_type, int n) { int i; for (i = 0; i < n; i++) { gtk_action_set_sensitive(actions[i].action, focus_type[actions[i].type]); } } static void set_focus_sensitivity_sub(const struct Viewer *d, int insensitive) { int num, type; GtkClipboard *clip; gboolean state; struct actions actions[] = { {"EditCutAction" , NULL, FOCUS_TYPE_1}, {"EditCopyAction" , NULL, FOCUS_TYPE_1}, {"EditRotateCCWAction" , NULL, FOCUS_TYPE_2}, {"EditRotateCWAction" , NULL, FOCUS_TYPE_2}, {"EditFlipVActiopn" , NULL, FOCUS_TYPE_3}, {"EditFlipHAction" , NULL, FOCUS_TYPE_3}, {"EditDeleteAction" , NULL, FOCUS_TYPE_4}, {"EditDuplicateAction" , NULL, FOCUS_TYPE_4}, {"EditAlignLeftAction" , NULL, FOCUS_TYPE_4}, {"EditAlignRightAction" , NULL, FOCUS_TYPE_4}, {"EditAlignHCenterAction" , NULL, FOCUS_TYPE_4}, {"EditAlignTopAction" , NULL, FOCUS_TYPE_4}, {"EditAlignBottomAction" , NULL, FOCUS_TYPE_4}, {"EditAlignVCenterAction" , NULL, FOCUS_TYPE_4}, {"EditOrderTopAction" , NULL, FOCUS_TYPE_5}, {"EditOrderUpAction" , NULL, FOCUS_TYPE_5}, {"EditOrderDownAction" , NULL, FOCUS_TYPE_6}, {"EditOrderBottomAction" , NULL, FOCUS_TYPE_6}, {"PopupUpdateAction" , NULL, FOCUS_TYPE_4}, }; struct actions edit_paste_action = {"EditPasteAction", NULL}; int focus_type[FOCUS_TYPE_NUM], i, n; n = sizeof(actions) / sizeof(*actions); if (actions[0].action == NULL) { for (i = 0; i < n; i++) { actions[i].action = gtk_action_group_get_action(ActionGroup, actions[i].name); } edit_paste_action.action = gtk_action_group_get_action(ActionGroup, edit_paste_action.name); } num = check_focused_obj_type(d, &type); if (insensitive) { focus_type[FOCUS_TYPE_1] = FALSE; focus_type[FOCUS_TYPE_2] = FALSE; focus_type[FOCUS_TYPE_3] = FALSE; focus_type[FOCUS_TYPE_4] = FALSE; focus_type[FOCUS_TYPE_5] = FALSE; focus_type[FOCUS_TYPE_6] = FALSE; set_action_sensitivity(actions, focus_type, n); gtk_action_set_sensitive(edit_paste_action.action, FALSE); return; } focus_type[FOCUS_TYPE_1] = (! (type & FOCUS_OBJ_TYPE_AXIS) && (type & (FOCUS_OBJ_TYPE_MERGE | FOCUS_OBJ_TYPE_LEGEND))); focus_type[FOCUS_TYPE_2] = (! (type & FOCUS_OBJ_TYPE_MERGE) && (type & (FOCUS_OBJ_TYPE_AXIS | FOCUS_OBJ_TYPE_LEGEND))); focus_type[FOCUS_TYPE_3] = (! (type & (FOCUS_OBJ_TYPE_MERGE | FOCUS_OBJ_TYPE_TEXT)) && (type & (FOCUS_OBJ_TYPE_AXIS | FOCUS_OBJ_TYPE_LEGEND))); focus_type[FOCUS_TYPE_4] = (num > 0); focus_type[FOCUS_TYPE_5] = FALSE; focus_type[FOCUS_TYPE_6] = FALSE; if (num == 1 && (type & (FOCUS_OBJ_TYPE_LEGEND | FOCUS_OBJ_TYPE_MERGE))) { int id, last_id; struct FocusObj *focus; focus= * (struct FocusObj **) arraynget(d->focusobj, 0); id = chkobjoid(focus->obj, focus->oid); last_id = chkobjlastinst(focus->obj); focus_type[FOCUS_TYPE_5] = (id > 0); focus_type[FOCUS_TYPE_6] = (id < last_id); } set_action_sensitivity(actions, focus_type, n); clip = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); state = gtk_clipboard_wait_is_text_available(clip); switch (d->Mode) { case PointB: case LegendB: gtk_action_set_sensitive(edit_paste_action.action, state); break; default: gtk_action_set_sensitive(edit_paste_action.action, FALSE); } } void set_focus_insensitive(const struct Viewer *d) { set_focus_sensitivity_sub(d, TRUE); } void set_focus_sensitivity(const struct Viewer *d) { set_focus_sensitivity_sub(d, FALSE); } static void clear_information(GtkAction *w, gpointer user_data) { InfoWinClear(); } static char * get_home(void) { struct objlist *sysobj; N_VALUE *inst; char *home; sysobj = chkobject("system"); inst = chkobjinst(sysobj, 0); _getobj(sysobj, "home_dir", inst, &home); return home; } static void read_keymap_file(void) { char *home, *filename; home = get_home(); if (home == NULL) { filename = g_strdup_printf("%s/%s", home, KEYMAP_FILE); if (naccess(filename, R_OK) == 0) { gtk_accel_map_load(filename); g_free(filename); return; } g_free(filename); } filename = g_strdup_printf("%s/%s", CONFDIR, KEYMAP_FILE); if (naccess(filename, R_OK) == 0) { gtk_accel_map_load(filename); } g_free(filename); } static int create_ui_from_file(const gchar *ui_file) { GError *err; char *home, *filename; int id; home = get_home(); if (home) { filename = g_strdup_printf("%s/%s", home, ui_file); if (naccess(filename, R_OK) == 0) { id = gtk_ui_manager_add_ui_from_file(NgraphUi, filename, &err); g_free(filename); return id; } g_free(filename); } filename = g_strdup_printf("%s/%s", CONFDIR, ui_file); if (naccess(filename, R_OK) == 0) { id = gtk_ui_manager_add_ui_from_file(NgraphUi, filename, &err); g_free(filename); return id; } g_free(filename); return -1; } static void create_markpixmap(GtkWidget *win) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_t *pix; #else GdkPixmap *pix; #endif int gra, i, R, G, B, R2, G2, B2, found, output; struct objlist *obj, *robj; N_VALUE *inst; struct gra2cairo_local *local; GdkWindow *window; R = G = B = 0; R2 = 0; G2 = B2 = 255; window = gtk_widget_get_window(win); found = find_gra2gdk_inst(&obj, &inst, &robj, &output, &local); for (i = 0; i < MARK_TYPE_NUM; i++) { pix = NULL; if (window && found) { #if GTK_CHECK_VERSION(3, 0, 0) pix = gra2gdk_create_pixmap(local, MARK_PIX_SIZE, MARK_PIX_SIZE, 1.0, 1.0, 1.0); #else pix = gra2gdk_create_pixmap(local, window, MARK_PIX_SIZE, MARK_PIX_SIZE, 1.0, 1.0, 1.0); #endif if (pix) { gra = _GRAopen("gra2gdk", "_output", robj, inst, output, -1, -1, -1, NULL, local); if (gra >= 0) { GRAview(gra, 0, 0, MARK_PIX_SIZE, MARK_PIX_SIZE, 0); GRAlinestyle(gra, 0, NULL, 1, GRA_LINE_CAP_BUTT, GRA_LINE_JOIN_MITER, 1000); GRAmark(gra, i, MARK_PIX_SIZE / 2, MARK_PIX_SIZE / 2, MARK_PIX_SIZE - 4, R, G, B, 255, R2, G2, B2, 255); } _GRAclose(gra); } } NgraphApp.markpix[i] = pix; } } static void free_markpixmap(void) { int i; for (i = 0; i < MARK_TYPE_NUM; i++) { if (NgraphApp.markpix[i]) { #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_destroy(NgraphApp.markpix[i]); #else g_object_unref(NgraphApp.markpix[i]); #endif } NgraphApp.markpix[i] = NULL; } } static void create_icon(void) { GList *tmp, *list = NULL; GdkPixbuf *pixbuf; pixbuf = gdk_pixbuf_new_from_xpm_data(Icon_xpm); list = g_list_append(list, pixbuf); pixbuf = gdk_pixbuf_new_from_xpm_data(Icon_xpm_64); list = g_list_append(list, pixbuf); gtk_window_set_default_icon_list(list); gtk_window_set_icon_list(GTK_WINDOW(TopLevel), list); tmp = list; while (tmp) { g_object_unref(tmp->data); tmp = tmp->next; } g_list_free(list); } static int create_cursor(void) { unsigned int i; NgraphApp.cursor = g_malloc(sizeof(GdkCursor *) * CURSOR_TYPE_NUM); if (NgraphApp.cursor == NULL) return 1; for (i = 0; i < CURSOR_TYPE_NUM; i++) { NgraphApp.cursor[i] = gdk_cursor_new(Cursor[i]); } return 0; } static void free_cursor(void) { unsigned int i; for (i = 0; i < CURSOR_TYPE_NUM; i++) { #if GTK_CHECK_VERSION(3, 0,0) g_object_unref(NgraphApp.cursor[i]); #else gdk_cursor_unref(NgraphApp.cursor[i]); #endif NgraphApp.cursor[i] = NULL; } g_free(NgraphApp.cursor); NgraphApp.cursor = NULL; } static gboolean tool_button_enter_leave_cb(GtkWidget *w, GdkEventCrossing *e, gpointer data) { char *str; str = (char *) data; if (e->type == GDK_ENTER_NOTIFY) { SetStatusBar(str); } else { ResetStatusBar(); } return FALSE; } #if ! GTK_CHECK_VERSION(3, 4, 0) static void detach_toolbar(GtkHandleBox *handlebox, GtkWidget *widget, gpointer user_data) { gtk_toolbar_set_show_arrow(GTK_TOOLBAR(widget), GPOINTER_TO_INT(user_data)); } static GtkWidget * create_toolbar_box(GtkWidget *box, GtkWidget *t, GtkOrientation o) { GtkWidget *w; GtkPositionType p; if (t == NULL) { return NULL; } if (o == GTK_ORIENTATION_HORIZONTAL) { p = GTK_POS_LEFT; } else { p = GTK_POS_TOP; } gtk_toolbar_set_style(GTK_TOOLBAR(t), GTK_TOOLBAR_ICONS); gtk_toolbar_set_show_arrow(GTK_TOOLBAR(t), TRUE); gtk_orientable_set_orientation(GTK_ORIENTABLE(t), o); w = gtk_handle_box_new(); g_signal_connect(w, "child-attached", G_CALLBACK(detach_toolbar), GINT_TO_POINTER(TRUE)); g_signal_connect(w, "child-detached", G_CALLBACK(detach_toolbar), GINT_TO_POINTER(FALSE)); gtk_handle_box_set_handle_position(GTK_HANDLE_BOX(w), p); gtk_container_add(GTK_CONTAINER(w), t); gtk_box_pack_start(GTK_BOX(box), w, FALSE, FALSE, 0); return w; } #endif static GtkWidget * create_message_box(GtkWidget **label1, GtkWidget **label2) { GtkWidget *frame, *w, *hbox; frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = gtk_label_new(NULL); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_halign(w, GTK_ALIGN_END); #else gtk_misc_set_alignment(GTK_MISC(w), 1.0, 0.5); #endif gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); *label1 = w; w = gtk_label_new(NULL); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_halign(w, GTK_ALIGN_START); #else gtk_misc_set_alignment(GTK_MISC(w), 0, 0.5); #endif gtk_label_set_width_chars(GTK_LABEL(w), 16); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); *label2 = w; gtk_container_add(GTK_CONTAINER(frame), hbox); return frame; } static void set_toolbar_caption(GtkToolItem *item) { GtkAction *action; const gchar *caption; action = gtk_activatable_get_related_action(GTK_ACTIVATABLE(item)); if (action == NULL) { return; } caption = g_object_get_data(G_OBJECT(action), "caption"); if (caption == NULL) { return; } g_signal_connect(gtk_bin_get_child(GTK_BIN(item)), "enter-notify-event", G_CALLBACK(tool_button_enter_leave_cb), _(caption)); g_signal_connect(gtk_bin_get_child(GTK_BIN(item)), "leave-notify-event", G_CALLBACK(tool_button_enter_leave_cb), NULL); } static void set_btn_press_cb(GtkToolItem *item, GCallback btn_press_func) { GtkAction *action; action = gtk_activatable_get_related_action(GTK_ACTIVATABLE(item)); if (action == NULL) { return; } g_signal_connect(gtk_bin_get_child(GTK_BIN(item)), "button-press-event", btn_press_func, NULL); } static GtkWidget * get_toolbar(GtkUIManager *ui, const gchar *path, GCallback btn_press_func) { GtkWidget *w; GtkToolItem *item; int n, i; w = gtk_ui_manager_get_widget(ui, path); if (w == NULL) { return NULL; } n = gtk_toolbar_get_n_items(GTK_TOOLBAR(w)); for (i = 0; i < n; i++) { item = gtk_toolbar_get_nth_item(GTK_TOOLBAR(w), i); set_toolbar_caption(item); if (btn_press_func) { set_btn_press_cb(item, btn_press_func); } } return w; } static void set_window_action_visibility(int visibility) { char *name1[] = { "ViewToggleDataWindowAction", "ViewToggleAxisWindowAction", "ViewToggleLegendWindowAction", "ViewToggleMergeWindowAction", "ViewToggleInformationWindowAction", "ViewToggleCoordinateWindowAction", "ViewDefaultWindowConfigAction", }; char *name2[] = { "ViewSidebarAction", }; GtkAction *action; unsigned int i; for (i = 0; i < sizeof(name1) / sizeof(*name1); i++) { action = gtk_action_group_get_action(ActionGroup, name1[i]); gtk_action_set_visible(action, visibility); } for (i = 0; i < sizeof(name2) / sizeof(*name2); i++) { action = gtk_action_group_get_action(ActionGroup, name2[i]); gtk_action_set_visible(action, ! visibility); } } #define OBJ_ID_KEY "ngraph_object_id" static void window_to_tab(struct SubWin *win, GtkWidget *tab, const char *icon_file, const char *tip) { GtkWidget *w, *icon, *dialog; int obj_id; obj_id = chkobjectid(win->data.data->obj); dialog = win->Win; w = gtk_bin_get_child(GTK_BIN(dialog)); g_object_ref(w); g_object_set_data(G_OBJECT(w), OBJ_ID_KEY, GINT_TO_POINTER(obj_id)); gtk_container_remove(GTK_CONTAINER(dialog), w); icon = gtk_image_new_from_file(icon_file); gtk_widget_set_tooltip_text(icon, tip); gtk_notebook_append_page(GTK_NOTEBOOK(tab), w, icon); gtk_notebook_set_tab_detachable(GTK_NOTEBOOK(tab), w, TRUE); gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(tab), w, TRUE); gtk_notebook_set_menu_label_text(GTK_NOTEBOOK(tab), w, tip); } static void tab_to_window(GtkWidget *dialog, GtkWidget *tab, int page) { GtkWidget *w; w = gtk_notebook_get_nth_page(GTK_NOTEBOOK(tab), page); g_object_ref(w); /* FIXME: can avoid to call of the function? */ gtk_notebook_remove_page(GTK_NOTEBOOK(tab), page); gtk_container_add(GTK_CONTAINER(dialog), w); } static void get_pane_position(void) { Menulocal.main_pane_pos = gtk_paned_get_position(GTK_PANED(NgraphApp.Viewer.main_pane)); Menulocal.side_pane1_pos = gtk_paned_get_position(GTK_PANED(NgraphApp.Viewer.side_pane1)); Menulocal.side_pane2_pos = gtk_paned_get_position(GTK_PANED(NgraphApp.Viewer.side_pane2)); Menulocal.side_pane3_pos = gtk_paned_get_position(GTK_PANED(NgraphApp.Viewer.side_pane3)); } static void set_pane_position(void) { gtk_paned_set_position(GTK_PANED(NgraphApp.Viewer.main_pane), Menulocal.main_pane_pos); gtk_paned_set_position(GTK_PANED(NgraphApp.Viewer.side_pane3), Menulocal.side_pane3_pos); gtk_paned_set_position(GTK_PANED(NgraphApp.Viewer.side_pane1), Menulocal.side_pane1_pos); gtk_paned_set_position(GTK_PANED(NgraphApp.Viewer.side_pane2), Menulocal.side_pane2_pos); } struct obj_tab_info { int tab, order; int *conf; int obj_id; const char *obj_name; }; static int tab_info_compare(const void * a, const void * b) { const struct obj_tab_info *info_a, *info_b; info_a = (const struct obj_tab_info *) a; info_b = (const struct obj_tab_info *) b; return info_a->order + info_a->tab * 100 - info_b->order - info_b->tab * 100; } static void init_tab_info(struct obj_tab_info *info, int n) { int i, position; struct objlist *obj; for (i = 0; i < n; i++) { position = *info[i].conf; if (position > 99) { info[i].tab = 1; } else { info[i].tab = 0; } obj = chkobject(info[i].obj_name); info[i].obj_id = chkobjectid(obj); info[i].order = position % 100; } qsort(info, n, sizeof(*info), tab_info_compare); } static void save_tab_position_sub(GtkWidget *tab, struct obj_tab_info *tab_info, int offset) { int i, n, obj_id; GtkWidget *w; n = gtk_notebook_get_n_pages(GTK_NOTEBOOK(tab)); for (i = 0; i < n; i++){ w = gtk_notebook_get_nth_page(GTK_NOTEBOOK(tab), i); obj_id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), OBJ_ID_KEY)); if (obj_id == tab_info->obj_id) { *tab_info->conf = offset + i; break; } } } static void save_tab_position(void) { int i, n; GtkWidget *tab; struct obj_tab_info tab_info[] = { {0, 0, &Menulocal.file_tab, 0, "file"}, {0, 0, &Menulocal.axis_tab, 0, "axis"}, {0, 0, &Menulocal.merge_tab, 0, "merge"}, {0, 0, &Menulocal.path_tab, 0, "path"}, {0, 0, &Menulocal.rectangle_tab, 0, "rectangle"}, {0, 0, &Menulocal.arc_tab, 0, "arc"}, {0, 0, &Menulocal.mark_tab, 0, "mark"}, {0, 0, &Menulocal.text_tab, 0, "text"}, }; n = sizeof(tab_info) / sizeof(*tab_info); init_tab_info(tab_info, n); for (i = 0; i < n; i++) { tab = gtk_paned_get_child1(GTK_PANED(NgraphApp.Viewer.side_pane2)); save_tab_position_sub(tab, tab_info + i, 0); tab = gtk_paned_get_child2(GTK_PANED(NgraphApp.Viewer.side_pane2)); save_tab_position_sub(tab, tab_info + i, 100); } } static void multi_to_single(void) { int i, j, n, tab_n, obj_id, height, width; struct obj_list_data *obj_data; GtkWidget *legend_tab, *icon, *w, *tab; struct obj_tab_info tab_info[] = { {0, 0, &Menulocal.file_tab, 0, "file"}, {0, 0, &Menulocal.axis_tab, 0, "axis"}, {0, 0, &Menulocal.merge_tab, 0, "merge"}, {0, 0, &Menulocal.path_tab, 0, "path"}, {0, 0, &Menulocal.rectangle_tab, 0, "rectangle"}, {0, 0, &Menulocal.arc_tab, 0, "arc"}, {0, 0, &Menulocal.mark_tab, 0, "mark"}, {0, 0, &Menulocal.text_tab, 0, "text"}, }; tab_n = sizeof(tab_info) / sizeof(*tab_info); init_tab_info(tab_info, tab_n); legend_tab = gtk_bin_get_child(GTK_BIN(NgraphApp.LegendWin.Win)); for (j = 0; j < tab_n; j++) { if (tab_info[j].tab > 0) { tab = gtk_paned_get_child2(GTK_PANED(NgraphApp.Viewer.side_pane2)); } else { tab = gtk_paned_get_child1(GTK_PANED(NgraphApp.Viewer.side_pane2)); } if (strcmp(tab_info[j].obj_name, "file") == 0) { #ifdef WINDOWS char *str; str = g_strdup_printf("%s%s", PIXMAPDIR, NGRAPH_FILEWIN_ICON_FILE); window_to_tab(&NgraphApp.FileWin, tab, str, _("data")); g_free(str); #else window_to_tab(&NgraphApp.FileWin, tab, NGRAPH_FILEWIN_ICON_FILE, _("data")); #endif } else if (strcmp(tab_info[j].obj_name, "axis") == 0) { #ifdef WINDOWS char *str; str = g_strdup_printf("%s%s", PIXMAPDIR, NGRAPH_AXISWIN_ICON_FILE); window_to_tab(&NgraphApp.AxisWin, tab, str, _(tab_info[j].obj_name)); g_free(str); #else window_to_tab(&NgraphApp.AxisWin, tab, NGRAPH_AXISWIN_ICON_FILE, _(tab_info[j].obj_name)); #endif } else if (strcmp(tab_info[j].obj_name, "merge") == 0) { #ifdef WINDOWS char *str; str = g_strdup_printf("%s%s", PIXMAPDIR, NGRAPH_MERGEWIN_ICON_FILE); window_to_tab(&NgraphApp.MergeWin, tab, str, _(tab_info[j].obj_name)); g_free(str); #else window_to_tab(&NgraphApp.MergeWin, tab, NGRAPH_MERGEWIN_ICON_FILE, _(tab_info[j].obj_name)); #endif } else { n = gtk_notebook_get_n_pages(GTK_NOTEBOOK(legend_tab)); for (i = 0; i < n; i++) { w = gtk_notebook_get_nth_page(GTK_NOTEBOOK(legend_tab), i); icon = gtk_notebook_get_tab_label(GTK_NOTEBOOK(legend_tab), w); obj_data = g_object_get_data(G_OBJECT(icon), "ngraph_object_data"); obj_id = chkobjectid(obj_data->obj); if (obj_id == tab_info[j].obj_id) { g_object_ref(w); g_object_ref(icon); g_object_set_data(G_OBJECT(w), OBJ_ID_KEY, GINT_TO_POINTER(obj_id)); gtk_notebook_remove_page(GTK_NOTEBOOK(legend_tab), i); gtk_notebook_append_page(GTK_NOTEBOOK(tab), w, icon); gtk_notebook_set_tab_detachable(GTK_NOTEBOOK(tab), w, TRUE); gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(tab), w, TRUE); gtk_notebook_set_menu_label_text(GTK_NOTEBOOK(tab), w, _(tab_info[j].obj_name)); break; } } } } w = gtk_bin_get_child(GTK_BIN(NgraphApp.CoordWin.Win)); g_object_ref(w); gtk_container_remove(GTK_CONTAINER(NgraphApp.CoordWin.Win), w); gtk_paned_pack1(GTK_PANED(NgraphApp.Viewer.side_pane3), w, FALSE, TRUE); w = gtk_bin_get_child(GTK_BIN(NgraphApp.InfoWin.Win)); g_object_ref(w); gtk_container_remove(GTK_CONTAINER(NgraphApp.InfoWin.Win), w); gtk_paned_pack2(GTK_PANED(NgraphApp.Viewer.side_pane3), w, TRUE, TRUE); set_window_action_visibility(FALSE); set_pane_position(); if (Menulocal.sidebar) { gtk_widget_show(NgraphApp.Viewer.side_pane1); } window_action_set_active(TypeFileWin, FALSE); window_action_set_active(TypeAxisWin, FALSE); window_action_set_active(TypeLegendWin, FALSE); window_action_set_active(TypeInfoWin, FALSE); window_action_set_active(TypeCoordWin, FALSE); if (! Menulocal.single_window_mode) { gtk_window_get_size(GTK_WINDOW(TopLevel), &width, &height); if (Menulocal.filewidth > 0) { width += Menulocal.filewidth; } gtk_window_resize(GTK_WINDOW(TopLevel), width, height); } Menulocal.single_window_mode = TRUE; } static void check_move_widget(GtkWidget *tab2) { int i, n, obj_id; GtkWidget *w; n = gtk_notebook_get_n_pages(GTK_NOTEBOOK(tab2)); for (i = n - 1; i >= 0; i--) { w = gtk_notebook_get_nth_page(GTK_NOTEBOOK(tab2), i); obj_id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), OBJ_ID_KEY)); if (obj_id == chkobjectid(NgraphApp.MergeWin.data.data->obj)) { tab_to_window(NgraphApp.MergeWin.Win, tab2, i); } else if (obj_id == chkobjectid(NgraphApp.AxisWin.data.data->obj)) { tab_to_window(NgraphApp.AxisWin.Win, tab2, i); } else if (obj_id == chkobjectid(NgraphApp.FileWin.data.data->obj)) { tab_to_window(NgraphApp.FileWin.Win, tab2, i); } } } static void check_move_legend_widget(GtkWidget *tab, GtkWidget *tab2, int obj_id) { int i, n, obj_id2; GtkWidget *w, *icon; n = gtk_notebook_get_n_pages(GTK_NOTEBOOK(tab2)); for (i = 0; i < n; i++) { w = gtk_notebook_get_nth_page(GTK_NOTEBOOK(tab2), i); obj_id2 = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), OBJ_ID_KEY)); if (obj_id2 == obj_id) { icon = gtk_notebook_get_tab_label(GTK_NOTEBOOK(tab2), w); g_object_ref(w); g_object_ref(icon); gtk_notebook_remove_page(GTK_NOTEBOOK(tab2), i); gtk_notebook_append_page(GTK_NOTEBOOK(tab), w, icon); break; } } } static void single_to_multi(void) { int obj_id, width, height; GtkWidget *tab, *w, *tab2, *tab3; struct obj_list_data *obj_data; save_tab_position(); set_window_action_visibility(TRUE); get_pane_position(); tab2 = gtk_paned_get_child2(GTK_PANED(NgraphApp.Viewer.side_pane2)); check_move_widget(tab2); tab2 = gtk_paned_get_child1(GTK_PANED(NgraphApp.Viewer.side_pane2)); check_move_widget(tab2); obj_data = NgraphApp.LegendWin.data.data; tab = gtk_bin_get_child(GTK_BIN(NgraphApp.LegendWin.Win)); tab2 = gtk_paned_get_child2(GTK_PANED(NgraphApp.Viewer.side_pane2)); tab3 = gtk_paned_get_child1(GTK_PANED(NgraphApp.Viewer.side_pane2)); for (; obj_data; obj_data = obj_data->next) { obj_id = chkobjectid(obj_data->obj); check_move_legend_widget(tab, tab2, obj_id); check_move_legend_widget(tab, tab3, obj_id); } w = gtk_paned_get_child1(GTK_PANED(NgraphApp.Viewer.side_pane3)); g_object_ref(w); gtk_container_remove(GTK_CONTAINER(NgraphApp.Viewer.side_pane3), w); gtk_container_add(GTK_CONTAINER(NgraphApp.CoordWin.Win), w); w = gtk_paned_get_child2(GTK_PANED(NgraphApp.Viewer.side_pane3)); g_object_ref(w); gtk_container_remove(GTK_CONTAINER(NgraphApp.Viewer.side_pane3), w); gtk_container_add(GTK_CONTAINER(NgraphApp.InfoWin.Win), w); gtk_widget_hide(NgraphApp.Viewer.side_pane1); if (Menulocal.single_window_mode) { gtk_window_get_size(GTK_WINDOW(TopLevel), &width, &height); if (Menulocal.filewidth > 0) { width -= Menulocal.filewidth; } gtk_window_resize(GTK_WINDOW(TopLevel), width, height); } CmReloadWindowConfig(NULL, NULL); Menulocal.single_window_mode = FALSE; } static void edit_menu_shown(GtkWidget *w, gpointer user_data) { struct Viewer *d; d = (struct Viewer *) user_data; set_focus_sensitivity(d); } static void setupwindow(void) { GtkWidget *w, *hbox, *hbox2, *vbox, *vbox2, *table, *hpane1, *hpane2, *vpane1, *vpane2, *item; #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); hbox2 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); #else vbox = gtk_vbox_new(FALSE, 0); vbox2 = gtk_vbox_new(FALSE, 0); hbox = gtk_hbox_new(FALSE, 0); hbox2 = gtk_hbox_new(FALSE, 0); #endif w = gtk_ui_manager_get_widget(NgraphUi, "/MenuBar"); if (w) { gtk_box_pack_start(GTK_BOX(vbox2), w, FALSE, FALSE, 0); } read_keymap_file(); NgraphApp.Viewer.menu = w; w = get_toolbar(NgraphUi, "/CommandToolBar", NULL); #if GTK_CHECK_VERSION(3, 4, 0) CToolbar = w; gtk_toolbar_set_style(GTK_TOOLBAR(w), GTK_TOOLBAR_ICONS); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 0); #else CToolbar = create_toolbar_box(vbox, w, GTK_ORIENTATION_HORIZONTAL); #endif w = get_toolbar(NgraphUi, "/ToolBox", G_CALLBACK(CmViewerButtonPressed)); #if GTK_CHECK_VERSION(3, 4, 0) PToolbar = w; gtk_orientable_set_orientation(GTK_ORIENTABLE(w), GTK_ORIENTATION_VERTICAL); gtk_toolbar_set_style(GTK_TOOLBAR(w), GTK_TOOLBAR_ICONS); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 0); #else PToolbar = create_toolbar_box(hbox, w, GTK_ORIENTATION_VERTICAL); #endif NgraphApp.Viewer.popup = gtk_ui_manager_get_widget(NgraphUi, "/ViewerPopup"); g_signal_connect(NgraphApp.Viewer.popup, "show", G_CALLBACK(edit_menu_shown), &NgraphApp.Viewer); item = gtk_ui_manager_get_widget(NgraphUi, "/MenuBar/EditMenu"); if (item) { w = gtk_menu_item_get_submenu(GTK_MENU_ITEM(item)); if (w) { g_signal_connect(w, "show", G_CALLBACK(edit_menu_shown), &NgraphApp.Viewer); } } #if GTK_CHECK_VERSION(3, 2, 0) NgraphApp.Viewer.HScroll = gtk_scrollbar_new(GTK_ORIENTATION_HORIZONTAL, NULL); NgraphApp.Viewer.VScroll = gtk_scrollbar_new(GTK_ORIENTATION_VERTICAL, NULL); #else NgraphApp.Viewer.HScroll = gtk_hscrollbar_new(NULL); NgraphApp.Viewer.VScroll = gtk_vscrollbar_new(NULL); #endif NgraphApp.Viewer.HRuler = nruler_new(GTK_ORIENTATION_HORIZONTAL); NgraphApp.Viewer.VRuler = nruler_new(GTK_ORIENTATION_VERTICAL); NgraphApp.Viewer.Win = gtk_drawing_area_new(); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(3, 3, FALSE); #endif #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_hexpand(NgraphApp.Viewer.HRuler, TRUE); gtk_grid_attach(GTK_GRID(table), NgraphApp.Viewer.HRuler, 1, 0, 1, 1); gtk_widget_set_vexpand(NgraphApp.Viewer.VRuler, TRUE); gtk_grid_attach(GTK_GRID(table), NgraphApp.Viewer.VRuler, 0, 1, 1, 1); gtk_widget_set_hexpand(NgraphApp.Viewer.HScroll, TRUE); gtk_grid_attach(GTK_GRID(table), NgraphApp.Viewer.HScroll, 1, 2, 1, 1); gtk_widget_set_vexpand(NgraphApp.Viewer.VScroll, TRUE); gtk_grid_attach(GTK_GRID(table), NgraphApp.Viewer.VScroll, 2, 1, 1, 1); gtk_widget_set_hexpand(NgraphApp.Viewer.Win, TRUE); gtk_widget_set_vexpand(NgraphApp.Viewer.Win, TRUE); gtk_grid_attach(GTK_GRID(table), NgraphApp.Viewer.Win, 1, 1, 1, 1); #else gtk_table_attach(GTK_TABLE(table), NgraphApp.Viewer.HRuler, 1, 2, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_table_attach(GTK_TABLE(table), NgraphApp.Viewer.VRuler, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0); gtk_table_attach(GTK_TABLE(table), NgraphApp.Viewer.HScroll, 1, 2, 2, 3, GTK_FILL, GTK_FILL, 0, 0); gtk_table_attach(GTK_TABLE(table), NgraphApp.Viewer.VScroll, 2, 3, 1, 2, GTK_FILL, GTK_FILL, 0, 0); gtk_table_attach(GTK_TABLE(table), NgraphApp.Viewer.Win, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); #endif #if GTK_CHECK_VERSION(3, 2, 0) vpane2 = gtk_paned_new(GTK_ORIENTATION_VERTICAL); #else vpane2 = gtk_vpaned_new(); #endif NgraphApp.Viewer.side_pane2 = vpane2; w = gtk_notebook_new(); gtk_notebook_popup_enable(GTK_NOTEBOOK(w)); gtk_notebook_set_tab_pos(GTK_NOTEBOOK(w), GTK_POS_LEFT); #if GTK_CHECK_VERSION(2, 24, 0) gtk_notebook_set_group_name(GTK_NOTEBOOK(w), SIDE_PANE_TAB_ID); #else gtk_notebook_set_group(GTK_NOTEBOOK(w), SIDE_PANE_TAB_ID); #endif gtk_notebook_set_scrollable(GTK_NOTEBOOK(w), TRUE); gtk_paned_add1(GTK_PANED(vpane2), w); w = gtk_notebook_new(); gtk_notebook_popup_enable(GTK_NOTEBOOK(w)); gtk_notebook_set_tab_pos(GTK_NOTEBOOK(w), GTK_POS_LEFT); #if GTK_CHECK_VERSION(2, 24, 0) gtk_notebook_set_group_name(GTK_NOTEBOOK(w), SIDE_PANE_TAB_ID); #else gtk_notebook_set_group(GTK_NOTEBOOK(w), SIDE_PANE_TAB_ID); #endif gtk_notebook_set_scrollable(GTK_NOTEBOOK(w), TRUE); gtk_paned_add2(GTK_PANED(vpane2), w); #if GTK_CHECK_VERSION(3, 2, 0) hpane2 = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL); #else hpane2 = gtk_hpaned_new(); #endif NgraphApp.Viewer.side_pane3 = hpane2; #if GTK_CHECK_VERSION(3, 2, 0) vpane1 = gtk_paned_new(GTK_ORIENTATION_VERTICAL); #else vpane1 = gtk_vpaned_new(); #endif gtk_paned_pack1(GTK_PANED(vpane1), vpane2, TRUE, TRUE); gtk_paned_pack2(GTK_PANED(vpane1), hpane2, FALSE, TRUE); NgraphApp.Viewer.side_pane1 = vpane1; #if GTK_CHECK_VERSION(3, 2, 0) hpane1 = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL); #else hpane1 = gtk_hpaned_new(); #endif gtk_paned_add1(GTK_PANED(hpane1), vbox); gtk_paned_add2(GTK_PANED(hpane1), vpane1); NgraphApp.Viewer.main_pane = hpane1; gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox2), hpane1, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox2), hbox2, TRUE, TRUE, 0); NgraphApp.Message = gtk_statusbar_new(); gtk_box_pack_end(GTK_BOX(NgraphApp.Message), create_message_box(&NgraphApp.Message_extra, &NgraphApp.Message_pos), FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox2), NgraphApp.Message, FALSE, FALSE, 0); NgraphApp.Message1 = gtk_statusbar_get_context_id(GTK_STATUSBAR(NgraphApp.Message), "Message1"); set_axis_undo_button_sensitivity(FALSE); gtk_container_add(GTK_CONTAINER(TopLevel), vbox2); } static void defaultwindowconfig(void) { int w, h; w = gdk_screen_get_width(gdk_screen_get_default()); h = w / 2 * 1.2; if (Menulocal.fileopen) { if (Menulocal.filewidth == DEFAULT_GEOMETRY) Menulocal.filewidth = w / 4; if (Menulocal.fileheight == DEFAULT_GEOMETRY) Menulocal.fileheight = h / 4; if (Menulocal.filex == DEFAULT_GEOMETRY) Menulocal.filex = -Menulocal.filewidth - 4; if (Menulocal.filey == DEFAULT_GEOMETRY) Menulocal.filey = 0; } if (Menulocal.axisopen) { if (Menulocal.axiswidth == DEFAULT_GEOMETRY) Menulocal.axiswidth = w / 4; if (Menulocal.axisheight == DEFAULT_GEOMETRY) Menulocal.axisheight = h / 4; if (Menulocal.axisx == DEFAULT_GEOMETRY) Menulocal.axisx = -Menulocal.axiswidth - 4; if (Menulocal.axisy == DEFAULT_GEOMETRY) Menulocal.axisy = Menulocal.fileheight + 4; } if (Menulocal.coordopen) { if (Menulocal.coordwidth == DEFAULT_GEOMETRY) Menulocal.coordwidth = w / 4; if (Menulocal.coordheight == DEFAULT_GEOMETRY) Menulocal.coordheight = h / 4; if (Menulocal.coordx == DEFAULT_GEOMETRY) Menulocal.coordx = -Menulocal.coordwidth - 4; if (Menulocal.coordy == DEFAULT_GEOMETRY) Menulocal.coordy = Menulocal.fileheight + Menulocal.axisheight + 8; } } static void set_gdk_color(GdkColor *col, int r, int g, int b) { col->red = r << 8; col->green = g << 8; col->blue = b << 8; } static void load_hist_file(GtkEntryCompletion *list, char *home, char *name) { char *filename; filename = g_strdup_printf("%s/%s", home, name); entry_completion_load(list, filename, Menulocal.hist_size); g_free(filename); } static void save_hist_file(GtkEntryCompletion *list, char *home, char *name) { char *filename; filename = g_strdup_printf("%s/%s", home, name); entry_completion_save(list, filename, Menulocal.hist_size); g_free(filename); } static void load_hist(void) { char *home; NgraphApp.legend_text_list = entry_completion_create(); NgraphApp.x_math_list = entry_completion_create(); NgraphApp.y_math_list = entry_completion_create(); NgraphApp.func_list = entry_completion_create(); NgraphApp.fit_list = entry_completion_create(); home = get_home(); if (home == NULL) return; load_hist_file(NgraphApp.legend_text_list, home, TEXT_HISTORY); load_hist_file(NgraphApp.x_math_list, home, MATH_X_HISTORY); load_hist_file(NgraphApp.y_math_list, home, MATH_Y_HISTORY); load_hist_file(NgraphApp.func_list, home, FUNCTION_HISTORY); load_hist_file(NgraphApp.fit_list, home, FIT_HISTORY); } static void save_entry_history(void) { char *home; home = get_home(); if (home == NULL) return; save_hist_file(NgraphApp.legend_text_list, home, TEXT_HISTORY); save_hist_file(NgraphApp.x_math_list, home, MATH_X_HISTORY); save_hist_file(NgraphApp.y_math_list, home, MATH_Y_HISTORY); save_hist_file(NgraphApp.func_list, home, FUNCTION_HISTORY); save_hist_file(NgraphApp.fit_list, home, FIT_HISTORY); g_object_unref(NgraphApp.legend_text_list); g_object_unref(NgraphApp.x_math_list); g_object_unref(NgraphApp.y_math_list); g_object_unref(NgraphApp.func_list); g_object_unref(NgraphApp.fit_list); NgraphApp.legend_text_list = NULL; NgraphApp.x_math_list = NULL; NgraphApp.y_math_list = NULL; NgraphApp.func_list = NULL; NgraphApp.fit_list = NULL; } static void init_ngraph_app_struct(void) { NgraphApp.Viewer.Win = NULL; NgraphApp.Viewer.popup = NULL; memset(&NgraphApp.FileWin, 0, sizeof(NgraphApp.FileWin)); NgraphApp.FileWin.type = TypeFileWin; memset(&NgraphApp.AxisWin, 0, sizeof(NgraphApp.AxisWin)); NgraphApp.AxisWin.type = TypeAxisWin; memset(&NgraphApp.LegendWin, 0, sizeof(NgraphApp.LegendWin)); NgraphApp.LegendWin.type = TypeLegendWin; memset(&NgraphApp.MergeWin, 0, sizeof(NgraphApp.MergeWin)); NgraphApp.MergeWin.type = TypeMergeWin; memset(&NgraphApp.InfoWin, 0, sizeof(NgraphApp.InfoWin)); NgraphApp.InfoWin.type = TypeInfoWin; memset(&NgraphApp.CoordWin, 0, sizeof(NgraphApp.CoordWin)); NgraphApp.CoordWin.type = TypeCoordWin; NgraphApp.legend_text_list = NULL; NgraphApp.x_math_list = NULL; NgraphApp.y_math_list = NULL; NgraphApp.func_list = NULL; NgraphApp.fit_list = NULL; NgraphApp.Interrupt = FALSE; } static void create_sub_windows(void) { CmInformationWindow(NULL, NULL); CmCoordinateWindow(NULL, NULL); CmMergeWindow(NULL, NULL); CmLegendWindow(NULL, NULL); CmAxisWindow(NULL, NULL); CmFileWindow(NULL, NULL); if (Menulocal.single_window_mode) { return; } if (Menulocal.dialogopen) { window_action_set_active(TypeInfoWin, TRUE); } if (Menulocal.coordopen) { window_action_set_active(TypeCoordWin, TRUE); } if (Menulocal.mergeopen) { window_action_set_active(TypeMergeWin, TRUE); } if (Menulocal.legendopen) { window_action_set_active(TypeLegendWin, TRUE); } if (Menulocal.axisopen) { window_action_set_active(TypeAxisWin, TRUE); } if (Menulocal.fileopen) { window_action_set_active(TypeFileWin, TRUE); } } static void destroy_sub_windows(void) { if (NgraphApp.FileWin.Win) { window_action_set_active(TypeFileWin, FALSE); gtk_widget_destroy(NgraphApp.FileWin.Win); } if (NgraphApp.AxisWin.Win) { window_action_set_active(TypeAxisWin, FALSE); gtk_widget_destroy(NgraphApp.AxisWin.Win); } if (NgraphApp.LegendWin.Win) { window_action_set_active(TypeLegendWin, FALSE); gtk_widget_destroy(NgraphApp.LegendWin.Win); } if (NgraphApp.MergeWin.Win) { window_action_set_active(TypeMergeWin, FALSE); gtk_widget_destroy(NgraphApp.MergeWin.Win); } if (NgraphApp.InfoWin.Win) { window_action_set_active(TypeInfoWin, FALSE); gtk_widget_destroy(NgraphApp.InfoWin.Win); } if (NgraphApp.CoordWin.Win) { window_action_set_active(TypeCoordWin, FALSE); gtk_widget_destroy(NgraphApp.CoordWin.Win); } } #ifdef WINDOWS enum SUB_WINDOW_STATE { FILE_WIN_VISIBLE = 0x01, AXIS_WIN_VISIBLE = 0x02, LEGEND_WIN_VISIBLE = 0x04, MERGE_WIN_VISIBLE = 0x08, INFO_WIN_VISIBLE = 0x10, COORD_WIN_VISIBLE = 0x20, }; static gboolean change_window_state_cb(GtkWidget *widget, GdkEventWindowState *event, gpointer user_data) { static int window_state = 0; if (event->new_window_state & GDK_WINDOW_STATE_ICONIFIED) { if (NgraphApp.FileWin.Win && GTK_WIDGET_VISIBLE(NgraphApp.FileWin.Win)) { window_state |= FILE_WIN_VISIBLE; gtk_widget_hide(NgraphApp.FileWin.Win); } if (NgraphApp.AxisWin.Win && GTK_WIDGET_VISIBLE(NgraphApp.AxisWin.Win)) { window_state |= AXIS_WIN_VISIBLE; gtk_widget_hide(NgraphApp.AxisWin.Win); } if (NgraphApp.LegendWin.Win && GTK_WIDGET_VISIBLE(NgraphApp.LegendWin.Win)) { window_state |= LEGEND_WIN_VISIBLE; gtk_widget_hide(NgraphApp.LegendWin.Win); } if (NgraphApp.InfoWin.Win && GTK_WIDGET_VISIBLE(NgraphApp.InfoWin.Win)) { window_state |= INFO_WIN_VISIBLE; gtk_widget_hide(NgraphApp.InfoWin.Win); } if (NgraphApp.CoordWin.Win && GTK_WIDGET_VISIBLE(NgraphApp.CoordWin.Win)) { window_state |= COORD_WIN_VISIBLE; gtk_widget_hide(NgraphApp.CoordWin.Win); } } else if (event->changed_mask & GDK_WINDOW_STATE_ICONIFIED) { if (NgraphApp.FileWin.Win && (window_state & FILE_WIN_VISIBLE)) { gtk_widget_show(NgraphApp.FileWin.Win); } if (NgraphApp.AxisWin.Win && (window_state & AXIS_WIN_VISIBLE)) { gtk_widget_show(NgraphApp.AxisWin.Win); } if (NgraphApp.LegendWin.Win && (window_state & LEGEND_WIN_VISIBLE)) { gtk_widget_show(NgraphApp.LegendWin.Win); } if (NgraphApp.InfoWin.Win && (window_state & INFO_WIN_VISIBLE)) { gtk_widget_show(NgraphApp.InfoWin.Win); } if (NgraphApp.CoordWin.Win && (window_state & COORD_WIN_VISIBLE)) { gtk_widget_show(NgraphApp.CoordWin.Win); } window_state = 0; } return FALSE; } #endif void set_modified_state(int state) { static GtkAction *save_action = NULL; if (save_action == NULL){ save_action = gtk_action_group_get_action(ActionGroup, "GraphSaveAction"); } gtk_action_set_sensitive(save_action, state); } static void toggle_view_cb(GtkToggleAction *action, gpointer data) { int type, state; GtkWidget *w1 = NULL, *w2 = NULL; type = GPOINTER_TO_INT(data); if (action == NULL) { return; } state = gtk_toggle_action_get_active(action); switch (type) { case MenuIdToggleSidebar: Menulocal.sidebar = state; w1 = NgraphApp.Viewer.side_pane1; break; case MenuIdToggleStatusbar: Menulocal.statusbar = state; w1 = NgraphApp.Message; break; case MenuIdToggleRuler: Menulocal.ruler = state; w1 = NgraphApp.Viewer.HRuler; w2 = NgraphApp.Viewer.VRuler; break; case MenuIdToggleScrollbar: Menulocal.scrollbar = state; w1 = NgraphApp.Viewer.HScroll; w2 = NgraphApp.Viewer.VScroll; break; case MenuIdToggleCToolbar: Menulocal.ctoolbar = state; w1 = CToolbar; break; case MenuIdTogglePToolbar: Menulocal.ptoolbar = state; w1 = PToolbar; break; case MenuIdToggleCrossGauge: ViewCross(state); break; } if (type == MenuIdToggleCrossGauge) { return; } if (w1) { gtk_widget_set_visible(w1, state); } if (w2) { gtk_widget_set_visible(w2, state); } } static void set_widget_visibility(void) { unsigned int i; struct { int *state; const char *name; } id_array[] = { {&Menulocal.sidebar, "ViewSidebarAction"}, {&Menulocal.statusbar, "ViewStatusbarAction"}, {&Menulocal.ruler, "ViewRulerAction"}, {&Menulocal.scrollbar, "ViewScrollbarAction"}, {&Menulocal.ctoolbar, "ViewCommandToolbarAction"}, {&Menulocal.ptoolbar, "ViewToolboxAction"}, {&Menulocal.show_cross, "ViewCrossGaugeAction"}, }; GtkToggleAction *action; for (i = 0; i < sizeof (id_array) / sizeof(*id_array); i++) { action = GTK_TOGGLE_ACTION(gtk_action_group_get_action(ActionGroup, id_array[i].name)); if (action) { gtk_toggle_action_set_active(action, *id_array[i].state); gtk_toggle_action_toggled(action); } } } static void check_instance(struct objlist *obj) { unsigned int i; struct { const char *name; GtkAction *action; const char *objname; struct objlist *obj; } actions[] = { {"DataPropertyAction", NULL, "file", NULL}, {"DataCloseAction", NULL, "file", NULL}, {"DataEditAction", NULL, "file", NULL}, {"DataSaveAction", NULL, "file", NULL}, {"DataMathAction", NULL, "file", NULL}, {"AxisPropertyAction", NULL, "axis", NULL}, {"AxisDeleteAction", NULL, "axis", NULL}, {"AxisScaleZoomAction", NULL, "axis", NULL}, {"AxisScaleClearAction", NULL, "axis", NULL}, {"AxisGridPropertyAction", NULL, "axisgrid", NULL}, {"AxisGridDeleteAction", NULL, "axisgrid", NULL}, {"LegendPathPropertyAction", NULL, "path", NULL}, {"LegendPathDeleteAction", NULL, "path", NULL}, {"LegendRectanglePropertyAction", NULL, "rectangle", NULL}, {"LegendRectangleDeleteAction", NULL, "rectangle", NULL}, {"LegendArcPropertyAction", NULL, "arc", NULL}, {"LegendArcDeleteAction", NULL, "arc", NULL}, {"LegendMarkPropertyAction", NULL, "mark", NULL}, {"LegendMarkDeleteAction", NULL, "mark", NULL}, {"LegendTextPropertyAction", NULL, "text", NULL}, {"LegendTextDeleteAction", NULL, "text", NULL}, {"MergePropertyAction", NULL, "merge", NULL}, {"MergeCloseAction", NULL, "merge", NULL}, }; if (actions[0].action == NULL) { for (i = 0; i < sizeof(actions) / sizeof(*actions); i++) { actions[i].action = gtk_action_group_get_action(ActionGroup, actions[i].name); actions[i].obj = chkobject(actions[i].objname); } } for (i = 0; i < sizeof(actions) / sizeof(*actions); i++) { if (actions[i].obj == obj) { gtk_action_set_sensitive(actions[i].action, obj->lastinst >= 0); } } } static void check_exist_instances(struct objlist *parent) { struct objlist *ocur; ocur = chkobjroot(); while (ocur) { if (chkobjparent(ocur) == parent) { check_instance(ocur); check_exist_instances(ocur); } ocur = ocur->next; } } static void set_toggle_action(const char *name, int state) { GtkAction *action; if (name == NULL) { return; } action = gtk_action_group_get_action(ActionGroup, name); if (action) { if (state < 0) { int active; active = gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action)); gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), ! active); } else { gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), state); } } } void window_action_set_active(enum SubWinType type, int state) { char *name; switch (type) { case TypeFileWin: name = "ViewToggleDataWindowAction"; break; case TypeAxisWin: name = "ViewToggleAxisWindowAction"; break; case TypeLegendWin: name = "ViewToggleLegendWindowAction"; break; case TypeMergeWin: name = "ViewToggleMergeWindowAction"; break; case TypeInfoWin: name = "ViewToggleInformationWindowAction"; break; case TypeCoordWin: name = "ViewToggleCoordinateWindowAction"; break; default: name = NULL; } set_toggle_action(name, state); } void window_action_toggle(enum SubWinType type) { window_action_set_active(type, -1); } gboolean recent_filter(const GtkRecentFilterInfo *filter_info, gpointer user_data) { int i; if (filter_info->mime_type == NULL) { return FALSE; } switch (GPOINTER_TO_INT(user_data)) { case RECENT_TYPE_GRAPH: if (g_ascii_strcasecmp(filter_info->mime_type, NGRAPH_GRAPH_MIME)) { return FALSE; } break; case RECENT_TYPE_DATA: if (g_ascii_strncasecmp(filter_info->mime_type, NGRAPH_TEXT_MIME, strlen(NGRAPH_TEXT_MIME))) { return FALSE; } break; default: return FALSE; } for (i = 0; filter_info->applications[i]; i++) { if (g_strcmp0(AppName, filter_info->applications[i]) == 0) { return TRUE; } } return FALSE; } static GtkActionGroup * create_action_group(struct NgraphActionEntry *entry, int n) { int i, radio_index = 0; GSList *group = NULL; GtkRecentFilter *filter; GtkActionGroup *action_group; NgraphUi = gtk_ui_manager_new(); action_group = gtk_action_group_new("Ngraph"); for (i = 0; i < n; i++) { GtkAction *action; switch (entry[i].type) { case ACTION_TYPE_NORMAL: action = gtk_action_new(entry[i].name, _(entry[i].label), _(entry[i].tooltip), entry[i].stock_id); break; case ACTION_TYPE_TOGGLE: action = GTK_ACTION(gtk_toggle_action_new(entry[i].name, _(entry[i].label), _(entry[i].tooltip), entry[i].stock_id)); break; case ACTION_TYPE_RADIO: action = GTK_ACTION(gtk_radio_action_new(entry[i].name, _(entry[i].label), _(entry[i].tooltip), entry[i].stock_id, radio_index++)); gtk_radio_action_set_group(GTK_RADIO_ACTION(action), group); group = gtk_radio_action_get_group(GTK_RADIO_ACTION(action)); NgraphApp.viewb = GTK_RADIO_ACTION(action); break; case ACTION_TYPE_RECENT: action = gtk_recent_action_new_for_manager(entry[i].name, _(entry[i].label), _(entry[i].tooltip), entry[i].stock_id, Menulocal.ngpfilelist); filter = gtk_recent_filter_new(); gtk_recent_filter_add_custom(filter, GTK_RECENT_FILTER_URI | GTK_RECENT_FILTER_MIME_TYPE | GTK_RECENT_FILTER_APPLICATION, recent_filter, GINT_TO_POINTER(entry[i].user_data), NULL); gtk_recent_action_set_show_numbers(GTK_RECENT_ACTION(action), TRUE); gtk_recent_chooser_add_filter(GTK_RECENT_CHOOSER(action), filter); gtk_recent_chooser_set_filter(GTK_RECENT_CHOOSER(action), filter); gtk_recent_chooser_set_show_tips(GTK_RECENT_CHOOSER(action), TRUE); gtk_recent_chooser_set_show_icons(GTK_RECENT_CHOOSER(action), FALSE); gtk_recent_chooser_set_local_only(GTK_RECENT_CHOOSER(action), TRUE); #ifndef WINDOWS gtk_recent_chooser_set_show_not_found(GTK_RECENT_CHOOSER(action), FALSE); #endif gtk_recent_chooser_set_sort_type(GTK_RECENT_CHOOSER(action), GTK_RECENT_SORT_MRU); gtk_recent_chooser_set_limit(GTK_RECENT_CHOOSER(action), 10); switch (entry[i].user_data) { case RECENT_TYPE_GRAPH: g_signal_connect(GTK_RECENT_CHOOSER(action), "item-activated", G_CALLBACK(CmGraphHistory), NULL); break; case RECENT_TYPE_DATA: g_signal_connect(GTK_RECENT_CHOOSER(action), "item-activated", G_CALLBACK(CmFileHistory), NULL); break; } break; default: action = NULL; } if (action == NULL) { continue; } if (entry[i].callback) { switch (entry[i].type) { case ACTION_TYPE_TOGGLE: g_signal_connect(action, "toggled", G_CALLBACK(entry[i].callback), GINT_TO_POINTER(entry[i].user_data)); break; default: g_signal_connect(action, "activate", G_CALLBACK(entry[i].callback), GINT_TO_POINTER(entry[i].user_data)); } } if (entry[i].icon) { GIcon *icon; #ifdef WINDOWS char *str; str = g_strdup_printf("%s%s", PIXMAPDIR, entry[i].icon); icon = g_icon_new_for_string(str, NULL); g_free(str); #else icon = g_icon_new_for_string(entry[i].icon, NULL); #endif if (icon) { gtk_action_set_gicon(action, icon); } } if (entry[i].accel_path) { gtk_action_set_accel_path(action, entry[i].accel_path); if (entry[i].accel_key) { gtk_accel_map_add_entry(entry[i].accel_path, entry[i].accel_key, entry[i].accel_mods); } } if (entry[i].caption) { g_object_set_data(G_OBJECT(action), "caption", entry[i].caption); } gtk_action_group_add_action(action_group, action); } gtk_action_group_set_translation_domain(action_group, NULL); gtk_ui_manager_insert_action_group(NgraphUi, action_group, 0); return action_group; } char * get_ui_definition(void) { if (NgraphUi == NULL) { return NULL; } return gtk_ui_manager_get_ui(NgraphUi); } int application(char *file) { int i, terminated, ui_id; struct objlist *aobj; int x, y, width, height, w, h; GdkScreen *screen; if (TopLevel) return 1; init_ngraph_app_struct(); screen = gdk_screen_get_default(); w = gdk_screen_get_width(screen); h = gdk_screen_get_height(screen); if (Menulocal.menux == DEFAULT_GEOMETRY) Menulocal.menux = w * 3 / 8; if (Menulocal.menuy == DEFAULT_GEOMETRY) Menulocal.menuy = h / 8; if (Menulocal.menuwidth == DEFAULT_GEOMETRY) Menulocal.menuwidth = w / 2; if (Menulocal.menuheight == DEFAULT_GEOMETRY) Menulocal.menuheight = h / 1.2; x = Menulocal.menux; y = Menulocal.menuy; width = Menulocal.menuwidth; height = Menulocal.menuheight; load_hist(); CurrentWindow = TopLevel = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(TopLevel), AppName); #if GTK_CHECK_VERSION(3, 0, 0) gtk_window_set_has_resize_grip(GTK_WINDOW(TopLevel), TRUE); #endif gtk_window_set_default_size(GTK_WINDOW(TopLevel), width, height); gtk_window_move(GTK_WINDOW(TopLevel), x, y); if (ActionGroup == NULL) { ActionGroup = create_action_group(ActionEntry, sizeof(ActionEntry) / sizeof(*ActionEntry)); } ui_id = create_ui_from_file(UI_FILE); gtk_ui_manager_ensure_update(NgraphUi); AccelGroup = gtk_ui_manager_get_accel_group(NgraphUi); gtk_window_add_accel_group(GTK_WINDOW(TopLevel), AccelGroup); create_addin_menu(); #ifdef WINDOWS g_signal_connect(TopLevel, "window-state-event", G_CALLBACK(change_window_state_cb), NULL); #endif g_signal_connect(TopLevel, "delete-event", G_CALLBACK(CloseCallback), NULL); g_signal_connect(TopLevel, "destroy-event", G_CALLBACK(CloseCallback), NULL); set_gdk_color(&white, 255, 255, 255); set_gdk_color(&gray, 0xaa, 0xaa, 0xaa); create_icon(); initdialog(); gtk_widget_show_all(GTK_WIDGET(TopLevel)); reset_event(); setupwindow(); NgraphApp.FileName = NULL; gtk_widget_show_all(GTK_WIDGET(TopLevel)); ViewerWinSetup(); set_widget_visibility(); create_markpixmap(TopLevel); if (create_cursor()) return 1; reset_graph_modified(); NSetCursor(GDK_LEFT_PTR); putstderr = mgtkputstderr; printfstderr = mgtkprintfstderr; putstdout = mgtkputstdout; printfstdout = mgtkprintfstdout; ndisplaydialog = mgtkdisplaydialog; ndisplaystatus = mgtkdisplaystatus; ninterrupt = mgtkinterrupt; inputyn = mgtkinputyn; aobj = getobject("axis"); if (aobj) { for (i = 0; i <= chkobjlastinst(aobj); i++) { exeobj(aobj, "tight", i, 0, NULL); } } aobj = getobject("axisgrid"); if (aobj) { for (i = 0; i <= chkobjlastinst(aobj); i++) { exeobj(aobj, "tight", i, 0, NULL); } } if (file != NULL) { char *ext; ext = getextention(file); if (ext) { if ((strcmp0(ext, "PRM") == 0) || (strcmp0(ext, "prm") == 0)) { LoadPrmFile(file); } else if ((strcmp0(ext, "NGP") == 0) || (strcmp0(ext, "ngp") == 0)) { LoadNgpFile(file, Menulocal.loadpath, Menulocal.expand, Menulocal.expanddir, FALSE, NULL); } } } CmViewerDraw(NULL, GINT_TO_POINTER(FALSE)); #ifndef WINDOWS set_signal(SIGINT, 0, kill_signal_handler); set_signal(SIGTERM, 0, term_signal_handler); #endif /* WINDOWS */ gtk_widget_show_all(GTK_WIDGET(TopLevel)); set_widget_visibility(); create_sub_windows(); set_focus_sensitivity(&NgraphApp.Viewer); check_exist_instances(chkobject("draw")); set_newobj_cb(check_instance); set_delobj_cb(check_instance); if (Menulocal.single_window_mode) { GtkAction *action; int active; action = gtk_action_group_get_action(ActionGroup, "ViewToggleSingleWindowModeAction"); active = gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action)); if (active) { multi_to_single(); } else { set_toggle_action("ViewToggleSingleWindowModeAction", TRUE); } } else { gtk_widget_hide(NgraphApp.Viewer.side_pane1); } terminated = AppMainLoop(); if (CheckIniFile()) { if (Menulocal.single_window_mode) { save_tab_position(); get_pane_position(); menu_save_config(SAVE_CONFIG_TYPE_GEOMETRY); } save_entry_history(); menu_save_config(SAVE_CONFIG_TYPE_TOGGLE_VIEW | SAVE_CONFIG_TYPE_OTHERS); } set_newobj_cb(NULL); set_delobj_cb(NULL); gtk_ui_manager_remove_ui(NgraphUi, ui_id); #ifndef WINDOWS set_signal(SIGTERM, 0, SIG_DFL); set_signal(SIGINT, 0, SIG_DFL); #endif /* WINDOWS */ ViewerWinClose(); destroy_sub_windows(); g_free(NgraphApp.FileName); NgraphApp.FileName = NULL; gtk_widget_destroy(TopLevel); NgraphApp.Viewer.Win = NULL; CurrentWindow = TopLevel = PToolbar = CToolbar = NULL; free_markpixmap(); free_cursor(); reset_event(); if (terminated) { delobj(getobject("system"), 0); } return 0; } void UpdateAll(void) { ViewerWinUpdate(); UpdateAll2(); } void UpdateAll2(void) { FileWinUpdate(NgraphApp.FileWin.data.data, TRUE); AxisWinUpdate(NgraphApp.AxisWin.data.data, TRUE); LegendWinUpdate(TRUE); MergeWinUpdate(NgraphApp.MergeWin.data.data, TRUE); InfoWinUpdate(TRUE); CoordWinUpdate(TRUE); } void ChangePage(void) { CloseGRA(); OpenGRA(); CloseGC(); CloseGRA(); OpenGRA(); OpenGC(); SetScroller(); ChangeDPI(); } static void SetStatusBarSub(const char *mes, guint id) { if (NgraphApp.Message) { gtk_statusbar_push(GTK_STATUSBAR(NgraphApp.Message), id, mes); } } static void ResetStatusBarSub(guint id) { if (NgraphApp.Message) { gtk_statusbar_pop(GTK_STATUSBAR(NgraphApp.Message), id); } } void SetStatusBar(const char *mes) { SetStatusBarSub(mes, NgraphApp.Message1); } void ResetStatusBar(void) { ResetStatusBarSub(NgraphApp.Message1); } unsigned int NGetCursor(void) { return CursorType; } void NSetCursor(unsigned int type) { GdkWindow *win; if (NgraphApp.Viewer.Win == NULL || NgraphApp.cursor == NULL || CursorType == type) return; win = gtk_widget_get_window(NgraphApp.Viewer.Win); if (win == NULL) { return; } CursorType = type; switch (type) { case GDK_LEFT_PTR: gdk_window_set_cursor(win, NgraphApp.cursor[0]); break; case GDK_XTERM: gdk_window_set_cursor(win, NgraphApp.cursor[1]); break; case GDK_CROSSHAIR: gdk_window_set_cursor(win, NgraphApp.cursor[2]); break; case GDK_TOP_LEFT_CORNER: gdk_window_set_cursor(win, NgraphApp.cursor[3]); break; case GDK_TOP_RIGHT_CORNER: gdk_window_set_cursor(win, NgraphApp.cursor[4]); break; case GDK_BOTTOM_RIGHT_CORNER: gdk_window_set_cursor(win, NgraphApp.cursor[5]); break; case GDK_BOTTOM_LEFT_CORNER: gdk_window_set_cursor(win, NgraphApp.cursor[6]); break; case GDK_TARGET: gdk_window_set_cursor(win, NgraphApp.cursor[7]); break; case GDK_PLUS: gdk_window_set_cursor(win, NgraphApp.cursor[8]); break; case GDK_SIZING: gdk_window_set_cursor(win, NgraphApp.cursor[9]); break; case GDK_WATCH: gdk_window_set_cursor(win, NgraphApp.cursor[10]); break; case GDK_FLEUR: gdk_window_set_cursor(win, NgraphApp.cursor[11]); break; case GDK_PENCIL: gdk_window_set_cursor(win, NgraphApp.cursor[12]); break; case GDK_TCROSS: gdk_window_set_cursor(win, NgraphApp.cursor[13]); break; } } void DisplayDialog(const char *str) { char *ustr; if (str == NULL) return; ustr = g_locale_to_utf8(CHK_STR(str), -1, NULL, NULL, NULL); InfoWinDrawInfoText(ustr); g_free(ustr); } int PutStdout(const char *s) { gssize len; if (s == NULL) return 0; len = strlen(s); DisplayDialog(s); return len + 1; } int PutStderr(const char *s) { gssize len; gsize rlen, wlen; char *ustr; if (s == NULL) return 0; len = strlen(s); ustr = g_locale_to_utf8(s, len, &rlen, &wlen, NULL); message_box(NULL, ustr, _("Error:"), RESPONS_ERROR); g_free(ustr); UpdateAll2(); return len + 1; } int ChkInterrupt(void) { #if 0 GdkEvent *e; GtkWidget *w; e = gtk_get_current_event(); if(e == NULL) return FALSE; w = gtk_get_event_widget(e); if (w && (e->type == GDK_BUTTON_PRESS || e->type == GDK_BUTTON_RELEASE)) { // if (w && e->type != GDK_EXPOSE) { gtk_propagate_event(w, e); } gdk_event_free(e); if (NgraphApp.Interrupt) { NgraphApp.Interrupt = FALSE; return TRUE; } #else if (DrawLock != DrawLockDraw) return FALSE; while (gtk_events_pending()) { gtk_main_iteration_do(FALSE); if (NgraphApp.Interrupt) { NgraphApp.Interrupt = FALSE; return TRUE; } } #endif return FALSE; } int InputYN(const char *mes) { int ret; ret = message_box(get_current_window(), mes, _("Question"), RESPONS_YESNO); UpdateAll2(); return (ret == IDYES) ? TRUE : FALSE; } static void script_exec(GtkWidget *w, gpointer client_data) { char *name, *option, *s, *argv[2], mes[256]; int newid, allocnow = FALSE, len, idn; struct narray sarray; struct objlist *robj, *shell; struct script *fcur; if (Menulock || Globallock || client_data == NULL) return; shell = chkobject("shell"); if (shell == NULL) return; fcur = (struct script *) client_data; if (fcur->script == NULL) return; name = g_strdup(fcur->script); if (name == NULL) return; newid = newobj(shell); if (newid < 0) { g_free(name); return; } arrayinit(&sarray, sizeof(char *)); if (arrayadd(&sarray, &name) == NULL) { delobj(shell, newid); g_free(name); arraydel2(&sarray); return; } option = fcur->option; while ((s = getitok2(&option, &len, " \t")) != NULL) { if (arrayadd(&sarray, &s) == NULL) { delobj(shell, newid); g_free(s); arraydel2(&sarray); return; } } if (Menulocal.addinconsole) { allocnow = allocate_console(); } snprintf(mes, sizeof(mes), _("Executing `%.128s'."), name); SetStatusBar(mes); menu_lock(TRUE); idn = getobjtblpos(Menulocal.obj, "_evloop", &robj); registerevloop(chkobjectname(Menulocal.obj), "_evloop", robj, idn, Menulocal.inst, NULL); argv[0] = (char *) &sarray; argv[1] = NULL; exeobj(shell, "shell", newid, 1, argv); unregisterevloop(robj, idn, Menulocal.inst); menu_lock(FALSE); ResetStatusBar(); arraydel2(&sarray); if (Menulocal.addinconsole) { free_console(allocnow); } GetPageSettingsFromGRA(); UpdateAll2(); delobj(shell, newid); main_window_redraw(); } static void CmReloadWindowConfig(GtkAction *w, gpointer user_data) { gint x, y, w0, h0; window_action_set_active(TypeInfoWin, FALSE); window_action_set_active(TypeCoordWin, FALSE); window_action_set_active(TypeMergeWin, FALSE); window_action_set_active(TypeLegendWin, FALSE); window_action_set_active(TypeMergeWin, FALSE); window_action_set_active(TypeAxisWin, FALSE); window_action_set_active(TypeFileWin, FALSE); initwindowconfig(); mgtkwindowconfig(); gtk_window_get_position(GTK_WINDOW(TopLevel), &x, &y); gtk_window_get_size(GTK_WINDOW(TopLevel), &w0, &h0); Menulocal.menux = x; Menulocal.menuy = y; Menulocal.menuwidth = w0; Menulocal.menuheight = h0; defaultwindowconfig(); if (Menulocal.dialogopen) { window_action_set_active(TypeInfoWin, TRUE); sub_window_set_geometry(&(NgraphApp.InfoWin), TRUE); } if (Menulocal.coordopen) { window_action_set_active(TypeCoordWin, TRUE); sub_window_set_geometry(&(NgraphApp.CoordWin), TRUE); } if (Menulocal.mergeopen) { window_action_set_active(TypeMergeWin, TRUE); sub_window_set_geometry(&(NgraphApp.MergeWin), TRUE); } if (Menulocal.legendopen) { window_action_set_active(TypeLegendWin, TRUE); sub_window_set_geometry(&(NgraphApp.LegendWin), TRUE); } if (Menulocal.axisopen) { window_action_set_active(TypeAxisWin, TRUE); sub_window_set_geometry(&(NgraphApp.AxisWin), TRUE); } if (Menulocal.fileopen) { window_action_set_active(TypeFileWin, TRUE); sub_window_set_geometry(&(NgraphApp.FileWin), TRUE); } } static void CmToggleSingleWindowMode(GtkToggleAction *action, gpointer client_data) { int state; if (action) { state = gtk_toggle_action_get_active(action); } else { state = TRUE; } if (state) { multi_to_single(); } else { single_to_multi(); } } ngraph-gtk-6.06.13/src/gtk/ogra2x11.c0000644000175000017500000005461612241111703013742 00000000000000/* * $Id: ogra2x11.c,v 1.34 2010-01-04 05:11:28 hito Exp $ * * This file is part of "Ngraph for GTK". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for GTK" 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. * * "Ngraph for GTK" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include #include #include "strconv.h" #include "object.h" #include "ioutil.h" #include "gra.h" #include "nstring.h" #include "mathfn.h" #include "nconfig.h" #include "shell.h" #include "main.h" #include "x11menu.h" #include "x11gui.h" #include "ogra2x11.h" #include "ogra2cairo.h" #define NAME "gra2gtk" #define ALIAS "gra2win:gra2x11" #define PARENT "gra2cairo" #define NVERSION "1.00.00" #define GRA2GTKCONF "[gra2gtk]" #define ERRDISPLAY 100 #define ERRCMAP 101 #define WINWIDTH 578 #define WINHEIGHT 819 #define WINSIZE_MAX 10000 static char *gtkerrorlist[] = { "cannot open display.", "not enough color cell.", }; #define ERRNUM (sizeof(gtkerrorlist)/sizeof(*gtkerrorlist)) struct action_type { enum { ACTION_TYPE_NONE, ACTION_TYPE_KEY, ACTION_TYPE_BUTTON, ACTION_TYPE_SCROLL, } type; int val; }; struct gtklocal { struct objlist *obj; GdkCursor *blank_cursor; N_VALUE *inst; GtkWidget *mainwin, *View; cairo_surface_t *surface; GdkWindow *window; char *title; int redraw, fit, frame; unsigned int windpi; int PaperWidth, PaperHeight; struct action_type action; double bg_r, bg_g, bg_b; struct gra2cairo_local *local; }; static void gtkMakeRuler(cairo_t *cr, struct gtklocal *gtklocal); static int gtk_evloop(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); static int gtkclose(GtkWidget *widget, GdkEvent *event, gpointer user_data); static void gtkchangedpi(struct gtklocal *gtklocal); #if GTK_CHECK_VERSION(3, 0, 0) static gboolean gtkevpaint(GtkWidget * w, cairo_t * e, gpointer user_data); #else static gboolean gtkevpaint(GtkWidget * w, GdkEventExpose * e, gpointer user_data); #endif static int gtkinit(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); static int gtkdone(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); static int gtkclear(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); static int gtkredraw(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); static int dot2pixel(struct gtklocal *gtklocal, int r); static int gtk_output(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); #if GTK_CHECK_VERSION(3, 0, 0) static gboolean gtkevpaint(GtkWidget *w, cairo_t *cr, gpointer user_data) { struct gtklocal *gtklocal; gtklocal = (struct gtklocal *) user_data; if (gtklocal->surface == NULL) { return FALSE; } if (gtklocal->redraw) { GRAredraw(gtklocal->obj, gtklocal->inst, FALSE, FALSE); gtklocal->redraw = FALSE; } cairo_set_source_surface(cr, gtklocal->surface, 0, 0); cairo_paint(cr); gtkMakeRuler(cr, gtklocal); return FALSE; } #else static gboolean gtkevpaint(GtkWidget *w, GdkEventExpose *e, gpointer user_data) { struct gtklocal *gtklocal; cairo_t *cr; gtklocal = (struct gtklocal *) user_data; if (e->count != 0) { return TRUE; } if (gtklocal->surface == NULL) { return FALSE; } cr = gdk_cairo_create(gtk_widget_get_window(w)); if (gtklocal->redraw) { GRAredraw(gtklocal->obj, gtklocal->inst, FALSE, FALSE); gtklocal->redraw = FALSE; } cairo_set_source_surface(cr, gtklocal->surface, 0, 0); gdk_cairo_region(cr, e->region); cairo_fill(cr); gtkMakeRuler(cr, gtklocal); cairo_destroy(cr); return FALSE; } #endif static int gtkclose(GtkWidget *widget, GdkEvent *event, gpointer user_data) { N_VALUE *inst; struct gtklocal *local; int i, id; struct objlist *obj; obj = chkobject("gra2gtk"); for (i = 0; i <= chkobjlastinst(obj); i++) { inst = chkobjinst(obj, i); _getobj(obj, "_gtklocal", inst, &local); if (local->mainwin == widget) { _getobj(obj, "id", inst, &id); delobj(obj, id); break; } } return TRUE; } static gboolean ev_key_down(GtkWidget *w, GdkEvent *event, gpointer user_data) { GdkEventKey *e; struct gtklocal *gtklocal; gtklocal = (struct gtklocal *) user_data; g_return_val_if_fail(w != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); e = (GdkEventKey *)event; gtklocal->action.type = ACTION_TYPE_KEY; gtklocal->action.val = e->keyval; switch (e->keyval) { case GDK_KEY_w: if (e->state & GDK_CONTROL_MASK) { gtkclose(w, NULL, NULL); return TRUE; } return FALSE; } return FALSE; } void size_allocate(GtkWidget *widget, GdkRectangle *allocation, gpointer user_data) { struct gtklocal *local; double w, h, rh, rw, ratio; int pw, ph, dpi; local = (struct gtklocal *) user_data; if (local == NULL) { return; } if (! local->fit) { return; } w = allocation->width; h = allocation->height; pw = local->PaperWidth; ph = local->PaperHeight; if (pw < 1 || ph < 1) { return; } rw = w / pw; rh = h / ph; ratio = (rh > rw) ? rw : rh; dpi = ratio * DPI_MAX; local->windpi = dpi; local->local->pixel_dot_x = local->local->pixel_dot_y = ratio; _putobj(local->obj, "dpi", local->inst, &dpi); gtkchangedpi(local); } static gboolean cursor_moved(GtkWidget *widget, GdkEvent *event, gpointer user_data) { struct gtklocal *gtklocal; gtklocal = (struct gtklocal *) user_data; if (gtklocal->blank_cursor) { gdk_window_set_cursor(gtk_widget_get_window(gtklocal->mainwin), NULL); #if GTK_CHECK_VERSION(3, 0, 0) g_object_unref(gtklocal->blank_cursor); #else gdk_cursor_unref(gtklocal->blank_cursor); #endif gtklocal->blank_cursor = NULL; } return FALSE; } static gboolean button_released(GtkWidget *widget, GdkEventButton *event, gpointer user_data) { struct gtklocal *gtklocal; gtklocal = (struct gtklocal *) user_data; gtklocal->action.type = ACTION_TYPE_BUTTON; gtklocal->action.val = event->button; return FALSE; } static gboolean scrolled(GtkWidget *widget, GdkEventScroll *event, gpointer user_data) { struct gtklocal *gtklocal; gtklocal = (struct gtklocal *) user_data; switch (event->direction) { case GDK_SCROLL_UP: case GDK_SCROLL_DOWN: case GDK_SCROLL_LEFT: case GDK_SCROLL_RIGHT: gtklocal->action.type = ACTION_TYPE_SCROLL; gtklocal->action.val = event->direction; break; #if GTK_CHECK_VERSION(3, 4, 0) case GDK_SCROLL_SMOOTH: break; #endif } return FALSE; } static int gtkinit(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *gtklocal; struct gra2cairo_local *local; struct objlist *robj; int idn, oid, width, height; GtkWidget *scrolled_window = NULL; if (_exeparent(obj, (char *) argv[1], inst, rval, argc, argv)) return 1; gtklocal = g_malloc(sizeof(*gtklocal)); if (gtklocal == NULL) goto errexit; gtklocal->obj = obj; gtklocal->inst = inst; gtklocal->title = NULL; gtklocal->mainwin = NULL; gtklocal->fit = FALSE; gtklocal->frame = TRUE; gtklocal->blank_cursor = NULL; gtklocal->action.type = ACTION_TYPE_NONE; gtklocal->action.val = 0; if (_putobj(obj, "_gtklocal", inst, gtklocal)) goto errexit; if (_getobj(obj, "oid", inst, &oid)) goto errexit; if (_getobj(obj, "_local", inst, &local)) goto errexit; if (_getobj(obj, "fit", inst, >klocal->fit)) goto errexit; if (_getobj(obj, "frame", inst, >klocal->frame)) goto errexit; gtklocal->PaperWidth = 0; gtklocal->PaperHeight = 0; gtklocal->windpi = DEFAULT_DPI / 2; gtklocal->bg_r = 1.0; gtklocal->bg_g = 1.0; gtklocal->bg_b = 1.0; gtklocal->local = local; if (gtklocal->windpi < 1) gtklocal->windpi = 1; if (gtklocal->windpi > DPI_MAX) gtklocal->windpi = DPI_MAX; if (_putobj(obj, "dpi", inst, &(gtklocal->windpi))) goto errexit; if (_putobj(obj, "dpix", inst, &(gtklocal->windpi))) goto errexit; if (_putobj(obj, "dpiy", inst, &(gtklocal->windpi))) goto errexit; local->pixel_dot_x = local->pixel_dot_y = gtklocal->windpi / (DPI_MAX * 1.0); width = WINWIDTH; height = WINHEIGHT; if (_putobj(obj, "width", inst, &width)) goto errexit; if (_putobj(obj, "height", inst, &height)) goto errexit; if (! OpenApplication()) { error(obj, ERRDISPLAY); goto errexit; } gtklocal->title = mkobjlist(obj, NULL, oid, NULL, TRUE); gtklocal->mainwin = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(gtklocal->mainwin), width, height); g_signal_connect_swapped(gtklocal->mainwin, "delete-event", G_CALLBACK(gtkclose), gtklocal->mainwin); g_signal_connect(gtklocal->mainwin, "key-press-event", G_CALLBACK(ev_key_down), gtklocal); gtk_window_set_title((GtkWindow *) gtklocal->mainwin, gtklocal->title); scrolled_window = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(gtklocal->mainwin), scrolled_window); gtklocal->View = gtk_drawing_area_new(); #if GTK_CHECK_VERSION(3, 0, 0) gtk_widget_set_halign(gtklocal->View, GTK_ALIGN_CENTER); gtk_widget_set_valign(gtklocal->View, GTK_ALIGN_CENTER); #endif #if GTK_CHECK_VERSION(3, 0, 0) g_signal_connect(gtklocal->View, "draw", G_CALLBACK(gtkevpaint), gtklocal); #else g_signal_connect(gtklocal->View, "expose-event", G_CALLBACK(gtkevpaint), gtklocal); #endif g_signal_connect(gtklocal->mainwin, "size-allocate", G_CALLBACK(size_allocate), gtklocal); #if GTK_CHECK_VERSION(3, 8, 0) gtk_container_add(GTK_CONTAINER(scrolled_window), gtklocal->View); #else gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW (scrolled_window), gtklocal->View); #endif gtk_widget_show_all(gtklocal->mainwin); gtklocal->surface= NULL; gtklocal->redraw = TRUE; gtk_widget_add_events(gtklocal->mainwin, GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK); g_signal_connect(gtklocal->mainwin, "motion-notify-event", G_CALLBACK(cursor_moved), gtklocal); g_signal_connect(gtklocal->mainwin, "button-release-event", G_CALLBACK(button_released), gtklocal); g_signal_connect(gtklocal->mainwin, "scroll-event", G_CALLBACK(scrolled), gtklocal); if (chkobjfield(obj, "_evloop")) { goto errexit; } idn = getobjtblpos(obj, "_evloop", &robj); if (idn == -1) { goto errexit; } registerevloop(chkobjectname(obj), "_evloop", robj, idn, inst, gtklocal); gtkchangedpi(gtklocal); gtk_evloop(obj, inst, NULL, argc, argv); return 0; errexit: if (gtklocal) { if (gtklocal->mainwin) { gtk_widget_destroy(gtklocal->mainwin); } if (gtklocal->mainwin) { g_free(gtklocal->title); } g_free(gtklocal); } local = gra2cairo_free(obj, inst); g_free(local); return 1; } static int gtkdone(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *gtklocal; int idn; struct objlist *robj; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; if (_getobj(obj, "_gtklocal", inst, >klocal)) return 1; if (gtklocal->blank_cursor) { #if GTK_CHECK_VERSION(3, 0, 0) g_object_unref(gtklocal->blank_cursor); #else gdk_cursor_unref(gtklocal->blank_cursor); #endif } if (gtklocal->mainwin != NULL) { gtk_widget_destroy(gtklocal->mainwin); gtklocal->mainwin = NULL; while (gtk_events_pending()) { gtk_main_iteration(); } } if (gtklocal->surface) { cairo_surface_destroy(gtklocal->surface); } idn = getobjtblpos(obj, "_evloop", &robj); if (idn != -1) unregisterevloop(robj, idn, inst); g_free(gtklocal->title); return 0; } static void clear_pixmap(struct gtklocal *local) { cairo_t *cr; cr = cairo_create(local->surface); cairo_set_source_rgb(cr, local->bg_r, local->bg_g, local->bg_b); cairo_paint(cr); cairo_destroy(cr); } static void redraw_window(struct gtklocal *local) { GdkWindow *win; if (local->View == NULL) { return; } win = gtk_widget_get_window(local->View); if (win == NULL) { return; } gdk_window_invalidate_rect(win, NULL, TRUE); } static int gtkclear(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *local; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; if (_getobj(obj, "_gtklocal", inst, &local)) return 1; clear_pixmap(local); redraw_window(local); return 0; } static int gtkpresent(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *local; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; if (_getobj(obj, "_gtklocal", inst, &local)) return 1; reset_event(); msleep(100); gtk_window_present(GTK_WINDOW(local->mainwin)); return 0; } static int gtkfullscreen(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *local; int state; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; if (_getobj(obj, "_gtklocal", inst, &local)) return 1; state = *(int *) argv[2]; if (state) { gtk_window_fullscreen(GTK_WINDOW(local->mainwin)); } else { gtk_window_unfullscreen(GTK_WINDOW(local->mainwin)); } return 0; } static int gtkflush(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *local; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; if (_getobj(obj, "_gtklocal", inst, &local)) return 1; redraw_window(local); return 0; } static double get_color(struct gtklocal *gtklocal, int argc, char **argv) { int c; c = abs(*(int *) argv[2]); if (c < 0) { c = 0; } else if (c > 255) { c = 255; } return c / 255.0; } static int gtkbr(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *gtklocal; if (_getobj(obj, "_gtklocal", inst, >klocal)) return 1; gtklocal->bg_r = get_color(gtklocal, argc, argv); return 0; } static int gtkbb(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *gtklocal; if (_getobj(obj, "_gtklocal", inst, >klocal)) return 1; gtklocal->bg_b = get_color(gtklocal, argc, argv); return 0; } static int gtkbg(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *gtklocal; if (_getobj(obj, "_gtklocal", inst, >klocal)) return 1; gtklocal->bg_g = get_color(gtklocal, argc, argv); return 0; } static int gtkredraw(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *gtklocal; if (_getobj(obj, "_gtklocal", inst, >klocal)) return 1; redraw_window(gtklocal); return 0; } static int gtk_evloop(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { while (gtk_events_pending()) { gtk_main_iteration(); } return 0; } static int dot2pixel(struct gtklocal *gtklocal, int r) { return nround(r * gtklocal->local->pixel_dot_x); } static void gtkchangedpi(struct gtklocal *gtklocal) { int width, height; cairo_surface_t *pixmap; if ((gtklocal->PaperWidth == 0) || (gtklocal->PaperHeight == 0)) { return; } width = dot2pixel(gtklocal, gtklocal->PaperWidth); height = dot2pixel(gtklocal, gtklocal->PaperHeight); pixmap = gtklocal->surface; if (pixmap) { int pw, ph; ph = cairo_image_surface_get_height(pixmap); pw = cairo_image_surface_get_width(pixmap); if (pw != width || ph != height) { cairo_surface_destroy(pixmap); pixmap = NULL; } } if (pixmap == NULL) { pixmap = cairo_image_surface_create(CAIRO_FORMAT_RGB24, width, height); gtklocal->surface = pixmap; clear_pixmap(gtklocal); gtklocal->redraw = TRUE; if (gtklocal->local->cairo) { cairo_destroy(gtklocal->local->cairo); } gtklocal->local->cairo = cairo_create(pixmap); } gtk_widget_set_size_request(gtklocal->View, width, height); } static void gtkMakeRuler(cairo_t *cr, struct gtklocal *gtklocal) { int width, height; width = gtklocal->PaperWidth; height = gtklocal->PaperHeight; if (width == 0 || height == 0 || gtklocal->surface == NULL || ! gtklocal->frame) return; cairo_save(cr); cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); cairo_set_line_width(cr, 1); cairo_set_source_rgb(cr, 0, 0, 0); cairo_rectangle(cr, CAIRO_COORDINATE_OFFSET, CAIRO_COORDINATE_OFFSET, dot2pixel(gtklocal, width) - 1, dot2pixel(gtklocal, height) - 1); cairo_stroke(cr); cairo_restore(cr); } static int gtk_output(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char code; int *cpar; struct gtklocal *gtklocal; code = *(char *) (argv[3]); cpar = (int *) argv[4]; switch (code) { case 'I': if (_getobj(obj, "_gtklocal", inst, >klocal)) return 1; gtklocal->PaperWidth = cpar[3]; gtklocal->PaperHeight = cpar[4]; gtkchangedpi(gtklocal); break; case 'E': break; } if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; return 0; } static int gtk_set_dpi(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int dpi, fit; struct gtklocal *local; dpi = abs(*(int *) argv[2]); _getobj(obj, "_gtklocal", inst, &local); fit = FALSE; local->fit = FALSE; _putobj(obj, "fit", inst, &fit); if (dpi < 1) dpi = 1; if (dpi > DPI_MAX) dpi = DPI_MAX; local->windpi = dpi; local->local->pixel_dot_x = local->local->pixel_dot_y = dpi / (DPI_MAX * 1.0); *(int *) argv[2] = dpi; gtkchangedpi(local); return 0; } static int gtk_set_fit(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int fit; struct gtklocal *local; _getobj(obj, "_gtklocal", inst, &local); fit = *(int *) argv[2]; local->fit = fit; if (fit) { GtkAllocation allocation; gtk_widget_get_allocation(local->mainwin, &allocation); size_allocate(local->mainwin, &allocation, local); } return 0; } static int gtk_set_frame(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *local; _getobj(obj, "_gtklocal", inst, &local); local->frame = *(int *) argv[2]; return 0; } static int gtk_set_size(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int width, height, size; struct gtklocal *local; _getobj(obj, "_gtklocal", inst, &local); size = *(int *) argv[2]; if (size < 1 || size > WINSIZE_MAX) { return 1; } switch (argv[1][0]) { case 'h': height = size; _getobj(obj, "width", inst, &width); gtk_window_resize(GTK_WINDOW(local->mainwin), width, height); break; case 'w': width = size; _getobj(obj, "height", inst, &height); gtk_window_resize(GTK_WINDOW(local->mainwin), width, height); break; } return 0; } static int gtkwait_action(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct gtklocal *local; char *name; _getobj(obj, "_gtklocal", inst, &local); g_free(rval->str); rval->str = NULL; if (local->mainwin == NULL) { return 1; } if (local->blank_cursor == NULL) { local->blank_cursor = gdk_cursor_new(GDK_BLANK_CURSOR); gdk_window_set_cursor(gtk_widget_get_window(local->mainwin), local->blank_cursor); } local->action.type = ACTION_TYPE_NONE; local->action.val = 0; while (local->action.type == ACTION_TYPE_NONE) { gtk_evloop(NULL, NULL, NULL, 0, NULL); msleep(100); } switch (local->action.type) { case ACTION_TYPE_NONE: break; case ACTION_TYPE_KEY: name = gdk_keyval_name(local->action.val); if (name) { rval->str = g_strdup(name); } break; case ACTION_TYPE_BUTTON: rval->str = g_strdup_printf("button%d", local->action.val); break; case ACTION_TYPE_SCROLL: switch (local->action.val) { case GDK_SCROLL_UP: rval->str = g_strdup("scroll_up"); break; case GDK_SCROLL_DOWN: rval->str = g_strdup("scroll_down"); break; case GDK_SCROLL_LEFT: rval->str = g_strdup("scroll_left"); break; case GDK_SCROLL_RIGHT: rval->str = g_strdup("scroll_right"); break; } break; } return 0; } static struct objtable gra2gtk[] = { {"init", NVFUNC, NEXEC, gtkinit, NULL, 0}, {"done", NVFUNC, NEXEC, gtkdone, NULL, 0}, {"next", NPOINTER, 0, NULL, NULL, 0}, {"dpi", NINT, NREAD | NWRITE, gtk_set_dpi, NULL, 0}, {"dpix", NINT, NREAD | NWRITE, gtk_set_dpi, NULL, 0}, {"dpiy", NINT, NREAD | NWRITE, gtk_set_dpi, NULL, 0}, {"width", NINT, NREAD | NWRITE, gtk_set_size, NULL, 0}, {"height", NINT, NREAD | NWRITE, gtk_set_size, NULL, 0}, {"fit", NBOOL, NREAD | NWRITE, gtk_set_fit, NULL, 0}, {"frame", NBOOL, NREAD | NWRITE, gtk_set_frame, NULL, 0}, {"expose", NVFUNC, NREAD | NEXEC, gtkredraw, "", 0}, {"flush", NVFUNC, NREAD | NEXEC, gtkflush, "", 0}, {"clear", NVFUNC, NREAD | NEXEC, gtkclear, "", 0}, {"present", NVFUNC, NREAD | NEXEC, gtkpresent, "", 0}, {"fullscreen", NVFUNC, NREAD | NEXEC, gtkfullscreen, "b", 0}, {"BR", NINT, NREAD | NWRITE, gtkbr, NULL, 0}, {"BG", NINT, NREAD | NWRITE, gtkbg, NULL, 0}, {"BB", NINT, NREAD | NWRITE, gtkbb, NULL, 0}, {"wait_action",NSFUNC, NREAD | NEXEC, gtkwait_action, "", 0}, {"_gtklocal", NPOINTER, 0, NULL, NULL, 0}, {"_output", NVFUNC, 0, gtk_output, NULL, 0}, {"_strwidth", NIFUNC, 0, gra2cairo_strwidth, NULL, 0}, {"_charascent", NIFUNC, 0, gra2cairo_charheight, NULL, 0}, {"_chardescent", NIFUNC, 0, gra2cairo_charheight, NULL, 0}, {"_evloop", NVFUNC, 0, gtk_evloop, NULL, 0}, }; #define TBLNUM (sizeof(gra2gtk) / sizeof(*gra2gtk)) void * addgra2gtk(void) /* addgra2gtk() returns NULL on error */ { return addobject(NAME, ALIAS, PARENT, NVERSION, TBLNUM, gra2gtk, ERRNUM, gtkerrorlist, NULL, NULL); } ngraph-gtk-6.06.13/src/gtk/x11lgnd.c0000644000175000017500000031722212241111704013650 00000000000000/* * $Id: x11lgnd.c,v 1.68 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include "dir_defs.h" #include "strconv.h" #include "ioutil.h" #include "object.h" #include "gra.h" #include "ogra2cairo.h" #include "ogra2gdk.h" #include "odraw.h" #include "otext.h" #include "opath.h" #include "nstring.h" #include "mathfn.h" #include "gtk_liststore.h" #include "gtk_entry_completion.h" #include "gtk_subwin.h" #include "gtk_combo.h" #include "gtk_widget.h" #include "x11bitmp.h" #include "x11gui.h" #include "x11dialg.h" #include "x11menu.h" #include "ox11menu.h" #include "x11file.h" #include "x11view.h" #include "x11lgnd.h" #include "x11commn.h" #define ARROW_VIEW_SIZE 160 static n_list_store Plist[] = { {" ", G_TYPE_BOOLEAN, TRUE, TRUE, "hidden"}, {"#", G_TYPE_INT, TRUE, FALSE, "id"}, {"type", G_TYPE_PARAM, TRUE, TRUE, "type"}, {"arrow", G_TYPE_ENUM, TRUE, TRUE, "arrow"}, {N_("color"), G_TYPE_OBJECT, TRUE, TRUE, "color"}, {"x", G_TYPE_DOUBLE, TRUE, TRUE, "x", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {"y", G_TYPE_DOUBLE, TRUE, TRUE, "y", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {N_("width"), G_TYPE_DOUBLE, TRUE, TRUE, "width", 0, SPIN_ENTRY_MAX, 20, 100}, {N_("points"), G_TYPE_INT, TRUE, FALSE, "points"}, {"^#", G_TYPE_INT, TRUE, FALSE, "oid"}, }; enum PATH_LIST_COL { PATH_LIST_COL_HIDDEN = 0, PATH_LIST_COL_ID, PATH_LIST_COL_TYPE, PATH_LIST_COL_ARROW, PATH_LIST_COL_COLOR, PATH_LIST_COL_X, PATH_LIST_COL_Y, PATH_LIST_COL_WIDTH, PATH_LIST_COL_POINTS, PATH_LIST_COL_OID, PATH_LIST_COL_NUM, }; static n_list_store Rlist[] = { {" ", G_TYPE_BOOLEAN, TRUE, TRUE, "hidden"}, {"#", G_TYPE_INT, TRUE, FALSE, "id"}, {N_("color"), G_TYPE_OBJECT, TRUE, TRUE, "color"}, {"x", G_TYPE_DOUBLE, TRUE, TRUE, "x1", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {"y", G_TYPE_DOUBLE, TRUE, TRUE, "y1", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {"width", G_TYPE_DOUBLE, TRUE, TRUE, "width", 0, SPIN_ENTRY_MAX, 20, 100}, {N_("height"), G_TYPE_DOUBLE, TRUE, TRUE, "height", 0, SPIN_ENTRY_MAX, 20, 100}, {N_("line width"), G_TYPE_DOUBLE, TRUE, TRUE, "width", 0, SPIN_ENTRY_MAX, 20, 100}, {"^#", G_TYPE_INT, TRUE, FALSE, "oid"}, }; enum RECT_LIST_COL { RECT_LIST_COL_HIDDEN = 0, RECT_LIST_COL_ID, RECT_LIST_COL_COLOR, RECT_LIST_COL_X, RECT_LIST_COL_Y, RECT_LIST_COL_WIDTH, RECT_LIST_COL_HEIGHT, RECT_LIST_COL_LWIDTH, RECT_LIST_COL_OID, RECT_LIST_COL_NUM, }; static n_list_store Alist[] = { {" ", G_TYPE_BOOLEAN, TRUE, TRUE, "hidden"}, {"#", G_TYPE_INT, TRUE, FALSE, "id"}, {"color", G_TYPE_OBJECT, TRUE, TRUE, "color"}, {"x", G_TYPE_DOUBLE, TRUE, TRUE, "x", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {"y", G_TYPE_DOUBLE, TRUE, TRUE, "y", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {"rx", G_TYPE_DOUBLE, TRUE, TRUE, "rx", 0, SPIN_ENTRY_MAX, 100, 1000}, {"ry", G_TYPE_DOUBLE, TRUE, TRUE, "ry", 0, SPIN_ENTRY_MAX, 100, 1000}, {N_("angle1"), G_TYPE_DOUBLE, TRUE, TRUE, "angle1", 0, 36000, 100, 1500}, {N_("angle2"), G_TYPE_DOUBLE, TRUE, TRUE, "angle2", 0, 36000, 100, 1500}, {N_("pieslice"), G_TYPE_BOOLEAN, TRUE, TRUE, "pieslice"}, {N_("width"), G_TYPE_DOUBLE, TRUE, TRUE, "width", 0, SPIN_ENTRY_MAX, 20, 100}, {"^#", G_TYPE_INT, TRUE, FALSE, "oid"}, }; enum ARC_LIST_COL { ARC_LIST_COL_HIDDEN = 0, ARC_LIST_COL_ID, ARC_LIST_COL_COLOR, ARC_LIST_COL_X, ARC_LIST_COL_Y, ARC_LIST_COL_RX, ARC_LIST_COL_RY, ARC_LIST_COL_ANGLE1, ARC_LIST_COL_ANGLE2, ARC_LIST_COL_PIESLICE, ARC_LIST_COL_WIDTH, ARC_LIST_COL_OID, ARC_LIST_COL_NUM, }; static n_list_store Mlist[] = { {" ", G_TYPE_BOOLEAN, TRUE, TRUE, "hidden"}, {"#", G_TYPE_INT, TRUE, FALSE, "id"}, {"mark", G_TYPE_OBJECT, TRUE, TRUE, "type"}, {"x", G_TYPE_DOUBLE, TRUE, TRUE, "x", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {"y", G_TYPE_DOUBLE, TRUE, TRUE, "y", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {N_("size"), G_TYPE_DOUBLE, TRUE, TRUE, "size", 0, SPIN_ENTRY_MAX, 20, 100}, {"width", G_TYPE_DOUBLE, TRUE, TRUE, "width", 0, SPIN_ENTRY_MAX, 20, 100}, {"^#", G_TYPE_INT, TRUE, FALSE, "oid"}, }; enum MARK_LIST_COL { MARK_LIST_COL_HIDDEN = 0, MARK_LIST_COL_ID, MARK_LIST_COL_MARK, MARK_LIST_COL_X, MARK_LIST_COL_Y, MARK_LIST_COL_SIZE, MARK_LIST_COL_WIDTH, MARK_LIST_COL_OID, MARK_LIST_COL_NUM, }; static n_list_store Tlist[] = { {" ", G_TYPE_BOOLEAN, TRUE, TRUE, "hidden"}, {"#", G_TYPE_INT, TRUE, FALSE, "id"}, {"text", G_TYPE_STRING, TRUE, TRUE, "text", 0, 0, 0, 0, PANGO_ELLIPSIZE_END}, {N_("font"), G_TYPE_PARAM, TRUE, TRUE, "font"}, {"x", G_TYPE_DOUBLE, TRUE, TRUE, "x", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {"y", G_TYPE_DOUBLE, TRUE, TRUE, "y", - SPIN_ENTRY_MAX, SPIN_ENTRY_MAX, 100, 1000}, {N_("pt"), G_TYPE_DOUBLE, TRUE, TRUE, "pt", 0, SPIN_ENTRY_MAX, 20, 100}, {N_("direction"), G_TYPE_DOUBLE, TRUE, TRUE, "direction", 0, 36000, 100, 1500}, {"raw", G_TYPE_BOOLEAN, TRUE, TRUE, "raw"}, {"^#", G_TYPE_INT, TRUE, FALSE, "oid"}, {"style", G_TYPE_INT, FALSE, FALSE, "style"}, {"weight", G_TYPE_INT, FALSE, FALSE, "weight"}, {"color", G_TYPE_STRING, FALSE, FALSE, "color"}, #ifdef TEXT_LIST_USE_FONT_FAMILY {"font_family", G_TYPE_STRING, FALSE, FALSE, "font_family"}, #endif }; enum TEXT_LIST_COL { TEXT_LIST_COL_HIDDEN = 0, TEXT_LIST_COL_ID, TEXT_LIST_COL_TEXT, TEXT_LIST_COL_FONT, TEXT_LIST_COL_X, TEXT_LIST_COL_Y, TEXT_LIST_COL_PT, TEXT_LIST_COL_DIR, TEXT_LIST_COL_RAW, TEXT_LIST_COL_OID, TEXT_LIST_COL_STYLE, TEXT_LIST_COL_WEIGHT, TEXT_LIST_COL_COLOR, #ifdef TEXT_LIST_USE_FONT_FAMILY TEXT_LIST_COL_FONT_FAMILY, #endif TEXT_LIST_COL_NUM, }; static n_list_store *Llist[] = {Plist, Rlist, Alist, Mlist, Tlist}; static int Llist_num[] = {PATH_LIST_COL_NUM, RECT_LIST_COL_NUM, ARC_LIST_COL_NUM, MARK_LIST_COL_NUM, TEXT_LIST_COL_NUM}; static struct subwin_popup_list Popup_list[] = { {N_("_Duplicate"), G_CALLBACK(list_sub_window_copy), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, // {N_("duplicate _Behind"), G_CALLBACK(list_sub_window_copy), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_DELETE, G_CALLBACK(list_sub_window_delete), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {NULL, NULL, 0, NULL, POP_UP_MENU_ITEM_TYPE_SEPARATOR}, {N_("_Focus"), G_CALLBACK(list_sub_window_focus), FALSE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_PROPERTIES, G_CALLBACK(list_sub_window_update), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {NULL, NULL, 0, NULL, POP_UP_MENU_ITEM_TYPE_SEPARATOR}, {GTK_STOCK_GOTO_TOP, G_CALLBACK(list_sub_window_move_top), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GO_UP, G_CALLBACK(list_sub_window_move_up), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GO_DOWN, G_CALLBACK(list_sub_window_move_down), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, {GTK_STOCK_GOTO_BOTTOM, G_CALLBACK(list_sub_window_move_last), TRUE, NULL, POP_UP_MENU_ITEM_TYPE_NORMAL}, }; #define POPUP_ITEM_NUM (sizeof(Popup_list) / sizeof(*Popup_list)) #define POPUP_ITEM_TOP 6 #define POPUP_ITEM_UP 7 #define POPUP_ITEM_DOWN 8 #define POPUP_ITEM_BOTTOM 9 static void LegendDialogCopy(struct LegendDialog *d); static void path_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row); static void rect_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row); static void arc_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row); static void mark_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row); static void text_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row); enum LegendType { LegendTypePath = 0, LegendTypeRect, LegendTypeArc, LegendTypeMark, LegendTypeText, }; static char *MarkChar[] = { "●", "○", "○", "◎", "⦿", "", "◑", "◐", "◓", "◒", "■", "⬜", "⬜", "⧈", "▣", "", "◨", "◧", "⬒", "⬓", "◆", "◇", "◇", "", "◈", "", "⬗", "⬖", "⬘", "⬙", "▲", "△", "△", "", "", "", "◮", "◭", "⧗", "⧖", "▼", "▽", "▽", "", "", "", "⧩", "⧨", "", "", "◀", "◁", "◁", "", "", "", "", "", "⧓", "⋈", "▶", "▷", "▷", "", "", "", "", "", "⧒", "⧑", "+", "×", "∗", "⚹", "", "", "", "", "―", "|", "◎", "⨁", "⨂", "⧈", "⊞", "⊠", "", "", "", "·", }; #define MarkCharNum ((int) (sizeof(MarkChar) / sizeof(*MarkChar))) struct lwidget { GtkWidget *w; char *f; }; static char * LegendLineCB(struct objlist *obj, int id) { struct narray *array; int num, *data, path_type; char *s, **enum_path_type; getobj(obj, "type", id, 0, NULL, &path_type); enum_path_type = (char **) chkobjarglist(obj, "type"); getobj(obj, "points", id, 0, NULL, &array); num = arraynum(array); data = arraydata(array); if (num < 2) { s = g_strdup("------"); } else { s = g_strdup_printf("%s (X:%.2f Y:%.2f)-", _(enum_path_type[path_type]), data[0] / 100.0, data[1] / 100.0); } return s; } static char * LegendRectCB(struct objlist *obj, int id) { int x1, y1; char *s; getobj(obj, "x1", id, 0, NULL, &x1); getobj(obj, "y1", id, 0, NULL, &y1); s = g_strdup_printf("X1:%.2f Y1:%.2f", x1 / 100.0, y1 / 100.0); return s; } static char * LegendArcCB(struct objlist *obj, int id) { int x1, y1; char *s; getobj(obj, "x", id, 0, NULL, &x1); getobj(obj, "y", id, 0, NULL, &y1); s = g_strdup_printf("X:%.2f Y:%.2f", x1 / 100.0, y1 / 100.0); return s; } static char * LegendMarkCB(struct objlist *obj, int id) { int x, y, type; char *s; getobj(obj, "x", id, 0, NULL, &x); getobj(obj, "y", id, 0, NULL, &y); getobj(obj, "type", id, 0, NULL, &type); if (type >= 0 && type < MarkCharNum) { char *mc = MarkChar[type]; s = g_strdup_printf(_("X:%.2f Y:%.2f %s%stype:%-2d"), x / 100.0, y / 100.0, mc, (mc[0]) ? " " : "", type); } else { s = g_strdup_printf("X:%.2f Y:%.2f", x / 100.0, y / 100.0); } return s; } static char * LegendTextCB(struct objlist *obj, int id) { char *text, *s; getobj(obj, "text", id, 0, NULL, &text); if (text) { s = g_strdup(text); } else { s = g_strdup(""); } return s; } static void init_legend_dialog_widget_member(struct LegendDialog *d) { d->path_type = NULL; d->stroke = NULL; d->close_path = NULL; d->style = NULL; d->points = NULL; d->interpolation = NULL; d->width = NULL; d->miter = NULL; d->join = NULL; d->color = NULL; d->color2 = NULL; d->stroke_color = NULL; d->fill_color = NULL; d->x = NULL; d->y = NULL; d->x1 = NULL; d->y1 = NULL; d->x2 = NULL; d->y2 = NULL; d->rx = NULL; d->ry = NULL; d->pieslice = NULL; d->size = NULL; d->type = NULL; d->angle1 = NULL; d->angle2 = NULL; d->fill = NULL; d->fill_rule = NULL; d->arrow = NULL; d->arrow_length = NULL; d->arrow_width = NULL; d->view = NULL; d->text = NULL; d->pt = NULL; d->space = NULL; d->script_size = NULL; d->direction = NULL; d->raw = NULL; d->font = NULL; d->font_bold = NULL; d->font_italic = NULL; } static void get_font(struct LegendDialog *d) { int style, bold, italic, old_style; SetObjFieldFromFontList(d->font, d->Obj, d->Id, "font"); style = 0; bold = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->font_bold)); if (bold) { style |= GRA_FONT_STYLE_BOLD; } italic = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->font_italic)); if (italic) { style |= GRA_FONT_STYLE_ITALIC; } getobj(d->Obj, "style", d->Id, 0, NULL, &old_style); if (old_style != style) { putobj(d->Obj, "style", d->Id, &style); set_graph_modified(); } } static void set_font(struct LegendDialog *d, int id) { int style; struct compatible_font_info *compatible; compatible = SetFontListFromObj(d->font, d->Obj, d->Id, "font"); if (compatible) { /* for backward compatibility */ style = compatible->style; if (d->text && compatible->symbol) { char buf[] = "%F{Sym}", *tmp; const char *str; str = gtk_entry_get_text(GTK_ENTRY(d->text)); if (str && strncmp(str, buf, sizeof(buf) - 1)) { tmp = g_strdup_printf("%s%s", buf, str); gtk_entry_set_text(GTK_ENTRY(d->text), tmp); g_free(tmp); } } } else { getobj(d->Obj, "style", d->Id, 0, NULL, &style); } gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->font_bold), style & GRA_FONT_STYLE_BOLD); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(d->font_italic), style & GRA_FONT_STYLE_ITALIC); } static void legend_dialog_set_sensitive(GtkWidget *w, gpointer client_data) { struct LegendDialog *d; int path_type; d = (struct LegendDialog *) client_data; path_type = PATH_TYPE_LINE; if (d->path_type && d->interpolation) { path_type = combo_box_get_active(d->path_type); set_widget_sensitivity_with_label(d->interpolation, path_type == PATH_TYPE_CURVE); } if (d->stroke && d->stroke_color && d->style && d->width) { int a; a = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->stroke)); set_widget_sensitivity_with_label(d->stroke_color, a); set_widget_sensitivity_with_label(d->style, a); set_widget_sensitivity_with_label(d->width, a); } if (d->stroke && d->miter && d->join && d->close_path) { int a; a = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->stroke)); set_widget_sensitivity_with_label(d->miter, a); set_widget_sensitivity_with_label(d->join, a); set_widget_sensitivity_with_label(d->close_path, a); } if (d->stroke && d->interpolation && d->close_path && d->arrow && d->arrow_length && d->arrow_width) { int a, ca; a = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->stroke)); ca = combo_box_get_active(d->interpolation); set_widget_sensitivity_with_label(d->miter, a); set_widget_sensitivity_with_label(d->join, a); set_widget_sensitivity_with_label(d->arrow, a); set_widget_sensitivity_with_label(d->arrow_length, a); set_widget_sensitivity_with_label(d->arrow_width, a); if (path_type == PATH_TYPE_CURVE) { set_widget_sensitivity_with_label(d->close_path, a && (ca != INTERPOLATION_TYPE_SPLINE_CLOSE && ca != INTERPOLATION_TYPE_BSPLINE_CLOSE)); } else { set_widget_sensitivity_with_label(d->close_path, a); } } if (d->fill && d->fill_color) { int a; a = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(d->fill)); set_widget_sensitivity_with_label(d->fill_color, a); if (d->fill_rule) { set_widget_sensitivity_with_label(d->fill_rule, a); } } } static void legend_dialog_setup_item(GtkWidget *w, struct LegendDialog *d, int id) { unsigned int i; int x1, y1, x2, y2; struct lwidget lw[] = { {d->stroke, "stroke"}, {d->path_type, "type"}, {d->close_path, "close_path"}, {d->width, "width"}, {d->join, "join"}, {d->miter, "miter_limit"}, {d->interpolation, "interpolation"}, {d->x, "x"}, {d->y, "y"}, {d->x1, "x1"}, {d->y1, "y1"}, {d->rx, "rx"}, {d->ry, "ry"}, {d->angle1, "angle1"}, {d->angle2, "angle2"}, {d->fill, "fill"}, {d->fill_rule, "fill_rule"}, {d->raw, "raw"}, {d->arrow, "arrow"}, {d->pieslice, "pieslice"}, {d->size, "size"}, {d->pt, "pt"}, {d->direction, "direction"}, {d->space, "space"}, {d->script_size, "script_size"}, }; SetTextFromObjPoints(d->points, d->Obj, id, "points"); SetStyleFromObjField(d->style, d->Obj, id, "style"); for (i = 0; i < sizeof(lw) / sizeof(*lw); i++) { SetWidgetFromObjField(lw[i].w, d->Obj, id, lw[i].f); } if (d->type) { int a; getobj(d->Obj, "type", id, 0, NULL, &a); button_set_mark_image(d->type, a); MarkDialog(&d->mark, a); } if (d->arrow_length) { int len, wid; getobj(d->Obj, "arrow_length", id, 0, NULL, &len); getobj(d->Obj, "arrow_width", id, 0, NULL, &wid); d->wid = (wid / 100) * 100; d->ang = atan(0.5 * d->wid / len) * 2 * 180 / MPI; if (d->ang < 10) { d->ang = 10; } else if (d->ang > 170) { d->ang = 170; } gtk_range_set_value(GTK_RANGE(d->arrow_width), d->wid / 100); gtk_range_set_value(GTK_RANGE(d->arrow_length), d->ang); } if (d->x1 && d->y1 && d->x2 && d->y2) { getobj(d->Obj, "x1", id, 0, NULL, &x1); getobj(d->Obj, "y1", id, 0, NULL, &y1); getobj(d->Obj, "x2", id, 0, NULL, &x2); getobj(d->Obj, "y2", id, 0, NULL, &y2); spin_entry_set_val(d->x2, x2 - x1); spin_entry_set_val(d->y2, y2 - y1); } if (d->text) { char *buf; sgetobjfield(d->Obj,id,"text",NULL,&buf,FALSE,FALSE,FALSE); if (buf) { gtk_entry_set_text(GTK_ENTRY(d->text), buf); g_free(buf); } } if (d->font && d->font_bold && d->font_italic) set_font(d, id); if (d->color) set_color(d->color, d->Obj, id, NULL); if (d->color2) set_color2(d->color2, d->Obj, id); if (d->stroke_color) set_stroke_color(d->stroke_color, d->Obj, id); if (d->fill_color) set_fill_color(d->fill_color, d->Obj, id); legend_dialog_set_sensitive(NULL, d); } static void legend_dialog_close(GtkWidget *w, void *data) { struct LegendDialog *d = (struct LegendDialog *) data; unsigned int i; int ret, x1, y1, x2, y2, oval; struct lwidget lw[] = { {d->stroke, "stroke"}, {d->path_type, "type"}, {d->close_path, "close_path"}, {d->width, "width"}, {d->join, "join"}, {d->miter, "miter_limit"}, {d->interpolation, "interpolation"}, {d->x, "x"}, {d->y, "y"}, {d->x1, "x1"}, {d->y1, "y1"}, {d->rx, "rx"}, {d->ry, "ry"}, {d->angle1, "angle1"}, {d->angle2, "angle2"}, {d->fill, "fill"}, {d->fill_rule, "fill_rule"}, {d->raw, "raw"}, {d->arrow, "arrow"}, {d->pieslice, "pieslice"}, {d->size, "size"}, {d->pt, "pt"}, {d->direction, "direction"}, {d->space, "space"}, {d->script_size, "script_size"}, }; switch(d->ret) { case IDOK: break; case IDCOPY: LegendDialogCopy(d); d->ret = IDLOOP; return; default: return; } ret = d->ret; d->ret = IDLOOP; for (i = 0; i < sizeof(lw) / sizeof(*lw); i++) { if (SetObjFieldFromWidget(lw[i].w, d->Obj, d->Id, lw[i].f)) return; } if (SetObjPointsFromText(d->points, d->Obj, d->Id, "points")) return; if (SetObjFieldFromStyle(d->style, d->Obj, d->Id, "style")) return; if (d->x1 && d->y1 && d->x2 && d->y2) { x1 = spin_entry_get_val(d->x1); x2 = spin_entry_get_val(d->x2); y1 = spin_entry_get_val(d->y1); y2 = spin_entry_get_val(d->y2); x2 += x1; y2 += y1; getobj(d->Obj, "x2", d->Id, 0, NULL, &oval); if (oval != x2 && putobj(d->Obj, "x2", d->Id, &x2) == -1) return; getobj(d->Obj, "y2", d->Id, 0, NULL, &oval); if (oval != y2 && putobj(d->Obj, "y2", d->Id, &y2) == -1) return; } if (d->arrow_length) { int wid, ang, len; wid = gtk_range_get_value(GTK_RANGE(d->arrow_width)); ang = gtk_range_get_value(GTK_RANGE(d->arrow_length)); d->wid = wid * 100; d->ang = ang; len = d->wid * 0.5 / tan(d->ang * 0.5 * MPI / 180); getobj(d->Obj, "arrow_length", d->Id, 0, NULL, &oval); if (oval != len) { if (putobj(d->Obj, "arrow_length", d->Id, &len) == -1) { return; } set_graph_modified(); } getobj(d->Obj, "arrow_width", d->Id, 0, NULL, &oval); if (oval != d->wid) { if(putobj(d->Obj, "arrow_width", d->Id, &(d->wid)) == -1) { return; } set_graph_modified(); } } if (d->type) { getobj(d->Obj, "type", d->Id, 0, NULL, &oval); if (oval != d->mark.Type) { if (putobj(d->Obj, "type", d->Id, &(d->mark.Type)) == -1) { return; } set_graph_modified(); } } if (d->font && d->font_bold && d->font_italic) { get_font(d); } if (d->text) { const char *str; char *ptr; str = gtk_entry_get_text(GTK_ENTRY(d->text)); if (str == NULL) return; entry_completion_append(NgraphApp.legend_text_list, str); ptr = g_strdup(str); if (ptr) { char *org_str; sgetobjfield(d->Obj, d->Id, "text", NULL, &org_str, FALSE, FALSE, FALSE); if (org_str == NULL || strcmp(ptr, org_str)) { if (sputobjfield(d->Obj, d->Id, "text", ptr) != 0) { g_free(org_str); g_free(ptr); return; } set_graph_modified(); } g_free(org_str); g_free(ptr); } } if (d->stroke_color && putobj_stroke_color(d->stroke_color, d->Obj, d->Id)) return; if (d->fill_color && putobj_fill_color(d->fill_color, d->Obj, d->Id)) return; if (d->color && putobj_color(d->color, d->Obj, d->Id, NULL)) return; if (d->color2 && putobj_color2(d->color2, d->Obj, d->Id)) return; d->ret = ret; } static void legend_copy_clicked(GtkButton *btn, gpointer user_data) { int sel; struct LegendDialog *d; d = (struct LegendDialog *) user_data; sel = CopyClick(d->widget, d->Obj, d->Id, d->prop_cb); if (sel != -1) { legend_dialog_setup_item(d->widget, d, sel); } } static void LegendDialogCopy(struct LegendDialog *d) { int sel; if ((sel = CopyClick(d->widget, d->Obj, d->Id, d->prop_cb)) != -1) legend_dialog_setup_item(d->widget, d, sel); } static void width_setup(struct LegendDialog *d, GtkWidget *table, int i) { GtkWidget *w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_WIDTH, TRUE, TRUE); d->width = w; add_widget_to_table(table, w, _("_Line width:"), FALSE, i++); } #define POINTS_DIMENSION 2 static void renderer_func(GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer data) { int n; double v; char buf[1024]; n = GPOINTER_TO_INT(data); gtk_tree_model_get(model, iter, n, &v, -1); snprintf(buf, sizeof(buf), "%.2f", v); g_object_set((GObject *) renderer, "text", buf, NULL); } static void column_edited(GtkCellRenderer *cell_renderer, gchar *path_str, gchar *str, int column, gpointer user_data) { double d; char *eptr; GtkTreeModel *list; GtkTreeIter iter; GtkTreePath *path; int r; path = gtk_tree_path_new_from_string(path_str); if (path == NULL) return; list = GTK_TREE_MODEL(user_data); r = gtk_tree_model_get_iter(list, &iter, path); if (! r) return; d = strtod(str, &eptr); if (d != d || d == HUGE_VAL || d == - HUGE_VAL || eptr == str) return; gtk_list_store_set(GTK_LIST_STORE(list), &iter, column, d, -1); } static void column_0_edited(GtkCellRenderer *cell_renderer, gchar *path_str, gchar *str, gpointer user_data) { column_edited(cell_renderer, path_str, str, 0, user_data); } static void column_1_edited(GtkCellRenderer *cell_renderer, gchar *path_str, gchar *str, gpointer user_data) { column_edited(cell_renderer, path_str, str, 1, user_data); } static void insert_column(GtkWidget *w, gpointer user_data) { GtkTreeView *tree_view; GtkTreeModel *list; GtkTreeIter iter, tmp; GtkTreePath *path; int r; tree_view = GTK_TREE_VIEW(user_data); list = gtk_tree_view_get_model(tree_view); if (list == NULL) { return; } gtk_tree_view_get_cursor(tree_view, &path, NULL); if (path) { r = gtk_tree_model_get_iter(list, &iter, path); if (! r) goto End; gtk_list_store_insert_after(GTK_LIST_STORE(list), &tmp, &iter); } else { gtk_list_store_append(GTK_LIST_STORE(list), &tmp); } if (path) { gtk_tree_path_free(path); } path = gtk_tree_model_get_path(list, &tmp); if (path) { gtk_tree_view_set_cursor(tree_view, path, NULL, FALSE); } End: if (path) gtk_tree_path_free(path); } static void set_delete_button_sensitivity(GtkTreeSelection *sel, gpointer user_data) { GtkWidget *btn; int n; btn = GTK_WIDGET(user_data); n = gtk_tree_selection_count_selected_rows(sel); gtk_widget_set_sensitive(btn, n > 0); } static GtkWidget * points_setup(struct LegendDialog *d) { GtkWidget *label, *swin, *vbox, *hbox, *tree_view, *btn; GtkTreeModel *list; GtkCellRenderer *renderer; GtkTreeViewColumn *col; GtkTreeSelection *sel; char *title[] = {"x", "y"}; int i; GCallback edited_func[] = {G_CALLBACK(column_0_edited), G_CALLBACK(column_1_edited)}; list = GTK_TREE_MODEL(gtk_list_store_new(POINTS_DIMENSION, G_TYPE_DOUBLE, G_TYPE_DOUBLE)); tree_view = gtk_tree_view_new_with_model(list); gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tree_view), TRUE); gtk_tree_view_set_rubber_banding(GTK_TREE_VIEW(tree_view), FALSE); gtk_tree_view_set_grid_lines(GTK_TREE_VIEW(tree_view), GTK_TREE_VIEW_GRID_LINES_VERTICAL); gtk_tree_view_set_reorderable(GTK_TREE_VIEW(tree_view), TRUE); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree_view)); gtk_tree_selection_set_mode(sel, GTK_SELECTION_MULTIPLE); for (i = 0; i < POINTS_DIMENSION; i++) { #if GTK_CHECK_VERSION(3, 8, 0) || ! GTK_CHECK_VERSION(3, 0, 0) renderer = gtk_cell_renderer_spin_new(); #else renderer = gtk_cell_renderer_text_new(); #endif g_object_set((GObject *) renderer, "xalign", 1.0, "editable", TRUE, #if GTK_CHECK_VERSION(3, 8, 0) || ! GTK_CHECK_VERSION(3, 0, 0) "adjustment", gtk_adjustment_new(0, -SPIN_ENTRY_MAX / 100.0, SPIN_ENTRY_MAX / 100.0, 1, 10, 0), "digits", 2, #endif NULL); g_signal_connect(renderer, "edited", G_CALLBACK(edited_func[i]), list); col = gtk_tree_view_column_new_with_attributes(title[i], renderer, "text", i, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), col); gtk_tree_view_column_set_cell_data_func(col, renderer, renderer_func, GINT_TO_POINTER(i), NULL); gtk_tree_view_column_set_expand(col, TRUE); } #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); #else vbox = gtk_vbox_new(FALSE, 4); #endif label = gtk_label_new_with_mnemonic(_("_Points:")); set_widget_margin(label, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT | WIDGET_MARGIN_TOP | WIDGET_MARGIN_BOTTOM); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_halign(label, GTK_ALIGN_START); #else gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); #endif gtk_label_set_mnemonic_widget(GTK_LABEL(label), tree_view); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(swin), GTK_SHADOW_ETCHED_IN); gtk_container_set_border_width(GTK_CONTAINER(swin), 2); set_widget_margin(swin, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT | WIDGET_MARGIN_BOTTOM); gtk_container_add(GTK_CONTAINER(swin), tree_view); gtk_box_pack_start(GTK_BOX(vbox), swin, TRUE, TRUE, 0); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); #else hbox = gtk_hbox_new(FALSE, 4); #endif btn = gtk_button_new_from_stock(GTK_STOCK_ADD); g_signal_connect(btn, "clicked", G_CALLBACK(insert_column), tree_view); gtk_box_pack_start(GTK_BOX(hbox), btn, FALSE, FALSE, 4); btn = gtk_button_new_from_stock(GTK_STOCK_DELETE); g_signal_connect(btn, "clicked", G_CALLBACK(list_store_remove_selected_cb), tree_view); g_signal_connect(sel, "changed", G_CALLBACK(set_delete_button_sensitivity), btn); gtk_widget_set_sensitive(btn, FALSE); gtk_box_pack_start(GTK_BOX(hbox), btn, FALSE, FALSE, 4); set_widget_margin(hbox, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT | WIDGET_MARGIN_BOTTOM); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 4); d->points = tree_view; return vbox; } static void style_setup(struct LegendDialog *d, GtkWidget *table, int i) { GtkWidget *w; w = combo_box_entry_create(); gtk_widget_set_size_request(w, NUM_ENTRY_WIDTH * 1.5, -1); d->style = w; add_widget_to_table(table, w, _("Line _Style:"), TRUE, i); } static void miter_setup(struct LegendDialog *d, GtkWidget *table, int i) { GtkWidget *w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, TRUE, TRUE); d->miter = w; add_widget_to_table(table, w, _("_Miter:"), FALSE, i++); } static void join_setup(struct LegendDialog *d, GtkWidget *table, int i) { GtkWidget *w; w = combo_box_create(); d->join = w; add_widget_to_table(table, w, _("_Join:"), FALSE, i++); } static void color_setup(struct LegendDialog *d, GtkWidget *table, int i) { GtkWidget *w; w = create_color_button(d->widget); d->color = w; add_widget_to_table(table, w, _("_Color:"), FALSE, i); } static void color2_setup(struct LegendDialog *d, GtkWidget *table, int i) { GtkWidget *w; w = create_color_button(d->widget); d->color2 = w; add_widget_to_table(table, w, _("_Color2:"), FALSE, i); } static void fill_color_setup(struct LegendDialog *d, GtkWidget *table, int i) { GtkWidget *w; w = create_color_button(d->widget); d->fill_color = w; add_widget_to_table(table, w, _("_Color:"), FALSE, i); } static void stroke_color_setup(struct LegendDialog *d, GtkWidget *table, int i) { GtkWidget *w; w = create_color_button(d->widget); d->stroke_color = w; add_widget_to_table(table, w, _("_Color:"), FALSE, i); } static void draw_arrow_pixmap(GtkWidget *win, struct LegendDialog *d) { int lw, len, x, w; cairo_t *cr; GdkWindow *window; window = gtk_widget_get_window(win); if (window == NULL) { return; } if (d->arrow_pixmap == NULL) { d->arrow_pixmap = cairo_image_surface_create(CAIRO_FORMAT_RGB24, ARROW_VIEW_SIZE, ARROW_VIEW_SIZE); } cr = cairo_create(d->arrow_pixmap); cairo_set_source_rgb(cr, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); cairo_paint(cr); cairo_set_source_rgb(cr, 0, 0, 0); lw = ARROW_VIEW_SIZE / 20; len = d->wid * 0.5 / tan(d->ang * 0.5 * MPI / 180); x = nround(lw * (len / 10000.0)); w = nround(lw * (d->wid / 20000.0)); cairo_rectangle(cr, x, (ARROW_VIEW_SIZE - lw) / 2, ARROW_VIEW_SIZE - x, lw); cairo_move_to(cr, 0, ARROW_VIEW_SIZE / 2); cairo_line_to(cr, x, ARROW_VIEW_SIZE / 2 - w); cairo_line_to(cr, x, ARROW_VIEW_SIZE / 2 + w); cairo_fill(cr); } static void #if GTK_CHECK_VERSION(3, 0, 0) LegendArrowDialogPaint(GtkWidget *w, cairo_t *cr, gpointer client_data) #else LegendArrowDialogPaint(GtkWidget *w, GdkEvent *event, gpointer client_data) #endif { struct LegendDialog *d; #if ! GTK_CHECK_VERSION(3, 0, 0) GdkWindow *win; cairo_t *cr; #endif d = (struct LegendDialog *) client_data; if (d->arrow_pixmap == NULL) { draw_arrow_pixmap(w, d); } if (d->arrow_pixmap == NULL) { return; } #if ! GTK_CHECK_VERSION(3, 0, 0) win = gtk_widget_get_window(w); if (win == NULL) { return; } cr = gdk_cairo_create(win); #endif cairo_set_source_surface(cr, d->arrow_pixmap, 0, 0); cairo_paint(cr); #if ! GTK_CHECK_VERSION(3, 0, 0) cairo_destroy(cr); #endif } static void LegendArrowDialogScaleW(GtkWidget *w, gpointer client_data) { struct LegendDialog *d; #if GTK_CHECK_VERSION(3, 0, 0) GdkWindow *win; cairo_t *cr; #endif d = (struct LegendDialog *) client_data; d->wid = gtk_range_get_value(GTK_RANGE(w)) * 100; draw_arrow_pixmap(w, d); #if GTK_CHECK_VERSION(3, 0, 0) win = gtk_widget_get_window(d->view); if (win == NULL) { return; } cr = gdk_cairo_create(win); LegendArrowDialogPaint(d->view, cr, d); cairo_destroy(cr); #else LegendArrowDialogPaint(d->view, NULL, d); #endif } static void LegendArrowDialogScaleL(GtkWidget *w, gpointer client_data) { struct LegendDialog *d; #if GTK_CHECK_VERSION(3, 0, 0) GdkWindow *win; cairo_t *cr; #endif d = (struct LegendDialog *) client_data; d->ang = gtk_range_get_value(GTK_RANGE(w)); draw_arrow_pixmap(w, d); #if GTK_CHECK_VERSION(3, 0, 0) win = gtk_widget_get_window(d->view); if (win == NULL) { return; } cr = gdk_cairo_create(win); LegendArrowDialogPaint(d->view, cr, d); cairo_destroy(cr); #else LegendArrowDialogPaint(d->view, NULL, d); #endif } static gchar* format_value_percent(GtkScale *scale, gdouble value, gpointer user_data) { return g_strdup_printf ("%.0f%%", value); } static gchar* format_value_degree(GtkScale *scale, gdouble value, gpointer user_data) { return g_strdup_printf ("%.0f°", value); } static void LegendArrowDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *vbox, *hbox2, *vbox2, *frame, *table; struct LegendDialog *d; char title[64]; int i; d = (struct LegendDialog *) data; snprintf(title, sizeof(title), _("Legend line %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { init_legend_dialog_widget_member(d); gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_DELETE, IDDELETE); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = points_setup(d); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), w); #if GTK_CHECK_VERSION(3, 4, 0) gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); #else gtk_box_pack_start(GTK_BOX(hbox), frame, FALSE, FALSE, 0); #endif #if GTK_CHECK_VERSION(3, 0, 0) vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); #else vbox2 = gtk_vbox_new(FALSE, 0); #endif #if GTK_CHECK_VERSION(3, 0, 0) hbox2 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox2 = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); add_widget_to_table(table, w, _("_Type:"), FALSE, i++); g_signal_connect(w, "changed", G_CALLBACK(legend_dialog_set_sensitive), d); d->path_type = w; w = combo_box_create(); d->interpolation = w; add_widget_to_table(table, w, _("_Interpolation:"), FALSE, i++); g_signal_connect(w, "changed", G_CALLBACK(legend_dialog_set_sensitive), d); gtk_box_pack_start(GTK_BOX(vbox2), table, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = gtk_check_button_new_with_mnemonic(_("_Close path")); add_widget_to_table(table, w, NULL, FALSE, i++); d->close_path = w; w = combo_box_create(); d->arrow = w; add_widget_to_table(table, w, _("_Arrow:"), FALSE, i++); style_setup(d, table, i++); width_setup(d, table, i++); miter_setup(d, table, i++); join_setup(d, table, i++); stroke_color_setup(d, table, i++); gtk_box_pack_start(GTK_BOX(hbox2), table, TRUE, TRUE, 0); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 2, 0) w = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 10, 170, 1); #else w = gtk_hscale_new_with_range(10, 170, 1); #endif set_scale_mark(w, GTK_POS_BOTTOM, 15, 15); g_signal_connect(w, "value-changed", G_CALLBACK(LegendArrowDialogScaleL), d); g_signal_connect(w, "format-value", G_CALLBACK(format_value_degree), NULL); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); d->arrow_length = w; w = gtk_drawing_area_new(); gtk_widget_set_size_request(w, ARROW_VIEW_SIZE, ARROW_VIEW_SIZE); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); #if GTK_CHECK_VERSION(3, 0, 0) g_signal_connect(w, "draw", G_CALLBACK(LegendArrowDialogPaint), d); #else g_signal_connect(w, "expose-event", G_CALLBACK(LegendArrowDialogPaint), d); #endif d->view = w; #if GTK_CHECK_VERSION(3, 2, 0) w = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 100, 2000, 1); #else w = gtk_hscale_new_with_range(100, 2000, 1); #endif set_scale_mark(w, GTK_POS_TOP, 200, 200); g_signal_connect(w, "value-changed", G_CALLBACK(LegendArrowDialogScaleW), d); g_signal_connect(w, "format-value", G_CALLBACK(format_value_percent), NULL); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); d->arrow_width = w; set_widget_margin(vbox, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT); gtk_box_pack_start(GTK_BOX(hbox2), vbox, FALSE, FALSE, 0); w = gtk_check_button_new_with_mnemonic(_("_Stroke")); g_signal_connect(w, "toggled", G_CALLBACK(legend_dialog_set_sensitive), d); d->stroke = w; frame = gtk_frame_new(NULL); gtk_frame_set_label_widget(GTK_FRAME(frame), w); gtk_container_add(GTK_CONTAINER(frame), hbox2); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT | WIDGET_MARGIN_BOTTOM); gtk_box_pack_start(GTK_BOX(vbox2), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = combo_box_create(); d->fill_rule = w; add_widget_to_table(table, w, _("fill _Rule:"), FALSE, i++); fill_color_setup(d, table, i++); w = gtk_check_button_new_with_mnemonic(_("_Fill")); g_signal_connect(w, "toggled", G_CALLBACK(legend_dialog_set_sensitive), d); d->fill = w; frame = gtk_frame_new(NULL); gtk_frame_set_label_widget(GTK_FRAME(frame), w); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT | WIDGET_MARGIN_BOTTOM); gtk_box_pack_start(GTK_BOX(vbox2), frame, TRUE, TRUE, 0); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), vbox2); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, TRUE, TRUE, 4); add_copy_button_to_box(GTK_WIDGET(d->vbox), G_CALLBACK(legend_copy_clicked), d, "path"); d->prop_cb = LegendLineCB; gtk_widget_show_all(GTK_WIDGET(d->vbox)); } legend_dialog_setup_item(wi, d, d->Id); } void LegendArrowDialog(struct LegendDialog *data, struct objlist *obj, int id) { data->SetupWindow = LegendArrowDialogSetup; data->CloseWindow = legend_dialog_close; data->Obj = obj; data->Id = id; } static void LegendRectDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *vbox, *frame, *table; struct LegendDialog *d; char title[64]; int i; d = (struct LegendDialog *) data; snprintf(title, sizeof(title), _("Legend rectangle %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { init_legend_dialog_widget_member(d); gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_DELETE, IDDELETE); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_X:", FALSE, i++); d->x1 = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_Y:", FALSE, i++); d->y1 = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("_Width:"), FALSE, i++); d->x2 = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, _("_Height:"), FALSE, i++); d->y2 = w; frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(hbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); #else vbox = gtk_vbox_new(FALSE, 0); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; style_setup(d, table, i++); width_setup(d, table, i++); stroke_color_setup(d, table, i++); w = gtk_check_button_new_with_mnemonic(_("_Stroke")); g_signal_connect(w, "toggled", G_CALLBACK(legend_dialog_set_sensitive), d); d->stroke = w; frame = gtk_frame_new(NULL); gtk_frame_set_label_widget(GTK_FRAME(frame), w); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT | WIDGET_MARGIN_BOTTOM); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; fill_color_setup(d, table, i++); w = gtk_check_button_new_with_mnemonic(_("_Fill")); g_signal_connect(w, "toggled", G_CALLBACK(legend_dialog_set_sensitive), d); d->fill = w; frame = gtk_frame_new(NULL); gtk_frame_set_label_widget(GTK_FRAME(frame), w); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT | WIDGET_MARGIN_BOTTOM); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), vbox); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, TRUE, TRUE, 4); add_copy_button_to_box(GTK_WIDGET(d->vbox), G_CALLBACK(legend_copy_clicked), d, "rectangle"); d->prop_cb = LegendRectCB; gtk_widget_show_all(GTK_WIDGET(d->vbox)); } legend_dialog_setup_item(wi, d, d->Id); } void LegendRectDialog(struct LegendDialog *data, struct objlist *obj, int id) { data->SetupWindow = LegendRectDialogSetup; data->CloseWindow = legend_dialog_close; data->Obj = obj; data->Id = id; } static void LegendArcDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *vbox, *table, *frame; struct LegendDialog *d; char title[64]; int i; d = (struct LegendDialog *) data; snprintf(title, sizeof(title), _("Legend arc %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { init_legend_dialog_widget_member(d); gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_DELETE, IDDELETE); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_X:", FALSE, i++); d->x = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_Y:", FALSE, i++); d->y = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, TRUE, TRUE); add_widget_to_table(table, w, "_RX:", FALSE, i++); d->rx = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, TRUE, TRUE); add_widget_to_table(table, w, "_RY:", FALSE, i++); d->ry = w; frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(hbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_direction_entry(); add_widget_to_table(table, w, _("_Angle1:"), FALSE, i++); d->angle1 = w; w = create_direction_entry(); add_widget_to_table(table, w, _("_Angle2:"), FALSE, i++); d->angle2 = w; w = gtk_check_button_new_with_mnemonic(_("_Pieslice")); add_widget_to_table(table, w, NULL, FALSE, i++); d->pieslice = w; #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); #else vbox = gtk_vbox_new(FALSE, 0); #endif gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = gtk_check_button_new_with_mnemonic(_("_Close path")); add_widget_to_table(table, w, NULL, FALSE, i++); d->close_path = w; style_setup(d, table, i++); width_setup(d, table, i++); miter_setup(d, table, i++); join_setup(d, table, i++); stroke_color_setup(d, table, i++); w = gtk_check_button_new_with_mnemonic(_("_Stroke")); g_signal_connect(w, "toggled", G_CALLBACK(legend_dialog_set_sensitive), d); d->stroke = w; frame = gtk_frame_new(NULL); gtk_frame_set_label_widget(GTK_FRAME(frame), w); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT | WIDGET_MARGIN_BOTTOM); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; fill_color_setup(d, table, i++); w = gtk_check_button_new_with_mnemonic(_("_Fill")); g_signal_connect(w, "toggled", G_CALLBACK(legend_dialog_set_sensitive), d); d->fill = w; frame = gtk_frame_new(NULL); gtk_frame_set_label_widget(GTK_FRAME(frame), w); gtk_container_add(GTK_CONTAINER(frame), table); set_widget_margin(frame, WIDGET_MARGIN_LEFT | WIDGET_MARGIN_RIGHT | WIDGET_MARGIN_BOTTOM); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), vbox); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, TRUE, TRUE, 4); add_copy_button_to_box(GTK_WIDGET(d->vbox), G_CALLBACK(legend_copy_clicked), d, "arc"); d->prop_cb = LegendArcCB; gtk_widget_show_all(GTK_WIDGET(d->vbox)); } legend_dialog_setup_item(wi, d, d->Id); } void LegendArcDialog(struct LegendDialog *data, struct objlist *obj, int id) { data->SetupWindow = LegendArcDialogSetup; data->CloseWindow = legend_dialog_close; data->Obj = obj; data->Id = id; } static void LegendMarkDialogMark(GtkWidget *w, gpointer client_data) { struct LegendDialog *d; d = (struct LegendDialog *) client_data; DialogExecute(d->widget, &(d->mark)); button_set_mark_image(w, d->mark.Type); } static void LegendMarkDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *frame, *table; struct LegendDialog *d; char title[64]; int i; d = (struct LegendDialog *) data; snprintf(title, sizeof(title), _("Legend mark %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { init_legend_dialog_widget_member(d); gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_DELETE, IDDELETE); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_X:", FALSE, i++); d->x = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_Y:", FALSE, i++); d->y = w; frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(hbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; style_setup(d, table, i++); width_setup(d, table, i++); w = gtk_button_new(); add_widget_to_table(table, w, _("_Mark:"), FALSE, i++); g_signal_connect(w, "clicked", G_CALLBACK(LegendMarkDialogMark), d); d->type = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_LENGTH, TRUE, TRUE); add_widget_to_table(table, w, _("_Size:"), FALSE, i++); d->size = w; color_setup(d, table, i++); color2_setup(d, table, i++); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); add_copy_button_to_box(GTK_WIDGET(d->vbox), G_CALLBACK(legend_copy_clicked), d, "mark"); d->prop_cb = LegendArcCB; gtk_widget_show_all(GTK_WIDGET(d->vbox)); } legend_dialog_setup_item(wi, d, d->Id); if (makewidget) d->widget = NULL; } void LegendMarkDialog(struct LegendDialog *data, struct objlist *obj, int id) { data->SetupWindow = LegendMarkDialogSetup; data->CloseWindow = legend_dialog_close; data->Obj = obj; data->Id = id; } static void legend_dialog_setup_sub(struct LegendDialog *d, GtkWidget *table, int i) { GtkWidget *w, *btn_box; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Pt:"), FALSE, i++); d->pt = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_SPACE_POINT, TRUE, TRUE); add_widget_to_table(table, w, _("_Space:"), FALSE, i++); d->space = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_PERCENT, TRUE, TRUE); spin_entry_set_range(w, TEXT_OBJ_SCRIPT_SIZE_MIN, TEXT_OBJ_SCRIPT_SIZE_MAX); add_widget_to_table(table, w, _("_Script:"), FALSE, i++); d->script_size = w; w = combo_box_create(); add_widget_to_table(table, w, _("_Font:"), FALSE, i++); d->font = w; #if GTK_CHECK_VERSION(3, 2, 0) btn_box = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL); #else btn_box = gtk_hbutton_box_new(); #endif gtk_box_set_spacing(GTK_BOX(btn_box), 10); w = gtk_check_button_new_with_label("gtk-bold"); gtk_button_set_use_stock(GTK_BUTTON(w), TRUE); d->font_bold = w; gtk_box_pack_start(GTK_BOX(btn_box), w, FALSE, FALSE, 0); w = gtk_check_button_new_with_label("gtk-italic"); gtk_button_set_use_stock(GTK_BUTTON(w), TRUE); d->font_italic = w; gtk_box_pack_start(GTK_BOX(btn_box), w, FALSE, FALSE, 0); add_widget_to_table(table, btn_box, "", FALSE, i++); color_setup(d, table, i++); w = create_direction_entry(); add_widget_to_table(table, w, _("_Direction:"), FALSE, i++); d->direction = w; w = gtk_check_button_new_with_mnemonic(_("_Raw")); add_widget_to_table(table, w, NULL, FALSE, i++); d->raw = w; } static void insert_selcted_char(GtkIconView *icon_view, GtkTreePath *path, gpointer user_data) { GtkTreeModel *model; GtkTreeIter iter; char *ptr; GtkEditable *entry; int pos; model = gtk_icon_view_get_model(icon_view); if (! gtk_tree_model_get_iter(model, &iter, path)) { return; } gtk_tree_model_get(model, &iter, 0, &ptr, -1); entry = GTK_EDITABLE(user_data); pos = gtk_editable_get_position(entry); gtk_editable_insert_text(entry, ptr, -1, &pos); gtk_editable_set_position(entry, pos + 1); gtk_widget_grab_focus(GTK_WIDGET(user_data)); gtk_editable_select_region(entry, pos, pos); g_free(ptr); } static GtkWidget * create_character_view(GtkWidget *entry, gchar *data) { GtkWidget *icon_view, *swin; GtkListStore *model; GtkTreeIter iter; gchar *ptr; #if GTK_CHECK_VERSION(3, 0, 0) && ! GTK_CHECK_VERSION(3, 8, 0) PangoLayout *layout; PangoRectangle ink_rect; int width = 0, w; #endif model = gtk_list_store_new(1, G_TYPE_STRING); icon_view = gtk_icon_view_new_with_model(GTK_TREE_MODEL(model)); gtk_icon_view_set_text_column(GTK_ICON_VIEW(icon_view), 0); gtk_icon_view_set_spacing(GTK_ICON_VIEW(icon_view), 0); gtk_icon_view_set_row_spacing(GTK_ICON_VIEW(icon_view), 0); gtk_icon_view_set_column_spacing(GTK_ICON_VIEW(icon_view), 0); gtk_icon_view_set_margin(GTK_ICON_VIEW(icon_view), 0); #if GTK_CHECK_VERSION(2, 18, 0) gtk_icon_view_set_item_padding(GTK_ICON_VIEW(icon_view), 0); #endif #if ! GTK_CHECK_VERSION(3, 8, 0) gtk_icon_view_set_columns(GTK_ICON_VIEW(icon_view), 24); #endif g_signal_connect(icon_view, "item-activated", G_CALLBACK(insert_selcted_char), entry); for (ptr = data; *ptr; ptr = g_utf8_next_char(ptr)) { gunichar ch; gchar str[8]; int l; gtk_list_store_append(model, &iter); ch = g_utf8_get_char(ptr); l = g_unichar_to_utf8(ch, str); str[l] = '\0'; gtk_list_store_set(model, &iter, 0, str, -1); #if GTK_CHECK_VERSION(3, 0, 0) && ! GTK_CHECK_VERSION(3, 8, 0) /* fix-me: there exist extra spaces both side of strings when use GTK+3.0 */ layout = gtk_widget_create_pango_layout(icon_view, str); pango_layout_get_pixel_extents(layout, &ink_rect, NULL); w = ink_rect.x + ink_rect.width; if (w > width) { width = w; } g_object_unref(layout); #endif } #if GTK_CHECK_VERSION(3, 0, 0) && ! GTK_CHECK_VERSION(3, 8, 0) gtk_icon_view_set_item_width(GTK_ICON_VIEW(icon_view), width * 1.5); #endif swin = gtk_scrolled_window_new(NULL, NULL); #if GTK_CHECK_VERSION(3, 8, 0) gtk_icon_view_set_activate_on_single_click(GTK_ICON_VIEW(icon_view),TRUE); gtk_widget_set_size_request(GTK_WIDGET(swin), -1, 100); #endif gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(swin), icon_view); return swin; } static GtkWidget * create_character_panel(GtkWidget *entry) { GtkWidget *tab, *label, *child; struct character_map_list *list; tab = gtk_notebook_new(); for (list = Menulocal.char_map; list; list = list->next) { char *data, *title; data = list->data; title = list->title; if (data && data[0]) { label = gtk_label_new_with_mnemonic(_(title)); child = create_character_view(entry, data); gtk_notebook_append_page(GTK_NOTEBOOK(tab), child, label); } } return tab; } static void LegendTextDialogSetup(GtkWidget *wi, void *data, int makewidget) { GtkWidget *w, *hbox, *frame, *table; struct LegendDialog *d; char title[64]; int i; d = (struct LegendDialog *) data; snprintf(title, sizeof(title), _("Legend text %d"), d->Id); gtk_window_set_title(GTK_WINDOW(wi), title); if (makewidget) { init_legend_dialog_widget_member(d); gtk_dialog_add_button(GTK_DIALOG(wi), GTK_STOCK_DELETE, IDDELETE); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_X:", FALSE, i++); d->x = w; w = create_spin_entry_type(SPIN_BUTTON_TYPE_POSITION, TRUE, TRUE); add_widget_to_table(table, w, "_Y:", FALSE, i++); d->y = w; frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(hbox), frame, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif i = 0; w = create_text_entry(FALSE, TRUE); add_widget_to_table(table, w, _("_Text:"), TRUE, i++); d->text = w; legend_dialog_setup_sub(d, table, i++); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); w = create_character_panel(d->text); gtk_box_pack_start(GTK_BOX(d->vbox), w, TRUE, TRUE, 4); add_copy_button_to_box(GTK_WIDGET(d->vbox), G_CALLBACK(legend_copy_clicked), d, "text"); d->prop_cb = LegendTextCB; gtk_widget_show_all(GTK_WIDGET(d->vbox)); } legend_dialog_setup_item(wi, d, d->Id); entry_completion_set_entry(NgraphApp.legend_text_list, d->text); d->focus = d->text; } void LegendTextDialog(struct LegendDialog *data, struct objlist *obj, int id) { data->SetupWindow = LegendTextDialogSetup; data->CloseWindow = legend_dialog_close; data->Obj = obj; data->Id = id; } static void LegendTextDefDialogSetup(GtkWidget *w, void *data, int makewidget) { struct LegendDialog *d; GtkWidget *table, *frame; d = (struct LegendDialog *) data; if (makewidget) { init_legend_dialog_widget_member(d); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif legend_dialog_setup_sub(d, table, 0); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(d->vbox), frame, TRUE, TRUE, 0); add_copy_button_to_box(GTK_WIDGET(d->vbox), G_CALLBACK(legend_copy_clicked), d, "text"); d->prop_cb = LegendTextCB; gtk_widget_show_all(GTK_WIDGET(d->vbox)); } legend_dialog_setup_item(w, d, d->Id); } void LegendTextDefDialog(struct LegendDialog *data, struct objlist *obj, int id) { data->SetupWindow = LegendTextDefDialogSetup; data->CloseWindow = legend_dialog_close; data->Obj = obj; data->Id = id; } void CmLineDel(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i; int num, *data; if (Menulock || Globallock) return; if ((obj = chkobject("path")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendLineCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = num - 1; i >= 0; i--) { delobj(obj, data[i]); set_graph_modified(); } LegendWinUpdate(TRUE); } arraydel(&array); } void CmLineUpdate(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i, j; int *data, num; if (Menulock || Globallock) return; if ((obj = chkobject("path")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendLineCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = 0; i < num; i++) { LegendArrowDialog(&DlgLegendArrow, obj, data[i]); if (DialogExecute(TopLevel, &DlgLegendArrow) == IDDELETE) { delobj(obj, data[i]); set_graph_modified(); for (j = i + 1; j < num; j++) { data[j]--; } } } LegendWinUpdate(TRUE); } arraydel(&array); } void CmRectDel(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i; int num, *data; if (Menulock || Globallock) return; if ((obj = chkobject("rectangle")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendRectCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = num - 1; i >= 0; i--) { delobj(obj, data[i]); set_graph_modified(); } LegendWinUpdate(TRUE); } arraydel(&array); } void CmRectUpdate(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i, j; int *data, num; if (Menulock || Globallock) return; if ((obj = chkobject("rectangle")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendRectCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = 0; i < num; i++) { LegendRectDialog(&DlgLegendRect, obj, data[i]); if (DialogExecute(TopLevel, &DlgLegendRect) == IDDELETE) { delobj(obj, data[i]); set_graph_modified(); for (j = i + 1; j < num; j++) { data[j]--; } } } LegendWinUpdate(TRUE); } arraydel(&array); } void CmArcDel(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i; int num, *data; if (Menulock || Globallock) return; if ((obj = chkobject("arc")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendArcCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = num - 1; i >= 0; i--) { delobj(obj, data[i]); set_graph_modified(); } LegendWinUpdate(TRUE); } arraydel(&array); } void CmArcUpdate(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i, j; int *data, num; if (Menulock || Globallock) return; if ((obj = chkobject("arc")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendArcCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = 0; i < num; i++) { LegendArcDialog(&DlgLegendArc, obj, data[i]); if (DialogExecute(TopLevel, &DlgLegendArc) == IDDELETE) { delobj(obj, data[i]); set_graph_modified(); for (j = i + 1; j < num; j++) { data[j]--; } } } LegendWinUpdate(TRUE); } arraydel(&array); } void CmMarkDel(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i; int num, *data; if (Menulock || Globallock) return; if ((obj = chkobject("mark")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendMarkCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = num - 1; i >= 0; i--) { delobj(obj, data[i]); set_graph_modified(); } LegendWinUpdate(TRUE); } arraydel(&array); } void CmMarkUpdate(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i, j; int *data, num; if (Menulock || Globallock) return; if ((obj = chkobject("mark")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendMarkCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = 0; i < num; i++) { LegendMarkDialog(&DlgLegendMark, obj, data[i]); if (DialogExecute(TopLevel, &DlgLegendMark) == IDDELETE) { delobj(obj, data[i]); set_graph_modified(); for (j = i + 1; j < num; j++) { data[j]--; } } } LegendWinUpdate(TRUE); } arraydel(&array); } void CmTextDel(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i; int num, *data; if (Menulock || Globallock) return; if ((obj = chkobject("text")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendTextCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = num - 1; i >= 0; i--) { delobj(obj, data[i]); set_graph_modified(); } LegendWinUpdate(TRUE); } arraydel(&array); } void CmTextUpdate(GtkAction *w, gpointer client_data) { struct narray array; struct objlist *obj; int i, j; int *data, num; if (Menulock || Globallock) return; if ((obj = chkobject("text")) == NULL) return; if (chkobjlastinst(obj) == -1) return; SelectDialog(&DlgSelect, obj, LegendTextCB, &array, NULL); if (DialogExecute(TopLevel, &DlgSelect) == IDOK) { num = arraynum(&array); data = arraydata(&array); for (i = 0; i < num; i++) { LegendTextDialog(&DlgLegendText, obj, data[i]); if (DialogExecute(TopLevel, &DlgLegendText) == IDDELETE) { delobj(obj, data[i]); set_graph_modified(); for (j = i + 1; j < num; j++) { data[j]--; } } } LegendWinUpdate(TRUE); } arraydel(&array); } void CmOptionTextDef(GtkAction *w, gpointer client_data) { struct objlist *obj; int id; if (Menulock || Globallock) return; if ((obj = chkobject("text")) == NULL) return; id = newobj(obj); if (id >= 0) { int modified; modified = get_graph_modified(); LegendTextDefDialog(&DlgLegendTextDef, obj, id); if (DialogExecute(TopLevel, &DlgLegendTextDef) == IDOK) { if (CheckIniFile()) { exeobj(obj, "save_config", id, 0, NULL); } } delobj(obj, id); UpdateAll2(); if (! modified) { reset_graph_modified(); } } } static void LegendWinPathUpdate(struct obj_list_data *data, int id, int user_data) { LegendArrowDialog(&DlgLegendArrow, data->obj, id); } static void LegendWinRectUpdate(struct obj_list_data *data, int id, int user_data) { LegendRectDialog(&DlgLegendRect, data->obj, id); } static void LegendWinArcUpdate(struct obj_list_data *data, int id, int user_data) { LegendArcDialog(&DlgLegendArc, data->obj, id); } static void LegendWinMarkUpdate(struct obj_list_data *data, int id, int user_data) { LegendMarkDialog(&DlgLegendMark, data->obj, id); } static void LegendWinTextUpdate(struct obj_list_data *data, int id, int user_data) { LegendTextDialog(&DlgLegendText, data->obj, id); } static void ObjListUpdate(struct obj_list_data *d, int clear, list_sub_window_set_val_func func) { if (Menulock || Globallock) return; if (d->text == NULL) { return; } if (list_sub_window_must_rebuild(d)) { list_sub_window_build(d, func); } else { list_sub_window_set(d, func); } if (! clear && d->select >= 0) { list_store_select_int(GTK_WIDGET(d->text), COL_ID, d->select); } } void PathListUpdate(struct obj_list_data *d, int clear) { ObjListUpdate(d, clear, path_list_set_val); } void ArcListUpdate(struct obj_list_data *d, int clear) { ObjListUpdate(d, clear, arc_list_set_val); } void RectListUpdate(struct obj_list_data *d ,int clear) { ObjListUpdate(d, clear, rect_list_set_val); } void MarkListUpdate(struct obj_list_data *d, int clear) { ObjListUpdate(d, clear, mark_list_set_val); } void TextListUpdate(struct obj_list_data *d, int clear) { ObjListUpdate(d, clear, text_list_set_val); } void LegendWinUpdate(int clear) { struct obj_list_data *d; if (Menulock || Globallock) return; for (d = NgraphApp.LegendWin.data.data; d; d = d->next) { d->update(d, clear); } } static void get_points(struct objlist *obj, int id, int *x, int *y, int *n) { int *points, i; struct narray *array; getobj(obj, "points", id, 0, NULL, &array); points = arraydata(array); i = arraynum(array); *n = i / 2; if (i < 2) { *x = 0; *y = 0; } else { *x = points[0]; *y = points[1]; } } static GdkPixbuf * draw_color_pixbuf(struct objlist *obj, int id, enum OBJ_FIELD_COLOR_TYPE type, int width) { int ggc, fr, fg, fb, stroke, fill, close_path, pos[8], height = 20, lockstate, found, output, n; #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_t *pix; #else GdkPixmap *pix; #endif GdkPixbuf *pixbuf; struct objlist *gobj, *robj; N_VALUE *inst; struct gra2cairo_local *local; struct narray *line_style; lockstate = Globallock; Globallock = TRUE; found = find_gra2gdk_inst(&gobj, &inst, &robj, &output, &local); if (! found) { return NULL; } #if GTK_CHECK_VERSION(3, 0, 0) pix = gra2gdk_create_pixmap(local, width, height, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); #else pix = gra2gdk_create_pixmap(local, gtk_widget_get_window(TopLevel), width, height, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); #endif if (pix == NULL) { return NULL; } ggc = _GRAopen("gra2gdk", "_output", robj, inst, output, -1, -1, -1, NULL, local); if (ggc < 0) { _GRAclose(ggc); g_object_unref(G_OBJECT(pix)); return NULL; } GRAview(ggc, 0, 0, width, height, 0); if (chkobjfieldtype(obj, "style") == NINT) { line_style = NULL; } else { getobj(obj, "style", id, 0, NULL, &line_style); } n = arraynum(line_style); if (n > 0) { int i, *style, *ptr; style = g_malloc(sizeof(*style) * n); if (style == NULL) { _GRAclose(ggc); g_object_unref(G_OBJECT(pix)); return NULL; } ptr = arraydata(line_style); for (i = 0; i < n; i++) { style[i] = ptr[i] / 30; } GRAlinestyle(ggc, n, style, 4, GRA_LINE_CAP_BUTT, GRA_LINE_JOIN_MITER, 1000); g_free(style); } else { GRAlinestyle(ggc, 0, NULL, 4, GRA_LINE_CAP_BUTT, GRA_LINE_JOIN_MITER, 1000); } if (type == OBJ_FIELD_COLOR_TYPE_STROKE) { getobj(obj, "fill", id, 0, NULL, &fill); if (fill) { getobj(obj, "fill_R", id, 0, NULL, &fr); getobj(obj, "fill_G", id, 0, NULL, &fg); getobj(obj, "fill_B", id, 0, NULL, &fb); GRAcolor(ggc, fr, fg, fb, 255); GRArectangle(ggc, 2, 2, width - 2, height - 2, 1); } getobj(obj, "stroke", id, 0, NULL, &stroke); if (stroke) { if (chkobjfield(obj, "close_path") == 0) { getobj(obj, "close_path", id, 0, NULL, &close_path); } else { close_path = TRUE; } getobj(obj, "stroke_R", id, 0, NULL, &fr); getobj(obj, "stroke_G", id, 0, NULL, &fg); getobj(obj, "stroke_B", id, 0, NULL, &fb); GRAcolor(ggc, fr, fg, fb, 255); pos[0] = 2; pos[1] = height - 2; pos[2] = 2; pos[3] = 2; pos[4] = width - 2; pos[5] = 2; pos[6] = width - 2; pos[7] = height - 2; if (close_path) { GRAdrawpoly(ggc, 4, pos, GRA_FILL_MODE_NONE); } else { GRAlines(ggc, 4, pos); } } } else { getobj(obj, "R", id, 0, NULL, &fr); getobj(obj, "G", id, 0, NULL, &fg); getobj(obj, "B", id, 0, NULL, &fb); GRAcolor(ggc, fr, fg, fb, 255); GRArectangle(ggc, 0, 0, width, height, 1); } _GRAclose(ggc); gra2cairo_draw_path(local); #if GTK_CHECK_VERSION(3, 0, 0) pixbuf = gdk_pixbuf_get_from_surface(pix, 0, 0, width, height); cairo_surface_destroy(pix); #else pixbuf = gdk_pixbuf_get_from_drawable(NULL, pix, NULL, 0, 0, 0, 0, width, height); g_object_unref(G_OBJECT(pix)); #endif Globallock = lockstate; return pixbuf; } static void path_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row) { int cx, n, x0, y0, w, i, interpolation, type; char *valstr; GdkPixbuf *pixbuf; for (i = 0; i < d->list_col_num; i++) { switch (i) { case PATH_LIST_COL_HIDDEN: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); cx = ! cx; list_store_set_boolean(d->text, iter, i, cx); break; case PATH_LIST_COL_TYPE: getobj(d->obj, "type", row, 0, NULL, &type); getobj(d->obj, "interpolation", row, 0, NULL, &interpolation); if (type == 0) { char **enumlist; enumlist = (char **) chkobjarglist(d->obj, "type"); list_store_set_string(GTK_WIDGET(d->text), iter, i, _(enumlist[0])); } else { char **enumlist; enumlist = (char **) chkobjarglist(d->obj, "interpolation"); list_store_set_string(GTK_WIDGET(d->text), iter, i, _(enumlist[interpolation])); } break; case PATH_LIST_COL_ARROW: sgetobjfield(d->obj, row, d->list[i].name, NULL, &valstr, FALSE, FALSE, FALSE); if (valstr) { list_store_set_string(GTK_WIDGET(d->text), iter, i, _(valstr)); g_free(valstr); } break; case PATH_LIST_COL_COLOR: pixbuf = draw_color_pixbuf(d->obj, row, OBJ_FIELD_COLOR_TYPE_STROKE, 40); if (pixbuf) { list_store_set_pixbuf(GTK_WIDGET(d->text), iter, i, pixbuf); g_object_unref(pixbuf); } break; case PATH_LIST_COL_X: get_points(d->obj, row, &x0, &y0, &n); list_store_set_double(d->text, iter, PATH_LIST_COL_X, x0 / 100.0); list_store_set_double(d->text, iter, PATH_LIST_COL_Y, y0 / 100.0); list_store_set_int(d->text, iter, PATH_LIST_COL_POINTS, n); break; case PATH_LIST_COL_Y: case PATH_LIST_COL_POINTS: break; case PATH_LIST_COL_WIDTH: getobj(d->obj, d->list[i].name, row, 0, NULL, &w); list_store_set_double(d->text, iter, i, w / 100.0); break; default: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); list_store_set_val(d->text, iter, i, d->list[i].type, &cx); } } } static void rect_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row) { int x1, x2, y1, y2, v, i; GdkPixbuf *pixbuf; for (i = 0; i < d->list_col_num; i++) { switch (i) { case RECT_LIST_COL_HIDDEN: getobj(d->obj, d->list[i].name, row, 0, NULL, &v); v = ! v; list_store_set_boolean(d->text, iter, i, v); break; case RECT_LIST_COL_COLOR: pixbuf = draw_color_pixbuf(d->obj, row, OBJ_FIELD_COLOR_TYPE_STROKE, 40); if (pixbuf) { list_store_set_pixbuf(GTK_WIDGET(d->text), iter, i, pixbuf); g_object_unref(pixbuf); } break; case RECT_LIST_COL_X: getobj(d->obj, "x1", row, 0, NULL, &x1); getobj(d->obj, "x2", row, 0, NULL, &x2); v = (x1 < x2) ? x1 : x2; list_store_set_double(d->text, iter, i, v / 100.0); break; case RECT_LIST_COL_Y: getobj(d->obj, "y1", row, 0, NULL, &y1); getobj(d->obj, "y2", row, 0, NULL, &y2); v = (y1 < y2) ? y1 : y2; list_store_set_double(d->text, iter, i, v / 100.0); break; case RECT_LIST_COL_WIDTH: v = abs(x1 - x2); list_store_set_double(d->text, iter, i, v / 100.0); break; case RECT_LIST_COL_HEIGHT: v = abs(y1 - y2); list_store_set_double(d->text, iter, i, v / 100.0); break; case RECT_LIST_COL_LWIDTH: getobj(d->obj, d->list[i].name, row, 0, NULL, &v); list_store_set_double(d->text, iter, i, v / 100.0); break; default: getobj(d->obj, d->list[i].name, row, 0, NULL, &v); list_store_set_val(d->text, iter, i, d->list[i].type, &v); } } } static void arc_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row) { int cx, w, i; GdkPixbuf *pixbuf; for (i = 0; i < d->list_col_num; i++) { switch (i) { case ARC_LIST_COL_HIDDEN: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); cx = ! cx; list_store_set_boolean(d->text, iter, i, cx); break; case ARC_LIST_COL_PIESLICE: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); list_store_set_boolean(d->text, iter, i, cx); break; case ARC_LIST_COL_COLOR: pixbuf = draw_color_pixbuf(d->obj, row, OBJ_FIELD_COLOR_TYPE_STROKE, 40); if (pixbuf) { list_store_set_pixbuf(GTK_WIDGET(d->text), iter, i, pixbuf); g_object_unref(pixbuf); } break; case ARC_LIST_COL_Y: case ARC_LIST_COL_X: case ARC_LIST_COL_RY: case ARC_LIST_COL_RX: case ARC_LIST_COL_ANGLE1: case ARC_LIST_COL_ANGLE2: case ARC_LIST_COL_WIDTH: getobj(d->obj, d->list[i].name, row, 0, NULL, &w); list_store_set_double(d->text, iter, i, w / 100.0); break; default: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); list_store_set_val(d->text, iter, i, d->list[i].type, &cx); } } } static GdkPixbuf * draw_mark_pixbuf(struct objlist *obj, int i) { int ggc, fr, fg, fb, fr2, fg2, fb2, width = 20, height = 20, marktype, lockstate, found, output; #if GTK_CHECK_VERSION(3, 0, 0) cairo_surface_t *pix; #else GdkPixmap *pix; #endif GdkPixbuf *pixbuf; struct objlist *gobj, *robj; N_VALUE *inst; struct gra2cairo_local *local; lockstate = Globallock; Globallock = TRUE; found = find_gra2gdk_inst(&gobj, &inst, &robj, &output, &local); if (! found) { return NULL; } #if GTK_CHECK_VERSION(3, 0, 0) pix = gra2gdk_create_pixmap(local, width, height, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); #else pix = gra2gdk_create_pixmap(local, gtk_widget_get_window(TopLevel), width, height, Menulocal.bg_r, Menulocal.bg_g, Menulocal.bg_b); #endif if (pix == NULL) { return NULL; } getobj(obj, "R", i, 0, NULL, &fr); getobj(obj, "G", i, 0, NULL, &fg); getobj(obj, "B", i, 0, NULL, &fb); getobj(obj, "R2", i, 0, NULL, &fr2); getobj(obj, "G2", i, 0, NULL, &fg2); getobj(obj, "B2", i, 0, NULL, &fb2); ggc = _GRAopen("gra2gdk", "_output", robj, inst, output, -1, -1, -1, NULL, local); if (ggc < 0) { _GRAclose(ggc); g_object_unref(G_OBJECT(pix)); return NULL; } GRAview(ggc, 0, 0, width, height, 0); GRAcolor(ggc, fr, fg, fb, 255); GRAlinestyle(ggc, 0, NULL, 1, GRA_LINE_CAP_BUTT, GRA_LINE_JOIN_MITER, 1000); getobj(obj, "type", i, 0, NULL, &marktype); GRAmark(ggc, marktype, height / 2, height / 2, height - 2, fr, fg, fb, 255, fr2, fg2, fb2, 255); _GRAclose(ggc); gra2cairo_draw_path(local); #if GTK_CHECK_VERSION(3, 0, 0) pixbuf = gdk_pixbuf_get_from_surface(pix, 0, 0, width, height); cairo_surface_destroy(pix); #else pixbuf = gdk_pixbuf_get_from_drawable(NULL, pix, NULL, 0, 0, 0, 0, width, height); g_object_unref(G_OBJECT(pix)); #endif Globallock = lockstate; return pixbuf; } static void mark_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row) { int cx, w, i; GdkPixbuf *pixbuf = NULL; for (i = 0; i < d->list_col_num; i++) { switch (i) { case MARK_LIST_COL_HIDDEN: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); cx = ! cx; list_store_set_boolean(d->text, iter, i, cx); break; case MARK_LIST_COL_MARK: pixbuf = draw_mark_pixbuf(d->obj, row); if (pixbuf) { list_store_set_pixbuf(GTK_WIDGET(d->text), iter, i, pixbuf); g_object_unref(pixbuf); } break; case MARK_LIST_COL_X: case MARK_LIST_COL_Y: case MARK_LIST_COL_WIDTH: case MARK_LIST_COL_SIZE: getobj(d->obj, d->list[i].name, row, 0, NULL, &w); list_store_set_double(d->text, iter, i, w / 100.0); break; default: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); list_store_set_val(d->text, iter, i, d->list[i].type, &cx); } } } static void text_list_set_val(struct obj_list_data *d, GtkTreeIter *iter, int row) { int cx, w, i, style, r, g ,b; char *str, buf[64]; #ifdef TEXT_LIST_USE_FONT_FAMILY struct fontmap *fmap; #endif for (i = 0; i < d->list_col_num; i++) { switch (i) { case TEXT_LIST_COL_HIDDEN: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); cx = ! cx; list_store_set_boolean(d->text, iter, i, cx); break; case TEXT_LIST_COL_RAW: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); list_store_set_boolean(d->text, iter, i, cx); break; case TEXT_LIST_COL_TEXT: getobj(d->obj, d->list[i].name, row, 0, NULL, &str); list_store_set_string(d->text, iter, i, str); break; case TEXT_LIST_COL_FONT: getobj(d->obj, d->list[i].name, row, 0, NULL, &str); list_store_set_string(d->text, iter, i, str); #ifdef TEXT_LIST_USE_FONT_FAMILY if (str == NULL) { break; } fmap = gra2cairo_get_fontmap(str); if (fmap == NULL || fmap->fontname == NULL) { break; } list_store_set_string(d->text, iter, TEXT_LIST_COL_FONT_FAMILY, fmap->fontname); #endif break; case TEXT_LIST_COL_STYLE: getobj(d->obj, "style", row, 0, NULL, &style); list_store_set_int(d->text, iter, i, (style & GRA_FONT_STYLE_ITALIC) ? PANGO_STYLE_ITALIC : 0); list_store_set_int(d->text, iter, TEXT_LIST_COL_WEIGHT, (style & GRA_FONT_STYLE_BOLD) ? PANGO_WEIGHT_BOLD : PANGO_WEIGHT_NORMAL); break; case TEXT_LIST_COL_COLOR: getobj(d->obj, "R", row, 0, NULL, &r); getobj(d->obj, "G", row, 0, NULL, &g); getobj(d->obj, "B", row, 0, NULL, &b); snprintf(buf, sizeof(buf), "#%02x%02x%02x", r & 0xff, g & 0xff, b &0xff); list_store_set_string(d->text, iter, i, buf); break; case TEXT_LIST_COL_X: case TEXT_LIST_COL_Y: case TEXT_LIST_COL_DIR: case TEXT_LIST_COL_PT: getobj(d->obj, d->list[i].name, row, 0, NULL, &w); list_store_set_double(d->text, iter, i, w / 100.0); break; case TEXT_LIST_COL_WEIGHT: #ifdef TEXT_LIST_USE_FONT_FAMILY case TEXT_LIST_COL_FONT_FAMILY: #endif break; default: getobj(d->obj, d->list[i].name, row, 0, NULL, &cx); list_store_set_val(d->text, iter, i, d->list[i].type, &cx); } } } static void popup_show_cb(GtkWidget *widget, gpointer user_data) { unsigned int i; int m, last_id; struct obj_list_data *d; d = (struct obj_list_data *) user_data; if (d->text == NULL) { return; } m = list_store_get_selected_int(d->text, COL_ID); for (i = 0; i < POPUP_ITEM_NUM; i++) { switch (i) { case POPUP_ITEM_TOP: case POPUP_ITEM_UP: gtk_widget_set_sensitive(d->popup_item[i], m > 0); break; case POPUP_ITEM_DOWN: case POPUP_ITEM_BOTTOM: last_id = -1; if (m >= 0) { last_id = chkobjlastinst(d->obj); } gtk_widget_set_sensitive(d->popup_item[i], m >= 0 && m < last_id); break; default: gtk_widget_set_sensitive(d->popup_item[i], m >= 0); } } } enum CHANGE_DIR { CHANGE_DIR_X, CHANGE_DIR_Y, }; static void pos_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data, enum CHANGE_DIR dir) { struct obj_list_data *d; int col, inc, ecode, m; double prev, val; GtkTreeModel *model; GtkTreeIter iter; int x, y, i; char *argv[3], *tmp, *ptr; menu_lock(FALSE); if (str == NULL || path == NULL) return; ecode = str_calc(str, &val, NULL, NULL); if (ecode || val != val || val == HUGE_VAL || val == - HUGE_VAL) { return; } d = (struct obj_list_data *) user_data; if (d->text == NULL) { return; } col = -1; for (i = 0; i < d->list_col_num; i++) { if (dir == CHANGE_DIR_X && strcmp(d->list[i].title, "x") == 0) { col = i; break; } else if (dir == CHANGE_DIR_Y && strcmp(d->list[i].title, "y") == 0) { col = i; break; } } if (col < 0) { return; } model = gtk_tree_view_get_model(GTK_TREE_VIEW(d->text)); if (! gtk_tree_model_get_iter_from_string(model, &iter, path)) { return; } gtk_tree_model_get(model, &iter, col, &tmp, COL_ID, &m, -1); if (tmp == NULL) { return; } prev = strtod(tmp, &ptr); if (prev != prev || prev == HUGE_VAL || prev == - HUGE_VAL || ptr[0] != '\0') { g_free(tmp); return; } g_free(tmp); inc = nround((val - prev) * 100); switch (dir) { case CHANGE_DIR_X: x = inc; y = 0; break; case CHANGE_DIR_Y: x = 0; y = inc; break; } argv[0] = (char *) &x; argv[1] = (char *) &y; argv[2] = NULL; if (inc != 0 ) { exeobj(d->obj, "move", m, 2, argv); set_graph_modified(); d->update(d, TRUE); } return; } static void rect_size_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data, char *pos1, char *pos2) { struct obj_list_data *d; GtkTreeIter iter; int id, ecode; double val; int x1, x2, v, num; menu_lock(FALSE); if (str == NULL || path == NULL) return; ecode = str_calc(str, &val, NULL, NULL); if (ecode || val != val || val == HUGE_VAL || val == - HUGE_VAL) { return; } d = (struct obj_list_data *) user_data; id = tree_view_get_selected_row_int_from_path(d->text, path, &iter, COL_ID); num = chkobjlastinst(d->obj); if (id < 0 || id > num) { return; } getobj(d->obj, pos1, id, 0, NULL, &x1); getobj(d->obj, pos2, id, 0, NULL, &x2); if (x1 > x2) { v = x1; x1 = x2; x2 = v; } v = nround(val * 100); if (v != x2 - x1) { x2 = x1 + v; putobj(d->obj, pos1, id, &x1); putobj(d->obj, pos2, id, &x2); set_graph_modified(); d->update(d, TRUE); } return; } static void rect_width_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { rect_size_edited(cell_renderer, path, str, user_data, "x1", "x2"); } static void rect_height_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { rect_size_edited(cell_renderer, path, str, user_data, "y1", "y2"); } static void pos_x_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { pos_edited(cell_renderer, path, str, user_data, CHANGE_DIR_X); } static void pos_y_edited(GtkCellRenderer *cell_renderer, gchar *path, gchar *str, gpointer user_data) { pos_edited(cell_renderer, path, str, user_data, CHANGE_DIR_Y); } enum LEGEND_COMBO_ITEM { LEGEND_COMBO_ITEM_COLOR_0, LEGEND_COMBO_ITEM_COLOR_1, LEGEND_COMBO_ITEM_COLOR_2, LEGEND_COMBO_ITEM_COLOR_STROKE, LEGEND_COMBO_ITEM_COLOR_FILL, LEGEND_COMBO_ITEM_MARK, LEGEND_COMBO_ITEM_TOGGLE_STROKE, LEGEND_COMBO_ITEM_TOGGLE_FILL, LEGEND_COMBO_ITEM_CLOSE_PATH, LEGEND_COMBO_ITEM_STYLE, LEGEND_COMBO_ITEM_FONT, LEGEND_COMBO_ITEM_STYLE_BOLD, LEGEND_COMBO_ITEM_STYLE_ITALIC, LEGEND_COMBO_ITEM_FILL_RULE, LEGEND_COMBO_ITEM_JOIN, LEGEND_COMBO_ITEM_NONE, }; static void create_mark_color_combo_box(GtkWidget *cbox, struct objlist *obj, int id) { int count; GtkTreeStore *list; GtkTreeIter iter; count = combo_box_get_num(cbox); if (count > 0) return; list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(cbox))); add_text_combo_item_to_cbox(list, &iter, NULL, -1, -1, _("Mark"), TOGGLE_NONE, FALSE); add_mark_combo_item_to_cbox(list, NULL, &iter, LEGEND_COMBO_ITEM_MARK, obj, "type", id); add_line_style_item_to_cbox(list, NULL, LEGEND_COMBO_ITEM_STYLE, obj, "style", id); add_text_combo_item_to_cbox(list, NULL, NULL, LEGEND_COMBO_ITEM_COLOR_1, -1, _("Color 1"), TOGGLE_NONE, FALSE); add_text_combo_item_to_cbox(list, NULL, NULL, LEGEND_COMBO_ITEM_COLOR_2, -1, _("Color 2"), TOGGLE_NONE, FALSE); } static void create_color_combo_box(GtkWidget *cbox, struct objlist *obj, int id) { int count; GtkTreeStore *list; GtkTreeIter iter, parent; count = combo_box_get_num(cbox); if (count > 0) return; list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(cbox))); #if GTK_CHECK_VERSION(3, 0, 0) add_bool_combo_item_to_cbox(list, &iter, NULL, LEGEND_COMBO_ITEM_TOGGLE_STROKE, obj, "stroke", id, _("Stroke")); #else add_text_combo_item_to_cbox(list, &iter, NULL, -1, -1, _("Stroke"), TOGGLE_NONE, FALSE); #endif add_line_style_item_to_cbox(list, &iter, LEGEND_COMBO_ITEM_STYLE, obj, "style", id); if (chkobjfield(obj, "join") == 0) { add_text_combo_item_to_cbox(list, &parent, &iter, -1, -1, _("Join"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &parent, LEGEND_COMBO_ITEM_JOIN, obj, "join", id); } add_text_combo_item_to_cbox(list, NULL, &iter, LEGEND_COMBO_ITEM_COLOR_STROKE, -1, _("Color"), TOGGLE_NONE, FALSE); if (chkobjfield(obj, "close_path") == 0) { add_bool_combo_item_to_cbox(list, NULL, &iter, LEGEND_COMBO_ITEM_CLOSE_PATH, obj, "close_path", id, _("Close path")); } #if ! GTK_CHECK_VERSION(3, 0, 0) add_bool_combo_item_to_cbox(list, NULL, &iter, LEGEND_COMBO_ITEM_TOGGLE_STROKE, obj, "stroke", id, _("Draw")); #endif #if GTK_CHECK_VERSION(3, 0, 0) add_bool_combo_item_to_cbox(list, &iter, NULL, LEGEND_COMBO_ITEM_TOGGLE_FILL, obj, "fill", id, _("Fill")); #else add_text_combo_item_to_cbox(list, &iter, NULL, -1, -1, _("Fill"), TOGGLE_NONE, FALSE); #endif add_text_combo_item_to_cbox(list, NULL, &iter, LEGEND_COMBO_ITEM_COLOR_FILL, -1, _("Color"), TOGGLE_NONE, FALSE); if (chkobjfield(obj, "fill_rule") == 0) { add_text_combo_item_to_cbox(list, &parent, &iter, -1, -1, _("Fill rule"), TOGGLE_NONE, FALSE); add_enum_combo_item_to_cbox(list, NULL, &parent, LEGEND_COMBO_ITEM_FILL_RULE, obj, "fill_rule", id); } #if ! GTK_CHECK_VERSION(3, 0, 0) add_bool_combo_item_to_cbox(list, NULL, &iter, LEGEND_COMBO_ITEM_TOGGLE_FILL, obj, "fill", id, _("Draw")); #endif } static int set_bool_field(struct objlist *obj, char *field, int id, int state) { int active; if (chkobjfield(obj, field)) { return 0; } getobj(obj, field, id, 0, NULL, &active); if (active == state) { return 0; } putobj(obj, field, id, &state); return 1; } static int set_stroke(struct objlist *obj, int id, int stroke) { return set_bool_field(obj, "stroke", id, stroke); } static int set_fill(struct objlist *obj, int id, int fill) { return set_bool_field(obj, "fill", id, fill); } static void select_type(GtkComboBox *w, gpointer user_data) { int sel, col_type, mark_type, enum_id, found, active, style, modified, fill_rule, join, r; struct obj_list_data *d; GtkTreeStore *list; GtkTreeIter iter; menu_lock(FALSE); d = (struct obj_list_data *) user_data; gtk_widget_grab_focus(d->text); sel = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "user-data")); if (sel < 0) { return; } list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(w))); found = gtk_combo_box_get_active_iter(w, &iter); if (! found) { return; } gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_INT, &col_type, OBJECT_COLUMN_TYPE_ENUM, &enum_id, -1); switch (col_type) { case LEGEND_COMBO_ITEM_COLOR_1: if (select_obj_color(d->obj, sel, OBJ_FIELD_COLOR_TYPE_1)) { return; } break; case LEGEND_COMBO_ITEM_COLOR_2: if (select_obj_color(d->obj, sel, OBJ_FIELD_COLOR_TYPE_2)) { return; } break; case LEGEND_COMBO_ITEM_MARK: getobj(d->obj, "type", sel, 0, NULL, &mark_type); if (enum_id == mark_type) { return; } putobj(d->obj, "type", sel, &enum_id); break; case LEGEND_COMBO_ITEM_STYLE: modified = set_stroke(d->obj, sel, TRUE); if (enum_id < 0 || enum_id >= FwNumStyleNum) { return; } if (chk_sputobjfield(d->obj, sel, "style", FwLineStyle[enum_id].list) != 0 && ! modified) { return; } if (! modified && ! get_graph_modified()) { return; } break; case LEGEND_COMBO_ITEM_COLOR_STROKE: r = select_obj_color(d->obj, sel, OBJ_FIELD_COLOR_TYPE_STROKE); switch (r) { case SELECT_OBJ_COLOR_DIFFERENT: set_stroke(d->obj, sel, TRUE); break; case SELECT_OBJ_COLOR_SAME: if (! set_stroke(d->obj, sel, TRUE)) { return; } break; case SELECT_OBJ_COLOR_ERROR: case SELECT_OBJ_COLOR_CANCEL: return; } break; case LEGEND_COMBO_ITEM_COLOR_FILL: r = select_obj_color(d->obj, sel, OBJ_FIELD_COLOR_TYPE_FILL); switch (r) { case SELECT_OBJ_COLOR_DIFFERENT: set_fill(d->obj, sel, TRUE); break; case SELECT_OBJ_COLOR_SAME: if (! set_fill(d->obj, sel, TRUE)) { return; } break; case SELECT_OBJ_COLOR_ERROR: case SELECT_OBJ_COLOR_CANCEL: return; } break; case LEGEND_COMBO_ITEM_TOGGLE_STROKE: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); set_stroke(d->obj, sel, ! active); break; case LEGEND_COMBO_ITEM_TOGGLE_FILL: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); set_fill(d->obj, sel, ! active); break; case LEGEND_COMBO_ITEM_FILL_RULE: modified = set_fill(d->obj, sel, TRUE); getobj(d->obj, "fill_rule", sel, 0, NULL, &fill_rule); if (fill_rule == enum_id && ! modified) { return; } fill_rule = enum_id; putobj(d->obj, "fill_rule", sel, &fill_rule); break; case LEGEND_COMBO_ITEM_JOIN: getobj(d->obj, "join", sel, 0, NULL, &join); if (join == enum_id) { return; } putobj(d->obj, "join", sel, &enum_id); break; case LEGEND_COMBO_ITEM_CLOSE_PATH: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); active = ! active; putobj(d->obj, "close_path", sel, &active); set_stroke(d->obj, sel, TRUE); break; case LEGEND_COMBO_ITEM_STYLE_BOLD: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); getobj(d->obj, "style", sel, 0, NULL, &style); style = (style & GRA_FONT_STYLE_ITALIC) | (active ? 0 : GRA_FONT_STYLE_BOLD); putobj(d->obj, "style", sel, &style); break; case LEGEND_COMBO_ITEM_STYLE_ITALIC: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); getobj(d->obj, "style", sel, 0, NULL, &style); style = (style & GRA_FONT_STYLE_BOLD) | (active ? 0 : GRA_FONT_STYLE_ITALIC); putobj(d->obj, "style", sel, &style); break; default: return; } d->select = sel; d->update(d, FALSE); set_graph_modified(); } static int start_editing_common(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path_str, gpointer user_data) { GtkTreeIter iter; struct obj_list_data *d; int sel; menu_lock(TRUE); d = (struct obj_list_data *) user_data; sel = tree_view_get_selected_row_int_from_path(d->text, path_str, &iter, MARK_LIST_COL_ID); if (sel < 0) { menu_lock(FALSE); return -1; } g_object_set_data(G_OBJECT(editable), "user-data", GINT_TO_POINTER(sel)); return sel; } static void start_editing_mark(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path_str, gpointer user_data) { struct obj_list_data *d; int sel; d = (struct obj_list_data *) user_data; sel = start_editing_common(renderer, editable, path_str, user_data); if (sel < 0) { return; } create_mark_color_combo_box(GTK_WIDGET(editable), d->obj, sel); gtk_widget_show(GTK_WIDGET(editable)); g_signal_connect(editable, "editing-done", G_CALLBACK(select_type), user_data); return; } static void start_editing_color(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path_str, gpointer user_data) { struct obj_list_data *d; int sel; d = (struct obj_list_data *) user_data; sel = start_editing_common(renderer, editable, path_str, user_data); if (sel < 0) { return; } create_color_combo_box(GTK_WIDGET(editable), d->obj, sel); gtk_widget_show(GTK_WIDGET(editable)); g_signal_connect(editable, "editing-done", G_CALLBACK(select_type), user_data); return; } enum LEGEND_PATH_LINE_TYPE { LEGEND_PATH_LINE_TYPE_LINE, LEGEND_PATH_LINE_TYPE_CURVE, }; static void select_line_type(GtkComboBox *w, gpointer user_data) { struct obj_list_data *d; int sel, type, interpolation, enum_id, col_type, found; GtkTreeIter iter; GtkTreeStore *list; d = (struct obj_list_data *) user_data; sel = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "user-data")); if (sel < 0) { return; } list = GTK_TREE_STORE(gtk_combo_box_get_model(w)); found = gtk_combo_box_get_active_iter(w, &iter); if (! found) { return; } gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_INT, &col_type, OBJECT_COLUMN_TYPE_ENUM, &enum_id, -1); getobj(d->obj, "type", sel, 0, NULL, &type); getobj(d->obj, "interpolation", sel, 0, NULL, &interpolation); switch (col_type) { case LEGEND_PATH_LINE_TYPE_LINE: if (type == PATH_TYPE_LINE) { return; } break; case LEGEND_PATH_LINE_TYPE_CURVE: if (type == PATH_TYPE_CURVE && enum_id == interpolation) { return; } break; default: return; } putobj(d->obj, "type", sel, &col_type); if (enum_id >= 0) { putobj(d->obj, "interpolation", sel, &enum_id); } d->select = sel; d->update(d, FALSE); set_graph_modified(); } static void start_editing_line_type(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path_str, gpointer user_data) { struct obj_list_data *d; int sel, type; char **enumlist; GtkTreeStore *list; GtkTreeIter iter; d = (struct obj_list_data *) user_data; sel = start_editing_common(renderer, editable, path_str, user_data); if (sel < 0) { return; } g_object_set_data(G_OBJECT(editable), "user-data", GINT_TO_POINTER(sel)); init_object_combo_box(GTK_WIDGET(editable)); list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(editable))); gtk_tree_store_clear(list); getobj(d->obj, "type", sel, 0, NULL, &type); enumlist = (char **) chkobjarglist(d->obj, "type"); add_text_combo_item_to_cbox(list, &iter, NULL, LEGEND_PATH_LINE_TYPE_LINE, -1, _(enumlist[0]), TOGGLE_RADIO, type == PATH_TYPE_LINE); if (type == PATH_TYPE_LINE) { gtk_combo_box_set_active_iter(GTK_COMBO_BOX(editable), &iter); } add_text_combo_item_to_cbox(list, &iter, NULL, LEGEND_PATH_LINE_TYPE_CURVE, -1, _(enumlist[1]), TOGGLE_RADIO, type == PATH_TYPE_CURVE); if (type == PATH_TYPE_CURVE) { gtk_combo_box_set_active_iter(GTK_COMBO_BOX(editable), &iter); } add_enum_combo_item_to_cbox(list, NULL, &iter, LEGEND_PATH_LINE_TYPE_CURVE, d->obj, "interpolation", sel); gtk_widget_show(GTK_WIDGET(editable)); g_signal_connect(editable, "editing-done", G_CALLBACK(select_line_type), user_data); return; } static void select_font(GtkComboBox *w, gpointer user_data) { int sel, col_type, found, active, style; struct obj_list_data *d; GtkTreeStore *list; GtkTreeIter iter; char *font, *ptr; menu_lock(FALSE); d = (struct obj_list_data *) user_data; sel = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "user-data")); if (sel < 0) { return; } list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(w))); found = gtk_combo_box_get_active_iter(w, &iter); if (! found) { return; } gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_INT, &col_type, -1); switch (col_type) { case LEGEND_COMBO_ITEM_FONT: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_STRING, &font, -1); getobj(d->obj, "font", sel, 0, NULL, &ptr); if (g_strcmp0(font, ptr) == 0) { g_free(font); return; } putobj(d->obj, "font", sel, font); break; case LEGEND_COMBO_ITEM_COLOR_0: if (select_obj_color(d->obj, sel, OBJ_FIELD_COLOR_TYPE_0)) { return; } break; case LEGEND_COMBO_ITEM_STYLE_BOLD: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); getobj(d->obj, "style", sel, 0, NULL, &style); style = (style & GRA_FONT_STYLE_ITALIC) | (active ? 0 : GRA_FONT_STYLE_BOLD); putobj(d->obj, "style", sel, &style); break; case LEGEND_COMBO_ITEM_STYLE_ITALIC: gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, OBJECT_COLUMN_TYPE_TOGGLE, &active, -1); getobj(d->obj, "style", sel, 0, NULL, &style); style = (style & GRA_FONT_STYLE_BOLD) | (active ? 0 : GRA_FONT_STYLE_ITALIC); putobj(d->obj, "style", sel, &style); break; default: return; } d->select = sel; d->update(d, FALSE); set_graph_modified(); } static void start_editing_font(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path, gpointer user_data) { GtkTreeIter iter; GtkTreeStore *list; struct obj_list_data *d; int sel; menu_lock(TRUE); d = (struct obj_list_data *) user_data; sel = start_editing_common(renderer, editable, path, user_data); if (sel < 0) { return; } g_object_set_data(G_OBJECT(editable), "user-data", GINT_TO_POINTER(sel)); init_object_combo_box(GTK_WIDGET(editable)); list = GTK_TREE_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(editable))); gtk_tree_store_clear(list); add_text_combo_item_to_cbox(list, &iter, NULL, -1, -1, _("Font"), TOGGLE_NONE, FALSE); add_font_combo_item_to_cbox(list, NULL, &iter, LEGEND_COMBO_ITEM_FONT, d->obj, "font", sel); add_text_combo_item_to_cbox(list, NULL, NULL, LEGEND_COMBO_ITEM_COLOR_0, -1, _("Color"), TOGGLE_NONE, FALSE); add_font_style_combo_item_to_cbox(list, NULL, NULL, LEGEND_COMBO_ITEM_STYLE_BOLD, LEGEND_COMBO_ITEM_STYLE_ITALIC, d->obj, "style", sel); g_signal_connect(editable, "editing-done", G_CALLBACK(select_font), user_data); } static void select_text(GtkWidget *w, gpointer user_data) { #if GTK_CHECK_VERSION(2, 20, 0) gboolean canceled; g_object_get(w, "editing-canceled", &canceled, NULL); if (! canceled) { entry_completion_append(NgraphApp.legend_text_list, gtk_entry_get_text(GTK_ENTRY(w))); } #endif gtk_entry_set_completion(GTK_ENTRY(w), NULL); } static void start_editing_text(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path_str, gpointer user_data) { if (GTK_IS_ENTRY(editable)) { entry_completion_set_entry(NgraphApp.legend_text_list, GTK_WIDGET(editable)); g_object_set_data(G_OBJECT(editable), "user-data", renderer); g_signal_connect(editable, "editing-done", G_CALLBACK(select_text), user_data); } return; } struct legend_data { char *icon_file; void (* update_func) (struct obj_list_data *, int); void (* update_dialog_func) (struct obj_list_data *, int, int); char *name; struct LegendDialog *dialog; }; void CmLegendWindow(GtkToggleAction *action, gpointer client_data) { int i, j, n, state; struct SubWin *d; struct obj_list_data *data; GList *list; GtkTreeViewColumn *col; #define LEGENDNUM 5 struct legend_data legend_data[LEGENDNUM] = { {NGRAPH_LINE_ICON_FILE, PathListUpdate, LegendWinPathUpdate, N_("path"), &DlgLegendArrow}, {NGRAPH_RECT_ICON_FILE, RectListUpdate, LegendWinRectUpdate, N_("rectangle"), &DlgLegendRect}, {NGRAPH_ARC_ICON_FILE, ArcListUpdate, LegendWinArcUpdate, N_("arc"), &DlgLegendArc}, {NGRAPH_MARK_ICON_FILE, MarkListUpdate, LegendWinMarkUpdate, N_("mark"), &DlgLegendMark}, {NGRAPH_TEXT_ICON_FILE, TextListUpdate, LegendWinTextUpdate, N_("text"), &DlgLegendText}, }; GtkWidget *icons[LEGENDNUM]; int noexpand_text_colmns[] = {TEXT_LIST_COL_X, TEXT_LIST_COL_Y, TEXT_LIST_COL_PT, TEXT_LIST_COL_DIR}; d = &(NgraphApp.LegendWin); if (action) { state = gtk_toggle_action_get_active(action); } else { state = TRUE; } if (d->Win) { sub_window_set_visibility(d, state); return; } if (! state) { return; } for (i = 0; i < LEGENDNUM; i++) { #ifdef WINDOWS char *str; str = g_strdup_printf("%s%s", PIXMAPDIR, legend_data[i].icon_file); icons[i] = gtk_image_new_from_file(str); g_free(str); #else icons[i] = gtk_image_new_from_file(legend_data[i].icon_file); #endif gtk_widget_set_tooltip_text(GTK_WIDGET(icons[i]), _(legend_data[i].name)); } tree_sub_window_create(d, "Legend Window", LEGENDNUM, Llist_num, Llist, icons, Legendwin_xpm, Legendwin48_xpm); data = d->data.data; for (i = 0; i < LEGENDNUM; i++) { data->update = legend_data[i].update_func; data->dialog = legend_data[i].dialog; data->setup_dialog = legend_data[i].update_dialog_func; data->ev_key = NULL; data->obj = chkobject(legend_data[i].name); g_object_set_data(G_OBJECT(icons[i]), "ngraph_object_data", data); sub_win_create_popup_menu(data, POPUP_ITEM_NUM, Popup_list, G_CALLBACK(popup_show_cb)); switch (i) { case LegendTypePath: set_combo_cell_renderer_cb(data, PATH_LIST_COL_TYPE, Llist[i], G_CALLBACK(start_editing_line_type), NULL); set_editable_cell_renderer_cb(data, PATH_LIST_COL_X, Llist[i], G_CALLBACK(pos_x_edited)); set_editable_cell_renderer_cb(data, PATH_LIST_COL_Y, Llist[i], G_CALLBACK(pos_y_edited)); set_obj_cell_renderer_cb(data, PATH_LIST_COL_COLOR, Llist[i], G_CALLBACK(start_editing_color)); break; case LegendTypeRect: set_editable_cell_renderer_cb(data, RECT_LIST_COL_X, Llist[i], G_CALLBACK(pos_x_edited)); set_editable_cell_renderer_cb(data, RECT_LIST_COL_Y, Llist[i], G_CALLBACK(pos_y_edited)); set_editable_cell_renderer_cb(data, RECT_LIST_COL_WIDTH, Llist[i], G_CALLBACK(rect_width_edited)); set_editable_cell_renderer_cb(data, RECT_LIST_COL_HEIGHT, Llist[i], G_CALLBACK(rect_height_edited)); set_obj_cell_renderer_cb(data, RECT_LIST_COL_COLOR, Llist[i], G_CALLBACK(start_editing_color)); break; case LegendTypeArc: set_obj_cell_renderer_cb(data, ARC_LIST_COL_COLOR, Llist[i], G_CALLBACK(start_editing_color)); break; case LegendTypeMark: set_obj_cell_renderer_cb(data, MARK_LIST_COL_MARK, Llist[i], G_CALLBACK(start_editing_mark)); break; case LegendTypeText: set_combo_cell_renderer_cb(data, TEXT_LIST_COL_FONT, Llist[i], G_CALLBACK(start_editing_font), NULL); col = gtk_tree_view_get_column(GTK_TREE_VIEW(data->text), TEXT_LIST_COL_TEXT); list = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(col)); if (list == NULL) { break; } if (list->data) { GtkCellRenderer *renderer; renderer = list->data; gtk_tree_view_column_add_attribute(col, renderer, "style", TEXT_LIST_COL_STYLE); gtk_tree_view_column_add_attribute(col, renderer, "weight", TEXT_LIST_COL_WEIGHT); #ifdef TEXT_LIST_USE_FONT_FAMILY gtk_tree_view_column_add_attribute(col, renderer, "family", TEXT_LIST_COL_FONT_FAMILY); #endif gtk_tree_view_column_add_attribute(col, renderer, "foreground", TEXT_LIST_COL_COLOR); g_signal_connect_after(renderer, "editing-started", G_CALLBACK(start_editing_text), data); } g_list_free(list); n = sizeof(noexpand_text_colmns) / sizeof(*noexpand_text_colmns); for (j = 0; j < n; j++) { col = gtk_tree_view_get_column(GTK_TREE_VIEW(data->text), noexpand_text_colmns[j]); gtk_tree_view_column_set_expand(col, FALSE); } break; } data = data->next; } } ngraph-gtk-6.06.13/src/gtk/gtk_subwin.h0000644000175000017500000000653212241111703014551 00000000000000/* * $Id: gtk_subwin.h,v 1.14 2009-07-22 14:53:31 hito Exp $ */ #ifndef _GTK_SUBWIN_HEADER #define _GTK_SUBWIN_HEADER #include "common.h" #include "gtk_liststore.h" #include "object.h" #include "ogra2cairo.h" #include "x11menu.h" #include "ox11menu.h" #define COL_ID 1 typedef void (* list_sub_window_set_val_func) (struct obj_list_data *d, GtkTreeIter *iter, int i); struct subwin_popup_list { char *title; GCallback func; int use_stock; GtkAccelGroup *accel_group; enum pop_up_menu_item_type type; }; GtkWidget *label_sub_window_create(struct SubWin *d, const char *title, const char **xpm, const char **xpm2); GtkWidget *text_sub_window_create(struct SubWin *d, const char *title, const char **xpm, const char **xpm2); GtkWidget *list_sub_window_create(struct SubWin *d, const char *title, int lisu_num, n_list_store *list, const char **xpm, const char **xpm2); GtkWidget *tree_sub_window_create(struct SubWin *d, const char *title, int page_num, int *lisu_num, n_list_store **list, GtkWidget **icons, const char **xpm, const char **xpm2); void sub_window_set_geometry(struct SubWin *d, int resize); void sub_window_save_geometry(struct SubWin *d); void sub_window_set_visibility(struct SubWin *d, int state); void sub_window_save_visibility(struct SubWin *d); //GtkWidget *sub_window_get_nth_content(struct LegendWin *d, int n); void set_editable_cell_renderer_cb(struct obj_list_data *d, int i, n_list_store *list, GCallback end); void set_combo_cell_renderer_cb(struct obj_list_data *d, int col, n_list_store *list, GCallback start, GCallback end); void set_obj_cell_renderer_cb(struct obj_list_data *d, int col, n_list_store *list, GCallback start); gboolean list_sub_window_must_rebuild(struct obj_list_data *d); void list_sub_window_build(struct obj_list_data *d, list_sub_window_set_val_func func); void list_sub_window_set(struct obj_list_data *d, list_sub_window_set_val_func func); void list_sub_window_delete(GtkMenuItem *item, gpointer user_data); void list_sub_window_copy(GtkMenuItem *item, gpointer user_data); void list_sub_window_move_top(GtkMenuItem *item, gpointer user_data); void list_sub_window_move_last(GtkMenuItem *item, gpointer user_data); void list_sub_window_move_up(GtkMenuItem *item, gpointer user_data); void list_sub_window_move_down(GtkMenuItem *item, gpointer user_data); void list_sub_window_update(GtkMenuItem *item, gpointer user_data); void list_sub_window_hide(GtkMenuItem *item, gpointer user_data); void list_sub_window_focus(GtkMenuItem *item, gpointer user_data); void list_sub_window_add_focus(GtkMenuItem *item, gpointer user_data); void tree_sub_window_delete(GtkMenuItem *item, gpointer user_data); void tree_sub_window_copy(GtkMenuItem *item, gpointer user_data); void tree_sub_window_move_top(GtkMenuItem *item, gpointer user_data); void tree_sub_window_move_last(GtkMenuItem *item, gpointer user_data); void tree_sub_window_move_up(GtkMenuItem *item, gpointer user_data); void tree_sub_window_move_down(GtkMenuItem *item, gpointer user_data); void tree_sub_window_update(GtkMenuItem *item, gpointer user_data); void tree_sub_window_hide(GtkMenuItem *item, gpointer user_data); void tree_sub_window_focus(GtkMenuItem *item, gpointer user_data); void tree_sub_window_add_focus(GtkMenuItem *item, gpointer user_data); GtkWidget *sub_win_create_popup_menu(struct obj_list_data *d, int n, struct subwin_popup_list *list, GCallback cb); #endif ngraph-gtk-6.06.13/src/gtk/x11dialg.c0000644000175000017500000010366412241111703014006 00000000000000/* * $Id: x11dialg.c,v 1.53 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include #include #include #include #include #include #include "object.h" #include "mathfn.h" #include "nstring.h" #include "ogra2cairo.h" #include "ox11menu.h" #include "x11menu.h" #include "x11gui.h" #include "x11dialg.h" #include "gtk_liststore.h" #include "gtk_combo.h" #include "gtk_widget.h" struct line_style FwLineStyle[] = { {N_("solid"), "", 0}, {N_("dot"), "100 100", 2}, {N_("short dash"), "150 150", 2}, {N_("dash"), "450 150", 2}, {N_("dot dash"), "450 150 150 150", 4}, {N_("2-dot dash"), "450 150 150 150 150 150", 6}, {N_("dot 2-dash"), "450 150 450 150 150 150", 6}, {NULL, NULL, -1}, }; #define CLINESTYLE ((sizeof(FwLineStyle) / sizeof(*FwLineStyle)) - 1) char *FwNumStyle[] = {N_("auto"), "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }; int FwNumStyleNum = sizeof(FwNumStyle) / sizeof(*FwNumStyle); struct FileDialog DlgFile; struct FileDialog DlgFileDef; struct EvalDialog DlgEval; struct MathDialog DlgMath; struct MathTextDialog DlgMathText; struct FitDialog DlgFit; struct FitLoadDialog DlgFitLoad; struct FitSaveDialog DlgFitSave; struct SectionDialog DlgSection; struct CrossDialog DlgCross; struct AxisDialog DlgAxis; struct GridDialog DlgGrid; struct ZoomDialog DlgZoom; struct MergeDialog DlgMerge; struct LegendDialog DlgLegendArrow; struct LegendDialog DlgLegendRect; struct LegendDialog DlgLegendArc; struct LegendDialog DlgLegendMark; struct LegendDialog DlgLegendText; struct LegendDialog DlgLegendTextDef; struct LegendGaussDialog DlgLegendGauss; struct PageDialog DlgPage; struct SwitchDialog DlgSwitch; struct DirectoryDialog DlgDirectory; struct PrmDialog DlgPrm; struct LoadDialog DlgLoad; struct SaveDialog DlgSave; struct DriverDialog DlgDriver; struct PrintDialog DlgPrinter; struct OutputDataDialog DlgOutputData; struct DefaultDialog DlgDefault; struct SetScriptDialog DlgSetScript; struct PrefScriptDialog DlgPrefScript; struct SetDriverDialog DlgSetDriver; struct PrefDriverDialog DlgPrefDriver; struct PrefFontDialog DlgPrefFont; struct FontSettingDialog DlgFontSetting; struct MiscDialog DlgMisc; struct ExViewerDialog DlgExViewer; struct ViewerDialog DlgViewer; struct SelectDialog DlgSelect; struct CopyDialog DlgCopy; struct OutputImageDialog DlgImageOut; static void SetTextFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field); static int SetObjFieldFromSpin(GtkWidget *w, struct objlist *Obj, int Id, char *field); static void SetSpinFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field); static int SetObjFieldFromToggle(GtkWidget *w, struct objlist *Obj, int Id, char *field); static void SetToggleFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field); static int SetObjFieldFromList(GtkWidget *w, struct objlist *Obj, int Id, char *field); static void SetListFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field); static int SetObjFieldFromText(GtkWidget *w, struct objlist *Obj, int Id, char *field); void initdialog(void) { DlgFile.widget = NULL; DlgFile.focus = NULL; DlgFile.resource = N_("data"); DlgFile.mark.widget = NULL; DlgFile.mark.focus = NULL; DlgFile.mark.resource = N_("mark selection"); DlgFileDef.widget = NULL; DlgFileDef.focus = NULL; DlgFileDef.resource = N_("data default"); DlgFileDef.mark.widget = NULL; DlgFileDef.mark.focus = NULL; DlgFileDef.mark.resource = N_("mark selection"); DlgEval.widget = NULL; DlgEval.focus = NULL; DlgEval.resource = N_("evaluation"); DlgMath.widget = NULL; DlgMath.focus = NULL; DlgMath.resource = N_("math"); DlgMathText.widget = NULL; DlgMathText.focus = NULL; DlgMathText.resource = N_("math text"); DlgFit.widget = NULL; DlgFit.focus = NULL; DlgFit.resource = N_("fit"); DlgFitLoad.widget = NULL; DlgFitLoad.focus = NULL; DlgFitLoad.resource = N_("fit load"); DlgFitSave.widget = NULL; DlgFitSave.focus = NULL; DlgFitSave.Profile = NULL; DlgFitSave.resource = N_("fit save"); DlgSection.widget = NULL; DlgSection.focus = NULL; DlgSection.resource = N_("Frame/Section Graph"); DlgCross.widget = NULL; DlgCross.focus = NULL; DlgCross.resource = N_("Cross Graph"); DlgAxis.widget = NULL; DlgAxis.focus = NULL; DlgAxis.resource = N_("axis"); DlgGrid.widget = NULL; DlgGrid.focus = NULL; DlgGrid.resource = N_("grid"); DlgZoom.widget = NULL; DlgZoom.focus = NULL; DlgZoom.resource = N_("Scale Zoom"); DlgZoom.zoom = 20000; DlgMerge.widget = NULL; DlgMerge.focus = NULL; DlgMerge.resource = N_("merge"); DlgLegendArrow.widget = NULL; DlgLegendArrow.focus = NULL; DlgLegendArrow.arrow_pixmap = NULL; DlgLegendArrow.resource = N_("legend line"); DlgLegendRect.widget = NULL; DlgLegendRect.focus = NULL; DlgLegendRect.resource = N_("legend rectangle"); DlgLegendArc.widget = NULL; DlgLegendArc.focus = NULL; DlgLegendArc.resource = N_("legend arc"); DlgLegendMark.widget = NULL; DlgLegendMark.focus = NULL; DlgLegendMark.resource = N_("legend mark"); DlgLegendMark.mark.widget = NULL; DlgLegendMark.mark.focus = NULL; DlgLegendMark.mark.resource = N_("mark selection"); DlgLegendText.widget = NULL; DlgLegendText.focus = NULL; DlgLegendText.resource = N_("legend text"); DlgLegendTextDef.widget = NULL; DlgLegendTextDef.focus = NULL; DlgLegendTextDef.resource = N_("textdefault"); DlgLegendGauss.widget = NULL; DlgLegendGauss.focus = NULL; DlgLegendGauss.resource = N_("legend gauss"); DlgPage.widget = NULL; DlgPage.focus = NULL; DlgPage.resource = N_("page"); DlgSwitch.widget = NULL; DlgSwitch.focus = NULL; DlgSwitch.resource = N_("drawobj"); DlgDirectory.widget = NULL; DlgDirectory.focus = NULL; DlgDirectory.resource = N_("directory"); DlgLoad.widget = NULL; DlgLoad.focus = NULL; DlgLoad.resource = N_("load"); DlgPrm.widget = NULL; DlgPrm.focus = NULL; DlgPrm.resource = N_("loadprm"); DlgSave.widget = NULL; DlgSave.focus = NULL; DlgSave.resource = N_("save"); DlgDriver.widget = NULL; DlgDriver.focus = NULL; DlgDriver.resource = N_("driver"); DlgPrinter.widget = NULL; DlgPrinter.focus = NULL; DlgPrinter.resource = N_("print"); DlgOutputData.widget = NULL; DlgOutputData.focus = NULL; DlgOutputData.resource = N_("output data"); DlgDefault.widget = NULL; DlgDefault.focus = NULL; DlgDefault.resource = N_("save default"); DlgSetScript.widget = NULL; DlgSetScript.focus = NULL; DlgSetScript.resource = N_("Add-in script"); DlgPrefScript.widget = NULL; DlgPrefScript.focus = NULL; DlgPrefScript.resource = N_("Add-in script setup"); DlgSetDriver.widget = NULL; DlgSetDriver.focus = NULL; DlgSetDriver.resource = N_("External driver"); DlgPrefDriver.widget = NULL; DlgPrefDriver.focus = NULL; DlgPrefDriver.resource = N_("External driver setup"); DlgPrefFont.widget = NULL; DlgPrefFont.focus = NULL; DlgPrefFont.resource = N_("Font"); DlgMisc.widget = NULL; DlgMisc.focus = NULL; DlgMisc.resource = N_("Miscellaneous"); DlgExViewer.widget = NULL; DlgExViewer.focus = NULL; DlgExViewer.resource = N_("External viewer"); DlgViewer.widget = NULL; DlgViewer.focus = NULL; DlgViewer.resource = N_("Viewer"); DlgSelect.widget = NULL; DlgSelect.focus = NULL; DlgSelect.resource = N_("multi select"); DlgCopy.widget = NULL; DlgCopy.focus = NULL; DlgCopy.resource = N_("single select"); DlgImageOut.widget = NULL; DlgImageOut.focus = NULL; DlgImageOut.resource = N_("output image"); } static gboolean multi_list_default_cb(GtkWidget *w, GdkEventAny *e, gpointer user_data) { GtkTreeSelection *sel; struct SelectDialog *d; int n; d = (struct SelectDialog *) user_data; if (e->type == GDK_2BUTTON_PRESS || (e->type == GDK_KEY_PRESS && ((GdkEventKey *)e)->keyval == GDK_KEY_Return)){ sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->list)); n = gtk_tree_selection_count_selected_rows(sel); if (n < 1) return FALSE; gtk_dialog_response(GTK_DIALOG(d->widget), GTK_RESPONSE_OK); return TRUE; } return FALSE; } static int search_id(GtkWidget *list, int id) { GtkTreeModel *model; GtkTreeIter iter; int r, a, i; model = gtk_tree_view_get_model(GTK_TREE_VIEW(list)); r = gtk_tree_model_get_iter_first(model, &iter); i = 0; while (r) { gtk_tree_model_get(model, &iter, 0, &a, -1); if (a == id) return i; r = gtk_tree_model_iter_next(model, &iter); i++; } return -1; } static void SelectDialogSetup(GtkWidget *wi, void *data, int makewidget) { char *s; struct SelectDialog *d; int i, *seldata, selnum, a; GtkWidget *swin, *w, *hbox; GtkTreeIter iter; n_list_store list[] = { {"id", G_TYPE_INT, TRUE, FALSE, NULL, 0, 0, 0, 0, PANGO_ELLIPSIZE_NONE, 0}, {"property", G_TYPE_STRING, TRUE, FALSE, NULL, 0, 0, 0, 0, PANGO_ELLIPSIZE_END, 0}, }; d = (struct SelectDialog *) data; if (makewidget) { d->list = list_store_create(sizeof(list) / sizeof(*list), list); list_store_set_sort_all(d->list); list_store_set_selection_mode(d->list, GTK_SELECTION_MULTIPLE); g_signal_connect(d->list, "button-press-event", G_CALLBACK(multi_list_default_cb), d); g_signal_connect(d->list, "key-press-event", G_CALLBACK(multi_list_default_cb), d); swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(swin), d->list); gtk_dialog_add_button(GTK_DIALOG(wi), _("_All"), IDSALL); w = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(w), swin); gtk_box_pack_start(GTK_BOX(d->vbox), w, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = gtk_button_new_from_stock(GTK_STOCK_SELECT_ALL); g_signal_connect(w, "clicked", G_CALLBACK(list_store_select_all_cb), d->list); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(d->vbox), hbox, FALSE, FALSE, 4); gtk_window_set_default_size(GTK_WINDOW(wi), -1, 300); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } list_store_clear(d->list); for (i = 0; i <= chkobjlastinst(d->Obj); i++) { s = d->cb(d->Obj, i); if (s) { list_store_append(d->list, &iter); list_store_set_int(d->list, &iter, 0, i); list_store_set_string(d->list, &iter, 1, CHK_STR(s)); g_free(s); } } /* if (makewidget) { XtManageChild(d->widget); d->widget = NULL; XtVaSetValues(XtNameToWidget(w, "*list"), XmNwidth, 200, NULL); } */ if (chkobjlastinst(d->Obj) == 0) { list_store_select_nth(d->list, 0); } else if (d->isel) { seldata = arraydata(d->isel); selnum = arraynum(d->isel); for (i = 0; i < selnum; i++) { a = search_id(d->list, seldata[i]); if (a >= 0) { list_store_multi_select_nth(d->list, a, a); } } } } static void select_tree_selection_foreach_cb(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { int a; struct SelectDialog *d; d = (struct SelectDialog *) data; a = list_store_get_int(d->list, iter, 0); arrayadd(d->sel, &a); } static void SelectDialogClose(GtkWidget *w, void *data) { struct SelectDialog *d; d = (struct SelectDialog *) data; if (d->ret == IDOK) { GtkTreeSelection *gsel; gsel = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->list)); gtk_tree_selection_selected_foreach(gsel, select_tree_selection_foreach_cb, data); } else if (d->ret == IDSALL) { int r, id; GtkTreeIter iter; r = list_store_get_iter_first(d->list, &iter); while (r) { id = list_store_get_int(d->list, &iter, 0); arrayadd(d->sel, &id); r = list_store_iter_next(d->list, &iter); } d->ret = IDOK; } } void SelectDialog(struct SelectDialog *data, struct objlist *obj, char *(*callback) (struct objlist * obj, int id), struct narray *array, struct narray *iarray) { data->SetupWindow = SelectDialogSetup; data->CloseWindow = SelectDialogClose; data->Obj = obj; data->cb = callback; arrayinit(array, sizeof(int)); data->sel = array; data->isel = iarray; } static gboolean single_list_default_cb(GtkWidget *w, GdkEventAny *e, gpointer user_data) { struct CopyDialog *d; int i; d = (struct CopyDialog *) user_data; if (e->type == GDK_2BUTTON_PRESS || (e->type == GDK_KEY_PRESS && ((GdkEventKey *)e)->keyval == GDK_KEY_Return)){ i = list_store_get_selected_index(d->list); if (i < 0) { return FALSE; } gtk_dialog_response(GTK_DIALOG(d->widget), GTK_RESPONSE_OK); return TRUE; } return FALSE; } static void CopyDialogSetup(GtkWidget *wi, void *data, int makewidget) { char *s; struct CopyDialog *d; int i, a; GtkWidget *swin, *w; GtkTreeIter iter; n_list_store copy_list[] = { {"id", G_TYPE_INT, TRUE, FALSE, NULL, 0, 0, 0, 0, PANGO_ELLIPSIZE_NONE, 0}, {"property", G_TYPE_STRING, TRUE, FALSE, NULL, 0, 0, 0, 0, PANGO_ELLIPSIZE_END, 0}, }; d = (struct CopyDialog *) data; if (makewidget) { d->list = list_store_create(sizeof(copy_list) / sizeof(*copy_list), copy_list); list_store_set_sort_all(d->list); list_store_set_selection_mode(d->list, GTK_SELECTION_SINGLE); swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(swin), d->list); g_signal_connect(d->list, "button-press-event", G_CALLBACK(single_list_default_cb), d); g_signal_connect(d->list, "key-press-event", G_CALLBACK(single_list_default_cb), d); w = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(w), swin); gtk_box_pack_start(GTK_BOX(d->vbox), w, TRUE, TRUE, 0); gtk_window_set_default_size(GTK_WINDOW(wi), -1, 300); gtk_widget_show_all(GTK_WIDGET(d->vbox)); } list_store_clear(d->list); for (i = 0; i <= chkobjlastinst(d->Obj); i++) { s = d->cb(d->Obj, i); if (s) { list_store_append(d->list, &iter); list_store_set_int(d->list, &iter, 0, i); list_store_set_string(d->list, &iter, 1, CHK_STR(s)); g_free(s); } } if (chkobjlastinst(d->Obj) == 0) { list_store_select_nth(d->list, 0); } else if (d->Id >= 0) { a = search_id(d->list, d->Id); if (a >= 0) { list_store_select_nth(d->list, a); } } /* if (makewidget) { XtManageChild(d->widget); d->widget = NULL; XtVaSetValues(XtNameToWidget(w, "*list"), XmNwidth, 200, NULL); } */ } static void CopyDialogClose(GtkWidget *w, void *data) { struct CopyDialog *d; d = (struct CopyDialog *) data; if (d->ret == IDCANCEL) { return; } d->sel = list_store_get_selected_int(d->list, 0); } void CopyDialog(struct CopyDialog *data, struct objlist *obj, int id, char *(*callback) (struct objlist * obj, int id)) { data->SetupWindow = CopyDialogSetup; data->CloseWindow = CopyDialogClose; data->Obj = obj; data->Id = id; data->cb = callback; data->sel = id; } int CopyClick(GtkWidget *parent, struct objlist *obj, int Id, char *(*callback) (struct objlist * obj, int id)) { int sel; CopyDialog(&DlgCopy, obj, Id, callback); if (DialogExecute(parent, &DlgCopy) == IDOK) { sel = DlgCopy.sel; } else { sel = -1; } return sel; } int SetObjPointsFromText(GtkWidget *w, struct objlist *Obj, int Id, char *field) { GtkTreeModel *list; GtkTreeIter iter; GtkTreeView *tree_view; struct narray *array, *atmp; unsigned int i; int r, ip; double point[2]; if (w == NULL) { return 0; } tree_view = GTK_TREE_VIEW(w); list = gtk_tree_view_get_model(tree_view); r = gtk_tree_model_get_iter_first(list, &iter); if (! r) { return -1; } array = arraynew(sizeof(int)); if (array == NULL) { return -1; } while (r) { gtk_tree_model_get(list, &iter, 0, point, 1, point + 1, -1); for (i = 0; i < sizeof(point) / sizeof(*point); i++) { ip = nround(point[i] * 100); atmp = arrayadd(array, &ip); if (atmp == NULL){ goto ErrEnd; } array = atmp; } r = gtk_tree_model_iter_next(list, &iter); } if (get_graph_modified()) { if (putobj(Obj, field, Id, array) < 0) { goto ErrEnd; } } else { char *str1, *str2; sgetobjfield(Obj, Id, field, NULL, &str1, FALSE, FALSE, FALSE); if (putobj(Obj, field, Id, array) < 0) { g_free(str1); goto ErrEnd; } sgetobjfield(Obj, Id, field, NULL, &str2, FALSE, FALSE, FALSE); if (str1 && str2 && strcmp(str1, str2)) { set_graph_modified(); } g_free(str2); g_free(str1); } return 0; ErrEnd: if (array) { arrayfree(array); } gtk_widget_grab_focus(w); return -1; } void SetTextFromObjPoints(GtkWidget *w, struct objlist *Obj, int Id, char *field) { GtkListStore *list; GtkTreeIter iter; GtkTreeView *tree_view; struct narray *array; int i, n, *points; if (w == NULL) { return; } tree_view = GTK_TREE_VIEW(w); list = GTK_LIST_STORE(gtk_tree_view_get_model(tree_view)); gtk_list_store_clear(list); getobj(Obj, field, Id, 0, NULL, &array); n = arraynum(array); points = arraydata(array); for (i = 0; i < n / 2; i++) { gtk_list_store_append(list, &iter); gtk_list_store_set(list, &iter, 0, points[i * 2] / 100.0, 1, points[i * 2 + 1] / 100.0, -1); } } int chk_sputobjfield(struct objlist *obj, int id, char *field, char *str) { if (get_graph_modified()) { if (sputobjfield(obj, id, field, str)) { return 1; } } else { char *ptr, *org; sgetobjfield(obj, id, field, NULL, &org, FALSE, FALSE, FALSE); if (sputobjfield(obj, id, field, str)) { g_free(org); return 1; } sgetobjfield(obj, id, field, NULL, &ptr, FALSE, FALSE, FALSE); if ((ptr == NULL && org) || (ptr && org == NULL) || (ptr && org && strcmp(ptr, org))) { set_graph_modified(); } g_free(ptr); g_free(org); } return 0; } int SetObjFieldFromWidget(GtkWidget *w, struct objlist *Obj, int Id, char *field) { int r = 0; if (w == NULL) { return 0; } if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_SPIN_BUTTON)) { r = SetObjFieldFromSpin(w, Obj, Id, field); } else if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_ENTRY)) { r = SetObjFieldFromText(w, Obj, Id, field); #if ! GTK_CHECK_VERSION(2, 24, 0) } else if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_COMBO_BOX_ENTRY)) { r = SetObjFieldFromText(gtk_bin_get_child(GTK_BIN(w)), Obj, Id, field); #endif } else if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_COMBO_BOX)) { #if GTK_CHECK_VERSION(2, 24, 0) if (gtk_combo_box_get_has_entry(GTK_COMBO_BOX(w))) { r = SetObjFieldFromText(gtk_bin_get_child(GTK_BIN(w)), Obj, Id, field); } else { r = SetObjFieldFromList(w, Obj, Id, field); } #else r = SetObjFieldFromList(w, Obj, Id, field); #endif } else if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_TOGGLE_BUTTON)) { r = SetObjFieldFromToggle(w, Obj, Id, field); } if (r) { gtk_widget_grab_focus(w); } return r; } void SetWidgetFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field) { if (w == NULL) { return; } if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_SPIN_BUTTON)) { SetSpinFromObjField(w, Obj, Id, field); } else if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_ENTRY)) { SetTextFromObjField(w, Obj, Id, field); #if ! GTK_CHECK_VERSION(2, 24, 0) } else if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_COMBO_BOX_ENTRY)) { SetTextFromObjField(gtk_bin_get_child(GTK_BIN(w)), Obj, Id, field); #endif } else if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_COMBO_BOX)) { #if GTK_CHECK_VERSION(2, 24, 0) if (gtk_combo_box_get_has_entry(GTK_COMBO_BOX(w))) { SetTextFromObjField(gtk_bin_get_child(GTK_BIN(w)), Obj, Id, field); } else { SetListFromObjField(w, Obj, Id, field); } #else SetListFromObjField(w, Obj, Id, field); #endif } else if (G_TYPE_CHECK_INSTANCE_TYPE(w, GTK_TYPE_TOGGLE_BUTTON)) { SetToggleFromObjField(w, Obj, Id, field); } } static int SetObjFieldFromText(GtkWidget *w, struct objlist *Obj, int Id, char *field) { const char *tmp; char *buf; if (w == NULL) { return 0; } tmp = gtk_entry_get_text(GTK_ENTRY(w)); if (tmp == NULL) { return -1; } buf = g_strdup(tmp); if (buf == NULL) { return -1; } if (chk_sputobjfield(Obj, Id, field, buf)) { g_free(buf); return -1; } g_free(buf); return 0; } static void SetTextFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field) { GtkEntry *entry; char *buf; if (w == NULL) { return; } entry = GTK_ENTRY(w); sgetobjfield(Obj, Id, field, NULL, &buf, FALSE, FALSE, FALSE); if (buf == NULL) { gtk_entry_set_text(entry, ""); return; } gtk_entry_set_text(entry, CHK_STR(buf)); g_free(buf); } static int SetObjFieldFromSpin(GtkWidget *w, struct objlist *Obj, int Id, char *field) { int val, oval; if (w == NULL) { return 0; } val = spin_entry_get_val(w); if (get_graph_modified()) { if (putobj(Obj, field, Id, &val) < 0) { return -1; } } else { getobj(Obj, field, Id, 0, NULL, &oval); if (putobj(Obj, field, Id, &val) < 0) { return -1; } getobj(Obj, field, Id, 0, NULL, &val); if (val != oval) { set_graph_modified(); } } return 0; } static void SetSpinFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field) { int val; if (w == NULL){ return; } getobj(Obj, field, Id, 0, NULL, &val); spin_entry_set_val(w, val); } static int SetObjFieldFromToggle(GtkWidget *w, struct objlist *Obj, int Id, char *field) { gboolean state; int a, oa; if (w == NULL) { return 0; } state = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); a = state ? TRUE : FALSE; getobj(Obj, field, Id, 0, NULL, &oa); oa = oa ? TRUE : FALSE; if (a != oa) { if (putobj(Obj, field, Id, &a) == -1){ return -1; } set_graph_modified(); } return 0; } static void SetToggleFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field) { int a; if (w == NULL) { return; } getobj(Obj, field, Id, 0, NULL, &a); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), a); } static int set_obj_points_from_text(GtkWidget *w, struct objlist *Obj, int Id, char *field) { double d; int ip; char *buf, *ptr, *tmp, *eptr; const char *ctmp; struct narray *array = NULL, *atmp; if (w == NULL) { return 0; } ctmp = gtk_entry_get_text(GTK_ENTRY(w)); if (ctmp == NULL) { return -1; } buf = g_strdup(ctmp); if (buf == NULL) { return -1; } array = arraynew(sizeof(int)); ptr = buf; while (1) { while (ptr && isspace(*ptr)) ptr++; if (*ptr == '\0') { break; } tmp = strchr(ptr, ' '); if (tmp) { *tmp = '\0'; } d = strtod(ptr, &eptr); if (d != d || d == HUGE_VAL || d == - HUGE_VAL || eptr[0] != '\0') goto ErrEnd; ip = nround(d * 100); atmp = arrayadd(array, &ip); if (atmp == NULL) { goto ErrEnd; } array = atmp; if (tmp == NULL) { break; } ptr = tmp + 1; } if (get_graph_modified()) { if (putobj(Obj, field, Id, array) < 0) { goto ErrEnd; } } else { char *str1, *str2; sgetobjfield(Obj, Id, field, NULL, &str1, FALSE, FALSE, FALSE); if (putobj(Obj, field, Id, array) < 0) { g_free(str1); goto ErrEnd; } sgetobjfield(Obj, Id, field, NULL, &str2, FALSE, FALSE, FALSE); if (str1 && str2 && strcmp(str1, str2)) { set_graph_modified(); } g_free(str2); g_free(str1); } g_free(buf); return 0; ErrEnd: if (buf) { g_free(buf); } if (array) { arrayfree(array); } return -1; } int SetObjFieldFromStyle(GtkWidget *w, struct objlist *Obj, int Id, char *field) { unsigned int j; const char *ptr; if (w == NULL) { return 0; } ptr = gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(w)))); if (ptr == NULL) { return -1; } for (j = 0; j < CLINESTYLE; j++) { if (strcmp(ptr, FwLineStyle[j].name) == 0 || strcmp(ptr, _(FwLineStyle[j].name)) == 0) { if (chk_sputobjfield(Obj, Id, field, FwLineStyle[j].list) != 0) { gtk_widget_grab_focus(w); return -1; } break; } } if (j == CLINESTYLE) { if (set_obj_points_from_text(gtk_bin_get_child(GTK_BIN(w)), Obj, Id, field)) { gtk_widget_grab_focus(w); return -1; } } return 0; } const char * get_style_string(struct objlist *obj, int id, char *field) { unsigned int j; int i; struct narray *array; int stylenum; int *style, a; char *s; getobj(obj, field, id, 0, NULL, &array); stylenum = arraynum(array); style = arraydata(array); for (j = 0; j < CLINESTYLE; j++) { if (stylenum == FwLineStyle[j].num) { s = FwLineStyle[j].list; for (i = 0; i < FwLineStyle[j].num; i++) { a = strtol(s, &s, 10); if (style[i] != a) { break; } } if (i == FwLineStyle[j].num) { return FwLineStyle[j].name; } } } return NULL; } #if GTK_CHECK_VERSION(2, 18, 0) static void set_entry_from_obj_point(GtkEntry *entry, struct objlist *Obj, int Id, char *field) { struct narray *array; char buf[128]; int i, n, *points, l, pos; GtkEntryBuffer *t_buf; t_buf = gtk_entry_get_buffer(entry); gtk_entry_buffer_set_text(t_buf, "", 0); getobj(Obj, field, Id, 0, NULL, &array); n = arraynum(array); points = arraydata(array); pos = 0; for (i = 0; i < n / 2; i++) { l = snprintf(buf, sizeof(buf), "%.2f %.2f ", points[i * 2] / 100.0, points[i * 2 + 1] / 100.0); gtk_entry_buffer_insert_text(t_buf, pos, buf, l); pos += l; } } #else static void set_entry_from_obj_point(GtkEntry *entry, struct objlist *Obj, int Id, char *field) { struct narray *array; char buf[128], *tmp; GString *str; int i, n, *points; str = g_string_sized_new(256); if (str == NULL) { return; } getobj(Obj, field, Id, 0, NULL, &array); n = arraynum(array); points = arraydata(array); for (i = 0; i < n; i++) { g_string_append_printf(str, "%.2f ", points[i] / 100.0); } gtk_entry_set_text(entry, str->str); END: g_string_free(str, TRUE); } #endif void SetStyleFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field) { unsigned int j; GtkEntry *entry; int count; const char *s; if (w == NULL) { return; } entry = GTK_ENTRY(gtk_bin_get_child(GTK_BIN(w))); count = combo_box_get_num(w); if (count == 0) { for (j = 0; j < CLINESTYLE; j++) { combo_box_append_text(w, _(FwLineStyle[j].name)); } } s = get_style_string(Obj, Id, field); if (s) { gtk_entry_set_text(entry, _(s)); } else { set_entry_from_obj_point(entry, Obj, Id, field); } } static int SetObjFieldFromList(GtkWidget *w, struct objlist *Obj, int Id, char *field) { int pos, opos; if (w == NULL) { return 0; } pos = combo_box_get_active(w); if (pos < 0) { return -1; } getobj(Obj, field, Id, 0, NULL, &opos); if (pos != opos) { if (putobj(Obj, field, Id, &pos) == -1) { return -1; } set_graph_modified(); } return 0; } static void SetListFromObjField(GtkWidget *w, struct objlist *Obj, int Id, char *field) { char **enumlist; int j, a, count; if (w == NULL) { return; } count = combo_box_get_num(w); if (count == 0) { enumlist = (char **) chkobjarglist(Obj, field); for (j = 0; enumlist[j] && enumlist[j][0]; j++) { combo_box_append_text(w, _(enumlist[j])); } } getobj(Obj, field, Id, 0, NULL, &a); combo_box_set_active(w, a); } struct compatible_font_info * SetFontListFromObj(GtkWidget *w, struct objlist *obj, int id, const char *name) { int j, selfont; struct fontmap *fcur; char *font; struct compatible_font_info *compatible; if (w == NULL) { return NULL; } compatible = NULL; getobj(obj, name, id, 0, NULL, &font); combo_box_clear(w); fcur = Gra2cairoConf->fontmap_list_root; j = 0; selfont = -1; while (fcur) { combo_box_append_text(w, fcur->fontalias); if (font && strcmp(font, fcur->fontalias) == 0) { selfont = j; } j++; fcur = fcur->next; } if (selfont < 0) { selfont = 0; compatible = gra2cairo_get_compatible_font_info(font); if (compatible) { fcur = Gra2cairoConf->fontmap_list_root; j = 0; while (fcur) { if (strcmp(compatible->name, fcur->fontalias) == 0) { selfont = j; break; } j++; fcur = fcur->next; } } } combo_box_set_active(w, selfont); return compatible; } void SetObjFieldFromFontList(GtkWidget *w, struct objlist *obj, int id, char *name) { struct fontmap *fcur; char *fontalias; if (w == NULL) { return; } fontalias = combo_box_get_active_text(w); if (fontalias == NULL) { return; } if (nhash_get_ptr(Gra2cairoConf->fontmap, fontalias, (void *) &fcur)) { g_free(fontalias); return; } g_free(fontalias); chk_sputobjfield(obj, id, name, fcur->fontalias); } int SetObjAxisFieldFromWidget(GtkWidget *w, struct objlist *obj, int id, char *field) { const char *s; char *buf; int r; s = combo_box_entry_get_text(w); if (s == NULL) { return 0; } if (s[0] == '\0') { buf = NULL; } else { buf = g_strdup_printf("axis:%s", CHK_STR(s)); } r = chk_sputobjfield(obj, id, field, buf); if (buf) { g_free(buf); } return r; } static void _set_color(GtkWidget *w, struct objlist *obj, int id, char *prefix, char *postfix) { #if GTK_CHECK_VERSION(3, 4, 0) GdkRGBA color; #else GdkColor color; #endif int r, g, b, a; char buf[64]; snprintf(buf, sizeof(buf), "%sR%s", CHK_STR(prefix), CHK_STR(postfix)); getobj(obj, buf, id, 0, NULL, &r); snprintf(buf, sizeof(buf), "%sG%s", CHK_STR(prefix), CHK_STR(postfix)); getobj(obj, buf, id, 0, NULL, &g); snprintf(buf, sizeof(buf), "%sB%s", CHK_STR(prefix), CHK_STR(postfix)); getobj(obj, buf, id, 0, NULL, &b); snprintf(buf, sizeof(buf), "%sA%s", CHK_STR(prefix), CHK_STR(postfix)); getobj(obj, buf, id, 0, NULL, &a); if (! Menulocal.use_opacity) { a = 255; } #if GTK_CHECK_VERSION(3, 4, 0) color.red = r / 255.0; color.green = g / 255.0; color.blue = b / 255.0; color.alpha = a / 255.0; gtk_color_chooser_set_use_alpha(GTK_COLOR_CHOOSER(w), Menulocal.use_opacity); gtk_color_chooser_set_rgba(GTK_COLOR_CHOOSER(w), &color); #else color.red = (r & 0xffU) * 257; color.green = (g & 0xffU) * 257; color.blue = (b & 0xffU) * 257; gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(w), Menulocal.use_opacity); gtk_color_button_set_color(GTK_COLOR_BUTTON(w), &color); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(w), (a & 0xffU) * 257); #endif snprintf(buf, sizeof(buf), "#%02X%02X%02X", r, g, b); gtk_widget_set_tooltip_text(w, buf); } void set_color(GtkWidget *w, struct objlist *obj, int id, char *prefix) { _set_color(w, obj, id, prefix, NULL); } void set_color2(GtkWidget *w, struct objlist *obj, int id) { _set_color(w, obj, id, NULL, "2"); } void set_fill_color(GtkWidget *w, struct objlist *obj, int id) { _set_color(w, obj, id, "fill_", NULL); } void set_stroke_color(GtkWidget *w, struct objlist *obj, int id) { _set_color(w, obj, id, "stroke_", NULL); } static int _putobj_color(GtkWidget *w, struct objlist *obj, int id, char *prefix, char *postfix) { #if GTK_CHECK_VERSION(3, 4, 0) GdkRGBA color; #else GdkColor color; #endif int r, g, b, a, o; char buf[64]; #if GTK_CHECK_VERSION(3, 4, 0) gtk_color_chooser_get_rgba(GTK_COLOR_CHOOSER(w), &color); a = (Menulocal.use_opacity) ? (color.alpha * 255) : 0xff; r = color.red * 255; g = color.green * 255; b = color.blue * 255; #else gtk_color_button_get_color(GTK_COLOR_BUTTON(w), &color); a = (Menulocal.use_opacity) ? gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)) : 0xffff; a >>= 8; r = (color.red >> 8); g = (color.green >> 8); b = (color.blue >> 8); #endif snprintf(buf, sizeof(buf), "%sR%s", CHK_STR(prefix), CHK_STR(postfix)); getobj(obj, buf, id, 0, NULL, &o); if (o != r) { if (putobj(obj, buf, id, &r) == -1) { return TRUE; } set_graph_modified(); } snprintf(buf, sizeof(buf), "%sG%s", CHK_STR(prefix), CHK_STR(postfix)); getobj(obj, buf, id, 0, NULL, &o); if (o != g) { if (putobj(obj, buf, id, &g) == -1) { return TRUE; } set_graph_modified(); } snprintf(buf, sizeof(buf), "%sB%s", CHK_STR(prefix), CHK_STR(postfix)); getobj(obj, buf, id, 0, NULL, &o); if (o != b) { if (putobj(obj, buf, id, &b) == -1) { return TRUE; } set_graph_modified(); } snprintf(buf, sizeof(buf), "%sA%s", CHK_STR(prefix), CHK_STR(postfix)); getobj(obj, buf, id, 0, NULL, &o); if (o != a) { if (putobj(obj, buf, id, &a) == -1) { return TRUE; } set_graph_modified(); } return FALSE; } int putobj_color(GtkWidget *w, struct objlist *obj, int id, char *prefix) { return _putobj_color(w, obj, id, prefix, NULL); } int putobj_color2(GtkWidget *w, struct objlist *obj, int id) { return _putobj_color(w, obj, id, NULL, "2"); } int putobj_fill_color(GtkWidget *w, struct objlist *obj, int id) { return _putobj_color(w, obj, id, "fill_", NULL); } int putobj_stroke_color(GtkWidget *w, struct objlist *obj, int id) { return _putobj_color(w, obj, id, "stroke_", NULL); } ngraph-gtk-6.06.13/src/gtk/gtk_combo.c0000644000175000017500000000560112241111703014330 00000000000000/* * $Id: gtk_combo.c,v 1.1.1.1 2008-05-29 09:37:33 hito Exp $ */ #include "gtk_common.h" #include #include "gtk_combo.h" static void set_model(GtkComboBox *cbox, int renderer) { GtkListStore *list; GtkCellRenderer *rend_s; list = gtk_list_store_new(1, G_TYPE_STRING); gtk_combo_box_set_model(cbox, GTK_TREE_MODEL(list)); rend_s = gtk_cell_renderer_text_new(); if (renderer) { gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(cbox), rend_s, FALSE); gtk_cell_layout_add_attribute(GTK_CELL_LAYOUT(cbox), rend_s, "text", 0); } /* rend_n = gtk_cell_renderer_text_new(); g_object_set_data((GObject *) rend_n, "visible", FALSE); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(cbox), rend_n, FALSE); gtk_cell_layout_add_attribute(GTK_CELL_LAYOUT(cbox), rend_s, "text", 1); */ } GtkWidget * combo_box_create(void) { GtkComboBox *cbox; cbox = GTK_COMBO_BOX(gtk_combo_box_new()); set_model(cbox, TRUE); return GTK_WIDGET(cbox); } GtkWidget * combo_box_entry_create(void) { GtkComboBox *cbox; #if GTK_CHECK_VERSION(2, 24, 0) cbox = GTK_COMBO_BOX(gtk_combo_box_new_with_entry()); #else cbox = GTK_COMBO_BOX(gtk_combo_box_entry_new()); #endif set_model(cbox, FALSE); #if GTK_CHECK_VERSION(2, 24, 0) gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(cbox), 0); #else gtk_combo_box_entry_set_text_column(GTK_COMBO_BOX_ENTRY(cbox), 0); #endif gtk_entry_set_activates_default(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(cbox))), TRUE); return GTK_WIDGET(cbox); } void combo_box_entry_set_text(GtkWidget *cbox, char *str) { gtk_entry_set_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(cbox))), str); } const char * combo_box_entry_get_text(GtkWidget *cbox) { return gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(cbox)))); } void combo_box_append_text(GtkWidget *cbox, char *str) { GtkListStore *list; GtkTreeIter iter; list = GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(cbox))); gtk_list_store_append(list, &iter); gtk_list_store_set(list, &iter, 0, str, -1); } int combo_box_get_active(GtkWidget *cbox) { return gtk_combo_box_get_active(GTK_COMBO_BOX(cbox)); } char * combo_box_get_active_text(GtkWidget *cbox) { GtkTreeIter iter; gboolean ret; GtkTreeModel *model; char *str; ret = gtk_combo_box_get_active_iter(GTK_COMBO_BOX(cbox), &iter); if (! ret) return NULL; model = gtk_combo_box_get_model(GTK_COMBO_BOX(cbox)); gtk_tree_model_get(model, &iter, 0, &str, -1); return str; } void combo_box_set_active(GtkWidget *cbox, int i) { gtk_combo_box_set_active(GTK_COMBO_BOX(cbox), i); } void combo_box_clear(GtkWidget *cbox) { GtkListStore *list; list = GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(cbox))); gtk_list_store_clear(list); } int combo_box_get_num(GtkWidget *cbox) { GtkTreeModel *model; model = gtk_combo_box_get_model(GTK_COMBO_BOX(cbox)); return gtk_tree_model_iter_n_children(model, NULL); } ngraph-gtk-6.06.13/src/gtk/x11info.c0000644000175000017500000000637312241111703013660 00000000000000/* * $Id: x11info.c,v 1.9 2009-07-22 14:53:31 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "gtk_common.h" #include "object.h" #include "gtk_subwin.h" #include "x11bitmp.h" #include "x11gui.h" #include "ox11menu.h" #include "x11menu.h" #include "x11info.h" void InfoWinSetFont(char *font) { if (NgraphApp.InfoWin.data.text && font) { PangoFontDescription *desc; desc = pango_font_description_from_string(font); #if GTK_CHECK_VERSION(3, 0, 0) gtk_widget_override_font(GTK_WIDGET(NgraphApp.InfoWin.data.text), NULL); gtk_widget_override_font(GTK_WIDGET(NgraphApp.InfoWin.data.text), desc); #else gtk_widget_modify_font(GTK_WIDGET(NgraphApp.InfoWin.data.text), NULL); gtk_widget_modify_font(GTK_WIDGET(NgraphApp.InfoWin.data.text), desc); #endif pango_font_description_free(desc); } } void InfoWinDrawInfoText(const char *str) { GtkTextBuffer *buf; GtkTextIter iter; gint len; GtkTextMark *mark; if (str == NULL) return; if (NgraphApp.InfoWin.Win == NULL) { return; } if (NgraphApp.InfoWin.data.text == NULL) { return; } buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(NgraphApp.InfoWin.data.text)); gtk_text_buffer_get_end_iter(buf, &iter); gtk_text_buffer_insert(buf, &iter, str, -1); len = gtk_text_buffer_get_line_count(buf); if (len > Menulocal.info_size) { GtkTextIter start, end; gtk_text_buffer_get_start_iter(buf, &start); gtk_text_buffer_get_iter_at_line(buf, &end, len - Menulocal.info_size); gtk_text_buffer_delete(buf, &start, &end); } gtk_text_buffer_get_end_iter(buf, &iter); gtk_text_buffer_place_cursor(buf, &iter); mark = gtk_text_buffer_get_selection_bound(buf); gtk_text_view_scroll_mark_onscreen(GTK_TEXT_VIEW(NgraphApp.InfoWin.data.text), mark); } void InfoWinClear(void) { GtkTextBuffer *buf; if (NgraphApp.InfoWin.data.text == NULL) return; buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(NgraphApp.InfoWin.data.text)); gtk_text_buffer_set_text(buf, "", 0); } void InfoWinUpdate(int clear) { } void CmInformationWindow(GtkToggleAction *action, gpointer data) { struct SubWin *d; int state; d = &(NgraphApp.InfoWin); if (action) { state = gtk_toggle_action_get_active(action); } else { state = TRUE; } if (d->Win) { sub_window_set_visibility(d, state); return; } if (! state) { return; } text_sub_window_create(d, "Information Window", Infowin_xpm, Infowin48_xpm); InfoWinSetFont(Menulocal.infowin_font); } ngraph-gtk-6.06.13/src/gtk/x11commn.h0000644000175000017500000000357612241111703014045 00000000000000/* * $Id: x11commn.h,v 1.11 2010-03-04 08:30:17 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ void OpenGRA(void); void CloseGRA(void); void ChangeGRA(void); void CheckPage(void); void SetPageSettingsToGRA(void); void GetPageSettingsFromGRA(void); void AxisDel(int id); void AxisMove(int id1, int id2); void AdjustAxis(void); void FitCopy(struct objlist *obj, int did, int sid); void FitDel(struct objlist *obj, int id); void FitClear(void); void LoadPrmFile(char *File); void LoadNgpFile(char *File, int ignorepath, int expand, char *exdir, int console, char *option); int SaveDrawrable(char *name, int storedata, int storemerge); int GraphSave(int overwrite); void DeleteDrawable(void); void FileAutoScale(void); int CheckSave(void); void AddDataFileList(const char *file); void SetFileName(char *name); int CheckIniFile(void); int allocate_console(void); void free_console(int allocnow); char *FileCB(struct objlist *obj, int id); int SetFileHidden(void); void ProgressDialogCreate(char *title); void ProgressDialogSetTitle(char *title); void ProgressDialogFinalize(void); void ErrorMessage(void); ngraph-gtk-6.06.13/src/oio.c0000644000175000017500000002451412241111703012371 00000000000000/* * $Id: oio.c,v 1.6 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include #include #include #include #include #include #include "common.h" #include "nhash.h" #include "object.h" #include "ioutil.h" #include "nstring.h" #include "oroot.h" static char *io_errorlist[]={ "file is not specified.", "invalid mode.", "I/O error: open", "I/O error: read", "I/O error: write", "I/O error: seek", "IO is closed.", "IO is opened.", "I/O error:", }; #define ERRNUM (sizeof(io_errorlist) / sizeof(*io_errorlist)) #define NAME "io" #define PARENT "object" #define OVERSION "1.00.00" #define ERRFILE 100 #define ERRMODE 101 #define ERROPEN 102 #define ERRREAD 103 #define ERRWRITE 104 #define ERRSEEK 105 #define ERRCLOSED 106 #define ERROPENED 107 #define ERRSTD 108 char *seek_whence[]={ N_("set"), N_("cur"), N_("end"), NULL }; enum IO_SEEK_WHENCE { IO_SEEK_SET, IO_SEEK_CUR, IO_SEEK_END, }; struct io_local { FILE *fp; int popen; }; static void io_error(struct objlist *obj) { const char *str; str = g_strerror(errno); error2(obj, ERRSTD, CHK_STR(str)); } static int io_init(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; char *mode; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; mode = g_strdup("r"); if (mode == NULL) { return 1; } if (_putobj(obj, "mode", inst, mode)) { g_free(mode); return 1; } io_local = g_malloc0(sizeof(struct io_local)); if (io_local == NULL) { g_free(mode); return 1; } if (_putobj(obj, "_local", inst, io_local)) { g_free(mode); g_free(io_local); return 1; } io_local->fp = NULL; io_local->popen = FALSE; return 0; } static int io_close_sub(struct io_local *io_local) { if (io_local->fp == NULL) { return 1; } if (io_local->popen) { pclose(io_local->fp); } else { fclose(io_local->fp); } io_local->fp = NULL; return 0; } static int io_done(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"_local",inst,&io_local); if (io_local->fp) { io_close_sub(io_local); } return 0; } static int io_open(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; char *file, *mode; _getobj(obj, "_local", inst, &io_local); _getobj(obj, "mode", inst, &mode); if (mode == NULL || mode[0] == '\0') { mode = "r"; } if (io_local->fp) { error(obj, ERROPENED); return 1; } file = argv[2]; if (file == NULL) { return 1; } errno = 0; if (argv[1][0] == 'p') { fp = popen(file, mode); io_local->popen = TRUE; } else { fp = nfopen(file, mode); io_local->popen = FALSE; } if (fp == NULL) { io_error(obj); g_free(fp); return 1; } _putobj(obj, "file", inst, g_strdup(file)); io_local->fp = fp; return 0; } static int io_close(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; char *s; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { return 1; } _getobj(obj, "file", inst, &s); g_free(s); _putobj(obj, "file", inst, NULL); io_close_sub(io_local); return 0; } static int io_puts(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; int rcode; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { return 1; } errno = 0; if (argv[2]) { rcode = fputs(argv[2], fp); } rcode = fputs("\n", fp); if (rcode == EOF) { io_error(obj); return 1; } return 0; } static int io_gets(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; int rcode; char *buf; g_free(rval->str); rval->str = NULL; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } errno = 0; rcode = fgetline(fp, &buf); if (rcode < -1) { io_error(obj); return 1; } else if (rcode) { return 1; } rval->str = buf; return 0; } static int io_getc(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; int rcode; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } errno = 0; rcode = fgetc(fp); if (rcode == EOF && ferror(fp)) { io_error(obj); return 1; } rval->i = rcode; return 0; } static int io_putc(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; int c; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } c = *(int *) argv[2]; errno = 0; c = fputc(c, fp); if (c == EOF) { io_error(obj); return 1; } rval->i = c; return 0; } static int io_read(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; int l; size_t len, rlen; char *buf; g_free(rval->str); rval->str = NULL; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } l = * (int *) argv[2]; if (l < 0) { return 1; } else if (l < 1) { return 0; } len = l; errno = 0; buf = g_malloc(len + 1); if (buf == NULL) { io_error(obj); return 1; } rlen = fread(buf, 1, len, fp); if (rlen == 0) { if (ferror(fp)) { io_error(obj); } g_free(buf); return 1; } buf[rlen] = '\0'; rval->str = buf; return 0; } static int io_write(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; size_t len, rlen; char *buf; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } buf = argv[2]; if (buf == NULL) { return 1; } len = strlen(buf); errno = 0; rlen = fwrite(buf, 1, len, fp); if (rlen < len) { io_error(obj); return 1; } rval->i = rlen; return 0; } static int io_seek(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; int r, pos, w, whence; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } _getobj(obj, "whence", inst, &w); switch (w) { case IO_SEEK_SET: whence = SEEK_SET; break; case IO_SEEK_CUR: whence = SEEK_CUR; break; case IO_SEEK_END: whence = SEEK_END; break; default: return 1; } pos = *(int *) argv[2]; errno = 0; r = fseek(fp, pos, whence); if (r) { io_error(obj); return 1; } return 0; } static int io_rewind(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } rewind(fp); return 0; } static int io_tell(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; long pos; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } errno = 0; pos = ftell(fp); if (pos < 0) { error(obj, ERRSEEK); return 1; } rval->i = pos; return 0; } static int io_flush(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; int r; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } errno = 0; r = fflush(fp); if (r) { io_error(obj); return 1; } return 0; } static int io_eof(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct io_local *io_local; FILE *fp; int r; _getobj(obj, "_local", inst, &io_local); fp = io_local->fp; if (fp == NULL) { error(obj, ERRCLOSED); return 1; } r = feof(fp); rval->i = (r) ? TRUE : FALSE; return r ? 0 : 1; } static struct objtable io[] = { {"init",NVFUNC,NEXEC,io_init,NULL,0}, {"done",NVFUNC,NEXEC,io_done,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"file",NSTR,NREAD,NULL,NULL,0}, {"mode",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"open",NVFUNC,NREAD|NEXEC,io_open,"s",0}, {"popen",NVFUNC,NREAD|NEXEC,io_open,"s",0}, {"close",NVFUNC,NREAD|NEXEC,io_close,"",0}, {"puts",NVFUNC,NREAD|NEXEC,io_puts,"s",0}, {"putc",NIFUNC,NREAD|NEXEC,io_putc,"i",0}, {"gets",NSFUNC,NREAD|NEXEC,io_gets,"",0}, {"getc",NIFUNC,NREAD|NEXEC,io_getc,"",0}, {"read",NSFUNC,NREAD|NEXEC,io_read,"i",0}, {"write",NIFUNC,NREAD|NEXEC,io_write,"s",0}, {"whence",NENUM,NREAD|NWRITE,NULL,seek_whence,0}, {"seek",NVFUNC,NREAD|NEXEC,io_seek,"i",0}, {"tell",NIFUNC,NREAD|NEXEC,io_tell,"",0}, {"rewind",NVFUNC,NREAD|NEXEC,io_rewind,"",0}, {"flush",NVFUNC,NREAD|NEXEC,io_flush,"",0}, {"eof",NBFUNC,NREAD|NEXEC,io_eof,"",0}, {"_local",NPOINTER,0,NULL,NULL,0}, }; #define TBLNUM (sizeof(io) / sizeof(*io)) void * addio(void) /* addio() returns NULL on error */ { return addobject(NAME, NULL, PARENT, OVERSION, TBLNUM, io, ERRNUM, io_errorlist, NULL, NULL); } ngraph-gtk-6.06.13/src/ioutil.c0000644000175000017500000004262412241343575013130 00000000000000/* * $Id: ioutil.c,v 1.25 2010-04-01 06:08:22 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include #include #include #include #include #include #include "object.h" #include "nstring.h" #include "ioutil.h" #ifndef O_BINARY #define O_BINARY 0 #endif static void (* ShowProgressFunc)(int, char *, double) = NULL; #if EOF == -1 static char C_type_buf[257]; void char_type_buf_init(void) { memset(C_type_buf, 0, sizeof(C_type_buf)); C_type_buf[0] = 1; C_type_buf['\r' + 1] = 1; C_type_buf['\n' + 1] = 1; C_type_buf['\0' + 1] = 1; } #define is_line_sep(ch) (C_type_buf[ch + 1]) #endif void changefilename(char *name) { #ifdef WINDOWS int i; if (name == NULL) { return; } for (i = 0; name[i] != '\0'; i++) { if (name[i] == '\\') { name[i] = DIRSEP; } } #endif /* WINDOWS */ } void path_to_win(char *name) { #ifdef WINDOWS int i; if (name == NULL) { return; } for (i = 0; name[i] != '\0'; i++) { if (name[i] == DIRSEP) { name[i] = '\\'; } } #endif /* WINDOWS */ } static void pathresolv(char *name) { int j,k; if (name == NULL) { return; } changefilename(name); j=k=0; while (name[k]!='\0') { if ((name[k]==DIRSEP) && (name[k+1]=='.')) { if (name[k+2]==DIRSEP) k+=2; else if ((name[k+2]=='.') && (name[k+3]==DIRSEP)) { if (j!=0) j--; for (;(name[j]!=DIRSEP) && (j!=0);j--); k+=3; } else { name[j]=name[k]; j++; k++; } } else { name[j]=name[k]; j++; k++; } } name[j]='\0'; } char * getfullpath(const char *name) { char *s, *cwd, *utf8_name; int top; if (name == NULL) { return NULL; } utf8_name = get_utf8_filename(name); if (utf8_name == NULL) { return NULL; } changefilename(utf8_name); if (utf8_name[0] == DIRSEP && utf8_name[1] == DIRSEP) { s = utf8_name; } else { if (isalpha(utf8_name[0]) && utf8_name[1] == ':') { top = 2; } else { top = 0; } if (utf8_name[top] == DIRSEP) { s = utf8_name; } else { cwd = ngetcwd(); if (cwd == NULL) { g_free(utf8_name); return NULL; } s = g_strdup_printf("%s%c%s", cwd, DIRSEP, utf8_name + top); g_free(cwd); g_free(utf8_name); } } pathresolv(s); return s; } #ifdef WINDOWS static int getdisk(void) { char *cwd; int drive; cwd = g_get_current_dir(); if (cwd == NULL) { return -1; } drive = toupper(cwd[0]) - 'A'; g_free(cwd); return drive; } #endif /* WINDOWS */ char * getrelativepath(const char *name) { char *utf8_name, *str; GString *s; if (name == NULL) { return NULL; } utf8_name = get_utf8_filename(name); if (utf8_name == NULL) { return NULL; } if ((utf8_name[0]==DIRSEP) && (utf8_name[1]==DIRSEP)) { str = utf8_name; pathresolv(str); } else { int i, j, top, depth; top = 0; #ifdef WINDOWS if (isalpha(utf8_name[0]) && name[1] == ':') { top = 2; } #endif /* WINDOWS */ if ( #ifdef WINDOWS name[top] == DIRSEP && (top != 2 || toupper(name[0]) - 'A' == getdisk()) #else /* WINDOWS */ name[0] == DIRSEP #endif /* WINDOWS */ ) { char *cwd, *cwd2; cwd = ngetcwd(); if (cwd == NULL) { g_free(utf8_name); return NULL; } #ifdef WINDOWS for (j = 2; cwd[j] != '\0'; j++) { cwd[j - 2] = cwd[j]; } cwd[j - 2] = '\0'; #endif /* WINDOWS */ cwd2 = g_malloc(strlen(cwd) + 2); if (cwd2 == NULL) { g_free(cwd); g_free(utf8_name); return NULL; } strcpy(cwd2, cwd); g_free(cwd); i=strlen(cwd2); if ((i==0) || (cwd2[i-1]!=DIRSEP)) { cwd2[i]=DIRSEP; cwd2[i+1]='\0'; } for (i=0;(cwd2[i]!='\0') && (utf8_name[i+top]!='\0');i++) { if (cwd2[i]!=utf8_name[i+top]) { break; } } if (i > 0) { i--; } for (;cwd2[i] != DIRSEP;i--); depth=0; for (j=strlen(cwd2); j != i; j--) { if (cwd2[j] == DIRSEP) { depth++; } } g_free(cwd2); s = g_string_sized_new(64); if (s == NULL) { g_free(utf8_name); return NULL; } if (depth==0) { g_string_append(s, "./"); } else { for (j = 0; j < depth; j++) { g_string_append(s, "../"); } } g_string_append(s, utf8_name + i + top + 1); g_free(utf8_name); str = g_string_free(s, FALSE); } else { str = utf8_name; pathresolv(str); } } return str; } char * get_utf8_filename(const char *name) { char *utf8_name; if (name == NULL) { return NULL; } if (g_utf8_validate(name, -1, NULL)) { utf8_name = g_strdup(name); } else { #ifdef WINDOWS utf8_name = g_locale_to_utf8(name, -1, NULL, NULL, NULL); #else /* WINDOWS */ utf8_name = g_filename_to_utf8(name, -1, NULL, NULL, NULL); #endif /* WINDOWS */ } changefilename(utf8_name); return utf8_name; } char * get_localized_filename(const char *name) { char *localized_name; if (name == NULL) { return NULL; } #ifdef WINDOWS if (g_utf8_validate(name, -1, NULL)) { localized_name = g_strdup(name); } else { localized_name = g_locale_to_utf8(name, -1, NULL, NULL, NULL); } #else /* WINDOWS */ if (g_utf8_validate(name, -1, NULL)) { localized_name = g_filename_from_utf8(name, -1, NULL, NULL, NULL); } else { localized_name = g_strdup(name); } #endif /* WINDOWS */ return localized_name; } char * getbasename(const char *name) { char *basename, *tmp; if (name == NULL) return NULL; tmp = get_utf8_filename(name); if (tmp == NULL) { return NULL; } basename = g_path_get_basename(tmp); g_free(tmp); return basename; } char * getdirname(const char *name) { char *dirname, *tmp; if (name == NULL) return NULL; tmp = get_utf8_filename(name); if (tmp == NULL) { return NULL; } dirname = g_path_get_dirname(tmp); g_free(tmp); return dirname; } char * getextention(char *name) { int i; if (name==NULL) return NULL; changefilename(name); for (i=strlen(name);(name[i]!='.') && (name[i]!=':') && (i!=0);i--); if (name[i]=='.') return name+i+1; return NULL; } char * getfilename(char *dir,char *sep,char *file) { char *s; unsigned int dir_len; dir_len = strlen(dir); s = g_malloc(dir_len + strlen(sep) + strlen(file) + 1); if (s == NULL) return NULL; strcpy(s, dir); if (dir_len > 0 && (s[dir_len - 1] == '/' || s[dir_len - 1] == '\\')) s[dir_len - 1]='\0'; strcat(s, sep); strcat(s, file); changefilename(s); return s; } int findfilename(char *dir,char *sep,char *file) { char *s; int find; GStatBuf buf; if ((s=getfilename(dir,sep,file))==NULL) return FALSE; if ((naccess(s,R_OK)==0) && (nstat(s,&buf)==0)) { if ((buf.st_mode & S_IFMT)==S_IFREG) find=TRUE; else find=FALSE; } else find=FALSE; g_free(s); return find; } char * ngetcwd(void) { char *s; s = g_get_current_dir(); changefilename(s); return s; } char * nsearchpath(char *path,char *name,int shellscript) { char *cmdname,*tok; int len; if (name==NULL) return NULL; if (name[0]=='\0') return NULL; cmdname = g_find_program_in_path(name); if (cmdname) { return cmdname; } if (strchr(name,DIRSEP)==NULL) { while ((tok=getitok(&path,&len,PATHSEP))!=NULL) { g_free(cmdname); if ((cmdname=g_malloc(strlen(name)+len+2))==NULL) return NULL; strncpy(cmdname,tok,len); if (cmdname[len-1]!=DIRSEP) { cmdname[len]=DIRSEP; len++; } strcpy(cmdname+len,name); if ((!shellscript && (naccess(cmdname,X_OK)==0)) || (shellscript && (naccess(cmdname,R_OK)==0))) return cmdname; } if (tok==NULL) { g_free(cmdname); return NULL; } } else { if (!((!shellscript && (naccess(name,X_OK)==0)) || (shellscript && (naccess(name,R_OK)==0)))) return NULL; if ((cmdname=g_malloc(strlen(name)+1))==NULL) return NULL; strcpy(cmdname,name); return cmdname; } return NULL; } static int nscandir(char *dir,char ***namelist, int (*compar)()) { unsigned int i; GDir *dp; const char *ent; char **po,**po2; unsigned int allocn = 256, alloc = 0; dp = g_dir_open(dir, 0, NULL); if (dp == NULL) { return -1; } po = g_malloc(allocn * sizeof(char *)); if (po == NULL) { g_dir_close(dp); return -1; } while ((ent = g_dir_read_name(dp))) { if (allocn == alloc) { allocn += 256; po2 = g_realloc(po, allocn * sizeof(char *)); if (po2 == NULL) { for (i = 0; i < alloc; i++) { g_free(po[i]); } g_free(po); g_dir_close(dp); return -1; } po = po2; } po[alloc] = g_strdup(ent); if (po[alloc] == NULL) { for (i = 0; i < alloc; i++) { g_free(po[i]); } g_free(po); g_dir_close(dp); return -1; } alloc++; } g_dir_close(dp); if (compar != NULL) { qsort(po, alloc, sizeof(struct dirent *), compar); } *namelist = po; return alloc; } static int nalphasort(char **a,char **b) { return strcmp(*a,*b); } static int nglob2(char *path,int po,int *num,char ***list) { int i,j,p1,escape,scannum,len,err; char *s,*s1,*s2,*s3,*path2; char **namelist; if (path==NULL) return 0; p1=po; escape=FALSE; for (i=po;path[i]!='\0';i++) { if (escape) escape=FALSE; else if (path[i]=='\\') escape=TRUE; else if (path[i]==DIRSEP) p1=i+1; else if ((path[i]=='?') || (path[i]=='*')) break; else if (path[i]=='[') { for (j=i+1;(path[j]!='\0') && (path[j]!=']');j++) ; if (path[j]==']') { i=j; break; } } } if (path[i]=='\0') { if (naccess(path,R_OK)==0) { if ((s=g_malloc(strlen(path)+1))==NULL) return -1; strcpy(s,path); if (arg_add(list,s)==NULL) return -1; (*num)++; } } else { for (;(path[i]!='\0') && (path[i]!=DIRSEP);i++) ; s1 = g_malloc(p1 + 1); s2 = g_malloc(i - p1 + 1); s3 = g_malloc(strlen(path) - i + 1); if (s1 == NULL || s2 == NULL || s3 == NULL) { g_free(s1); g_free(s2); g_free(s3); return -1; } strncpy(s1,path,p1); s1[p1]='\0'; strncpy(s2,path+p1,i-p1); s2[i-p1]='\0'; strcpy(s3,path+i); if (strlen(s1)==0) scannum=nscandir("./",&namelist,nalphasort); else scannum=nscandir(s1,&namelist,nalphasort); for (i=0;i0) g_free(namelist); g_free(s1); g_free(s2); g_free(s3); return -1; } g_free(path2); } } g_free(namelist[i]); } if (scannum>0) g_free(namelist); g_free(s1); g_free(s2); g_free(s3); } return 0; } int nglob(char *path,char ***namelist) { int num; char *s; *namelist=NULL; num=0; if (nglob2(path,0,&num,namelist)==-1) { arg_del(*namelist); return -1; } if (num==0) { if ((s=g_malloc(strlen(path)+1))==NULL) return -1; strcpy(s,path); if (arg_add(namelist,s)==NULL) return -1; return 1; } return num; } int fgetline(FILE *fp, char **buf) { /* rcode: 0 noerror -1 fatal error 1 EOF */ char *s; int ch, i; /* modified */ *buf = NULL; ch = fgetc(fp); if (ch == EOF) { *buf = NULL; return 1; } s = nstrnew(); if (s == NULL) { *buf = NULL; return -1; } i = 0; while (TRUE) { #if EOF == -1 if (is_line_sep(ch)) { switch (ch) { case '\r': ch = fgetc(fp); if (ch != '\n') { ungetc(ch, fp); } /* FALLTHRU */ case '\0': case '\n': case EOF: s[i] = '\0'; /* nstraddchar() is not terminate string */ *buf = s; return 0; } } else { s = nstraddchar(s, i, ch); i++; if (s == NULL) { *buf = NULL; return -1; } } #else switch (ch) { case '\r': ch = fgetc(fp); if (ch != '\n') { ungetc(ch, fp); } /* FALLTHRU */ case '\0': case '\n': case EOF: s[i] = '\0'; /* nstraddchar() is not terminate string */ *buf = s; return 0; default: s = nstraddchar(s, i, ch); i++; if (s == NULL) { *buf = NULL; return -1; } } #endif ch = fgetc(fp); } } int fgetnline(FILE *fp, char *buf, int len) { /* rcode: 0 noerror -1 fatal error 1 EOF */ int rcode; char *ptr; buf[0] = '\0'; rcode = fgetline(fp, &ptr); if (rcode) return rcode; strncpy(buf, ptr, len); buf[len - 1] = '\0'; g_free(ptr); return 0; } int nfgetc(FILE *fp) { int ch; do { ch=fgetc(fp); } while (ch=='\r'); return ch; } FILE * nfopen(const char *filename, const char *mode) { FILE *fp; char *tmp; if (filename == NULL) return NULL; tmp = get_localized_filename(filename); if (tmp == NULL) { return NULL; } fp = g_fopen(tmp, mode); g_free(tmp); return fp; } int nisatty(int fd) { return isatty(fd); } int nstat(const gchar *filename, GStatBuf *buf) { int r; char *tmp; if (filename == NULL || buf == NULL) return -1; tmp = get_localized_filename(filename); if (tmp == NULL) { return -1; } r = g_stat(tmp, buf); g_free(tmp); return r; } int naccess(const gchar *filename, int mode) { int r; char *tmp; if (filename == NULL) return -1; tmp = get_localized_filename(filename); if (tmp == NULL) { return -1; } r = g_access(tmp, mode); g_free(tmp); return r; } int nchdir(const gchar *path) { int r; char *tmp; if (path == NULL) return -1; tmp = get_localized_filename(path); if (tmp == NULL) { return -1; } r = g_chdir(tmp); g_free(tmp); return r; } int nopen(const char *path,int access,int mode) { int r; char *tmp; if (path == NULL) return -1; tmp = get_localized_filename(path); if (tmp == NULL) { return -1; } r = g_open(tmp, access, mode | O_BINARY); g_free(tmp); return r; } void nclose(int fd) { close(fd); } void nlseek(int fd,long offset,int fromwhere) { lseek(fd,offset,fromwhere); } int nread(int fd,char *buf,unsigned len) { return read(fd,buf,len); } int nwrite(int fd,char *buf,unsigned len) { return write(fd,buf,len); } int nredirect(int fd,int newfd) { int savefd; savefd=dup(fd); dup2(newfd,fd); close(newfd); return savefd; } void nredirect2(int fd,int savefd) { dup2(savefd,fd); close(savefd); } int stdinfd(void) { return 0; } int stdoutfd(void) { return 1; } int stderrfd(void) { return 2; } void set_progress_func(void (* func)(int, char *, double)) { ShowProgressFunc = func; } void set_progress(int pos, char *msg, double fraction) { if (ShowProgressFunc) ShowProgressFunc(pos, msg, fraction); } int n_mkstemp(const char *dir, char *templ, char **name) { char postfix[] = "XXXXXX", *buf, *path; int len, fd, path_last; #ifdef S_IRWXG mode_t mask_prev; #endif dir = (dir) ? dir : g_get_tmp_dir(); path = g_strdup(dir); if (path == NULL) { return -1; } len = strlen(path); if (len > 1) { path_last = path[len - 1]; } else { path_last = '\0'; } changefilename(path); buf = g_strdup_printf("%s%s%s%s", path, (path_last == '/') ? "" : "/", CHK_STR(templ), postfix); g_free(path); #ifdef S_IRWXG mask_prev = umask(S_IRWXG | S_IRWXO); #endif fd = g_mkstemp(buf); #ifdef S_IRWXG umask(mask_prev); #endif if (fd < 0) { g_free(buf); buf = NULL; } *name = buf; return fd; } FILE * n_tmpfile(char **name) { int fd; FILE *fp; fd = n_mkstemp(NULL, "ntmp", name); if (fd < 0) { return NULL; } #ifndef WINDOWS if (*name) { g_unlink(*name); } #endif fp = fdopen(fd, "w+b"); if (fp == NULL) { close(fd); if (*name) { #ifdef WINDOWS g_unlink(*name); #endif g_free(*name); *name = NULL; } } return fp; } void n_tmpfile_close(FILE *fp, char *name) { if (fp){ fclose(fp); } if (name) { #ifdef WINDOWS g_unlink(name); #endif g_free(name); } } ngraph-gtk-6.06.13/src/oroot.c0000644000175000017500000002407712241111703012751 00000000000000/* * $Id: oroot.c,v 1.11 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include "object.h" #include "nstring.h" #include "oroot.h" #include "nconfig.h" #define NAME "object" #define PARENT NULL #define OVERSION "1.00.00" #define ERRILNAME 100 static char *rooterrorlist[]={ "illegal instance name" }; #define ERRNUM (sizeof(rooterrorlist) / sizeof(*rooterrorlist)) int obj_load_config(struct objlist *obj, N_VALUE *inst, char *title, NHASH hash) { FILE *fp; char *tok,*str,*s2; char *f1,*f2; int val; char *endptr; int len; struct obj_config *cfg; struct narray *iarray; fp = openconfig(title); if (fp == NULL) return 0; while ((tok = getconfig(fp, &str))) { s2 = str; if (nhash_get_ptr(hash, tok, (void *) &cfg) == 0) { switch (cfg->type) { case OBJ_CONFIG_TYPE_NUMERIC: f1 = getitok2(&s2, &len, " \t,"); val = strtol(f1, &endptr, 10); if (endptr[0] == '\0') _putobj(obj, cfg->name, inst, &val); g_free(f1); break; case OBJ_CONFIG_TYPE_STRING: f1 = getitok2(&s2, &len, ""); _getobj(obj, cfg->name, inst, &f2); g_free(f2); _putobj(obj, cfg->name, inst, f1); break; case OBJ_CONFIG_TYPE_STYLE: iarray = arraynew(sizeof(int)); if (iarray) { while ((f1 = getitok2(&s2, &len, " \t,")) != NULL) { val = strtol(f1, &endptr, 10); if (endptr[0] == '\0') arrayadd(iarray, &val); g_free(f1); } _putobj(obj, tok, inst, iarray); } break; case OBJ_CONFIG_TYPE_OTHER: if (cfg->load_proc) { cfg->load_proc(obj, inst, cfg->name, s2); } break; } } else { fprintf(stderr, "configuration '%s' in section %s is not used.\n", tok, title); } g_free(tok); g_free(str); } closeconfig(fp); return 0; } static void obj_save_config_numeric(struct objlist *obj, N_VALUE *inst, char *field, struct narray *conf) { char buf[1024], *str; int val; _getobj(obj, field, inst, &val); snprintf(buf, sizeof(buf), "%s=%d", field, val); str = g_strdup(buf); if (str) { arrayadd(conf, &str); } } void obj_save_config_string(struct objlist *obj, N_VALUE *inst, char *field, struct narray *conf) { char *buf, *val; int len; _getobj(obj, field, inst, &val); val = CHK_STR(val); len = strlen(field) + strlen(val) + 2; buf = g_malloc(len); if (buf) { snprintf(buf, len, "%s=%s", field, val); arrayadd(conf, &buf); } } static void obj_save_config_line_style(struct objlist *obj, N_VALUE *inst, char *field, struct narray *conf) { char *buf; int i, j, num; struct narray *iarray; _getobj(obj, field, inst, &iarray); num = arraynum(iarray); buf = g_malloc(strlen(field) + 2 + 20 * num); if (buf == NULL) return; j = 0; j += sprintf(buf, "%s=", field); for (i = 0; i < num; i++) { j += sprintf(buf + j, "%d%s", arraynget_int(iarray, i), (i == num - 1) ? "" : " "); } arrayadd(conf, &buf); } int obj_save_config(struct objlist *obj, N_VALUE *inst, char *title, struct obj_config *config, unsigned int n) { struct narray conf; unsigned int i; arrayinit(&conf, sizeof(char *)); for (i = 0; i < n; i++) { switch (config[i].type) { case OBJ_CONFIG_TYPE_NUMERIC: obj_save_config_numeric(obj, inst, config[i].name, &conf); break; case OBJ_CONFIG_TYPE_STRING: obj_save_config_string(obj, inst, config[i].name, &conf); break; case OBJ_CONFIG_TYPE_STYLE: obj_save_config_line_style(obj, inst, config[i].name, &conf); break; case OBJ_CONFIG_TYPE_OTHER: if (config[i].save_proc) { config[i].save_proc(obj, inst, config[i].name, &conf); } break; } } replaceconfig(title, &conf); arraydel2(&conf); return 0; } static int oinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int odone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int oputname(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *arg; int i; if (argc<3) return 0; arg=argv[2]; if (arg==NULL) return 0; if (!isalpha(arg[0]) && (arg[0]!='_')) { error2(obj,ERRILNAME,arg); return 1; } for (i=1;arg[i]!='\0';i++) if (!isalnum(arg[i]) && (strchr("_",arg[i])==NULL)) { error2(obj,ERRILNAME,arg); return 1; } return 0; } int oputabs(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (*(int *)(argv[2])<0) *(int *)argv[2]=0; return 0; } int oputge1(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (*(int *)(argv[2])<1) *(int *)(argv[2])=1; return 0; } int oputangle(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (*(int *)(argv[2])<0) *(int *)(argv[2])=0; else if (*(int *)(argv[2])>36000) *(int *)(argv[2])=36000; return 0; } int oputcolor(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (*(int *) (argv[2]) < 0) *(int *)(argv[2]) = 0; else if (*(int *)(argv[2]) > 255) *(int *)(argv[2]) = 255; return 0; } int oputmarktype(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { int type; type = * (int *) (argv[2]); if (type < 0 || type >= MARK_TYPE_NUM) { * (int *) (argv[2]) = 0; } return 0; } int oputstyle(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int i, num, *adata; array = (struct narray *) argv[2]; num = arraynum(array); adata = arraydata(array); if (num == 1) { array = arrayadd(array, adata); if (array == NULL) { return 1; } num++; } for (i = 0; i < num; i++) { adata[i] = abs(adata[i]); } return 0; } #ifdef COMPILE_UNUSED_FUNCTIONS static void ochgobjlist(char **olist) { char *list,*objname,*field; char *ids,*ids2; int id,len; struct objlist *obj; char *endptr; N_VALUE *inst; list=*olist; objname=getitok2(&list,&len,":"); ids=getitok2(&list,&len,":"); field=list; if ((objname==NULL) || (ids==NULL)) { g_free(objname); g_free(ids); g_free(*olist); *olist=NULL; return; } obj=chkobject(objname); g_free(objname); if (ids[0]!='^') { g_free(ids); return; } ids2=ids+1; id=strtol(ids2,&endptr,0); if ((ids2[0]=='\0') || (endptr[0]!='\0')) { g_free(ids); g_free(*olist); *olist=NULL; return; } g_free(ids); if ((inst=getobjinstoid(obj,id))==NULL) { g_free(*olist); *olist=NULL; return; } _getobj(obj,"id",inst,&id); g_free(*olist); *olist=mkobjlist(obj,NULL,id,field,FALSE); return; } #endif /* COMPILE_UNUSED_FUNCTIONS */ static int osave(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct objlist *obj2; char *field, *name, *valstr; char buf[8], *list; int i, j, perm; struct narray *array; int anum; char **adata; GString *s; g_free(rval->str); rval->str = NULL; array = (struct narray *) argv[2]; anum = arraynum(array); adata = arraydata(array); obj2 = getobject(argv[0]); if (obj2 == NULL) { return 1; } if (_getobj(obj2, "name", inst, &name)) { return 1; } s = g_string_sized_new(256); if (s == NULL) { return 1; } g_string_append(s, "new "); g_string_append(s, argv[0]); if (name) { g_string_append(s, " name:"); g_string_append(s, name); } g_string_append_c(s, '\n'); for (i = 0; i < chkobjfieldnum(obj2); i++) { field = chkobjfieldname(obj2, i); for (j = 0; j < anum; j++) { if (strcmp0(field, adata[j]) == 0) { break; } } if (j == anum) { perm = chkobjperm(obj2, field); if ((perm & NREAD) && (perm & NWRITE) && strcmp0(field, "name") != 0) { valstr = NULL; g_string_append_c(s, '\t'); g_string_append(s, argv[0]); g_string_append(s, "::"); g_string_append(s, field); g_string_append_c(s, '='); if (chkobjfieldtype(obj2, field) == NOBJ) { if (_getobj(obj2, field, inst, &list)) { goto errexit; } list = chgobjlist(list); valstr = getvaluestr(obj2, field, &list, FALSE, TRUE); if (valstr == NULL) { goto errexit; } g_free(list); } else { if (_getobj(obj2, field, inst, (void *)buf)) { goto errexit; } valstr = getvaluestr(obj2, field, buf, FALSE, TRUE); if (valstr == NULL) { goto errexit; } } g_string_append(s, valstr); g_string_append_c(s, '\n'); g_free(valstr); } } } rval->str = g_string_free(s, FALSE); return 0; errexit: g_string_free(s, TRUE); g_free(valstr); return 1; } static struct objtable objectroot[] = { {"init",NVFUNC,NEXEC,oinit,NULL,0}, {"done",NVFUNC,NEXEC,odone,NULL,0}, {"id",NINT,NREAD,NULL,NULL,0}, {"oid",NINT,NREAD,NULL,NULL,0}, {"name",NSTR,NREAD|NWRITE,oputname,NULL,0}, {"save",NSFUNC,NREAD|NEXEC,osave,"sa",0}, }; #define TBLNUM (sizeof(objectroot) / sizeof(*objectroot)) void * addobjectroot(void) /* addobjectroot() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,objectroot,ERRNUM,rooterrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/ostring.c0000644000175000017500000002152412241111703013266 00000000000000/* * $Id: ostring.c,v 1.5 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include "object.h" #include "nstring.h" #define NAME "string" #define PARENT "object" #define OVERSION "1.00.00" #define ERR_INVALID_UTF8 100 #define ERR_REGEXP 101 static char *stringerrorlist[]={ "invalid UTF-8 string.", "invalid regular expression.", }; #define ERRNUM (sizeof(stringerrorlist) / sizeof(*stringerrorlist)) static int stringinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int stringdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static void set_length(struct objlist *obj, N_VALUE *inst, char *str) { int byte, len; if (str) { byte = strlen(str); len = g_utf8_strlen(str, -1); } else { byte = 0; len = 0; } _putobj(obj, "byte", inst, &byte); _putobj(obj, "length", inst, &len); } static int string_strip(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *str, *tmp; if (rval->str) { g_free(rval->str); } rval->str = NULL; if (_getobj(obj, "@", inst, &str)) { return 1; } if (str == NULL || str[0] == '\0') { return 0; } tmp = g_strdup(str); if (tmp) { g_strstrip(tmp); } rval->str = tmp; return 0; } static int string_set(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *str; str = argv[2]; if (str == NULL) { set_length(obj, inst, str); return 0; } if (! g_utf8_validate(str, -1, NULL)) { error(obj, ERR_INVALID_UTF8); return 1; } set_length(obj, inst, str); return 0; } static int string_upcase(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *str; if (rval->str) { g_free(rval->str); } rval->str = NULL; if (_getobj(obj, "@", inst, &str)) { return 1; } if (str == NULL) { return 0; } rval->str = g_utf8_strup(str, -1); return 0; } static int string_downcase(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *str; if (rval->str) { g_free(rval->str); } rval->str = NULL; if (_getobj(obj, "@", inst, &str)) { return 1; } if (str == NULL) { return 0; } rval->str = g_utf8_strdown(str, -1); return 0; } static int string_reverse(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *str; if (rval->str) { g_free(rval->str); } rval->str = NULL; if (_getobj(obj, "@", inst, &str)) { return 1; } if (str == NULL) { return 0; } rval->str = g_utf8_strreverse(str, -1); return 0; } static char * utf8_string_slice(const char *str, int size, int byte_size, int start, int len) { char *data, *ptr; if (str == NULL || size < 1 || len <= 0) { return NULL; } if (start < 0) { start = size + start; } if (start < 0) { return NULL; } if (start >= size) { return NULL; } if (start + len > size) { len = size - start; } data = g_malloc(byte_size + 1); if (data == NULL) { return NULL; } ptr = g_utf8_offset_to_pointer(str, start); g_utf8_strncpy(data, ptr, len); return data; } static int string_slice(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *str; int start, size, byte_size, len; start = * (int *) argv[2]; len = * (int *) argv[3]; if (rval->str) { g_free(rval->str); } rval->str = NULL; if (_getobj(obj, "@", inst, &str)) { return 1; } if (_getobj(obj, "byte", inst, &byte_size)) { return 1; } if (_getobj(obj, "length", inst, &size)) { return 1; } if (str == NULL || len < 1) { return 0; } rval->str = utf8_string_slice(str, size, byte_size, start, len); return 0; } static int string_replace(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { GRegex *regexp; char *str, *pattern, *replace; g_free(rval->str); rval->str = NULL; pattern = (char *) argv[2]; replace = (char *) argv[3]; if (pattern == NULL || pattern[0] == '\0') { return 0; } if (replace == NULL) { replace = ""; } if (! g_utf8_validate(pattern, -1, NULL)) { error(obj, ERR_INVALID_UTF8); return 1; } if (! g_utf8_validate(replace, -1, NULL)) { error(obj, ERR_INVALID_UTF8); return 1; } if (_getobj(obj, "@", inst, &str)) { return 1; } if(str == NULL || str[0] == '\0') { return 0; } regexp = g_regex_new(pattern, 0, 0, NULL); if (regexp == NULL) { error(obj, ERR_REGEXP); return 1; } rval->str = g_regex_replace(regexp, str, -1, 0, replace, 0, NULL); g_regex_unref(regexp); return 0; } static int string_index(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int pos, size; char *str, *pattern, *ptr, *find; rval->i = -1; pattern = (char *) argv[2]; pos = * (int *) argv[3]; if (pattern == NULL || pattern[0] == '\0') { return 1; } if (_getobj(obj, "length", inst, &size)) { return 2; } if (! g_utf8_validate(pattern, -1, NULL)) { error(obj, ERR_INVALID_UTF8); return 2; } if (pos < 0) { pos += size; } if (pos < 0 || pos >= size) { return 1; } if (_getobj(obj, "@", inst, &str)) { return 1; } if(str == NULL || str[0] == '\0') { return 1; } ptr = g_utf8_offset_to_pointer(str, pos); find = g_strstr_len(ptr, -1, pattern); if (find == NULL) { return 1; } rval->i = g_utf8_pointer_to_offset(str, find); return 0; } static int string_rindex(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int pos, size, len; char *str, *pattern, *ptr, *find; rval->i = -1; pattern = (char *) argv[2]; pos = * (int *) argv[3]; if (pattern == NULL || pattern[0] == '\0') { return 1; } if (_getobj(obj, "length", inst, &size)) { return 2; } if (! g_utf8_validate(pattern, -1, NULL)) { error(obj, ERR_INVALID_UTF8); return 2; } if (pos < 0) { pos += size; } if (pos < 0 || pos >= size) { return 1; } if (_getobj(obj, "@", inst, &str)) { return 1; } if(str == NULL || str[0] == '\0') { return 1; } ptr = g_utf8_offset_to_pointer(str, pos); len = ptr - str + 1; if (len < 1) { return 1; } find = g_strrstr_len(str, len, pattern); if (find == NULL) { return 1; } rval->i = g_utf8_pointer_to_offset(str, find); return 0; } static int string_match(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { GRegex *regexp; char *str, *pattern; pattern = (char *) argv[2]; rval->i = 0; if (! g_utf8_validate(pattern, -1, NULL)) { error(obj, ERR_INVALID_UTF8); return 1; } _getobj(obj, "@", inst, &str); if (str == NULL || str[0] == '\0') { return 0; } regexp = g_regex_new(pattern, 0, 0, NULL); if (regexp == NULL) { error(obj, ERR_REGEXP); return 1; } rval->i = g_regex_match(regexp, str, 0, NULL); g_regex_unref(regexp); return 0; } static struct objtable ostring[] = { {"init",NVFUNC,NEXEC,stringinit,NULL,0}, {"done",NVFUNC,NEXEC,stringdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"@",NSTR,NREAD|NWRITE,string_set,NULL,0}, {"length",NINT,NREAD,NULL,NULL,0}, {"byte",NINT,NREAD,NULL,NULL,0}, {"strip",NSFUNC,NREAD|NEXEC,string_strip,"",0}, {"upcase",NSFUNC,NREAD|NEXEC,string_upcase,"",0}, {"downcase",NSFUNC,NREAD|NEXEC,string_downcase,"",0}, {"reverse",NSFUNC,NREAD|NEXEC,string_reverse,"",0}, {"slice",NSFUNC,NREAD|NEXEC,string_slice,"ii",0}, {"match",NBFUNC,NREAD|NEXEC,string_match,"s",0}, {"replace",NSFUNC,NREAD|NEXEC,string_replace,"ss",0}, {"index",NIFUNC,NREAD|NEXEC,string_index,"si",0}, {"rindex",NIFUNC,NREAD|NEXEC,string_rindex,"si",0}, }; #define TBLNUM (sizeof(ostring) / sizeof(*ostring)) void *addstring() { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,ostring,ERRNUM,stringerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/strconv.c0000644000175000017500000000361712241111703013302 00000000000000/* * $Id: strconv.c,v 1.2 2010-03-04 08:30:16 hito Exp $ */ #include "common.h" #include #include #include #include "object.h" gchar * ascii2greece(const gchar *src) { int i, j, k, c, len, slen, dlen; static char *u[] = {"Α", "Β", "Χ", "Δ", "Ε", "Φ", "Γ", "Η", "Ι", "ϑ", "Κ", "Λ", "Μ", "Ν", "Ο", "Π", "Θ", "Ρ", "Σ", "Τ", "Υ", "ϛ", "Ω", "Ξ", "Ψ", "Ζ"}; static char *l[] = {"α", "β", "χ", "δ", "ε", "ϕ", "γ", "η", "ι", "φ", "κ", "λ", "μ", "ν", "ο", "π", "θ", "ρ", "σ", "τ", "υ", "ϖ", "ω", "ξ", "ψ", "ζ"}; gchar *tmp, *ch, buf[2]; slen = strlen(src); dlen = slen * 6 + 1; tmp = g_malloc(dlen); if (tmp == NULL) return NULL; tmp[0] = '\0'; for (i = j = 0; i < slen; i++) { if (src[i] >= 'a' && src[i] <= 'z') { c = src[i] - 'a'; ch = l[c]; } else if (src[i] >= 'A' && src[i] <= 'Z') { c = src[i] - 'A'; ch = u[c]; } else { buf[0] = src[i]; buf[1] = '\0'; ch = buf; } len = strlen(ch); for (k = 0; k < len; k++) { tmp[j++] = ch[k]; } tmp[j] = '\0'; } return tmp; } static char * str2utf8(char *str, char *scode, char *dcode) { GIConv cd; size_t l, slen, dlen; char *tmp, *ptr; if (str == NULL) return NULL; cd = g_iconv_open(dcode, scode); if (cd == (GIConv)(-1)) { g_iconv_close(cd); return NULL; } slen = strlen(str); dlen = slen * 6 + 1; tmp = g_malloc(dlen); if (tmp == NULL) return NULL; ptr = tmp; l = g_iconv(cd, &str, &slen, &ptr, &dlen); if (l == (size_t)(-1)) { g_free(tmp); tmp = NULL; } else { *ptr = '\0'; } g_iconv_close(cd); return tmp; } char * sjis_to_utf8(char *src) { return str2utf8(src, "CP932", "utf-8//TRANSLIT"); } char * utf8_to_sjis(char *src) { return str2utf8(src, "utf-8", "CP932//TRANSLIT"); } ngraph-gtk-6.06.13/src/ofit.h0000644000175000017500000000023212241111705012542 00000000000000#ifndef OFIT_HEADER #define OFIT_HEADER enum FIT_OBJ_TYPE { FIT_TYPE_POLY, FIT_TYPE_POW, FIT_TYPE_EXP, FIT_TYPE_LOG, FIT_TYPE_USER, }; #endif ngraph-gtk-6.06.13/src/ioutil.h0000644000175000017500000000552112241337214013121 00000000000000/* * $Id: ioutil.h,v 1.9 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef IOUTIL_HEADER #define IOUTIL_HEADER #include "common.h" #include #include #include #define DIRSEP '/' #define DIRSEP_STR "/" #define CONFSEP "/" #define CONFTOP "/" #define NOHANDLE -1 #ifndef WINDOWS #define PATHSEP ":" #define NFMODE (S_IRUSR | S_IWUSR) #define NFMODE_NORMAL_FILE (NFMODE | S_IRGRP | S_IROTH) #else /* WINDOWS */ #define PATHSEP ";" #define NFMODE (S_IREAD | S_IWRITE) #define NFMODE_NORMAL_FILE NFMODE #endif /* WINDOWS */ void changefilename(char *name); void path_to_win(char *name); void char_type_buf_init(void); char *getfullpath(const char *name); char *getrelativepath(const char *name); char *getbasename(const char *name); char *getdirname(const char *name); char *getextention(char *name); char *getfilename(char *dir,char *sep,char *file); int findfilename(char *dir,char *sep,char *file); char *ngetcwd(void); char *nsearchpath(char *path,char *name,int shellscript); int nglob(char *path,char ***namelist); int fgetline(FILE *fp,char **buf); int fgetnline(FILE *fp,char *buf,int len); int nfgetc(FILE *fp); int nisatty(int fd); FILE *nfopen(const char *filename,const char *mode); int nopen(const char *path,int access,int mode); void nclose(int fd); int nredirect(int fd,int newfd); void nredirect2(int fd,int savefd); void nlseek(int fd,long offset,int fromwhere); int nread(int fd,char *buf,unsigned len); int nwrite(int fd,char *buf,unsigned len); int stdinfd(void); int stdoutfd(void); int stderrfd(void); void set_progress_func(void (* func)(int, char *, double)); void set_progress(int pos, char *msg, double fraction); int n_mkstemp(const char *dir, char *templ, char **name); FILE *n_tmpfile(char **name); void n_tmpfile_close(FILE *fp, char *name); int nstat(const gchar *filename, GStatBuf *buf); int naccess(const gchar *filename, int mode); int nchdir(const gchar *path); char *get_utf8_filename(const char *name); char *get_localized_filename(const char *name); #endif /* IOUTIL_HEADER */ ngraph-gtk-6.06.13/src/common.h0000644000175000017500000000172212241111703013074 00000000000000#ifndef COMMON_HEADER #define COMMON_HEADER #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef HAVE_GETTEXT #define DEFAULT_TEXT_DOMAIN PACKAGE #include "gettext.h" #define _(String) gettext(String) #define N_(String) gettext_noop(String) #else /* HAVE_GETTEXT */ #define _(String) (String) #define N_(String) (String) #endif /* HAVE_GETTEXT */ #include #include #ifdef __MINGW32__ #define WINDOWS 1 #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0500 #endif #include #endif #ifndef CCNAME #define CCNAME "unknown"; #endif #ifndef __VERSION__ #define __VERSION__ "" #endif #define COMPILER_NAME (CCNAME " " __VERSION__) #define USE_MEM_PROFILE 0 #define MARK_TYPE_NUM 90 int printfconsole(char *fmt,...); int putconsole(const char *s); int printfconsole(char *fmt,...); void displaydialog(const char *str); void displaystatus(const char *str); void pausewindowconsole(char *title,char *str); #endif /* COMMON_HEADER */ ngraph-gtk-6.06.13/src/ogra2.c0000644000175000017500000000767312241111703012624 00000000000000/* * $Id: ogra2.c,v 1.7 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include "object.h" #define NAME "gra2" #define PARENT "object" #define OVERSION "1.00.00" #define ERRLOCK 100 static char *gra2errorlist[]={ "device is locked" }; #define ERRNUM (sizeof(gra2errorlist) / sizeof(*gra2errorlist)) static int gra2init(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; GC=-1; if (_putobj(obj,"_GC",inst,&GC)) return 1; return 0; } static int gra2done(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; struct narray *sarray; struct objlist *gobj; int gid,deletegra,id,n; char *gfield; N_VALUE *ginst; char *device; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"_GC",inst,&GC); _getobj(obj,"delete_gra",inst,&deletegra); _getobj(obj,"_list",inst,&sarray); n = arraynum(sarray); if (GC != -1 && (! deletegra || n == 0)) { error2(obj,ERRLOCK,argv[0]); return 1; } if (n) { gobj=getobjlist(arraynget_str(sarray,0),&gid,&gfield,NULL); if (gobj==NULL) return 0; if ((ginst=getobjinstoid(gobj,gid))==NULL) return 0; if (GC!=-1) _exeobj(gobj,"close",ginst,0,NULL); if (!_getobj(gobj,"_device",ginst,&device)) { g_free(device); _putobj(gobj,"_device",ginst,NULL); } if (deletegra) { if (_getobj(gobj,"id",ginst,&id)) return 0; delobj(gobj,id); } } return 0; } static int gra2clear(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int i,num; struct narray *sarray; _getobj(obj,"_list",inst,&sarray); num=arraynum(sarray); for (i=num-1;i>0;i--) arrayndel2(sarray,i); return 0; } #ifdef COMPILE_UNUSED_FUNCTIONS static int gra2disconnect(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; struct narray *sarray; struct objlist *gobj; int gid; char *gfield; char *ginst,*device; _getobj(obj,"_GC",inst,&GC); _getobj(obj,"_list",inst,&sarray); _putobj(obj,"_list",inst,NULL); if (arraynum(sarray)!=0) { gobj=getobjlist(arraynget_str(sarray,0),&gid,&gfield,NULL); if (gobj!=NULL) { if ((ginst=getobjinstoid(gobj,gid))==NULL) return 0; if (GC!=-1) _exeobj(gobj,"close",ginst,0,NULL); if (!_getobj(gobj,"_device",ginst,&device)) { g_free(device); _putobj(gobj,"_device",ginst,NULL); } } } arrayfree2(sarray); return 0; } #endif /* COMPILE_UNUSED_FUNCTIONS */ static struct objtable gra2[] = { {"init",NVFUNC,NEXEC,gra2init,NULL,0}, {"done",NVFUNC,NEXEC,gra2done,NULL,0}, {"clear",NVFUNC,NREAD|NEXEC,gra2clear,"",0}, {"_list",NSARRAY,NREAD,NULL,NULL,0}, {"_GC",NINT,NREAD,NULL,NULL,0}, {"delete_gra",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"disconnect",NVFUNC,NREAD|NEXEC,NULL,"",0}, }; #define TBLNUM (sizeof(gra2) / sizeof(*gra2)) void * addgra2(void) /* addgra2() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,gra2,ERRNUM,gra2errorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/nhash.c0000644000175000017500000001644512241111703012710 00000000000000/* * $Id: nhash.c,v 1.16 2009-11-16 12:59:18 hito Exp $ */ #include #include #include #include #include "object.h" #include "nhash.h" #define HASH_SIZE 67 NHASH nhash_new(void) { struct nhash **hash; hash = g_malloc0(HASH_SIZE * sizeof(struct nhash *)); return hash; } static void free_hash_list(struct nhash *hash, int free_ptr) { struct nhash *l, *r; if (hash == NULL) return; l = hash->l; r = hash->r; g_free(hash->key); if (free_ptr) { g_free(hash->val.p); } g_free(hash); free_hash_list(l, free_ptr); free_hash_list(r, free_ptr); } void nhash_free(NHASH hash) { int i; for (i = 0; i < HASH_SIZE; i++) { free_hash_list(hash[i], 0); } g_free(hash); } void nhash_free_with_memfree_ptr(NHASH hash) { int i; for (i = 0; i < HASH_SIZE; i++) { free_hash_list(hash[i], 1); } g_free(hash); } void nhash_clear(NHASH hash) { int i; for (i = 0; i < HASH_SIZE; i++) { free_hash_list(hash[i], 0); } memset(hash, 0, HASH_SIZE * sizeof(struct nhash *)); } int nhash_hkey(const char *ptr) { unsigned int i, v; for (v = i = 0; ptr[i]; i++) { v += ptr[i]; } return v % HASH_SIZE; } static struct nhash * create_hash_with_hkey(NHASH hash, const char *key, int hkey) { int lr = 0; char *k; struct nhash *h, *ptr, *prev = NULL; if (key == NULL) return NULL; ptr = hash[hkey]; if (ptr == NULL) { h = g_malloc(sizeof(struct nhash)); if (h == NULL) return NULL; hash[hkey] = h; } else { while (ptr) { lr = strcmp(key, ptr->key); if (lr == 0) { return ptr; } else if (lr < 0) { prev = ptr; ptr = ptr->l; } else { prev = ptr; ptr = ptr->r; } } h = g_malloc(sizeof(struct nhash)); if (h == NULL) { return NULL; } } k = g_strdup(key); if (k == NULL) { g_free(h); return NULL; } if (prev) { if (lr < 0) { prev->l = h; } else { prev->r = h; } } h->key = k; h->l = NULL; h->r = NULL; h->p = prev; return h; } struct nhash * create_hash(NHASH hash, const char *key) { int hkey; if (key == NULL) return NULL; hkey = nhash_hkey(key); return create_hash_with_hkey(hash, key, hkey); } int nhash_set_int(NHASH hash, const char *key, int val) { struct nhash *h; h = create_hash(hash, key); if (h == NULL) return 1; h->val.i = val; return 0; } int nhash_set_ptr(NHASH hash, const char *key, void *val) { struct nhash *h; h = create_hash(hash, key); if (h == NULL) return 1; h->val.p = val; return 0; } int nhash_set_int_with_hkey(NHASH hash, const char *key, int hkey, int val) { struct nhash *h; h = create_hash_with_hkey(hash, key, hkey); if (h == NULL) return 1; h->val.i = val; return 0; } int nhash_set_ptr_with_hkey(NHASH hash, const char *key, int hkey, void *val) { struct nhash *h; h = create_hash_with_hkey(hash, key, hkey); if (h == NULL) return 1; h->val.p = val; return 0; } static struct nhash * nhash_get(NHASH hash, const char *key) { struct nhash *ptr; int hk, r; if (key == NULL) return NULL; hk = nhash_hkey(key); ptr = hash[hk]; while (ptr) { r = strcmp(key, ptr->key); if (r < 0) { ptr = ptr->l; } else if (r > 0) { ptr = ptr->r; } else { return ptr; } } return NULL; } static struct nhash * nhash_get_with_hkey(NHASH hash, const char *key, int hk) { struct nhash *ptr; int r; if (key == NULL) return NULL; ptr = hash[hk]; while (ptr) { r = strcmp(key, ptr->key); if (r < 0) { ptr = ptr->l; } else if (r > 0) { ptr = ptr->r; } else { return ptr; } } return NULL; } int nhash_get_int(NHASH hash, const char *key, int *val) { struct nhash *h; h = nhash_get(hash, key); if (h == NULL) return 1; *val = h->val.i; return 0; } int nhash_get_int_with_hkey(NHASH hash, const char *key, int hkey, int *val) { struct nhash *h; h = nhash_get_with_hkey(hash, key, hkey); if (h == NULL) return 1; *val = h->val.i; return 0; } static void btree_cat(struct nhash *dest, struct nhash *src) { struct nhash *h; int r; h = dest; while (1) { r = strcmp(h->key, src->key); if (r < 0) { if (h->l == NULL) { h->l = src; break; } h = h->l; } else if (r > 0) { if (h->r == NULL) { h->r = src; break; } h = h->r; } else { /* never reached */ break; } } src->p = h; } static void nhash_del_sub(NHASH hash, struct nhash *h, int hkey) { struct nhash *p; p = h->p; if (p == NULL) { if (h->l && h->r) { btree_cat(h->r, h->l); hash[hkey] = h->r; h->r->p = NULL; } else if (h->l) { hash[hkey] = h->l; h->l->p = NULL; } else if (h->r) { hash[hkey] = h->r; h->r->p = NULL; } else { hash[hkey] = NULL; } } else { if (h->l && h->r) { btree_cat(h->r, h->l); if (p->l == h) { p->l = h->r; } else { p->r = h->r; } h->r->p = p; } else if (h->l) { if (p->l == h) { p->l = h->l; } else { p->r = h->l; } h->l->p = p; } else if (h->r) { if (p->l == h) { p->l = h->r; } else { p->r = h->r; } h->r->p = p; } else { if (p->l == h) { p->l = NULL; } else { p->r = NULL; } } } g_free(h->key); g_free(h); } void nhash_del_with_hkey(NHASH hash, const char *key, int hkey) { struct nhash *h; h = nhash_get_with_hkey(hash, key, hkey); if (h) nhash_del_sub(hash, h, hkey); } void nhash_del(NHASH hash, const char *key) { struct nhash *h; int hkey; hkey = nhash_hkey(key); h = nhash_get_with_hkey(hash, key, hkey); if (h) nhash_del_sub(hash, h, hkey); } static int hash_each_sub(struct nhash *h, int(* func)(struct nhash *, void *), void *data) { if (h == NULL) return 0; if (h->l) hash_each_sub(h->l, func, data); if (h->r) hash_each_sub(h->r, func, data); return func(h, data); } int nhash_each(NHASH hash, int(* func)(struct nhash *, void *), void *data) { int i, r; if (func == NULL || hash == NULL) return 0; for (i = 0; i < HASH_SIZE; i++) { if (hash[i]) { r = hash_each_sub(hash[i], func, data); if (r) return r; } } return 0; } int nhash_get_ptr(NHASH hash, const char *key, void **ptr) { struct nhash *h; h = nhash_get(hash, key); if (h == NULL) { *ptr = NULL; return 1; } *ptr = h->val.p; return 0; } int nhash_get_ptr_with_hkey(NHASH hash, const char *key, int hkey, void **ptr) { struct nhash *h; h = nhash_get_with_hkey(hash, key, hkey); if (h == NULL) { *ptr = NULL; return 1; } *ptr = h->val.p; return 0; } static void print_hash(struct nhash *h) { if (h == NULL) return; printf("%s ", h->key); print_hash(h->l); print_hash(h->r); } void nhash_show(NHASH hash) { int i; for (i = 0; i < HASH_SIZE; i++) { printf("%2d: ", i); print_hash(hash[i]); printf("\n"); } } static void count_hash(struct nhash *h, int *n) { if (h == NULL) return; if (h->l) count_hash(h->l, n); if (h->r) count_hash(h->r, n); (*n)++; } int nhash_num(NHASH hash) { int i, n = 0; for (i = 0; i < HASH_SIZE; i++) { if (hash[i]) { count_hash(hash[i], &n); } } return n; } ngraph-gtk-6.06.13/src/ogra2fil.c0000644000175000017500000000760312241111703013310 00000000000000/* * $Id: ogra2fil.c,v 1.6 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include "object.h" #include "ioutil.h" #define NAME "gra2file" #define PARENT "gra2" #define OVERSION "1.00.00" #define ERRFOPEN 100 static char *gra2ferrorlist[]={ "I/O error: open file" }; #define ERRNUM (sizeof(gra2ferrorlist) / sizeof(*gra2ferrorlist)) struct gra2flocal { FILE *fil; }; static int gra2finit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct gra2flocal *gra2flocal; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; if ((gra2flocal=g_malloc(sizeof(struct gra2flocal)))==NULL) goto errexit; if (_putobj(obj,"_local",inst,gra2flocal)) goto errexit; gra2flocal->fil=NULL; return 0; errexit: g_free(gra2flocal); return 1; } static int gra2fdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct gra2flocal *gra2flocal; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"_local",inst,&gra2flocal); if (gra2flocal->fil!=NULL) fclose(gra2flocal->fil); return 0; } static int gra2f_output(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct gra2flocal *gra2flocal; struct objlist *sys; char code; int *cpar; int i; char *cstr; char *fname,*graf,*sname,*sver; gra2flocal=(struct gra2flocal *)argv[2]; code=*(char *)(argv[3]); cpar=(int *)argv[4]; cstr=argv[5]; if (code=='I') { if (gra2flocal->fil!=NULL) fclose(gra2flocal->fil); gra2flocal->fil=NULL; _getobj(obj,"file",inst,&fname); if (fname==NULL) return 1; if ((gra2flocal->fil=nfopen(fname,"wt"))==NULL) { error2(obj,ERRFOPEN,fname); return 1; } if ((sys=getobject("system"))==NULL) return 1; if (getobj(sys,"name",0,0,NULL,&sname)) return 1; if (getobj(sys,"version",0,0,NULL,&sver)) return 1; if (getobj(sys,"GRAF",0,0,NULL,&graf)) return 1; fprintf(gra2flocal->fil,"%s\n",graf); fprintf(gra2flocal->fil,"%%Creator: %s ver %s\n",sname,sver); } if (gra2flocal->fil!=NULL) { fputc(code,gra2flocal->fil); if (cpar[0]==-1) { for (i=0;cstr[i]!='\0';i++) fputc(cstr[i],gra2flocal->fil); } else { fprintf(gra2flocal->fil,",%d",cpar[0]); for (i=1;i<=cpar[0];i++) fprintf(gra2flocal->fil,",%d",cpar[i]); } fputc('\n',gra2flocal->fil); if (code=='E') { fclose(gra2flocal->fil); gra2flocal->fil=NULL; } } return 0; } static struct objtable gra2f[] = { {"init",NVFUNC,NEXEC,gra2finit,NULL,0}, {"done",NVFUNC,NEXEC,gra2fdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"file",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"_local",NPOINTER,0,NULL,NULL,0}, {"_output",NVFUNC,0,gra2f_output,NULL,0}, }; #define TBLNUM (sizeof(gra2f) / sizeof(*gra2f)) void * addgra2file(void) /* addgra2file() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,gra2f,ERRNUM,gra2ferrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/gra.h0000644000175000017500000001415012241111706012357 00000000000000/* * $Id: gra.h,v 1.5 2010-01-04 05:11:28 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "object.h" #ifndef GRA_HEADER #define GRA_HEADER #define EXPAND_DOTTED_LINE 0 #define CURVE_OBJ_USE_EXPAND_BUFFER 1 struct greektbltype { unsigned int jis,symbol; }; extern struct greektbltype greektable[]; struct GRAbbox { int set; int offsetx; int offsety; int minx; int miny; int maxx; int maxy; int posx; int posy; int pt; int spc; int dir; int linew; int clip; int clipsizex; int clipsizey; char *fontalias; int font_style; int loadfont; }; typedef int (*clipfunc)(double *x0,double *y0,double *x1,double *y1, void *local); typedef void (*transfunc)(double x0,double y0,int *x1,int *y1,void *local); typedef void (*diffunc)(double d,double c[], double *dx,double *dy,double *ddx,double *ddy, void *local); typedef void (*intpfunc)(double d,double c[], double x0,double y0,double *x,double *y,void *local); typedef int (*directfunc)(char code,int *cpar,char *cstr,void *local); struct cmatchtype { double x0,y0; int minx,miny,maxx,maxy; int pointx,pointy; int err; clipfunc gclipf; transfunc gtransf; diffunc gdiff; intpfunc gintpf; void *gflocal; int bbox,bboxset; int match; }; enum GRA_FONT_STYLE { GRA_FONT_STYLE_NORMAL = 0, GRA_FONT_STYLE_BOLD = 1, GRA_FONT_STYLE_ITALIC = 2, }; enum GRA_LINE_CAP { GRA_LINE_CAP_BUTT = 0, GRA_LINE_CAP_ROUND = 1, GRA_LINE_CAP_PROJECTING = 2, }; enum GRA_LINE_JOIN { GRA_LINE_JOIN_MITER = 0, GRA_LINE_JOIN_ROUND = 1, GRA_LINE_JOIN_BEVEL = 2, }; enum GRA_FILL_MODE { GRA_FILL_MODE_NONE = 0, GRA_FILL_MODE_EVEN_ODD = 1, GRA_FILL_MODE_WINDING = 2, }; extern struct greektbltype greektable[48]; int _GRAopencallback(directfunc direct,struct narray **list,void *local); int _GRAopen(char *objname,char *outputname, struct objlist *obj,N_VALUE *inst, int output, int strwidth,int charascent,int chardescent, struct narray **list,void *local); int GRAopen(char *objname,char *outputname, struct objlist *obj,N_VALUE *inst, int output, int strwidth,int charascent,int chardescent, struct narray **list,void *local); int GRAreopen(int GC); int GRAopened(int GC); void _GRAclose(int GC); void GRAclose(int GC); void _GRAredraw(int GC,int snum,char **sdata,int setredrawf,int redrawf, int addn,struct objlist *obj,N_VALUE *inst,char *field); void GRAredraw(struct objlist *obj,N_VALUE *inst,int setredrawf,int redrawf); void GRAaddlist(int GC,struct objlist *obj,N_VALUE *inst, char *objname,char *field); void GRAinslist(int GC,struct objlist *obj,N_VALUE *inst, char *objname,char *field,int n); void GRAdellist(int GC,int n); struct objlist *GRAgetlist(int GC,int *oid,char **field,int n); int GRAdraw(int GC,char code,int *cpar,char *cstr); int GRAinit(int GC,int leftm,int topm,int width,int height,int zoom); void GRAregion(int GC,int *width,int *height,int *zoom); int GRAend(int GC); void GRAview(int GC,int x1,int y1,int x2,int y2,int clip); void GRAwindow(int GC,double minx,double miny,double maxx,double maxy); void GRAlinestyle(int GC,int num,int *type, int width,enum GRA_LINE_CAP cap,enum GRA_LINE_JOIN join,int miter); void GRAcolor(int GC, int fr, int fg, int fb, int fa); void GRAmoveto(int GC,int x,int y); void GRAline(int GC,int x0,int y0,int x1,int y1); void GRAlineto(int GC,int x,int y); void GRAcircle(int GC,int x,int y,int rx,int ry,int cs,int ce,int fil); void GRArectangle(int GC,int x0,int y0,int x1,int y1,int fil); void GRAdrawpoly(int GC,int num,int *point,enum GRA_FILL_MODE fil); void GRAlines(int GC,int num,int *point); void GRAmark(int GC,int type,int x0,int y0,int size, int fr,int fg,int fb, int fa, int br,int bg,int bb, int ba); void GRAdrawtext(int GC,char *s,char *font, int style, int size, int space, int dir, int scriptsize); void GRAdrawtextraw(int GC,char *s,char *font, int style, int size,int space,int dir); void GRAtextextent(char *s,char *font, int style, int size,int space,int scriptsize, int *gx0,int *gy0,int *gx1,int *gy1,int raw); void GRAtextextentraw(char *s,char *font, int style, int size,int space,int *gx0,int *gy0,int *gx1,int *gy1); int GRAinput(int GC,char *s,int leftm,int topm,int rate); int GRAinputold(int GC,char *s,int leftm,int topm,int rate); void GRAcurvefirst(int GC,int num,int *dashlist, clipfunc clipf,transfunc transf,diffunc diff,intpfunc intpf,void *local, double x0,double y0); int GRAcurve(int GC,double c[],double x0,double y0); void GRAdashmovetod(int GC,double x1,double y1); void GRAdashlinetod(int GC,double x1,double y1); void GRAcmatchfirst(int pointx,int pointy,int err, clipfunc clipf,transfunc transf,diffunc diff,intpfunc intpf,void *local, struct cmatchtype *data,int bbox,double x0,double y0); int GRAcmatch(double c[],double x0,double y0,struct cmatchtype *data); void GRAinitbbox(struct GRAbbox *bbox); void GRAendbbox(struct GRAbbox *bbox); int GRAboundingbox(char code,int *cpar,char *cstr,void *local); void GRAtextstyle(int GC,char *font,int style, int size,int space,int dir); void GRAouttext(int GC,char *s); #endif ngraph-gtk-6.06.13/src/Makefile.am0000644000175000017500000000226112241111703013466 00000000000000SUBDIRS = gtk math noinst_LTLIBRARIES = libngraph.la libngraph_la_SOURCES = axis.c axis.h nconfig.c nconfig.h gra.c gra.h \ ioutil.c ioutil.h mathcode.c mathcode.h mathfn.c mathfn.h \ nstring.c nstring.h ntime.c ntime.h oagrid.c oarc.c oarc.h \ oaxis.c object.c object.h odarray.c odouble.c odraw.c odraw.h \ ofile.c ofile.h ofit.c ofit.h ogra.c ogra.h ogra2.c \ ogra2fil.c ogra2nul.c ogra2prn.c oiarray.c oiarray.h oint.c \ olegend.c olegend.h omark.c omath.c omerge.c oprm.c orect.c \ oroot.c oroot.h osarray.c oshell.c oregexp.c ostring.c \ osystem.c otext.c otext.h opath.c opath.h shell.c shell.h \ shellcm.c shellcm.h shellux.c shellux.h spline.c spline.h \ common.h nhash.h nhash.c strconv.c strconv.h oio.c oplugin.c \ gettext.h ngraph_export.map libngraph_la_CFLAGS = $(GTK_CFLAGS) $(GSL_CFLAGS) -I.. -DCCNAME='"'$(CC)'"' libngraph_la_LIBADD = gtk/libngraphui.la math/libmath.la $(M_LIBS) $(READLINE_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(GSL_LIBS) bin_PROGRAMS = ngraph ngraph_SOURCES = ngraph_LDADD = libngraph.la ngraph_LDFLAGS = $(RDYNAMIC) $(VER_SCRIPT) pkglibexec_PROGRAMS = terminal terminal_SOURCES = terminal.c terminal_CFLAGS = $(GTK_CFLAGS) include_HEADERS = ngraph.h ngraph-gtk-6.06.13/src/mathfn.c0000644000175000017500000001070012241111703013050 00000000000000/* * $Id: mathfn.c,v 1.9 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include "mathfn.h" int compare_double(double x, double y) { if (x) { return fabs(x - y) <= fabs(DBL_EPSILON * x); } else { return fabs(x - y) <= fabs(DBL_EPSILON * y); } } double cutdown(double x) { if (x>=0) return (int )x; else if ((x-(int )x)==0.0) return (int )x; else return (int )(x-1); } double nraise(double x) { if (x<0) return (int )x; else if ((x-(int )x)==0.0) return (int )x; else return (int )(x+1); } int nround(double x) { int ix; double dx; if (x>G_MAXINT) return G_MAXINT; else if (x=0.5) return ix+1; else if (dx<=-0.5) return ix-1; else return ix; } } static int matinv(int dim,matrix m,matrix mi) { int i,j,k; double max; int pivot; vector vec; for (i=0;imax) { pivot=j; max=fabs(m[j][i]); } } if (max<=1E-300) return -1; for (k=0;k=0;j--) mi[i][j]=mi[i][j]/m[i][i]; for (j=dim-1;j>=i;j--) m[i][j]=m[i][j]/m[i][i]; for (j=0;j=0;k--) mi[j][k]=mi[j][k]-m[j][i]*mi[i][k]; for (j=0;j=0;k--) m[j][k]=m[j][k]-m[j][i]*m[i][k]; } return 0; } int matsolv(int dim,matrix a,vector b,vector x) { matrix ai; int i,j; double d; if (matinv(dim,a,ai)) return -1; for (i=0;i= h) { th = tan(2 * MPI * h); *R = b * 255; *B = b * s * 255; *G = b * (2 * th - s * (th - s3)) / (th + s3) * 255; } else if (2.0 / 6.0 >= h) { th = tan(2 * MPI * (h - 1.0 / 3.0)); *G = b * 255; *B = b * s * 255; *R = b * (2 * th - s * (th + s3)) / (th - s3) * 255; } else if (3.0 / 6.0 >= h) { th = tan(2 * MPI * (h - 1.0 / 3.0)); *G = b * 255; *R = b * s * 255; *B = b * (2 * th - s * (th - s3)) / (th + s3) * 255; } else if (4.0 / 6.0 >= h) { th = tan(2 * MPI * (h - 2.0 / 3.0)); *B = b * 255; *R = b * s * 255; *G = b * (2 * th - s * (th + s3)) / (th - s3) * 255; } else if (5.0 / 6.0 >= h) { th = tan(2 * MPI * (h - 2.0 / 3.0)); *B = b * 255; *G = b * s * 255; *R = b * (2 * th - s * (th - s3)) / (th + s3) * 255; } else { th = tan(2 * MPI * h); *R = b * 255; *G = b * s * 255; *B = b * (2 * th - s * (th + s3)) / (th - s3) * 255; } } int bsearch_int(int *ary, int n, int val, int *idx) { int min, max, i; if (n == 0 || ary == NULL) { if (idx) { *idx = 0; } return FALSE; } min = 0; max = n - 1; while (1) { i = (min + max) / 2; if (ary[i] == val) { if (idx) { *idx = i; } return TRUE; } if (min >= max) { if (idx) { if (ary[i] < val) { i++; } *idx = i; } return FALSE; } if (ary[i] < val) { min = i + 1; } else { max = i - 1; } } return FALSE; } ngraph-gtk-6.06.13/src/oagrid.c0000644000175000017500000002600012241111703013040 00000000000000/* * $Id: oagrid.c,v 1.20 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include "common.h" #include "object.h" #include "mathfn.h" #include "gra.h" #include "axis.h" #include "oroot.h" #include "odraw.h" #define NAME "axisgrid" #define PARENT "draw" #define OVERSION "1.00.00" #define ERRNOAXISINST 100 #define ERRMINMAX 101 #define ERRAXISDIR 102 static char *agriderrorlist[]={ "no instance for axis", "illegal axis min/max.", "illegal axis direction.", }; #define ERRNUM (sizeof(agriderrorlist) / sizeof(*agriderrorlist)) static int agridinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int wid1,wid2,wid3,dot,grid; int r,g,b,br,bg,bb,ba; struct narray *style1; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; wid1=5; wid2=10; wid3=20; r=0; g=255; b=255; br=255; bg=255; bb=255; ba=255; style1=arraynew(sizeof(int)); dot=150; grid=TRUE; arrayadd(style1,&dot); arrayadd(style1,&dot); if (_putobj(obj,"width1",inst,&wid1)) return 1; if (_putobj(obj,"width2",inst,&wid2)) return 1; if (_putobj(obj,"width3",inst,&wid3)) return 1; if (_putobj(obj,"style1",inst,style1)) return 1; if (_putobj(obj,"R",inst,&r)) return 1; if (_putobj(obj,"G",inst,&g)) return 1; if (_putobj(obj,"B",inst,&b)) return 1; if (_putobj(obj,"BR",inst,&br)) return 1; if (_putobj(obj,"BG",inst,&bg)) return 1; if (_putobj(obj,"BB",inst,&bb)) return 1; if (_putobj(obj,"BA",inst,&ba)) return 1; if (_putobj(obj,"grid_x",inst,&grid)) return 1; if (_putobj(obj,"grid_y",inst,&grid)) return 1; return 0; } static int agriddone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } struct axis_prm { int type, div; double amin, amax, inc; double min, max; }; struct axis_pos { int dir, len, x, y; double len_x, len_y; }; #define GRID_PRM_NUM 3 struct grid_prm { int wid[GRID_PRM_NUM]; int snum[GRID_PRM_NUM]; int *sdata[GRID_PRM_NUM]; }; static int calc_intersection(int x1, int y1, int dir1, int x2, int y2, int dir2, int *ix, int *iy) { double x, y, a, b; if (dir1 == dir2 || dir1 - dir2 == 18000 || dir1 - dir2 == -18000) return 1; if (x1 == x2 && y1 == y2) { *ix = x1; *iy = y1; return 0; } dir1 = -dir1; dir2 = -dir2; if (dir1 == -9000 || dir1 == -27000) { x = x1; b = tan(dir2 / 18000.0 * MPI); y = y2 + b * (x1 - x2); } else if (dir2 == -9000 || dir2 == -27000) { x = x2; a = tan(dir1 / 18000.0 * MPI); y = y1 + a * (x2 - x1); } else { a = tan(dir1 / 18000.0 * MPI); b = tan(dir2 / 18000.0 * MPI); x = (y2 - y1 + a * x1 - b * x2) / (a - b); y = y1 + a * (x - x1); } if (dir1 == 0 || dir1 == -18000) { y = y1; } else if (dir2 == 0 || dir2 == -18000) { y = y2; } *ix = nround(x); *iy = nround(y); return 0; } static int get_grid_prm(struct objlist *obj, char *axisy, struct axis_prm *prm, struct axis_pos *pos) { struct narray iarray; int anum, id; N_VALUE *inst1; char *raxis; struct objlist *aobj; if (axisy == NULL) { return -1; } arrayinit(&iarray, sizeof(int)); if (getobjilist(axisy, &aobj, &iarray, FALSE, NULL)) return 1; anum = arraynum(&iarray); if (anum < 1) { arraydel(&iarray); error2(obj, ERRNOAXISINST, axisy); return 1; } id = arraylast_int(&iarray); arraydel(&iarray); if ((inst1 = getobjinst(aobj, id)) == NULL) return 1; if (_getobj(aobj, "x", inst1, &pos->x)) return 1; if (_getobj(aobj, "y", inst1, &pos->y)) return 1; if (_getobj(aobj, "length", inst1, &pos->len)) return 1; if (_getobj(aobj, "direction", inst1, &pos->dir)) return 1; if (_getobj(aobj, "min", inst1, &prm->amin)) return 1; if (_getobj(aobj, "max", inst1, &prm->amax)) return 1; if (_getobj(aobj, "inc", inst1, &prm->inc)) return 1; if (_getobj(aobj, "div", inst1, &prm->div)) return 1; if (_getobj(aobj, "type", inst1, &prm->type)) return 1; if ((prm->amin == 0) && (prm->amax == 0) && (prm->inc == 0)) { if (_getobj(aobj, "reference", inst1, &raxis)) return 1; if (raxis) { arrayinit(&iarray, sizeof(int)); if (!getobjilist(raxis, &aobj, &iarray, FALSE, NULL)) { anum = arraynum(&iarray); if (anum > 0) { id = arraylast_int(&iarray); arraydel(&iarray); if (anum > 0 && (inst1 = getobjinst(aobj, id))) { _getobj(aobj, "min", inst1, &prm->amin); _getobj(aobj, "max", inst1, &prm->amax); _getobj(aobj, "inc", inst1, &prm->inc); _getobj(aobj, "div", inst1, &prm->div); _getobj(aobj, "type", inst1, &prm->type); } } } } } pos->dir %= 36000; if (pos->dir < 0) pos->dir += 36000; pos->len_x = pos->len * cos(pos->dir / 18000.0 * MPI); pos->len_y = pos->len * sin(pos->dir / 18000.0 * MPI); if (prm->amin == prm->amax) return 0; switch (prm->type) { case 1: prm->min = log10(prm->amin); prm->max = log10(prm->amax); break; case 2: prm->min = 1 / prm->amin; prm->max = 1 / prm->amax; break; default: prm->min = prm->amin; prm->max = prm->amax; } return 0; } static int draw_grid_line(struct objlist *obj, int GC, struct axis_prm *a1_prm, struct axis_pos *a1_pos, struct axis_pos *a2_pos, struct grid_prm *gprm) { int r, rcode, snum, wid, *sdata; double po; int x0, y0, x, y; struct axislocal alocal; if (getaxispositionini(&alocal, a1_prm->type, a1_prm->amin, a1_prm->amax, a1_prm->inc, a1_prm->div, TRUE)) { error(obj, ERRMINMAX); return 1; } r = calc_intersection(a1_pos->x, a1_pos->y, a2_pos->dir, a2_pos->x, a2_pos->y, a1_pos->dir, &x, &y); if (r) { error(obj, ERRAXISDIR); return 1; } while ((rcode = getaxisposition(&alocal, &po)) != -2) { switch (rcode) { case 1: case 2: case 3: snum = gprm->snum[rcode - 1]; sdata = gprm->sdata[rcode - 1]; wid = gprm->wid[rcode - 1]; break; default: wid = 0; } if (wid == 0) continue; GRAlinestyle(GC, snum, sdata, wid, GRA_LINE_CAP_BUTT, GRA_LINE_JOIN_MITER, 1000); x0 = x + (po - a1_prm->min) * a1_pos->len_x / (a1_prm->max - a1_prm->min); y0 = y - (po - a1_prm->min) * a1_pos->len_y / (a1_prm->max - a1_prm->min); GRAline(GC, x0, y0, x0 + a2_pos->len_x, y0 - a2_pos->len_y); } return 0; } static int draw_background(struct objlist *obj, N_VALUE *inst, int GC, struct axis_pos *ax, struct axis_pos *ay) { int r, br, bg, bb, ba, pos[8]; _getobj(obj, "BR", inst, &br); _getobj(obj, "BG", inst, &bg); _getobj(obj, "BB", inst, &bb); _getobj(obj, "BA", inst, &ba); GRAcolor(GC, br, bg, bb, ba); r = calc_intersection(ax->x, ax->y, ay->dir, ay->x, ay->y, ax->dir, pos + 0, pos + 1); if (r) return 1; pos[2] = pos[0] + ax->len_x; pos[3] = pos[1] - ax->len_y; pos[4] = pos[2] + ay->len_x; pos[5] = pos[3] - ay->len_y; pos[6] = pos[0] + ay->len_x; pos[7] = pos[1] - ay->len_y; GRAdrawpoly(GC, 4, pos, GRA_FILL_MODE_EVEN_ODD); return 0; } static int agriddraw(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int GC, clip, zoom, back; int i, fr, fg, fb, fa, w, h, r, grid_x, grid_y; char *axisx, *axisy; struct axis_prm ax_prm, ay_prm; struct axis_pos ax_pos, ay_pos; struct grid_prm gprm; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; _getobj(obj, "GC", inst, &GC); if (GC < 0) return 0; _getobj(obj, "R", inst, &fr); _getobj(obj, "G", inst, &fg); _getobj(obj, "B", inst, &fb); _getobj(obj, "A", inst, &fa); _getobj(obj, "axis_x", inst, &axisx); _getobj(obj, "axis_y", inst, &axisy); _getobj(obj, "clip", inst, &clip); _getobj(obj, "background", inst, &back); _getobj(obj, "grid_x", inst, &grid_x); _getobj(obj, "grid_y", inst, &grid_y); for (i = 0; i < GRID_PRM_NUM; i++) { char buf[32]; struct narray *st; snprintf(buf, sizeof(buf), "width%d", i + 1); _getobj(obj, buf, inst, &gprm.wid[i]); snprintf(buf, sizeof(buf), "style%d", i + 1); _getobj(obj, buf, inst, &st); gprm.snum[i] = arraynum(st); gprm.sdata[i] = arraydata(st); } r = get_grid_prm(obj, axisx, &ax_prm, &ax_pos); if (r) { return (r > 0) ? 1 : 0; } r = get_grid_prm(obj, axisy, &ay_prm, &ay_pos); if (r) { return (r > 0) ? 1 : 0; } GRAregion(GC, &w, &h, &zoom); GRAview(GC, 0, 0, w * 10000.0 / zoom, h * 10000.0 / zoom, clip); if (back && draw_background(obj, inst, GC, &ax_pos, &ay_pos)) { error(obj, ERRAXISDIR); return 1; } if (ax_prm.amin != ax_prm.amax && ay_prm.amin != ay_prm.amax) { GRAcolor(GC, fr, fg, fb, fa); if (grid_x && draw_grid_line(obj, GC, &ax_prm, &ax_pos, &ay_pos, &gprm)) { goto error_exit; } if (grid_y && draw_grid_line(obj, GC, &ay_prm, &ay_pos, &ax_pos, &gprm)) { goto error_exit; } } GRAaddlist(GC, obj, inst, (char *) argv[0], (char *) argv[1]); error_exit: return 0; } static int agridtight(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { obj_do_tighten(obj, inst, "axis_x"); obj_do_tighten(obj, inst, "axis_y"); return 0; } static struct objtable agrid[] = { {"init",NVFUNC,NEXEC,agridinit,NULL,0}, {"done",NVFUNC,NEXEC,agriddone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"axis_x",NOBJ,NREAD|NWRITE,NULL,NULL,0}, {"axis_y",NOBJ,NREAD|NWRITE,NULL,NULL,0}, {"grid_x",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"grid_y",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"width1",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"style1",NIARRAY,NREAD|NWRITE,NULL,NULL,0}, {"width2",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"style2",NIARRAY,NREAD|NWRITE,NULL,NULL,0}, {"width3",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"style3",NIARRAY,NREAD|NWRITE,NULL,NULL,0}, {"background",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"BR",NINT,NREAD|NWRITE,NULL,NULL,0}, {"BG",NINT,NREAD|NWRITE,NULL,NULL,0}, {"BB",NINT,NREAD|NWRITE,NULL,NULL,0}, {"BA",NINT,NREAD|NWRITE,NULL,NULL,0}, {"draw",NVFUNC,NREAD|NEXEC,agriddraw,"i",0}, {"tight",NVFUNC,NREAD|NEXEC,agridtight,"",0}, }; #define TBLNUM (sizeof(agrid) / sizeof(*agrid)) void * addagrid(void) { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,agrid,ERRNUM,agriderrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/mathcode.c0000644000175000017500000000021212241111706013357 00000000000000#include char *matherrorchar[]={ "noerr", "err", "nan", "undef", "syntax", "cont", "break", "nonum", "eof", NULL }; ngraph-gtk-6.06.13/src/terminal.c0000644000175000017500000000326412241111703013415 00000000000000#include "common.h" #include #include #ifdef HAVE_SYS_WAIT_H #include #endif #include #include #include #include #include #include #ifndef __MINGW32__ static void sig_handler(int sig) { } static void my_signal(int signum, void (* sighandler)) { struct sigaction act; act.sa_handler = sighandler; act.sa_flags = SA_RESTART; sigemptyset(&act.sa_mask); sigaction(signum, &act, NULL); } #endif int main(int argc,char **argv) { #ifndef __MINGW32__ int fdi, fdo, len; char *ptr, buf[256] = {0}; #ifdef HAVE_SIGSUSPEND sigset_t sig_mask; #endif if (argc < 3) { return 1; } if (! isatty(0) || ! isatty(1)) { return 1; } ptr = ttyname(0); if (ptr == NULL) { return 1; } fdo = open(argv[1], O_WRONLY); fdi = open(argv[2], O_RDONLY); while (1) { int n; n = read(fdi,buf,1); if (n != 1) { perror(""); break; } if (buf[0] == '\0') break; putchar(buf[0]); } close(fdi); len = strlen(ptr) + 1; if (write(fdo, ptr, len) < 0) { close(fdo); return 1; } len = snprintf(buf, sizeof(buf) - 1, "%d", getpid()) + 1; if (write(fdo, buf, len) < 0) { close(fdo); return 1; } close(fdo); close(fdi); my_signal(SIGTERM, sig_handler); #ifdef HAVE_SIGSUSPEND sigemptyset(&sig_mask); sigaddset(&sig_mask, SIGINT); #ifdef SIGWINCH sigaddset(&sig_mask, SIGWINCH); #endif sigsuspend(&sig_mask); #else /* HAVE_SIGSUSPEND */ my_signal(SIGINT, SIG_IGN); #ifdef SIGWINCH my_signal(SIGWINCH, SIG_IGN); #endif pause(); #endif /* HAVE_SIGSUSPEND */ #endif /* __MINGW32__ */ return 0; } ngraph-gtk-6.06.13/src/shellcm.c0000644000175000017500000007432112241111703013233 00000000000000/* * $Id: shellcm.c,v 1.29 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include #include #define USE_HASH 1 #include "object.h" #include "nstring.h" #include "ioutil.h" #include "mathfn.h" #include "shell.h" #include "shellcm.h" #include "math/math_equation.h" #define ERR 128 int cmcd(struct nshell *nshell,int argc,char **argv) { char *home; if (argv[1]!=NULL) { if (nchdir(argv[1])!=0) { sherror3(argv[0],ERRNODIR,argv[1]); return ERR; } } else { if ((home=getval(nshell,"HOME"))!=NULL) { if (nchdir(home)!=0) { sherror3(argv[0],ERRNODIR,home); return ERR; } } } return 0; } int cmecho(struct nshell *nshell,int argc,char **argv) { int i, nbr; nbr = (argc > 1 && strcmp(argv[1], "-n") == 0); for (i = (nbr) ? 2 : 1; i < argc; i++) { printfstdout("%s",argv[i]); if (i != (argc - 1)) printfstdout(" "); } if (! nbr) putstdout(""); return 0; } int cmbasename(struct nshell *nshell,int argc,char **argv) { int len, ext_len; char *bname; if (argc < 2) { return 1; } if (argv[1] == NULL) { return 1; } bname = getbasename(argv[1]); if (bname == NULL) { return 1; } if (argc == 2) { len = strlen(bname); } else { len = strlen(bname); ext_len = strlen(argv[2]); if (ext_len < len && strcmp(bname + len - ext_len, argv[2]) == 0) { bname[len - ext_len] = '\0'; } } putstdout(bname); g_free(bname); return 0; } int cmdirname(struct nshell *nshell,int argc,char **argv) { char *tmp; if (argc < 2) { return 1; } if (argv[1] == NULL) return 1; tmp = getdirname(argv[1]); putstdout(tmp); g_free(tmp); return 0; } int cmseq(struct nshell *nshell, int argc, char **argv) { int i, f, l; double x, first, last, inc; char *endptr; switch (argc) { case 0: case 1: sherror4(argv[0], ERRSMLARG); return ERR; case 2: f = 0; i = 0; l = 1; first = 1.0; inc = 1.0; break; case 3: f = 1; i = 0; l = 2; inc = 1.0; break; default: f = 1; i = 2; l = 3; break; } if (f) { errno = 0; first= strtod(argv[f], &endptr); if (errno || endptr == argv[f]) { sherror4(argv[0], ERRNUMERIC); return ERR; } } if (l) { errno = 0; last= strtod(argv[l], &endptr); if (errno || endptr == argv[l]) { sherror4(argv[0], ERRNUMERIC); return ERR; } } if (i) { errno = 0; inc= strtod(argv[i], &endptr); if (errno || endptr == argv[i]) { sherror4(argv[0], ERRNUMERIC); return ERR; } } for (x = first; (inc < 0) ? (x >= last) : (x <= last); x += inc) { printfstdout("%G\n", x); } return 0; } int cmeval(struct nshell *nshell,int argc,char **argv) { GString *s; int i,rcode; s = g_string_sized_new(128); if (s == NULL) { return ERR; } for (i = 1; i < argc; i++) { g_string_append(s, argv[i]); g_string_append_c(s, ' '); } rcode = cmdexecute(nshell, s->str); g_string_free(s, TRUE); if (rcode != 0 && rcode != 1) { return ERR; } return 0; } int cmexit(struct nshell *nshell,int argc,char **argv) { int a; char *endptr; if (argc>2) { sherror4(argv[0],ERREXTARG); return ERREXTARG; } else if (argc==2) { a=strtol(argv[1],&endptr,10); if (endptr[0]!='\0') { sherror3(argv[0],ERRNUMERIC,argv[1]); return ERRNUMERIC; } else { nshell->quit=TRUE; return a; } } else { nshell->quit=TRUE; return nshell->status; } } #if USE_HASH static int printexp(struct nhash *h, void *data) { printfstdout("%.256s\n", h->key); return 0; } #endif int cmexport(struct nshell *nshell,int argc,char **argv) { int i; #if USE_HASH if (argv[1] == NULL) { nhash_each(nshell->exproot, printexp, NULL); } else { for (i = 1; i < argc; i++) { if (addexp(nshell, argv[i]) == NULL) return ERR; } } return 0; #else struct explist *valcur; if (argv[1]==NULL) { valcur=nshell->exproot; while (valcur!=NULL) { printfstdout("%.256s\n",valcur->val); valcur=valcur->next; } return 0; } else { for (i=1;ival.p; if (!val->func) printfstdout("%.256s=%.256s\n", val->name, (char *)(val->val)); return 0; } static int print_func(struct nhash *h, void *data) { struct vallist *val; struct cmdlist *cmdcur; struct prmlist *prmcur; val = (struct vallist *) h->val.p; if (val->func) { printfstdout("%.256s=()\n", val->name); putstdout("{"); cmdcur = val->val; while (cmdcur) { prmcur = cmdcur->prm; printfstdout(" "); while (prmcur) { if (prmcur->str) printfstdout("%.256s ", prmcur->str); prmcur = prmcur->next; } printfstdout("\n"); cmdcur = cmdcur->next; } putstdout("}"); } return 0; } int cmset(struct nshell *nshell,int argc,char **argv) { #if USE_HASH char *s; int j, r, ops; if (argc < 2) { nhash_each(nshell->valroot, print_val, NULL); nhash_each(nshell->valroot, print_func, NULL); return 0; } for (j = 1; j < argc; j++) { s = argv[j]; if (s[0] == '-' && s[1] == '-' && s[2] == '\0') { j++; if (j == argc) { r = set_shell_args(nshell, j, nshell->argv[0], argc, argv); if (r) { r = ERR; } return r; } break; } else if (s[0] == '-' && s[1] == '\0') { nshell->optionv = FALSE; nshell->optionx = FALSE; j++; break; } else if (s[0] == '-' || s[0] == '+') { if (s[1] == '\0' || strchr("efvx", s[1]) == NULL) { sherror3(argv[0], ERRILOPS, s); return ERRILOPS; } } else { break; } } if (j != argc) { r = set_shell_args(nshell, j, nshell->argv[0], argc, argv); if (r) { return ERR; } } for (j = 1 ; j < argc; j++) { s = argv[j]; if (s[0] == '-') { ops=TRUE; } else if (s[0]=='+') { ops=FALSE; } else { break; } switch (s[1]) { case 'e': nshell->optione = ops; break; case 'f': nshell->optionf = ops; break; case 'v': nshell->optionv = ops; break; case 'x': nshell->optionx = ops; break; } } #else struct vallist *valcur; struct cmdlist *cmdcur; struct prmlist *prmcur; char *s; unsigned int n; int j,ops; char **argv2; int argc2; if (argc<2) { valcur=nshell->valroot; while (valcur!=NULL) { if (!valcur->func) printfstdout("%.256s=%.256s\n",valcur->name,(char *)(valcur->val)); valcur=valcur->next; } valcur=nshell->valroot; while (valcur!=NULL) { if (valcur->func) { printfstdout("%.256s=()\n",valcur->name); putstdout("{"); cmdcur=valcur->val; while (cmdcur!=NULL) { prmcur=cmdcur->prm; printfstdout(" "); while (prmcur!=NULL) { if (prmcur->str!=NULL) printfstdout("%.256s ",prmcur->str); prmcur=prmcur->next; } printfstdout("\n"); cmdcur=cmdcur->next; } putstdout("}"); } valcur=valcur->next; } } else { for (j=1;jargv)[0])+1))==NULL) return ERR; strcpy(s,(nshell->argv)[0]); if (arg_add(&argv2,s)==NULL) { g_free(s); arg_del(argv2); return ERR; } for (;jargv); nshell->argv=argv2; nshell->argc=argc2; } for (j=1;joptione=ops; break; case 'f': nshell->optionf=ops; break; case 'v': nshell->optionv=ops; break; case 'x': nshell->optionx=ops; break; } } } #endif return 0; } int cmshift(struct nshell *nshell,int argc,char **argv) { int i,a; char *arg,*endptr; if (argc>2) { sherror4(argv[0],ERREXTARG); return ERREXTARG; } else if (argc==2) { arg=argv[1]; a=strtol(arg,&endptr,10); if (endptr[0]!='\0') { sherror3(argv[0],ERRNUMERIC,arg); return ERRNUMERIC; } } else a=1; if (a<0) a=0; if ((a+1)>=nshell->argc) a=nshell->argc-1; for (i=a+1;iargc;i++) { g_free(nshell->argv[i-a]); nshell->argv[i-a]=nshell->argv[i]; nshell->argv[i]=NULL; } nshell->argc-=a; return 0; } int cmtype(struct nshell *nshell,int argc,char **argv) { struct prmlist *prm2; struct cmdlist *cmdcur; int i,j; char *cmdname; shell_proc proc; for (j=1;j= 0) { printfstdout("%.256s is a shell keyword.\n", argv[j]); } else if ((cmdcur=getfunc(nshell,argv[j]))!=NULL) { printfstdout("%.256s is a function.\n",argv[j]); printfstdout("%.256s=()\n",argv[j]); putstdout("{"); while (cmdcur!=NULL) { prm2=cmdcur->prm; printfstdout(" "); while (prm2!=NULL) { if (prm2->str!=NULL) printfstdout("%.256s ",prm2->str); prm2=prm2->next; } printfstdout("\n"); cmdcur=cmdcur->next; } putstdout("}"); } else if ((strcmp0(".",argv[j])==0) || (strcmp0("break",argv[j])==0) || (strcmp0("continue",argv[j])==0) || (strcmp0("return",argv[j])==0)) { printfstdout("%.256s is a shell built in.\n",argv[j]); } else { proc = check_cmd(argv[j]); if (proc) { printfstdout("%.256s is a shell built in.\n",argv[j]); } else { cmdname=nsearchpath(getval(nshell,"PATH"),argv[j],FALSE); if (cmdname==NULL) { sherror3(argv[0],ERRCFOUND,argv[j]); } else { printfstdout("%.256s is %.256s.\n",argv[j],cmdname); } g_free(cmdname); } } } return 0; } int cmunset(struct nshell *nshell,int argc,char **argv) { int i; for (i=1;iparent==parent) { for (i=1;i<*tab;i++) printfstdout("\t"); printfstdout("%.256s\n",objcur->name); objdisp(objcur,objcur,tab); } objcur=objcur->next; } (*tab)--; } static void dispfield(struct objlist *obj,char *name) { int j; enum ngraph_object_field_type ftype; char perm[4],type[10]; const char *alist; char **enumlist; ftype=chkobjfieldtype(obj,name); switch (ftype) { case NVOID: strcpy(type,"void"); break; case NBOOL: strcpy(type,"bool"); break; #if USE_NCHAR case NCHAR: strcpy(type,"char"); break; #endif case NINT: strcpy(type,"int"); break; case NDOUBLE: strcpy(type,"double"); break; case NSTR: strcpy(type,"char*"); break; case NPOINTER: strcpy(type,"void*"); break; case NIARRAY: strcpy(type,"int[]"); break; case NDARRAY: strcpy(type,"double[]"); break; case NSARRAY: strcpy(type,"char*[]"); break; case NENUM: strcpy(type,"enum("); break; case NOBJ: strcpy(type,"obj"); break; #if USE_NLABEL case NLABEL: strcpy(type,"label"); break; #endif case NVFUNC: strcpy(type,"void("); break; case NBFUNC: strcpy(type,"bool("); break; #if USE_NCHAR case NCFUNC: strcpy(type,"char("); break; #endif case NIFUNC: strcpy(type,"int("); break; case NDFUNC: strcpy(type,"double("); break; case NSFUNC: strcpy(type,"char*("); break; case NIAFUNC: strcpy(type,"int[]("); break; case NDAFUNC: strcpy(type,"double[]("); break; case NSAFUNC: strcpy(type,"char*[]("); break; default: strcpy(type,"unknown"); break; } if (chkobjperm(obj,name) & NREAD) perm[0]='r'; else perm[0]='-'; if (chkobjperm(obj,name) & NWRITE) perm[1]='w'; else perm[1]='-'; if (chkobjperm(obj,name) & NEXEC) perm[2]='x'; else perm[2]='-'; perm[3]='\0'; printfstdout("%3s %16.256s %.256s", (char *)perm,(char *)name,(char *)type); if (ftype>=NVFUNC) { if ((alist=chkobjarglist(obj,name))!=NULL) { if (alist[0]=='\0') printfstdout(" void"); else for (j=0;alist[j]!='\0';j++) { switch (alist[j]) { case 'b': printfstdout(" bool"); break; #if USE_NCHAR case 'c': printfstdout(" char"); break; #endif case 'i': printfstdout(" int"); break; case 'd': printfstdout(" double"); break; case 's': printfstdout(" char*"); break; case 'p': printfstdout(" void*"); break; case 'o': printfstdout(" obj"); break; } if (alist[j+1]=='a') { printfstdout("[]"); j++; } } } printfstdout(" )"); } else if (ftype==NENUM) { if ((enumlist=(char **)chkobjarglist(obj,name))!=NULL) { for (j=0;enumlist[j] && enumlist[j][0];j++) printfstdout(" %s",enumlist[j]); printfstdout(" )"); } } printfstdout("\n"); } int cmobject(struct nshell *nshell,int argc,char **argv) { struct objlist *obj; int i,j,tab; char *name; if (argc<2) { tab=0; objdisp(chkobjroot(),NULL,&tab); return 0; } else { if ((obj=getobject(argv[1]))==NULL) return ERR; } if (argc==2) { printfstdout("object: %.256s\n",chkobjectname(obj)); if (chkobjectalias(obj)!=NULL) printfstdout("alias: %.256s\n",chkobjectalias(obj)); else printfstdout("alias:\n"); printfstdout("version: %.256s\n",chkobjver(obj)); if (chkobjparent(obj)!=NULL) printfstdout("parent: %.256s\n",chkobjectname(chkobjparent(obj))); else printfstdout("parent: (null)\n"); printfstdout("object id: %d\n",chkobjectid(obj)); printfstdout("number of fields: %d\n",chkobjfieldnum(obj)); printfstdout("size of instance: %d\n",chkobjsize(obj)); printfstdout("current instance: %d\n",chkobjcurinst(obj)); printfstdout("last instance id: %d\n",chkobjlastinst(obj)); for (i=0;inext; } } int cmderive(struct nshell *nshell,int argc,char **argv) { struct objlist *obj; int i,noinst; noinst=FALSE; for (i=1;i2) { sherror4(argv[0],ERRMANYARG); return ERRMANYARG; } arrayinit(&iarray,sizeof(int)); if (getobjilist(argv[1],&obj,&iarray,TRUE,NULL)) return ERR; anum=arraynum(&iarray); if (anum==0) { sherror4(argv[0],ERRNONEINST); arraydel(&iarray); return ERRNONEINST; } adata=arraydata(&iarray); for (i=0;i3) { sherror4(argv[0],ERRMANYARG); return ERRMANYARG; } else { objname = argv[1]; } arrayinit(&iarray,sizeof(int)); if (chkobjilist(objname,&obj,&iarray,TRUE,NULL)) anum=0; else { anum=arraynum(&iarray); arraydel(&iarray); } if (! quiet) printfstdout("%d\n",anum); if (anum==0) return ERRNONEINST; return 0; } int cmget(struct nshell*nshell,int argc,char **argv) { struct objlist *obj; struct narray iarray; char *field,*valstr; int i,j,k,l,id,anum,len,*adata; int nowrite,nofield,noid,quote,perm,multi; if (argc<2) { sherror4(argv[0],ERROBJARG); return ERROBJARG; } arrayinit(&iarray,sizeof(int)); if (getobjilist(argv[1],&obj,&iarray,TRUE,NULL)) return ERR; anum=arraynum(&iarray); adata=arraydata(&iarray); if (anum==0) { sherror4(argv[0],ERRNONEINST); arraydel(&iarray); return ERRNONEINST; } nowrite=FALSE; nofield=FALSE; noid=FALSE; quote=FALSE; for (j=2;j2) { sherror4(argv[0],ERRMANYARG); return ERRMANYARG; } arrayinit(&iarray,sizeof(int)); if (getobjilist(argv[1],&obj,&iarray,TRUE,NULL)) return ERR; anum=arraynum(&iarray); adata=arraydata(&iarray); if (anum!=2) { sherror4(argv[0],ERRTWOINST); arraydel(&iarray); return ERRTWOINST; } id1=adata[0]; id2=adata[1]; arraydel(&iarray); if (strcmp0(argv[0],"move")==0) { if (moveobj(obj,id2,id1)==-1) return ERR; } else if (strcmp0(argv[0],"exch")==0) { if (exchobj(obj,id2,id1)==-1) return ERR; } return 0; } int cmmovetop(struct nshell*nshell,int argc,char **argv) { struct objlist *obj; struct narray iarray; int i,anum,top,rcode,*adata; if (argc<2) { sherror4(argv[0],ERROBJARG); return ERROBJARG; } else if (argc>2) { sherror4(argv[0],ERRMANYARG); return ERRMANYARG; } arrayinit(&iarray,sizeof(int)); if (getobjilist(argv[1],&obj,&iarray,TRUE,NULL)) return ERR; anum=arraynum(&iarray); adata=arraydata(&iarray); if (strcmp0(argv[0],"movetop")==0) top=0; else if (strcmp0(argv[0],"moveup")==0) top=1; else if (strcmp0(argv[0],"movedown")==0) top=2; else top=3; for (i=0;istr, &vd, &rcode, &err_msg); g_string_free(s, TRUE); if (ecode) { if (err_msg) { printfstderr("shell: %s\n", err_msg); g_free(err_msg); } else { sherror4(argv[0],ecode); } return ecode; } if (rcode == MATH_VALUE_NAN) { putstdout("nan"); return ERR; } else if (rcode == MATH_VALUE_UNDEF) { putstdout("undefined"); return ERR; } if (argv[0][0] == 'd') { printfstdout("%.15e\n", vd); } else { printfstdout("%.0f\n", round(vd)); } return 0; } int cmread(struct nshell *nshell,int argc,char **argv) { int c,i,len; char *po,*s2,*ifs; GString *s; s = g_string_sized_new(64); if (s == NULL) { return ERR; } while (TRUE) { c = getstdin(); if (c == '\n' || c == EOF) { break; } g_string_append_c(s, c); } if (argc == 1) { addval(nshell, "REPLY", s->str); } else { po = s->str; ifs = getval(nshell, "IFS"); for (i = 1; i < argc; i++) { s2 = getitok2(&po, &len, ifs); if (s2) { addval(nshell, argv[i], s2); g_free(s2); } else { addval(nshell, argv[i], ""); } } } g_string_free(s, TRUE); return (c == EOF) ? ERR : 0; } int cmwhich(struct nshell*nshell,int argc,char **argv) { int i, r, start, quiet; char *path; if (strcmp0(argv[1], "-q")) { start = 1; quiet = FALSE; } else { start = 2; quiet = TRUE; } if (argc < 1 + start) { sherror4(argv[0], ERRSMLARG); return ERRSMLARG; } r = 0; for (i = start; i < argc; i++) { if (check_cmd(argv[i])) { if (! quiet) { printfstdout("%s: shell built-in command\n", argv[i]); } } else { path = g_find_program_in_path(argv[i]); if (path == NULL) { r = 1; } else { if (! quiet) { putstdout(path); } g_free(path); } } } return r; } ngraph-gtk-6.06.13/src/shell.c0000644000175000017500000032333112241111703012711 00000000000000/* * $Id: shell.c,v 1.41 2010-04-01 06:08:23 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ /* * SYNTAX: * * name1=val1 name2=val2 ... command arg1 arg2 arg3 ... * * # comment * * keyword * for name [in word] do list done * case word in [patterm [|pattern] ...list;;] ... esac * if list then list [elif list then list]...[else list] fi * while list do list done * until list do list done * name() { list; } * { } is needed * * command replacement * `command` * * parameter replacement * name=value [ name=value ] ... * $# $? $num $* $@ * ${parameter} * ${parameter:-word} * ${parameter:=word} * ${parameter:?word} * ${parameter:+word} * ${parameter#word} * ${parameter##word} * ${parameter%word} * ${parameter%%word} * * object replacement * object:namelist:field=value * ${object:namelist:field=argument} * * input & output * < file * << word * > file * >> file * * special command * : * .file * break [n] * continue [n] * cd * echo * eval [arg] * exit [n] * export [name] * pwd * quit * read name ... * return [n] * set * shift [n] * test * unset * [ * new object [field:val, ...] * del object namelist * exist object namelist * get object namelist field:argument ... * put object namelist field:val ... * exe object namelist field:argument ... * cpy object sname dnamelist field * move object sname dname * movetop object name * moveup object name * movedown object name * movelast object name * exch object name1 name2 * dexpr * iexpr * */ #include "common.h" #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_READLINE_READLINE_H #include #include static char *Prompt; static int MultiLine = FALSE; #endif /* HAVE_READLINE_READLINE_H */ #ifndef WINDOWS #include #include #endif /* WINDOWS */ #include #define USE_HASH 1 #include "object.h" #include "nstring.h" #include "ioutil.h" #include "shell.h" #include "shellcm.h" #include "shellux.h" #include "math/math_equation.h" #define TEMPPFX "NGS" static char *cmderrorlist[] = { "unexpected EOF.", "bad substitution.", "syntax error near unexpected token", "unexpected token", "invalid identifier", "command not found", "system call", "extra arguments.", "not enough argument.", "too many arguments.", "cannot open file", "Use \"exit\" to leave the shell.", "no such file", "I/O error: read file", "I/O error: open file", "missing object argument.", "missing instance argument.", "new instance is specified", "illegal field identifier", "illegal type of argument", "illegal number of specified instance.", "no instance specified", "no field identifier.", "non-numeric argument", "unknown option", "illegal option", "cannot unset", "no such directory", "syntax error for math.", "not allowd function for math.", "sum() or dif(): deep nest for math.", "illegal argument for math.", "fatal error for math.", "deep nest.", "syntax error.", "security check.", "cannot allocate enough memory.", "unknown error.", }; #define ERRNUM (sizeof(cmderrorlist) / sizeof(*cmderrorlist)) static char **MainEnviron; static int Security=FALSE; #define WRITEBUFSIZE 4096 static char writebuf[WRITEBUFSIZE]; static int writepo; static int storeshhandle(struct nshell *nshell,int fd, char **readbuf,int *readbyte,int *readpo); static void restoreshhandle(struct nshell *nshell,int fd, char *readbuf,int readbyte,int readpo); #ifndef WINDOWS static int Timeout; static void cmsleeptimeout(int sig) { Timeout=TRUE; } void nsleep(int a) { if (a < 1) { return; } if (has_eventloop()) { #ifdef SIGALRM Timeout=FALSE; set_signal(SIGALRM, 0, cmsleeptimeout); alarm(a); while (!Timeout) { eventloop(); msleep(10); } alarm(0); set_signal(SIGALRM, 0, SIG_IGN); #else /* SIGALRM */ sleep(a); #endif /* SIGALRM */ } else { sleep(a); } } #else /* WINDOWS */ typedef struct { int Sleep; int Second; } ThreadParam; DWORD WINAPI SleepThread(LPVOID lpvThreadParam) { ThreadParam *pTH; pTH = (ThreadParam *)lpvThreadParam; Sleep(pTH->Second * 1000); pTH->Sleep = FALSE; return 0; } void nsleep(int a) { ThreadParam TH; DWORD IDThread; if (a < 1) { return; } TH.Sleep = TRUE; TH.Second = a; CreateThread(NULL, 0, SleepThread, &TH, 0, &IDThread); while (TH.Sleep) eventloop(); return; } #endif /* WINDOWS */ void set_environ(void) { int i, n; char *name, **list, **env; const char *val; MainEnviron = NULL; env = g_listenv(); if (env == NULL) { MainEnviron = NULL; return; } for (n = 0; env[n]; n++) ; list = g_malloc0(sizeof(*list) * (n + 1)); if (list == NULL) { g_strfreev(env); return; } for (i = 0; i < n; i++) { name = env[i]; val = g_getenv(name); list[i] = g_strdup_printf("%s=%s", name, val); if (list[i] == NULL) { g_strfreev(env); g_strfreev(list); return; } } MainEnviron = list; g_strfreev(env); } void set_security(int state) { Security = state; } int get_security(void) { return Security; } static void unlinkfile(char **file) { if (*file!=NULL) { g_unlink(*file); g_free(*file); *file=NULL; } } #ifndef WINDOWS int set_signal(int signal_id, int flags, void (*handler)(int)) { static struct sigaction act; memset(&act, 0, sizeof(act)); act.sa_handler = handler; act.sa_flags = (flags | SA_RESTART); sigemptyset(&act.sa_mask); return sigaction(signal_id, &act, NULL); } static void childhandler(int sig) { pid_t child_pid; do { child_pid = waitpid(-1, NULL, WNOHANG); } while (child_pid > 0); } void set_childhandler(void) { set_signal(SIGCHLD, SA_NOCLDSTOP, childhandler); } void unset_childhandler(void) { set_signal(SIGCHLD, 0, SIG_DFL); } #endif /* WINDOWS */ static int EvLoopActive = FALSE; static GThread *EvLoopThread = NULL; static void * shellevloop(void *ptr) { EvLoopActive = TRUE; while (EvLoopActive) { eventloop(); msleep(10); } return NULL; } static void set_shellevloop(int sig) { if (! has_eventloop()) return; if (EvLoopActive) return; #if GLIB_CHECK_VERSION(2, 32, 0) EvLoopThread = g_thread_new("evloop", shellevloop, NULL); #else EvLoopThread = g_thread_create(shellevloop, NULL, TRUE, NULL); #endif if (EvLoopThread == NULL) return; while (! EvLoopActive) { msleep(10); } } static void reset_shellevloop(void) { if (EvLoopActive) { EvLoopActive = FALSE; g_thread_join(EvLoopThread); } } static int shgetstdin(void) { char buf[2]; int byte; if (nisatty(stdinfd())) { set_shellevloop(0); do { byte=read(stdinfd(),buf,1); } while (byte<0); reset_shellevloop(); } else { do { byte=read(stdinfd(),buf,1); if (byte<=0) return EOF; } while (buf[0]=='\r'); } if (byte<=0) return EOF; return buf[0]; } #if HAVE_READLINE_READLINE_H static int ReadlineLock = FALSE; static void * readline_thread(void *prompt) { char *str; str = readline(prompt); ReadlineLock = FALSE; return str; } static char * nreadline(char *prompt) { GThread *thread; if (ReadlineLock) { return NULL; } ReadlineLock = TRUE; #if GLIB_CHECK_VERSION(2, 32, 0) thread= g_thread_new("readline", readline_thread, prompt); #else thread = g_thread_create(readline_thread, prompt, TRUE, NULL); #endif if (thread == NULL) { ReadlineLock = FALSE; return NULL; } while (ReadlineLock) { eventloop(); msleep(10); } return (char *) g_thread_join(thread); } static void remove_duplicate_history(char *str) { HIST_ENTRY *entry; int pos; for(pos = history_length; pos >= 0; pos--) { pos = history_search_pos(str, -1, pos); if(pos >= 0 && strcmp(history_get(pos + history_base)->line, str) == 0) { entry = remove_history(pos); if (entry) { free_history_entry(entry); } break; } } } #endif static int shget(struct nshell *nshell) { char buf[2]; int byte; #ifdef HAVE_READLINE_READLINE_H static char *str_ptr = NULL, *line_str = NULL; #endif if (nisatty(nshell->fd)) { #ifdef HAVE_READLINE_READLINE_H if(str_ptr == NULL){ str_ptr = line_str = nreadline(Prompt); if(str_ptr == NULL){ byte = 0; } else if(strlen(str_ptr) > 0) { if (MultiLine && history_length > 0) { HIST_ENTRY *entry; char *tmp; entry = remove_history(history_length - 1); remove_duplicate_history(str_ptr); if (entry) { tmp = g_strdup_printf("%s\n%s", entry->line, str_ptr); free_history_entry(entry); if (tmp) { remove_duplicate_history(tmp); add_history(tmp); g_free(tmp); } } } else { remove_duplicate_history(str_ptr); add_history(str_ptr); } } } if(str_ptr != NULL){ if(*line_str == '\0'){ free(str_ptr); /* str_ptr is allocated by readline library */ str_ptr = line_str = NULL; buf[0] = '\0'; byte = 1; }else{ buf[0] = *line_str++; byte = 1; } } #else /* HAVE_READLINE_READLINE_H */ set_shellevloop(0); do { byte=read(nshell->fd,buf,1); } while (byte<0); reset_shellevloop(); #endif /* HAVE_READLINE_READLINE_H */ } else { do { byte=read(nshell->fd,buf,1); if (byte<=0) return EOF; } while (buf[0]=='\r'); } if (byte<=0) return EOF; return buf[0]; } static int puts_localized(int fd, const char *str) { int len, r; char *localized; localized = g_locale_from_utf8(str, -1, NULL, NULL, NULL); if (localized == NULL) { return 0; } len = strlen(localized); r = write(fd, localized, len); g_free(localized); return r; } static int shputstdout(const char *s) { int len, r; len = puts_localized(stdoutfd(), s); r = write(stdoutfd(), "\n", 1); if (r >= 0) len += r; return len; } #ifdef WINDOWS static int shputstderr(const char *s) { int len, r; len=strlen(s); r = write(stderrfd(),s,len); if (r < 0){ return r; } r = write(stderrfd(),"\n",1); if (r < 0){ return r; } return len + 1; } #endif /* WINDOWS */ static int shprintfstdout(char *fmt,...) { int len; char *buf; va_list ap; va_start(ap,fmt); buf = g_strdup_vprintf(fmt, ap); va_end(ap); if (buf == NULL) { return 0; } len = puts_localized(stdoutfd(), buf); g_free(buf); return len; } #ifdef COMPILE_UNUSED_FUNCTIONS static int shprintfstderr(char *fmt,...) { int len; char buf[1024]; va_list ap; va_start(ap,fmt); len=vsprintf(buf,fmt,ap); va_end(ap); write(stderrfd(),buf,len); return len; } #endif /* COMPILE_UNUSED_FUNCTIONS */ struct cmdtabletype cmdtable[] = { {"cd", cmcd}, {"echo", cmecho}, {"basename", cmbasename}, {"dirname", cmdirname}, {"seq", cmseq}, {"eval", cmeval}, {"exit", cmexit}, {"export", cmexport}, {"pwd", cmpwd}, {"read", cmread}, {"set", cmset}, {"shift", cmshift}, {"type", cmtype}, {"unset", cmunset}, {":", cmtrue}, {"object", cmobject}, {"derive", cmderive}, {"new", cmnew}, {"exist", cmexist}, {"del", cmdel}, {"get", cmget}, {"put", cmput}, {"cpy", cmcpy}, {"dup", cmdup}, {"move", cmmove}, {"movetop", cmmovetop}, {"moveup", cmmovetop}, {"movedown", cmmovetop}, {"movelast", cmmovetop}, {"exch", cmmove}, {"exe", cmexe}, {"dexpr", cmdexpr}, {"iexpr", cmdexpr}, {"true", cmtrue}, {"false", cmfalse}, {"[", cmtest}, {"sleep", cmsleep}, {"test", cmtest}, {"which", cmwhich}, }; int CMDNUM = sizeof(cmdtable) / sizeof(*cmdtable); char *cpcmdtable[] = { ";&|", "if", "then", "else", "elif", "fi", "case", "esac", "for", "while", "until", "do", "done", "{", "}", }; int CPCMDNUM = sizeof(cpcmdtable) / sizeof(*cpcmdtable); enum {CPNULL=1,CPIF,CPTHEN,CPELSE,CPELIF,CPFI,CPCASE,CPESAC, CPFOR,CPWHILE,CPUNTIL,CPDO,CPDONE,CPBI,CPBO, CPPATI,CPPATO,CPFN,CPNO}; enum {PPNULL=0,PPNO,PPSETV,PPSETO,PPSO1,PPSO2,PPSI1,PPSI2,PPPATOR,PPPIPE, PPAND,PPEND}; struct cmdstack { int cmdno; char *val; int ival,iftrue,casetrue; char *pat; struct prmlist *prm; struct cmdlist *cmd; void *next; }; static NHASH CmdTblHash, CpCmdTblHash; int eval_script(const char *script, int security) { struct nshell *nshell; nshell = newshell(); if (nshell == NULL) return 1; set_security(security); ngraphenvironment(nshell); cmdexecute(nshell, script); set_security(FALSE); delshell(nshell); return 0; } int init_cmd_tbl(void) { int i, r; CmdTblHash = nhash_new(); if (CmdTblHash == NULL) return 1; CpCmdTblHash = nhash_new(); if (CpCmdTblHash == NULL) return 1; for (i = 0; i < CMDNUM; i++) { r = nhash_set_ptr(CmdTblHash, cmdtable[i].name, cmdtable[i].proc); if (r) { goto Err; } } for (i = 1; i < CPCMDNUM; i++) { r = nhash_set_int(CpCmdTblHash, cpcmdtable[i], i); if (r) { goto Err; } } return 0; Err: nhash_free(CmdTblHash); nhash_free(CpCmdTblHash); return 1; } shell_proc check_cmd(char *name) { shell_proc proc; int r; r = nhash_get_ptr(CmdTblHash, name, (void **) &proc); if (r) return NULL; return proc; } int check_cpcmd(char *name) { int r, i; r = nhash_get_int(CpCmdTblHash, name, &i); if (r) i = -1; return i; } static void prmfree(struct prmlist *prmroot) { struct prmlist *prmcur,*prmdel; if (prmroot==NULL) return; prmcur=prmroot; while (prmcur!=NULL) { prmdel=prmcur; prmcur=prmcur->next; g_free(prmdel->str); g_free(prmdel); } } static void cmdfree(struct cmdlist *cmdroot) { struct cmdlist *cmdcur,*cmddel; cmdcur=cmdroot; while (cmdcur!=NULL) { prmfree(cmdcur->prm); cmddel=cmdcur; cmdcur=cmdcur->next; g_free(cmddel); } } static void cmdstackfree(struct cmdstack *stroot) { struct cmdstack *stcur,*stdel; stcur=stroot; while (stcur!=NULL) { stdel=stcur; stcur=stcur->next; prmfree(stdel->prm); g_free(stdel->pat); /* hito (mem leak of pat) */ g_free(stdel); } } static void * cmdstackcat(struct cmdstack **stroot,int cmdno) { struct cmdstack *stcur,*stnew; if ((stnew=g_malloc(sizeof(struct cmdstack)))==NULL) return NULL; stcur=*stroot; if (stcur==NULL) *stroot=stnew; else { while (stcur->next!=NULL) stcur=stcur->next; stcur->next=stnew; } stnew->next=NULL; stnew->prm=NULL; stnew->cmd=NULL; stnew->pat=NULL; /* hito (mem leak of pat) */ stnew->cmdno=cmdno; return stnew; } static struct cmdstack * cmdstackgetpo(struct cmdstack **stroot) { struct cmdstack *stcur,*stprev; stcur=*stroot; stprev=NULL; while (stcur!=NULL) { stprev=stcur; stcur=stcur->next; } return stprev; } static int cmdstackgetlast(struct cmdstack **stroot) { struct cmdstack *stcur,*stprev; stcur=*stroot; stprev=NULL; while (stcur!=NULL) { stprev=stcur; stcur=stcur->next; } if (stprev==NULL) return 0; else return stprev->cmdno; } static void cmdstackrmlast(struct cmdstack **stroot) { struct cmdstack *stcur,*stprev; stcur=*stroot; stprev=NULL; if (stcur==NULL) return; while (stcur->next!=NULL) { stprev=stcur; stcur=stcur->next; } if (stprev==NULL) *stroot=NULL; else stprev->next=NULL; prmfree(stcur->prm); g_free(stcur->pat); /* hito (mem leak of pat) */ g_free(stcur); } static struct vallist * create_vallist(char *name, char *val) { struct vallist *valnew; valnew = g_malloc(sizeof(* valnew)); if (valnew == NULL) return NULL; valnew->name = g_strdup(name); if (valnew->name == NULL) { g_free(valnew); return NULL; } if (val) { valnew->val = g_strdup(val); if (valnew->val == NULL) { g_free(valnew->name); g_free(valnew); return NULL; } } else { valnew->val = NULL; } return valnew; } static void free_vallist(struct vallist *val) { if (val == NULL) return; g_free(val->name); if (val->func) cmdfree(val->val); else g_free(val->val); g_free(val); } char * addval(struct nshell *nshell,char *name,char *val) /* addval() returns NULL on error */ { #if USE_HASH struct vallist *valnew, *valcur; int hkey; valnew = create_vallist(name, val); if (valnew == NULL) return NULL; valnew->func = FALSE; valnew->arg = FALSE; hkey = nhash_hkey(name); nhash_get_ptr_with_hkey(nshell->valroot, name, hkey, (void **) &valcur); if (valcur) { free_vallist(valcur); } nhash_set_ptr_with_hkey(nshell->valroot, valnew->name, hkey, valnew); return valnew->name; #else struct vallist *valcur,*valprev,*valnew; if ((valnew=g_malloc(sizeof(struct vallist)))==NULL) return NULL; if ((valnew->name=g_malloc(strlen(name)+1))==NULL) { g_free(valnew); return NULL; } if ((valnew->val=g_malloc(strlen(val)+1))==NULL) { g_free(valnew->name); g_free(valnew); return NULL; } valnew->func=FALSE; valnew->arg=FALSE; strcpy(valnew->name,name); strcpy(valnew->val,val); valcur=nshell->valroot; valprev=NULL; while (valcur!=NULL) { if (strcmp2(name,valcur->name)<=0) break; valprev=valcur; valcur=valcur->next; } if (valprev==NULL) nshell->valroot=valnew; else valprev->next=valnew; if (valcur==NULL) { valnew->next=NULL; } else if (strcmp0(name,valcur->name)==0) { valnew->next=valcur->next; g_free(valcur->name); if (valcur->func) cmdfree(valcur->val); else g_free(valcur->val); g_free(valcur); } else { valnew->next=valcur; } return valnew->name; #endif } static char * saveval(struct nshell *nshell,char *name,char *val, struct vallist **newvalroot) /* saveval() returns NULL on error */ { #if USE_HASH struct vallist *valnew, *valcur; int hkey; valnew = create_vallist(name, val); if (valnew == NULL) return NULL; valnew->func = FALSE; valnew->arg = TRUE; hkey = nhash_hkey(name); nhash_get_ptr_with_hkey(nshell->valroot, name, hkey, (void **) &valcur); if (valcur) { valcur->next = NULL; if (*newvalroot == NULL) { *newvalroot = valcur; } else { (*newvalroot)->next=valcur; } } nhash_set_ptr_with_hkey(nshell->valroot, name, hkey, valnew); return valnew->name; #else struct vallist *valcur,*valprev,*valnew; if ((valnew=g_malloc(sizeof(struct vallist)))==NULL) return NULL; if ((valnew->name=g_malloc(strlen(name)+1))==NULL) { g_free(valnew); return NULL; } if ((valnew->val=g_malloc(strlen(val)+1))==NULL) { g_free(valnew->name); g_free(valnew); return NULL; } valnew->func=FALSE; valnew->arg=TRUE; strcpy(valnew->name,name); strcpy(valnew->val,val); valcur=nshell->valroot; valprev=NULL; while (valcur!=NULL) { if (strcmp2(name,valcur->name)<=0) break; valprev=valcur; valcur=valcur->next; } if (valprev==NULL) nshell->valroot=valnew; else valprev->next=valnew; if (valcur==NULL) { valnew->next=NULL; } else if (strcmp0(name,valcur->name)==0) { valnew->next=valcur->next; // valcur->next = *newvalroot; /* this code may be wrong. */ valcur->next=NULL; if (*newvalroot==NULL) *newvalroot=valcur; else (*newvalroot)->next=valcur; } else { valnew->next=valcur; } return valnew->name; #endif } static int delete_save_val(struct nhash *hash, void *data) { struct vallist *val; struct nshell *nshell; val = (struct vallist *) hash->val.p; nshell = (struct nshell *) data; if (val->arg) { nhash_del(nshell->valroot, val->name); free_vallist(val); } return 0; } static void restoreval(struct nshell *nshell,struct vallist *newvalroot) /* restoreval() returns NULL on error */ { #if USE_HASH struct vallist *valcur,*valnext, *valcur2; int hk; nhash_each(nshell->valroot, delete_save_val, nshell); valcur = newvalroot; while (valcur) { valnext = valcur->next; hk = nhash_hkey(valcur->name); nhash_get_ptr_with_hkey(nshell->valroot, valcur->name, hk, (void **) &valcur2); if (valcur2) { free_vallist(valcur); } else { nhash_set_ptr_with_hkey(nshell->valroot, valcur->name, hk, (void *) valcur); } valcur = valnext; } #else struct vallist *valcur,*valprev,*valnext; struct vallist *valcur2,*valprev2; valcur=nshell->valroot; valprev=NULL; while (valcur!=NULL) { valnext=valcur->next; if (valcur->arg==1) { if (valprev==NULL) nshell->valroot=valcur->next; else valprev->next=valcur->next; g_free(valcur->name); g_free(valcur->val); g_free(valcur); } else valprev=valcur; valcur=valnext; } valcur=newvalroot; while (valcur!=NULL) { valnext=valcur->next; valcur2=nshell->valroot; valprev2=NULL; while (valcur2!=NULL) { if (strcmp2(valcur->name,valcur2->name)<=0) break; valprev2=valcur2; valcur2=valcur2->next; } if (valcur2==NULL) { if (valprev2==NULL) nshell->valroot=valcur; else valprev2->next=valcur; valcur->next=NULL; } else if (strcmp0(valcur->name,valcur2->name)==0) { g_free(valcur->name); if (valcur->func) cmdfree(valcur->val); else g_free(valcur->val); g_free(valcur); } else { if (valprev2==NULL) nshell->valroot=valcur; else valprev2->next=valcur; valcur->next=valcur2; } valcur=valnext; } #endif } char * addexp(struct nshell *nshell,char *name) /* addexp() returns NULL on error */ { #if USE_HASH if (nhash_set_int(nshell->exproot, name, TRUE)) return NULL; return name; #else struct explist *valcur,*valprev,*valnew; int cmp; valcur=nshell->exproot; valprev=NULL; while (valcur!=NULL) { cmp=strcmp2(name,valcur->val); if (cmp==0) return valcur->val; else if (cmp<0) break; valprev=valcur; valcur=valcur->next; } if ((valnew=g_malloc(sizeof(struct vallist)))==NULL) return NULL; if ((valnew->val=g_malloc(strlen(name)+1))==NULL) { g_free(valnew); return NULL; } if (valprev==NULL) nshell->exproot=valnew; else valprev->next=valnew; strcpy(valnew->val,name); valnew->next=valcur; return valnew->val; #endif } int delval(struct nshell *nshell,char *name) { #if USE_HASH struct vallist *val; int r, hkey; hkey = nhash_hkey(name); r = nhash_get_ptr_with_hkey(nshell->valroot, name, hkey, (void **) &val); if (r == 0) { free_vallist(val); nhash_del_with_hkey(nshell->valroot, name, hkey); return TRUE; } return FALSE; #else struct vallist *valcur,*valprev; valcur=nshell->valroot; valprev=NULL; while (valcur!=NULL) { if (strcmp0(valcur->name,name)==0) { if (valprev==NULL) nshell->valroot=valcur->next; else valprev->next=valcur->next; g_free(valcur->name); if (valcur->func) cmdfree(valcur->val); else g_free(valcur->val); g_free(valcur); return TRUE; } valprev=valcur; valcur=valcur->next; } return FALSE; #endif } char * getval(struct nshell *nshell,char *name) { #if USE_HASH struct vallist *val; nhash_get_ptr(nshell->valroot, name, (void **) &val); if (val && ! val->func) { return val->val; } return FALSE; #else struct vallist *valcur; valcur=nshell->valroot; while (valcur!=NULL) { if ((strcmp0(valcur->name,name)==0) && (!valcur->func)) return valcur->val; valcur=valcur->next; } return NULL; #endif } static int getexp(struct nshell *nshell,char *name) { #if USE_HASH int i, r; r = nhash_get_int(nshell->exproot, name, &i); return ! r; #else struct explist *valcur; valcur=nshell->exproot; while (valcur!=NULL) { if (strcmp0(valcur->val,name)==0) return TRUE; valcur=valcur->next; } return FALSE; #endif } static char * newfunc(struct nshell *nshell,char *name) /* newfunc() returns NULL on error */ { #if USE_HASH struct vallist *valnew, *valcur; int hkey; valnew = create_vallist(name, NULL); if (valnew == NULL) return NULL; valnew->func = TRUE; valnew->arg = FALSE; hkey = nhash_hkey(name); nhash_get_ptr_with_hkey(nshell->valroot, name, hkey, (void **) &valcur); if (valcur) { free_vallist(valcur); } nhash_set_ptr_with_hkey(nshell->valroot, valnew->name, hkey, valnew); return valnew->name; #else struct vallist *valcur,*valprev,*valnew; if ((valnew=g_malloc(sizeof(struct vallist)))==NULL) return NULL; if ((valnew->name=g_malloc(strlen(name)+1))==NULL) { g_free(valnew); return NULL; } valnew->func=TRUE; valnew->arg=FALSE; strcpy(valnew->name,name); valnew->val=NULL; valcur=nshell->valroot; valprev=NULL; while (valcur!=NULL) { if (strcmp2(name,valcur->name)<=0) break; valprev=valcur; valcur=valcur->next; } if (valprev==NULL) nshell->valroot=valnew; else valprev->next=valnew; if (valcur==NULL) { valnew->next=NULL; } else if (strcmp0(name,valcur->name)==0) { valnew->next=valcur->next; g_free(valcur->name); if (valcur->func) cmdfree(valcur->val); else g_free(valcur->val); g_free(valcur); } else { valnew->next=valcur; } return valnew->name; #endif } static char * addfunc(struct nshell *nshell,char *name,struct cmdlist *val) /* addfunc() returns NULL on error */ { #if USE_HASH struct vallist *valcur; struct cmdlist *cmdcur,*cmdprev,*cmdnew; struct prmlist *prmcur,*prmprev,*prmnew; char *snew; nhash_get_ptr(nshell->valroot, name, (void **) &valcur); if (valcur == NULL) { return NULL; } if (! valcur->func) { return NULL; } cmdcur = valcur->val; cmdprev = NULL; while (cmdcur) { cmdprev = cmdcur; cmdcur = cmdcur->next; } cmdnew = g_malloc(sizeof(* cmdnew)); if (cmdnew == NULL) { delval(nshell, name); return NULL; } if (cmdprev == NULL) { valcur->val = cmdnew; } else { cmdprev->next = cmdnew; } *cmdnew = *val; cmdnew->prm = NULL; cmdnew->next = NULL; prmcur = val->prm; prmprev = NULL; while (prmcur) { prmnew = g_malloc(sizeof(* prmnew)); if (prmnew == NULL) { delval(nshell, name); return NULL; } if (prmprev == NULL) { cmdnew->prm=prmnew; } else { prmprev->next=prmnew; } *prmnew = *prmcur; prmnew->next = NULL; if (prmcur->str) { snew = g_strdup(prmcur->str); if (snew == NULL) { delval(nshell, name); return NULL; } prmnew->str = snew; } prmprev = prmnew; prmcur = prmcur->next; } return valcur->name; #else struct vallist *valcur; struct cmdlist *cmdcur,*cmdprev,*cmdnew; struct prmlist *prmcur,*prmprev,*prmnew; char *snew; valcur=nshell->valroot; while (valcur!=NULL) { if ((strcmp0(valcur->name,name)==0) && (valcur->func)) { cmdcur=valcur->val; cmdprev=NULL; while (cmdcur!=NULL) { cmdprev=cmdcur; cmdcur=cmdcur->next; } if ((cmdnew=g_malloc(sizeof(struct cmdlist)))==NULL) { delval(nshell,name); return NULL; } if (cmdprev==NULL) valcur->val=cmdnew; else cmdprev->next=cmdnew; *cmdnew=*val; cmdnew->prm=NULL; cmdnew->next=NULL; prmcur=val->prm; prmprev=NULL; while (prmcur!=NULL) { if ((prmnew=g_malloc(sizeof(struct prmlist)))==NULL) { delval(nshell,name); return NULL; } if (prmprev==NULL) cmdnew->prm=prmnew; else prmprev->next=prmnew; *prmnew=*prmcur; prmnew->next=NULL; if (prmcur->str!=NULL) { if ((snew=g_malloc(strlen(prmcur->str)+1))==NULL) { delval(nshell,name); return NULL; } strcpy(snew,prmcur->str); prmnew->str=snew; } prmprev=prmnew; prmcur=prmcur->next; } break; } valcur=valcur->next; } return valcur->name; #endif } struct cmdlist * getfunc(struct nshell *nshell,char *name) { #if USE_HASH struct vallist *val; nhash_get_ptr(nshell->valroot, name, (void **) &val); if (val && val->func) { return val->val; } return FALSE; #else struct vallist *valcur; valcur=nshell->valroot; while (valcur!=NULL) { if ((strcmp0(valcur->name,name)==0) && (valcur->func)) return valcur->val; valcur=valcur->next; } return NULL; #endif } static char * gettok(char **s,int *len,int *quote,int *bquote,int *cend,int *escape) { int i; char *po,*spo; if (*s==NULL) return NULL; *cend='\0'; *escape=FALSE; po=*s; /* remove branck */ for (i=0;(po[i]!='\0') && !*quote && (strchr(" \t",po[i])!=NULL);i++); /* token ends */ if ((po[i]=='\0') || (!*quote && (po[i]=='#'))) { *len=0; return NULL; } spo=po+i; if (!*quote && !*bquote) { /* check speecial character */ if (strchr(";&|^<>()",po[i])!=NULL) { if (strchr(";&)",po[i])!=NULL) *cend=po[i]; if ((strchr("<>",po[i])!=NULL) && (po[i]==po[i+1])) { i++; if (po[i] == '<' && po[i + 1] == '-') { i++; } } if ((po[i]==';') && (po[i]==po[i+1])) i++; *s+=(i+1); *len=*s-spo; return spo; } } for (;(po[i]!='\0') && (*quote || *bquote || *escape || (strchr(";&|^<> \t()",po[i])==NULL)); i++) { /* check escapse */ if (*escape) *escape=FALSE; else if (po[i]=='\\') { if (!*quote || ((*quote=='"') && (strchr("\"\\'$",po[i+1])!=NULL)) || *bquote ) *escape=TRUE; /* check back quote */ } else if (*bquote) { if (po[i]=='`') *bquote='\0'; } else if ((po[i]=='`') && (*quote!='\'')) *bquote='`'; /* check quotation */ else if ((*quote=='"') || (*quote=='\'')) { if (po[i]==*quote) *quote='\0'; } else if (po[i]=='\'' || po[i]=='"') *quote=po[i]; } if (*escape) i--; *s+=i; *len=*s-spo; return spo; } static int getcmdline(struct nshell *nshell, struct cmdlist **rcmdroot,struct cmdlist *cmd, const char *str,int *istr) /* getcmdline() returns -2: unexpected eof detected -1: fatal error 0: noerror 1: eof detected */ { struct cmdlist *cmdroot,*cmdcur; struct prmlist *prmcur,*prmnew; int quote,quote2,bquote,bquote2,escape,escape2; int cend,l; char *spo,*po,*prompt,*tok,*tok2; char *ignoreeof,*endptr; int ch; int i,eofnum; int err,eofcount; err=-1; escape=escape2=FALSE; quote=quote2=bquote=bquote2='\0'; cend='\0'; cmdroot=NULL; cmdcur=NULL; prmcur=NULL; tok=NULL; eofcount=0; do { g_free(tok); tok=NULL; if (str==NULL) { if ((tok=nstrnew())==NULL) goto errexit; if (nisatty(nshell->fd)) { if (cmd == NULL && cmdroot == NULL) { prompt = getval(nshell, "PS1"); #ifdef HAVE_READLINE_READLINE_H MultiLine = FALSE; #endif } else { prompt = getval(nshell, "PS2"); #ifdef HAVE_READLINE_READLINE_H MultiLine = TRUE; #endif } #ifdef HAVE_READLINE_READLINE_H Prompt = prompt; #else if (prompt!=NULL) printfconsole("%.256s",prompt); #endif } do { ch=shget(nshell); if (ch==EOF) { if (strlen(tok)!=0) { if (!nisatty(nshell->fd)) break; else printfconsole("%c",(char )0x07); } else { if (!nisatty(nshell->fd)) { if ((cmd!=NULL) || (cmdroot!=NULL)) { sherror(ERRUEXPEOF); err=-2; } else err=1; goto errexit; } else { if ((cmd!=NULL) || (cmdroot!=NULL)) { sherror(ERRUEXPEOF); err=-2; goto errexit; } eofcount++; ignoreeof = getval(nshell,"IGNOREEOF"); if (ignoreeof == NULL) { eofnum=0; } else { if (ignoreeof[0] == '\0') { eofnum = 10; } else { eofnum = strtol(ignoreeof,&endptr,10); if (endptr[0] != '\0') eofnum = 10; } } if (eofcount > eofnum) { err=1; putconsole("exit"); nshell->quit=TRUE; goto errexit; } else { sherror(ERREOF); ch='\0'; } } } } else { eofcount=0; if (ch=='\n') ch='\0'; if ((tok=nstrccat(tok,ch))==NULL) goto errexit; } } while (ch!='\0'); } else { if (str[*istr]=='\0') { if ((cmd!=NULL) || (cmdroot!=NULL)) { sherror(ERRUEXPEOF); err=-2; } else { err=1; } goto errexit; } for (i=*istr;(str[i]!='\0') && (str[i]!='\n');i++); if ((tok=g_malloc(i-*istr+1))==NULL) { goto errexit; } strncpy(tok,str+*istr,i-*istr); tok[i-*istr]='\0'; if (str[i]=='\n') { *istr=i+1; } else { *istr=i; } } if (! g_utf8_validate(tok, -1, NULL)) { char *tmp; tmp = g_locale_to_utf8(tok, -1, NULL, NULL, NULL); if (tmp) { g_free(tok); tok = tmp; } } tok2=tok; do { int len; spo=gettok(&tok2,&len,"e,&bquote,&cend,&escape); if (quote2 || bquote2 || escape2) { l=strlen(prmcur->str); if (quote2 || bquote2) l++; if ((po=g_malloc(len+l+1))==NULL) goto errexit; strcpy(po,prmcur->str); if (quote2 || bquote2) *(po+l-1)='\n'; if (spo!=NULL) strncpy(po+l,spo,len); *(po+len+l)='\0'; g_free(prmcur->str); prmcur->str=po; } else if (spo!=NULL) { if (cmdroot==NULL) { if ((cmdcur=g_malloc(sizeof(struct cmdlist)))==NULL) goto errexit; cmdroot=cmdcur; cmdcur->next=NULL; cmdcur->prm=NULL; } if ((prmnew=g_malloc(sizeof(struct prmlist)))==NULL) goto errexit; if (cmdcur->prm==NULL) cmdcur->prm=prmnew; else prmcur->next=prmnew; prmcur=prmnew; prmcur->next=NULL; if ((prmcur->str=g_malloc(len+1))==NULL) goto errexit; strncpy(prmcur->str,spo,len); prmcur->str[len]='\0'; } if (cend) { if ((cmdcur->next=g_malloc(sizeof(struct cmdlist)))==NULL) goto errexit; cmdcur=cmdcur->next; cmdcur->next=NULL; cmdcur->prm=NULL; } quote2=quote; bquote2=bquote; escape2=escape; } while ((spo!=NULL) && (!escape) && (!quote) && (!bquote)); } while (quote || bquote || escape || (cmdroot==NULL)); *rcmdroot=cmdroot; g_free(tok); return 0; errexit: cmdfree(cmdroot); g_free(tok); *rcmdroot=NULL; return err; } static char * quotation(struct nshell *nshell,char *s,int quote) { int i,j,num; char *snew,*ifs; ifs=getval(nshell,"IFS"); num=0; for (i=0;s[i]!='\0';i++) if (strchr("\"\\'$",s[i])!=NULL) num++; if ((snew=g_malloc(strlen(s)+num+1))==NULL) return NULL; j=0; for (i=0;s[i]!='\0';i++) { if ((quote!='"') && (ifs!=NULL) && (ifs[0]!='\0') && (strchr(ifs,s[i])!=NULL)) snew[j++]=(char )0x01; else { if (strchr("\"\\'$",s[i])!=NULL) snew[j++]=(char )0x02; snew[j++]=s[i]; } } snew[j]='\0'; return snew; } static char * unquotation(char *s,int *quoted) { int escape,quote,i,j; char *snew,*po; if ((snew=g_malloc(strlen(s)+1))==NULL) return NULL; *quoted=FALSE; po=s; escape=FALSE; quote='\0'; j=0; for (i=0;po[i]!='\0';i++) { if (escape) { escape=FALSE; snew[j++]=po[i]; } else if (po[i]=='\\') { if (!quote || ((quote=='"') && (strchr("\"\\'$",po[i+1])!=NULL))) escape=TRUE; else snew[j++]=po[i]; } else if (po[i]==(char )0x02) escape=TRUE; else if (po[i]==(char )0x01) snew[j++]=' '; else if ((quote=='"') || (quote=='\'')) { if (po[i]==quote) quote='\0'; else snew[j++]=po[i]; } else if (po[i]=='\'' || po[i]=='"') { quote=po[i]; *quoted=TRUE; } else snew[j++]=po[i]; } snew[j]='\0'; return snew; } static char * fnexpand(struct nshell *nshell,char *str) { int escape,expand,noexpand,quote,i,j,len,num; char *po; char *s,*s2; char **namelist; po=str; escape=expand=noexpand=FALSE; quote='\0'; if ((s=nstrnew())==NULL) return NULL; if ((s2=nstrnew())==NULL) return NULL; len=strlen(po); for (i=0;i<=len;i++) { if (escape && (po[i]!='\0')) { escape=FALSE; if ((s=nstrccat(s,po[i]))==NULL) goto errexit; if (strchr("*?[",po[i])!=NULL) noexpand=TRUE; } else if (po[i]=='\\') { if (!quote || ((quote=='"') && (strchr("\"\\'$",po[i+1])!=NULL))) escape=TRUE; else if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } else if (po[i]==(char )0x02) escape=TRUE; else if ((po[i]==(char )0x01) || (po[i]=='\0')) { if (strlen(s)!=0) { if (!nshell->optionf && expand && !noexpand) { if ((num=nglob(s,&namelist))==-1) goto errexit; for (j=0;jstr; if (po==NULL) return 1; if ((s=nstrnew())==NULL) return -1; for (i=0;po[i]!='\0';i++) { if (po[i]==(char )0x02) { i++; if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } else if (po[i]==(char )0x01) { prmcur->str=s; if ((s=nstrnew())==NULL) goto errexit; if ((prmnew=g_malloc(sizeof(struct prmlist)))==NULL) goto errexit; prmnew->str=NULL; prmnew->next=prmcur->next; prmnew->prmno=prmcur->prmno; prmcur->next=prmnew; prmcur=prmnew; num++; } else if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } prmcur->str=s; num++; g_free(po); return num; errexit: g_free(s); g_free(po); return -1; } static char * wordunsplit(char *str) { int i,j; char *po; po=str; j=0; for (i=0;po[i]!='\0';i++) if (po[i]==(char )0x01) po[j++]=' '; else if (po[i]!=(char )0x02) po[j++]=po[i]; po[j]='\0'; return po; } static char * expand(struct nshell *nshell,char *str,int *quote,int *bquote, int ifsexp) { char *po; int quote2,bquote2,escape; int i,j,k,num; unsigned int u, n; char *c1,*c2,*name,*val,ch,valf,valf2,*ifs; char *s,*sb,*se; int sout,sout2; int rcode,dummy; int byte; char *tmpfil; struct objlist *sys; struct narray *sarray; char **sdata; int snum; char *tmp; if ((po=str)==NULL) return NULL; if ((s=nstrnew())==NULL) return NULL; name=NULL; sb=se=NULL; escape=FALSE; ifs=getval(nshell,"IFS"); for (i=0;po[i]!='\0';i++) { /* check escapse */ if (escape) { if (se==NULL) { if (sb!=NULL) { if ((sb=nstrccat(sb,po[i]))==NULL) goto errexit; } else { if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } } escape=FALSE; } else if (po[i]=='\\') { if (!*quote || ((*quote=='"') && (strchr("\"\\'$",po[i+1])!=NULL)) || *bquote ) { escape=TRUE; if ((se==NULL) && (sb==NULL)) { if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } } else if (se==NULL) { if (sb!=NULL) { if ((sb=nstrccat(sb,po[i]))==NULL) goto errexit; } else { if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } } } else if (po[i]==(char )0x02) { escape=TRUE; if ((se==NULL) && (sb==NULL)) { if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } /* check back quote */ } else if (*bquote) { if (po[i]=='`') { *bquote='\0'; if (se==NULL) { /* command substitution */ if ((sys=getobject("system"))==NULL) goto errexit; sout = n_mkstemp(getval(nshell,"TMPDIR"), TEMPPFX, &tmpfil); if (sout < 0) goto errexit; sout2=nredirect(1,sout); rcode=cmdexecute(nshell,sb); if ((rcode!=0) && (rcode!=1)) { nredirect2(1,sout2); g_unlink(tmpfil); g_free(tmpfil); goto errexit; } g_free(sb); if ((sb=nstrnew())==NULL) { nredirect2(1,sout2); g_unlink(tmpfil); g_free(tmpfil); goto errexit; } nlseek(stdoutfd(),0L,SEEK_SET); while ((byte=nread(stdoutfd(),writebuf,WRITEBUFSIZE-1))>0) { writebuf[byte]='\0'; if ((sb=nstrcat(sb,writebuf))==NULL) { nredirect2(1,sout2); g_unlink(tmpfil); g_free(tmpfil); goto errexit; } } nredirect2(1,sout2); g_unlink(tmpfil); if (byte==-1) { sherror2(ERRREAD,tmpfil); g_free(tmpfil); goto errexit; } g_free(tmpfil); n = strlen(sb); for (u = 0; u < n; u++) { if (sb[u] == '\n') { sb[u] = ' '; } } for (j=strlen(sb)-1;(j>=0) && (sb[j]==' ');j--); sb[j+1]='\0'; if ((c1=quotation(nshell,sb,*quote))==NULL) goto errexit; s=nstrcat(s,c1); g_free(c1); if (s==NULL) goto errexit; g_free(sb); sb=NULL; } } else if (se==NULL) { if (sb!=NULL) { if ((sb=nstrccat(sb,po[i]))==NULL) goto errexit; } else { if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } } } else if ((po[i]=='`') && (*quote!='\'')) { *bquote='`'; if (se==NULL) { if ((sb=nstrnew())==NULL) goto errexit; } /* check constant variable */ } else if ((po[i]=='$') && (po[i+1]!='\0') && (*quote!='\'') && (se==NULL)) { if (isdigit(po[i+1])) { for (j=i+1;(po[j]!='\0') && isdigit(po[j]);j++); g_free(name); if ((name=g_malloc(j-i))==NULL) goto errexit; strncpy(name,po+i+1,j-i-1); name[j-i-1]='\0'; num=atoi(name); if (numargc) { if ((c1=quotation(nshell,(nshell->argv)[num],*quote))==NULL) goto errexit; s=nstrcat(s,c1); g_free(c1); if (s==NULL) goto errexit; } i=j-1; } else if (strchr("#?",po[i+1])!=NULL) { switch (po[i+1]) { case '#': g_free(name); if ((name=g_malloc(12))==NULL) goto errexit; sprintf(name,"%d",nshell->argc-1); break; case '?': g_free(name); if ((name=g_malloc(12))==NULL) goto errexit; sprintf(name,"%d",nshell->status); break; } if ((c1=quotation(nshell,name,*quote))==NULL) goto errexit; s=nstrcat(s,c1); g_free(c1); if (s==NULL) goto errexit; i++; } else if (strchr("*@",po[i+1])!=NULL) { val=getval(nshell,"IFS"); if (val==NULL) ch='\0'; else ch=val[0]; for (j=1;jargc;j++) { if ((c1=quotation(nshell,(nshell->argv)[j],*quote))==NULL) goto errexit; s=nstrcat(s,c1); g_free(c1); if (s==NULL) goto errexit; if (j!=(nshell->argc-1)) { if ((*quote=='"') && (po[i+1]=='*')) { if (ch!='\0') { if (strchr("\"\\'$",ch)!=NULL) { if ((s=nstrccat(s,'\\'))==NULL) goto errexit; } if ((s=nstrccat(s,ch))==NULL) goto errexit; } } else { if ((s=nstrccat(s,(char )0x01))==NULL) goto errexit; } } } i++; /* check variable */ } else if (po[i+1]=='{') { for (j=i+2;(po[j]!='\0') && (isalnum(po[j]) || (po[j]=='_'));j++); if ((po[j]=='\0') || (strchr(":-=?+#%}",po[j])==NULL) || (po[j-1]=='{')) { sherror(ERRBADSUB); goto errexit; } if (po[j]=='}') { g_free(name); if ((name=g_malloc(j-i-1))==NULL) goto errexit; strncpy(name,po+i+2,j-i-2); name[j-i-2]='\0'; val=getval(nshell,name); if (val!=NULL) { if ((c1=quotation(nshell,val,*quote))==NULL) goto errexit; s=nstrcat(s,c1); g_free(c1); if (s==NULL) goto errexit; } i=j; } else { if ((po[j]==':') && (po[j+1]!='\0') && (strchr("-=?+",po[j+1])==NULL)) { valf='o'; if ((se=nstrnew())==NULL) goto errexit; i+=2; } else { g_free(name); if ((name=g_malloc(j-i-1))==NULL) goto errexit; strncpy(name,po+i+2,j-i-2); name[j-i-2]='\0'; val=getval(nshell,name); quote2=*quote; bquote2=*bquote; valf2=' '; if (po[j]==':') { valf2=':'; j++; } if (strchr("-=?+",po[j])!=NULL) { valf=po[j]; j++; } else if (strchr("#%",po[j])!=NULL) { if (po[j]==po[j+1]) { valf2=po[j]; j++; } valf=po[j]; j++; } else { sherror(ERRBADSUB); goto errexit; } if ((se=nstrnew())==NULL) goto errexit; i=j; } } } else { /* simple variable substitution */ for (j=i+1;(po[j]!='\0') && (isalnum(po[j]) || (po[j]=='_'));j++); g_free(name); if ((name=g_malloc(j-i))==NULL) goto errexit; strncpy(name,po+i+1,j-i-1); name[j-i-1]='\0'; if (name[0]=='\0') val="$"; else val=getval(nshell,name); if (val!=NULL) { if ((c1=quotation(nshell,val,*quote))==NULL) goto errexit; s=nstrcat(s,c1); g_free(c1); if (s==NULL) goto errexit; } i=j-1; } /* check variable end */ } else if ((po[i]=='}') && (*quote!='\'') && (se!=NULL)) { if (valf=='o') { /* object replacement */ if ((tmp=unquotation(se,&dummy))==NULL) goto errexit; g_free(se); se=NULL; sarray=sgetobj(tmp,FALSE,FALSE,FALSE); g_free(tmp); sdata=arraydata(sarray); snum=arraynum(sarray); for (j=0;j=0;k--) { ch=c2[k]; c2[k]='\0'; if (wildmatch(c1,c2,WILD_PATHNAME)) { c2[k]=ch; break; } c2[k]=ch; } } else { for (k = 0; k <= (int) strlen(c2); k++) { ch=c2[k]; c2[k]='\0'; if (wildmatch(c1,c2,WILD_PATHNAME)) { c2[k]=ch; break; } c2[k]=ch; } } if (k > (int) strlen(c2)) { k=0; } g_free(c1); c1=quotation(nshell,c2+k,quote2); g_free(c2); if (c1==NULL) goto errexit; } break; case '%': if ((val!=NULL) && (val[0]!='\0')) { if ((c2=nstrnew())==NULL) goto errexit; if ((c2=nstrcat(c2,val))==NULL) goto errexit; if ((c1=expand(nshell,se,"e2,&bquote2,TRUE))==NULL) { g_free(c2); goto errexit; } if (valf2=='%') { int len; len = strlen(c2) - 1; for (k = 0; k <= len; k++) { if (wildmatch(c1,c2+k,WILD_PATHNAME|WILD_PERIOD)) break; } } else { for (k=strlen(c2);k>=0;k--) { if (wildmatch(c1,c2+k,WILD_PATHNAME|WILD_PERIOD)) break; } } if (k<0) k=strlen(c2); c2[k]='\0'; g_free(c1); c1=quotation(nshell,c2,quote2); g_free(c2); if (c1==NULL) goto errexit; } break; } if (c1!=NULL) { s=nstrcat(s,c1); g_free(c1); if (s==NULL) goto errexit; } *quote=quote2; *bquote=bquote2; g_free(se); se=NULL; } /* check quotation */ } else if ((*quote=='"') || (*quote=='\'')) { if (po[i]==*quote) *quote='\0'; if (se==NULL) { if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } } else if (po[i]=='\'' || po[i]=='"') { *quote=po[i]; if (se==NULL) { if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } } else { if (se==NULL) { if (ifsexp && (ifs!=NULL) && (ifs[0]!='\0') && (strchr(ifs,po[i])!=NULL)) { if ((s=nstrccat(s,(char )0x01))==NULL) goto errexit; } else { if ((s=nstrccat(s,po[i]))==NULL) goto errexit; } } } if (se!=NULL) { if ((se=nstrccat(se,po[i]))==NULL) goto errexit; } } if ((se!=NULL) || (sb!=NULL)) { sherror(ERRBADSUB); goto errexit; } g_free(name); g_free(sb); g_free(se); return s; errexit: g_free(name); g_free(sb); g_free(se); g_free(s); return NULL; } static int checkcmd(struct nshell *nshell,struct cmdlist **cmdroot) /* checkcmd() returns -1: fatal error 0: noerror 2: error */ { struct cmdlist *cmdcur,*cmdprev,*cmddel,*cmdnew; struct prmlist *prmcur,*prmprev; int cmd,i; char *po; char *s,*eof, *prompt; int quoted,ch; int eoflen,match,len; struct objlist *sys; char *tmpfil; int sout; int ignore_indent, remove_tab; cmdcur=*cmdroot; cmdprev=NULL; while (cmdcur!=NULL) { if (cmdcur->prm==NULL) { if (cmdprev==NULL) *cmdroot=cmdcur->next; else cmdprev->next=cmdcur->next; cmddel=cmdcur; cmdcur=cmdcur->next; g_free(cmddel); } else { /* remove zero length parameter */ prmcur=cmdcur->prm; cmd=CPNO; while (prmcur->next!=NULL) prmcur=prmcur->next; if (prmcur->str[0]==')') cmd=CPPATI; prmcur=cmdcur->prm; if ((prmcur->str[0]!='\0') && (strchr(cpcmdtable[0],prmcur->str[0])!=NULL)) cmd=CPNULL; i = check_cpcmd(prmcur->str); if (i >= 0) { cmd = i + 1; } else { prmcur=prmcur->next; if ((prmcur!=NULL) && (prmcur->str[0]=='(')) { prmcur=prmcur->next; if ((prmcur!=NULL) && (prmcur->str[0]==')')) cmd=CPFN; } } cmdcur->cmdno=cmd; if ((cmd!=CPNO) && (cmd!=CPCASE) && (cmd!=CPPATI) && (cmd!=CPPATO) && (cmd!=CPFOR) && (cmd!=CPFN) && ((cmdcur->prm)->next!=NULL)) { if ((cmdnew=g_malloc(sizeof(struct cmdlist)))==NULL) return -1; cmdnew->next=cmdcur->next; cmdcur->next=cmdnew; cmdnew->prm=(cmdcur->prm)->next; (cmdcur->prm)->next=NULL; cmdnew->cmdno=CPNO; } /* check pattern */ if (cmdcur->cmdno==CPCASE) { prmcur=cmdcur->prm; /* case */ if (prmcur->next!=NULL) { prmcur=prmcur->next; /* word */ if (prmcur->next!=NULL) { prmprev=prmcur->next; /* in */ if (prmprev->next!=NULL) { prmcur=prmprev->next; prmprev->next=NULL; if ((cmdnew=g_malloc(sizeof(struct cmdlist)))==NULL) return -1; cmdnew->next=cmdcur->next; cmdcur->next=cmdnew; cmdnew->prm=prmcur; } } } } /* check redirect and pipe */ cmdcur->cmdend=PPEND; cmdcur->pipefile=NULL; prmcur=cmdcur->prm; prmprev=NULL; while (prmcur!=NULL) { if (prmcur->str!=NULL) { if ((prmcur->str[0]=='>') || (prmcur->str[0]=='<')) { if ((prmcur->next==NULL) || ((prmcur->next)->str==NULL) || (strchr(";&|",(prmcur->next)->str[0])!=NULL)) { sherror2(ERRUEXPTOK,prmprev->str); return 2; } if (prmcur->str[0]==prmcur->str[1]) { if (prmcur->str[0]=='>') prmcur->prmno=PPSO2; else { prmcur->prmno=PPSI2; if ((eof=unquotation((prmcur->next)->str,"ed))==NULL) return -1; g_free((prmcur->next)->str); (prmcur->next)->str=eof; (prmcur->next)->quoted=quoted; if (prmcur->str[2] == '-') { ignore_indent = TRUE; remove_tab = TRUE; } else { ignore_indent = FALSE; remove_tab = FALSE; } /* get << contents */ if ((sys=getobject("system"))==NULL) return -1; sout = n_mkstemp(getval(nshell,"TMPDIR"), TEMPPFX, &tmpfil); if (sout < 0) return -1; if ((quoted) && !nisatty(nshell->fd)) { eoflen=strlen(eof); match=0; writepo=0; while (TRUE) { ch=shget(nshell); if ((ch==EOF) || (ch=='\0')) break; if (remove_tab && ch == '\t') continue; remove_tab = FALSE; if (ch=='\n') { if (match==eoflen) break; writebuf[writepo]=ch; writepo++; if (writepo==WRITEBUFSIZE) { nwrite(sout,writebuf,WRITEBUFSIZE); writepo=0; } match=0; remove_tab = ignore_indent; } else if (match==-1) { writebuf[writepo]=ch; writepo++; if (writepo==WRITEBUFSIZE) { nwrite(sout,writebuf,WRITEBUFSIZE); writepo=0; } } else if ((match==eoflen) || (ch!=eof[match])) { for (i=0;ifd)) { prompt = getval(nshell,"PS2"); #ifdef HAVE_READLINE_READLINE_H Prompt = prompt; MultiLine = TRUE; #else if (prompt) printfconsole("%.256s", prompt); #endif } do { ch=shget(nshell); if (ch==EOF) { if (strlen(s)!=0) { if (!nisatty(nshell->fd)) break; else printfconsole("%c",(char )0x07); } else break; } else { if (ch=='\n') ch='\0'; if (remove_tab && ch == '\t') continue; remove_tab = FALSE; if ((s=nstrccat(s,ch))==NULL) { nclose(sout); unlinkfile(&tmpfil); return -1; } } } while (ch!='\0'); if (strcmp0(eof,s)!=0) { len=strlen(s); s[len]='\n'; nwrite(sout,s,len+1); g_free(s); } else { g_free(s); break; } } while (ch!=EOF); } nclose(sout); g_free((prmcur->next)->str); (prmcur->next)->str=tmpfil; } } else { if (prmcur->str[0]=='>') prmcur->prmno=PPSO1; else prmcur->prmno=PPSI1; } (prmcur->next)->prmno=prmcur->prmno; prmcur=prmcur->next; } else if (prmcur->str[0]=='|') { if (cmdcur->cmdno==CPPATI) { prmcur->prmno=PPPATOR; } else { cmdcur->cmdend=PPPIPE; prmcur->prmno=PPPIPE; if ((prmcur->next==NULL) || ((prmcur->next)->str==NULL) || (strchr(";&|",(prmcur->next)->str[0])!=NULL)) { sherror2(ERRUEXPTOK,prmcur->str); return 2; } if ((cmdnew=g_malloc(sizeof(struct cmdlist)))==NULL) return -1; cmdnew->next=cmdcur->next; cmdcur->next=cmdnew; cmdnew->prm=prmcur->next; prmcur->next=NULL; cmdnew->cmdno=CPNO; } } else if (prmcur->str[0]=='&') { prmcur->prmno=PPAND; cmdcur->cmdend=PPAND; } else if (prmcur->str[0]==';') { if (prmcur->str[1]==';') { cmdcur->cmdno=CPPATO; /* how is prmcur->prmno ? */ prmcur->prmno=PPNULL; /* is it right? */ } else { prmcur->prmno=PPEND; } } else { prmcur->prmno=PPNO; } } else { prmcur->prmno=PPNULL; } prmprev=prmcur; prmcur=prmcur->next; } /* check variable setting command */ prmcur=cmdcur->prm; while (prmcur!=NULL) { if (prmcur->prmno == PPNO) { po=prmcur->str; if (isobject(&po) && (po[0]=='=')) { prmcur->prmno=PPSETO; } else { po=prmcur->str; for (i=0;(po[i]!='\0') && (isalnum(po[i]) || (po[i]=='_'));i++); if ((i!=0) && (po[i]=='=')) prmcur->prmno=PPSETV; } if (prmcur->prmno==PPNO) break; } prmcur=prmcur->next; } cmdprev=cmdcur; cmdcur=cmdcur->next; } } return 0; } static int syntax(struct nshell *nshell, struct cmdlist *cmdroot,int *needcmd,struct cmdstack **sx) /* syntax() returns -1: fatal error 0: noerror 2: syntax error */ { struct cmdlist *cmdcur; struct prmlist *prmcur; int i,cmd,c; char *s; struct cmdstack *st; cmdcur=cmdroot; while (cmdcur!=NULL) { cmd=cmdcur->cmdno; c=cmdstackgetlast(sx); if ((c==CPFOR) && (cmd!=CPDO)) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((c==CPCASE) && (cmd!=CPPATI) && (cmd!=CPESAC)) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((c==CPFN) && (cmd!=CPBI)) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((*needcmd) && !((cmd==CPIF) || (cmd==CPCASE) || (cmd==CPFOR) || (cmd==CPWHILE) || (cmd==CPUNTIL) || (cmd==CPFN) || (cmd==CPNO))) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((cmd==CPIF) || (cmd==CPTHEN) || (cmd==CPELSE) || (cmd==CPELIF) || (cmd==CPWHILE) || (cmd==CPUNTIL) || (cmd==CPDO) || (cmd==CPBI)) *needcmd=TRUE; else if (cmdcur->cmdend==PPPIPE) *needcmd=TRUE; else *needcmd=FALSE; switch (cmd) { case CPNULL: sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; case CPIF: if ((st=cmdstackcat(sx,CPIF))==NULL) return -1; st->cmd=cmdcur; break; case CPTHEN: if (cmdstackgetlast(sx)!=CPIF) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((st=cmdstackgetpo(sx))==NULL) return -1; (st->cmd)->done=cmdcur; cmdstackrmlast(sx); if ((st=cmdstackcat(sx,CPTHEN))==NULL) return -1; st->cmd=cmdcur; break; case CPELIF: if (cmdstackgetlast(sx)!=CPTHEN) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((st=cmdstackgetpo(sx))==NULL) return -1; (st->cmd)->done=cmdcur; cmdstackrmlast(sx); if ((st=cmdstackcat(sx,CPIF))==NULL) return -1; st->cmd=cmdcur; break; case CPELSE: if (cmdstackgetlast(sx)!=CPTHEN) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((st=cmdstackgetpo(sx))==NULL) return -1; (st->cmd)->done=cmdcur; cmdstackrmlast(sx); if ((st=cmdstackcat(sx,CPELSE))==NULL) return -1; st->cmd=cmdcur; break; case CPFI: c=cmdstackgetlast(sx); if ((c!=CPTHEN) && (c!=CPELSE)) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((st=cmdstackgetpo(sx))==NULL) return -1; (st->cmd)->done=cmdcur; cmdstackrmlast(sx); break; case CPCASE: if ((st=cmdstackcat(sx,CPCASE))==NULL) return -1; st->cmd=cmdcur; prmcur=(cmdcur->prm)->next; if ((prmcur==NULL) || (prmcur->next==NULL)) { sherror2(ERRSYNTAX,(cmdcur->prm)->str); return 2; } prmcur=prmcur->next; if ((prmcur->str==NULL) || (strcmp0("in",prmcur->str)!=0)) { sherror2(ERRSYNTAX,prmcur->str); return 2; } if (prmcur->next!=NULL) { sherror2(ERRUEXPTOK,(prmcur->next)->str); return 2; } break; case CPPATI: c=cmdstackgetlast(sx); if ((c!=CPCASE) && (c!=CPPATO)) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } prmcur=cmdcur->prm; if (prmcur->str[0]==')') { sherror2(ERRUEXPTOK,prmcur->str); return 2; } prmcur=prmcur->next; while (TRUE) { if (prmcur->str[0]==')') break; if (prmcur->prmno!=PPPATOR) { sherror2(ERRUEXPTOK,prmcur->str); return 2; } if ((prmcur->next==NULL) || ((prmcur->next)->next==NULL)) { sherror2(ERRUEXPTOK,prmcur->str); return 2; } prmcur=(prmcur->next)->next; } if ((st=cmdstackgetpo(sx))==NULL) return -1; (st->cmd)->done=cmdcur; cmdstackrmlast(sx); if ((st=cmdstackcat(sx,CPPATI))==NULL) return -1; st->cmd=cmdcur; break; case CPPATO: if (cmdstackgetlast(sx)!=CPPATI) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((st=cmdstackgetpo(sx))==NULL) return -1; (st->cmd)->done=cmdcur; cmdstackrmlast(sx); if ((st=cmdstackcat(sx,CPPATO))==NULL) return -1; st->cmd=cmdcur; break; case CPESAC: c=cmdstackgetlast(sx); if ((c!=CPCASE) && (c!=CPPATI) && (c!=CPPATO)) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((st=cmdstackgetpo(sx))==NULL) return -1; (st->cmd)->done=cmdcur; cmdstackrmlast(sx); break; case CPFOR: if (cmdstackcat(sx,CPFOR)==NULL) return -1; prmcur=(cmdcur->prm)->next; if (prmcur==NULL) { sherror2(ERRSYNTAX,(cmdcur->prm)->str); return 2; } prmcur=prmcur->next; if (prmcur!=NULL) { if (strcmp0("in",prmcur->str)!=0) { sherror2(ERRSYNTAX,prmcur->str); return 2; } prmcur=prmcur->next; while (prmcur!=NULL) { if ((prmcur->prmno!=PPNO) && (prmcur->prmno!=PPEND)) { sherror2(ERRUEXPTOK,prmcur->str); return 2; } prmcur=prmcur->next; } } break; case CPWHILE: if (cmdstackcat(sx,CPWHILE)==NULL) return -1; break; case CPUNTIL: if (cmdstackcat(sx,CPUNTIL)==NULL) return -1; break; case CPDO: c=cmdstackgetlast(sx); if ((c!=CPFOR) && (c!=CPWHILE) && (c!=CPUNTIL)) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } cmdstackrmlast(sx); if ((st=cmdstackcat(sx,CPDO))==NULL) return -1; st->cmd=cmdcur; break; case CPDONE: if (cmdstackgetlast(sx)!=CPDO) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((st=cmdstackgetpo(sx))==NULL) return -1; (st->cmd)->done=cmdcur; cmdstackrmlast(sx); break; case CPFN: s=(cmdcur->prm)->str; for (i=0;s[i]!='\0';i++) if (!isalnum(s[i]) && (s[i]!='_')) { sherror2(ERRIDENT,s); return 2; } if ((st=cmdstackcat(sx,CPFN))==NULL) return -1; st->cmd=cmdcur; break; case CPBI: if (cmdstackgetlast(sx)!=CPFN) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((st=cmdstackcat(sx,CPBI))==NULL) return -1; st->cmd=cmdcur; break; case CPBO: if (cmdstackgetlast(sx)!=CPBI) { sherror2(ERRUEXPTOK,(cmdcur->prm)->str); return 2; } if ((st=cmdstackgetpo(sx))==NULL) return -1; (st->cmd)->done=cmdcur; cmdstackrmlast(sx); cmdstackrmlast(sx); break; default: break; } cmdcur=cmdcur->next; } return 0; } struct set_env_arg { struct nshell *nshell; char ***newenviron; }; static int set_env_val(struct nhash *h, void *data) { struct vallist *valcur; struct set_env_arg *arg; const char *val, *env; char *s; int r; valcur = (struct vallist *) h->val.p; arg = (struct set_env_arg *) data; if (valcur->func) return 0; r = getexp(arg->nshell, valcur->name); if (r || valcur->arg) { val = valcur->val; } else if ((env = g_getenv(valcur->name))) { val = env; } else { return 0; } s = g_strdup_printf("%s=%s", valcur->name, val); if (s == NULL) return 1; if (arg_add(arg->newenviron, s) == NULL) { g_free(s); return 1; } return 0; } int msleep(int ms) { #ifdef HAVE_NANOSLEEP struct timespec ts; ts.tv_sec = ms / 1000; ts.tv_nsec = (ms % 1000) * 1000000; return nanosleep(&ts, NULL); #else return usleep(ms * 1000); #endif } #ifdef WINDOWS static int WaitProc; static void * proc_in_thread(void *ptr) { char *cmd; PROCESS_INFORMATION pi; STARTUPINFO si; DWORD exit_code; int r; if (ptr == NULL) { return NULL; } while (! WaitProc) { msleep(1); } cmd = (char *) ptr; ZeroMemory(&si, sizeof(si)); si.cb = sizeof(si); r = CreateProcess(NULL, cmd, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi); if (r == 0) { show_system_error(); WaitProc = 0; return NULL; } CloseHandle(pi.hThread); WaitForSingleObject(pi.hProcess, INFINITE); GetExitCodeProcess(pi.hProcess, &exit_code); CloseHandle(pi.hProcess); WaitProc = 0; return GINT_TO_POINTER(exit_code); } static char * quote_args(char **args) { int len, i; char *cmd, *ptr; if (args == NULL) { return NULL; } for (len = i = 0; args[i]; i++) { len += strlen(args[i]) * 2 + 3; } cmd = g_malloc(len + 1); if (cmd == NULL) { return NULL; } ptr = cmd; for (i = 0; args[i]; i++) { char *arg, ch; *ptr = '"'; ptr++; arg = args[i]; while (*arg) { ch = *arg; if (ch == '"') { *ptr = '\\'; ptr++; } *ptr = ch; ptr++; arg++; } *ptr = '"'; ptr++; *ptr = ' '; ptr++; } *ptr = '\0'; return cmd; } #endif /* WINDOWS */ int cmdexec(struct nshell *nshell,struct cmdlist *cmdroot,int namedfunc) { struct cmdlist *cmdcur,*cmdnew,*cmd; struct prmlist *prmcur,*prmprev,*prm,*prmnewroot; struct vallist *newvalroot; int err,quote,bquote,rcode,needcmd; char *str,*name,*val,*po,*cmdname; int i,j,num,pnum,errlevel,a,looplevel,len; char *arg,*endptr,**env; struct cmdstack *stroot,*stcur,*st; char *fstdout,*fstdin; int istdout,istdin; int sout,sout2,sin,sin2,sin3,fd; int lastc; int pipef; struct objlist *sys; char *tmpfil,*tmpfil2; char *cmds; char *s; char **argv,**newenviron; char **argvsave,**argvnew; int quoted; int argcsave,argcnew; int iftrue,casetrue; char *pat; char *readbuf; int readpo; int readbyte; int ch; char buf[2]; shell_proc proc; #ifndef WINDOWS pid_t pid; #endif /* WINDOWS */ nshell->cmdexec++; err=-1; stroot=NULL; prmnewroot=NULL; fstdout=fstdin=NULL; env=NULL; newenviron=NULL; newvalroot=NULL; cmdname=NULL; sout=sout2=sin=sin2=NOHANDLE; tmpfil2=NULL; if (nshell->optionv) { cmd=cmdroot; while (cmd!=NULL) { prm=cmd->prm; while (prm!=NULL) { printfconsole("%.256s ",prm->str); prm=prm->next; } printfconsole("\n"); cmd=cmd->next; } } cmdcur=cmdroot; while ((cmdcur!=NULL) && (!(nshell->quit))) { if (ninterrupt()) goto errexit; stcur=cmdstackgetpo(&stroot); if ((stcur!=NULL) && (stcur->cmdno==CPBI) && (stcur->cmd!=cmdcur)) { if (addfunc(nshell,stcur->val,cmdcur)==NULL) goto errexit; cmdcur=cmdcur->next; } else { switch (cmdcur->cmdno) { case CPNULL: cmdcur=cmdcur->next; break; case CPIF: if ((st=cmdstackcat(&stroot,CPIF))==NULL) goto errexit; st->iftrue=FALSE; cmdcur=cmdcur->next; break; case CPTHEN: if ((st=cmdstackgetpo(&stroot))==NULL) goto errexit; iftrue=st->iftrue; if (iftrue || nshell->status) cmdcur=cmdcur->done; else { iftrue=TRUE; cmdcur=cmdcur->next; } cmdstackrmlast(&stroot); if ((st=cmdstackcat(&stroot,CPTHEN))==NULL) goto errexit; st->iftrue=iftrue; break; case CPELIF: if ((st=cmdstackgetpo(&stroot))==NULL) goto errexit; iftrue=st->iftrue; if (iftrue) cmdcur=cmdcur->done; else cmdcur=cmdcur->next; cmdstackrmlast(&stroot); if ((st=cmdstackcat(&stroot,CPIF))==NULL) goto errexit; st->iftrue=iftrue; break; case CPELSE: if ((st=cmdstackgetpo(&stroot))==NULL) goto errexit; iftrue=st->iftrue; if (iftrue) cmdcur=cmdcur->done; else cmdcur=cmdcur->next; cmdstackrmlast(&stroot); if ((st=cmdstackcat(&stroot,CPELSE))==NULL) goto errexit; st->iftrue=iftrue; break; case CPFI: cmdstackrmlast(&stroot); cmdcur=cmdcur->next; break; case CPCASE: if ((st=cmdstackcat(&stroot,CPCASE))==NULL) return -1; st->casetrue=FALSE; prmcur=(cmdcur->prm)->next; quote='\0'; bquote='\0'; if ((str=expand(nshell,prmcur->str,"e,&bquote,FALSE))==NULL) goto errexit; if (quote || bquote) { sherror(ERRUEXPEOF); goto errexit; } if ((str=fnexpand(nshell,str))==NULL) goto errexit; wordunsplit(str); st->pat=str; cmdcur=cmdcur->next; break; case CPPATI: if ((st=cmdstackgetpo(&stroot))==NULL) goto errexit; casetrue=st->casetrue; pat=st->pat; st->pat = NULL; /* hito (mem leak of pat) */ if (casetrue) cmdcur=cmdcur->done; else { prm=cmdcur->prm; while (prm!=NULL) { if (wildmatch(prm->str,pat,0)) break; prm=prm->next; prm=prm->next; } if (prm!=NULL) { casetrue=TRUE; cmdcur=cmdcur->next; } else cmdcur=cmdcur->done; } cmdstackrmlast(&stroot); if ((st=cmdstackcat(&stroot,CPPATI))==NULL) goto errexit; st->casetrue=casetrue; st->pat=pat; break; case CPPATO: if ((st=cmdstackgetpo(&stroot))==NULL) goto errexit; casetrue=st->casetrue; pat=st->pat; st->pat = NULL; /* hito (mem leak of pat) */ cmdstackrmlast(&stroot); if ((st=cmdstackcat(&stroot,CPPATO))==NULL) goto errexit; st->casetrue=casetrue; st->pat=pat; cmdcur=cmdcur->done; break; case CPESAC: if ((st=cmdstackgetpo(&stroot))==NULL) goto errexit; casetrue=st->casetrue; pat=st->pat; st->pat = NULL; /* hito (mem leak of pat) */ g_free(pat); cmdstackrmlast(&stroot); cmdcur=cmdcur->next; break; case CPFOR: if ((stcur=cmdstackcat(&stroot,CPFOR))==NULL) goto errexit; stcur->cmd=cmdcur; prmcur=(cmdcur->prm)->next; stcur->val=prmcur->str; prmcur=prmcur->next; if (prmcur==NULL) stcur->ival=0; else { stcur->ival=-1; prmnewroot=NULL; prmprev=NULL; prmcur=prmcur->next; while (prmcur!=NULL) { if ((prm=g_malloc(sizeof(struct prmlist)))==NULL) goto errexit; if (prmprev==NULL) prmnewroot=prm; else prmprev->next=prm; prm->next=NULL; prm->str=NULL; prm->prmno=prmcur->prmno; quote='\0'; bquote='\0'; if ((str=expand(nshell,prmcur->str,"e,&bquote,FALSE))==NULL) goto errexit; if (quote || bquote) { sherror(ERRUEXPEOF); goto errexit; } if (str[0]!='\0') { if ((prm->str=fnexpand(nshell,str))==NULL) goto errexit; } else { g_free(str); prm->str=NULL; } if ((num=wordsplit(prm))==-1) goto errexit; for (j=0;jnext; } prmcur=prmcur->next; } /* remove null parameter and command end */ prmcur=prmnewroot; prmprev=NULL; while (prmcur!=NULL) { if ((prmcur->str==NULL) || (prmcur->prmno==PPEND)) { if (prmprev==NULL) prmnewroot=prmcur->next; else prmprev->next=prmcur->next; prm=prmcur; prmcur=prmcur->next; g_free(prm->str); g_free(prm); } else { prmprev=prmcur; prmcur=prmcur->next; } } prmfree(stcur->prm); stcur->prm=prmnewroot; prmnewroot=NULL; } cmdcur=cmdcur->next; break; case CPWHILE: if ((stcur=cmdstackcat(&stroot,CPWHILE))==NULL) goto errexit; stcur->cmd=cmdcur; cmdcur=cmdcur->next; break; case CPUNTIL: if ((stcur=cmdstackcat(&stroot,CPUNTIL))==NULL) goto errexit; stcur->cmd=cmdcur; cmdcur=cmdcur->next; break; case CPDO: if ((stcur=cmdstackgetpo(&stroot))==NULL) goto errexit; if (stcur->cmdno==CPFOR) { if (stcur->ival==-1) { prmcur=stcur->prm; if (prmcur==NULL) { cmdcur=cmdcur->done; cmdstackrmlast(&stroot); cmdcur=cmdcur->next; break; } if (addval(nshell,stcur->val,prmcur->str)==NULL) goto errexit; stcur->prm=prmcur->next; g_free(prmcur->str); g_free(prmcur); } else { stcur->ival++; if (stcur->ivalargc) { if (addval(nshell,stcur->val,nshell->argv[stcur->ival])==NULL) goto errexit; } else { cmdcur=cmdcur->done; cmdstackrmlast(&stroot); cmdcur=cmdcur->next; break; } } } else if (stcur->cmdno==CPWHILE) { if (nshell->status) { cmdcur=cmdcur->done; cmdstackrmlast(&stroot); cmdcur=cmdcur->next; break; } } else if (stcur->cmdno==CPUNTIL) { if (!nshell->status) { cmdcur=cmdcur->done; cmdstackrmlast(&stroot); cmdcur=cmdcur->next; break; } } cmdcur=cmdcur->next; break; case CPDONE: if ((stcur=cmdstackgetpo(&stroot))==NULL) goto errexit; cmdcur=stcur->cmd; cmdcur=cmdcur->next; break; case CPFN: if ((stcur=cmdstackcat(&stroot,CPFN))==NULL) goto errexit; prmcur=cmdcur->prm; stcur->val=prmcur->str; if (newfunc(nshell,prmcur->str)==NULL) goto errexit; cmdcur=cmdcur->next; break; case CPBI: if ((st=cmdstackgetpo(&stroot))==NULL) goto errexit; if ((stcur=cmdstackcat(&stroot,CPBI))==NULL) goto errexit; stcur->val=st->val; stcur->cmd=cmdcur->done; cmdcur=cmdcur->next; break; case CPBO: cmdstackrmlast(&stroot); cmdstackrmlast(&stroot); cmdcur=cmdcur->next; break; case CPNO: prmnewroot=NULL; prmprev=NULL; prmcur=cmdcur->prm; while (prmcur!=NULL) { if (prmcur->prmno!=PPSI2) { quote='\0'; bquote='\0'; if ((str=expand(nshell,prmcur->str,"e,&bquote,FALSE))==NULL) goto errexit; if (quote || bquote) { g_free(str); sherror(ERRUEXPEOF); goto errexit; } prmcur->quoted=FALSE; } else { if ((str=g_malloc(strlen(prmcur->str)+1))==NULL) goto errexit; strcpy(str,prmcur->str); } if ((prmcur->prmno!=PPNO) || (str[0]!='\0')) { if ((prm=g_malloc(sizeof(struct prmlist)))==NULL) goto errexit; if (prmprev==NULL) prmnewroot=prm; else prmprev->next=prm; prm->next=NULL; prm->prmno=prmcur->prmno; prm->quoted=prmcur->quoted; if (prmcur->prmno!=PPSI2) { if ((prm->str=fnexpand(nshell,str))==NULL) goto errexit; if (prm->prmno==PPNO) { if ((num=wordsplit(prm))==-1) goto errexit; for (j=0;jprmno=PPNO; prm=prm->next; } } else { wordunsplit(prm->str); prmprev=prm; } } else { prm->str=str; prmprev=prm; } } else g_free(str); prmcur=prmcur->next; } /* remove null parameter & check redirect and pipe */ istdout=istdin=PPNO; pipef=FALSE; prmcur=prmnewroot; prmprev=NULL; pnum=0; while (prmcur!=NULL) { if (prmcur->str==NULL) { if (prmprev==NULL) prmnewroot=prmcur->next; else prmprev->next=prmcur->next; prm=prmcur; prmcur=prmcur->next; g_free(prm->str); g_free(prm); } else if ((prmcur->prmno==PPSI1) || (prmcur->prmno==PPSI2) || (prmcur->prmno==PPSO1) || (prmcur->prmno==PPSO2)) { if (prmprev==NULL) prmnewroot=prmcur->next; else prmprev->next=prmcur->next; prm=prmcur; prmcur=prmcur->next; g_free(prm->str); g_free(prm); switch (prmcur->prmno) { case PPSI1: g_free(fstdin); fstdin=prmcur->str; istdin=PPSI1; break; case PPSI2: g_free(fstdin); fstdin=prmcur->str; istdin=PPSI2; quoted=prmcur->quoted; break; case PPSO1: g_free(fstdout); fstdout=prmcur->str; istdout=PPSO1; break; case PPSO2: g_free(fstdout); fstdout=prmcur->str; istdout=PPSO2; break; } if (prmprev==NULL) prmnewroot=prmcur->next; else prmprev->next=prmcur->next; prm=prmcur; prmcur=prmcur->next; g_free(prm); } else if (prmcur->prmno==PPPIPE) { pipef=TRUE; if (prmprev==NULL) prmnewroot=prmcur->next; else prmprev->next=prmcur->next; prm=prmcur; prmcur=prmcur->next; g_free(prm->str); g_free(prm); } else if (prmcur->prmno==PPEND) { if (prmprev==NULL) prmnewroot=prmcur->next; else prmprev->next=prmcur->next; prm=prmcur; prmcur=prmcur->next; g_free(prm->str); g_free(prm); } else if ((prmcur->prmno!=PPSETV) && (prmcur->prmno!=PPSETO)) { pnum++; prmprev=prmcur; prmcur=prmcur->next; } else { prmprev=prmcur; prmcur=prmcur->next; } } /* set variable */ prmcur=prmnewroot; prmprev=NULL; while (prmcur!=NULL) { if (prmcur->prmno==PPSETV) { po=strchr(prmcur->str,'='); if ((name=g_malloc(po-prmcur->str+1))==NULL) goto errexit; strncpy(name,prmcur->str,po-prmcur->str); name[po-prmcur->str]='\0'; if ((val=g_malloc(strlen(prmcur->str)-(po-prmcur->str)))==NULL) { g_free(name); goto errexit; } strcpy(val,po+1); if (pnum==0) po=addval(nshell,name,val); else po=saveval(nshell,name,val,&newvalroot); g_free(name); g_free(val); if (po==NULL) goto errexit; g_free(prmcur->str); if (prmprev==NULL) prmnewroot=prmcur->next; else prmprev->next=prmcur->next; prm=prmcur; prmcur=prmcur->next; g_free(prm); } else if (prmcur->prmno==PPSETO) { /* set object */ if (sputobj(prmcur->str)==-1) goto errexit; g_free(prmcur->str); if (prmprev==NULL) prmnewroot=prmcur->next; else prmprev->next=prmcur->next; prm=prmcur; prmcur=prmcur->next; g_free(prm); } else { prmprev=prmcur; prmcur=prmcur->next; } } prmcur=prmnewroot; if ((prmcur!=NULL) && (prmcur->prmno==PPNO)) { /* set environment variable */ #if USE_HASH { struct set_env_arg se_arg; se_arg.nshell = nshell; se_arg.newenviron = &newenviron; if (nhash_each(nshell->valroot, set_env_val, &se_arg)) goto errexit; } #else struct vallist *valcur = nshell->valroot; while (valcur!=NULL) { if (!valcur->func && (getexp(nshell,valcur->name) || valcur->arg || (g_getenv(valcur->name)!=NULL))) { len=strlen(valcur->name); if (getexp(nshell,valcur->name) || valcur->arg) val=valcur->val; else val=g_getenv(valcur->name); if ((s=g_malloc(len+strlen(val)+2))==NULL) goto errexit; strcpy(s,valcur->name); s[len]='='; strcpy(s+len+1,val); if (arg_add(&newenviron,s)==NULL) { g_free(s); goto errexit; } } valcur=valcur->next; } #endif env=MainEnviron; MainEnviron=newenviron; newenviron=NULL; sout=sin=NOHANDLE; if (istdin!=PPNO) { if (istdin==PPSI1) sin=nopen(fstdin,O_RDONLY,NFMODE); else if (istdin==PPSI2) { sin=nopen(fstdin,O_RDONLY,NFMODE); if (!quoted) { fd = n_mkstemp(getval(nshell,"TMPDIR"), TEMPPFX, &tmpfil2); if (fd < 0) { nclose(sin); goto errexit; } do { if ((s=nstrnew())==NULL) { nclose(sin); nclose(fd); goto errexit; } do { if (nread(sin,buf,1)>0) ch=buf[0]; else ch=EOF; if (ch==EOF) break; else { if (ch=='\n') ch='\0'; if ((s=nstrccat(s,ch))==NULL) { nclose(sin); nclose(fd); goto errexit; } } } while (ch!='\0'); quote=bquote='\0'; str=s; s=expand(nshell,str,"e,&bquote,FALSE); g_free(str); if (s==NULL) { nclose(sin); nclose(fd); goto errexit; } wordunsplit(s); len=strlen(s); if (ch!=EOF) { s[len]='\n'; len++; } nwrite(fd,s,len); g_free(s); } while (ch!=EOF); nclose(sin); nclose(fd); sin=nopen(tmpfil2,O_RDONLY,NFMODE); } } } else if (cmdcur->pipefile!=NULL) { sin=nopen(cmdcur->pipefile,O_RDONLY,NFMODE); } if (sin!=NOHANDLE) sin2=nredirect(0,sin); /* redirect : stdout */ if (istdout!=PPNO) { if (Security) { sherror(ERRSECURITY); goto errexit; } if (istdout==PPSO2) sout=nopen(fstdout,O_APPEND|O_CREAT|O_WRONLY,NFMODE); else sout=nopen(fstdout,O_CREAT|O_WRONLY|O_TRUNC,NFMODE); /* pipe */ } else if (pipef) { if ((sys=getobject("system"))==NULL) goto errexit; sout = n_mkstemp(getval(nshell,"TMPDIR"), TEMPPFX, &tmpfil); if (sout < 0) goto errexit; unlinkfile(&((cmdcur->next)->pipefile)); (cmdcur->next)->pipefile=tmpfil; } if (sout!=NOHANDLE) sout2=nredirect(1,sout); if (nshell->optionx) { for (i=0;icmdexec;i++) printfconsole("+"); printfconsole(" "); prm=prmcur; while (prm!=NULL) { printfconsole("%.256s ",prm->str); prm=prm->next; } printfconsole("\n"); } cmds=prmcur->str; /* exec named function */ if ((cmdnew=getfunc(nshell,cmds))!=NULL) { needcmd=FALSE; st=NULL; rcode=syntax(nshell,cmdnew,&needcmd,&st); cmdstackfree(st); if ((rcode!=0) || (st!=NULL) || (needcmd)) goto errexit; argvnew=NULL; if ((s=g_malloc(strlen((nshell->argv)[0])+1))==NULL) goto errexit; strcpy(s,(nshell->argv)[0]); if (arg_add(&argvnew,s)==NULL) { g_free(s); arg_del(argvnew); goto errexit; } prmcur=prmcur->next; while (prmcur!=NULL) { if ((s=g_malloc(strlen(prmcur->str)+1))==NULL) { g_free(s); arg_del(argvnew); goto errexit; } strcpy(s,prmcur->str); if (arg_add(&argvnew,s)==NULL) { g_free(s); arg_del(argvnew); goto errexit; } prmcur=prmcur->next; } argcnew=getargc(argvnew); argcsave=nshell->argc; argvsave=nshell->argv; nshell->argc=argcnew; nshell->argv=argvnew; rcode=cmdexec(nshell,cmdnew,TRUE); arg_del(nshell->argv); nshell->argc=argcsave; nshell->argv=argvsave; if ((rcode==-1) || (rcode==1)) goto errexit; /* exec special command */ /* . */ } else if (strcmp0(".",cmds)==0) { prmcur=prmcur->next; if (prmcur!=NULL) { cmdname=nsearchpath(getval(nshell,"PATH"),prmcur->str,TRUE); if (cmdname!=NULL) { argvnew=NULL; if ((s=g_malloc(strlen((nshell->argv)[0])+1))==NULL) goto errexit; strcpy(s,(nshell->argv)[0]); if (arg_add(&argvnew,s)==NULL) { g_free(s); arg_del(argvnew); goto errexit; } prmcur=prmcur->next; while (prmcur!=NULL) { if ((s=g_malloc(strlen(prmcur->str)+1))==NULL) { g_free(s); arg_del(argvnew); goto errexit; } strcpy(s,prmcur->str); if (arg_add(&argvnew,s)==NULL) { g_free(s); arg_del(argvnew); goto errexit; } prmcur=prmcur->next; } argcnew=getargc(argvnew); sin=nopen(cmdname,O_RDONLY,NFMODE); g_free(cmdname); cmdname=NULL; if (sin==NOHANDLE) { sherror2(ERROPEN,cmdname); arg_del(argvnew); goto errexit; } argcsave=nshell->argc; argvsave=nshell->argv; nshell->argc=argcnew; nshell->argv=argvnew; sin3=storeshhandle(nshell,sin,&readbuf,&readbyte,&readpo); rcode=cmdexecute(nshell,NULL); restoreshhandle(nshell,sin3,readbuf,readbyte,readpo); nclose(sin); arg_del(nshell->argv); nshell->argc=argcsave; nshell->argv=argvsave; if ((rcode!=0) && (rcode!=1)) goto errexit; } else { sherror2(ERRNOFIL,prmcur->str); goto errexit; } } /* break */ } else if (strcmp0("break",cmds)==0) { if (pnum>2) { sherror(ERREXTARG); goto errexit; } else if (pnum==2) { arg=(prmcur->next)->str; a=strtol(arg,&endptr,10); if (endptr[0]!='\0') { sherror2(ERRNUMERIC,arg); goto errexit; } } else a=1; looplevel=0; stcur=stroot; while (stcur!=NULL) { if ((stcur->cmdno==CPFOR) || (stcur->cmdno==CPWHILE) || (stcur->cmdno==CPUNTIL)) looplevel++; stcur=stcur->next; } if (looplevel!=0) { while (a>0) { if ((stcur=cmdstackgetpo(&stroot))==NULL) break; if ((stcur->cmdno==CPFOR) && (stcur->ival==-1)) { prmfree(stcur->prm); stcur->prm=NULL; } if ((stcur->cmdno==CPFOR) || (stcur->cmdno==CPWHILE) || (stcur->cmdno==CPUNTIL)) { cmdcur=stcur->cmd; while (cmdcur->cmdno!=CPDO) cmdcur=cmdcur->next; cmdcur=cmdcur->done; cmdstackrmlast(&stroot); a--; } else cmdstackrmlast(&stroot); } } /* continue */ } else if (strcmp0("continue",cmds)==0) { if (pnum>2) { sherror(ERREXTARG); goto errexit; } else if (pnum==2) { arg=(prmcur->next)->str; a=strtol(arg,&endptr,10); if (endptr[0]!='\0') { sherror2(ERRNUMERIC,arg); goto errexit; } } else a=1; looplevel=0; stcur=stroot; while (stcur!=NULL) { if ((stcur->cmdno==CPFOR) || (stcur->cmdno==CPWHILE) || (stcur->cmdno==CPUNTIL)) looplevel++; stcur=stcur->next; } if (looplevel!=0) { while (a>0) { if ((stcur=cmdstackgetpo(&stroot))==NULL) break; if ((stcur->cmdno==CPFOR) || (stcur->cmdno==CPWHILE) || (stcur->cmdno==CPUNTIL)) { cmdcur=stcur->cmd; a--; if (a>0) { if ((stcur->cmdno==CPFOR) && (stcur->ival==-1)) { prmfree(stcur->prm); stcur->prm=NULL; } cmdstackrmlast(&stroot); } } else cmdstackrmlast(&stroot); } } /* return */ } else if (strcmp0("return",cmds)==0) { if (pnum>2) { sherror(ERREXTARG); goto errexit; } else if (pnum==2) { arg=(prmcur->next)->str; a=strtol(arg,&endptr,10); if (endptr[0]!='\0') { sherror2(ERRNUMERIC,arg); goto errexit; } nshell->status=a; } if (namedfunc) { err=0; goto errexit; } /* execute object */ } else if (isobject(&cmds)) { len=0; prm=prmcur; while (prm!=NULL) { len+=strlen(prm->str)+1; prm=prm->next; } if ((str=g_malloc(len))==NULL) goto errexit; str[0]='\0'; prm=prmcur; while (prm!=NULL) { strcat(str,prm->str); if (prm->next!=NULL) strcat(str," "); prm=prm->next; } errlevel=sexeobj(str); g_free(str); if (errlevel==-1) goto errexit; nshell->status=errlevel; nshell->status=errlevel; lastc=cmdstackgetlast(&stroot); if ((lastc!=CPIF) && (lastc!=CPELIF) && (lastc!=CPWHILE) && (lastc!=CPUNTIL) && (nshell->optione) && (errlevel!=0)) { err=3; goto errexit; } nshell->status=errlevel; lastc=cmdstackgetlast(&stroot); if ((lastc!=CPIF) && (lastc!=CPELIF) && (lastc!=CPWHILE) && (lastc!=CPUNTIL) && (nshell->optione) && (errlevel!=0)) { err=3; goto errexit; } if (nshell->quit) break; if (nshell->quit) break; /* exec inner command */ } else { proc = check_cmd(prmcur->str); if (proc) { argv = NULL; if (arg_add(&argv, NULL) == NULL) goto errexit; prm = prmnewroot; while (prm) { if (arg_add(&argv, prm->str) == NULL) { g_free(argv); goto errexit; } prm = prm->next; } errlevel = proc(nshell, pnum, (char **)argv); g_free(argv); } else { cmdname=nsearchpath(getval(nshell,"PATH"),prmcur->str,FALSE); if (cmdname==NULL) { sherror2(ERRCFOUND,prmcur->str); goto errexit; } else { if (Security) { sherror(ERRSECURITY); goto errexit; } argv=NULL; if (arg_add(&argv,NULL)==NULL) goto errexit; prm=prmnewroot; while (prm!=NULL) { if (arg_add(&argv,prm->str)==NULL) { g_free(argv); goto errexit; } prm=prm->next; } #ifdef WINDOWS { GThread *thread; char *ptr, *cmd; ptr = quote_args(argv); if (ptr == NULL) { sherror(ERRMEMORY); goto errexit; } cmd = g_locale_from_utf8(ptr, -1, NULL, NULL, NULL); g_free(ptr); if (cmd == NULL) { sherror(ERRMEMORY); goto errexit; } errlevel = 0; thread = g_thread_create(proc_in_thread, cmd, TRUE, NULL); if (thread) { WaitProc = 1; while (WaitProc) { msleep(1); eventloop(); } errlevel = GPOINTER_TO_INT(g_thread_join(thread)); } g_free(cmd); } #else /* WINDOWS */ unset_childhandler(); pid = fork(); if (pid < 0) { sherror2(ERRSYSTEM,"fork"); set_childhandler(); goto errexit; } else if (pid == 0) { errlevel=execve(cmdname,(char **)argv,MainEnviron); printfstderr("shell: %.64s: %.64s", argv[0],g_strerror(errno)); exit(errlevel); } else { if (has_eventloop()) { while (waitpid(pid,&errlevel,WNOHANG)==0) { eventloop(); msleep(10); } } else { waitpid(pid, &errlevel, 0); } errlevel = WIFEXITED(errlevel) ? WEXITSTATUS(errlevel) : 1; } set_childhandler(); #endif /* WINDOWS */ g_free(argv); g_free(cmdname); cmdname=NULL; } } nshell->status = errlevel; lastc=cmdstackgetlast(&stroot); if ((lastc!=CPIF) && (lastc!=CPELIF) && (lastc!=CPWHILE) && (lastc!=CPUNTIL) && (nshell->optione) && (errlevel!=0)) { err=3; goto errexit; } if (nshell->quit) break; } if (sout2!=NOHANDLE) { nredirect2(1,sout2); sout2=NOHANDLE; } if (sin2!=NOHANDLE) { nredirect2(0,sin2); sin2=NOHANDLE; } unlinkfile(&tmpfil2); arg_del(MainEnviron); MainEnviron=env; env=NULL; } restoreval(nshell,newvalroot); newvalroot=NULL; prmfree(prmnewroot); prmnewroot=NULL; g_free(fstdout); g_free(fstdin); fstdout=fstdin=NULL; unlinkfile(&(cmdcur->pipefile)); cmdcur=cmdcur->next; break; default: unlinkfile(&(cmdcur->pipefile)); cmdcur=cmdcur->next; break; } } } err=0; errexit: cmdstackfree(stroot); prmfree(prmnewroot); g_free(fstdout); g_free(fstdin); g_free(cmdname); arg_del(newenviron); if (env!=NULL) { arg_del(MainEnviron); MainEnviron=env; } if (newvalroot!=NULL) restoreval(nshell,newvalroot); if (sout2!=NOHANDLE) nredirect2(1,sout2); if (sin2!=NOHANDLE) nredirect2(0,sin2); unlinkfile(&tmpfil2); cmdcur=cmdroot; while (cmdcur!=NULL) { prmcur=cmdcur->prm; while (prmcur!=NULL) { if (prmcur->prmno == PPSI2 && prmcur->next!=NULL && prmcur->next->str != NULL) { g_unlink((prmcur->next)->str); prmcur=prmcur->next; } prmcur=prmcur->next; } unlinkfile(&(cmdcur->pipefile)); cmdcur=cmdcur->next; } nshell->cmdexec--; return err; } int cmdexecute(struct nshell *nshell, const char *cline) /* return -2: unexpected eof detected -1: fatal error 0: no error 1: eof detected 2: syntax error 3: runtime error */ { struct cmdlist *cmdroot,*cmdcur,*cmdnew; struct cmdstack *stroot; int needcmd,rcode; int istr; istr=0; nshell->quit=FALSE; while (TRUE) { needcmd=FALSE; cmdroot=NULL; cmdcur=cmdroot; cmdnew=NULL; stroot=NULL; if (nshell->deleted) { rcode = -1; break; } do { if ((rcode=getcmdline(nshell,&cmdnew,cmdroot,cline,&istr))!=0) break; if ((rcode=checkcmd(nshell,&cmdnew))!=0) break; if ((rcode=syntax(nshell,cmdnew,&needcmd,&stroot))!=0) break; if (cmdnew!=NULL) { if (cmdcur==NULL) cmdroot=cmdnew; else cmdcur->next=cmdnew; cmdcur=cmdnew; while (cmdcur->next!=NULL) cmdcur=cmdcur->next; cmdnew=NULL; } } while ((stroot!=NULL) || (needcmd)); if (rcode!=0) { cmdfree(cmdnew); cmdfree(cmdroot); cmdstackfree(stroot); if (nshell->quit) rcode=0; break; } else if (cmdroot!=NULL) { rcode=cmdexec(nshell,cmdroot,FALSE); cmdfree(cmdroot); if (nshell->quit) { rcode=0; break; } if (rcode!=0) break; } } nshell->quit=FALSE; return rcode; } void setshhandle(struct nshell *nshell,int fd) { nshell->fd=fd; nshell->readbyte=0; nshell->readpo=0; } static int storeshhandle(struct nshell *nshell,int fd, char **readbuf,int *readbyte,int *readpo) { int sfd; sfd=nshell->fd; *readbuf=nshell->readbuf; *readbyte=nshell->readbyte; *readpo=nshell->readpo; nshell->readbuf=g_malloc(SHELLBUFSIZE); nshell->readbyte=0; nshell->readpo=0; nshell->fd=fd; return sfd; } static void restoreshhandle(struct nshell *nshell,int fd, char *readbuf,int readbyte,int readpo) { g_free(nshell->readbuf); nshell->fd=fd; nshell->readbuf=readbuf; nshell->readbyte=readbyte; nshell->readpo=readpo; } int getshhandle(struct nshell *nshell) { return nshell->fd; } struct nshell * newshell(void) { struct nshell *nshell; char *name,**env,*tok; int i,len; nshell = g_malloc(sizeof(struct nshell)); if (nshell == NULL) return NULL; #if USE_HASH nshell->valroot = nhash_new(); nshell->exproot = nhash_new(); #else nshell->valroot = NULL; nshell->exproot = NULL; #endif env = MainEnviron; i=0; while (env && env[i]) { tok=env[i]; name=getitok2(&tok,&len,"="); if (tok[0]=='=') tok++; if (addval(nshell,name,tok)==NULL) { g_free(name); delshell(nshell); return NULL; } g_free(name); i++; } if ((getval(nshell,"PATH")==NULL) && (g_getenv("Path")!=NULL)) { const char *path; char *tmp; path = g_getenv("Path"); tmp = g_strdup(path); if (tmp) { addval(nshell,"PATH", tmp); g_free(tmp); } } nshell->argc=0; nshell->argv=NULL; nshell->cmdexec=0; nshell->status=0; nshell->quit=0; nshell->fd=stdinfd(); nshell->options=TRUE; nshell->optionf=FALSE; nshell->optione=TRUE; nshell->optionv=FALSE; nshell->optionx=FALSE; nshell->readbuf=g_malloc(SHELLBUFSIZE); nshell->readbyte=0; nshell->readpo=0; nshell->deleted = 0; return nshell; } static int del_vallist(struct nhash *h, void *data) { struct vallist *val; val = (struct vallist *) h->val.p; free_vallist(val); return 0; } void delshell(struct nshell *nshell) { #if ! USE_HASH struct vallist *valcur, *valdel; struct explist *expcur,*expdel; #endif if (nshell==NULL) return; #if USE_HASH nhash_each(nshell->valroot, del_vallist, NULL); nhash_free(nshell->valroot); #else valcur=nshell->valroot; while (valcur!=NULL) { g_free(valcur->name); if (valcur->func) cmdfree(valcur->val); else g_free(valcur->val); valdel=valcur; valcur=valcur->next; g_free(valdel); } #endif #if USE_HASH nhash_free(nshell->exproot); #else expcur=nshell->exproot; while (expcur!=NULL) { g_free(expcur->val); expdel=expcur; expcur=expcur->next; g_free(expdel); } #endif arg_del(nshell->argv); g_free(nshell->readbuf); g_free(nshell); return; } void sherror(int code) { printfstderr("shell: %.64s\n",cmderrorlist[code-100]); } void sherror2(int code,char *mes) { if (mes!=NULL) { printfstderr("shell: %.64s `%.64s'.\n",cmderrorlist[code-100],mes); } else { printfstderr("shell: %.64s.\n",cmderrorlist[code-100]); } } void sherror3(char *cmd,int code,char *mes) { cmd = CHK_STR(cmd); if (mes!=NULL) { printfstderr("shell: %.64s: %.64s `%.64s'.\n", cmd,cmderrorlist[code-100],mes); } else { printfstderr("shell: %.64s: %.64s.\n",cmd,cmderrorlist[code-100]); } } void sherror4(char *cmd,int code) { cmd = CHK_STR(cmd); printfstderr("shell: %.64s: %.64s\n",cmd,cmderrorlist[code-100]); } void shellsavestdio(struct nshell *nshell) { nshell->sgetstdin=getstdin; nshell->sputstdout=putstdout; nshell->sprintfstdout=printfstdout; getstdin=shgetstdin; putstdout=shputstdout; printfstdout=shprintfstdout; } void shellrestorestdio(struct nshell *nshell) { getstdin=nshell->sgetstdin; putstdout=nshell->sputstdout; printfstdout=nshell->sprintfstdout; } int setshelloption(struct nshell *nshell,char *opt) { int flag; if ((opt[0]!='-') && (opt[0]!='+')) return 1; if (opt[0]=='-') flag=TRUE; else flag=FALSE; switch (opt[1]) { case 's': nshell->options=flag; break; case 'e': nshell->optione=flag; break; case 'v': nshell->optionv=flag; break; case 'x': nshell->optionx=flag; break; case 'f': nshell->optionf=flag; break; default: sherror2(ERRILOPS,opt); return -1; } return 0; } int getshelloption(struct nshell *nshell,char opt) { switch (opt) { case 's': return nshell->options; case 'e': return nshell->optione; case 'v': return nshell->optionv; case 'x': return nshell->optionx; case 'f': return nshell->optionf; default: break; } return 0; } int set_shell_args(struct nshell *nshell, int j, const char *argv0, int argc, char **argv) { char *s, **argv2; int argc2; argv2 = NULL; s = g_strdup(argv0); if (s == NULL) { return ERRMEMORY; } if (arg_add(&argv2, s) == NULL) { g_free(s); arg_del(argv2); return ERRMEMORY; } for (; j < argc; j++) { if (argv[j]) { s = g_strdup(argv[j]); if (s == NULL) { return ERRMEMORY; } if (arg_add(&argv2, s) == NULL) { g_free(s); arg_del(argv2); return ERRMEMORY; } } } argc2 = getargc(argv2); arg_del(nshell->argv); nshell->argv = argv2; nshell->argc = argc2; return 0; } void setshellargument(struct nshell *nshell,int argc,char **argv) { arg_del(nshell->argv); nshell->argc=argc; nshell->argv=argv; } void ngraphenvironment(struct nshell *nshell) { char *sver,*lib,*home,*conf,*data,*addin; struct objlist *sobj; char *systemname; char *pathset; sobj=chkobject("system"); getobj(sobj,"name",0,0,NULL,&systemname); getobj(sobj,"conf_dir",0,0,NULL,&conf); getobj(sobj,"data_dir",0,0,NULL,&data); getobj(sobj,"lib_dir",0,0,NULL,&lib); getobj(sobj,"home_dir",0,0,NULL,&home); sver=getobjver("system"); addval(nshell,"NGRAPH",systemname); addval(nshell,"VERSION",sver); addval(nshell,"NGRAPHCONF",conf); addval(nshell,"NGRAPHLIB",lib); addval(nshell,"NGRAPHHOME",home); if (getval(nshell,"PS1")==NULL) addval(nshell,"PS1","Ngraph$ "); if (getval(nshell,"PS2")==NULL) addval(nshell,"PS2",">"); if (getval(nshell,"IFS")==NULL) addval(nshell,"IFS"," \t\n"); if (getval(nshell,"IGNOREEOF")==NULL) addval(nshell,"IGNOREEOF","10"); addin = g_strdup_printf("%s/addin", data); pathset = g_strdup_printf("PATH='%s%s%s%s%s%s%s%s'$PATH", home, PATHSEP, addin, PATHSEP, lib, PATHSEP, ".", PATHSEP); if (pathset) { #ifdef WINDOWS path_to_win(pathset); #endif /* WINDOWS */ cmdexecute(nshell,pathset); g_free(addin); g_free(pathset); } } int str_calc(const char *str, double *val, int *r, char **err_msg) { int ecode, rcode; static MathEquation *eq = NULL; MathValue value = {0, 0}; if (r) { *r = MATH_VALUE_ERROR; } if (err_msg) { *err_msg = NULL; } if (str == NULL || val == NULL) { return ERRMILLEGAL; } *val = 0; if (eq == NULL) { eq = math_equation_basic_new(); if (eq == NULL) { return ERRMEMORY; } } ecode = math_equation_parse(eq, str); if (ecode) { if (err_msg) { *err_msg = math_err_get_error_message(eq, str, ecode); } return ERRMSYNTAX; } rcode = math_equation_calculate(eq, &value); ecode = (rcode) ? ERRMFAT : 0; *val = value.val; if (value.type == MATH_VALUE_NAN || value.type == MATH_VALUE_UNDEF) { rcode = value.type; } if (ecode) { return ecode; } if (r) { *r = rcode; } return 0; } #ifdef WINDOWS void show_system_error(void) { LPVOID *msg; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR) &msg, 0, NULL); shputstderr((char *)msg); LocalFree(msg); } static void * system_in_thread(void *ptr) { char *cmd; PROCESS_INFORMATION pi; STARTUPINFO si; int r; if (ptr == NULL) { return NULL; } cmd = (char *) ptr; ZeroMemory(&si, sizeof(si)); si.cb = sizeof(si); r = CreateProcess(NULL, cmd, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi); if (r == 0) { show_system_error(); return NULL; } CloseHandle(pi.hThread); WaitForSingleObject(pi.hProcess, INFINITE); CloseHandle(pi.hProcess); g_free(cmd); return NULL; } #endif /* WINDOWS */ int system_bg(char *cmd) { #ifdef WINDOWS GThread *thread; char *ptr; if (cmd == NULL) return 1; ptr = g_locale_from_utf8(cmd, -1, NULL, NULL, NULL); thread = g_thread_create(system_in_thread, ptr, FALSE, NULL); if (thread == NULL) { return 1; } return 0; #else /* WINDOWS */ if (cmd == NULL) return 1; return ! g_spawn_command_line_async(cmd, NULL); #endif /* WINDOWS */ } ngraph-gtk-6.06.13/src/oshell.c0000644000175000017500000001145412241111703013070 00000000000000/* * $Id: oshell.c,v 1.9 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include "object.h" #include "ioutil.h" #include "shell.h" #define NAME "shell" #define PARENT "object" #define OVERSION "1.00.00" #define MAXCLINE 256 #define ERRRUN 100 #define ERRNOCL 101 #define ERRFILEFIND 102 static char *sherrorlist[]={ "already running.", "no command string is specified.", "no such file", }; #define ERRNUM (sizeof(sherrorlist) / sizeof(*sherrorlist)) struct shlocal { int lock; struct nshell *nshell; }; static int cmdinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct shlocal *shlocal; struct nshell *nshell; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; if ((shlocal=g_malloc(sizeof(struct shlocal)))==NULL) return 1; if (_putobj(obj,"_local",inst,shlocal)) { g_free(shlocal); return 1; } if ((nshell=newshell())==NULL) return 1; ngraphenvironment(nshell); shlocal->lock=0; shlocal->nshell=nshell; return 0; } static int cmddone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct shlocal *shlocal; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"_local",inst,&shlocal); if (shlocal->lock) { shlocal->nshell->deleted = 1; } else { delshell(shlocal->nshell); } return 0; } static int cmdshell(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct shlocal *shlocal; struct nshell *nshell; struct narray *sarray; char **sdata; int i,snum; int err; char *filename,*filename2; int fd; int rcode; char *s; _getobj(obj,"_local",inst,&shlocal); if (shlocal->lock) { error(obj,ERRRUN); return 1; } shlocal->lock=1; nshell=shlocal->nshell; shellsavestdio(nshell); err=1; filename=NULL; sarray=(struct narray *)argv[2]; snum=arraynum(sarray); sdata=arraydata(sarray); for (i=0;ideleted) break; } while (nisatty(getshhandle(nshell)) && (rcode!=0)); if (fd!=NOHANDLE) { nclose(fd); setshhandle(nshell,stdinfd()); if (!getshelloption(nshell,'s')) { do { rcode=cmdexecute(nshell,NULL); } while (nisatty(getshhandle(nshell)) && (rcode!=0)); } } err=0; errexit: shellrestorestdio(nshell); if (nshell->deleted) { delshell(nshell); } else { shlocal->lock = 0; } return err; } static int cmdsecurity(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { set_security(*(int *)argv[2]); return 0; } static struct objtable shell[] = { {"init",NVFUNC,NEXEC,cmdinit,NULL,0}, {"done",NVFUNC,NEXEC,cmddone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"shell",NVFUNC,NREAD|NEXEC,cmdshell,"sa",0}, {"security",NVFUNC,0,cmdsecurity,"b",0}, {"_local",NPOINTER,0,NULL,NULL,0}}; #define TBLNUM (sizeof(shell) / sizeof(*shell)) void * addshell(void) { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,shell,ERRNUM,sherrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/ogra2nul.c0000644000175000017500000004505012241111703013332 00000000000000/* * $Id: ogra2nul.c,v 1.7 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include #include #include #include "common.h" #include "object.h" #include "ioutil.h" #include "gra.h" #include "nstring.h" #include "mathfn.h" #include "nconfig.h" #define NAME "gra2null" #define PARENT "gra2" #define OVERSION "1.00.00" #define ERRCONF 100 static char *g2nulerrorlist[]={ "", }; #define ERRNUM (sizeof(g2nulerrorlist) / sizeof(*g2nulerrorlist)) static int g2nulinit(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; return 0; } static int g2nuldone(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int HelveticaSet[256]={ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 355, 556, 556, 889, 667, 222, 333, 333, 389, 584, 278, 584, 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 278, 278, 584, 584, 584, 556, 1015, 667, 667, 722, 722, 667, 611, 778, 722, 278, 500, 667, 556, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 278, 278, 278, 469, 556, 222, 556, 556, 500, 556, 556, 278, 556, 556, 222, 222, 500, 222, 833, 556, 556, 556, 556, 333, 500, 278, 556, 500, 722, 500, 500, 500, 334, 260, 334, 584, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 333, 333, 333, 333, 333, 333, 333, 333, 278, 333, 333, 278, 333, 333, 333, 278, 333, 556, 556, 556, 556, 260, 556, 333, 737, 370, 556, 584, 333, 737, 333, 400, 584, 333, 333, 333, 556, 537, 278, 333, 333, 365, 556, 834, 834, 834, 611, 667, 667, 667, 667, 667, 667, 1000, 722, 667, 667, 667, 667, 278, 278, 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667, 667, 611, 556, 556, 556, 556, 556, 556, 889, 500, 556, 556, 556, 556, 278, 278, 278, 278, 556, 556, 556, 556, 556, 556, 556, 584, 611, 556, 556, 556, 556, 500, 556, 500}; static int HelveticaBoldSet[256]={ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 333, 474, 556, 556, 889, 722, 278, 333, 333, 389, 584, 278, 584, 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 333, 333, 584, 584, 584, 611, 975, 722, 722, 722, 722, 667, 611, 778, 722, 278, 556, 722, 611, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 333, 278, 333, 584, 556, 278, 556, 611, 556, 611, 556, 333, 611, 611, 278, 278, 556, 278, 889, 611, 611, 611, 611, 389, 556, 333, 611, 556, 778, 556, 556, 500, 389, 280, 389, 584, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 333, 333, 333, 333, 333, 333, 333, 333, 278, 333, 333, 278, 333, 333, 333, 278, 333, 556, 556, 556, 556, 280, 556, 333, 737, 370, 556, 584, 333, 737, 333, 400, 584, 333, 333, 333, 611, 556, 278, 333, 333, 365, 556, 834, 834, 834, 611, 722, 722, 722, 722, 722, 722, 1000, 722, 667, 667, 667, 667, 278, 278, 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667, 667, 611, 556, 556, 556, 556, 556, 556, 889, 556, 556, 556, 556, 556, 278, 278, 278, 278, 611, 611, 611, 611, 611, 611, 611, 584, 611, 611, 611, 611, 611, 556, 611, 556}; static int TimesRomanSet[256]={ 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 333, 408, 500, 500, 833, 778, 333, 333, 333, 500, 564, 250, 564, 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 278, 278, 564, 564, 564, 444, 921, 722, 667, 667, 722, 611, 556, 722, 722, 333, 389, 722, 611, 889, 722, 722, 556, 722, 667, 556, 611, 722, 722, 944, 722, 722, 611, 333, 278, 333, 469, 500, 333, 444, 500, 444, 500, 444, 333, 500, 500, 278, 278, 500, 278, 778, 500, 500, 500, 500, 333, 389, 278, 500, 500, 722, 500, 500, 444, 480, 200, 480, 541, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 278, 333, 333, 333, 333, 333, 333, 333, 333, 250, 333, 333, 250, 333, 333, 333, 250, 333, 500, 500, 500, 500, 200, 500, 333, 760, 276, 500, 564, 333, 760, 333, 400, 564, 300, 300, 333, 500, 453, 250, 333, 300, 310, 500, 750, 750, 750, 444, 722, 722, 722, 722, 722, 722, 889, 667, 611, 611, 611, 611, 333, 333, 333, 333, 722, 722, 722, 722, 722, 722, 722, 564, 722, 722, 722, 722, 722, 722, 556, 500, 444, 444, 444, 444, 444, 444, 667, 444, 444, 444, 444, 444, 278, 278, 278, 278, 500, 500, 500, 500, 500, 500, 500, 564, 500, 500, 500, 500, 500, 500, 500, 500}; static int TimesBoldSet[256]={ 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 333, 555, 500, 500, 1000, 833, 333, 333, 333, 500, 570, 250, 570, 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 333, 333, 570, 570, 570, 500, 930, 722, 667, 722, 722, 667, 611, 778, 778, 389, 500, 778, 667, 944, 722, 778, 611, 778, 722, 556, 667, 722, 722, 1000, 722, 722, 667, 333, 278, 333, 581, 500, 333, 500, 556, 444, 556, 444, 333, 500, 556, 278, 333, 556, 278, 833, 556, 500, 556, 556, 444, 389, 333, 556, 500, 722, 500, 500, 444, 394, 220, 394, 520, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 278, 333, 333, 333, 333, 333, 333, 333, 333, 250, 333, 333, 250, 333, 333, 333, 250, 333, 500, 500, 500, 500, 220, 500, 333, 747, 300, 500, 570, 333, 747, 333, 400, 570, 300, 300, 333, 556, 540, 250, 333, 300, 330, 500, 750, 750, 750, 500, 722, 722, 722, 722, 722, 722, 1000, 722, 667, 667, 667, 667, 389, 389, 389, 389, 722, 722, 778, 778, 778, 778, 778, 570, 778, 722, 722, 722, 722, 722, 611, 556, 500, 500, 500, 500, 500, 500, 722, 444, 444, 444, 444, 444, 278, 278, 278, 278, 500, 556, 500, 500, 500, 500, 500, 570, 500, 556, 556, 556, 556, 500, 556, 500}; static int TimesItalicSet[256]={ 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 333, 420, 500, 500, 833, 778, 333, 333, 333, 500, 675, 250, 675, 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 333, 333, 675, 675, 675, 500, 920, 611, 611, 667, 722, 611, 611, 722, 722, 333, 444, 667, 556, 833, 667, 722, 611, 722, 611, 500, 556, 722, 611, 833, 611, 556, 556, 389, 278, 389, 422, 500, 333, 500, 500, 444, 500, 444, 278, 500, 500, 278, 278, 444, 278, 722, 500, 500, 500, 500, 389, 389, 278, 500, 444, 667, 444, 444, 389, 400, 275, 400, 541, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 278, 333, 333, 333, 333, 333, 333, 333, 333, 250, 333, 333, 250, 333, 333, 333, 250, 389, 500, 500, 500, 500, 275, 500, 333, 760, 276, 500, 675, 333, 760, 333, 400, 675, 300, 300, 333, 500, 523, 250, 333, 300, 310, 500, 750, 750, 750, 500, 611, 611, 611, 611, 611, 611, 889, 667, 611, 611, 611, 611, 333, 333, 333, 333, 722, 667, 722, 722, 722, 722, 722, 675, 722, 722, 722, 722, 722, 556, 611, 500, 500, 500, 500, 500, 500, 500, 667, 444, 444, 444, 444, 444, 278, 278, 278, 278, 500, 500, 500, 500, 500, 500, 500, 675, 500, 500, 500, 500, 500, 444, 500, 444}; static int TimesBoldItalicSet[256]={ 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 389, 555, 500, 500, 833, 778, 333, 333, 333, 500, 570, 250, 606, 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 333, 333, 570, 570, 570, 500, 832, 667, 667, 667, 722, 667, 667, 722, 778, 389, 500, 667, 611, 889, 722, 722, 611, 722, 667, 556, 611, 722, 667, 889, 667, 611, 611, 333, 278, 333, 570, 500, 333, 500, 500, 444, 500, 444, 333, 500, 556, 278, 278, 500, 278, 778, 556, 500, 500, 500, 389, 389, 278, 556, 444, 667, 500, 444, 389, 348, 220, 348, 570, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 278, 333, 333, 333, 333, 333, 333, 333, 333, 250, 333, 333, 250, 333, 333, 333, 250, 389, 500, 500, 500, 500, 220, 500, 333, 747, 266, 500, 606, 333, 747, 333, 400, 570, 300, 300, 333, 576, 500, 250, 333, 300, 300, 500, 750, 750, 750, 500, 667, 667, 667, 667, 667, 667, 944, 667, 667, 667, 667, 667, 389, 389, 389, 389, 722, 722, 722, 722, 722, 722, 722, 570, 722, 722, 722, 722, 722, 611, 611, 500, 500, 500, 500, 500, 500, 500, 722, 444, 444, 444, 444, 444, 278, 278, 278, 278, 500, 556, 500, 500, 500, 500, 500, 570, 500, 556, 556, 556, 556, 444, 500, 444}; static int SymbolSet[256]={ 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 333, 713, 500, 549, 833, 778, 439, 333, 333, 500, 549, 250, 549, 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 278, 278, 549, 549, 549, 444, 549, 722, 667, 722, 612, 611, 763, 603, 722, 333, 631, 722, 686, 889, 722, 722, 768, 741, 556, 592, 611, 690, 439, 768, 645, 795, 611, 333, 863, 333, 658, 500, 500, 631, 549, 549, 494, 439, 521, 411, 603, 329, 603, 549, 549, 576, 521, 549, 549, 521, 549, 603, 439, 576, 713, 686, 493, 686, 494, 480, 200, 480, 549, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 620, 247, 549, 167, 713, 500, 753, 753, 753, 753, 1042, 987, 603, 987, 603, 400, 549, 411, 549, 549, 713, 494, 460, 549, 549, 549, 549, 1000, 603, 1000, 658, 823, 686, 795, 987, 768, 768, 823, 768, 768, 713, 713, 713, 713, 713, 713, 713, 768, 713, 790, 790, 890, 823, 549, 250, 713, 603, 603, 1042, 987, 603, 987, 603, 494, 329, 790, 790, 786, 713, 384, 384, 384, 384, 384, 384, 494, 494, 494, 494, 250, 329, 274, 686, 686, 686, 384, 384, 384, 384, 384, 384, 494, 494, 494, 250}; struct font_data { char *name; int *width[4], height[4], style; }; static struct font_data FontData[] = { { "Serif", {HelveticaSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {662, 676, 653, 669}, -1 }, { "Sans-serif", {HelveticaSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, -1 }, { "Times", {TimesRomanSet, TimesBoldSet, TimesItalicSet, TimesBoldItalicSet}, {662, 676, 653, 669}, 0 }, { "Tim", {TimesRomanSet, TimesBoldSet, TimesItalicSet, TimesBoldItalicSet}, {662, 676, 653, 669}, 0 }, { "TimesBold", {TimesRomanSet, TimesBoldSet, TimesItalicSet, TimesBoldItalicSet}, {662, 676, 653, 669}, 1 }, { "TimB", {TimesRomanSet, TimesBoldSet, TimesItalicSet, TimesBoldItalicSet}, {662, 676, 653, 669}, 1 }, { "TimesItalic", {TimesRomanSet, TimesBoldSet, TimesItalicSet, TimesBoldItalicSet}, {662, 676, 653, 669}, 2 }, { "TimI", {TimesRomanSet, TimesBoldSet, TimesItalicSet, TimesBoldItalicSet}, {662, 676, 653, 669}, 2 }, { "TimesBoldItalic", {TimesRomanSet, TimesBoldSet, TimesItalicSet, TimesBoldItalicSet}, {662, 676, 653, 669}, 3 }, { "TimBI", {TimesRomanSet, TimesBoldSet, TimesItalicSet, TimesBoldItalicSet}, {662, 676, 653, 669}, 3 }, { "Helvetica", {HelveticaSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 0 }, { "Helv", {HelveticaSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 0 }, { "HelveticaOblique", {HelveticaSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 2 }, { "HelvO", {HelveticaSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 2 }, { "HelveticaItalic", {HelveticaSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 2 }, { "HelvI", {HelveticaSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 2 }, { "HelveticaBold", {HelveticaBoldSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 1 }, { "HelvB", {HelveticaBoldSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 1 }, { "HelveticaBoldOblique", {HelveticaBoldSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 3 }, { "HelvBO", {HelveticaBoldSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 2 }, { "HelveticaBoldItalic", {HelveticaBoldSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 3 }, { "HelvBI", {HelveticaBoldSet, HelveticaBoldSet, HelveticaSet, HelveticaBoldSet}, {718, 718, 718, 718}, 3 }, { "Symbol", {SymbolSet, SymbolSet, SymbolSet, SymbolSet}, {673, 673, 673, 673}, 0 }, { "Sym", {SymbolSet, SymbolSet, SymbolSet, SymbolSet}, {673, 673, 673, 673}, 0 }, { "SymbolBold", {SymbolSet, SymbolSet, SymbolSet, SymbolSet}, {673, 673, 673, 673}, 2 }, { "SymB", {SymbolSet, SymbolSet, SymbolSet, SymbolSet}, {673, 673, 673, 673}, 1 }, { "SymbolItalic", {SymbolSet, SymbolSet, SymbolSet, SymbolSet}, {673, 673, 673, 673}, 2 }, { "SymI", {SymbolSet, SymbolSet, SymbolSet, SymbolSet}, {673, 673, 673, 673}, 2 }, { "SymbolBoldItalic", {SymbolSet, SymbolSet, SymbolSet, SymbolSet}, {673, 673, 673, 673}, 3 }, { "SymBI", {SymbolSet, SymbolSet, SymbolSet, SymbolSet}, {673, 673, 673, 673}, 3 }, { "Gothic", {NULL, NULL, NULL, NULL}, {791, 791, 791, 791}, 0 }, { "Goth", {NULL, NULL, NULL, NULL}, {791, 791, 791, 791}, 0 }, { "GothicBold", {NULL, NULL, NULL, NULL}, {791, 791, 791, 791}, 1 }, { "GothB", {NULL, NULL, NULL, NULL}, {791, 791, 791, 791}, 1 }, { "GothicItalic", {NULL, NULL, NULL, NULL}, {791, 791, 791, 791}, 2 }, { "GothI", {NULL, NULL, NULL, NULL}, {791, 791, 791, 791}, 2 }, { "GothicBoldItalic", {NULL, NULL, NULL, NULL}, {791, 791, 791, 791}, 3 }, { "GothBI", {NULL, NULL, NULL, NULL}, {791, 791, 791, 791}, 3 }, { "Mincho", {NULL, NULL, NULL, NULL}, {807, 807, 807, 807}, 0 }, { "Min", {NULL, NULL, NULL, NULL}, {807, 807, 807, 807}, 0 }, { "MinchoBold", {NULL, NULL, NULL, NULL}, {807, 807, 807, 807}, 1 }, { "MinB", {NULL, NULL, NULL, NULL}, {807, 807, 807, 807}, 1 }, { "MinchoItalic", {NULL, NULL, NULL, NULL}, {807, 807, 807, 807}, 2 }, { "MinI", {NULL, NULL, NULL, NULL}, {807, 807, 807, 807}, 2 }, { "MinchoBoldItalic", {NULL, NULL, NULL, NULL}, {807, 807, 807, 807}, 3 }, { "MinBI", {NULL, NULL, NULL, NULL}, {807, 807, 807, 807}, 3 }, }; static NHASH FontDataHash = NULL; static int g2nul_strwidth(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *font, *s, *ptr; int size, width, i, style, w; gunichar ch; s = argv[3]; size = * (int *) argv[4]; font = (char *) argv[5]; style = * (int *) argv[6]; if (s == NULL) { return 0; } w = 0; for (ptr = s; ptr[0]; ptr = g_utf8_next_char(ptr)) { ch = g_utf8_get_char(ptr); width = -1; if (ch < 256 && nhash_get_int(FontDataHash, font, &i) == 0) { if (FontData[i].style >= 0) { style = FontData[i].style; } if (style >= 0 && style < 4 && FontData[i].width[style]) { width = FontData[i].width[style][ch]; } } if (width < 0) { width = 600; } if (g_unichar_iswide(ch)) { width *= 2; } w += width; } rval->i = nround(w * size * 25.4 / 72000.0); return 0; } static int g2nul_charheight(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *font; int size, height, style, i; size=*(int *)(argv[3]); font=(char *)(argv[4]); style = * (int *) argv[5]; height = -1; if (nhash_get_int(FontDataHash, font, &i) == 0) { if (FontData[i].style >= 0) { style = FontData[i].style; } if (style >= 0 && style < 4) { height = FontData[i].height[style]; } } if (height < 0) { height = 562; } rval->i = nround(25.4 / 72000.0 * size * height); return 0; } static int g2nul_chardescent(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { int size; size=*(int *)(argv[3]); rval->i=nround(25.4/72000.0*size*250); return 0; } static struct objtable gra2null[] = { {"init",NVFUNC,NEXEC,g2nulinit,NULL,0}, {"done",NVFUNC,NEXEC,g2nuldone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"_strwidth",NIFUNC,0,g2nul_strwidth,NULL,0}, {"_charascent",NIFUNC,0,g2nul_charheight,NULL,0}, {"_chardescent",NIFUNC,0,g2nul_chardescent,NULL,0}, }; #define TBLNUM (sizeof(gra2null) / sizeof(*gra2null)) void * addgra2null(void) /* addgra2null() returns NULL on error */ { unsigned int i; if (FontDataHash == NULL) { FontDataHash = nhash_new(); if (FontDataHash == NULL) { return NULL; } for (i = 0; i < sizeof(FontData) / sizeof(*FontData); i++) { nhash_set_int(FontDataHash, FontData[i].name, i); } } return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,gra2null,ERRNUM,g2nulerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/object.c0000644000175000017500000030353112241111705013052 00000000000000/* * $Id: object.c,v 1.54 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include #include "nstring.h" #include "object.h" #include "mathfn.h" #include "nhash.h" #include "shell.h" #include #include "math/math_equation.h" #define USE_HASH 1 #define OBJ_MAX 1024 #define INST_MAX 32767 static struct objlist *objroot=NULL; static struct loopproc *looproot=NULL, *loopnext=NULL; static struct objlist *errobj=NULL; #define ERR_MSG_BUF_SIZE 2048 static char errormsg1[ERR_MSG_BUF_SIZE]={'\0'}; static char errormsg2[ERR_MSG_BUF_SIZE]={'\0'}; static int errcode=0; int Globallock=FALSE; int (*getstdin)(void); int (*putstdout)(const char *s); int (*putstderr)(const char *s); int (*printfstdout)(char *fmt,...); int (*printfstderr)(char *fmt,...); int (*ninterrupt)(void); int (*inputyn)(const char *mes); void (*ndisplaydialog)(const char *str); void (*ndisplaystatus)(const char *str); #if USE_HASH static NHASH ObjHash = NULL; #endif static char *errorlist[]={ "", "no heap space.", "parent object not found", "duplicate field identifier", "object id is too large", "instance id is too large", "object not found", "field not found", "only one instance is allowed.", "unable to make an instance.", "instance not found, id", "instance not found, oid", "named instance not found", "not allowed to destruct.", "permission denied", "not defined current instance.", "instance does not exist.", "illegal object identifier", "illegal instance identifier", "illegal field identifier", "extra object arguments", "not enough object argument", "illegal type of object argument", "instance exist. cannot overwrite object", }; #define ERRNUM (sizeof(errorlist) / sizeof(*errorlist)) static int chkobjtblpos(struct objlist *obj, const char *name, struct objlist **robj); void error(struct objlist *obj,int code) { char *objname; char **errtable; int errnum; Globallock=TRUE; errobj=obj; errcode=code; if (code < 0) { code = ERRUNKNOWN; } if (obj==NULL) { objname="kernel"; } else { objname=obj->name; } if (code==ERRUNKNOWN) { printfstderr("%.64s: %.256s%.256s\n", objname,errormsg1,errormsg2); } else if (code<100) { errtable=errorlist; errnum=ERRNUM; if ((errtable==NULL) || (code>=errnum)) { printfstderr("%.64s: %.256s(%d)%.256s\n",objname,errormsg1,code,errormsg2); } else { printfstderr("%.64s: %.256s%.256s%.256s\n", objname,errormsg1,errtable[code],errormsg2); } } else { errtable=obj->errtable; errnum=obj->errnum; code=code-100; if ((errtable==NULL) || (code>=errnum)) { printfstderr("%.64s: %.256s(%d)%.256s\n",objname,errormsg1,code,errormsg2); } else { printfstderr("%.64s: %.256s%.256s%.256s\n", objname,errormsg1,errtable[code],errormsg2); } } errormsg1[0]='\0'; errormsg2[0]='\0'; Globallock=FALSE; } void error2(struct objlist *obj,int code, const char *mes) { if (mes!=NULL) { char *local_msg; local_msg = g_locale_from_utf8(mes, -1, NULL, NULL, NULL); snprintf(errormsg2, sizeof(errormsg2), " `%.256s'.", CHK_STR(local_msg)); g_free(local_msg); } else { sprintf(errormsg2,"."); } error(obj,code); } void error22(struct objlist *obj,int code, const char *mes1, const char *mes2) { char *local_msg; if (mes1!=NULL) { local_msg = g_locale_from_utf8(mes1, -1, NULL, NULL, NULL); snprintf(errormsg1, sizeof(errormsg1), "%.256s: ", CHK_STR(local_msg)); g_free(local_msg); } else { errormsg1[0]='\0'; } if (mes2!=NULL) { local_msg = g_locale_from_utf8(mes2, -1, NULL, NULL, NULL); snprintf(errormsg2, sizeof(errormsg2), " `%.256s'.", CHK_STR(local_msg)); g_free(local_msg); } else { sprintf(errormsg2,"."); } error(obj,code); } void error3(struct objlist *obj,int code,int num) { snprintf(errormsg2, sizeof(errormsg2), " `%d'.",num); error(obj,code); } static int vgetchar(void) { return EOF; } static int vputs(const char *s) { return 0; } static int vnprintf(char *fmt,...) { return 0; } int seputs(const char *s) { return fputs(s,stderr); } int seprintf(char *fmt,...) { int code; va_list ap; va_start(ap,fmt); code=vfprintf(stderr,fmt,ap); va_end(ap); return code; } int vinterrupt(void) { return FALSE; } int vinputyn(const char *mes) { return FALSE; } static void vdisplaydialog(const char *str) { } static void vdisplaystatus(const char *str) { } struct savedstdio stdiosave; void ignorestdio(struct savedstdio *save) { if (save==NULL) savestdio(&stdiosave); else savestdio(save); getstdin=vgetchar; putstdout=vputs; putstderr=vputs; printfstdout=vnprintf; printfstderr=vnprintf; ndisplaydialog=vdisplaydialog; ndisplaystatus=vdisplaystatus; } void restorestdio(struct savedstdio *save) { if (save==NULL) loadstdio(&stdiosave); else loadstdio(save); } void savestdio(struct savedstdio *save) { save->getstdin=getstdin; save->putstdout=putstdout; save->putstderr=putstderr; save->printfstdout=printfstdout; save->printfstderr=printfstderr; save->ninterrupt=ninterrupt; save->inputyn=inputyn; save->ndisplaydialog=ndisplaydialog; save->ndisplaystatus=ndisplaystatus; } void loadstdio(struct savedstdio *save) { getstdin=save->getstdin; putstdout=save->putstdout; putstderr=save->putstderr; printfstdout=save->printfstdout; printfstderr=save->printfstderr; ninterrupt=save->ninterrupt; inputyn=save->inputyn; ndisplaydialog=save->ndisplaydialog; ndisplaystatus=save->ndisplaystatus; } #define ALLOCSIZE 32 void arrayinit(struct narray *array,unsigned int base) { if (array==NULL) return; array->base=base; array->num=0; array->size=0; array->data=NULL; } struct narray * arraynew(unsigned int base) { struct narray *array; if ((array=g_malloc(sizeof(struct narray)))==NULL) return NULL; arrayinit(array,base); return array; } void * arraydata(struct narray *array) { if (array==NULL) return NULL; return array->data; } unsigned int arraynum(struct narray *array) { if (array==NULL) return 0; return array->num; } static unsigned int arraybase(struct narray *array) { if (array==NULL) return 0; return array->base; } void arraydel(struct narray *array) { if (array==NULL) return; g_free(array->data); array->data=NULL; array->size=0; array->num=0; } void arraydel2(struct narray *array) { unsigned int i; char **data; if (array==NULL) return; data=array->data; for (i=0;inum;i++) g_free(data[i]); g_free(array->data); array->data=NULL; array->size=0; array->num=0; } void arrayclear(struct narray *array) { if (array == NULL) return; array->num=0; } void arrayclear2(struct narray *array) { unsigned int i; char **data; if (array == NULL) return; data = array->data; for (i = 0; i < array->num; i++) { g_free(data[i]); } array->num=0; } void arrayfree(struct narray *array) { if (array==NULL) return; g_free(array->data); g_free(array); } void arrayfree2(struct narray *array) { unsigned int i; char **data; if (array==NULL) return; data=array->data; for (i=0;inum;i++) g_free(data[i]); g_free(array->data); g_free(array); } struct narray * arrayadd(struct narray *array,const void *val) { int size,base; char *data; if (array==NULL || val == NULL) return NULL; if (array->num==array->size) { size=array->size+ALLOCSIZE; if ((data=g_realloc(array->data,array->base*size))==NULL) { return NULL; } array->size=size; array->data=data; } else data=array->data; base=array->base; memcpy(data+array->num*base,val,base); (array->num)++; return array; } struct narray * arrayadd2(struct narray *array,const char *val) { int size; char **data; char *s; if (array == NULL) return NULL; if (val == NULL) { return NULL; } else { s = g_malloc(strlen(val) + 1); if (s == NULL) { arraydel2(array); return NULL; } strcpy(s, val); } if (array->num == array->size) { size = array->size+ALLOCSIZE; data=g_realloc(array->data,array->base*size); if (data == NULL) { return NULL; } array->size = size; array->data = data; } else { data = array->data; } data[array->num] = s; (array->num)++; return array; } struct narray * arrayins(struct narray *array,const void *val,unsigned int idx) { unsigned int i; int size,base; char *data; if (array==NULL) return NULL; if (idx>array->num) return NULL; if (array->num==array->size) { size=array->size+ALLOCSIZE; if ((data=g_realloc(array->data,array->base*size))==NULL) { return NULL; } array->size=size; array->data=data; } else data=array->data; base=array->base; for (i=array->num;i>idx;i--) memcpy(data+i*base,data+(i-1)*base,base); memcpy(data+idx*base,val,base); (array->num)++; return array; } struct narray * arrayins2(struct narray *array, const char *val, unsigned int idx) { unsigned int i; int size; char **data; char *s; if (array == NULL) { return NULL; } if (idx > array->num) { return NULL; } if (val == NULL) { return NULL; } s = g_strdup(val); if (s == NULL) { arraydel2(array); return NULL; } if (array->num == array->size) { size = array->size+ALLOCSIZE; data = g_realloc(array->data,array->base*size); if (data == NULL) { return NULL; } array->size=size; array->data=data; } else { data = array->data; } for (i = array->num; i > idx; i--) { data[i] = data[i-1]; } data[idx] = s; (array->num)++; return array; } struct narray * array_reverse(struct narray *array) { unsigned int i, base, num, n; char *data, *buf; if (array == NULL) { return NULL; } data = array->data; base = array->base; num = array->num; n = num / 2; num--; buf = g_malloc(base); if (buf == NULL) { return NULL; } for (i = 0; i < n; i++) { memcpy(buf, data + i * base, base); memcpy(data + i * base, data + (num - i) * base, base); memcpy(data + (num - i) * base, buf, base); } g_free(buf); return array; } struct narray * arrayndel(struct narray *array,unsigned int idx) { int base; char *data; if (array==NULL) return NULL; if (idx>=array->num) return NULL; data=array->data; base=array->base; #if 0 for (i=idx+1;inum;i++) memcpy(data+(i-1)*base,data+i*base,base); #else data += (idx * base); memmove(data, data + base, base * (array->num - idx - 1)); #endif (array->num)--; return array; } struct narray * array_slice(struct narray *array, int start, int length) { int base, num; char *data; if (array == NULL) { return NULL; } data = array->data; base = array->base; num = array->num; if (length < 0) { return NULL; } if (start < 0) { start = num + start; } if (start < 0) { return NULL; } if (start >= num) { return NULL; } if (start + length > num) { length = num - start; } if (length > 0) { memmove(data, data + start * base, length * base); } array->num = length; return array; } struct narray * array_slice2(struct narray *array, int start, int length) { int i, base, num; char *data, **sarray; if (array == NULL) { return NULL; } data = array->data; sarray = array->data; base = array->base; num = array->num; if (length < 0) { return NULL; } if (start < 0) { start = num + start; } if (start < 0) { return NULL; } if (start >= num) { return NULL; } if (start + length > num) { length = num - start; } for (i = 0; i < start; i++) { g_free(sarray[i]); } for (i = start + length; i < num; i++) { g_free(sarray[i]); } if (length > 0) { memmove(data, data + start * base, length * base); } array->num = length; return array; } struct narray * arrayndel2(struct narray *array,unsigned int idx) { char **data; if (array==NULL) return NULL; if (idx>=array->num) return NULL; data=(char **)array->data; g_free(data[idx]); #if 0 for (i=idx+1;inum;i++) data[i-1]=data[i]; #else data += idx; memmove(data, data + 1, sizeof(*data) * (array->num - idx - 1)); #endif (array->num)--; return array; } struct narray * arrayput(struct narray *array,const void *val,unsigned int idx) { int base; char *data; if (array==NULL) return NULL; if (idx>=array->num) return NULL; data=array->data; base=array->base; memcpy(data+idx*base,val,base); return array; } struct narray * arrayput2(struct narray *array, const char *val, unsigned int idx) { char *s; char **data; if (array == NULL) { return NULL; } if (idx >= array->num) { return NULL; } if (val == NULL){ return NULL; } s = g_strdup(val); if (s == NULL) { arraydel2(array); return NULL; } data = (char **)array->data; g_free(data[idx]); data[idx] = s; return array; } void * arraynget(struct narray *array,unsigned int idx) { int base; char *data; if (array==NULL) return NULL; if (idx>=array->num) return NULL; data=array->data; base=array->base; return data+idx*base; } int arraynget_int(struct narray *array, unsigned int idx) { void *ptr; ptr = arraynget(array, idx); return (ptr) ? * (int *) ptr : 0; } double arraynget_double(struct narray *array, unsigned int idx) { void *ptr; ptr = arraynget(array, idx); return (ptr) ? * (double *) ptr : 0; } char * arraynget_str(struct narray *array, unsigned int idx) { void *ptr; ptr = arraynget(array, idx); return (ptr) ? * (char **) ptr : NULL; } void * arraylast(struct narray *array) { int base; char *data; if (array==NULL) return NULL; if (array->num==0) return NULL; data=array->data; base=array->base; return data+(array->num-1)*base; } int arraylast_int(struct narray *array) { void *ptr; ptr = arraylast(array); return (ptr) ? * (int *) ptr : 0; } static int cmp_func_int(const void *p1, const void *p2) { return (* (int *) p1) - (* (int *) p2); } static int cmp_func_int_r(const void *p1, const void *p2) { return (* (int *) p2) - (* (int *) p1); } void arraysort_int(struct narray *array) { int num, *adata; if (array == NULL) { return; } num = arraynum(array); adata = arraydata(array); if (num > 1) { qsort(adata, num, sizeof(int), cmp_func_int); } } void arrayrsort_int(struct narray *array) { int num, *adata; if (array == NULL) { return; } num = arraynum(array); adata = arraydata(array); if (num > 1) { qsort(adata, num, sizeof(int), cmp_func_int_r); } } void arrayuniq_int(struct narray *array) { int i, val, num, *adata; if (array == NULL) { return; } num = arraynum(array); if (num < 2) { return; } adata = arraydata(array); val = adata[0]; for (i = 1; i < num;) { if (adata[i] == val) { arrayndel(array, i); num--; } else { val = adata[i]; i++; } } } static int cmp_func_double(const void *p1, const void *p2) { double d1, d2; d1 = * (double *) p1; d2 = * (double *) p2; if (d1 > d2) { return 1; } else if (d1 < d2) { return -1; } return 0; } static int cmp_func_double_r(const void *p1, const void *p2) { double d1, d2; d1 = * (double *) p1; d2 = * (double *) p2; if (d1 > d2) { return -1; } else if (d1 < d2) { return 1; } return 0; } void arraysort_double(struct narray *array) { int num; double *adata; if (array == NULL) { return; } num = arraynum(array); adata = arraydata(array); if (num > 1) { qsort(adata, num, sizeof(double), cmp_func_double); } } void arrayrsort_double(struct narray *array) { int num; double *adata; if (array == NULL) { return; } num = arraynum(array); adata = arraydata(array); if (num > 1) { qsort(adata, num, sizeof(double), cmp_func_double_r); } } void arrayuniq_double(struct narray *array) { int i, num; double *adata, val; if (array == NULL) { return; } num = arraynum(array); if (num < 2) { return; } adata = arraydata(array); val = adata[0]; for (i = 1; i < num;) { if (adata[i] == val) { arrayndel(array, i); num--; } else { val = adata[i]; i++; } } } static int cmp_func_str(const void *p1, const void *p2) { return g_strcmp0(* (char **) p1, * (char **) p2); } static int cmp_func_str_r(const void *p1, const void *p2) { return - g_strcmp0(* (char **) p1, * (char **) p2); } void arraysort_str(struct narray *array) { int num; char **adata; if (array == NULL) { return; } num = arraynum(array); adata = arraydata(array); if (num > 1) { qsort(adata, num, sizeof(char *), cmp_func_str); } } void arrayrsort_str(struct narray *array) { int num; char **adata; if (array == NULL) { return; } num = arraynum(array); adata = arraydata(array); if (num > 1) { qsort(adata, num, sizeof(char *), cmp_func_str_r); } } void arrayuniq_str(struct narray *array) { int i, num; char **adata, *val; if (array == NULL) { return; } num = arraynum(array); if (num < 2) { return; } adata = arraydata(array); val = adata[0]; for (i = 1; i < num;) { if (g_strcmp0(adata[i], val) == 0) { arrayndel2(array, i); num--; } else { val = adata[i]; i++; } } } #define ARGBUFNUM 32 int getargc(char **arg) { int i; if (arg==NULL) return 0; for (i=0;arg[i]!=NULL;i++) ; return i; } char ** arg_add(char ***arg,void *ptr) { int i,num; char **arg2; if (*arg==NULL) { if ((*arg=g_malloc(ARGBUFNUM*sizeof(void *)))==NULL) return NULL; (*arg)[0]=NULL; } i=getargc(*arg); num=i/ARGBUFNUM; if (i%ARGBUFNUM==ARGBUFNUM-1) { if ((arg2=g_realloc(*arg,ARGBUFNUM*sizeof(void *)*(num+2)))==NULL) return NULL; *arg=arg2; } (*arg)[i]=ptr; (*arg)[i+1]=NULL; return *arg; } static char ** arg_add2(char ***arg,int argc,...) { va_list ap; int i; if (*arg==NULL) { if ((*arg=g_malloc(ARGBUFNUM*sizeof(void *)))==NULL) return NULL; (*arg)[0]=NULL; } va_start(ap,argc); for (i=0;inext!=NULL) lpcur=lpcur->next; lpcur->next=lpnew; } lpnew->next=NULL; lpnew->objname=objname; lpnew->evname=evname; lpnew->obj=obj; lpnew->idn=idn; lpnew->inst=inst; lpnew->local=local; } void unregisterevloop(struct objlist *obj,int idn,N_VALUE *inst) { struct loopproc *lpcur,*lpdel,*lpprev; lpcur=looproot; lpprev=NULL; while (lpcur!=NULL) { if ((lpcur->obj==obj) && (lpcur->idn==idn) && (lpcur->inst==inst)) { lpdel=lpcur; if (loopnext==lpdel) loopnext=lpdel->next; if (lpprev==NULL) looproot=lpcur->next; else lpprev->next=lpdel->next; lpcur=lpcur->next; g_free(lpdel); } else { lpprev=lpcur; lpcur=lpcur->next; } } } #ifdef COMPILE_UNUSED_FUNCTIONS static void unregisterallevloop(void) { struct loopproc *lpcur,*lpdel; lpcur=looproot; while (lpcur!=NULL) { lpdel=lpcur; lpcur=lpcur->next; g_free(lpdel); } looproot=NULL; loopnext=NULL; } #endif /* COMPILE_UNUSED_FUNCTIONS */ int has_eventloop(void) { return looproot != NULL; } void eventloop(void) { static int ineventloop = FALSE; struct loopproc *lpcur; char *argv[4]; if (looproot==NULL) return; if (ineventloop) return; ineventloop=TRUE; ignorestdio(NULL); lpcur=looproot; while (lpcur!=NULL) { argv[0]=lpcur->objname; argv[1]=lpcur->evname; argv[2]=lpcur->local; argv[3]=NULL; loopnext=lpcur->next; __exeobj(lpcur->obj,lpcur->idn,lpcur->inst,3,argv); lpcur=loopnext; } restorestdio(NULL); ineventloop=FALSE; } struct objlist * chkobjroot() { return objroot; } #if USE_HASH static int add_obj_to_hash(char *name, char *alias, void *obj) { if (ObjHash == NULL) { ObjHash = nhash_new(); if (ObjHash == NULL) return 1; } if (nhash_set_ptr(ObjHash, name, obj)) return 1; if (alias) { char *s, *aliasname; int len; s = alias; while ((aliasname = getitok2(&s, &len, ":"))) { if (nhash_set_ptr(ObjHash, aliasname, obj)) { g_free(aliasname); return 1; } g_free(aliasname); } } return 0; } #endif static int check_arglist(int type, const char *arglist) { int i; if (type == NENUM) { return (arglist) ? 0 : 1; } if (arglist == NULL || arglist[0] == '\0') { return 0; } if (arglist[1] == 'a') { if (arglist[0] != 's' && arglist[0] != 'i' && arglist[0] != 'd' && arglist[2] != '\0') { return 1; } return 0; } for (i = 0; arglist[i]; i++) { if (strchr("soidb", arglist[i]) == NULL) { return 1; } } return 0; } void * addobject(char *name,char *alias,char *parentname,char *ver, int tblnum,struct objtable *table, int errnum,char **errtable,void *local,DoneProc doneproc) /* addobject() returns NULL on error */ { struct objlist *objcur,*objprev,*objnew,*parent, *ptr; int i,offset; NHASH tbl_hash = NULL; static int id = 1; if (id >= OBJ_MAX) { error3(NULL, ERROBJNUM, id); return NULL; } objcur = chkobject(name); if (objcur) { error2(NULL,ERROVERWRITE,name); return NULL; } if (parentname==NULL) parent=NULL; else if ((parent=chkobject(parentname))==NULL) { error2(NULL,ERRPARENT,parentname); return NULL; } if ((objnew=g_malloc(sizeof(struct objlist)))==NULL) return NULL; #if USE_HASH if (add_obj_to_hash(name, alias, objnew)) { g_free(objnew); error2(NULL,ERRHEAP,name); return NULL; } tbl_hash = nhash_new(); if (tbl_hash == NULL) { g_free(objnew); error2(NULL,ERRHEAP,name); return NULL; } #endif objprev = NULL; if (parent) { if (parent->child) { ptr = parent->child; while (ptr && chkobjparent(ptr) == parent) { objprev = ptr; ptr = ptr->next; } while (objprev->child) { ptr = objprev->child; while (ptr) { objprev = ptr; ptr = objprev->next; } } } else { objprev = parent; parent->child = objnew; } } if (objprev == NULL) { objroot=objnew; objnew->next = NULL; } else if (objprev->next) { objnew->next = objprev->next; objprev->next = objnew; } else { objprev->next = objnew; objnew->next = NULL; } objnew->id=id; objnew->curinst=-1; objnew->lastinst=-1; objnew->lastinst2=-1; objnew->lastoid=INT_MAX; objnew->name=name; objnew->alias=alias; objnew->ver=ver; objnew->tblnum=tblnum; objnew->fieldnum=-1; objnew->table=table; #if USE_HASH objnew->table_hash=tbl_hash; #endif objnew->errnum=errnum; objnew->errtable=errtable; objnew->parent=parent; objnew->child=NULL; objnew->root=NULL; objnew->root2=NULL; objnew->local=local; objnew->doneproc=doneproc; if (parent==NULL) offset=0; else offset=parent->size; for (i=0;isize=offset; objnew->idp=chkobjoffset(objnew,"id"); objnew->oidp=chkobjoffset(objnew,"oid"); objnew->nextp=chkobjoffset(objnew,"next"); id++; return objnew; errexit: g_free(objnew); nhash_free(tbl_hash); error2(NULL,ERRHEAP,name); return NULL; } void hideinstance(struct objlist *obj) { N_VALUE *instcur,*instprev; int nextp,idp; if ((idp=obj->idp)==-1) return; if ((nextp=obj->nextp)==-1) return; if (obj->lastinst==-1) return; if (obj->lastinst2==-1) { obj->root2=obj->root; obj->lastinst2=obj->lastinst; } else { instcur=obj->root; while (instcur!=NULL) { instcur[idp].i+=obj->lastinst2+1; instcur=instcur[nextp].inst; } instcur=obj->root2; instprev=NULL; while (instcur!=NULL) { instprev=instcur; instcur=instcur[nextp].inst; } instprev[nextp].inst=obj->root; obj->lastinst2+=obj->lastinst+1; } obj->root=NULL; obj->lastinst=-1; } void recoverinstance(struct objlist *obj) { N_VALUE *instcur,*instprev; int nextp,idp; if ((idp=obj->idp)==-1) return; if ((nextp=obj->nextp)==-1) return; if (obj->lastinst2==-1) return; if (obj->lastinst==-1) { obj->root=obj->root2; obj->lastinst=obj->lastinst2; } else { instcur=obj->root; while (instcur!=NULL) { instcur[idp].i+=obj->lastinst2+1; instcur=instcur[nextp].inst; } instcur=obj->root2; instprev=NULL; while (instcur!=NULL) { instprev=instcur; instcur=instcur[nextp].inst; } instprev[nextp].inst=obj->root; obj->root=obj->root2; obj->lastinst+=obj->lastinst2+1; } obj->root2=NULL; obj->lastinst2=-1; } struct objlist * chkobject(const char *name) /* chkobject() returns NULL when the named object is not found */ { #if USE_HASH struct objlist *obj; int r; if (ObjHash == NULL) return NULL; r = nhash_get_ptr(ObjHash, name, (void **) &obj); if (r) return NULL; return obj; #else struct objlist *obj,*objcur; char *s,*aliasname; int len; objcur=objroot; obj=NULL; while (objcur!=NULL) { if (strcmp0(objcur->name,name)==0) obj=objcur; if (objcur->alias!=NULL) { s=objcur->alias; while ((aliasname=getitok(&s,&len,":"))!=NULL) { if (strncmp(aliasname,name,len)==0) obj=objcur; } } objcur=objcur->next; } return obj; #endif } char * chkobjectname(struct objlist *obj) { if (obj==NULL) return NULL; return obj->name; } char * chkobjectalias(struct objlist *obj) { if (obj==NULL) return NULL; return obj->alias; } #ifdef COMPILE_UNUSED_FUNCTIONS static void * chkobjectlocal(struct objlist *obj) { if (obj==NULL) return NULL; return obj->local; } #endif /* COMPILE_UNUSED_FUNCTIONS */ int chkobjectid(struct objlist *obj) { if (obj==NULL) return -1; return obj->id; } char * chkobjver(struct objlist *obj) { if (obj==NULL) return NULL; return obj->ver; } struct objlist * chkobjparent(struct objlist *obj) { if (obj==NULL) return NULL; return obj->parent; } int chkobjchild(struct objlist *parent,struct objlist *child) { struct objlist *p; p=child; do { if (p==parent) return TRUE; p=chkobjparent(p); } while (p!=NULL); return FALSE; } int chkobjsize(struct objlist *obj) { if (obj==NULL) return 0; return obj->size * sizeof(N_VALUE); } int chkobjlastinst(struct objlist *obj) { if (obj==NULL) return -1; return obj->lastinst; } int chkobjcurinst(struct objlist *obj) { if (obj==NULL) return -1; return obj->curinst; } int chkobjoffset(struct objlist *obj, const char *name) /* chkobjoffset() returns -1 on error */ { #if USE_HASH struct objlist *objcur; int i; i = chkobjtblpos(obj, name, &objcur); if (i < 0) return -1; return objcur->table[i].offset; #else struct objlist *objcur; int i; if (obj==NULL) return -1; objcur=obj; while (objcur!=NULL) { for (i=0;itblnum;i++) if (strcmp0(objcur->table[i].name,name)==0) return objcur->table[i].offset; objcur=objcur->parent; } return -1; #endif } int chkobjoffset2(struct objlist *obj,int tblpos) { return obj->table[tblpos].offset; } N_VALUE * chkobjinstoid(struct objlist *obj,int oid) /* chkobjinstoid() returns NULL when instance is not found */ { int oidp,nextp; N_VALUE *inst; if ((oidp=obj->oidp)==-1) return NULL; inst=obj->root; if ((nextp=obj->nextp)==-1) { if (inst==NULL) return NULL; if (inst[oidp].i==oid) return inst; else return NULL; } else { while (inst!=NULL) { if (inst[oidp].i==oid) return inst; inst=inst[nextp].inst; } } return NULL; } static int chkobjtblpos(struct objlist *obj, const char *name, struct objlist **robj) /* chkobjtblpos() returns -1 on error */ { #if USE_HASH struct objlist *objcur; int i; objcur = obj; while (objcur) { if (nhash_get_int(objcur->table_hash, name, &i) == 0) { *robj = objcur; return i; } objcur = objcur->parent; } *robj = NULL; return -1; #else struct objlist *objcur; int i; objcur=obj; while (objcur!=NULL) { for (i=0;itblnum;i++) if (strcmp0(objcur->table[i].name,name)==0) { *robj=objcur; return i; } objcur=objcur->parent; } *robj=NULL; return -1; #endif } N_VALUE * chkobjinst(struct objlist *obj,int id) /* chkobjinst() returns NULL if instance is not found */ { int i,nextp; N_VALUE *instcur; instcur=obj->root; i=0; if ((nextp=obj->nextp)==-1) { if ((instcur==NULL) || (id!=0)) { return NULL; } } else { while ((instcur!=NULL) && (id!=i)) { instcur=instcur[nextp].inst; i++; } if (instcur==NULL) { return NULL; } } return instcur; } N_VALUE * chkobjlast(struct objlist *obj) /* chkobjlast() returns NULL if instance is not found */ { N_VALUE *instcur,*instprev; int nextp; instcur=obj->root; nextp=obj->nextp; if (nextp!=-1) { instprev=NULL; while (instcur!=NULL) { instprev=instcur; instcur=instcur[nextp].inst; } instcur=instprev; } return instcur; } static N_VALUE * chkobjprev(struct objlist *obj,int id,N_VALUE **inst,N_VALUE **prev) /* chkobjprev() returns NULL if instance is not found */ { N_VALUE *instcur,*instprev; int i,nextp; if (inst!=NULL) *inst=NULL; if (prev!=NULL) *prev=NULL; instcur=obj->root; instprev=NULL; i=0; if ((nextp=obj->nextp)==-1) { if ((instcur==NULL) || (id!=0)) { return NULL; } } else { while ((instcur!=NULL) && (id!=i)) { instprev=instcur; instcur=instcur[nextp].inst; i++; } if (instcur==NULL) { return NULL; } } if (inst!=NULL) *inst=instcur; if (prev!=NULL) *prev=instprev; return instcur; } static int chkobjid(struct objlist *obj,int id) /* chkobjid() returns -1 on error */ { if ((id>obj->lastinst) || (id<0)) return -1; else return id; } int chkobjoid(struct objlist *obj,int oid) /* chkobjoid() returns -1 on error */ { int oidp,idp,nextp; N_VALUE *inst; if ((oidp=obj->oidp)==-1) return -1; if ((idp=obj->idp)==-1) return -1; inst=obj->root; if ((nextp=obj->nextp)==-1) { if (inst==NULL) return -1; if (inst[oidp].i==oid) return inst[idp].i; else return -1; } else { while (inst!=NULL) { if (inst[oidp].i==oid) return inst[idp].i; inst=inst[nextp].inst; } } return -1; } static int chkobjname(struct objlist *obj,int *id,char *name) /* chkobjname() returns -1 when named object is not found*/ { int i,id2; char *iname; N_VALUE *inst; if (id == NULL) { id2 = 0; } else { id2 = *id; } if (chkobjoffset(obj, "name") == -1) { return -1; } for (i = id2; i <= obj->lastinst; i++) { inst = chkobjinst(obj, i); if (inst == NULL) { return -1; } if (_getobj(obj, "name", inst, &iname) == -1) { return -1; } if (iname && strcmp0(iname, name) == 0) { if (id) { *id = i + 1; } return i; } } if (id) { *id = obj->lastinst + 1; } return -1; } int chkobjfieldnum(struct objlist *obj) { struct objlist *objcur,*objcur2; char *name; int i,j,num; if (obj->fieldnum >= 0) return obj->fieldnum; num=0; objcur=obj; while (objcur!=NULL) { for (i=0;itblnum;i++) { name=objcur->table[i].name; objcur2=obj; while (objcur2!=objcur) { for (j=0;jtblnum;j++) if (strcmp0(name,objcur2->table[j].name)==0) goto match; objcur2=objcur2->parent; } match: if (objcur2==objcur) num++; } objcur=objcur->parent; } obj->fieldnum = num; return num; } char * chkobjfieldname(struct objlist *obj,int num) { struct objlist *objcur,*objcur2,*objcur3; char *name; int i,j,tnum; tnum=0; objcur=NULL; while (objcur!=obj) { objcur2=obj; while (objcur!=(objcur2->parent)) objcur2=objcur2->parent; for (i=0;itblnum;i++) { name=objcur2->table[i].name; objcur3=obj; while (objcur3!=objcur2) { for (j=0;jtblnum;j++) if (strcmp0(name,objcur3->table[j].name)==0) goto match; objcur3=objcur3->parent; } match: if (objcur3==objcur2) { if (tnum==num) return name; tnum++; } } objcur=objcur2; } return NULL; } int chkobjfield(struct objlist *obj,const char *name) { #if USE_HASH struct objlist *objcur; int i; i = chkobjtblpos(obj, name, &objcur); if (i < 0) return -1; return 0; #else struct objlist *objcur; int i; objcur=obj; while (objcur!=NULL) { for (i=0;itblnum;i++) if (strcmp0(objcur->table[i].name,name)==0) return 0; objcur=objcur->parent; } return -1; #endif } int chkobjperm(struct objlist *obj, const char *name) /* chkobjperm() returns 0 on error */ { struct objlist *robj; int idn; if ((idn=chkobjtblpos(obj,name,&robj))==-1) return 0; return robj->table[idn].attrib; } enum ngraph_object_field_type chkobjfieldtype(struct objlist *obj, const char *name) /* chkobjperm() returns VOID on error */ { struct objlist *robj; int idn; if ((idn=chkobjtblpos(obj,name,&robj))==-1) return NVOID; return robj->table[idn].type; } #ifdef COMPILE_UNUSED_FUNCTIONS static void * chkobjproc(struct objlist *obj,char *name) { int namen; struct objlist *robj; if ((namen=chkobjtblpos(obj,name,&robj))==-1) return NULL; return robj->table[namen].proc; } #endif /* COMPILE_UNUSED_FUNCTIONS */ const char * chkobjarglist(struct objlist *obj, const char *name) { int namen; enum ngraph_object_field_type type; struct objlist *robj; char *arglist; if ((namen=chkobjtblpos(obj,name,&robj))==-1) return NULL; type=chkobjfieldtype(obj,name); arglist=robj->table[namen].arglist; if ((arglist==NULL) && (typever; } static int getobjcurinst(struct objlist *obj) { if (obj->curinst==-1) { error(obj,ERROBJCINST); return -1; } return obj->curinst; } static int getobjlastinst(struct objlist *obj) { if (obj->lastinst==-1) { error(obj,ERRNOINST); return -1; } return obj->lastinst; } int getobjoffset(struct objlist *obj, const char *name) /* getoffset() returns -1 on error */ { int offset; if (obj==NULL) { error(NULL,ERROBJFOUND); return -1; } if ((offset=chkobjoffset(obj,name))==-1) { if (strcmp0(name,"id")==0) error(obj,ERRNOID); else error2(obj,ERRVALFOUND,name); } return offset; } int getobjtblpos(struct objlist *obj, const char *name, struct objlist **robj) /* getoffset() returns -1 on error */ { int tblnum; if (obj==NULL) { error(NULL,ERROBJFOUND); return -1; } if ((tblnum=chkobjtblpos(obj,name,robj))==-1) { if (strcmp0(name,"id")==0) error(obj,ERRNOID); else error2(obj,ERRVALFOUND,name); } return tblnum; } N_VALUE * getobjinst(struct objlist *obj,int id) /* getobjinst() returns NULL if instance is not found */ { N_VALUE *instcur; if (obj==NULL) { error(NULL,ERROBJFOUND); return NULL; } if ((instcur=chkobjinst(obj,id))==NULL) { error3(obj,ERRIDFOUND,id); return NULL; } return instcur; } N_VALUE * getobjprev(struct objlist *obj,int id,N_VALUE **inst,N_VALUE **prev) /* getobjprev() returns NULL if instance is not found */ { if (obj==NULL) { error(NULL,ERROBJFOUND); return NULL; } if (chkobjprev(obj,id,inst,prev)==NULL) { error3(obj,ERRIDFOUND,id); return NULL; } return *inst; } N_VALUE * getobjinstoid(struct objlist *obj,int oid) { N_VALUE *inst; if (obj==NULL) { error(NULL,ERROBJFOUND); return NULL; } if ((inst=chkobjinstoid(obj,oid))==NULL) { error3(obj,ERROIDFOUND,oid); return NULL; } return inst; } static int getobjname(struct objlist *obj,int *id,char *name) /* getobjname() returns -1 when named instance is not found */ { int i,id2; char *iname; N_VALUE *inst; if (id==NULL) id2=0; else id2=*id; if (getobjoffset(obj,"name")==-1) return -1; for (i=id2;i<=obj->lastinst;i++) { if ((inst=getobjinst(obj,i))==NULL) return -1; if (_getobj(obj,"name",inst,&iname)==-1) return -1; if ((iname!=NULL) && (strcmp0(iname,name)==0)) { if (id!=NULL) *id=i+1; return i; } } if (id!=NULL) *id=obj->lastinst+1; error2(obj,ERRNMFOUND,name); return -1; } static int getobjid(struct objlist *obj,int id) /* getobjid() returns -1 on error */ { if ((id>obj->lastinst) || (id<0)) { error3(obj,ERRIDFOUND,id); return -1; } else return id; } static int getobjoid(struct objlist *obj,int oid) /* getobjoid() returns -1 on error */ { int id; if ((id=chkobjoid(obj,oid))==-1) { error3(obj,ERROIDFOUND,oid); return -1; } else return id; } int getobjfield(struct objlist *obj, const char *name) { if (chkobjfield(obj,name)==-1) { error2(obj,ERRVALFOUND,name); return -1; } else { return 0; } } #ifdef COMPILE_UNUSED_FUNCTIONS static int getobjproc(struct objlist *obj,char *vname,void *val) { struct objlist *robj; int idn; Proc proc; if ((idn=getobjtblpos(obj,vname,&robj))==-1) return -1; proc=robj->table[idn].proc; *(Proc *)val=proc; return 0; } #endif /* COMPILE_UNUSED_FUNCTIONS */ static void (* NewObjCB)(struct objlist *obj) = NULL; static void (* DelObjCB)(struct objlist *obj) = NULL; int newobj_alias(struct objlist *obj, const char *name) { struct objlist *robj; N_VALUE *instcur,*instnew,*inst; int nextp,id,idp,oidp,rcode,initn,initp; int argc; char **argv; if (obj == NULL || name == NULL) { return -1; } idp = obj->idp; if (idp == -1) { error(obj, ERRNOID); return -1; } initn = getobjtblpos(obj, "init", &robj); if (initn == -1) return -1; initp = chkobjoffset2(robj, initn); if ((robj->table[initn].attrib & NEXEC) == 0) { error2(obj, ERRPERMISSION, "init"); return -1; } id = obj->lastinst + 1; if ((id + obj->lastinst2 + 1) == INST_MAX) { error3(obj, ERRINSTNUM, INST_MAX); return -1; } nextp = obj->nextp; instcur = chkobjinst(obj, obj->lastinst); if (instcur != NULL && nextp == -1) { error(obj, ERRNONEXT); return -1; } instnew = g_malloc0(obj->size * sizeof(N_VALUE)); if (instnew == NULL) { return -1; } instnew[idp].i = id; oidp = obj->oidp; if (oidp != -1) { if (obj->lastoid == INT_MAX) { obj->lastoid=0; } else { obj->lastoid++; } if (nextp != -1) { do { inst=obj->root; while (inst) { if (inst[oidp].i == obj->lastoid) { if (obj->lastoid == INT_MAX) { obj->lastoid=0; } else { obj->lastoid++; } break; } inst = inst[nextp].inst; } if (inst == NULL) { inst = obj->root2; while (inst) { if (inst[oidp].i == obj->lastoid) { if (obj->lastoid == INT_MAX) { obj->lastoid = 0; } else { obj->lastoid++; } break; } inst = inst[nextp].inst; } } } while (inst); } instnew[oidp].i = obj->lastoid; } if (robj->table[initn].proc) { argv = NULL; if (arg_add2(&argv, 2, name, "init") == NULL) { g_free(argv); return -1; } argc = getargc(argv); rcode = robj->table[initn].proc(robj, instnew, instnew + initp, argc, argv); g_free(argv); if (rcode != 0) { g_free(instnew); return -1; } } if (instcur == NULL) { obj->root=instnew; } else { instcur[nextp].inst = instnew; /* nextp != -1 when instcur in not NULL */ } if (nextp != -1) { instnew[nextp].inst = NULL; } obj->lastinst = id; obj->curinst = id; if (NewObjCB) { NewObjCB(obj); } return id; } void set_newobj_cb(void (* newobj_cb)(struct objlist *obj)) { NewObjCB = newobj_cb; } void set_delobj_cb(void (* delobj_cb)(struct objlist *obj)) { DelObjCB = delobj_cb; } int newobj(struct objlist *obj) /* newobj() returns id or -1 on error */ { return newobj_alias(obj, obj->name); } int delobj(struct objlist *obj,int delid) /* delobj() returns id or -1 on error */ { struct objlist *robj,*objcur; N_VALUE *instcur,*instprev,*inst; int i,nextp,idp,donen,donep,rcode,offset; int argc; char **argv; struct narray *array; if ((idp=obj->idp)==-1) { error(obj,ERRNOID); return -1; } if ((donen=chkobjtblpos(obj,"done",&robj))==-1) { error(obj,ERRDESTRUCT); return -1; } donep=chkobjoffset2(robj,donen); if ((robj->table[donen].attrib & NEXEC)==0) { error2(obj,ERRPERMISSION,"done"); return -1; } if (getobjprev(obj,delid,&instcur,&instprev)==NULL) return -1; if (robj->table[donen].proc!=NULL) { argv=NULL; if (arg_add2(&argv,2,obj->name,"done")==NULL) { g_free(argv); return -1; } argc=getargc(argv); rcode=robj->table[donen].proc(robj,instcur,instcur+donep,argc,argv); g_free(argv); if (rcode!=0) return -1; } if ((nextp=obj->nextp)==-1) obj->root=NULL; else { if (instprev==NULL) obj->root=instcur[nextp].inst; else instprev[nextp].inst=instcur[nextp].inst; inst=instcur[nextp].inst; while (inst!=NULL) { inst[idp].i--; inst=inst[nextp].inst; } instcur[nextp].inst=NULL; } objcur=obj; while (objcur!=NULL) { for (i=0;itblnum;i++) { offset=objcur->table[i].offset; switch (objcur->table[i].type) { case NSTR: case NOBJ: case NSFUNC: g_free(instcur[offset].str); break; case NPOINTER: g_free(instcur[offset].ptr); break; case NIARRAY: case NIAFUNC: case NDARRAY: case NDAFUNC: array=instcur[offset].array; arrayfree(array); break; case NSARRAY: case NSAFUNC: array=instcur[offset].array; arrayfree2(array); break; default: break; } } objcur=objcur->parent; } g_free(instcur); obj->lastinst--; obj->curinst=-1; if (DelObjCB) { DelObjCB(obj); } return 0; } void delchildobj(struct objlist *parent) { struct objlist *ocur; int i,instnum; ocur=chkobjroot(); while (ocur!=NULL) { if (chkobjparent(ocur)==parent) { if ((instnum=chkobjlastinst(ocur))!=-1) for (i=instnum;i>=0;i--) delobj(ocur,i); delchildobj(ocur); } ocur=ocur->next; } } int _putobj(struct objlist *obj, const char *vname,N_VALUE *inst,void *val) { struct objlist *robj; int idp,idn; if ((idn=getobjtblpos(obj,vname,&robj))==-1) return -1; idp=chkobjoffset2(robj,idn); switch (robj->table[idn].type) { case NVOID: #if USE_LABEL case NLABEL: #endif case NVFUNC: break; case NBOOL: case NBFUNC: case NINT: case NIFUNC: #if USE_NCHAR case NCHAR: case NCFUNC: #endif case NENUM: inst[idp].i=*(int *)val; break; case NDOUBLE: case NDFUNC: inst[idp].d=*(double *)val; break; default: inst[idp].ptr=val; break; } return 0; } int putobj(struct objlist *obj, const char *vname,int id,void *val) /* putobj() returns id or -1 on error */ { struct objlist *robj; struct narray *array; N_VALUE *instcur; int idp,idn,rcode,argc; char **argv; if ((idn=getobjtblpos(obj,vname,&robj))==-1) return -1; idp=chkobjoffset2(robj,idn); if ((instcur=getobjinst(obj,id))==NULL) return -1; if ((robj->table[idn].attrib & NWRITE)==0) { error2(obj,ERRPERMISSION,vname); return -1; } if ((robj->table[idn].typetable[idn].proc!=NULL)) { argv=NULL; if (arg_add2(&argv,3,obj->name,vname,val)==NULL) { g_free(argv); return -1; } argc=getargc(argv); rcode=robj->table[idn].proc(robj,instcur,instcur+idp,argc,argv); val=argv[2]; g_free(argv); if (rcode!=0) return -1; } switch (robj->table[idn].type) { case NSTR: case NOBJ: case NSFUNC: g_free(instcur[idp].str); break; case NPOINTER: g_free(instcur[idp].ptr); break; case NIARRAY: case NIAFUNC: case NDARRAY: case NDAFUNC: array=instcur[idp].array; arrayfree(array); break; case NSARRAY: case NSAFUNC: array=instcur[idp].array; arrayfree2(array); break; default: break; } switch (robj->table[idn].type) { case NVOID: #if USE_LABEL case NLABEL: #endif case NVFUNC: break; case NBOOL: case NINT: #if USE_NCHAR case NCHAR: #endif case NENUM: instcur[idp].i=*(int *)val; break; case NDOUBLE: instcur[idp].d=*(double *)val; break; default: instcur[idp].ptr=val; break; } obj->curinst=id; return id; } int _getobj(struct objlist *obj, const char *vname,N_VALUE *inst,void *val) { struct objlist *robj; int idp,idn; if ((idn=getobjtblpos(obj,vname,&robj))==-1) return -1; idp=chkobjoffset2(robj,idn); switch (robj->table[idn].type) { case NVOID: #if USE_LABEL case NLABEL: #endif case NVFUNC: break; case NBOOL: case NBFUNC: case NINT: case NIFUNC: #if USE_NCHAR case NCHAR: case NCFUNC: #endif case NENUM: *(int *)val=inst[idp].i; break; case NDOUBLE: case NDFUNC: *(double *)val=inst[idp].d; break; case NSTR: case NSFUNC: case NOBJ: *(char **)val = inst[idp].str; break; case NIARRAY: case NIAFUNC: case NSARRAY: case NSAFUNC: case NDAFUNC: case NDARRAY: *(struct narray **)val = inst[idp].array; break; default: *(char **)val=inst[idp].ptr; break; } return 0; } int getobj(struct objlist *obj, const char *vname,int id, int argc,char **argv,void *val) /* getobj() returns id or -1 on error */ { struct objlist *robj; N_VALUE *instcur; int i,idp,idn; int argc2,rcode; char **argv2; if ((idn=getobjtblpos(obj,vname,&robj))==-1) return -1; idp=chkobjoffset2(robj,idn); if ((instcur=getobjinst(obj,id))==NULL) return -1; if (((robj->table[idn].attrib & NREAD)==0) || ((robj->table[idn].type>=NVFUNC) && ((robj->table[idn].attrib & NEXEC)==0))) { error2(obj,ERRPERMISSION,vname); return -1; } if ((robj->table[idn].type>=NVFUNC) && (robj->table[idn].proc!=NULL)) { argv2=NULL; if (arg_add2(&argv2,2,obj->name,vname)==NULL) { g_free(argv2); return -1; } for (i=0;itable[idn].proc(robj,instcur,instcur+idp,argc2,argv2); g_free(argv2); if (rcode!=0) return -1; } switch (robj->table[idn].type) { case NVOID: #if USE_LABEL case NLABEL: #endif case NVFUNC: break; case NBOOL: case NBFUNC: case NINT: case NIFUNC: #if USE_NCHAR case NCHAR: case NCFUNC: #endif case NENUM: *(int *)val=instcur[idp].i; break; case NDOUBLE: case NDFUNC: *(double *)val=instcur[idp].d; break; case NSTR: case NSFUNC: case NOBJ: *(char **)val = instcur[idp].str; break; case NIARRAY: case NIAFUNC: case NSARRAY: case NSAFUNC: case NDAFUNC: case NDARRAY: *(struct narray **)val = instcur[idp].array; break; default: *(char **)val=instcur[idp].ptr; break; } obj->curinst=id; return id; } int _exeparent(struct objlist *obj,const char *vname,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) /* _exeparent() returns errorlevel or -1 on error */ { struct objlist *parent,*robj; int idn,idp,rcode; N_VALUE *rval2; if ((parent=obj->parent)==NULL) return 0; if ((idn=chkobjtblpos(parent,vname,&robj))==-1) return 0; idp=chkobjoffset2(robj,idn); if (chkobjfieldtype(parent,vname)table[idn].proc!=NULL) { rcode=robj->table[idn].proc(robj,inst,rval2,argc,argv); } else rcode=0; return rcode; } int __exeobj(struct objlist *obj,int idn,N_VALUE *inst,int argc,char **argv) /* __exeobj() returns errorlevel or -1 on error */ { int rcode,idp; if (obj->table[idn].typetable[idn].proc!=NULL) { idp=chkobjoffset2(obj,idn); rcode=obj->table[idn].proc(obj,inst,inst+idp,argc,argv); } else rcode=0; return rcode; } int _exeobj(struct objlist *obj,const char *vname,N_VALUE *inst,int argc,char **argv) /* _exeobj() returns errorlevel or -1 on error */ { struct objlist *robj; int i,idn,idp,rcode; int argc2; char **argv2; if ((idn=getobjtblpos(obj,vname,&robj))==-1) return -1; idp=chkobjoffset2(robj,idn); if (robj->table[idn].typetable[idn].proc!=NULL) { argv2=NULL; if (arg_add2(&argv2,2,obj->name,vname)==NULL) { g_free(argv2); return -1; } for (i=0;itable[idn].proc(robj,inst,inst+idp,argc2,argv2); g_free(argv2); } else rcode=0; return rcode; } int exeobj(struct objlist *obj, const char *vname,int id,int argc,char **argv) /* exeobj() returns errorlevel or -1 on error */ { struct objlist *robj; N_VALUE *instcur; int i,idn,idp,rcode; int argc2; char **argv2; if ((idn=getobjtblpos(obj,vname,&robj))==-1) return -1; idp=chkobjoffset2(robj,idn); if ((instcur=getobjinst(obj,id))==NULL) return -1; if ((robj->table[idn].typetable[idn].attrib & NREAD)==0) || ((robj->table[idn].type>=NVFUNC) && ((robj->table[idn].attrib & NEXEC)==0))) { error2(obj,ERRPERMISSION,vname); return -1; } if (robj->table[idn].proc!=NULL) { argv2=NULL; if (arg_add2(&argv2,2,obj->name,vname)==NULL) { g_free(argv2); return -1; } for (i=0;itable[idn].proc(robj,instcur,instcur+idp,argc2,argv2); g_free(argv2); } else rcode=0; obj->curinst=id; return rcode; } int copyobj(struct objlist *obj, const char *vname,int did,int sid) { struct objlist *robj; unsigned int i; int idn; char value[8]; char *po; struct narray *array; char *s; if ((idn=getobjtblpos(obj,vname,&robj))==-1) return -1; if (((robj->table[idn].attrib & NREAD)==0) || ((robj->table[idn].attrib & NWRITE)==0) || (robj->table[idn].type>=NVFUNC)) { error2(obj,ERRPERMISSION,vname); return -1; } po=value; if (getobj(obj,vname,sid,0,NULL,po)==-1) return -1; switch (robj->table[idn].type) { case NVOID: #if USE_LABEL case NLABEL: #endif case NBOOL: case NINT: #if USE_NCHAR case NCHAR: #endif case NENUM: case NDOUBLE: if (putobj(obj,vname,did,po)==-1) return -1; break; case NSTR: case NOBJ: if (*(char **)po==NULL) { if (putobj(obj,vname,did,NULL)==-1) return -1; } else { if ((s=g_malloc(strlen(*(char **)po)+1))==NULL) return -1; strcpy(s,*(char **)po); if (putobj(obj,vname,did,s)==-1) return -1; } break; case NIARRAY: case NDARRAY: if (*(struct narray **)po==NULL) { if (putobj(obj,vname,did,NULL)==-1) return -1; } else { if ((array=arraynew(arraybase(*(struct narray **)po)))==NULL) return -1; for (i=0;iidp; if (idp == -1) { error(obj, ERRNOID); return -1; } if (getobjid(obj, sid) == -1) { return -1; } if (did == sid) { return did; } dinstcur = chkobjinst(obj, did); if (dinstcur == NULL) { return -1; } exchobj(obj,did,sid); if (delobj(obj, sid) == -1) { exchobj(obj, did, sid); return -1; } obj->curinst = dinstcur[idp].i; return dinstcur[idp].i; } int moveupobj(struct objlist *obj,int id) /* moveupobj() returns id or -1 on error */ { N_VALUE *instcur,*instprev,*instcur2,*instprev2; N_VALUE *inst; int idp,nextp; if ((idp=obj->idp)==-1) { error(obj,ERRNOID); return -1; } if (getobjprev(obj,id,&instcur,&instprev)==NULL) return -1; if (id==0) return id; if ((nextp=obj->nextp)==-1) { error2(obj,ERRVALFOUND,"next"); return -1; } if (getobjprev(obj,id-1,&instcur2,&instprev2)==NULL) return -1; inst=instcur[nextp].inst; if (instprev2==NULL) obj->root=instcur; else instprev2[nextp].inst=instcur; instcur[nextp].inst=instprev; if (instprev==NULL) obj->root=inst; else instprev[nextp].inst=inst; instcur[idp].i--; instprev[idp].i++; obj->curinst=id-1; return id-1; } int movetopobj(struct objlist *obj,int id) /* movetopobj() returns id or -1 on error */ { N_VALUE *instcur,*instprev; N_VALUE *rinst,*pinst,*inst; int idp,nextp; if ((idp=obj->idp)==-1) { error(obj,ERRNOID); return -1; } if (getobjprev(obj,id,&instcur,&instprev)==NULL) return -1; if (id==0) return id; if ((nextp=obj->nextp)==-1) { error2(obj,ERRVALFOUND,"next"); return -1; } rinst=obj->root; inst=instcur[nextp].inst; pinst=instprev[nextp].inst; obj->root=pinst; instcur[nextp].inst=rinst; instprev[nextp].inst=inst; instcur[idp].i=0; instcur=rinst; while (instcur!=inst) { instcur[idp].i++; instcur=instcur[nextp].inst; } obj->curinst=0; return 0; } int movedownobj(struct objlist *obj,int id) /* movedownobj() returns id or -1 on error */ { N_VALUE *instcur,*instprev; N_VALUE *ninst,*inst; int idp,nextp,lid; if ((idp=obj->idp)==-1) { error(obj,ERRNOID); return -1; } if (getobjprev(obj,id,&instcur,&instprev)==NULL) return -1; lid=chkobjlastinst(obj); if (id==lid) return id; if ((nextp=obj->nextp)==-1) { error2(obj,ERRVALFOUND,"next"); return -1; } inst=instcur[nextp].inst; ninst=inst[nextp].inst; if (instprev==NULL) obj->root=inst; else instprev[nextp].inst=inst; inst[nextp].inst=instcur; instcur[nextp].inst=ninst; instcur[idp].i++; inst[idp].i--; obj->curinst=id+1; return id+1; } int movelastobj(struct objlist *obj,int id) /* movelastobj() returns id or -1 on error */ { N_VALUE *instcur,*instprev,*lastinst; N_VALUE *pinst,*inst; int idp,nextp,lid; if ((idp=obj->idp)==-1) { error(obj,ERRNOID); return -1; } if (getobjprev(obj,id,&instcur,&instprev)==NULL) return -1; lid=chkobjlastinst(obj); if ((lastinst=getobjinst(obj,lid))==NULL) return -1; if (id==lid) return id; if ((nextp=obj->nextp)==-1) { error2(obj,ERRVALFOUND,"next"); return -1; } inst=instcur[nextp].inst; if (instprev==NULL) pinst=obj->root; else pinst=instprev[nextp].inst; lastinst[nextp].inst=pinst; instcur[nextp].inst=NULL; if (instprev==NULL) obj->root=inst; else instprev[nextp].inst=inst; instcur[idp].i=lid; while (inst!=instcur) { inst[idp].i--; inst=inst[nextp].inst; } obj->curinst=lid; return lid; } int exchobj(struct objlist *obj,int id1,int id2) /* exchobj() returns id or -1 on error */ { N_VALUE *instcur1,*instprev1; N_VALUE *instcur2,*instprev2; N_VALUE *inst,*inst1,*inst2; int idp,id,nextp; idp = obj->idp; if (idp == -1) { error(obj, ERRNOID); return -1; } if (getobjprev(obj, id1, &instcur1, &instprev1)==NULL || getobjprev(obj, id2, &instcur2, &instprev2)==NULL) { return -1; } if (id1 == id2) { return id1; } nextp = obj->nextp; if (nextp == -1) { error2(obj, ERRVALFOUND, "next"); return -1; } id = instcur1[idp].i; instcur1[idp].i = instcur2[idp].i; instcur2[idp].i = id; if (instprev1 == NULL) { inst1 = obj->root; } else { inst1 = instprev1[nextp].inst; } if (instprev2 == NULL) { inst2 = obj->root; } else { inst2 = instprev2[nextp].inst; } if (instprev1 == NULL) { obj->root = inst2; } else { instprev1[nextp].inst = inst2; } if (instprev2 == NULL) { obj->root = inst1; } else { instprev2[nextp].inst = inst1; } inst = instcur1[nextp].inst; instcur1[nextp].inst = instcur2[nextp].inst; instcur2[nextp].inst = inst; obj->curinst = id2; return id2; } /* char *saveobj(struct objlist *obj, int id) { N_VALUE *instcur,*instnew; if ((instcur=getobjinst(obj,id))==NULL) return NULL; if ((instnew=g_malloc(obj->size))==NULL) return NULL; memcpy(instnew,instcur,obj->size * sizeof(N_VALUE)); return instnew; } char *restoreobj(struct objlist *obj,int id,char *image) { N_VALUE *instcur; if (obj==NULL) return NULL; if ((instcur=getobjinst(obj,id))==NULL) return NULL; memcpy(instcur,image,obj->size * sizeof(N_VALUE)); g_free(image); return instcur; } */ static int chkilist(struct objlist *obj,char *ilist,struct narray *iarray,int def,int *spc) /* spc OBJ_LIST_SPECIFIED_NOT_FOUND: not found OBJ_LIST_SPECIFIED_BY_ID: specified by id OBJ_LIST_SPECIFIED_BY_OID: specified by oid OBJ_LIST_SPECIFIED_BY_NAME: specified by name OBJ_LIST_SPECIFIED_BY_OTHER: specified by other */ { int i,len,snum,dnum,num,sid,l; int oid; char *tok,*s,*iname,*endptr; *spc=OBJ_LIST_SPECIFIED_NOT_FOUND; num=0; tok=NULL; if ((ilist==NULL) || (ilist[0]=='\0')) { if (def) { if ((snum=chkobjcurinst(obj))==-1) return -1; if (arrayadd(iarray,&snum)==NULL) goto errexit; num++; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } } else { while ((s=getitok2(&ilist,&len," \t,"))!=NULL) { g_free(tok); tok=s; iname=NULL; if (s[0]=='@') { if ((snum=chkobjcurinst(obj))==-1) goto errexit; s++; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } else if (s[0]=='!') { if ((snum=chkobjlastinst(obj))==-1) goto errexit; s++; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } else { if (s[0]=='^') { oid=TRUE; s++; } else oid=FALSE; l=strtol(s,&endptr,10); if (s!=endptr) { if (oid) { snum=chkobjoid(obj,l); *spc=OBJ_LIST_SPECIFIED_BY_OID; } else { snum=chkobjid(obj,l); *spc=OBJ_LIST_SPECIFIED_BY_ID; } if (snum==-1) goto errexit; } s=endptr; } if (s==tok) { snum=0; if ((dnum=chkobjlastinst(obj))==-1) goto errexit; iname=tok; } else if (s[0]=='-') { s++; if (s[0]=='@') { if ((dnum=chkobjcurinst(obj))==-1) goto errexit; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } else if (s[0]=='!') { if ((dnum=chkobjlastinst(obj))==-1) goto errexit; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } else { l=strtol(s,&endptr,10); if (endptr[0]!='\0') { goto errexit; } else { dnum=getobjid(obj,l); if (dnum==-1) goto errexit; *spc=OBJ_LIST_SPECIFIED_BY_ID; } } } else if (s[0]=='+') { *spc=OBJ_LIST_SPECIFIED_BY_OTHER; s++; if (s[0]=='@') { if ((dnum=chkobjcurinst(obj))==-1) goto errexit; } else if (s[0]=='!') { if ((dnum=chkobjlastinst(obj))==-1) goto errexit; } else { l=strtol(s,&endptr,10); if (endptr[0]!='\0') { goto errexit; } else { dnum=l; } } snum+=dnum; dnum=snum; } else if (s[0]=='\0') { dnum=snum; } else { goto errexit; } if (iname==NULL) { for (i=snum;i<=dnum;i++) { if (chkobjid(obj,i)==-1) goto errexit; if (arrayadd(iarray,&i)==NULL) goto errexit; num++; } } else { *spc=OBJ_LIST_SPECIFIED_BY_NAME; sid=0; if (chkobjname(obj,&sid,iname)==-1) goto errexit; sid=0; while ((snum=chkobjname(obj,&sid,iname))>=0) { if (arrayadd(iarray,&snum)==NULL) goto errexit; num++; } } } } g_free(tok); return num; errexit: g_free(tok); arraydel(iarray); return -1; } static int getilist(struct objlist *obj,char *ilist,struct narray *iarray,int def,int *spc) /* spc OBJ_LIST_SPECIFIED_NOT_FOUND: not found OBJ_LIST_SPECIFIED_BY_ID: specified by id OBJ_LIST_SPECIFIED_BY_OID: specified by oid OBJ_LIST_SPECIFIED_BY_NAME: specified by name OBJ_LIST_SPECIFIED_BY_OTHER: specified by other */ { int i,len,snum,dnum,num,sid,l; int oid; char *tok,*s,*iname,*endptr; *spc=OBJ_LIST_SPECIFIED_NOT_FOUND; num=0; tok=NULL; if ((ilist==NULL) || (ilist[0]=='\0')) { if (def) { if ((snum=getobjcurinst(obj))==-1) return -1; if (arrayadd(iarray,&snum)==NULL) goto errexit; num++; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } } else { while ((s=getitok2(&ilist,&len," \t,"))!=NULL) { g_free(tok); tok=s; iname=NULL; if (s[0]=='@') { if ((snum=getobjcurinst(obj))==-1) goto errexit; s++; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } else if (s[0]=='!') { if ((snum=getobjlastinst(obj))==-1) goto errexit; s++; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } else { if (s[0]=='^') { oid=TRUE; s++; } else oid=FALSE; l=strtol(s,&endptr,10); if (s!=endptr) { if (oid) { snum=getobjoid(obj,l); *spc=OBJ_LIST_SPECIFIED_BY_OID; } else { snum=getobjid(obj,l); *spc=OBJ_LIST_SPECIFIED_BY_ID; } if (snum==-1) goto errexit; } s=endptr; } if (s==tok) { snum=0; if ((dnum=getobjlastinst(obj))==-1) goto errexit; iname=tok; } else if (s[0]=='-') { s++; if (s[0]=='@') { if ((dnum=getobjcurinst(obj))==-1) goto errexit; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } else if (s[0]=='!') { if ((dnum=getobjlastinst(obj))==-1) goto errexit; *spc=OBJ_LIST_SPECIFIED_BY_OTHER; } else { l=strtol(s,&endptr,10); if (endptr[0]!='\0') { error2(obj,ERRILINST,tok); goto errexit; } else { dnum=getobjid(obj,l); if (dnum==-1) goto errexit; *spc=OBJ_LIST_SPECIFIED_BY_ID; } } } else if (s[0]=='+') { *spc=OBJ_LIST_SPECIFIED_BY_OTHER; s++; if (s[0]=='@') { if ((dnum=getobjcurinst(obj))==-1) goto errexit; } else if (s[0]=='!') { if ((dnum=getobjlastinst(obj))==-1) goto errexit; } else { l=strtol(s,&endptr,10); if (endptr[0]!='\0') { error2(obj,ERRILINST,tok); goto errexit; } else { dnum=l; } } snum+=dnum; dnum=snum; } else if (s[0]=='\0') { dnum=snum; } else { error2(obj,ERRILINST,tok); goto errexit; } if (iname==NULL) { for (i=snum;i<=dnum;i++) { if (getobjid(obj,i)==-1) goto errexit; if (arrayadd(iarray,&i)==NULL) goto errexit; num++; } } else { *spc=OBJ_LIST_SPECIFIED_BY_NAME; sid=0; if (getobjname(obj,&sid,iname)==-1) goto errexit; sid=0; while ((snum=chkobjname(obj,&sid,iname))>=0) { if (arrayadd(iarray,&snum)==NULL) goto errexit; num++; } } } } g_free(tok); return num; errexit: g_free(tok); arraydel(iarray); return -1; } int chkobjilist(char *s,struct objlist **obj,struct narray *iarray,int def,int *spc) { char *oname,*ilist; int r; int spc2; r = getobjiname(s, &oname, &s); if (r) { return r; } if ((*obj=chkobject(oname))==NULL) { g_free(oname); return -1; } g_free(oname); if (s[0]==':') s++; ilist=s; if (def && (chkobjlastinst(*obj)==-1)) return -1; if (chkilist(*obj,ilist,iarray,def,&spc2)==-1) return -1; if (spc!=NULL) *spc=spc2; return 0; } int getobjiname(char *s, char **name, char **ptr) { char *oname; int len; *name = NULL; if (s == NULL) { return -1; } len = 0; if (s[0] == ':' || (oname = getitok2(&s, &len, ":")) == NULL) { if (len == -1) { return -1; } error2(NULL, ERRILOBJ, s); return ERRILOBJ; } if (ptr) { *ptr = s; } *name = oname; return 0; } int getobjilist(char *s,struct objlist **obj,struct narray *iarray,int def,int *spc) { char *oname,*ilist; int r; int spc2; r = getobjiname(s, &oname, &s); if (r) { return r; } if ((*obj=getobject(oname))==NULL) { g_free(oname); return -1; } g_free(oname); if (s[0]==':') s++; ilist=s; if (def && (getobjlastinst(*obj)==-1)) return -1; if (getilist(*obj,ilist,iarray,def,&spc2)==-1) return -1; if (spc!=NULL) *spc=spc2; return 0; } int chkobjilist2(char **s,struct objlist **obj,struct narray *iarray,int def) { char *oname,*ilist; int len,num,spc; if ((oname=getitok2(s,&len,":"))==NULL) { if (len==-1) return -1; return ERRILOBJ; } if ((*obj=chkobject(oname))==NULL) { g_free(oname); return -1; } g_free(oname); if (def && (chkobjlastinst(*obj)==-1)) return -1; if ((*s)[0]=='\0') { return ERRILOBJ; } else if ((*s)[0]==':') (*s)++; if ((*s)[0]==':') ilist=NULL; else { if ((ilist=getitok2(s,&len,":"))==NULL) { if (len==-1) return -1; return ERRILOBJ; } } num=chkilist(*obj,ilist,iarray,def,&spc); g_free(ilist); if (num==-1) return -1; if (((*s)[0]!='\0') && ((*s)[0]==':')) (*s)++; return 0; } int getobjilist2(char **s,struct objlist **obj,struct narray *iarray,int def) { char *oname,*ilist; int len,num,spc; if ((oname=getitok2(s,&len,":"))==NULL) { if (len==-1) return -1; error2(NULL,ERRILOBJ,*s); return ERRILOBJ; } if ((*obj=getobject(oname))==NULL) { g_free(oname); return -1; } g_free(oname); if (def && (getobjlastinst(*obj)==-1)) return -1; if ((*s)[0]=='\0') { error2(NULL,ERRILOBJ,*s); return ERRILOBJ; } else if ((*s)[0]==':') (*s)++; if ((*s)[0]==':') ilist=NULL; else { if ((ilist=getitok2(s,&len,":"))==NULL) { if (len==-1) return -1; error2(NULL,ERRILOBJ,*s); return ERRILOBJ; } } num=getilist(*obj,ilist,iarray,def,&spc); g_free(ilist); if (num==-1) return -1; if (((*s)[0]!='\0') && ((*s)[0]==':')) (*s)++; return 0; } char * mkobjlist(struct objlist *obj, const char *objname,int id, const char *field,int oid) { char ids[11]; char *s; int len,flen; if (objname==NULL) objname=chkobjectname(obj); if (oid) sprintf(ids,"^%d",id); else sprintf(ids,"%d",id); if (field!=NULL) flen=strlen(field); else flen=0; if ((s=g_malloc(strlen(objname)+strlen(ids)+flen+3))==NULL) return NULL; strcpy(s,objname); len=strlen(s); s[len]=':'; strcpy(s+len+1,ids); if (field!=NULL) { len=strlen(s); s[len]=':'; strcpy(s+len+1,field); } return s; } struct objlist * getobjlist(char *list,int *id,char **field,int *oid) { char *objname; char *ids,*ids2; int len; struct objlist *obj; char *endptr; objname=getitok2(&list,&len,":"); ids=getitok2(&list,&len,":"); *field=getitok(&list,&len,":"); if ((objname==NULL) || (ids==NULL) || (*field==NULL)) { g_free(objname); g_free(ids); *field=NULL; return NULL; } obj=chkobject(objname); g_free(objname); if (ids[0]=='^') { if (oid!=NULL) *oid=TRUE; ids2=ids+1; } else { if (oid!=NULL) *oid=FALSE; ids2=ids; } *id=strtol(ids2,&endptr,0); if ((ids2[0]=='\0') || (endptr[0]!='\0') || (chkobjoffset(obj,*field)==-1)) { g_free(ids); *field=NULL; return NULL; } g_free(ids); return obj; } char * chgobjlist(char *olist) { char *list,*objname,*newlist; char *ids,*ids2; int id,len; struct objlist *obj; char *endptr; N_VALUE *inst; list=olist; objname=getitok2(&list,&len,":"); ids=getitok2(&list,&len,":"); if ((objname==NULL) || (ids==NULL)) { g_free(objname); g_free(ids); return NULL; } if (ids[0]!='^') { g_free(objname); g_free(ids); if ((newlist=g_malloc(strlen(olist)+1))==NULL) return NULL; strcpy(newlist,olist); return newlist; } ids2=ids+1; id=strtol(ids2,&endptr,0); if ((ids2[0]=='\0') || (endptr[0]!='\0')) { g_free(objname); g_free(ids); return NULL; } g_free(ids); obj=chkobject(objname); if ((inst=chkobjinstoid(obj,id))==NULL) { g_free(objname); return NULL; } _getobj(obj,"id",inst,&id); newlist=mkobjlist(obj,objname,id,NULL,FALSE); g_free(objname); return newlist; } char * getvaluestr(struct objlist *obj,const char *field,void *val,int cr,int quote) { struct narray *array; void *po; char *bval; const char *arglist; unsigned int k; int i; enum ngraph_object_field_type type; GString *str; str = g_string_sized_new(64); if (str == NULL) { return NULL; } arglist=chkobjarglist(obj,field); type=chkobjfieldtype(obj,field); po=val; switch (type) { case NBOOL: case NBFUNC: if (*(int *)po) bval="true"; else bval="false"; g_string_append_printf(str,"%s",bval); break; #if USE_NCHAR case NCHAR: case NCFUNC: g_string_append_printf(str,"%c",*(char *)po); break; #endif case NINT: case NIFUNC: g_string_append_printf(str,"%d",*(int *)po); break; case NDOUBLE: case NDFUNC: g_string_append_printf(str,"%.15e",*(double *)po); break; case NSTR: case NSFUNC: case NOBJ: if (*(char **)po==NULL) break; else { bval=*(char **)po; if (quote) g_string_append_printf(str,"'"); for (i=0;bval[i]!='\0';i++) { if ((bval[i]=='\'') && quote) g_string_append_printf(str,"'\\''"); else g_string_append_printf(str,"%c",bval[i]); } if (quote) g_string_append_printf(str,"'"); } break; case NIARRAY: case NIAFUNC: array=*(struct narray **)po; if (array==NULL) break; else { if (quote) g_string_append_printf(str,"'"); for (k=0;k 0 && j >= sargc && arglist[j + 1]) { err = 1; goto errexit; } if (sargc == 0 || (j >= sargc && arglist[j + 1] == '\0')) { s = NULL; } else { s = sargv[j]; } if (add_arg_object(s, &argv)) { err = 3; goto errexit; } break; case 'i': case 'd': case 'b': if (j >= sargc) { err = 2; goto errexit; } r = add_arg_num(arglist[j], sargv[j], &argv); if (r) { err = r; goto errexit; } break; } } } if (sargv) { g_strfreev(sargv); } *argc = getargc(argv); *rargv = argv; return 0; errexit: if (sargv) { g_strfreev(sargv); } arg_del(argv); *argc = -1; *rargv = NULL; return err; } #else static int getargument(int type,char *arglist, char *val,int *argc, char ***rargv) { struct narray *array; int len,alp; char *list,*s, *s2; int vi; double vd; char **argv,*p; int rcode; int i,err; char **enumlist; char *oname,*os; int olen; struct objlist *obj2; array = NULL; argv = NULL; if (arg_add(&argv,NULL) == NULL) { err = 1; goto errexit; } s2 = NULL; alp = 0; if (val == NULL) { *argc = getargc(argv); *rargv = argv; return 0; } list = val; err = -1; if (type == NENUM) { enumlist = (char **)arglist; arglist = "s"; } else { /* initialize to avoid warning nessage */ enumlist = NULL; } while (TRUE) { if ((arglist != NULL) && ((strcmp0(arglist + alp, "s") == 0) || (strcmp0(arglist + alp, "o") == 0))) { if (list[0] == '\0') { s = NULL; len = 0; alp++; } else { s = list; len = strlen(list); list += len; } } else { s=getitok(&list,&len," \t\n\r"); for (;(list[0]!='\0') && (strchr(" \t\n\r",list[0])!=NULL);list++); } if (s==NULL) break; g_free(s2); if ((s2=g_malloc(len+1))==NULL) goto errexit; strncpy(s2,s,len); s2[len]='\0'; if ((arglist!=NULL) && (arglist[alp]=='\0')) { err=1; goto errexit; } if (arglist==NULL) { if ((p=g_malloc(strlen(s2)+1))==NULL) goto errexit; strcpy(p,s2); if (arg_add(&argv,p)==NULL) goto errexit; } else if (arglist[alp]=='o') { if (arglist[1]=='a') { err=3; goto errexit; } os=s2; if ((oname=getitok2(&os,&olen,":"))==NULL) { err=3; goto errexit; } obj2=chkobject(oname); g_free(oname); if ((obj2==NULL) || (os[0]!=':')) { err=3; goto errexit; } for (i=1; (os[i]!='\0')&&(isalnum(os[i])||(strchr("_^@!+-,",os[i])!=NULL));i++); if (os[i]!='\0') { err=3; goto errexit; } if ((p=g_malloc(strlen(s2)+1))==NULL) goto errexit; strcpy(p,s2); if (arg_add(&argv,p)==NULL) goto errexit; } else if (arglist[alp]=='s') { if (arglist[1]=='a') { if (array==NULL) { if ((array=arraynew(sizeof(char *)))==NULL) goto errexit; } if (arrayadd2(array,s2)==NULL) goto errexit; } else { if ((p=g_malloc(strlen(s2)+1))==NULL) goto errexit; strcpy(p,s2); if (arg_add(&argv,p)==NULL) goto errexit; } } else if ((arglist[alp]=='i') || (arglist[alp]=='d')) { str_calc(s2, &vd, &rcode, NULL); if (rcode!=MATH_VALUE_NORMAL) { err=3; goto errexit; } if (arglist[alp]=='i') { if (arglist[1]=='a') { vi=nround(vd); if (array==NULL) { if ((array=arraynew(sizeof(int)))==NULL) goto errexit; } if (arrayadd(array,&vi)==NULL) goto errexit; } else { if ((p=g_malloc(sizeof(int)))==NULL) goto errexit; *(int *)(p)=nround(vd); if (arg_add(&argv,p)==NULL) goto errexit; } } else { if (arglist[1]=='a') { if (array==NULL) { if ((array=arraynew(sizeof(double)))==NULL) goto errexit; } if (arrayadd(array,&vd)==NULL) goto errexit; } else { if ((p=g_malloc(sizeof(double)))==NULL) goto errexit; *(double *)(p)=vd; if (arg_add(&argv,p)==NULL) goto errexit; } } } else if (arglist[alp]=='b') { if ((strcmp0("T",s2)==0) || (strcmp0("True",s2)==0) || (strcmp0("TRUE",s2)==0) || (strcmp0("t",s2)==0) || (strcmp0("true",s2)==0)) vi=TRUE; else if ((strcmp0("F",s2)==0) || (strcmp0("False",s2)==0) || (strcmp0("FALSE",s2)==0) || (strcmp0("f",s2)==0) || (strcmp0("false",s2)==0)) vi=FALSE; else { err=3; goto errexit; } if (arglist[1]=='a') { err=3; goto errexit; } else { if ((p=g_malloc(sizeof(int)))==NULL) goto errexit; *(int *)(p)=vi; if (arg_add(&argv,p)==NULL) goto errexit; } } else if (arglist[alp]=='c') { if (strlen(s2)>1) { err=3; goto errexit; } vi=s2[0]; if (arglist[1]=='a') { err=3; goto errexit; } else { if ((p=g_malloc(sizeof(int)))==NULL) goto errexit; *(int *)(p)=vi; if (arg_add(&argv,p)==NULL) goto errexit; } } else { err=3; goto errexit; } if ((arglist!=NULL) && (arglist[1]!='a')) alp++; } if ((arglist != NULL) && (arglist[1] == 'a')) { if (arg_add(&argv,array) == NULL) { goto errexit; } } else { if ((arglist != NULL) && (arglist[alp] != '\0')) { err = 2; goto errexit; } } if (type == NENUM) { if (argv[0] == NULL) { err = 3; goto errexit; } for (i=0;enumlist[i]!=NULL;i++) { int ofst; ofst = (enumlist[i][0] == '\0') ? 1 : 0; if (strcmp0(enumlist[i] + ofst, argv[0]) == 0) { break; } } if (enumlist[i]==NULL) { err=3; goto errexit; } g_free(argv[0]); if ((p=g_malloc(sizeof(int)))==NULL) goto errexit; *(int *)(p)=i; argv[0] = p; } *argc=getargc(argv); g_free(s2); *rargv=argv; return 0; errexit: arrayfree(array); g_free(s2); arg_del(argv); *argc=-1; *rargv=NULL; return err; } #endif static void freeargument(int type,const char *arglist,int argc,char **argv,int full) { int i; if (argv!=NULL) { if (arglist==NULL) { for (i=0;i0) && (arglist[0]!='\0') && (arglist[1]=='a')) { if ((arglist[0]=='i') || (arglist[0]=='d')) arrayfree((struct narray *)(argv[0])); else if (arglist[0]=='s') arrayfree2((struct narray *)(argv[0])); } else for (i=0;iNVFUNC) && (type!=NSFUNC) && (type!=NSAFUNC)) { return -1; } } if (type>=NVFUNC) { arglist=chkobjarglist(obj,field); } else { arglist=""; type=NVOID; } po=value; err=getargument(type,arglist,val,&argc2,&argv2); if (err==1) return ERROEXTARG; else if (err==2) return ERROSMLARG; else if (err==3) return ERROVALUE; else if (err!=0) return -1; if (getobj(obj,field,id,argc2,argv2,po)==-1) err=4; freeargument(type,arglist,argc2,argv2,TRUE); if (err==0) { *valstr=getvaluestr(obj,field,po,cr,quote); if (*valstr==NULL) return -1; return 0; } else return -2; } int sgetobjfield(struct objlist *obj,int id, const char *field,char *arg, char **valstr,int limittype,int cr,int quote) { int err; char *val; int argc2; enum ngraph_object_field_type type; const char *arglist; char **argv2; char value[8]; char *po; *valstr=NULL; val=arg; if (getobjfield(obj,field)==-1) return -1; argv2=NULL; type=chkobjfieldtype(obj,field); if (limittype) { if ((type>NVFUNC) && (type!=NSFUNC) && (type!=NSAFUNC)) { return -1; } } if (type>=NVFUNC) { arglist=chkobjarglist(obj,field); } else { arglist=""; type=NVOID; } po=value; err=getargument(type,arglist,val,&argc2,&argv2); if (err==1) { error22(obj,ERROEXTARG,field,arg); return ERROEXTARG; } else if (err==2) { error22(obj,ERROSMLARG,field,arg); return ERROSMLARG; } else if (err==3) { error22(obj,ERROVALUE,field,arg); return ERROVALUE; } else if (err!=0) return -1; if (getobj(obj,field,id,argc2,argv2,po)==-1) err=4; freeargument(type,arglist,argc2,argv2,TRUE); if (err==0) { *valstr=getvaluestr(obj,field,po,cr,quote); if (*valstr==NULL) return -1; return 0; } else return -2; } static int schkfield(struct objlist *obj,int id,char *arg,char **valstr, int limittype,int cr,int quote) { int err; char *field; int len; char *s; s=arg; *valstr=NULL; if ((s==NULL) || (strchr(":= \t",s[0])!=NULL) || ((field=getitok2(&s,&len,":= \t"))==NULL)) { if (len==-1) return -1; return ERRFIELD; } if (s[0]!='\0') s++; while ((s[0]==' ') || (s[0]=='\t')) s++; err=schkobjfield(obj,id,field,s,valstr,limittype,cr,quote); g_free(field); return err; } int sgetfield(struct objlist *obj,int id,char *arg,char **valstr, int limittype,int cr,int quote) { int err; char *field; int len; char *s; s=arg; *valstr=NULL; if ((s==NULL) || (strchr(":= \t",s[0])!=NULL) || ((field=getitok2(&s,&len,":= \t"))==NULL)) { if (len==-1) return -1; error2(obj,ERRFIELD,arg); return ERRFIELD; } if (s[0]!='\0') s++; while ((s[0]==' ') || (s[0]=='\t')) s++; err=sgetobjfield(obj,id,field,s,valstr,limittype,cr,quote); g_free(field); return err; } struct narray * sgetobj(char *arg,int limittype,int cr,int quote) { struct objlist *obj; int i,anum,*id; struct narray iarray,*sarray; char *valstr; arrayinit(&iarray,sizeof(int)); if ((sarray=arraynew(sizeof(char *)))==NULL) return NULL; if (chkobjilist2(&arg,&obj,&iarray,TRUE)) { arrayfree2(sarray); return NULL; } anum=arraynum(&iarray); id=arraydata(&iarray); for (i=0;i 0) { id = arraylast_int(&iarray); if (getobj(dobj, "oid", id, 0, NULL, &oid) != -1) { dest2 = (char *) g_malloc(strlen(chkobjectname(dobj)) + 10); if (dest2) { sprintf(dest2, "%s:^%d", chkobjectname(dobj), oid); _putobj(obj, field, inst, dest2); g_free(dest); } } } } arraydel(&iarray); } int copy_obj_field(struct objlist *obj, int dist, int src, char **ignore_field) { int perm, ignore, j; enum ngraph_object_field_type type; char *field, **ptr; for (j = 0; j < chkobjfieldnum(obj); j++) { field = chkobjfieldname(obj, j); if (field == NULL) { continue; } perm = chkobjperm(obj, field); type = chkobjfieldtype(obj, field); ignore = FALSE; for (ptr = ignore_field; ptr && *ptr; ptr++) { if (strcmp2(field, *ptr) == 0) { ignore = TRUE; break; } } if (ignore) continue; if ((perm & NREAD) && (perm & NWRITE) && (type < NVFUNC)) { if (copyobj(obj, field, dist, src) == -1) { return 1; } } } return 0; } #ifdef COMPILE_UNUSED_FUNCTIONS static char * getuniqname(struct objlist *obj,char *prefix,char sep) { int i,j,len; char *iname; N_VALUE *inst; char *name; int c[10]; if (chkobjoffset(obj,"name")==-1) return NULL; if (prefix==NULL) len=0; else len=strlen(prefix); if (sep!='\0') len++; if ((name=g_malloc(len+11))==NULL) return NULL; for (i=0;i<10;i++) c[i]=0; while (TRUE) { match: i=0; while (TRUE) { c[i]++; if (c[i]==26) { c[i]=1; i++; if (i==10) return NULL; } else break; } for (i=9;i>=0;i--) if (c[i]!=0) break; if (prefix!=NULL) strcpy(name,prefix); if (sep!='\0') name[len-1]=sep; for (j=len;j<=len+i;j++) name[j]=c[i-j+len]-1+'a'; name[j]='\0'; for (i=0;i<=obj->lastinst;i++) { if ((inst=chkobjinst(obj,i))==NULL) return NULL; if (_getobj(obj,"name",inst,&iname)==-1) return NULL; if ((iname!=NULL) && (strcmp0(iname,name)==0)) goto match; } break; } return name; } #endif /* COMPILE_UNUSED_FUNCTIONS */ ngraph-gtk-6.06.13/src/ntime.c0000644000175000017500000002513512241111706012722 00000000000000/* * $Id: ntime.c,v 1.5 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include "object.h" #include "nstring.h" #include "ntime.h" char *weekstr[7]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"}; char *monthstr[12]={"Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec"}; char * ndate(time_t *timep,int style) { struct tm *ltime; char c[32]; ltime=localtime(timep); if (ltime == NULL) { return NULL; } switch (style) { case 1: snprintf(c, sizeof(c), "%d-%d-%d", ltime->tm_mon + 1, ltime->tm_mday, 1900 + ltime->tm_year); break; case 2: snprintf(c, sizeof(c), "%s %d %d", monthstr[ltime->tm_mon], ltime->tm_mday, 1900 + ltime->tm_year); break; case 3: snprintf(c, sizeof(c), "%d-%d-%d", ltime->tm_mday, ltime->tm_mon + 1, 1900 + ltime->tm_year); break; case 4: snprintf(c, sizeof(c), "%d/%d/%d", ltime->tm_mon + 1, ltime->tm_mday, 1900 + ltime->tm_year); break; default: snprintf(c, sizeof(c), "%s %s %d %d", weekstr[ltime->tm_wday], monthstr[ltime->tm_mon], ltime->tm_mday, 1900 + ltime->tm_year); break; } return g_strdup(c); } char * ntime(time_t *timep,int style) { struct tm *ltime; char c[32]; ltime=localtime(timep); if (ltime == NULL) { return NULL; } switch (style) { case 1: if (ltime->tm_hour<12) snprintf(c, sizeof(c), "%02d:%02d:%02d am", ltime->tm_hour, ltime->tm_min, ltime->tm_sec); else snprintf(c, sizeof(c), "%02d:%02d:%02d pm", ltime->tm_hour - 12, ltime->tm_min, ltime->tm_sec); break; case 2: snprintf(c, sizeof(c), "%02d:%02d", ltime->tm_hour, ltime->tm_min); break; case 3: if (ltime->tm_hour<12) { snprintf(c, sizeof(c), "%02d:%02d am", ltime->tm_hour, ltime->tm_min); } else { snprintf(c, sizeof(c), "%02d:%02d pm", ltime->tm_hour - 12, ltime->tm_min); } break; default: snprintf(c, sizeof(c), "%02d:%02d:%02d", ltime->tm_hour, ltime->tm_min, ltime->tm_sec); break; } return g_strdup(c); } int gettimeval(char *s,time_t *time) { char *endptr; struct tm tm; int year; tm.tm_mday=strtol(s,&endptr,10); if (endptr[0]!='-') return -1; s=endptr+1; tm.tm_mon=strtol(s,&endptr,10)-1; if (endptr[0]!='-') return -1; s=endptr+1; year=strtol(s,&endptr,10)-1900; if (year<0) year+=1900; tm.tm_year=year; if (endptr[0]!=' ') return -1; s=endptr+1; tm.tm_hour=strtol(s,&endptr,10); if (endptr[0]!=':') return -1; s=endptr+1; tm.tm_min=strtol(s,&endptr,10); if (endptr[0]!=':') return -1; s=endptr+1; tm.tm_sec=strtol(s,&endptr,10); tm.tm_isdst=0; *time=mktime(&tm); return 0; } void mjd2gd(double mjd, struct tm *tm) { double t; int wd; /* Date */ #if 1 /* http://en.wikipedia.org/wiki/Julian_day */ int j, g, dg, c, dc, b, db, a, da, y, m, d, Y, M, D; j = floor(mjd + 2400000.5 + 0.5 + 32044); g = j / 146097; dg = j % 146097; c = (dg / 36524 + 1) * 3 / 4; dc = dg - c * 36524; b = dc / 1461; db = dc % 1461; a = (db / 365 + 1) * 3 / 4; da = db - a * 365; y = g * 400 + c * 100 + b * 4 + a; m = (da * 5 + 308) / 153 - 2; d = da - (m + 4) * 153 / 5 + 122; Y = y - 4800 + (m + 2) / 12; M = (m + 2) % 12 + 1; D = d + 1; #else /* http://www.astro.uu.nl/~strous/AA/en/reken/juliaansedag.html */ double x0, x1, x2, c1, c2; int Y, M, D, da; x2 = floor(mjd) + (2400000.5 - 1721119.5); c2 = floor((4 * x2 + 3) / 146097.0); x1 = x2 - floor(146097 * c2 / 4.0); c1 = floor((100 * x1 + 99) / 36525.0); x0 = x1 - floor(36525 * c1 / 100.0); Y = 100 * c2 + c1; M = floor((5 * x0 + 461) / 153.0); D = x0 - floor((153 * M - 457) / 5.0) + 1; if (M > 12) { M -= 12; Y += 1; } da = floor(x0); #endif wd = floor(mjd) + 2400000 + 2; wd %= 7; tm->tm_year = Y - 1900; tm->tm_mon = M - 1; tm->tm_mday = D; tm->tm_wday = wd; if (Y % 400 == 0) { da += 60; da %= 366; } else if (Y % 100 == 0) { da += 59; da %= 365; } else if (Y % 4 == 0) { da += 60; da %= 366; } else { da += 59; da %= 365; } tm->tm_yday = da; /* Time */ t = fmod(mjd, 1); t = (t < 0) ? 1 + t : t; t *= 24; tm->tm_hour = floor(t); t = fmod(t, 1) * 60; tm->tm_min = floor(t); tm->tm_sec = fmod(t, 1) * 60; tm->tm_isdst = -1; } static int get_iso_8601_week(struct tm *t) { int y, w, a, b, c, x; w = t->tm_wday; a = t->tm_yday % 7; b = (w > a) ? w - a : 7 + w - a; c = (b == 0) ? 6 : b -1; x = (t->tm_yday + c) / 7; y = (b + 3) % 7; if (y > 4 || y == 0) { x += 1; } if ((t->tm_yday == 0 && (w == 5 || w == 6 || w == 0)) || (t->tm_yday == 1 && (w == 6 || w == 0)) || (t->tm_yday == 2 && w == 0)) { x = 53; } else if (t->tm_mon == 11) { if ((t->tm_mday == 31 && (w == 1 || w == 2 || w == 3)) || (t->tm_mday == 30 && (w == 1 || w == 2)) || (t->tm_mday == 29 && w == 1)) { x = 1; } } return x; } static int append_date_str(GString *str, const gchar *fmt, struct tm *t) { const char *wfname[]={"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; const char *mfname[]={"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; int y, m, d, w, h24, h12, mm, s, a, b, c, x; if (fmt == NULL || *fmt == '\0') { return 0; } if (t == NULL || t->tm_mon < 0 || t->tm_mon > 11 || t->tm_wday < 0 || t->tm_wday > 6) { return 1; } y = t->tm_year + 1900; m = t->tm_mon + 1; d = t->tm_mday; w = t->tm_wday; h24 = t->tm_hour; if (h24 == 0) { h12 = 12; } else if (h24 > 12) { h12 = h24 - 12; } else { h12 = h24; } mm = t->tm_min; s = t->tm_sec; switch (*fmt) { case 'a': g_string_append_printf(str, "%s", weekstr[w]); break; case 'A': g_string_append_printf(str, "%s", wfname[w]); break; case 'b': case 'h': g_string_append_printf(str, "%s", monthstr[m - 1]); break; case 'B': g_string_append_printf(str, "%s", mfname[m - 1]); break; case 'c': g_string_append_printf(str, "%s %s % 2d %02d:%02d:%02d %d", weekstr[w], monthstr[m - 1], d, h24, mm, s, y); break; case 'C': g_string_append_printf(str, "%d", y / 100); break; case 'd': g_string_append_printf(str, "%02d", d); break; case 'D': case 'x': g_string_append_printf(str, "%02d/%02d/%02d", m, d, y % 100); break; case 'e': g_string_append_printf(str, "% 2d", d); break; case 'F': g_string_append_printf(str, "% 4d-%02d-%02d", y, m, d); break; case 'G': x = get_iso_8601_week(t); if (m == 1 && x == 53) { y -= 1; } else if (m == 12 && x == 1) { y += 1; } g_string_append_printf(str, "% 4d", y); break; case 'g': x = get_iso_8601_week(t); if (m == 1 && x == 53) { y -= 1; } else if (m == 12 && x == 1) { y += 1; } g_string_append_printf(str, "%02d", y % 100); break; case 'H': g_string_append_printf(str, "%02d", h24); break; case 'I': g_string_append_printf(str, "%02d", h12); break; case 'j': g_string_append_printf(str, "%03d", t->tm_yday + 1); break; case 'k': g_string_append_printf(str, "% 2d", h24); break; case 'l': g_string_append_printf(str, "% 2d", h12); break; case 'm': g_string_append_printf(str, "%02d", m); break; case 'M': g_string_append_printf(str, "%02d", mm); break; case 'n': g_string_append_c(str, '\n'); break; case 'p': g_string_append(str, (h24 > 11) ? "PM" : "AM"); break; case 'P': g_string_append(str, (h24 > 11) ? "pm" : "am"); break; case 'r': g_string_append_printf(str, "%02d:%02d:%02d %s", h12, mm, s, (h24 > 11) ? "PM" : "AM"); break; case 'R': g_string_append_printf(str, "%02d:%02d", h24, mm); break; case 's': break; case 'S': g_string_append_printf(str, "%02d", s); break; case 't': g_string_append_c(str, '\t'); break; case 'T': case 'X': g_string_append_printf(str, "%02d:%02d:%02d", h24, mm, s); break; case 'u': g_string_append_printf(str, "%d", (w == 0) ? 7 : w); break; case 'U': a = t->tm_yday % 7; b = (w > a) ? w - a : 7 + w - a; c = (b == 0) ? 7 : b; g_string_append_printf(str, "%02d", (t->tm_yday + c)/ 7); break; case 'V': x = get_iso_8601_week(t); g_string_append_printf(str, "%02d", x); break; case 'w': g_string_append_printf(str, "%d", w); break; case 'W': a = t->tm_yday % 7; b = (w > a) ? w - a : 7 + w - a; c = (b == 0) ? 6 : b -1; g_string_append_printf(str, "%02d", (t->tm_yday + c) / 7); break; case 'y': g_string_append_printf(str, "%02d", y % 100); break; case 'Y': g_string_append_printf(str, "%d", y); break; case 'z': g_string_append(str, "+0000"); break; case 'Z': g_string_append(str, "GMT"); break; case '+': g_string_append_printf(str, "%s %s % 2d %02d:%02d:%02d GMT %d", weekstr[w], monthstr[m - 1], d, h24, mm, s, y); break; case '%': default: g_string_append_c(str, *fmt); } return 1; } char * nstrftime(const gchar *fmt, double mjd) { GString *str; struct tm t; int n; if (fmt == NULL || fmt[0] == '\0') { return NULL; } mjd2gd(mjd, &t); str = g_string_sized_new(64); while (*fmt) { switch (*fmt) { case '%': fmt++; while (*fmt == 'O' || *fmt == 'E') { fmt++; } n = append_date_str(str, fmt, &t); fmt += n; break; default: g_string_append_c(str, *fmt); fmt++; } } return g_string_free(str, FALSE); } ngraph-gtk-6.06.13/src/gra.c0000644000175000017500000025474112241111706012366 00000000000000/* * $Id: gra.c,v 1.31 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include #include "object.h" #include "strconv.h" #include "nstring.h" #include "mathfn.h" #include "gra.h" #include "ogra.h" #include "math/math_equation.h" #define FONT_STYLE_NORMAL '\x11' #define FONT_STYLE_BOLD '\x12' #define FONT_STYLE_ITALIC '\x13' struct GRAC { int open,init; char *objname; char *outputname; struct objlist *obj; N_VALUE *inst; int output,strwidth,charascent,chardescent; struct narray **list; void *local; directfunc direct; int viewf; int leftm,topm,width,height; double zoom; int gminx,gminy,gmaxx,gmaxy; int cpx,cpy; int clip; int linef; int linedashn; int *linedash; int linewidth,linecap,linejoin,linemiter; int colorf; int fr,fg,fb,fa; int textf; char *textfont; int textsize; int textdir; int textspace; int font_style; int mergetop,mergeleft,mergezoom; int mergefont,mergept,mergesp,mergedir; #if EXPAND_DOTTED_LINE int gdashn; int gdashi; double gdashlen; int gdotf; int *gdashlist; #endif clipfunc gclipf; transfunc gtransf; diffunc gdiff; intpfunc gintpf; void *gflocal; double x0,y0; int oldFR,oldFG,oldFB,oldBR,oldBG,oldBB; }; #if EXPAND_DOTTED_LINE #define INIT_DASH 0, 0, 0, TRUE, NULL, #else #define INIT_DASH #endif #define GRAC_INIT_VAL {FALSE, FALSE, NULL, NULL, NULL, NULL, \ -1, -1, -1, -1, NULL, NULL, NULL, \ FALSE, 0, 0, SHRT_MAX, SHRT_MAX, 1, 0, 0, SHRT_MAX, SHRT_MAX, \ 0, 0, 1, \ FALSE, 0, NULL, 1, 0, 0, 0, \ FALSE, 0, 0, 0, 255, \ FALSE, NULL, 0, 0, 0, GRA_FONT_STYLE_NORMAL, \ 0, 0, 10000, 0, 0, 0, 0, \ INIT_DASH \ NULL, NULL, NULL, NULL, NULL, 0, 0, \ 0, 0, 0, 0, 0, 0} static struct GRAC GRAClist[]= { GRAC_INIT_VAL, /* 1 */ GRAC_INIT_VAL, /* 2 */ GRAC_INIT_VAL, /* 3 */ GRAC_INIT_VAL, /* 4 */ GRAC_INIT_VAL, /* 5 */ GRAC_INIT_VAL, /* 6 */ GRAC_INIT_VAL, /* 7 */ GRAC_INIT_VAL, /* 8 */ GRAC_INIT_VAL, /* 9 */ GRAC_INIT_VAL, /* 10 */ GRAC_INIT_VAL, /* 11 */ }; #define GRAClimit ((int) (sizeof(GRAClist) / sizeof(*GRAClist) - 1)) #if ! CURVE_OBJ_USE_EXPAND_BUFFER static void GRAcmatchtod(double x,double y,struct cmatchtype *data); #endif static int GRAinview(int GC,int x,int y); static int GRArectclip(int GC,int *x0,int *y0,int *x1,int *y1); static int GRAlineclip(int GC,int *x0,int *y0,int *x1,int *y1); int _GRAopencallback(directfunc direct,struct narray **list,void *local) { int i; for (i=0;i=GRAClimit) return ERRILGC; g_free(GRAClist[GC].linedash); #if EXPAND_DOTTED_LINE g_free(GRAClist[GC].gdashlist); GRAClist[GC].gdashlist=NULL; #endif g_free(GRAClist[GC].textfont); GRAClist[GC].linedashn=0; GRAClist[GC].linedash=NULL; GRAClist[GC].textfont=NULL; GRAClist[GC].viewf=FALSE; GRAClist[GC].linef=FALSE; GRAClist[GC].colorf=FALSE; GRAClist[GC].textf=FALSE; code='I'; cpar[0]=5; cpar[1]=GRAClist[GC].leftm; cpar[2]=GRAClist[GC].topm; cpar[3]=GRAClist[GC].width; cpar[4]=GRAClist[GC].height; cpar[5]=nround(GRAClist[GC].zoom*10000); if (GRAdraw(GC,code,cpar,NULL)) return ERROPEN; return 0; } int GRAopened(int GC) { if (GC<0) return -1; if (GC>=GRAClimit) return -1; if (!(GRAClist[GC].open)) return -1; return GC; } void _GRAclose(int GC) { if (GC<0) return; if (GC>=GRAClimit) return; g_free(GRAClist[GC].linedash); #if EXPAND_DOTTED_LINE g_free(GRAClist[GC].gdashlist); #endif g_free(GRAClist[GC].textfont); GRAClist[GC]=GRAClist[GRAClimit]; } void GRAclose(int GC) { int GC2,i; if (GC<0) return; if (GC>=GRAClimit) return; GC2=-1; if (GRAClist[GC].obj!=NULL) { if (!chkobjfield(GRAClist[GC].obj,"_lock")) { _putobj(GRAClist[GC].obj,"_GC",GRAClist[GC].inst,&GC2); } i=-1; if (!chkobjfield(GRAClist[GC].obj,"_GC")) { _putobj(GRAClist[GC].obj,"_GC",GRAClist[GC].inst,&i); } } g_free(GRAClist[GC].linedash); #if EXPAND_DOTTED_LINE g_free(GRAClist[GC].gdashlist); #endif g_free(GRAClist[GC].textfont); GRAClist[GC]=GRAClist[GRAClimit]; } static void GRAaddlist2(int GC,char *draw) { struct narray **array; if (GC<0) return; if (GC>=GRAClimit) return; if (GRAClist[GC].output==-1) return; array=GRAClist[GC].list; if (array!=NULL) { if (*array==NULL) *array=arraynew(sizeof(char *)); arrayadd(*array,&draw); } } static void GRAinslist2(int GC,char *draw,int n) { struct narray **array; if (GC<0) return; if (GC>=GRAClimit) return; if (GRAClist[GC].output==-1) return; array=GRAClist[GC].list; if (array!=NULL) { if (*array==NULL) *array=arraynew(sizeof(char *)); arrayins(*array,&draw,n); } } void GRAaddlist(int GC,struct objlist *obj,N_VALUE *inst, char *objname,char *field) { int oid; char *draw; if (GRAClist[GC].output==-1) return; if (_getobj(obj,"oid",inst,&oid)==-1) return; if ((draw=mkobjlist(NULL,objname,oid,field,TRUE))==NULL) return; GRAaddlist2(GC,draw); } void GRAinslist(int GC,struct objlist *obj,N_VALUE *inst, char *objname,char *field,int n) { int oid; char *draw; if (GRAClist[GC].output==-1) return; if (_getobj(obj,"oid",inst,&oid)==-1) return; if ((draw=mkobjlist(NULL,objname,oid,field,TRUE))==NULL) return; GRAinslist2(GC,draw,n); } void GRAdellist(int GC,int n) { struct narray **array; if (GRAClist[GC].output==-1) return; if (GC<0) return; if (GC>=GRAClimit) return; if (GRAClist[GC].output==-1) return; array=GRAClist[GC].list; if (array!=NULL) { arrayndel2(*array,n); } } struct objlist * GRAgetlist(int GC,int *oid,char **field,int n) { struct narray **array; char **sdata; int snum; if (GC<0) return NULL; if (GC>=GRAClimit) return NULL; if (GRAClist[GC].output==-1) return NULL; array=GRAClist[GC].list; snum=arraynum(*array); if (n>=snum) return NULL; sdata=arraydata(*array); return getobjlist(sdata[n],oid,field,NULL); } void _GRAredraw(int GC,int snum,char **sdata,int setredrawf,int redraw_num, int addn,struct objlist *obj,N_VALUE *inst,char *field) { int i; char *dargv[2]; int redrawfsave; struct objlist *dobj; int did; char *dfield; N_VALUE *dinst; if (ninterrupt()) return; dargv[0]=(char *)&GC; if ((addn==0) && (obj!=NULL) && (inst!=NULL) && (field!=NULL)) _exeobj(obj,field,inst,1,dargv); if (addn>snum) addn=snum-1; for (i=1;i=GRAClimit) return ERRILGC; if (!(GRAClist[GC].open)) return ERRGRACLOSE; if ((GRAClist[GC].direct==NULL) && ((GRAClist[GC].output==-1) || (GRAClist[GC].obj==NULL))) return ERRNODEVICE; zoom=GRAClist[GC].zoom; if (zoom==1) zoomf=FALSE; else zoomf=TRUE; switch (code) { case 'I': if (GRAClist[GC].init) return 0; GRAClist[GC].init=TRUE; break; case 'V': if (GRAClist[GC].viewf && (cpar[1]==GRAClist[GC].gminx) && (cpar[3]==GRAClist[GC].gmaxx) && (cpar[2]==GRAClist[GC].gminy) && (cpar[4]==GRAClist[GC].gmaxy) && (cpar[5]==GRAClist[GC].clip)) return 0; GRAClist[GC].viewf=TRUE; GRAClist[GC].gminx=cpar[1]; GRAClist[GC].gminy=cpar[2]; GRAClist[GC].gmaxx=cpar[3]; GRAClist[GC].gmaxy=cpar[4]; GRAClist[GC].clip=cpar[5]; cpar[1]=cpar[1]*zoom+GRAClist[GC].leftm; cpar[2]=cpar[2]*zoom+GRAClist[GC].topm; cpar[3]=cpar[3]*zoom+GRAClist[GC].leftm; cpar[4]=cpar[4]*zoom+GRAClist[GC].topm; break; case 'A': if (GRAClist[GC].linef && (cpar[1]==GRAClist[GC].linedashn) && (cpar[2]==GRAClist[GC].linewidth) && (cpar[3]==GRAClist[GC].linecap) && (cpar[4]==GRAClist[GC].linejoin) && (cpar[5]==GRAClist[GC].linemiter)) { for (i=0;i 3) ? cpar[4] : 255; if (GRAClist[GC].colorf && cpar[1] == GRAClist[GC].fr && cpar[2] == GRAClist[GC].fg && cpar[3] == GRAClist[GC].fb && alpha == GRAClist[GC].fa) { return 0; } GRAClist[GC].colorf = TRUE; GRAClist[GC].fr = cpar[1]; GRAClist[GC].fg = cpar[2]; GRAClist[GC].fb = cpar[3]; GRAClist[GC].fa = alpha; break; case 'F': if ((GRAClist[GC].textfont!=NULL) && (strcmp(GRAClist[GC].textfont,cstr)==0)) return 0; g_free(GRAClist[GC].textfont); if ((GRAClist[GC].textfont=g_malloc(strlen(cstr)+1))==NULL) return 0; strcpy(GRAClist[GC].textfont,cstr); GRAClist[GC].textf=FALSE; break; case 'H': style = (cpar[0] > 3) ? cpar[4] : GRA_FONT_STYLE_NORMAL; if (GRAClist[GC].textf && cpar[1] == GRAClist[GC].textsize && cpar[2] == GRAClist[GC].textspace && cpar[3] == GRAClist[GC].textdir && style == GRAClist[GC].font_style) { return 0; } GRAClist[GC].textf=TRUE; GRAClist[GC].textsize=cpar[1]; GRAClist[GC].textspace=cpar[2]; GRAClist[GC].textdir=cpar[3]; GRAClist[GC].font_style = style; if (zoomf) { cpar[1]*=zoom; cpar[2]*=zoom; } break; case 'M': case 'N': case 'T': case 'P': if (zoomf) { cpar[1]*=zoom; cpar[2]*=zoom; } break; case 'L': case 'B': case 'C': if (zoomf) { cpar[1]*=zoom; cpar[2]*=zoom; cpar[3]*=zoom; cpar[4]*=zoom; } break; case 'R': if (zoomf) for (i=0;i= 0; i--) { if (GRAopened(i) == i && GRAClist[i].strwidth != -1) break; } if (i == -1) { return nround(25.4 / 72000.0 * size * 600); } argv[0] = GRAClist[i].objname; argv[1] = "_strwidth"; argv[2] = GRAClist[i].local; argv[3] = (char *) s; argv[4] = (char *) &size; argv[5] = font; argv[6] = (char *) &style; argv[7] = NULL; if (__exeobj(GRAClist[i].obj, GRAClist[i].strwidth, GRAClist[i].inst, 6, argv)) return nround(25.4 / 72000.0 * size * 600); idp = chkobjoffset2(GRAClist[i].obj, GRAClist[i].strwidth); return GRAClist[i].inst[idp].i; } static int GRAcharascent(char *font, int style, int size) { char *argv[7]; int i, idp; for (i = GRAClimit - 1; i >= 0; i--) { if (GRAopened(i) == i && GRAClist[i].charascent != -1) break; } if (i == -1) return nround(25.4 / 72000.0 * size * 563); argv[0] = GRAClist[i].objname; argv[1] = "_charascent"; argv[2] = GRAClist[i].local; argv[3] = (char *)&size; argv[4] = font; argv[5] = (char *) &style; argv[6] = NULL; if (__exeobj(GRAClist[i].obj, GRAClist[i].charascent, GRAClist[i].inst, 5, argv)) return nround(25.4 / 72000.0 * size * 563); idp = chkobjoffset2(GRAClist[i].obj, GRAClist[i].charascent); return GRAClist[i].inst[idp].i; } static int GRAchardescent(char *font,int style,int size) { char *argv[7]; int i, idp; for (i = GRAClimit - 1; i >= 0; i--) { if (GRAopened(i) == i && GRAClist[i].chardescent != -1) break; } if (i == -1) return nround(25.4 / 72000.0 * size * 250); argv[0] = GRAClist[i].objname; argv[1] = "_chardescent"; argv[2] = GRAClist[i].local; argv[3] = (char *)&size; argv[4] = font; argv[5] = (char *) &style; argv[6] = NULL; if (__exeobj(GRAClist[i].obj, GRAClist[i].chardescent, GRAClist[i].inst, 5, argv)) return nround(25.4 / 72000.0 * size * 250); idp = chkobjoffset2(GRAClist[i].obj, GRAClist[i].chardescent); return GRAClist[i].inst[idp].i; } int GRAinit(int GC,int leftm,int topm,int width,int height,int zoom) { char code; int cpar[6], r; code='I'; cpar[0]=5; cpar[1]=leftm; cpar[2]=topm; cpar[3]=width; cpar[4]=height; cpar[5]=zoom; r = GRAdraw(GC,code,cpar,NULL); GRAClist[GC].leftm=leftm; GRAClist[GC].topm=topm; GRAClist[GC].width=width; GRAClist[GC].height=height; GRAClist[GC].zoom=zoom/10000.0; return (r && GRAClist[GC].output != -1) ? ERROPEN: 0; } void GRAregion(int GC, int *width, int *height, int *zoom) { if (width) { if (GRAClist[GC].leftm < 0) { *width = GRAClist[GC].width; } else if (GRAClist[GC].leftm > GRAClist[GC].width) { *width = 0; } else{ *width = GRAClist[GC].width - GRAClist[GC].leftm; } } if (height) { if (GRAClist[GC].topm < 0) { *height = GRAClist[GC].height; } else if (GRAClist[GC].topm > GRAClist[GC].height) { *height = 0; } else{ *height = GRAClist[GC].height - GRAClist[GC].topm; } } if (zoom) { *zoom=GRAClist[GC].zoom*10000; } } #ifdef COMPILE_UNUSED_FUNCTIONS static void GRAdirect(int GC,int cpar[]) { char code; code='X'; GRAdraw(GC,code,cpar,NULL); } #endif /* COMPILE_UNUSED_FUNCTIONS */ int GRAend(int GC) { char code; int cpar[1]; code='E'; cpar[0]=0; return GRAdraw(GC,code,cpar,NULL); } #ifdef COMPILE_UNUSED_FUNCTIONS static void GRAremark(int GC,char *s) { char code; int cpar[1]; char *cstr; char s2[1]; code='%'; cpar[0]=-1; s2[0]='\0'; if (s==NULL) cstr=s2; else cstr=s; GRAdraw(GC,code,cpar,cstr); } #endif /* COMPILE_UNUSED_FUNCTIONS */ void GRAview(int GC,int x1,int y1,int x2,int y2,int clip) { char code; int cpar[6]; if (x1==x2) x2++; if (y1==y2) y2++; code='V'; cpar[0]=5; cpar[1]=x1; cpar[2]=y1; cpar[3]=x2; cpar[4]=y2; cpar[5]=clip; GRAdraw(GC,code,cpar,NULL); } void GRAlinestyle(int GC,int num,int *type,int width,enum GRA_LINE_CAP cap,enum GRA_LINE_JOIN join, int miter) { char code; int *cpar; int i; if ((cpar=g_malloc(sizeof(int)*(6+num)))==NULL) return; code='A'; cpar[0]=5+num; cpar[1]=num; cpar[2]=width; cpar[3]=cap; cpar[4]=join; cpar[5]=miter; for (i=0;i 255) { fr = 255; } else if (fr < 0) { fr = GRAClist[GC].fr; } if (fg > 255) { fg = 255; } else if (fg < 0) { fg = GRAClist[GC].fg; } if (fb > 255) { fb = 255; } else if (fb < 0) { fb = GRAClist[GC].fb; } if (fa > 255) { fa = 255; } else if (fa < 0) { fa = GRAClist[GC].fa; } code = 'G'; cpar[0] = 4; cpar[1] = fr; cpar[2] = fg; cpar[3] = fb; cpar[4] = fa; GRAdraw(GC, code, cpar, NULL); } void GRAtextstyle(int GC,char *font, int style, int size,int space,int dir) { char code; int cpar[5]; char *cstr; if (font==NULL) return; code='F'; cpar[0]=-1; cstr=font; GRAdraw(GC,code,cpar,cstr); code='H'; cpar[0]=4; cpar[1]=size; cpar[2]=space; cpar[3]=dir; cpar[4]=style; GRAdraw(GC,code,cpar,NULL); } void GRAmoveto(int GC,int x,int y) { char code; int cpar[3]; code='M'; cpar[0]=2; cpar[1]=x; cpar[2]=y; GRAdraw(GC,code,cpar,NULL); GRAClist[GC].cpx=x; GRAClist[GC].cpy=y; } static void GRAmoverel(int GC,int x,int y) { char code; int cpar[3]; GRAClist[GC].cpx+=x; GRAClist[GC].cpy+=y; if ((x!=0) || (y!=0)) { /* if ((GRAClist[GC].clip==0) || (GRAinview(GC,GRAClist[GC].cpx,GRAClist[GC].cpy)==0)) { */ code='N'; cpar[0]=2; cpar[1]=x; cpar[2]=y; GRAdraw(GC,code,cpar,NULL); /* } */ } } void GRAline(int GC,int x0,int y0,int x1,int y1) { char code; int cpar[5]; if ((GRAClist[GC].clip==0) || (GRAlineclip(GC,&x0,&y0,&x1,&y1)==0)) { code='L'; cpar[0]=4; cpar[1]=x0; cpar[2]=y0; cpar[3]=x1; cpar[4]=y1; GRAdraw(GC,code,cpar,NULL); } } void GRAlineto(int GC,int x,int y) { char code; int cpar[3],x0,y0,x1,y1; x0=GRAClist[GC].cpx; y0=GRAClist[GC].cpy; x1=x; y1=y; if ((GRAClist[GC].clip==0) || (GRAlineclip(GC,&x0,&y0,&x1,&y1)==0)) { if ((x0==GRAClist[GC].cpx) && (y0==GRAClist[GC].cpy)) { code='T'; cpar[0]=2; cpar[1]=x1; cpar[2]=y1; GRAdraw(GC,code,cpar,NULL); } else { code='M'; cpar[0]=2; cpar[1]=x0; cpar[2]=y0; GRAdraw(GC,code,cpar,NULL); code='T'; cpar[0]=2; cpar[1]=x1; cpar[2]=y1; GRAdraw(GC,code,cpar,NULL); } } GRAClist[GC].cpx=x; GRAClist[GC].cpy=y; } void GRAcircle(int GC,int x,int y,int rx,int ry,int cs,int ce,int fil) { char code; int cpar[8]; code='C'; cpar[0]=7; cpar[1]=x; cpar[2]=y; cpar[3]=rx; cpar[4]=ry; cpar[5]=cs; cpar[6]=ce; cpar[7]=fil; GRAdraw(GC,code,cpar,NULL); } void GRArectangle(int GC,int x0,int y0,int x1,int y1,int fil) { char code; int cpar[6]; if ((GRAClist[GC].clip==0) || (GRArectclip(GC,&x0,&y0,&x1,&y1)==0)) { code='B'; cpar[0]=5; cpar[1]=x0; cpar[2]=y0; cpar[3]=x1; cpar[4]=y1; cpar[5]=fil; GRAdraw(GC,code,cpar,NULL); } } static void GRAputpixel(int GC,int x,int y) { char code; int cpar[3]; if ((GRAClist[GC].clip==0) || (GRAinview(GC,x,y)==0)) { code='P'; cpar[0]=2; cpar[1]=x; cpar[2]=y; GRAdraw(GC,code,cpar,NULL); } } void GRAdrawpoly(int GC,int num,int *point,enum GRA_FILL_MODE fil) { char code; int i,*cpar,num2; if (num<1) return; if ((point[0]!=point[num*2-2]) || (point[1]!=point[num*2-1])) num2=num+1; else num2=num; if ((cpar=g_malloc(sizeof(int)*(3+2*num2)))==NULL) return; code='D'; cpar[0]=2+2*num2; cpar[1]=num2; cpar[2]=fil; for (i=0;i<2*num;i++) cpar[i+3]=point[i]; if ((point[0]!=point[num*2-2]) || (point[1]!=point[num*2-1])) { cpar[2*num+3]=point[0]; cpar[2*num+4]=point[1]; } GRAdraw(GC,code,cpar,NULL); g_free(cpar); } void GRAlines(int GC,int num,int *point) { char code; int i,*cpar; if ((cpar=g_malloc(sizeof(int)*(2+2*num)))==NULL) return; code='R'; cpar[0]=1+2*num; cpar[1]=num; for (i=0;i<2*num;i++) cpar[i+2]=point[i]; GRAdraw(GC,code,cpar,NULL); g_free(cpar); } void GRAmark(int GC,int type,int x0,int y0,int size, int fr,int fg,int fb, int fa, int br,int bg,int bb, int ba) { int x1,y1,x2,y2,r; int po[10],po2[10]; int type2,sgn; double d; if ((GRAClist[GC].clip==0) || (GRAinview(GC,x0,y0)==0)) { switch (type) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: type2=type-0; r=size/2; if (type2==0) { GRAcolor(GC,fr,fg,fb, fa); GRAcircle(GC,x0,y0,r,r,0,36000,1); } else if (type2==2) { GRAcolor(GC,fr,fg,fb, fa); GRAcircle(GC,x0,y0,r,r,0,36000,0); } else if (type2==5) { GRAcolor(GC,fr,fg,fb, fa); GRAcircle(GC,x0,y0,r,r,0,36000,1); r/=2; GRAcolor(GC,br,bg,bb, ba); GRAcircle(GC,x0,y0,r,r,0,36000,1); } else { GRAcolor(GC,br,bg,bb, ba); GRAcircle(GC,x0,y0,r,r,0,36000,1); GRAcolor(GC,fr,fg,fb, fa); GRAcircle(GC,x0,y0,r,r,0,36000,0); if (type2==3) { r/=2; GRAcircle(GC,x0,y0,r,r,0,36000,0); } else if (type!=1) { if (type2==4) { r/=2; GRAcircle(GC,x0,y0,r,r,0,36000,1); } else if (type2==6) { GRAcircle(GC,x0,y0,r,r,27000,18000,1); } else if (type2==7) { GRAcircle(GC,x0,y0,r,r,9000,18000,1); } else if (type2==8) { GRAcircle(GC,x0,y0,r,r,0,18000,1); } else if (type2==9) { GRAcircle(GC,x0,y0,r,r,18000,18000,1); } } } break; case 10: case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18: case 19: type2=type-10; x1=x0-size/2; y1=y0-size/2; x2=x0+size/2; y2=y0+size/2; if (type2==0) { GRAcolor(GC,fr,fg,fb, fa); GRArectangle(GC,x1,y1,x2,y2,1); } else if (type2==2) { GRAcolor(GC,fr,fg,fb, fa); GRArectangle(GC,x1,y1,x2,y2,0); } else if (type2==5) { GRAcolor(GC,fr,fg,fb, fa); GRArectangle(GC,x1,y1,x2,y2,1); x1=x0-size/4; y1=y0-size/4; x2=x0+size/4; y2=y0+size/4; GRAcolor(GC,br,bg,bb, ba); GRArectangle(GC,x1,y1,x2,y2,1); } else { GRAcolor(GC,br,bg,bb, ba); GRArectangle(GC,x1,y1,x2,y2,1); GRAcolor(GC,fr,fg,fb, fa); GRArectangle(GC,x1,y1,x2,y2,0); if (type2==3) { x1=x0-size/4; y1=y0-size/4; x2=x0+size/4; y2=y0+size/4; GRArectangle(GC,x1,y1,x2,y2,0); } else if (type2!=1) { if (type2==4) { x1=x0-size/4; y1=y0-size/4; x2=x0+size/4; y2=y0+size/4; GRArectangle(GC,x1,y1,x2,y2,1); } else if (type2==6) { x1=x0; GRArectangle(GC,x1,y1,x2,y2,1); } else if (type2==7) { x2=x0; GRArectangle(GC,x1,y1,x2,y2,1); } else if (type2==8) { y2=y0; GRArectangle(GC,x1,y1,x2,y2,1); } else if (type2==9) { y1=y0; GRArectangle(GC,x1,y1,x2,y2,1); } } } break; case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: type2=type-20; po[0]=x0; po[1]=y0-size/2; po[2]=x0+size/2; po[3]=y0; po[4]=x0; po[5]=y0+size/2; po[6]=x0-size/2; po[7]=y0; po[8]=x0; po[9]=y0-size/2; if (type2==0) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,5,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==2) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,5,po,GRA_FILL_MODE_NONE); } else if (type2==5) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,5,po,GRA_FILL_MODE_EVEN_ODD); po[1]=y0-size/4; po[2]=x0+size/4; po[5]=y0+size/4; po[6]=x0-size/4; po[9]=y0-size/4; GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,5,po,GRA_FILL_MODE_EVEN_ODD); } else { GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,5,po,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,5,po,GRA_FILL_MODE_NONE); if (type2==3) { po[1]=y0-size/4; po[2]=x0+size/4; po[5]=y0+size/4; po[6]=x0-size/4; po[9]=y0-size/4; GRAdrawpoly(GC,5,po,GRA_FILL_MODE_NONE); } else if (type2!=1) { if (type2==4) { po[1]=y0-size/4; po[2]=x0+size/4; po[5]=y0+size/4; po[6]=x0-size/4; po[9]=y0-size/4; GRAdrawpoly(GC,5,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==6) { po[6]=x0; po[7]=y0; GRAdrawpoly(GC,5,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==7) { po[2]=x0; po[3]=y0; GRAdrawpoly(GC,5,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==8) { po[4]=x0; po[5]=y0; GRAdrawpoly(GC,5,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==9) { po[0]=x0; po[1]=y0; po[8]=x0; po[9]=y0; GRAdrawpoly(GC,5,po,GRA_FILL_MODE_EVEN_ODD); } } } break; case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: if (type>=40) { type2=type-40; sgn=-1; } else { type2=type-30; sgn=1; } d=sqrt(3.0); po[0]=x0; po[1]=y0-sgn*size/2; po[2]=x0+size*d/4; po[3]=y0+sgn*size/4; po[4]=x0-size*d/4; po[5]=y0+sgn*size/4; po[6]=x0; po[7]=y0-sgn*size/2; if (type2==0) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==2) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); } else if (type2==5) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); po[1]=y0-sgn*size/d/2; po[2]=x0+size/4; po[3]=y0+sgn*size/d/4; po[4]=x0-size/4; po[5]=y0+sgn*size/d/4; po[7]=y0-sgn*size/d/2; GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } else { GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); if (type2==3) { po[1]=y0-sgn*size/d/2; po[2]=x0+size/4; po[3]=y0+sgn*size/d/4; po[4]=x0-size/4; po[5]=y0+sgn*size/d/4; po[7]=y0-sgn*size/d/2; GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); } else if (type2!=1) { if (type2==4) { po[1]=y0-sgn*size/d/2; po[2]=x0+size/4; po[3]=y0+sgn*size/d/4; po[4]=x0-size/4; po[5]=y0+sgn*size/d/4; po[7]=y0-sgn*size/d/2; GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==6) { po[4]=x0; GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==7) { po[2]=x0; GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } } } break; case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: case 60: case 61: case 62: case 63: case 64: case 65: case 66: case 67: if (type>=60) { type2=type-60; sgn=-1; } else { type2=type-50; sgn=1; } d=sqrt(3.0); po[0]=x0-sgn*size/2; po[1]=y0; po[2]=x0+sgn*size/4; po[3]=y0+size*d/4; po[4]=x0+sgn*size/4; po[5]=y0-size*d/4; po[6]=x0-sgn*size/2; po[7]=y0; if (type2==0) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==2) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); } else if (type2==5) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); po[0]=x0-sgn*size/d/2; po[2]=x0+sgn*size/d/4; po[3]=y0+size/4; po[4]=x0+sgn*size/d/4; po[5]=y0-size/4; po[6]=x0-sgn*size/d/2; GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } else { GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); if (type2==3) { po[0]=x0-sgn*size/d/2; po[2]=x0+sgn*size/d/4; po[3]=y0+size/4; po[4]=x0+sgn*size/d/4; po[5]=y0-size/4; po[6]=x0-sgn*size/d/2; GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); } else if (type2!=1) { if (type2==4) { po[0]=x0-sgn*size/d/2; po[2]=x0+sgn*size/d/4; po[3]=y0+size/4; po[4]=x0+sgn*size/d/4; po[5]=y0-size/4; po[6]=x0-sgn*size/d/2; GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==6) { po[5]=y0; GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } else if (type2==7) { po[3]=y0; GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); } } } break; case 38: case 39: case 48: case 49: po[0]=x0; po[1]=y0; po[2]=x0-size/2; po[3]=y0-size/2; po[4]=x0+size/2; po[5]=y0-size/2; po[6]=x0; po[7]=y0; po2[0]=x0; po2[1]=y0; po2[2]=x0-size/2; po2[3]=y0+size/2; po2[4]=x0+size/2; po2[5]=y0+size/2; po2[6]=x0; po2[7]=y0; if (type==38) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_EVEN_ODD); } else if (type==39) { GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_NONE); } else if (type==48) { GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_NONE); } else if (type==49) { GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_EVEN_ODD); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_NONE); } break; case 58: case 59: case 68: case 69: po[0]=x0; po[1]=y0; po[2]=x0+size/2; po[3]=y0-size/2; po[4]=x0+size/2; po[5]=y0+size/2; po[6]=x0; po[7]=y0; po2[0]=x0; po2[1]=y0; po2[2]=x0-size/2; po2[3]=y0-size/2; po2[4]=x0-size/2; po2[5]=y0+size/2; po2[6]=x0; po2[7]=y0; if (type==58) { GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_EVEN_ODD); } else if (type==59) { GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_NONE); } else if (type==68) { GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_NONE); } else if (type==69) { GRAcolor(GC,br,bg,bb, ba); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_EVEN_ODD); GRAdrawpoly(GC,4,po,GRA_FILL_MODE_NONE); GRAdrawpoly(GC,4,po2,GRA_FILL_MODE_NONE); } break; case 70: GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0-size/2,y0,x0+size/2,y0); GRAline(GC,x0,y0-size/2,x0,y0+size/2); break; case 71: d=sqrt(2.0); GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0-size/d/2,y0-size/d/2,x0+size/d/2,y0+size/d/2); GRAline(GC,x0+size/d/2,y0-size/d/2,x0-size/d/2,y0+size/d/2); break; case 72: d=sqrt(3.0); GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0,y0+size/2,x0,y0-size/2); GRAline(GC,x0+size*d/4,y0-size/4,x0-size*d/4,y0+size/4); GRAline(GC,x0-size*d/4,y0-size/4,x0+size*d/4,y0+size/4); break; case 73: d=sqrt(3.0); GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0+size/2,y0,x0-size/2,y0); GRAline(GC,x0-size/4,y0+size*d/4,x0+size/4,y0-size*d/4); GRAline(GC,x0-size/4,y0-size*d/4,x0+size/4,y0+size*d/4); break; case 74: d=sqrt(3.0); GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0,y0,x0,y0-size/2); GRAline(GC,x0,y0,x0-size*d/4,y0+size/4); GRAline(GC,x0,y0,x0+size*d/4,y0+size/4); break; case 75: d=sqrt(3.0); GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0,y0,x0,y0+size/2); GRAline(GC,x0,y0,x0-size*d/4,y0-size/4); GRAline(GC,x0,y0,x0+size*d/4,y0-size/4); break; case 76: d=sqrt(3.0); GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0,y0,x0-size/2,y0); GRAline(GC,x0,y0,x0+size/4,y0-size*d/4); GRAline(GC,x0,y0,x0+size/4,y0+size*d/4); break; case 77: d=sqrt(3.0); GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0,y0,x0+size/2,y0); GRAline(GC,x0,y0,x0-size/4,y0-size*d/4); GRAline(GC,x0,y0,x0-size/4,y0+size*d/4); break; case 78: GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0-size/2,y0,x0+size/2,y0); break; case 79: GRAcolor(GC,fr,fg,fb, fa); GRAline(GC,x0,y0-size/2,x0,y0+size/2); break; case 80: r=size/2; GRAcolor(GC,fr,fg,fb, fa); GRAcircle(GC,x0,y0,r,r,0,36000,0); r/=2; GRAcircle(GC,x0,y0,r,r,0,36000,0); break; case 81: r=size/2; GRAcolor(GC,fr,fg,fb, fa); GRAcircle(GC,x0,y0,r,r,0,36000,0); GRAline(GC,x0-size/2,y0,x0+size/2,y0); GRAline(GC,x0,y0-size/2,x0,y0+size/2); break; case 82: r=size/2; d=sqrt(2.0); GRAcolor(GC,fr,fg,fb, fa); GRAcircle(GC,x0,y0,r,r,0,36000,0); GRAline(GC,x0-size/d/2,y0-size/d/2,x0+size/d/2,y0+size/d/2); GRAline(GC,x0-size/d/2,y0+size/d/2,x0+size/d/2,y0-size/d/2); break; case 83: x1=x0-size/2; y1=y0-size/2; x2=x0+size/2; y2=y0+size/2; GRAcolor(GC,fr,fg,fb, fa); GRArectangle(GC,x1,y1,x2,y2,0); x1=x0-size/4; y1=y0-size/4; x2=x0+size/4; y2=y0+size/4; GRArectangle(GC,x1,y1,x2,y2,0); break; case 84: x1=x0-size/2; y1=y0-size/2; x2=x0+size/2; y2=y0+size/2; GRAcolor(GC,fr,fg,fb, fa); GRArectangle(GC,x1,y1,x2,y2,0); GRAline(GC,x0-size/2,y0,x0+size/2,y0); GRAline(GC,x0,y0-size/2,x0,y0+size/2); break; case 85: x1=x0-size/2; y1=y0-size/2; x2=x0+size/2; y2=y0+size/2; GRAcolor(GC,fr,fg,fb, fa); GRArectangle(GC,x1,y1,x2,y2,0); GRAline(GC,x0-size/2,y0-size/2,x0+size/2,y0+size/2); GRAline(GC,x0+size/2,y0-size/2,x0-size/2,y0+size/2); break; case 86: po[0]=x0; po[1]=y0-size/2; po[2]=x0+size/2; po[3]=y0; po[4]=x0; po[5]=y0+size/2; po[6]=x0-size/2; po[7]=y0; po[8]=x0; po[9]=y0-size/2; GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,5,po,GRA_FILL_MODE_NONE); po[1]=y0-size/4; po[2]=x0+size/4; po[5]=y0+size/4; po[6]=x0-size/4; po[9]=y0-size/4; GRAdrawpoly(GC,5,po,GRA_FILL_MODE_NONE); break; case 87: po[0]=x0; po[1]=y0-size/2; po[2]=x0+size/2; po[3]=y0; po[4]=x0; po[5]=y0+size/2; po[6]=x0-size/2; po[7]=y0; po[8]=x0; po[9]=y0-size/2; GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,5,po,GRA_FILL_MODE_NONE); GRAline(GC,x0-size/2,y0,x0+size/2,y0); GRAline(GC,x0,y0-size/2,x0,y0+size/2); break; case 88: po[0]=x0; po[1]=y0-size/2; po[2]=x0+size/2; po[3]=y0; po[4]=x0; po[5]=y0+size/2; po[6]=x0-size/2; po[7]=y0; po[8]=x0; po[9]=y0-size/2; GRAcolor(GC,fr,fg,fb, fa); GRAdrawpoly(GC,5,po,GRA_FILL_MODE_NONE); GRAline(GC,x0-size/4,y0-size/4,x0+size/4,y0+size/4); GRAline(GC,x0-size/4,y0+size/4,x0+size/4,y0-size/4); break; default: GRAcolor(GC,fr,fg,fb, fa); GRAputpixel(GC,x0,y0); break; } } } void GRAouttext(int GC,char *s) { char code; int cpar[1]; char *cstr; code='S'; cpar[0]=-1; cstr=s; GRAdraw(GC,code,cpar,cstr); } static char *GRAexpandobj(char **s); static char *GRAexpandmath(char **s); static char * GRAexpandobj(char **s) { struct objlist *obj; int i,j,anum,*id; struct narray iarray; char *arg,*ret; GString *str, *garg; char *field; int len; int quote; *s=*s+2; field = arg = NULL; str = garg = NULL; arrayinit(&iarray,sizeof(int)); garg = g_string_sized_new(64); if (garg == NULL) { goto errexit; } if (chkobjilist2(s,&obj,&iarray,TRUE)) goto errexit; anum=arraynum(&iarray); if (anum<=0) goto errexit; id=arraydata(&iarray); if (((*s)==NULL) || (strchr(":= \t",(*s)[0])!=NULL) || ((field=getitok2(s,&len,":= \t}"))==NULL)) goto errexit; if (((*s)[0]!='\0') && ((*s)[0]!='}')) (*s)++; while (((*s)[0]==' ') || ((*s)[0]=='\t')) (*s)++; quote=FALSE; while (((*s)[0]!='\0') && (quote || ((*s)[0]!='}'))) { if (!quote && ((*s)[0]=='%') && ((*s)[1]=='{')) { ret=GRAexpandobj(s); if (ret) { g_string_append(garg, ret); g_free(ret); } } else if (!quote && ((*s)[0]=='%') && ((*s)[1]=='[')) { ret=GRAexpandmath(s); if (ret) { g_string_append(garg, ret); g_free(ret); } } else if (!quote && ((*s)[0]=='\\')) { quote=TRUE; (*s)++; } else { if (quote) quote=FALSE; g_string_append_c(garg, (*s)[0]); (*s)++; } } if ((*s)[0]!='}') goto errexit; (*s)++; arg = g_string_free(garg, FALSE); garg = NULL; str = g_string_sized_new(64); if (str == NULL) { goto errexit; } for (i=0;istr, &vd, &rcode, NULL); if (rcode != MATH_VALUE_NORMAL) { goto errexit; } g_string_free(str, TRUE); mod = fabs(fmod(vd, 1)); uvd = fabs(vd); if (uvd == 0) { ret = g_strdup("0"); } else if (uvd < 0.1) { ret = g_strdup_printf("%.15e", vd); } else if (uvd < 1E6 && mod < DBL_EPSILON) { ret = g_strdup_printf("%.0f", vd); } else if (uvd < 10) { ret = g_strdup_printf("%.15f", vd); } else if (uvd < 100) { ret = g_strdup_printf("%.14f", vd); } else if (uvd < 1000) { ret = g_strdup_printf("%.13f", vd); } else { ret = g_strdup_printf("%.15e", vd); } return ret; errexit: g_string_free(str, TRUE); return NULL; } static char * GRAexpandpf(char **s) { int i, len; char *format, *ret2; int quote; GString *str, *ret; *s = *s + 4; str = NULL; format = NULL; ret = g_string_sized_new(64); if (ret == NULL) { goto errexit; } str = g_string_sized_new(64); if (str == NULL) { goto errexit; } if ((*s)==NULL) goto errexit; if ((format=getitok2(s,&len," \t}"))==NULL) goto errexit; if (((*s)[0]!='\0') && ((*s)[0]!='}')) (*s)++; while (((*s)[0]==' ') || ((*s)[0]=='\t')) (*s)++; quote=FALSE; while (((*s)[0]!='\0') && (quote || ((*s)[0]!='}'))) { if (!quote && ((*s)[0]=='%') && ((*s)[1]=='{')) { ret2=GRAexpandobj(s); if (ret2) { g_string_append(str, ret2); g_free(ret2); } } else if (!quote && ((*s)[0]=='%') && ((*s)[1]=='[')) { ret2=GRAexpandmath(s); if (ret2) { g_string_append(str, ret2); g_free(ret2); } } else if (!quote && ((*s)[0]=='\\')) { quote=TRUE; (*s)++; } else { if (quote) quote=FALSE; g_string_append_c(str, (*s)[0]); (*s)++; } } if ((*s)[0]!='}') goto errexit; (*s)++; add_printf_formated_str(ret, format, str->str, &i); g_string_free(str, TRUE); g_free(format); return g_string_free(ret, FALSE); errexit: if (ret) { g_string_free(ret, TRUE); } if (str) { g_string_free(str, TRUE); } g_free(format); return NULL; } static gchar * GRAexpandtext(char *s) { int i,j,len; GString *str; char *snew,*s2; if (s == NULL) { return NULL; } str = g_string_sized_new(256); if (str == NULL) { return NULL; } len = strlen(s); j = 0; do { i = j; while (j < len && s[j] != '\\' && s[j] != '%') { j++; } g_string_append_len(str, s + i, j - i); if (s[j] == '\\') { switch (s[j + 1]) { case 'n': g_string_append_c(str, '\n'); j += 2; break; case 'b': g_string_append_c(str, '\b'); j += 2; break; case '&': g_string_append_c(str, '\r'); j += 2; break; case 'N': g_string_append_c(str, FONT_STYLE_NORMAL); j += 2; break; case 'B': g_string_append_c(str, FONT_STYLE_BOLD); j += 2; break; case 'I': g_string_append_c(str, FONT_STYLE_ITALIC); j += 2; break; case '.': g_string_append_c(str, ' '); j += 2; break; case '-': g_string_append(str, "‐"); j += 2; break; case '\\': case '%': case '@': case '^': case '_': g_string_append_c(str, '\\'); g_string_append_c(str, s[j + 1]); j += 2; break; case 'x': if (g_ascii_isxdigit(s[j + 2]) && g_ascii_isxdigit(s[j + 3])) { if (s[j + 2] != '0' || s[j + 3] != '0') { g_string_append_c(str, '\\'); g_string_append_c(str, 'x'); g_string_append_c(str, toupper(s[j + 2])); g_string_append_c(str, toupper(s[j + 3])); } j += 4; } else { j++; } break; default: j++; } } else if ((s[j]=='%') && (s[j+1]=='{')) { s2=s+j; snew=GRAexpandobj(&s2); if (snew) { g_string_append(str, snew); g_free(snew); } j=(s2-s); } else if ((s[j]=='%') && (s[j+1]=='[')) { s2=s+j; snew=GRAexpandmath(&s2); if (snew) { g_string_append(str, snew); g_free(snew); } j=(s2-s); } else if ((s[j]=='%') && (s[j+1]=='p') && (s[j+2]=='f') && (s[j+3]=='{')) { s2=s+j; snew=GRAexpandpf(&s2); if (snew) { g_string_append(str, snew); g_free(snew); } j=(s2-s); } else if (jlen != 0) { GRAtextstyle(GC, font2, style2, size2, space2, dir); GRAouttext(GC, str->str); } if (style3 != style2) { style2 = style3; continue; } switch (ptr[0]) { case '\n': x0 += (int) (si * size * 25.4 / 72.0); y0 += (int) (cs * size * 25.4 / 72.0); if (scriptf) { scriptf = 0; g_free(font2); font2 = font3; font3 = NULL; size2 = size3; space2 = space3; } x0 += scx_max; y0 += scy_max; scdist_max = 0; scx_max = 0; scy_max = 0; scmovex = 0; scmovey = 0; if (alignlen != 0) { for (k = 1; ptr[k] != '\0' && ptr[k] != '\n' && ptr[k] != '\r'; k++); ch = ptr[k]; ptr[k] = '\0'; GRAtextextent(ptr, font2, style2, size2, space2, scriptsize, &fx0, &fy0, &fx1, &fy1, TRUE); ptr[k] = ch; x1 = x0 + (int) ( cs * (alignlen - fx1)); y1 = y0 + (int) (-si * (alignlen - fx1)); } else { x1 = x0; y1 = y0; } GRAmoveto(GC, x1, y1); ptr++; break; case '\b': GRAtextextent("h", font2, style2, size2, space2, scriptsize, &fx0, &fy0, &fx1, &fy1, TRUE); x1 = (int) (cs * (fx1 - fx0)); y1 = (int) (si * (fx1 - fx0)); GRAmoverel(GC, -x1, y1); ptr++; break; case '\r': ptr++; break; case '_': case '^': if (scriptf == 0) { font3 = g_strdup(font2); if (font3 == NULL) { goto errexit; } size3 = size2; space3 = space2; } height = size2; size2 = (int) (size2 * 1e-4 * scriptsize); space2 = (int) (space2 * 1e-4 * scriptsize); if (ptr[0] == '^') { x = (int) (-si * (height * 0.8 - size2 * 5e-5 * scriptsize) * 25.4 / 72.0); y = (int) (-cs * (height * 0.8 - size2 * 5e-5 * scriptsize) * 25.4 / 72.0); GRAmoverel(GC, x, y); scmovex += x; scmovey += y; scriptf = 1; } else { x = (int) (si * size2 * 5e-5 * scriptsize * 25.4 / 72.0); y = (int) (cs * size2 * 5e-5 * scriptsize * 25.4 / 72.0); GRAmoverel(GC, x, y); scmovex += x; scmovey += y; scriptf = 2; if (scdist_max < scmovex * si + scmovey * cs) { scdist_max = scmovex * si + scmovey * cs; scx_max = scmovex; scy_max = scmovey; } } ptr++; break; case '@': if (scriptf) { scriptf = 0; GRAmoverel(GC, -scmovex, -scmovey); g_free(font2); font2 = font3; font3 = NULL; size2 = size3; space2 = space3; } scmovex = 0; scmovey = 0; ptr++; break; case '%': if ((ptr[1]!='\0') && (strchr("FJSPXYCA", toupper(ptr[1]))!=NULL) && (ptr[2]=='{')) { for (i = 3; ptr[i] != '\0' && ptr[i] != '}'; i++); if (ptr[i] == '}') { tok=g_malloc(i - 2); if (tok == NULL) { goto errexit; } strncpy(tok, ptr + 3, i - 3); tok[i - 3] = '\0'; if (tok[0] != '\0') { switch (toupper(ptr[1])) { case 'F': g_free(font2); font2=tok; break; case 'J': g_free(tok); break; case 'S': val=strtol(tok, &endptr, 10); if (endptr[0]=='\0') size2=val * 100; g_free(tok); break; case 'P': val=strtol(tok, &endptr, 10); if (endptr[0]=='\0') space2=val * 100; g_free(tok); break; case 'X': val=strtol(tok, &endptr, 10); if (endptr[0]=='\0') GRAmoverel(GC, (int) (val * 100 * 25.4 / 72.0), 0); g_free(tok); break; case 'Y': val=strtol(tok, &endptr, 10); if (endptr[0]=='\0') GRAmoverel(GC, 0, (int) (val * 100 * 25.4 / 72.0)); g_free(tok); break; case 'C': { char *tmp_ptr; tmp_ptr = tok; while (*tmp_ptr == '#' || g_ascii_isspace(*tmp_ptr)) { tmp_ptr++; } val = strtol(tmp_ptr, &endptr, 16); if (endptr[0]=='\0') { GRAcolor(GC, (val >> 16) & 0xff, (val >> 8) & 0xff, val & 0xff, -1); } g_free(tok); } break; case 'A': val = strtol(tok, &endptr, 10); if (endptr[0]=='\0') { GRAcolor(GC, -1, -1, -1, val); } g_free(tok); break; } } } ptr += i + 1; } else { ptr = g_utf8_next_char(ptr); } break; } } errexit: if (str) { g_string_free(str, TRUE); } g_free(c); g_free(font2); g_free(font3); } void GRAdrawtextraw(int GC, char *s, char *font, int style, int size, int space, int dir) { GString *str; int len, j; if (font == NULL || s == NULL) { return; } str = g_string_sized_new(128); if (str == NULL) { return; } len = strlen(s); for (j = 0; j < len; j++) { if (s[j] == '\\') { g_string_append_c(str, '\\'); } g_string_append_c(str, s[j]); } if (str->len > 0) { GRAtextstyle(GC, font, style, size, space, dir); GRAouttext(GC, str->str); } g_string_free(str, TRUE); } void GRAtextextent(char *s, char *font, int style, int size, int space, int scriptsize, int *gx0, int *gy0, int *gx1, int *gy1, int raw) { gchar *c, *tok; GString *str; int w, h, d, len, scmovey, scriptf, scy_max; char *endptr; char *font2; int size2, space2, style2; char *font3; int size3, space3, style3; int i, j, k, y, val, x0, y0; int height; int alignlen, fx0, fx1, fy0, fy1; char ch; *gx0 = *gy0 = *gx1 = *gy1 = 0; if (font == NULL || s == NULL) { return; } font2 = NULL; font3 = NULL; str = NULL; x0 = 0; y0 = 0; c = GRAexpandtext(s); if (c == NULL) { goto errexit; } if (c[0] == '\0') { goto errexit; } style3 = style2 = style; font2 = g_strdup(font); size2 = size; space2 = space; size3 = size; space3 = space; scriptf = 0; scmovey = 0; scy_max = 0; len = strlen(c); if (! raw) { for (k = 0; (k < len) && (c[k] != '\n') && (c[k] != '\r'); k++); if (c[k] == '\r') { ch = c[k]; c[k] = '\0'; GRAtextextent(c, font2, style2, size2, space2, scriptsize, &fx0, &fy0, &fx1, &fy1, TRUE); c[k] = ch; alignlen = fx1; } else { alignlen = 0; } } else { alignlen = 0; /* dummy code to avoid compile warnings */ } j=0; str = g_string_sized_new(256); if (str == NULL) { goto errexit; } do { g_string_set_size(str, 0); while (j < len && strchr("\n\b\r_^@%",c[j]) == NULL) { switch (c[j]) { case '\\': if (c[j + 1]=='x' && g_ascii_isxdigit(c[j + 2]) && g_ascii_isxdigit(c[j + 3])) { gunichar wc; wc = g_ascii_xdigit_value(c[j + 2]) * 16 + g_ascii_xdigit_value(c[j + 3]); g_string_append_unichar(str, wc); j += 4; } else if (isprint(c[j + 1])) { g_string_append_c(str, c[j + 1]); j += 2; } else { j++; } break; case FONT_STYLE_NORMAL: style3 = GRA_FONT_STYLE_NORMAL; j++; break; case FONT_STYLE_BOLD: style3 |= GRA_FONT_STYLE_BOLD; j++; break; case FONT_STYLE_ITALIC: style3 |= GRA_FONT_STYLE_ITALIC; j++; break; default: g_string_append_c(str, c[j]); j++; } if (style3 != style2) { break; } } if (str->len > 0) { w = GRAstrwidth(str->str, font2, style2, size2) + nround(space2 / 72.0 * 25.4) * (str->len - 1); h = GRAcharascent(font2, style2, size2); d = GRAchardescent(font2, style2, size2); if (x0 < *gx0) *gx0 = x0; if (x0 + w < *gx0) *gx0 = x0 + w; if (x0 > *gx1) *gx1 = x0; if (x0 + w > *gx1) *gx1 = x0 + w; if (y0 - h < *gy0) *gy0 = y0 - h; if (y0 + d < *gy0) *gy0 = y0 + d; if (y0 - h > *gy1) *gy1 = y0 - h; if (y0 + d > *gy1) *gy1 = y0 + d; x0 += w; } if (style3 != style2) { style2 = style3; continue; } switch (c[j]) { case '\n': y0 += (int) (size * 25.4 / 72.0); if (scriptf) { y0 -= scmovey; scriptf = 0; g_free(font2); font2 = font3; font3 = NULL; size2 = size3; space2 = space3; } y0 += scy_max; scmovey = 0; scy_max = 0; if (! raw && alignlen) { for (k = j + 1; (k < len) && (c[k] != '\n') && (c[k] != '\r'); k++); ch = c[k]; c[k] = '\0'; GRAtextextent(c + j + 1, font2, style2, size2, space2, scriptsize, &fx0, &fy0, &fx1, &fy1, TRUE); c[k] = ch; x0 = alignlen - fx1; } else { x0 = 0; } j++; break; case '\b': GRAtextextent("h", font2, style2, size2, space2, scriptsize, &fx0, &fy0, &fx1, &fy1, TRUE); x0 -= (fx1 - fx0); j++; break; case '\r': j++; break; case '_': case '^': if (scriptf == 0) { font3 = g_strdup(font2); if (font3 == NULL) { goto errexit; } size3 = size2; space3 = space2; } height = size2; size2 = (int) (size2 * 1e-4 * scriptsize); space2 = (int) (space2 * 1e-4 * scriptsize); if (c[j]=='^') { y = (int) (-(height * 0.8 - size2 * 5e-5 * scriptsize) * 25.4 / 72.0); y0 += y; scmovey += y; scriptf = 1; } else { y = (int) (size2 * 5e-5 * scriptsize * 25.4 / 72.0); y0 += y; scmovey += y; scriptf = 2; if (scy_max < scmovey) { scy_max = scmovey; } } j++; break; case '@': if (scriptf) { scriptf = 0; y0 -= scmovey; g_free(font2); font2 = font3; font3 = NULL; size2 = size3; space2 = space3; } scmovey = 0; j++; break; case '%': if (c[j + 1] != '\0' && strchr("FJSPXYCA", toupper(c[j + 1])) && c[j + 2] == '{') { for (i = j + 3; c[i] != '\0' && c[i] != '}'; i++); if (c[i] == '}') { tok = g_malloc(i - j - 2); if (tok == NULL) { goto errexit; } strncpy(tok, c + j + 3, i - j - 3); tok[i - j - 3] = '\0'; if (tok[0] != '\0') { switch (toupper(c[j + 1])) { case 'F': g_free(font2); font2 = tok; break; case 'J': case 'C': case 'A': g_free(tok); break; case 'S': val = strtol(tok, &endptr, 10); if (endptr[0] == '\0') { size2 = val * 100; } g_free(tok); break; case 'P': val = strtol(tok, &endptr, 10); if (endptr[0] == '\0') { space2 = val * 100; } g_free(tok); break; case 'X': val = strtol(tok, &endptr, 10); if (endptr[0] == '\0') { x0 += (int) (val * 100 * 25.4 / 72.0); } g_free(tok); break; case 'Y': val = strtol(tok, &endptr, 10); if (endptr[0] == '\0') { y0 += (int) (val * 100 * 25.4 / 72.0); } g_free(tok); break; } } } j = i + 1; } else { j++; } break; } } while (j < len); errexit: if (str) { g_string_free(str, TRUE); } g_free(c); g_free(font2); g_free(font3); } void GRAtextextentraw(char *s,char *font, int style, int size,int space,int *gx0,int *gy0,int *gx1,int *gy1) { *gx0 = *gy0 = *gx1 = *gy1 = 0; if (s == NULL || font == NULL) return; *gx1 = GRAstrwidth(s, font, style, size) + nround(space / 72.0 * 25.4) * (strlen(s) - 1); *gy0 = - GRAcharascent(font, style, size); } static int getintpar(char *s,int num,int cpar[]) { int i,pos1,pos2; char s2[256]; char *endptr; pos1=0; for (i=0;i= (int) sizeof(s2) - 1) return FALSE; s2[pos2]=s[pos1]; pos2++; pos1++; } s2[pos2]='\0'; cpar[i]=strtol(s2,&endptr,10); if (endptr[0]!='\0') return FALSE; } return TRUE; } static int GRAinputdraw(int GC,int leftm,int topm,int rate, char code,int *cpar,char *cstr) { int i; double r; if (GRAClist[GC].mergezoom==0) r=1; else r=((double )rate)/GRAClist[GC].mergezoom; switch (code) { case '%': case 'O': case 'Q': case 'F': case 'S': case 'K': break; case 'G': if (cpar[0] != 3 && cpar[0] != 4) return FALSE; break; case 'I': if (cpar[0] != 5) return FALSE; GRAClist[GC].mergeleft=cpar[1]; GRAClist[GC].mergetop=cpar[2]; GRAClist[GC].mergezoom=cpar[5]; code='\0'; break; case 'E': GRAClist[GC].mergeleft=0; GRAClist[GC].mergetop=0; GRAClist[GC].mergezoom=10000; code='\0'; break; case 'V': if (cpar[0] != 5) return FALSE; cpar[1]=(int )(((cpar[1]-GRAClist[GC].mergeleft)*r)+leftm); cpar[2]=(int )(((cpar[2]-GRAClist[GC].mergetop)*r)+topm); cpar[3]=(int )(((cpar[3]-GRAClist[GC].mergeleft)*r)+leftm); cpar[4]=(int )(((cpar[4]-GRAClist[GC].mergetop)*r)+topm); break; case 'A': if (cpar[0] != cpar[1] + 5) return FALSE; cpar[2]=(int )(cpar[2]*r); for (i=0;i= FONTTBL_NUM) { i = 0; } return fonttbl[i]; } int GRAinputold(int GC,char *s,int leftm,int topm,int rate) { int pos,num,i,j; char code,code2; int cpar[50],cpar2[50]; char cstr[256],*po,*ustr; int col,B,R,G; code='\0'; for (i=0;s[i]!='\0';i++) if (strchr("\n\r",s[i])!=NULL) { s[i]='\0'; break; } pos=0; while ((s[pos]==' ') || (s[pos]=='\t')) pos++; if (s[pos]=='\0') return TRUE; if (strchr("IEX%VAOMNLTCBPDFSK",s[pos])==NULL) return FALSE; code=s[pos]; if (strchr("%SK",code)==NULL) { if (!getintpar(s+pos+1,1,&num)) return FALSE; num++; if (!getintpar(s+pos+1,num,cpar)) return FALSE; } else { cpar[0]=-1; if ((po=strchr(s+pos+1,','))==NULL) return FALSE; if ((po=strchr(po+1,','))==NULL) return FALSE; strcpy(cstr,po+1); j=0; for (i=0;cstr[i]!='\0';i++) { if (cstr[i]=='\\') { if ((cstr[i+1]!='n') && (cstr[i+1]!='r')) { cstr[j]=cstr[i+1]; j++; } i++; } else { cstr[j]=cstr[i]; j++; } } if ((j>0) && (cstr[j-1]==',')) j--; cstr[j]='\0'; } switch (code) { case 'X': break; case '%': case 'S': GRAinputdraw(GC,leftm,topm,rate,code,cpar,cstr); break; case 'K': ustr = sjis_to_utf8(cstr); if (ustr) { GRAinputdraw(GC, leftm, topm, rate, 'S', cpar, ustr); g_free(ustr); } break; case 'I': cpar[0]=5; cpar[5]=nround(cpar[3]/2.1); cpar[3]=21000; cpar[4]=29700; GRAinputdraw(GC,leftm,topm,rate,code,cpar,cstr); break; case 'E': case 'M': case 'N': case 'L': case 'T': case 'P': GRAinputdraw(GC,leftm,topm,rate,code,cpar,cstr); break; case 'V': if (cpar[0]==4) { cpar[0]=5; cpar[5]=0; } GRAinputdraw(GC,leftm,topm,rate,code,cpar,cstr); break; case 'A': col=cpar[3]; GRAClist[GC].oldFB=(col & 1)*256; GRAClist[GC].oldFG=(col & 2)*128; GRAClist[GC].oldFR=(col & 4)*64; code2='G'; cpar2[0]=3; cpar2[1]=GRAClist[GC].oldFR; cpar2[2]=GRAClist[GC].oldFG; cpar2[3]=GRAClist[GC].oldFB; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,cstr); cpar[0]=5; cpar[3]=cpar[4]; cpar[4]=0; cpar[5]=1000; GRAinputdraw(GC,leftm,topm,rate,code,cpar,cstr); break; case 'O': col=cpar[1]; GRAClist[GC].oldBB=(col & 1)*256; GRAClist[GC].oldBG=(col & 2)*128; GRAClist[GC].oldBR=(col & 4)*64; break; case 'C': cpar2[7]=cpar[4]; if (cpar[0]>=5) cpar[4]=cpar[5]; else cpar[4]=cpar[3]; if (cpar[0]==7) { cpar[5]=cpar[6]*10; cpar[6]=cpar[7]*10-cpar[6]*10; if (cpar[6]<0) cpar[6]+=36000; } else { cpar[5]=0; cpar[6]=36000; } cpar[7]=cpar2[7]; cpar[0]=7; if (cpar[7]==1) { code2='G'; cpar2[0]=3; cpar2[1]=GRAClist[GC].oldBR; cpar2[2]=GRAClist[GC].oldBG; cpar2[3]=GRAClist[GC].oldBB; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,cstr); } GRAinputdraw(GC,leftm,topm,rate,code,cpar,cstr); if (cpar[7]==1) { code2='G'; cpar2[0]=3; cpar2[1]=GRAClist[GC].oldFR; cpar2[2]=GRAClist[GC].oldFG; cpar2[3]=GRAClist[GC].oldFB; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,cstr); } break; case 'B': if (cpar[5]==1) { code2='G'; cpar2[0]=3; cpar2[1]=GRAClist[GC].oldBR; cpar2[2]=GRAClist[GC].oldBG; cpar2[3]=GRAClist[GC].oldBB; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,cstr); } GRAinputdraw(GC,leftm,topm,rate,code,cpar,cstr); if (cpar[5]==1) { code2='G'; cpar2[0]=3; cpar2[1]=GRAClist[GC].oldFR; cpar2[2]=GRAClist[GC].oldFG; cpar2[3]=GRAClist[GC].oldFB; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,cstr); } break; case 'D': if (cpar[2]==1) { code2='G'; cpar2[0]=3; cpar2[1]=GRAClist[GC].oldBR; cpar2[2]=GRAClist[GC].oldBG; cpar2[3]=GRAClist[GC].oldBB; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,cstr); } GRAinputdraw(GC,leftm,topm,rate,code,cpar,cstr); if (cpar[2]==1) { code2='G'; cpar2[0]=3; cpar2[1]=GRAClist[GC].oldFR; cpar2[2]=GRAClist[GC].oldFG; cpar2[3]=GRAClist[GC].oldFB; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,cstr); } break; case 'F': code2='F'; cpar2[0]=-1; GRAClist[GC].mergefont=cpar[1]*4+cpar[2]; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,get_gra_font(cpar[1]*4+cpar[2])); if (cpar[6] == 1) { cpar[6]=9000; } else if (cpar[6]<0) { cpar[6]=abs(cpar[6]); } code2='H'; cpar2[0]=3; cpar2[1]=cpar[3]*100; cpar2[2]=cpar[4]*100; cpar2[3]=cpar[6]; GRAClist[GC].mergept=cpar2[1]; GRAClist[GC].mergesp=cpar2[2]; GRAClist[GC].mergedir=cpar2[3]; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,cstr); col=cpar[5]; B=(col & 1)*256; G=(col & 2)*128; R=(col & 4)*64; code2='G'; cpar2[0]=3; cpar2[1]=R; cpar2[2]=G; cpar2[3]=B; GRAinputdraw(GC,leftm,topm,rate,code2,cpar2,cstr); break; } return TRUE; } static int GRAlineclip(int GC,int *x0,int *y0,int *x1,int *y1) { int a,xl,yl,xg,yg; int minx,miny,maxx,maxy; if (GRAClist[GC].gminx>GRAClist[GC].gmaxx) { minx=GRAClist[GC].gmaxx-GRAClist[GC].gminx; maxx=0; } else { minx=0; maxx=GRAClist[GC].gmaxx-GRAClist[GC].gminx; } if (GRAClist[GC].gminy>GRAClist[GC].gmaxy) { miny=GRAClist[GC].gmaxy-GRAClist[GC].gminy; maxy=0; } else { miny=0; maxy=GRAClist[GC].gmaxy-GRAClist[GC].gminy; } if (*x0<*x1) { xl=*x0; yl=*y0; xg=*x1; yg=*y1; } else { xl=*x1; yl=*y1; xg=*x0; yg=*y0; } if ((xgmaxx)) return 1; if (xg>maxx) { xg=maxx; yg=(*y1-*y0)*(maxx-*x0)/(*x1-*x0)+*y0; } if (xlyg) { a=yl; yl=yg; yg=a; a=xl; xl=xg; xg=a; } if ((ygmaxy)) return 1; if (yg>maxy) { yg=maxy; xg=(*x1-*x0)*(maxy-*y0)/(*y1-*y0)+*x0; } if (ylGRAClist[GC].gmaxx) { minx=GRAClist[GC].gmaxx-GRAClist[GC].gminx; maxx=0; } else { minx=0; maxx=GRAClist[GC].gmaxx-GRAClist[GC].gminx; } if (GRAClist[GC].gminy>GRAClist[GC].gmaxy) { miny=GRAClist[GC].gmaxy-GRAClist[GC].gminy; maxy=0; } else { miny=0; maxy=GRAClist[GC].gmaxy-GRAClist[GC].gminy; } if (*x0<*x1) { xl=*x0; xg=*x1; } else { xl=*x1; xg=*x0; } if (*y0<*y1) { yl=*y0; yg=*y1; } else { yl=*y1; yg=*y0; } if ((xgmaxx)) return 1; if ((ygmaxy)) return 1; if ((xg>maxx) && (xlmaxy) && (ylmaxx) xg=maxx; if (xlmaxy) yg=maxy; if (ylGRAClist[GC].gmaxx) { minx=GRAClist[GC].gmaxx-GRAClist[GC].gminx; maxx=0; } else { minx=0; maxx=GRAClist[GC].gmaxx-GRAClist[GC].gminx; } if (GRAClist[GC].gminy>GRAClist[GC].gmaxy) { miny=GRAClist[GC].gmaxy-GRAClist[GC].gminy; maxy=0; } else { miny=0; maxy=GRAClist[GC].gmaxy-GRAClist[GC].gminy; } if ((minx<=x) && (x<=maxx) && (miny<=y) && (y<=maxy)) return 0; else return 1; } void GRAcurvefirst(int GC,int num,int *dashlist, clipfunc clipf,transfunc transf,diffunc diff,intpfunc intpf,void *local, double x0,double y0) { int gx0,gy0; #if EXPAND_DOTTED_LINE int i; g_free(GRAClist[GC].gdashlist); GRAClist[GC].gdashlist=NULL; if (num!=0) { if ((GRAClist[GC].gdashlist=g_malloc(sizeof(int)*num))==NULL) num=0; } GRAClist[GC].gdashn=num; for (i=0;i1) d=1; GRAClist[GC].gintpf(d,c,x0,y0,&x,&y,GRAClist[GC].gflocal); GRAdashlinetod(GC,x,y); } return TRUE; } void GRAdashlinetod(int GC,double x,double y) { double x1,y1,x2,y2; int gx1,gy1,gx2,gy2; #if EXPAND_DOTTED_LINE double dx,dy,dd,len,len2; int gx,gy; #endif x1=GRAClist[GC].x0; y1=GRAClist[GC].y0; x2=x; y2=y; if ((GRAClist[GC].gclipf==NULL) || (GRAClist[GC].gclipf(&x1,&y1,&x2,&y2,GRAClist[GC].gflocal)==0)) { if (GRAClist[GC].gtransf==NULL) { gx1=nround(x1); gy1=nround(y1); gx2=nround(x2); gy2=nround(y2); } else { GRAClist[GC].gtransf(x1,y1,&gx1,&gy1,GRAClist[GC].gflocal); GRAClist[GC].gtransf(x2,y2,&gx2,&gy2,GRAClist[GC].gflocal); } if ((x1!=GRAClist[GC].x0) || (y1!=GRAClist[GC].y0)) GRAmoveto(GC,gx1,gy1); #if EXPAND_DOTTED_LINE if (GRAClist[GC].gdashn==0) GRAlineto(GC,gx2,gy2); else { dx=(gx2-gx1); dy=(gy2-gy1); len2=len=sqrt(dx*dx+dy*dy); while (len2 >((GRAClist[GC].gdashlist)[GRAClist[GC].gdashi]-GRAClist[GC].gdashlen)) { dd=(len-len2+(GRAClist[GC].gdashlist)[GRAClist[GC].gdashi] -GRAClist[GC].gdashlen)/len; gx=gx1+nround(dx*dd); gy=gy1+nround(dy*dd); if (GRAClist[GC].gdotf) GRAlineto(GC,gx,gy); else GRAmoveto(GC,gx,gy); GRAClist[GC].gdotf=GRAClist[GC].gdotf ? FALSE : TRUE; len2-=((GRAClist[GC].gdashlist)[GRAClist[GC].gdashi] -GRAClist[GC].gdashlen); GRAClist[GC].gdashlen=0; GRAClist[GC].gdashi++; if (GRAClist[GC].gdashi>=GRAClist[GC].gdashn) { GRAClist[GC].gdashi=0; GRAClist[GC].gdotf=TRUE; } } if (GRAClist[GC].gdotf) GRAlineto(GC,gx2,gy2); GRAClist[GC].gdashlen+=len2; } #else GRAlineto(GC,gx2,gy2); #endif } GRAClist[GC].x0=x; GRAClist[GC].y0=y; } #if ! CURVE_OBJ_USE_EXPAND_BUFFER void GRAcmatchfirst(int pointx,int pointy,int err, clipfunc clipf,transfunc transf,diffunc diff,intpfunc intpf,void *local, struct cmatchtype *data,int bbox,double x0,double y0) { data->x0=x0; data->y0=y0; data->gclipf=clipf; data->gtransf=transf; data->gdiff=diff; data->gintpf=intpf; data->gflocal=local; data->err=err; data->pointx=pointx; data->pointy=pointy; data->bbox=bbox; data->minx=0; data->miny=0; data->maxx=0; data->maxy=0; data->bboxset=FALSE; data->match=FALSE; } static void GRAcmatchtod(double x,double y,struct cmatchtype *data) { double x1,y1,x2,y2; int gx1,gy1,gx2,gy2; double r,r2,r3,ip; x1=data->x0; y1=data->y0; x2=x; y2=y; if (data->bbox) { if (data->gtransf==NULL) { gx1=nround(x1); gy1=nround(y1); gx2=nround(x2); gy2=nround(y2); } else { data->gtransf(x1,y1,&gx1,&gy1,data->gflocal); data->gtransf(x2,y2,&gx2,&gy2,data->gflocal); } if (!data->bboxset || gx1minx) data->minx=gx1; if (!data->bboxset || gy1miny) data->miny=gy1; if (!data->bboxset || gx1>data->maxx) data->maxx=gx1; if (!data->bboxset || gy1>data->maxy) data->maxy=gy1; data->bboxset=TRUE; if (!data->bboxset || gx2minx) data->minx=gx2; if (!data->bboxset || gy2miny) data->miny=gy2; if (!data->bboxset || gx2>data->maxx) data->maxx=gx2; if (!data->bboxset || gy2>data->maxy) data->maxy=gy2; } else { if ((data->gclipf==NULL) || (data->gclipf(&x1,&y1,&x2,&y2,data->gflocal)==0)) { if (data->gtransf==NULL) { gx1=nround(x1); gy1=nround(y1); gx2=nround(x2); gy2=nround(y2); } else { data->gtransf(x1,y1,&gx1,&gy1,data->gflocal); data->gtransf(x2,y2,&gx2,&gy2,data->gflocal); } x1=gx1; y1=gy1; x2=gx2; y2=gy2; r2=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); r=sqrt((data->pointx-x1)*(data->pointx-x1)+(data->pointy-y1)*(data->pointy-y1)); r3=sqrt((data->pointx-x2)*(data->pointx-x2)+(data->pointy-y2)*(data->pointy-y2)); if ((r<=data->err) || (r3err)) { data->match=TRUE; } else if (r2!=0) { ip=((x2-x1)*(data->pointx-x1)+(y2-y1)*(data->pointy-y1))/r2; if ((0<=ip) && (ip<=r2)) { x2=x1+(x2-x1)*ip/r2; y2=y1+(y2-y1)*ip/r2; r=sqrt((data->pointx-x2)*(data->pointx-x2)+(data->pointy-y2)*(data->pointy-y2)); if (rerr) data->match=TRUE; } } } } data->x0=x; data->y0=y; } int GRAcmatch(double c[],double x0,double y0,struct cmatchtype *data) { double d,dx,dy,ddx,ddy,dd,x,y; if (ninterrupt()) return FALSE; d=0; while (d<1) { data->gdiff(d,c,&dx,&dy,&ddx,&ddy,data->gflocal); if ((fabs(dx)+fabs(ddx)/3)==0) dx=1; else dx=sqrt(fabs(2/(fabs(dx)+fabs(ddx)/3))); if ((fabs(dy)+fabs(ddy)/3)==0) dy=1; else dy=sqrt(fabs(2/(fabs(dy)+fabs(ddy)/3))); dd=(dx1) d=1; data->gintpf(d,c,x0,y0,&x,&y,data->gflocal); GRAcmatchtod(x,y,data); } return TRUE; } #endif static void setbbminmax(struct GRAbbox *bbox,int x1,int y1,int x2,int y2,int lw) { int x,y; if (x1>x2) { x=x1; x1=x2; x2=x; } if (y1>y2) { y=y1; y1=y2; y2=y; } if (lw) { x1-=bbox->linew; y1-=bbox->linew; x2+=bbox->linew; y2+=bbox->linew; } if (!bbox->clip || !((x2<0) || (y2<0) || (x1>bbox->clipsizex) || (y1>bbox->clipsizey))) { if (bbox->clip) { if (x1<0) x1=0; if (y1<0) y1=0; if (x2>bbox->clipsizex) x2=bbox->clipsizex; if (y2>bbox->clipsizey) y1=bbox->clipsizey; } x1+=bbox->offsetx; x2+=bbox->offsetx; y1+=bbox->offsety; y2+=bbox->offsety; if (!bbox->set || (x1minx)) bbox->minx=x1; if (!bbox->set || (y1miny)) bbox->miny=y1; if (!bbox->set || (x2>bbox->maxx)) bbox->maxx=x2; if (!bbox->set || (y2>bbox->maxy)) bbox->maxy=y2; if (!bbox->set) bbox->set=TRUE; } } void GRAinitbbox(struct GRAbbox *bbox) { bbox->set=FALSE; bbox->minx=0; bbox->miny=0; bbox->maxx=0; bbox->maxy=0; bbox->offsetx=0; bbox->offsety=0; bbox->posx=0; bbox->posy=0; bbox->pt=0; bbox->spc=0; bbox->dir=0; bbox->linew=0; bbox->clip=TRUE; bbox->clipsizex=21000; bbox->clipsizey=29700; bbox->fontalias=NULL; bbox->loadfont=FALSE; } void GRAendbbox(struct GRAbbox *bbox) { g_free(bbox->fontalias); } static int get_str_bbox(struct GRAbbox *bbox, char *cstr) { double x, y, csin, ccos; int w, h, d, x1, y1, x2, y2, x3, y3, x4, y4; gchar *ptr; GString *str; if (! bbox->loadfont) { return 0; } str = g_string_sized_new(256); if (str == NULL) { return 1; } csin = sin(bbox->dir / 18000.0 * MPI); ccos = cos(bbox->dir / 18000.0 * MPI); for (ptr = cstr; ptr[0]; ptr++) { if (ptr[0] == '\\') { if (ptr[1] == 'x' && g_ascii_isxdigit(ptr[2]) && g_ascii_isxdigit(ptr[3])) { gunichar wc; wc = g_ascii_xdigit_value(ptr[2]) * 16 + g_ascii_xdigit_value(ptr[3]); g_string_append_unichar(str, wc); ptr += 3; } else { ptr += 1; g_string_append_c(str, ptr[0]); } } else { g_string_append_c(str, ptr[0]); } } w = GRAstrwidth(str->str, bbox->fontalias, bbox->font_style, bbox->pt); h = GRAcharascent(bbox->fontalias, bbox->font_style, bbox->pt); d = GRAchardescent(bbox->fontalias, bbox->font_style, bbox->pt); x = 0; y = d; x1 = (int )(bbox->posx + ( x * ccos + y * csin)); y1 = (int )(bbox->posy + (-x * csin + y * ccos)); x = 0; y = -h; x2 = (int )(bbox->posx + ( x * ccos + y * csin)); y2 = (int )(bbox->posy + (-x * csin + y * ccos)); x = w; y = d; x3 = (int )(bbox->posx + ( x * ccos + y * csin)); y3 = (int )(bbox->posy + (-x * csin + y * ccos)); x = w; y = -h; x4 = (int )(bbox->posx + (int )( x * ccos + y * csin)); y4 = (int )(bbox->posy + (int )(-x * csin + y * ccos)); setbbminmax(bbox, x1, y1, x4, y4, FALSE); setbbminmax(bbox, x2, y2, x3, y3, FALSE); bbox->posx += (int )((w + bbox->spc * 25.4 / 72) * ccos); bbox->posy -= (int )((w + bbox->spc * 25.4 / 72) * csin); g_string_free(str, TRUE); return 0; } int GRAboundingbox(char code, int *cpar, char *cstr, void *local) { int lw, j; struct GRAbbox *bbox; char *tmp; bbox=local; switch (code) { case 'I': case 'X': case 'E': case '%': case 'G': break; case 'V': bbox->offsetx=cpar[1]; bbox->offsety=cpar[2]; bbox->posx=0; bbox->posy=0; if (cpar[5]==1) bbox->clip=TRUE; else bbox->clip=FALSE; bbox->clipsizex=cpar[3]-cpar[1]; bbox->clipsizey=cpar[4]-cpar[2]; break; case 'A': bbox->linew=cpar[2]/2; break; case 'M': bbox->posx=cpar[1]; bbox->posy=cpar[2]; break; case 'N': bbox->posx+=cpar[1]; bbox->posy+=cpar[2]; break; case 'L': setbbminmax(bbox,cpar[1],cpar[2],cpar[3],cpar[4],TRUE); break; case 'T': setbbminmax(bbox,bbox->posx,bbox->posy,cpar[1],cpar[2],TRUE); bbox->posx=cpar[1]; bbox->posy=cpar[2]; break; case 'C': lw = (cpar[7] == 0); if (cpar[7]==1) setbbminmax(bbox,cpar[1],cpar[2],cpar[1],cpar[2],lw); setbbminmax(bbox,cpar[1]+(int )(cpar[3]*cos(cpar[5]/18000.0*MPI)), cpar[2]-(int )(cpar[4]*sin(cpar[5]/18000.0*MPI)), cpar[1]+(int )(cpar[3]*cos((cpar[5]+cpar[6])/18000.0*MPI)), cpar[2]-(int )(cpar[4]*sin((cpar[5]+cpar[6])/18000.0*MPI)),lw); cpar[6]+=cpar[5]; cpar[5]-=9000; cpar[6]-=9000; if ((cpar[5]<0) && (cpar[6]>0)) setbbminmax(bbox,cpar[1],cpar[2]-cpar[4],cpar[1],cpar[2]-cpar[4],lw); cpar[5]-=9000; cpar[6]-=9000; if ((cpar[5]<0) && (cpar[6]>0)) setbbminmax(bbox,cpar[1]-cpar[3],cpar[2],cpar[1]-cpar[3],cpar[2],lw); cpar[5]-=9000; cpar[6]-=9000; if ((cpar[5]<0) && (cpar[6]>0)) setbbminmax(bbox,cpar[1],cpar[2]+cpar[4],cpar[1],cpar[2]+cpar[4],lw); cpar[5]-=9000; cpar[6]-=9000; if ((cpar[5]<0) && (cpar[6]>0)) setbbminmax(bbox,cpar[1]+cpar[3],cpar[2],cpar[1]+cpar[3],cpar[2],lw); break; case 'B': setbbminmax(bbox,cpar[1],cpar[2],cpar[3],cpar[4], cpar[5] == 0); break; case 'P': setbbminmax(bbox,cpar[1],cpar[2],cpar[1],cpar[2],FALSE); break; case 'R': for (j = 0; j < cpar[1] - 1; j++) setbbminmax(bbox, cpar[j * 2 + 2], cpar[j * 2 + 3], cpar[j * 2 + 4], cpar[j * 2 + 5], TRUE); break; case 'D': lw = (cpar[2] == 0); for (j = 0; j < cpar[1] - 1; j++) setbbminmax(bbox, cpar[j * 2 + 3], cpar[j * 2 + 4], cpar[j * 2 + 5], cpar[j * 2 + 6],lw); break; case 'F': g_free(bbox->fontalias); if ((bbox->fontalias=g_malloc(strlen(cstr)+1))!=NULL) strcpy(bbox->fontalias,cstr); break; case 'H': bbox->pt=cpar[1]; bbox->spc=cpar[2]; bbox->dir=cpar[3]; if (cpar[0] > 3) { bbox->font_style = cpar[4]; } bbox->loadfont=TRUE; break; case 'S': get_str_bbox(bbox, cstr); break; case 'K': tmp = sjis_to_utf8(cstr); if (tmp) { get_str_bbox(bbox, tmp); g_free(tmp); } break; } return 0; } ngraph-gtk-6.06.13/src/ofile.c0000644000175000017500000064271012241343625012717 00000000000000/* * $Id: ofile.c,v 1.113 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include #include #include #include #include #include #include #include #include #include #include #include "common.h" #include "nhash.h" #include "object.h" #include "ioutil.h" #include "nstring.h" #include "mathcode.h" #include "mathfn.h" #include "spline.h" #include "gra.h" #include "ntime.h" #include "oroot.h" #include "odraw.h" #include "ofile.h" #include "axis.h" #include "nconfig.h" #include "math/math_equation.h" #define UPDATE_PROGRESS_LINE_NUM 0xfff enum { MATH_CONST_NUM, MATH_CONST_MINX, MATH_CONST_MAXX, MATH_CONST_MINY, MATH_CONST_MAXY, MATH_CONST_SUMX, MATH_CONST_SUMY, MATH_CONST_SUMXX, MATH_CONST_SUMYY, MATH_CONST_SUMXY, MATH_CONST_AVX, MATH_CONST_AVY, MATH_CONST_SGX, MATH_CONST_SGY, TWOPASS_CONST_SIZE, }; enum { MATH_CONST_MASK = TWOPASS_CONST_SIZE, MATH_CONST_MOVE, MATH_CONST_FIRST, MATH_CONST_COLX, MATH_CONST_COLY, MATH_CONST_AXISX, MATH_CONST_AXISY, MATH_CONST_HSKIP, MATH_CONST_RSTEP, MATH_CONST_FLINE, MATH_CONST_FILE_OBJ, MATH_CONST_PATH_OBJ, MATH_CONST_RECT_OBJ, MATH_CONST_ARC_OBJ, MATH_CONST_MARK_OBJ, MATH_CONST_TEXT_OBJ, MATH_CONST_D, MATH_CONST_N, MATH_CONST_SIZE, }; #define NAME "file" #define ALIAS "data" #define PARENT "draw" #define OVERSION "1.00.00" #define F2DCONF "[file]" #define ERRFILE 100 #define ERROPEN 101 #define ERRSYNTAX 102 #define ERRILLEGAL 103 #define ERRNEST 104 #define ERRNOAXIS 105 #define ERRNOAXISINST 106 #define ERRNOSETAXIS 107 #define ERRMINMAX 108 #define ERRAXISDIR 109 #define ERRMSYNTAX 110 #define ERRMERR 111 #define ERRMNONUM 112 #define ERRSPL 113 #define ERRNOFIT 114 #define ERRNOFITINST 115 #define ERRIFS 116 #define ERRILOPTION 117 #define ERRIGNORE 118 #define ERRNEGATIVE 119 #define ERRREAD 120 #define ERRWRITE 121 #define ERR_SMALL_ARGS 122 #define ERR_INVALID_TYPE 123 #define ERR_INVALID_PARAM 124 #define ERRCONVERGE 125 static char *f2derrorlist[]={ "file is not specified.", "I/O error: open file", "syntax error in math.", "not allowed function in math.", "sum() or dif(): deep nest in math.", "`axis' is not specified.", "no instance for axis", "axis parameter is not set.", "illegal axis min/max.", "illegal axis direction.", "syntax error in math:", "illegal value in math:", "unnumeric data:", "error: spline interpolation.", "`fit' is not specified.", "no instance for fit", "illegal ifs.", "illegal file option", "illegal value for axis ---> ignored", "negative value in LOG-axis ---> ABS()", "I/O error: read file", "I/O error: write file", "too small number of arguments.", "invalid type.", "invalid parameter.", "convergence error.", }; #define ERRNUM (sizeof(f2derrorlist) / sizeof(*f2derrorlist)) static char *f2dtypechar[]={ N_("mark"), N_("line"), N_("polygon"), N_("polygon_solid_fill"), N_("curve"), N_("diagonal"), N_("arrow"), N_("rectangle"), N_("rectangle_fill"), N_("rectangle_solid_fill"), N_("errorbar_x"), N_("errorbar_y"), N_("staircase_x"), N_("staircase_y"), N_("bar_x"), N_("bar_y"), N_("bar_fill_x"), N_("bar_fill_y"), N_("bar_solid_fill_x"), N_("bar_solid_fill_y"), N_("fit"), NULL }; static int set_math_config(struct objlist *obj, N_VALUE *inst, char *field, char *str); static struct obj_config FileConfig[] = { {"R", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"G", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"B", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"A", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"R2", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"G2", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"B2", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"A2", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"x", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"y", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"type", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"smooth_x", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"smooth_y", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"mark_type", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"mark_size", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"line_width", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"line_join", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"line_miter_limit", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"head_skip", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"read_step", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"final_line", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"csv", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"data_clip", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"interpolation", OBJ_CONFIG_TYPE_NUMERIC, NULL, NULL}, {"remark", OBJ_CONFIG_TYPE_STRING, NULL, NULL}, {"ifs", OBJ_CONFIG_TYPE_STRING, NULL, NULL}, {"axis_x", OBJ_CONFIG_TYPE_STRING, NULL, NULL}, {"axis_y", OBJ_CONFIG_TYPE_STRING, NULL, NULL}, {"line_style", OBJ_CONFIG_TYPE_STYLE, NULL, NULL}, {"math_x", OBJ_CONFIG_TYPE_OTHER, set_math_config, obj_save_config_string}, {"math_y", OBJ_CONFIG_TYPE_OTHER, set_math_config, obj_save_config_string}, {"func_f", OBJ_CONFIG_TYPE_OTHER, set_math_config, obj_save_config_string}, {"func_g", OBJ_CONFIG_TYPE_OTHER, set_math_config, obj_save_config_string}, {"func_h", OBJ_CONFIG_TYPE_OTHER, set_math_config, obj_save_config_string}, }; #define MASK_SERACH_METHOD_LINER 0 #define MASK_SERACH_METHOD_BINARY 1 #define MASK_SERACH_METHOD_CONST 2 #define MASK_SERACH_METHOD MASK_SERACH_METHOD_CONST static NHASH FileConfigHash = NULL; #define DXBUFSIZE 101 #define USE_BUF_PTR 1 #define USE_RING_BUF 2 #define BUF_TYPE USE_BUF_PTR #define FIT_FIELD_PREFIX "fit_" #define USE_MEMMOVE 1 #if BUF_TYPE == USE_RING_BUF #define RING_BUF_INC(i) (((i) < DXBUFSIZE) ? ((i) + 1) : 0) #endif #if HAVE_ISFINITE #define check_infinite(v) (! isfinite(v)) #elsif HAVE_FINITE #define check_infinite(v) (! finite(v)) #else #define check_infinite(v) ((v) != (v) || (v) == HUGE_VAL || (v) == - HUGE_VAL) #endif struct rgba { int r, g, b, a; }; struct f2ddata_buf { double dx, dy, d2, d3; struct rgba col, col2; int marksize, marktype, line; int dxstat, dystat, d2stat, d3stat; }; #define EQUATION_NUM 3 struct f2ddata { struct objlist *obj; int id; char *file; FILE *fd; int x,y; enum {TYPE_NORMAL, TYPE_DIAGONAL, TYPE_ERR_X, TYPE_ERR_Y} type; /* fp->type: 0 normal (dx ... dy) 1 diagonal (dx dy ... d2 d3) 2 error bar x (dx d2 d3 ... dy) 3 error bar y (dx ... dy d2 d3) */ int hskip; int rstep; int final; int csv; char *remark,*ifs, ifs_buf[256]; int line,dline; double count; int eof; int dataclip; double axmin,axmax,aymin,aymax; double axmin2,axmax2,aymin2,aymax2; double axvx,axvy,ayvx,ayvy; int axisx, axisy; int axtype,aytype,axposx,axposy,ayposx,ayposy,axlen,aylen; double ratex,ratey; MathEquation *codex[EQUATION_NUM], *codey[EQUATION_NUM]; MathValue minx, maxx, miny, maxy; int *const_id; struct rgba col, col2, color, color2, fg, bg; int fnumx, fnumy; int *needx, *needy; int dxstat,dystat,d2stat,d3stat; double dx,dy,d2,d3; int maxdim; int need2pass; double sumx,sumy,sumxx,sumyy,sumxy; int num,datanum,prev_datanum; int marksize0,marksize; int marktype0,marktype; int ignore,negative; int msize,mtype; struct f2ddata_buf buf[DXBUFSIZE]; #if BUF_TYPE == USE_BUF_PTR struct f2ddata_buf *buf_ptr[DXBUFSIZE]; #elif BUF_TYPE == USE_RING_BUF int ringbuf_top; #endif int bufnum,bufpo; int smooth,smoothx,smoothy; int masknum; int *mask; #if MASK_SERACH_METHOD == MASK_SERACH_METHOD_CONST int mask_index; #endif int movenum; double *movex,*movey; int *move; time_t mtime; int interrupt; struct narray fileopen; }; struct f2dlocal { MathEquation *codex[3], *codey[3]; MathValue minx, maxx, miny, maxy; int const_id[MATH_CONST_SIZE]; int maxdimx,maxdimy; int need2passx,need2passy,total_line; struct f2ddata *data; int coord,idx,idy,id2,id3,icx,icy,ic2,ic3,isx,isy,is2,is3,iline; FILE *storefd; int endstore; double sumx, sumy, sumxx, sumyy, sumxy; double dminx, dmaxx, dminy, dmaxy, davx, davy, dsigx, dsigy; int num, rcode; time_t mtime, mtime_stat; }; static int set_data_progress(struct f2ddata *fp); static int getminmaxdata(struct f2ddata *fp, struct f2dlocal *local); static int calc_fit_equation(struct objlist *obj, N_VALUE *inst, double x, double *y); #if BUF_TYPE == USE_RING_BUF int ring_buf_index(struct f2ddata *fp, int i) { int n; n = fp->ringbuf_top + i; return (n < DXBUFSIZE) ? n : n % DXBUFSIZE; } #endif static void check_ifs_init(struct f2ddata *fp) { char *ifs, *remark; int i; ifs = fp->ifs; remark = fp->remark; memset(fp->ifs_buf, 0, sizeof(fp->ifs_buf)); if (ifs) { for (; *ifs; ifs++) { i = *ifs; if (i > 0) { fp->ifs_buf[i] |= 1; } } } if (remark) { for (; *remark; remark++) { i = *remark; if (i > 0) { fp->ifs_buf[i] |= 2; } } } } #define CHECK_IFS(buf, ch) (buf[(unsigned char) ch] & 1) #define CHECK_REMARK(buf, ch) (buf[(unsigned char) ch] & 2) #define FILE_OBJ_COLOR_COLOR 0 #define FILE_OBJ_COLOR_ALPHA 1 struct object_color_type { char *name; enum { COLOR_TYPE_MARK, COLOR_TYPE_PATH, COLOR_TYPE_TEXT, } color_type; }; static int file_obj_color_alpha(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval, int type) { struct f2ddata *fp; struct objlist *obj; int id, object_id, color_type; struct object_color_type obj_names[] = { {"file", COLOR_TYPE_MARK}, {"path", COLOR_TYPE_PATH}, {"rectangle", COLOR_TYPE_PATH}, {"arc", COLOR_TYPE_PATH}, {"mark", COLOR_TYPE_MARK}, {"text", COLOR_TYPE_TEXT}, }; unsigned int i; *rval = exp->buf[0].val; if (exp->buf[0].val.type != MATH_VALUE_NORMAL || exp->buf[1].val.type != MATH_VALUE_NORMAL) { return 0; } fp = math_equation_get_user_data(eq); if (fp == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } id = exp->buf[0].val.val; object_id = exp->buf[1].val.val; if (object_id == 0) { object_id = chkobjectid(fp->obj); } obj = NULL; color_type = COLOR_TYPE_TEXT; for (i = 0; i < sizeof(obj_names) / sizeof(*obj_names); i++) { obj = getobject(obj_names[i].name); if (obj && object_id == chkobjectid(obj)) { color_type = obj_names[i].color_type; break; } obj = NULL; } if (obj == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } if (chkobjinst(obj, id) == NULL) { return 0; } switch (color_type) { case COLOR_TYPE_MARK: if (type == FILE_OBJ_COLOR_COLOR) { getobj(obj, "R2", id, 0, NULL, &fp->color2.r); getobj(obj, "G2", id, 0, NULL, &fp->color2.g); getobj(obj, "B2", id, 0, NULL, &fp->color2.b); } else { getobj(obj, "A2", id, 0, NULL, &fp->color2.a); } case COLOR_TYPE_TEXT: /* fall-through */ if (type == FILE_OBJ_COLOR_COLOR) { getobj(obj, "R", id, 0, NULL, &fp->color.r); getobj(obj, "G", id, 0, NULL, &fp->color.g); getobj(obj, "B", id, 0, NULL, &fp->color.b); } else { getobj(obj, "A", id, 0, NULL, &fp->color.a); } break; case COLOR_TYPE_PATH: if (type == FILE_OBJ_COLOR_COLOR) { getobj(obj, "stroke_R", id, 0, NULL, &fp->color.r); getobj(obj, "stroke_G", id, 0, NULL, &fp->color.g); getobj(obj, "stroke_B", id, 0, NULL, &fp->color.b); getobj(obj, "fill_R", id, 0, NULL, &fp->color2.r); getobj(obj, "fill_G", id, 0, NULL, &fp->color2.g); getobj(obj, "fill_B", id, 0, NULL, &fp->color2.b); } else { getobj(obj, "stroke_A", id, 0, NULL, &fp->color.a); getobj(obj, "fill_A", id, 0, NULL, &fp->color2.a); } break; } return 0; } static int file_objcolor(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { return file_obj_color_alpha(exp, eq, rval, FILE_OBJ_COLOR_COLOR); } static int file_objalpha(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { return file_obj_color_alpha(exp, eq, rval, FILE_OBJ_COLOR_ALPHA); } static int file_color(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct f2ddata *fp; int color, val; *rval = exp->buf[1].val; if (exp->buf[0].val.type != MATH_VALUE_NORMAL || exp->buf[1].val.type != MATH_VALUE_NORMAL) { return 0; } fp = math_equation_get_user_data(eq); if (fp == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } color = exp->buf[0].val.val; val = exp->buf[1].val.val; #if 0 if (val < 0 || val > 255) { rval->type = MATH_VALUE_ERROR; return 1; } #else if (color < 8) { if (val < 0) { val = 0; } else if (val > 255) { val = 255; } } #endif switch (color) { case 0: fp->color.r = val; break; case 1: fp->color.g = val; break; case 2: fp->color.b = val; break; case 3: fp->color.r = fp->color.g = fp->color.b = val; break; case 4: fp->color2.r = val; break; case 5: fp->color2.g = val; break; case 6: fp->color2.b = val; break; case 7: fp->color2.r = fp->color2.g = fp->color2.b = val; break; case 8: fp->color.r = ((val >> 16) & 0xff); fp->color.g = ((val >> 8) & 0xff); fp->color.b = (val & 0xff); break; case 9: fp->color2.r = ((val >> 16) & 0xff); fp->color2.g = ((val >> 8) & 0xff); fp->color2.b = (val & 0xff); break; default: rval->type = MATH_VALUE_ERROR; return 1; } return 0; } static int file_alpha(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct f2ddata *fp; int alpha, color; *rval = exp->buf[0].val; if (exp->buf[0].val.type != MATH_VALUE_NORMAL) { return 0; } fp = math_equation_get_user_data(eq); if (fp == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } alpha = exp->buf[0].val.val; #if 0 if (alpha < 0 || alpha > 255) { rval->type = MATH_VALUE_ERROR; return 1; } #else if (alpha < 0) { alpha = 0; } else if (alpha > 255) { alpha = 255; } #endif color = exp->buf[1].val.val; switch (color) { case 1: fp->color.a = alpha; break; case 2: fp->color2.a = alpha; default: fp->color.a = alpha; fp->color2.a = alpha; } return 0; } static int file_rgb_sub(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval, int color2) { struct f2ddata *fp; int r, g, b; *rval = exp->buf[2].val; if (exp->buf[0].val.type != MATH_VALUE_NORMAL || exp->buf[1].val.type != MATH_VALUE_NORMAL || exp->buf[2].val.type != MATH_VALUE_NORMAL) { return 0; } fp = math_equation_get_user_data(eq); if (fp == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } r = exp->buf[0].val.val * 255; g = exp->buf[1].val.val * 255; b = exp->buf[2].val.val * 255; #if 0 if (r < 0 || r > 255 || g < 0 || g > 255 || b < 0 || b > 255) { rval->type = MATH_VALUE_ERROR; return 1; } #else if (r < 0) { r = 0; } else if (r > 255) { r = 255; } if (g < 0) { g = 0; } else if (g > 255) { g = 255; } if (b < 0) { b = 0; } else if (b > 255) { b = 255; } #endif if (color2) { fp->color2.r = r; fp->color2.g = g; fp->color2.b = b; } else { fp->color.r = r; fp->color.g = g; fp->color.b = b; } return 0; } static int file_rgb(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { return file_rgb_sub(exp, eq, rval, FALSE); } static int file_rgb2(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { return file_rgb_sub(exp, eq, rval, TRUE); } static int file_hsb_sub(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval, int color2) { struct f2ddata *fp; double h, s, b; int r, g, bb; *rval = exp->buf[2].val; if (exp->buf[0].val.type != MATH_VALUE_NORMAL || exp->buf[1].val.type != MATH_VALUE_NORMAL || exp->buf[2].val.type != MATH_VALUE_NORMAL) { return 0; } fp = math_equation_get_user_data(eq); if (fp == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } h = exp->buf[0].val.val; s = exp->buf[1].val.val; b = exp->buf[2].val.val; #if 0 if (h < 0 || h > 1 || s < 0 || s > 1 || b < 0 || b > 1) { rval->type = MATH_VALUE_ERROR; return 1; } #else if (h < 0) { h = 0; } else if (h > 1) { h = 1; } if (s < 0) { s = 0; } else if (s > 1) { s = 1; } if (b < 0) { b = 0; } else if (b > 1) { b = 1; } #endif HSB2RGB(h, s, b, &r, &g, &bb); if (color2) { fp->color2.r = r; fp->color2.g = g; fp->color2.b = bb; } else { fp->color.r = r; fp->color.g = g; fp->color.b = bb; } return 0; } static int file_hsb(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { return file_hsb_sub(exp, eq, rval, FALSE); } static int file_hsb2(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { return file_hsb_sub(exp, eq, rval, TRUE); } static int file_marksize(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct f2ddata *fp; int size; *rval = exp->buf[0].val; if (exp->buf[0].val.type != MATH_VALUE_NORMAL) { return 0; } fp = math_equation_get_user_data(eq); if (fp == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } size = exp->buf[0].val.val; if (size < 0 || size > 65536) { rval->type = MATH_VALUE_ERROR; return 1; } fp->marksize = size; return 0; } static int file_marktype(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct f2ddata *fp; int type; *rval = exp->buf[0].val; if (exp->buf[0].val.type != MATH_VALUE_NORMAL) { return 0; } fp = math_equation_get_user_data(eq); if (fp == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } type = exp->buf[0].val.val; if (type < 0 || type >= MARK_TYPE_NUM) { rval->type = MATH_VALUE_ERROR; return 1; } fp->marktype = type; return 0; } static int file_fit_calc(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int file_id, r; double x, y; static struct objlist *file_obj = NULL; rval->val = 0; if (exp->buf[0].val.type != MATH_VALUE_NORMAL || exp->buf[1].val.type != MATH_VALUE_NORMAL) { return 0; } if (file_obj == NULL) { file_obj = getobject("file"); } if (file_obj == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } file_id = exp->buf[0].val.val; x = exp->buf[1].val.val; r = ofile_calc_fit_equation(file_obj, file_id, x, &y); if (r) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = y; rval->type = MATH_VALUE_NORMAL; return 0; } static int file_fit_prm(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int file_id, prm, r; char *argv[2], *ptr; struct savedstdio save; static struct objlist *file_obj = NULL; rval->val = 0; if (exp->buf[0].val.type != MATH_VALUE_NORMAL || exp->buf[1].val.type != MATH_VALUE_NORMAL) { return 0; } if (file_obj == NULL) { file_obj = getobject("file"); } if (file_obj == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } file_id = exp->buf[0].val.val; prm = exp->buf[1].val.val; argv[0] = (char *) &prm; argv[1] = NULL; ignorestdio(&save); r = getobj(file_obj, "fit_prm", file_id, 1, argv, &ptr); restorestdio(&save); if (r < 0 || ptr == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = atof(ptr); rval->type = MATH_VALUE_NORMAL; return 0; } struct funcs { char *name; struct math_function_parameter prm; }; static struct funcs FitFunc[] = { {"FIT_CALC", {2, 0, 0, file_fit_calc, NULL, NULL, NULL, NULL}}, {"FIT_PRM", {2, 0, 0, file_fit_prm, NULL, NULL, NULL, NULL}}, }; static struct funcs FileFunc[] = { {"OBJ_ALPHA", {2, 0, 0, file_objalpha, NULL, NULL, NULL, NULL}}, {"OBJ_COLOR", {2, 0, 0, file_objcolor, NULL, NULL, NULL, NULL}}, {"COLOR", {2, 0, 0, file_color, NULL, NULL, NULL, NULL}}, {"ALPHA", {2, 0, 0, file_alpha, NULL, NULL, NULL, NULL}}, {"RGB", {3, 0, 0, file_rgb, NULL, NULL, NULL, NULL}}, {"RGB2", {3, 0, 0, file_rgb2, NULL, NULL, NULL, NULL}}, {"HSB", {3, 0, 0, file_hsb, NULL, NULL, NULL, NULL}}, {"HSB2", {3, 0, 0, file_hsb2, NULL, NULL, NULL, NULL}}, {"MARKSIZE", {1, 0, 0, file_marksize, NULL, NULL, NULL, NULL}}, {"MARKTYPE", {1, 0, 0, file_marktype, NULL, NULL, NULL, NULL}}, }; static int add_file_func(MathEquation *eq) { unsigned int i; for (i = 0; i < sizeof(FileFunc) / sizeof(*FileFunc); i++) { if (math_equation_add_func(eq, FileFunc[i].name, &FileFunc[i].prm) == NULL) return 1; } return 0; } static int add_fit_func(MathEquation *eq) { unsigned int i; for (i = 0; i < sizeof(FitFunc) / sizeof(*FitFunc); i++) { if (math_equation_add_func(eq, FitFunc[i].name, &FitFunc[i].prm) == NULL) return 1; } return 0; } int get_axis_id(struct objlist *obj, N_VALUE *inst, struct objlist **aobj, int axis) { char *field, *axis_str; struct narray iarray; int anum, id; switch (axis) { case AXIS_X: field = "axis_x"; break; case AXIS_Y: field = "axis_y"; break; case AXIS_REFERENCE: field = "reference"; break; default: return - ERRNOAXIS; } _getobj(obj, field, inst, &axis_str); if (axis_str == NULL) { return - ERRNOAXIS; } arrayinit(&iarray, sizeof(int)); if (getobjilist(axis_str, aobj, &iarray, FALSE, NULL)) { return - ERRNOAXIS; } anum = arraynum(&iarray); if (anum < 1) { arraydel(&iarray); return - ERRNOAXISINST; } id = arraylast_int(&iarray); arraydel(&iarray); return id; } struct axis_prm { int posx, posy; int len; double min, max, min2, max2; double vx, vy, rate; int type; }; static int get_axis_prm(struct objlist *obj, N_VALUE *inst, int axis, struct axis_prm *prm) { int aid, id, dir; N_VALUE *inst1; struct objlist *aobj; double min, max, ddir; aid = get_axis_id(obj, inst, &aobj, axis); if (aid < 0) { return aid; } inst1 = getobjinst(aobj, aid); if (inst1 == NULL) { return -1; } if (_getobj(aobj, "x", inst1, &prm->posx)) { return -1; } if (_getobj(aobj, "y", inst1, &prm->posy)) { return -1; } if (_getobj(aobj, "length", inst1, &prm->len)) { return -1; } if (_getobj(aobj, "direction", inst1, &dir)) { return -1; } if (_getobj(aobj, "min", inst1, &min)) { return -1; } if (_getobj(aobj, "max", inst1, &max)) { return -1; } if (_getobj(aobj, "type", inst1, &prm->type)) { return -1; } if (min == 0 && max == 0) { id = get_axis_id(aobj, inst1, &aobj, AXIS_REFERENCE); if (id >= 0) { inst1 = getobjinst(aobj, id); if (inst1) { _getobj(aobj, "min", inst1, &min); _getobj(aobj, "max", inst1, &max); _getobj(aobj, "type", inst1, &prm->type); } } } prm->min2 = min; prm->max2 = max; ddir = dir / 18000.0 * MPI; prm->vx = cos(ddir); prm->vy = -sin(ddir); if (min == max) { return - ERRNOSETAXIS; } switch (prm->type) { case AXIS_TYPE_LOG: if (min <= 0 || max <= 0) { return - ERRMINMAX; } min = log10(min); max = log10(max); break; case AXIS_TYPE_INVERSE: if (min * max <= 0) { return - ERRMINMAX; } min = 1 / min; max = 1 / max; break; } prm->rate = prm->len / (max - min); prm->min = min; prm->max = max; return aid; } static struct f2ddata * opendata(struct objlist *obj,N_VALUE *inst, struct f2dlocal *f2dlocal,int axis,int raw) { int fid; char *file; struct rgba fg, bg; int x,y,type,hskip,rstep,final,csv; char *remark,*ifs; int smoothx,smoothy; struct narray *mask; struct narray *move,*movex,*movey; struct f2ddata *fp; int i,j; int axid,ayid,id; N_VALUE *inst1; int marksize,marktype; int num2,prev_datanum; int *data2; double ip1,ip2; int dataclip; struct stat stat_buf; struct axis_prm ax_prm, ay_prm; _getobj(obj,"id",inst,&fid); _getobj(obj,"file",inst,&file); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"type",inst,&type); _getobj(obj,"head_skip",inst,&hskip); _getobj(obj,"read_step",inst,&rstep); _getobj(obj,"final_line",inst,&final); _getobj(obj,"remark",inst,&remark); _getobj(obj,"ifs",inst,&ifs); _getobj(obj,"csv",inst,&csv); _getobj(obj,"smooth_x",inst,&smoothx); _getobj(obj,"smooth_y",inst,&smoothy); _getobj(obj,"mask",inst,&mask); _exeobj(obj,"move_data_adjust",inst,0,NULL); _getobj(obj,"move_data",inst,&move); _getobj(obj,"move_data_x",inst,&movex); _getobj(obj,"move_data_y",inst,&movey); _getobj(obj,"R",inst,&fg.r); _getobj(obj,"G",inst,&fg.g); _getobj(obj,"B",inst,&fg.b); _getobj(obj,"A",inst,&fg.a); _getobj(obj,"R2",inst,&bg.r); _getobj(obj,"G2",inst,&bg.g); _getobj(obj,"B2",inst,&bg.b); _getobj(obj,"A2",inst,&bg.a); _getobj(obj,"mark_size",inst,&marksize); _getobj(obj,"mark_type",inst,&marktype); _getobj(obj,"data_clip",inst,&dataclip); _getobj(obj,"data_num",inst,&prev_datanum); if (file==NULL) { error(obj,ERRFILE); return NULL; } if (axis) { axid = get_axis_prm(obj, inst, AXIS_X, &ax_prm); if (axid < 0) { error(obj, - axid); return NULL; } ayid = get_axis_prm(obj, inst, AXIS_Y, &ay_prm); if (ayid < 0) { error(obj, - ayid); return NULL; } ip1=-ax_prm.vy*ay_prm.vx+ax_prm.vx*ay_prm.vy; ip2=-ay_prm.vy*ax_prm.vx+ay_prm.vx*ax_prm.vy; if ((fabs(ip1)<=1e-15) || (fabs(ip2)<=1e-15)) { error(obj,ERRAXISDIR); return NULL; } } else { /* these initialization exist to avoid compile warnings. */ axid =0; ayid =0; memset(&ax_prm, 0, sizeof(ax_prm)); memset(&ay_prm, 0, sizeof(ay_prm)); ax_prm.type = AXIS_TYPE_LINEAR; ay_prm.type = AXIS_TYPE_LINEAR; } if ((fp=g_malloc(sizeof(struct f2ddata)))==NULL) return NULL; fp->file=file; if ((fp->fd=nfopen(file,"rt"))==NULL) { error2(obj,ERROPEN,file); g_free(fp); return NULL; } if (fstat(fileno(fp->fd), &stat_buf)) { error2(obj,ERROPEN,file); fclose(fp->fd); g_free(fp); return NULL; } fp->mtime = stat_buf.st_mtime; fp->obj=obj; fp->id=fid; fp->axisx = axid; fp->axisy = ayid; fp->prev_datanum = prev_datanum; #if BUF_TYPE == USE_BUF_PTR for (i = 0; i < DXBUFSIZE; i++) { fp->buf_ptr[i] = &fp->buf[i]; } #elif BUF_TYPE == USE_RING_BUF fp->ringbuf_top = 0; #endif fp->bufnum=0; fp->bufpo=0; fp->masknum=arraynum(mask); fp->mask=arraydata(mask); #if MASK_SERACH_METHOD == MASK_SERACH_METHOD_CONST fp->mask_index = 0; #endif fp->movenum=arraynum(move); fp->move=arraydata(move); fp->movex=arraydata(movex); fp->movey=arraydata(movey); if (smoothx>smoothy) fp->smooth=smoothx; else fp->smooth=smoothy; fp->smoothx=smoothx; fp->smoothy=smoothy; fp->dataclip=dataclip; fp->x=x; fp->y=y; switch (type) { case PLOT_TYPE_DIAGONAL: case PLOT_TYPE_ARROW: case PLOT_TYPE_RECTANGLE: case PLOT_TYPE_RECTANGLE_FILL: case PLOT_TYPE_RECTANGLE_SOLID_FILL: fp->type=TYPE_DIAGONAL; break; case PLOT_TYPE_ERRORBAR_X: fp->type=TYPE_ERR_X; break; case PLOT_TYPE_ERRORBAR_Y: fp->type=TYPE_ERR_Y; break; default: fp->type=TYPE_NORMAL; break; } fp->hskip=hskip; fp->rstep=rstep; fp->final=final; fp->remark=remark; fp->ifs=ifs; check_ifs_init(fp); fp->csv=csv; fp->line=0; fp->datanum=0; fp->num=0; fp->dline=0; fp->count=0; fp->eof=FALSE; fp->axmin=ax_prm.min; fp->axmax=ax_prm.max; fp->axmin2=ax_prm.min2; fp->axmax2=ax_prm.max2; fp->axvx=ax_prm.vx; fp->axvy=ax_prm.vy; fp->axtype=ax_prm.type; fp->axposx=ax_prm.posx; fp->axposy=ax_prm.posy; fp->axlen=ax_prm.len; fp->aymin=ay_prm.min; fp->aymax=ay_prm.max; fp->aymin2=ay_prm.min2; fp->aymax2=ay_prm.max2; fp->ayvx=ay_prm.vx; fp->ayvy=ay_prm.vy; fp->aytype=ay_prm.type; fp->ayposx=ay_prm.posx; fp->ayposy=ay_prm.posy; fp->aylen=ay_prm.len; fp->ratex=ax_prm.rate; fp->ratey=ay_prm.rate; fp->interrupt = FALSE; for (i = 0; i < (int) (sizeof(fp->codex) / sizeof(*fp->codex)); i++) { fp->codex[i] = f2dlocal->codex[i]; } for (i = 0; i < (int) (sizeof(fp->codey) / sizeof(*fp->codey)); i++) { fp->codey[i] = f2dlocal->codey[i]; } fp->const_id = f2dlocal->const_id; switch (fp->type) { case TYPE_NORMAL: break; case TYPE_DIAGONAL: x++; y++; break; case TYPE_ERR_X: x+=2; break; case TYPE_ERR_Y: y+=2; break; } fp->maxdim=f2dlocal->maxdimx; if (fp->maxdimmaxdim=x; if (fp->maxdimmaxdimy) fp->maxdim=f2dlocal->maxdimy; if (fp->maxdimmaxdim=y; if (f2dlocal->need2passx || f2dlocal->need2passy) fp->need2pass=TRUE; else fp->need2pass=FALSE; fp->bg=bg; fp->color2=bg; fp->fnumx = 0; fp->needx = NULL; fp->fnumy = 0; fp->needy = NULL; fp->dx=fp->dy=fp->d2=fp->d3=0; fp->dxstat=fp->dystat=fp->d2stat=fp->d3stat=MATH_VALUE_UNDEF; fp->fg=fg; fp->color=fp->fg; fp->marksize0=marksize; fp->marksize=marksize; fp->marktype0=marktype; fp->marktype=marktype; fp->ignore=fp->negative=FALSE; arrayinit(&(fp->fileopen),sizeof(int)); if (!raw) { MathEquationParametar *prm; if (fp->codex[0] && fp->codex[0]->exp) { prm = math_equation_get_parameter(fp->codex[0], 'F', NULL); if (prm) { fp->fnumx = prm->id_num; fp->needx = prm->id; } } for (i = 0; i < fp->fnumx; i++) { id = fp->needx[i] / 1000; if (id == fp->id) { if (fp->maxdim < (fp->needx[i] % 1000)) { fp->maxdim = fp->needx[i] % 1000; } } else if (id <= chkobjlastinst(fp->obj)) { num2 = arraynum(&(fp->fileopen)); data2 = arraydata(&(fp->fileopen)); for (j = 0; j < num2; j++) { if (id == data2[j]) { break; } } if (j == num2) { inst1 = chkobjinst(fp->obj, id); if (inst1 && _exeobj(fp->obj, "opendata_raw", inst1, 0, NULL) == 0) { arrayadd(&fp->fileopen, &id); } } } } if (fp->codey[0] && fp->codey[0]->exp) { prm = math_equation_get_parameter(fp->codey[0], 'F', NULL); if (prm) { fp->fnumy = prm->id_num; fp->needy = prm->id; } } for (i = 0; i < fp->fnumy; i++) { id = fp->needy[i] / 1000; if (id == fp->id) { if (fp->maxdim < (fp->needy[i] % 1000)) { fp->maxdim = fp->needy[i] % 1000; } } else if (id <= chkobjlastinst(fp->obj)) { num2 = arraynum(&(fp->fileopen)); data2 = arraydata(&(fp->fileopen)); for (j = 0; j < num2; j++) { if (id == data2[j]) { break; } } if (j == num2) { inst1 = chkobjinst(fp->obj, id); if (inst1 && _exeobj(fp->obj, "opendata_raw", inst1, 0, NULL) == 0) { arrayadd(&fp->fileopen, &id); } } } } } return fp; } static void reopendata(struct f2ddata *fp) { fseek(fp->fd,0,SEEK_SET); fp->bufnum=0; fp->bufpo=0; fp->line=0; fp->prev_datanum = fp->datanum; fp->datanum=0; #if MASK_SERACH_METHOD == MASK_SERACH_METHOD_CONST fp->mask_index = 0; #endif fp->dline=0; fp->count=0; fp->eof=FALSE; fp->interrupt = FALSE; fp->ignore=fp->negative=FALSE; fp->dx=fp->dy=fp->d2=fp->d3=0; fp->dxstat=fp->dystat=fp->d2stat=fp->d3stat=MATH_VALUE_UNDEF; fp->color2=fp->bg; fp->color=fp->fg; fp->marksize=fp->marksize0; fp->marktype=fp->marktype0; } static void closedata(struct f2ddata *fp, struct f2dlocal *f2dlocal) { int j,num2,*data2; N_VALUE *inst1,*inst; if (fp==NULL) return; set_data_progress(fp); num2=arraynum(&(fp->fileopen)); data2=arraydata(&(fp->fileopen)); for (j=0;jobj,data2[j]))!=NULL) { _exeobj(fp->obj,"closedata_raw",inst1,0,NULL); } } arraydel(&(fp->fileopen)); fclose(fp->fd); if ((inst=chkobjinst(fp->obj,fp->id))!=NULL) _putobj(fp->obj,"data_num",inst,&(fp->datanum)); f2dlocal->num = fp->datanum; g_free(fp); } static char * create_func_def_str(const char *name, const char *code) { return g_strdup_printf("def %s(x,y,z) {%s;}", name, code); } static int set_user_fnc(MathEquation **eq, const char *str, const char *fname, char **err_msg) { int r, i; char *buf, default_func[] = "def f(x,y,z){0}"; // 01234 if (err_msg) *err_msg = NULL; for (i = 0; i < EQUATION_NUM; i++) { if (eq[i] == NULL) { return MATH_ERROR_MEMORY; } } default_func[4] = fname[0]; if (str) { buf = create_func_def_str(fname, str); if (buf == NULL) return MATH_ERROR_MEMORY; for (i = 0; i < EQUATION_NUM; i++) { r = math_equation_parse(eq[i], buf); if (r) { if (err_msg) { *err_msg = math_err_get_error_message(eq[i], buf, r); } g_free(buf); return r; } } g_free(buf); } else { for (i = 0; i < EQUATION_NUM; i++) { math_equation_parse(eq[i], default_func); } } return 0; } static int set_equation(struct f2dlocal *f2dlocal, MathEquation **eq, const char *f, const char *g, const char *h, const char *str, char **err_msg) { int i, rcode; if (err_msg) { *err_msg = NULL; } for (i = 0; i < EQUATION_NUM; i++) { if (eq[i]) { math_equation_free(eq[i]); } eq[i] = NULL; } for (i = 0; i < EQUATION_NUM; i++) { eq[i] = ofile_create_math_equation(f2dlocal->const_id, 3, TRUE, TRUE, TRUE, TRUE, TRUE); } for (i = 0; i < EQUATION_NUM; i++) { if (eq[i] == NULL) { return MATH_ERROR_MEMORY; } } if (f) { rcode = set_user_fnc(eq, f, "f", err_msg); if (rcode) return rcode; } if (g) { rcode = set_user_fnc(eq, g, "g", err_msg); if (rcode) return rcode; } if (h) { rcode = set_user_fnc(eq, h, "h", err_msg); if (rcode) return rcode; } if (str == NULL) return 0; for (i = 0; i < EQUATION_NUM; i++) { rcode = math_equation_parse(eq[i], str); if (rcode) { if (err_msg) { *err_msg = math_err_get_error_message(eq[i], str, rcode); } return rcode; } } return rcode; } static int put_func(struct objlist *obj, N_VALUE *inst, struct f2dlocal *f2dlocal, char *field, char *eq) { int rcode, type; char *x, *y, *f, *g, *h, *err_msg; type = field[5]; _getobj(obj, "math_x", inst, &x); _getobj(obj, "math_y", inst, &y); _getobj(obj, "func_f", inst, &f); _getobj(obj, "func_g", inst, &g); _getobj(obj, "func_h", inst, &h); switch (type) { case 'x': f2dlocal->need2passx = FALSE; rcode = set_equation(f2dlocal, f2dlocal->codex, f, g, h, eq, &err_msg); if (err_msg) { error22(obj, ERRUNKNOWN, field, err_msg); g_free(err_msg); set_equation(f2dlocal, f2dlocal->codex, f, g, h, x, NULL); } f2dlocal->need2passx = math_equation_check_const(f2dlocal->codex[0], f2dlocal->const_id, TWOPASS_CONST_SIZE); break; case 'y': f2dlocal->need2passy = FALSE; rcode = set_equation(f2dlocal, f2dlocal->codey, f, g, h, eq, &err_msg); if (err_msg) { error22(obj, ERRUNKNOWN, field, err_msg); g_free(err_msg); set_equation(f2dlocal, f2dlocal->codey, f, g, h, y, NULL); } f2dlocal->need2passy = math_equation_check_const(f2dlocal->codey[0], f2dlocal->const_id, TWOPASS_CONST_SIZE); break; case 'f': case 'g': case 'h': switch (type) { case 'f': rcode = set_equation(f2dlocal, f2dlocal->codex, eq, g, h, x, NULL); rcode = set_equation(f2dlocal, f2dlocal->codey, eq, g, h, y, &err_msg); break; case 'g': rcode = set_equation(f2dlocal, f2dlocal->codex, f, eq, h, x, NULL); rcode = set_equation(f2dlocal, f2dlocal->codey, f, eq, h, y, &err_msg); break; case 'h': rcode = set_equation(f2dlocal, f2dlocal->codex, f, g, eq, x, NULL); rcode = set_equation(f2dlocal, f2dlocal->codey, f, g, eq, y, &err_msg); break; default: /* never reached */ return 1; } if (err_msg) { error22(obj, ERRUNKNOWN, field, err_msg); g_free(err_msg); } if (rcode) { set_equation(f2dlocal, f2dlocal->codex, f, g, h, x, NULL); set_equation(f2dlocal, f2dlocal->codey, f, g, h, y, NULL); } f2dlocal->need2passx = math_equation_check_const(f2dlocal->codex[0], f2dlocal->const_id, TWOPASS_CONST_SIZE); f2dlocal->need2passy = math_equation_check_const(f2dlocal->codey[0], f2dlocal->const_id, TWOPASS_CONST_SIZE); break; default: /* never reached */ return 1; } return rcode; } static int f2dputmath(struct objlist *obj,N_VALUE *inst,char *field,char *math) { int rcode; struct f2dlocal *f2dlocal; _getobj(obj,"_local",inst,&f2dlocal); rcode = put_func(obj, inst, f2dlocal, field, math); if (rcode) { return 1; } if ((strcmp(field,"math_x")==0) || (strcmp(field,"math_y")==0)) { if (field[5]=='x') { f2dlocal->maxdimx = 0; if (f2dlocal->codex[0]) { MathEquationParametar *prm; prm = math_equation_get_parameter(f2dlocal->codex[0], 0, NULL); if (prm == NULL) return 1; f2dlocal->maxdimx = prm->id_max; } } else { f2dlocal->maxdimy = 0; if (f2dlocal->codey[0]) { MathEquationParametar *prm; prm = math_equation_get_parameter(f2dlocal->codey[0], 0, NULL); if (prm == NULL) return 1; f2dlocal->maxdimy = prm->id_max; } } } return 0; } static int set_math_config(struct objlist *obj, N_VALUE *inst, char *field, char *str) { char *f1; int len; f1 = getitok2(&str, &len, ""); if (f2dputmath(obj, inst, field, f1) == 0) { _putobj(obj, field, inst, f1); } else { g_free(f1); } return 0; } static int f2dloadconfig(struct objlist *obj,N_VALUE *inst) { return obj_load_config(obj, inst, F2DCONF, FileConfigHash); } static int f2dsaveconfig(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { return obj_save_config(obj, inst, F2DCONF, FileConfig, sizeof(FileConfig) / sizeof(*FileConfig)); } MathEquation * ofile_create_math_equation(int *id, int prm_digit, int use_fprm, int use_const, int usr_func, int use_fobj_func, int use_fit_func) { MathEquation *code; unsigned int i; int f_id; char *file_constant[MATH_CONST_SIZE] = { "NUM", "MINX", "MAXX", "MINY", "MAXY", "SUMX", "SUMY", "SUMXX", "SUMYY", "SUMXY", "AVX", "AVY", "SGX", "SGY", /* TWOPASS_CONST */ "MASK", "MOVE", "FIRST", "COLX", "COLY", "AXISX", "AXISY", "HSKIP", "RSTEP", "FLINE", "FILE_OBJ", "PATH_OBJ", "RECT_OBJ", "ARC_OBJ", "MARK_OBJ", "TEXT_OBJ", "%D", "%N", }; code = math_equation_basic_new(); if (code == NULL) return NULL; if (prm_digit > 0) { if (math_equation_add_parameter(code, 0, 1, prm_digit, MATH_EQUATION_PARAMETAR_USE_ID)) { math_equation_free(code); return NULL; } } if (use_fprm) { if (math_equation_add_parameter(code, 'F', 3, 5, MATH_EQUATION_PARAMETAR_USE_INDEX)) { math_equation_free(code); return NULL; } } if (math_equation_add_var(code, "X") != 0) { math_equation_free(code); return NULL; } if (math_equation_add_var(code, "Y") != 1) { math_equation_free(code); return NULL; } if (use_const) { for (i = 0; i < MATH_CONST_SIZE; i++) { f_id = math_equation_add_const(code, file_constant[i], NULL); if (f_id < 0) { math_equation_free(code); return NULL; } if (id) { id[i] = f_id; } } } if (usr_func) { math_equation_parse(code, "def f(x,y,z){0}"); math_equation_parse(code, "def g(x,y,z){0}"); math_equation_parse(code, "def h(x,y,z){0}"); } if (use_fobj_func) { add_file_func(code); } if (use_fit_func) { add_fit_func(code); } return code; } static int f2dinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x,y,rstep,final,msize,r2,g2,b2,a2,lwidth,miter; char *s1,*s2,*s3,*s4; struct f2dlocal *f2dlocal; int stat,minmaxstat,dataclip,num,ljoin; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; x=1; y=2; rstep=1; final=-1; msize=200; lwidth=40; r2=255; g2=255; b2=255; a2=255; miter=1000; num=0; stat=MATH_VALUE_MEOF; minmaxstat=MATH_VALUE_UNDEF; dataclip=TRUE; ljoin = JOIN_TYPE_BEVEL; if (_putobj(obj,"x",inst,&x)) return 1; if (_putobj(obj,"y",inst,&y)) return 1; if (_putobj(obj,"read_step",inst,&rstep)) return 1; if (_putobj(obj,"final_line",inst,&final)) return 1; if (_putobj(obj,"mark_size",inst,&msize)) return 1; if (_putobj(obj,"R2",inst,&r2)) return 1; if (_putobj(obj,"G2",inst,&g2)) return 1; if (_putobj(obj,"B2",inst,&b2)) return 1; if (_putobj(obj,"A2",inst,&a2)) return 1; if (_putobj(obj,"line_width",inst,&lwidth)) return 1; if (_putobj(obj,"line_miter_limit",inst,&miter)) return 1; if (_putobj(obj,"line_join",inst,&ljoin)) return 1; if (_putobj(obj,"data_num",inst,&num)) return 1; if (_putobj(obj,"stat_x",inst,&stat)) return 1; if (_putobj(obj,"stat_y",inst,&stat)) return 1; if (_putobj(obj,"stat_2",inst,&stat)) return 1; if (_putobj(obj,"stat_3",inst,&stat)) return 1; if (_putobj(obj,"stat_minx",inst,&minmaxstat)) return 1; if (_putobj(obj,"stat_maxx",inst,&minmaxstat)) return 1; if (_putobj(obj,"stat_miny",inst,&minmaxstat)) return 1; if (_putobj(obj,"stat_maxy",inst,&minmaxstat)) return 1; if (_putobj(obj,"data_clip",inst,&dataclip)) return 1; s1 = s2 = s3 = s4 = NULL; f2dlocal=NULL; s1 = g_strdup("#%'"); if (s1 == NULL) goto errexit; if (_putobj(obj, "remark", inst, s1)) goto errexit; s2 = g_strdup(" ,\t()"); if (s2 == NULL) goto errexit; if (_putobj(obj, "ifs", inst, s2)) goto errexit; s3 = g_strdup("axis:0"); if (s3 == NULL) goto errexit; if (_putobj(obj, "axis_x", inst, s3)) goto errexit; s4 = g_strdup("axis:1"); if (s4 == NULL) goto errexit; if (_putobj(obj, "axis_y", inst, s4)) goto errexit; f2dlocal=g_malloc(sizeof(struct f2dlocal)); if (f2dlocal == NULL) goto errexit; memset(f2dlocal, 0, sizeof(struct f2dlocal)); if (_putobj(obj,"_local",inst,f2dlocal)) goto errexit; f2dlocal->codex[0] = NULL; f2dlocal->codex[1] = NULL; f2dlocal->codex[2] = NULL; f2dlocal->codey[0] = NULL; f2dlocal->codey[1] = NULL; f2dlocal->codey[2] = NULL; f2dlocal->maxdimx=0; f2dlocal->maxdimy=0; f2dlocal->need2passx=FALSE; f2dlocal->need2passy=FALSE; f2dlocal->data=NULL; f2dlocal->idx=chkobjoffset(obj,"data_x"); f2dlocal->idy=chkobjoffset(obj,"data_y"); f2dlocal->id2=chkobjoffset(obj,"data_2"); f2dlocal->id3=chkobjoffset(obj,"data_3"); f2dlocal->icx=chkobjoffset(obj,"coord_x"); f2dlocal->icy=chkobjoffset(obj,"coord_y"); f2dlocal->ic2=chkobjoffset(obj,"coord_2"); f2dlocal->ic3=chkobjoffset(obj,"coord_3"); f2dlocal->isx=chkobjoffset(obj,"stat_x"); f2dlocal->isy=chkobjoffset(obj,"stat_y"); f2dlocal->is2=chkobjoffset(obj,"stat_2"); f2dlocal->is3=chkobjoffset(obj,"stat_3"); f2dlocal->iline=chkobjoffset(obj,"line"); f2dlocal->storefd=NULL; f2dlocal->endstore=FALSE; f2dlocal->sumx = 0; f2dlocal->sumy = 0; f2dlocal->sumxx = 0; f2dlocal->sumyy = 0; f2dlocal->sumxy = 0; f2dlocal->dminx = HUGE_VAL; f2dlocal->dmaxx = HUGE_VAL; f2dlocal->dminy = HUGE_VAL; f2dlocal->dmaxy = HUGE_VAL; f2dlocal->davx = HUGE_VAL; f2dlocal->davy = HUGE_VAL; f2dlocal->dsigx = HUGE_VAL; f2dlocal->dsigy = HUGE_VAL; f2dlocal->num = 0; f2dlocal->rcode = 0; f2dlocal->minx.val = 0; f2dlocal->maxx.val = 0; f2dlocal->miny.val = 0; f2dlocal->maxy.val = 0; f2dlocal->minx.type = MATH_VALUE_UNDEF; f2dlocal->maxx.type = MATH_VALUE_UNDEF; f2dlocal->miny.type = MATH_VALUE_UNDEF; f2dlocal->maxy.type = MATH_VALUE_UNDEF; f2dlocal->mtime = 0; f2dlocal->mtime_stat = 0; f2dlocal->total_line = 0; f2dloadconfig(obj,inst); return 0; errexit: g_free(s1); g_free(s2); g_free(s3); g_free(s4); g_free(f2dlocal); return 1; } static int f2ddone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct f2dlocal *f2dlocal; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"_local",inst,&f2dlocal); closedata(f2dlocal->data, f2dlocal); math_equation_free(f2dlocal->codex[0]); math_equation_free(f2dlocal->codex[1]); math_equation_free(f2dlocal->codex[2]); math_equation_free(f2dlocal->codey[0]); math_equation_free(f2dlocal->codey[1]); math_equation_free(f2dlocal->codey[2]); return 0; } static int f2dfile(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct objlist *sys; int ignorepath; char *file, *file2; int num2; struct f2dlocal *f2dlocal; _getobj(obj, "_local", inst, &f2dlocal); f2dlocal->mtime = 0; f2dlocal->mtime_stat = 0; sys=getobject("system"); getobj(sys, "ignore_path", 0, 0, NULL, &ignorepath); num2 = 0; _putobj(obj, "data_num", inst, &num2); if (argv[2] == NULL) { return 0; } file = get_utf8_filename(argv[2]); g_free(argv[2]); if (file == NULL) { argv[2] = NULL; return 1; } if (ignorepath) { file2 = getbasename(file); g_free(file); argv[2] = file2; } else { argv[2] = file; } return 0; } static int f2dbasename(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *file,*file2; g_free(rval->str); rval->str=NULL; _getobj(obj,"file",inst,&file); if (file==NULL) return 0; file2=getbasename(file); rval->str=file2; return 0; } static int f2dput(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *field; char *math; struct f2dlocal *f2dlocal; _getobj(obj,"_local",inst,&f2dlocal); f2dlocal->mtime = 0; f2dlocal->mtime_stat = 0; field=argv[1]; if (strcmp(field,"final_line")==0) { #if 0 if (*(int *)(argv[2])<-1) *(int *)(argv[2])=-1; #endif } else if ((strcmp(field,"x")==0) || (strcmp(field,"y")==0)) { if (*(int *)(argv[2])<0) *(int *)(argv[2])=0; else if (*(int *)(argv[2])>FILE_OBJ_MAXCOL) *(int *)(argv[2])=FILE_OBJ_MAXCOL; } else if ((strcmp(field,"math_x")==0) || (strcmp(field,"math_y")==0) || (strcmp(field,"func_f")==0) || (strcmp(field,"func_g")==0) || (strcmp(field,"func_h")==0)) { math=(char *)(argv[2]); return f2dputmath(obj,inst,field,math); } else if (strcmp(field,"ifs")==0) { if (strlen((char *)argv[2])==0) { error(obj,ERRIFS); return 1; } } else if ((strcmp(field,"smooth_x")==0) || (strcmp(field,"smooth_y")==0)) { if (*(int *)(argv[2])<0) *(int *)(argv[2])=0; else if (*(int *)(argv[2])>FILE_OBJ_SMOOTH_MAX) *(int *)(argv[2])=FILE_OBJ_SMOOTH_MAX; } return 0; } #define ACCEPT_PARTIAL_VAL 0 static double get_value_from_str(char *po, char *po2, int *type) { char *endptr; int st, ch; double val; if (po == po2) { *type = MATH_VALUE_NONUM; return 0; } ch = *po2; *po2 = '\0'; val = strtod(po, &endptr); *po2 = ch; if (endptr >= po2) { if (check_infinite(val)) { st = MATH_VALUE_NAN; } else { st = MATH_VALUE_NORMAL; } } else if (endptr != po) { if (g_ascii_isspace(*endptr)) { if (check_infinite(val)) { st = MATH_VALUE_NAN; } else { st = MATH_VALUE_NORMAL; } } else { st = MATH_VALUE_NONUM; } } else { char *top, *bottom; top = po; bottom = po2; for (; top < bottom; top++) { if (! g_ascii_isspace(*top)) { break; } } for (; top < bottom; bottom--) { if (! g_ascii_isspace(*(bottom - 1))) { break; } } switch (bottom - top) { case 1: switch (*top) { case '|': st = MATH_VALUE_CONT; break; case '=': st = MATH_VALUE_BREAK; break; default: st = MATH_VALUE_NONUM; } break; case 3: if (strncmp(top, "NAN", 3) == 0) { st = MATH_VALUE_NAN; } else { st = MATH_VALUE_NONUM; } break; case 4: if (strncmp(top, "CONT", 4) == 0) { st = MATH_VALUE_CONT; } else { st = MATH_VALUE_NONUM; } break; case 5: if (strncmp(top, "UNDEF", 5) == 0) { st = MATH_VALUE_UNDEF; } else if (strncmp(top, "BREAK", 5) == 0) { st = MATH_VALUE_BREAK; } else { st = MATH_VALUE_NONUM; } break; default: st = MATH_VALUE_NONUM; } } *type = st; return val; } static int getdataarray(char *buf, int maxdim, double *count, MathValue *data, const char *ifs, int csv) { /* return: 0 no error -1 fatal error 1 too small column */ char *po, *po2; int st; double val; int i; int dim, hex; (*count)++; dim=0; data[dim].val = *count; data[dim].type = MATH_VALUE_NORMAL; po=buf; while (*po!='\0') { hex = FALSE; if (dim>=maxdim) return 0; if (csv) { for (;(*po==' ');po++); if (*po=='\0') break; if (CHECK_IFS(ifs, *po)) { po2=po; po2++; val=0; st=MATH_VALUE_NONUM; } else { #if 0 for (po2=po;(*po2!='\0') && ! CHECK_IFS(ifs, *po2) && (*po2!=' ');po2++) *po2=toupper(*po2); for (i=0;ihskip) { if ((fp->line & UPDATE_PROGRESS_LINE_NUM) == 0 && set_data_progress(fp)) { return 0; } rcode=fgetline(fp->fd,&buf); if (rcode==-1) return -1; if (rcode==1) { fp->eof=TRUE; return 0; } g_free(buf); fp->line++; skip++; } return 0; } static int set_data_progress(struct f2ddata *fp) { char msgbuf[32]; double frac; if (fp->final > 0) { frac = 1.0 * fp->line / fp->final; } else if (fp->prev_datanum > 0) { if (fp->datanum <= fp->prev_datanum) { if (fp->line < fp->hskip) { frac = 1.0 * fp->line / (fp->prev_datanum + fp->hskip); } else { frac = 1.0 * (fp->datanum + fp->bufnum + fp->hskip) / (fp->prev_datanum + fp->hskip); } } else { frac = -1; } } else { frac = -1; } if (frac > 1) { frac = 1.0; } snprintf(msgbuf, sizeof(msgbuf), "id:%d (%d)", fp->id, fp->line); set_progress(0, msgbuf, frac); if (ninterrupt()) { fp->eof=TRUE; fp->interrupt = TRUE; return TRUE; } return FALSE; } static void getdata_get_other_files(struct f2ddata *fp, int fnumx, int fnumy, int *needx, int *needy, MathValue *datax, MathValue *datay, int filenum, int *openfile) { int *idata,inum,argc; char *argv[2]; int i,j,k; double *ddata; int colnum; N_VALUE *inst1; struct narray iarray; int id,col; struct narray *coldata; for (i = 0; i < filenum; i++) { id = openfile[i]; arrayinit(&iarray,sizeof(int)); for (j = 0; j < fnumx; j++) { if (needx[j] / 1000 == id) { col = needx[j] % 1000; arrayadd(&iarray, &col); } } for (j = 0; j < fnumy; j++) { if (needy[j] / 1000 == id) { col = needy[j] % 1000; arrayadd(&iarray, &col); } } inum = arraynum(&iarray); idata = arraydata(&iarray); argv[0] = (char *)&iarray; argv[1] = NULL; argc=1; if ((inst1 = chkobjinst(fp->obj, id)) && _exeobj(fp->obj, "getdata_raw", inst1, argc, argv) == 0) { _getobj(fp->obj,"getdata_raw", inst1, &coldata); colnum = arraynum(coldata); ddata = arraydata(coldata); if (colnum == inum * 2) { int n; for (j = 0; j < fnumx; j++) { if (needx[j] / 1000 == id) { n = needx[j] % 1000; for (k = 0; k < inum; k++) { if (idata[k] == n) { datax[j].val = ddata[k]; datax[j].type = nround(ddata[k + inum]); } } } } for (j = 0; j < fnumy; j++) { if (needy[j] / 1000 == id) { n = needy[j] % 1000; for (k = 0; k < inum; k++){ if (idata[k] == n) { datay[j].val = ddata[k]; datay[j].type = nround(ddata[k + inum]); } } } } } } arraydel(&iarray); } } static int getdata_skip_step(struct f2ddata *fp) { char *buf; int i, step, rcode; step = 1; while (step < fp->rstep) { if ((fp->line & UPDATE_PROGRESS_LINE_NUM) == 0 && set_data_progress(fp)) { return 1; } rcode = fgetline(fp->fd, &buf); if (rcode == 1) { fp->eof = TRUE; g_free(buf); break; } else if (rcode == -1) { g_free(buf); return -1; } fp->line++; for (i = 0; buf[i] != '\0' && CHECK_IFS(fp->ifs_buf, buf[i]); i++); if (buf[i] != '\0' && (fp->remark == NULL || ! CHECK_REMARK(fp->ifs_buf, buf[i]))) step++; g_free(buf); } return 0; } #if MASK_SERACH_METHOD == MASK_SERACH_METHOD_CONST static int search_mask(int *mask, int n, int *index, int line) { int i; i = *index; if (mask == NULL || i >= n) return FALSE; if (mask[i] < line) { for (; i < n; i++) { if (mask[i] >= line) break; } } if (i == n) { *index = n; return FALSE; } if (mask[i] > line) { *index = i; return FALSE; } else if (mask[i] < line) { *index = n; return FALSE; } *index = i + 1; return TRUE; } #endif static void set_var(MathEquation *eq, const MathValue *x, const MathValue *y) { math_equation_set_var(eq, 0, x); math_equation_set_var(eq, 1, y); } struct obj_name_const { char *obj_name; int const_id; }; static int set_const(MathEquation *eq, int *const_id, int need2pass, struct f2ddata *fp, int first) { struct obj_name_const obj_names[] = { {"file", MATH_CONST_FILE_OBJ}, {"path", MATH_CONST_PATH_OBJ}, {"rectangle", MATH_CONST_RECT_OBJ}, {"arc", MATH_CONST_ARC_OBJ}, {"mark", MATH_CONST_MARK_OBJ}, {"text", MATH_CONST_TEXT_OBJ}, }; MathValue val; int i; if (eq == NULL || eq->exp == NULL) return 0; math_equation_clear(eq); if (need2pass) { math_equation_set_const(eq, const_id[MATH_CONST_MINX], &fp->minx); math_equation_set_const(eq, const_id[MATH_CONST_MINY], &fp->miny); math_equation_set_const(eq, const_id[MATH_CONST_MAXX], &fp->maxx); math_equation_set_const(eq, const_id[MATH_CONST_MAXY], &fp->maxy); val.val = fp->num; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_NUM], &val); val.val = fp->sumx; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_SUMX], &val); val.val = fp->sumy; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_SUMY], &val); val.val = fp->sumxx; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_SUMXX], &val); val.val = fp->sumyy; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_SUMYY], &val); val.val = fp->sumxy; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_SUMXY], &val); if (fp->num > 0) { val.val = fp->sumx / fp->num; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_AVX], &val); val.val = fp->sumy / fp->num; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_AVY], &val); val.val = sqrt(fp->sumxx / fp->num - (fp->sumx / fp->num) * (fp->sumx / fp->num)); val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_SGX], &val); val.val = sqrt(fp->sumyy / fp->num - (fp->sumy / fp->num) * (fp->sumy / fp->num)); val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_SGY], &val); } } val.val = chkobjlastinst(fp->obj) + 1; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_N], &val); val.val = fp->id; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_D], &val); val.val = first; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_FIRST], &val); val.val = fp->x; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_COLX], &val); val.val = fp->y; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_COLY], &val); val.val = fp->axisx; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_AXISX], &val); val.val = fp->axisy; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_AXISY], &val); val.val = fp->masknum; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_MASK], &val); val.val = fp->movenum; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_MOVE], &val); val.val = fp->hskip; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_HSKIP], &val); val.val = fp->rstep; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_RSTEP], &val); getobj(fp->obj, "final_line", fp->id, 0, NULL, &i); val.val = i; val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[MATH_CONST_FLINE], &val); for (i = 0; i < (int) (sizeof(obj_names) / sizeof(*obj_names)); i++) { struct objlist *obj; obj = chkobject(obj_names[i].obj_name); if (obj == NULL) { continue; } val.val = chkobjectid(obj); val.type = MATH_VALUE_NORMAL; math_equation_set_const(eq, const_id[obj_names[i].const_id], &val); } return math_equation_optimize(eq); } static int set_const_all(struct f2ddata *fp) { int first_x1, first_y1; if (set_const(fp->codex[0], fp->const_id, fp->need2pass, fp, TRUE)) return 1; if (set_const(fp->codey[0], fp->const_id, fp->need2pass, fp, TRUE)) return 1; switch (fp->type) { case TYPE_NORMAL: first_x1 = FALSE; first_y1 = FALSE; break; case TYPE_DIAGONAL: first_x1 = FALSE; first_y1 = FALSE; break; case TYPE_ERR_X: first_x1 = TRUE; first_y1 = FALSE; break; case TYPE_ERR_Y: first_x1 = FALSE; first_y1 = TRUE; break; default: first_x1 = FALSE; first_y1 = FALSE; } if (set_const(fp->codex[1], fp->const_id, fp->need2pass, fp, first_x1)) return 1; if (set_const(fp->codex[2], fp->const_id, fp->need2pass, fp, FALSE)) return 1; if (set_const(fp->codey[1], fp->const_id, fp->need2pass, fp, first_y1)) return 1; if (set_const(fp->codey[2], fp->const_id, fp->need2pass, fp, FALSE)) return 1; return 0; } static int file_calculate(struct f2ddata *fp, MathEquation *eq, const MathValue *x, const MathValue *y, MathValue *prm, MathValue *fprm, MathValue *val) { if (eq == NULL || eq->exp == NULL) return 0; math_equation_set_parameter_data(eq, 0, prm); math_equation_set_parameter_data(eq, 'F', fprm); set_var(eq, x, y); math_equation_set_user_data(eq, fp); return math_equation_calculate(eq, val); } static int getdata_sub2(struct f2ddata *fp, int fnumx, int fnumy, int *needx, int *needy, MathValue *datax, MathValue *datay, MathValue *gdata, int filenum, int *openfile) { int i,j; int masked,moved,moven; struct f2ddata_buf *buf; MathValue dx, dy, dx2, dy2, dx3, dy3, d2, d3; #if MASK_SERACH_METHOD == MASK_SERACH_METHOD_LINER masked = FALSE; for (j = 0; j < fp->masknum; j++) { if (fp->mask[j] == fp->line) { masked = TRUE; break; } } #elif MASK_SERACH_METHOD == MASK_SERACH_METHOD_BINARY masked = bsearch_int(fp->mask, fp->masknum, fp->line, NULL); #else masked = search_mask(fp->mask, fp->masknum, &(fp->mask_index), fp->line); #endif moved = FALSE; if (! masked) { for (j = 0; j < fp->movenum; j++) { if (fp->move[j] == fp->line) { moved = TRUE; moven = j; break; } } for (i = 0; i < fnumx; i++) { if (needx[i] / 1000 == fp->id) { j = needx[i] % 1000; datax[i] = gdata[j]; } else { datax[i].val = 0; datax[i].type = MATH_VALUE_NONUM; } } for (i = 0; i < fnumy; i++) { if (needy[i] / 1000 == fp->id) { j = needy[i] % 1000; datay[i] = gdata[j]; } else { datay[i].val = 0; datay[i].type = MATH_VALUE_NONUM; } } if (filenum) { getdata_get_other_files(fp, fnumx, fnumy, needx, needy, datax, datay, filenum, openfile); } } d2.val = d3.val = 0; d2.type = d3.type = MATH_VALUE_UNDEF; dx = gdata[fp->x]; switch (fp->type) { case TYPE_DIAGONAL: dy = gdata[fp->x + 1]; break; default: dy = gdata[fp->y]; } dx2 = dx; dy2 = dy; if (fp->codex[0]) { file_calculate(fp, fp->codex[0], &dx2, &dy2, gdata, datax, &dx); } if (fp->codey[0]) { file_calculate(fp, fp->codey[0], &dx2, &dy2, gdata, datay, &dy); } switch (fp->type) { case TYPE_NORMAL: break; case TYPE_DIAGONAL: d2 = gdata[fp->y]; d3 = gdata[fp->y + 1]; dx2 = d2; dy2 = d3; dx3 = d2; dy3 = d3; if (fp->codex[1]) { file_calculate(fp, fp->codex[1], &dx2, &dy2, gdata, datax, &d2); } if (fp->codey[2]) { file_calculate(fp, fp->codey[2], &dx3, &dy3, gdata, datay, &d3); } break; case TYPE_ERR_X: d2.val = gdata[fp->x].val + gdata[fp->x + 1].val; if (gdata[fp->x].type < gdata[fp->x + 1].type) { d2.type = gdata[fp->x].type; } else { d2.type = gdata[fp->x + 1].type; } d3.val = gdata[fp->x].val + gdata[fp->x + 2].val; if (gdata[fp->x].type < gdata[fp->x + 2].type) { d3.type = gdata[fp->x].type; } else { d3.type = gdata[fp->x + 2].type; } dx2 = d2; dy2 = gdata[fp->y]; dx3 = d3; dy3 = gdata[fp->y]; if (fp->codex[1]) { file_calculate(fp, fp->codex[1], &dx2, &dy2, gdata, datax, &d2); } if (fp->codex[2]) { file_calculate(fp, fp->codex[2], &dx3, &dy3, gdata, datax, &d3); } break; case TYPE_ERR_Y: d2.val = gdata[fp->y].val + gdata[fp->y + 1].val; if (gdata[fp->y].type < gdata[fp->y + 1].type) { d2.type = gdata[fp->y].type; } else { d2.type = gdata[fp->y + 1].type; } d3.val = gdata[fp->y].val + gdata[fp->y + 2].val; if (gdata[fp->y].type < gdata[fp->y + 2].type) { d3.type = gdata[fp->y].type; } else { d3.type = gdata[fp->y + 2].type; } dx2 = gdata[fp->x]; dy2 = d2; dx3 = gdata[fp->x]; dy3 = d3; if (fp->codey[1]) { file_calculate(fp, fp->codey[1], &dx2, &dy2, gdata, datax, &d2); } if (fp->codey[2]) { file_calculate(fp, fp->codey[2], &dx3, &dy3, gdata, datax, &d3); } break; } if (masked) { dx.type = dy.type = d2.type = d3.type = MATH_VALUE_CONT; } if (moved) { dx.type = dy.type = d2.type = d3.type = MATH_VALUE_NORMAL; dx.val = fp->movex[moven]; dy.val = fp->movey[moven]; switch (fp->type) { case TYPE_ERR_X: d2 = dx; d3 = dx; break; case TYPE_ERR_Y: d2 = dy; d3 = dy; break; default: d2 = dx; d3 = dy; break; } } #if BUF_TYPE == USE_BUF_PTR buf = fp->buf_ptr[fp->bufnum]; #elif BUF_TYPE == USE_RING_BUF buf = &fp->buf[ring_buf_index(fp, fp->bufnum)]; #else buf = &fp->buf[fp->bufnum]; #endif buf->col = fp->color; buf->marksize = fp->marksize; buf->marktype = fp->marktype; buf->line = fp->line; buf->col2 = fp->color2; buf->dx = dx.val; buf->dy = dy.val; buf->d2 = d2.val; buf->d3 = d3.val; buf->dxstat = dx.type; buf->dystat = dy.type; buf->d2stat = d2.type; buf->d3stat = d3.type; fp->bufnum++; if (fp->rstep > 1) { return getdata_skip_step(fp); } return 0; } static int getdata_sub1(struct f2ddata *fp, int fnumx, int fnumy, int *needx, int *needy, MathValue *datax, MathValue *datay, MathValue *gdata, int filenum, int *openfile) { char *buf; int i, rcode; while (! fp->eof && fp->bufnum < DXBUFSIZE) { if (fp->final >= 0 && fp->line >= fp->final) { fp->eof=TRUE; break; } if ((fp->line & UPDATE_PROGRESS_LINE_NUM) == 0 && set_data_progress(fp)) { break; } rcode = fgetline(fp->fd,&buf); if (rcode == 1) { fp->eof=TRUE; break; } else if (rcode==-1) { return -1; } fp->line++; for (i = 0; buf[i] != '\0' && CHECK_IFS(fp->ifs_buf, buf[i]); i++); if (buf[i] == '\0' || (fp->remark && CHECK_REMARK(fp->ifs_buf, buf[i]))) { g_free(buf); } else { rcode = getdataarray(buf, fp->maxdim, &fp->count, gdata, fp->ifs_buf, fp->csv); g_free(buf); if (rcode==-1) { return -1; } if (getdata_sub2(fp, fnumx, fnumy, needx, needy, datax, datay, gdata, filenum, openfile)) { break; } } if ((fp->final>=0) && (fp->line>=fp->final)) fp->eof=TRUE; } return 0; } static int getdata(struct f2ddata *fp) /* return -1: fatal error 0: no error 1: EOF */ { int i,rcode; double sumx,sumy,sum2,sum3; int numx,numy,num2,num3,num,smx,smy,sm2,sm3; int filenum,*openfile,*needx,*needy; struct narray filedatax,filedatay; unsigned int fnumx,fnumy,j; struct f2ddata_buf *buf; #if BUF_TYPE == USE_RING_BUF int n; #endif MathValue *datax,*datay; static MathValue gdata[FILE_OBJ_MAXCOL + 3]; static MathValue math_value_zero = {0, 0}; fp->dx=fp->dy=fp->d2=fp->d3=0; fp->dxstat=fp->dystat=fp->d2stat=fp->d3stat=MATH_VALUE_UNDEF; filenum=arraynum(&(fp->fileopen)); openfile=arraydata(&(fp->fileopen)); fnumx = fp->fnumx; needx = fp->needx; arrayinit(&filedatax, sizeof(MathValue)); for (j = 0; j < fnumx; j++) { arrayadd(&filedatax, &math_value_zero); } if (arraynum(&filedatax) < fnumx) { fnumx = arraynum(&filedatax); } datax = arraydata(&filedatax); fnumy = fp->fnumy; needy = fp->needy; arrayinit(&filedatay, sizeof(MathValue)); for (j = 0; j < fnumy; j++) { arrayadd(&filedatay, &math_value_zero); } if (arraynum(&filedatay) < fnumy) { fnumy = arraynum(&filedatay); } datay = arraydata(&filedatay); rcode = getdata_sub1(fp, fnumx, fnumy, needx, needy, datax, datay, gdata, filenum, openfile); if (rcode) { return rcode; } arraydel(&filedatax); arraydel(&filedatay); if ((fp->bufnum==0) || (fp->bufpo>=fp->bufnum)) { fp->dx=fp->dy=fp->d2=fp->d3=0; fp->dxstat=fp->dystat=fp->d2stat=fp->d3stat=MATH_VALUE_MEOF; return 1; } switch (fp->type) { case TYPE_NORMAL: smx=fp->smoothx; smy=fp->smoothy; sm2=0; sm3=0; break; case TYPE_DIAGONAL: smx=fp->smoothx; smy=fp->smoothy; sm2=fp->smoothx; sm3=fp->smoothy; break; case TYPE_ERR_X: smx=fp->smoothx; smy=fp->smoothy; sm2=fp->smoothx; sm3=fp->smoothx; break; case TYPE_ERR_Y: smx=fp->smoothx; smy=fp->smoothy; sm2=fp->smoothy; sm3=fp->smoothy; break; default: /* never reached */ smx = 0; smy = 0; sm2 = 0; sm3 = 0; break; } sumx=sumy=sum2=sum3=0; numx=numy=num2=num3=0; if (fp->bufpo+fp->smooth>=fp->bufnum) num=fp->bufnum-1; else num=fp->bufpo+fp->smooth; #if BUF_TYPE == USE_BUF_PTR for (i = 0; i <= num; i++) { buf = fp->buf_ptr[i]; if (buf->dxstat == MATH_VALUE_NORMAL && i >= fp->bufpo - smx && i <= fp->bufpo + smx) { sumx += buf->dx; numx++; } if (buf->dystat == MATH_VALUE_NORMAL && i >= fp->bufpo - smy && i <= fp->bufpo + smy) { sumy += buf->dy; numy++; } if (buf->d2stat == MATH_VALUE_NORMAL && i >= fp->bufpo - sm2 && i <= fp->bufpo + sm2) { sum2 += buf->d2; num2++; } if (buf->d3stat == MATH_VALUE_NORMAL && i >= fp->bufpo - sm3 && i <= fp->bufpo + sm3) { sum3 += buf->d3; num3++; } } buf = fp->buf_ptr[fp->bufpo]; if (numx != 0) fp->dx = sumx / numx; fp->dxstat = buf->dxstat; if (numy != 0) fp->dy=sumy/numy; fp->dystat = buf->dystat; if (num2 != 0) fp->d2 = sum2/num2; fp->d2stat = buf->d2stat; if (num3 != 0) fp->d3 = sum3 / num3; fp->d3stat = buf->d3stat; fp->dline = buf->line; fp->col = buf->col; fp->col2 = buf->col2; fp->msize = buf->marksize; fp->mtype = buf->marktype; #elif BUF_TYPE == USE_RING_BUF for (i=0;i<=num;i++) { n = ring_buf_index(fp, i); if ((fp->buf[n].dxstat==MATH_VALUE_NORMAL) && (i>=fp->bufpo-smx) && (i<=fp->bufpo+smx)) { sumx+=fp->buf[n].dx; numx++; } if ((fp->buf[n].dystat==MATH_VALUE_NORMAL) && (i>=fp->bufpo-smy) && (i<=fp->bufpo+smy)) { sumy+=fp->buf[n].dy; numy++; } if ((fp->buf[n].d2stat==MATH_VALUE_NORMAL) && (i>=fp->bufpo-sm2) && (i<=fp->bufpo+sm2)) { sum2+=fp->buf[n].d2; num2++; } if ((fp->buf[n].d3stat==MATH_VALUE_NORMAL) && (i>=fp->bufpo-sm3) && (i<=fp->bufpo+sm3)) { sum3+=fp->buf[n].d3; num3++; } } n = ring_buf_index(fp, fp->bufpo); if (numx!=0) fp->dx=sumx/numx; fp->dxstat=fp->buf[n].dxstat; if (numy!=0) fp->dy=sumy/numy; fp->dystat=fp->buf[n].dystat; if (num2!=0) fp->d2=sum2/num2; fp->d2stat=fp->buf[n].d2stat; if (num3!=0) fp->d3=sum3/num3; fp->d3stat=fp->buf[n].d3stat; fp->dline=fp->buf[n].line; fp->col=fp->buf[n].col; fp->col2=fp->buf[n].col2; fp->msize=fp->buf[n].marksize; fp->mtype=fp->buf[n].marktype; #else /* BUF_TYPE */ for (i=0;i<=num;i++) { if ((fp->buf[i].dxstat==MATH_VALUE_NORMAL) && (i>=fp->bufpo-smx) && (i<=fp->bufpo+smx)) { sumx+=fp->buf[i].dx; numx++; } if ((fp->buf[i].dystat==MATH_VALUE_NORMAL) && (i>=fp->bufpo-smy) && (i<=fp->bufpo+smy)) { sumy+=fp->buf[i].dy; numy++; } if ((fp->buf[i].d2stat==MATH_VALUE_NORMAL) && (i>=fp->bufpo-sm2) && (i<=fp->bufpo+sm2)) { sum2+=fp->buf[i].d2; num2++; } if ((fp->buf[i].d3stat==MATH_VALUE_NORMAL) && (i>=fp->bufpo-sm3) && (i<=fp->bufpo+sm3)) { sum3+=fp->buf[i].d3; num3++; } } if (numx!=0) fp->dx=sumx/numx; fp->dxstat=fp->buf[fp->bufpo].dxstat; if (numy!=0) fp->dy=sumy/numy; fp->dystat=fp->buf[fp->bufpo].dystat; if (num2!=0) fp->d2=sum2/num2; fp->d2stat=fp->buf[fp->bufpo].d2stat; if (num3!=0) fp->d3=sum3/num3; fp->d3stat=fp->buf[fp->bufpo].d3stat; fp->dline=fp->buf[fp->bufpo].line; fp->col=fp->buf[fp->bufpo].col; fp->col2=fp->buf[fp->bufpo].col2; fp->msize=fp->buf[fp->bufpo].marksize; fp->mtype=fp->buf[fp->bufpo].marktype; #endif /* BUF_TYPE */ switch (fp->type) { case TYPE_NORMAL: if (fp->dxstat==MATH_VALUE_NORMAL && fp->dystat==MATH_VALUE_NORMAL) fp->datanum++; break; case TYPE_DIAGONAL: if (fp->dxstat==MATH_VALUE_NORMAL && fp->dystat==MATH_VALUE_NORMAL && fp->d2stat==MATH_VALUE_NORMAL && fp->d3stat==MATH_VALUE_NORMAL) fp->datanum++; break; case TYPE_ERR_X: if (fp->dystat==MATH_VALUE_NORMAL && fp->d2stat==MATH_VALUE_NORMAL && fp->d3stat==MATH_VALUE_NORMAL) fp->datanum++; break; case TYPE_ERR_Y: if (fp->dxstat==MATH_VALUE_NORMAL && fp->d2stat==MATH_VALUE_NORMAL && fp->d3stat==MATH_VALUE_NORMAL) fp->datanum++; break; } if (fp->bufposmooth) { fp->bufpo++; } else { #if BUF_TYPE == USE_BUF_PTR if (fp->bufnum > 0) { struct f2ddata_buf *tmp; fp->bufnum--; tmp = fp->buf_ptr[0]; #if USE_MEMMOVE memmove(fp->buf_ptr, fp->buf_ptr + 1, sizeof(*fp->buf_ptr) * fp->bufnum); #else for (i = 0; i < fp->bufnum; i++) { fp->buf_ptr[i] = fp->buf_ptr[i + 1]; } #endif fp->buf_ptr[fp->bufnum] = tmp; } #elif BUF_TYPE == USE_RING_BUF if (fp->bufnum > 0) { fp->bufnum--; fp->ringbuf_top = RING_BUF_INC(fp->ringbuf_top); } #else /* BUF_TYPE */ if (fp->bufnum > 0) { fp->bufnum--; #if USE_MEMMOVE memmove(fp->buf, fp->buf + 1, sizeof(*fp->buf) * fp->bufnum); #else for (i = 0; i < fp->bufnum; i++) { fp->buf[i] = fp->buf[i + 1]; } #endif } #endif /* BUF_TYPE */ } return 0; } static int getdata2(struct f2ddata *fp, MathEquation *code, int maxdim, double *dd, int *ddstat) /* return -1: fatal error 0: no error 1: EOF */ { char *buf; int i,step,rcode; MathValue val, gdata[FILE_OBJ_MAXCOL + 3], dx2, dy2; int masked; int find; *dd=0; *ddstat=MATH_VALUE_UNDEF; find=FALSE; while (!fp->eof && (!find)) { if ((fp->final>=0) && (fp->line>=fp->final)) { fp->eof=TRUE; break; } if ((rcode=fgetline(fp->fd,&buf))==1) { fp->eof=TRUE; break; } if (rcode==-1) { return -1; } fp->line++; for (i=0;(buf[i]!='\0') && CHECK_IFS(fp->ifs_buf, buf[i]); i++); if ((buf[i]!='\0') && ((fp->remark==NULL) || ! CHECK_REMARK(fp->ifs_buf, buf[i]))) { rcode = getdataarray(buf, maxdim, &fp->count, gdata, fp->ifs_buf, fp->csv); g_free(buf); #if MASK_SERACH_METHOD == MASK_SERACH_METHOD_LINER for (j=0;jmasknum;j++) if ((fp->mask)[j]==fp->line) break; if (j!=fp->masknum) masked=TRUE; else masked=FALSE; #elif MASK_SERACH_METHOD == MASK_SERACH_METHOD_BINARY masked = bsearch_int(fp->mask, fp->masknum, fp->line, NULL); #else masked = search_mask(fp->mask, fp->masknum, &(fp->mask_index), fp->line); #endif if (rcode==-1) { return -1; } *dd=0; *ddstat=MATH_VALUE_UNDEF; dx2 = gdata[fp->x]; dy2 = gdata[fp->y]; if (code && code->exp) { file_calculate(fp, code, &dx2, &dy2, gdata, NULL, &val); *dd = val.val; *ddstat = val.type; } if (masked) *ddstat=MATH_VALUE_CONT; find=TRUE; fp->dline=fp->line; step=1; while (steprstep) { if ((rcode=fgetline(fp->fd,&buf))==1) { fp->eof=TRUE; break; } if (rcode==-1) { return -1; } fp->line++; for (i=0;(buf[i]!='\0') && CHECK_IFS(fp->ifs_buf, buf[i]);i++); if ((buf[i]!='\0') && ((fp->remark==NULL) || ! CHECK_REMARK(fp->ifs_buf, buf[i]))) step++; g_free(buf); } } else g_free(buf); if ((fp->final>=0) && (fp->line>=fp->final)) fp->eof=TRUE; } if (!find) { *dd=0; *ddstat=MATH_VALUE_MEOF; return 1; } return 0; } static int getdataraw(struct f2ddata *fp, int maxdim, MathValue *data) /* return -1: fatal error 0: no error 1: EOF */ { char *buf; int i,rcode; int masked; double dx,dy,d2,d3; char dxstat,dystat,d2stat,d3stat; int datanum; fp->dx=fp->dy=fp->d2=fp->d3=0; fp->dxstat=fp->dystat=fp->d2stat=fp->d3stat=MATH_VALUE_UNDEF; datanum=0; while (!fp->eof && (datanum==0)) { if ((fp->final>=0) && (fp->line>=fp->final)) { fp->eof=TRUE; break; } if ((fp->line & UPDATE_PROGRESS_LINE_NUM) == 0 && set_data_progress(fp)) { break; } if ((rcode=fgetline(fp->fd,&buf))==1) { fp->eof=TRUE; break; } if (rcode==-1) return -1; fp->line++; for (i=0;(buf[i]!='\0') && CHECK_IFS(fp->ifs_buf, buf[i]); i++); if ((buf[i]!='\0') && ((fp->remark==NULL) || ! CHECK_REMARK(fp->ifs_buf, buf[i]))) { rcode = getdataarray(buf, maxdim, &fp->count, data, fp->ifs_buf, fp->csv); g_free(buf); #if MASK_SERACH_METHOD == MASK_SERACH_METHOD_LINER for (j=0;jmasknum;j++) if ((fp->mask)[j]==fp->line) break; if (j!=fp->masknum) masked=TRUE; else masked=FALSE; #elif MASK_SERACH_METHOD == MASK_SERACH_METHOD_BINARY masked = bsearch_int(fp->mask, fp->masknum, fp->line, NULL); #else masked = search_mask(fp->mask, fp->masknum, &(fp->mask_index), fp->line); #endif if (rcode==-1) return -1; dx=dy=d2=d3=0; dxstat=dystat=d2stat=d3stat=MATH_VALUE_UNDEF; dx = data[fp->x].val; dxstat = data[fp->x].type; switch (fp->type) { case TYPE_DIAGONAL: dy = data[fp->x + 1].val; dystat = data[fp->x + 1].type; break; default: dy = data[fp->y].val; dystat = data[fp->y].type; } switch (fp->type) { case TYPE_NORMAL: break; case TYPE_DIAGONAL: d2 = data[fp->y].val; d2stat = data[fp->y].type; d3 = data[fp->y + 1].val; d3stat = data[fp->y + 1].type; break; case TYPE_ERR_X: d2 = data[fp->x].val + data[fp->x + 1].val; if (data[fp->x].type < data[fp->x + 1].type) d2stat = data[fp->x].type; else d2stat = data[fp->x + 1].type; d3 = data[fp->x].val + data[fp->x + 2].val; if (data[fp->x].type < data[fp->x + 2].type) d3stat = data[fp->x].type; else d3stat = data[fp->x + 2].type; break; case TYPE_ERR_Y: d2 = data[fp->y].val + data[fp->y + 1].val; if (data[fp->y].type < data[fp->y + 1].type) d2stat = data[fp->y].type; else d2stat = data[fp->y + 1].type; d3 = data[fp->y].val + data[fp->y + 2].val; if (data[fp->y].type < data[fp->y + 2].type) d3stat = data[fp->y].type; else d3stat = data[fp->y + 2].type; break; } if (masked) { dxstat=dystat=d2stat=d3stat=MATH_VALUE_CONT; for (i=0;i<=maxdim;i++) data[i].type = MATH_VALUE_CONT; } fp->dx=dx; fp->dy=dy; fp->d2=d2; fp->d3=d3; fp->dxstat=dxstat; fp->dystat=dystat; fp->d2stat=d2stat; fp->d3stat=d3stat; fp->col=fp->color; fp->col2=fp->color2; datanum++; if (fp->rstep > 1 && getdata_skip_step(fp)) return -1; fp->datanum++; } else g_free(buf); if ((fp->final>=0) && (fp->line>=fp->final)) fp->eof=TRUE; } if (datanum==0) { fp->dx=fp->dy=fp->d2=fp->d3=0; fp->dxstat=fp->dystat=fp->d2stat=fp->d3stat=MATH_VALUE_MEOF; return 1; } return 0; } static void set_final_line(struct f2ddata *fp, struct f2dlocal *local) { if (fp->final < -1) { fp->final += local->total_line + 1; if (fp->final < 0) { fp->final = 0; } } } static int check_mtime(struct f2ddata *fp, struct f2dlocal *local) { if (local->mtime != fp->mtime) { return 1; } fp->datanum = local->num; fp->dx = fp->dy = fp->d2 = fp->d3=0; fp->dxstat = fp->dystat = fp->d2stat = fp->d3stat = MATH_VALUE_UNDEF; fp->dline = 0; fp->minx = local->minx; fp->maxx = local->maxx; fp->miny = local->miny; fp->maxy = local->maxy; fp->sumx = local->sumx; fp->sumy = local->sumy; fp->sumxx = local->sumxx; fp->sumyy = local->sumyy; fp->sumxy = local->sumxy; fp->num = local->num; if (local->rcode == -1) return -1; set_final_line(fp, local); return 0; } static int getminmaxdata(struct f2ddata *fp, struct f2dlocal *local) /* return -1: fatal error 0: no error */ { int rcode; MathValue gdata[FILE_OBJ_MAXCOL + 3]; if (check_mtime(fp, local) == 0) { return 0; } if (hskipdata(fp)!=0) { closedata(fp, local); return 1; } fp->minx.type = MATH_VALUE_UNDEF; fp->maxx.type = MATH_VALUE_UNDEF; fp->miny.type = MATH_VALUE_UNDEF; fp->maxy.type = MATH_VALUE_UNDEF; fp->sumx=0; fp->sumy=0; fp->sumxx=0; fp->sumyy=0; fp->sumxy=0; fp->num=0; while ((rcode = getdataraw(fp, fp->maxdim, gdata)) == 0) { switch (fp->type) { case TYPE_NORMAL: case TYPE_DIAGONAL: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL)) { if ((fp->minx.type == MATH_VALUE_UNDEF) || (fp->minx.val > fp->dx)) { fp->minx.val = fp->dx; } if ((fp->maxx.type == MATH_VALUE_UNDEF) || (fp->maxx.val < fp->dx)) { fp->maxx.val = fp->dx; } fp->minx.type = MATH_VALUE_NORMAL; fp->maxx.type = MATH_VALUE_NORMAL; if ((fp->miny.type == MATH_VALUE_UNDEF) || (fp->miny.val > fp->dy)) { fp->miny.val = fp->dy; } if ((fp->maxy.type == MATH_VALUE_UNDEF) || (fp->maxy.val < fp->dy)) { fp->maxy.val = fp->dy; } fp->miny.type = MATH_VALUE_NORMAL; fp->maxy.type = MATH_VALUE_NORMAL; fp->sumx += fp->dx; fp->sumxx += (fp->dx) * (fp->dx); fp->sumy += fp->dy; fp->sumyy += (fp->dy) * (fp->dy); fp->sumxy += (fp->dx) * (fp->dy); fp->num++; } if (fp->type == TYPE_NORMAL) break; if ((fp->d2stat == MATH_VALUE_NORMAL) && (fp->d3stat == MATH_VALUE_NORMAL)) { if ((fp->minx.type == MATH_VALUE_UNDEF) || (fp->minx.val > fp->d2)) { fp->minx.val = fp->d2; } if ((fp->maxx.type == MATH_VALUE_UNDEF) || (fp->maxx.val < fp->d2)) { fp->maxx.val = fp->d2; } fp->minx.type = MATH_VALUE_NORMAL; fp->maxx.type = MATH_VALUE_NORMAL; if ((fp->miny.type == MATH_VALUE_UNDEF) || (fp->miny.val > fp->d3)) { fp->miny.val = fp->d3; } if ((fp->maxy.type == MATH_VALUE_UNDEF) || (fp->maxy.val < fp->d3)) { fp->maxy.val = fp->d3; } fp->miny.type = MATH_VALUE_NORMAL; fp->maxy.type = MATH_VALUE_NORMAL; fp->sumx += fp->d2; fp->sumxx += (fp->d2) * (fp->d2); fp->sumy += fp->d3; fp->sumyy += (fp->d3) * (fp->d3); fp->sumxy += (fp->d2) * (fp->d3); fp->num++; } break; case TYPE_ERR_X: if ((fp->d2stat == MATH_VALUE_NORMAL) && (fp->d3stat == MATH_VALUE_NORMAL) && (fp->dystat == MATH_VALUE_NORMAL)) { if ((fp->minx.type == MATH_VALUE_UNDEF) || (fp->minx.val > fp->d2)) { fp->minx.val = fp->d2; } if ((fp->maxx.type == MATH_VALUE_UNDEF) || (fp->maxx.val < fp->d2)) { fp->maxx.val = fp->d2; } fp->minx.type = MATH_VALUE_NORMAL; fp->maxx.type = MATH_VALUE_NORMAL; if ((fp->minx.type == MATH_VALUE_UNDEF) || (fp->minx.val > fp->d3)) { fp->minx.val = fp->d3; } if ((fp->maxx.type == MATH_VALUE_UNDEF) || (fp->maxx.val < fp->d3)) { fp->maxx.val = fp->d3; } fp->minx.type=MATH_VALUE_NORMAL; fp->maxx.type=MATH_VALUE_NORMAL; if ((fp->miny.type == MATH_VALUE_UNDEF) || (fp->miny.val > fp->dy)) { fp->miny.val = fp->dy; } if ((fp->maxy.type == MATH_VALUE_UNDEF) || (fp->maxy.val < fp->dy)) { fp->maxy.val = fp->dy; } fp->miny.type = MATH_VALUE_NORMAL; fp->maxy.type = MATH_VALUE_NORMAL; fp->sumx += fp->d2; fp->sumxx += (fp->d2) * (fp->d2); fp->sumy += fp->dy; fp->sumyy += (fp->dy) * (fp->dy); fp->sumxy += (fp->d2) * (fp->dy); fp->num++; fp->sumx += fp->d3; fp->sumxx += (fp->d3) * (fp->d3); fp->sumy += fp->dy; fp->sumyy += (fp->dy) * (fp->dy); fp->sumxy += (fp->d3) * (fp->dy); fp->num++; } break; case TYPE_ERR_Y: if ((fp->d2stat == MATH_VALUE_NORMAL) && (fp->d3stat == MATH_VALUE_NORMAL) && (fp->dxstat == MATH_VALUE_NORMAL)) { if ((fp->miny.type == MATH_VALUE_UNDEF) || (fp->miny.val > fp->d2)) { fp->miny.val = fp->d2; } if ((fp->maxy.type == MATH_VALUE_UNDEF) || (fp->maxy.val < fp->d2)) { fp->maxy.val = fp->d2; } fp->miny.type = MATH_VALUE_NORMAL; fp->maxy.type = MATH_VALUE_NORMAL; if ((fp->miny.type == MATH_VALUE_UNDEF) || (fp->miny.val > fp->d3)) { fp->miny.val = fp->d3; } if ((fp->maxy.type == MATH_VALUE_UNDEF) || (fp->maxy.val < fp->d3)) { fp->maxy.val = fp->d3; } fp->miny.type = MATH_VALUE_NORMAL; fp->maxy.type = MATH_VALUE_NORMAL; if ((fp->minx.type == MATH_VALUE_UNDEF) || (fp->minx.val > fp->dx)) { fp->minx.val = fp->dx; } if ((fp->maxx.type == MATH_VALUE_UNDEF) || (fp->maxx.val < fp->dx)) { fp->maxx.val = fp->dx; } fp->minx.type = MATH_VALUE_NORMAL; fp->maxx.type = MATH_VALUE_NORMAL; fp->sumx += fp->dx; fp->sumxx += (fp->dx) * (fp->dx); fp->sumy += fp->d2; fp->sumyy += (fp->d2) * (fp->d2); fp->sumxy += (fp->dx) * (fp->d2); fp->num++; fp->sumx += fp->dx; fp->sumxx += (fp->dx) * (fp->dx); fp->sumy += fp->d3; fp->sumyy += (fp->d3) * (fp->d3); fp->sumxy += (fp->dx) * (fp->d3); fp->num++; } break; } } fp->dx=fp->dy=fp->d2=fp->d3=0; fp->dxstat=fp->dystat=fp->d2stat=fp->d3stat=MATH_VALUE_UNDEF; fp->dline=0; local->minx = fp->minx; local->maxx = fp->maxx; local->miny = fp->miny; local->maxy = fp->maxy; local->sumx = fp->sumx; local->sumy = fp->sumy; local->sumxx = fp->sumxx; local->sumyy = fp->sumyy; local->sumxy = fp->sumxy; local->num = fp->num; local->rcode = rcode; local->total_line = fp->line; if (rcode==-1) return -1; if (fp->interrupt == FALSE) local->mtime = fp->mtime; set_final_line(fp, local); return 0; } static int getposition(struct f2ddata *fp,double x,double y,int *gx,int *gy) /* return -1: unable to transform 0: normal 1: outside region */ { double minx,maxx,miny,maxy; double v1x,v1y,v2x,v2y,vx,vy; double a,b,c,d; *gx=*gy=0; minx=fp->axmin; maxx=fp->axmax; miny=fp->aymin; maxy=fp->aymax; if (fp->axtype == AXIS_TYPE_LOG) { if (x==0) { fp->ignore=TRUE; return -1; } else if (x<0) { fp->negative=TRUE; x=fabs(x); } x=log10(x); } else if (fp->axtype == AXIS_TYPE_INVERSE) { if (x==0) { fp->ignore=TRUE; return -1; } x=1/x; } if (fp->aytype == AXIS_TYPE_LOG) { if (y==0) { fp->ignore=TRUE; return -1; } else if (y<0) { fp->negative=TRUE; y=fabs(y); } y=log10(y); } else if (fp->aytype == AXIS_TYPE_INVERSE) { if (y==0) { fp->ignore=TRUE; return -1; } y=1/y; } if (fp->dataclip && ((((minx>x) || (x>maxx)) && ((maxx>x) || (x>minx))) || (((miny>y) || (y>maxy)) && ((maxy>y) || (y>miny))))) return 1; /* fix-me: this condition will be simplified as (fp->dataclip && (minx>x || x>maxx || miny>y || y>maxy)) */ v1x=fp->ratex*(x-minx)*fp->axvx; v1y=fp->ratex*(x-minx)*fp->axvy; v2x=fp->ratey*(y-miny)*fp->ayvx; v2y=fp->ratey*(y-miny)*fp->ayvy; vx=fp->ayposx-fp->axposx+v2x-v1x; vy=fp->ayposy-fp->axposy+v2y-v1y; a=fp->ayvy*fp->axvx-fp->ayvx*fp->axvy; c=-fp->ayvy*vx+fp->ayvx*vy; b=fp->axvy*fp->ayvx-fp->axvx*fp->ayvy; d=fp->axvy*vx-fp->axvx*vy; if ((fabs(a)<=1e-16) && (fabs(b)<=1e-16)) { fp->ignore=TRUE; return -1; } else if (fabs(b)<=1e-16) { a=c/a; *gx=fp->ayposx+nround(v2x+a*fp->axvx); *gy=fp->ayposy+nround(v2y+a*fp->axvy); } else { b=d/b; *gx=fp->axposx+nround(v1x+b*fp->ayvx); *gy=fp->axposy+nround(v1y+b*fp->ayvy); } return 0; } static int get_pos_sub(struct f2ddata *fp, double *val, int atype) { switch (atype) { case AXIS_TYPE_LOG: if (*val == 0) { fp->ignore = TRUE; return -1; } else if (*val < 0) { fp->negative = TRUE; *val = fabs(*val); } *val = log10(*val); break; case AXIS_TYPE_INVERSE: if (*val == 0) { fp->ignore = TRUE; return -1; } *val = 1 / *val; break; } return 0; } static int getposition2(struct f2ddata *fp,int axtype,int aytype,double *x,double *y) /* return -1: unable to transform 0: normal */ { int r; r = get_pos_sub(fp, x, axtype); if (r) { return -1; } r = get_pos_sub(fp, y, aytype); if (r) { return -1; } return 0; } static void f2dtransf(double x,double y,int *gx,int *gy,void *local) { struct f2ddata *fp; double minx,miny; double v1x,v1y,v2x,v2y,vx,vy; double a,b,c,d; fp=local; minx=fp->axmin; miny=fp->aymin; v1x=fp->ratex*(x-minx)*fp->axvx; v1y=fp->ratex*(x-minx)*fp->axvy; v2x=fp->ratey*(y-miny)*fp->ayvx; v2y=fp->ratey*(y-miny)*fp->ayvy; vx=fp->ayposx-fp->axposx+v2x-v1x; vy=fp->ayposy-fp->axposy+v2y-v1y; a=fp->ayvy*fp->axvx-fp->ayvx*fp->axvy; c=-fp->ayvy*vx+fp->ayvx*vy; b=fp->axvy*fp->ayvx-fp->axvx*fp->ayvy; d=fp->axvy*vx-fp->axvx*vy; if ((fabs(a)<=1e-16) && (fabs(b)<=1e-16)) { return; } else if (fabs(b)<=1e-16) { a=c/a; *gx=fp->ayposx+nround(v2x+a*fp->axvx); *gy=fp->ayposy+nround(v2y+a*fp->axvy); } else { b=d/b; *gx=fp->axposx+nround(v1x+b*fp->ayvx); *gy=fp->axposy+nround(v1y+b*fp->ayvy); } } static int f2dlineclipf(double *x0,double *y0,double *x1,double *y1,void *local) { double a,xl,yl,xg,yg; double minx,miny,maxx,maxy; struct f2ddata *fp; fp=local; if (!fp->dataclip) return 0; if (fp->axmin>fp->axmax) { minx=fp->axmax; maxx=fp->axmin; } else { minx=fp->axmin; maxx=fp->axmax; } if (fp->aymax>fp->aymin) { miny=fp->aymin; maxy=fp->aymax; } else { miny=fp->aymax; maxy=fp->aymin; } if (*x0<*x1) { xl=*x0; yl=*y0; xg=*x1; yg=*y1; } else { xl=*x1; yl=*y1; xg=*x0; yg=*y0; } if ((xgmaxx)) return 1; if (xg>maxx) { xg=maxx; yg=(*y1-*y0)*(maxx-*x0)/(*x1-*x0)+*y0; } if (xlyg) { a=yl; yl=yg; yg=a; a=xl; xl=xg; xg=a; } if ((ygmaxy)) return 1; if (yg>maxy) { yg=maxy; xg=(*x1-*x0)*(maxy-*y0)/(*y1-*y0)+*x0; } if (yldataclip) return 0; if (fp->axmin>fp->axmax) { minx=fp->axmax; maxx=fp->axmin; } else { minx=fp->axmin; maxx=fp->axmax; } if (fp->aymax>fp->aymin) { miny=fp->aymin; maxy=fp->aymax; } else { miny=fp->aymax; maxy=fp->aymin; } if (*x0<*x1) { xl=*x0; xg=*x1; } else { xl=*x1; xg=*x0; } if (*y0<*y1) { yl=*y0; yg=*y1; } else { yl=*y1; yg=*y0; } if ((xgmaxx)) return 1; if ((ygmaxy)) return 1; if ((xg>maxx) && (xlmaxy) && (ylmaxx) xg=maxx; if (xlmaxy) yg=maxy; if (ylratex; (*dy)*=fp->ratey; (*ddx)*=fp->ratex; (*ddy)*=fp->ratey; } static void f2dbsplinedif(double d,double c[], double *dx,double *dy,double *ddx,double *ddy,void *local) { struct f2ddata *fp; fp=local; bsplinedif(d,c,dx,dy,ddx,ddy,NULL); (*dx)*=fp->ratex; (*dy)*=fp->ratey; (*ddx)*=fp->ratex; (*ddy)*=fp->ratey; } static void f2derror(struct objlist *obj,struct f2ddata *fp,int code,char *s) { char buf[256]; sprintf(buf,"#%d: %s (%d:%s)",fp->id,fp->file,fp->dline,s); error2(obj,code,buf); } static void errordisp(struct objlist *obj, struct f2ddata *fp, int *emerr,int *emnonum,int *emig,int *emng) { int x,y; char *s; if (!*emerr) { x=FALSE; y=FALSE; if ((fp->dxstat==MATH_VALUE_ERROR) || (fp->dxstat==MATH_VALUE_NAN)) x=TRUE; if ((fp->dystat==MATH_VALUE_ERROR) || (fp->dystat==MATH_VALUE_NAN)) y=TRUE; switch (fp->type) { case TYPE_NORMAL: break; case TYPE_DIAGONAL: if ((fp->d2stat==MATH_VALUE_ERROR) || (fp->d2stat==MATH_VALUE_NAN)) x=TRUE; if ((fp->d3stat==MATH_VALUE_ERROR) || (fp->d3stat==MATH_VALUE_NAN)) y=TRUE; break; case TYPE_ERR_X: if ((fp->d2stat==MATH_VALUE_ERROR) || (fp->d2stat==MATH_VALUE_NAN)) x=TRUE; if ((fp->d3stat==MATH_VALUE_ERROR) || (fp->d3stat==MATH_VALUE_NAN)) x=TRUE; break; case TYPE_ERR_Y: if ((fp->d2stat==MATH_VALUE_ERROR) || (fp->d2stat==MATH_VALUE_NAN)) y=TRUE; if ((fp->d3stat==MATH_VALUE_ERROR) || (fp->d3stat==MATH_VALUE_NAN)) y=TRUE; break; } if (x || y) { if (x && (!y)) s="x"; else if ((!x) && y) s="y"; else s="xy"; f2derror(obj,fp,ERRMERR,s); *emerr=TRUE; } } if (!*emnonum) { x=FALSE; y=FALSE; if (fp->dxstat==MATH_VALUE_NONUM) x=TRUE; if (fp->dystat==MATH_VALUE_NONUM) y=TRUE; switch (fp->type) { case TYPE_NORMAL: break; case TYPE_DIAGONAL: if (fp->d2stat==MATH_VALUE_NONUM) x=TRUE; if (fp->d3stat==MATH_VALUE_NONUM) y=TRUE; break; case TYPE_ERR_X: if (fp->d2stat==MATH_VALUE_NONUM) x=TRUE; if (fp->d3stat==MATH_VALUE_NONUM) x=TRUE; break; case TYPE_ERR_Y: if (fp->d2stat==MATH_VALUE_NONUM) y=TRUE; if (fp->d3stat==MATH_VALUE_NONUM) y=TRUE; break; } if (x || y) { if (x && (!y)) s="x"; else if ((!x) && y) s="y"; else s="xy"; f2derror(obj,fp,ERRMNONUM,s); *emnonum=TRUE; } } if (!*emig && fp->ignore) { error(obj,ERRIGNORE); *emig=TRUE; } if (!*emng && fp->negative) { error(obj,ERRNEGATIVE); *emng=TRUE; } } static void errordisp2(struct objlist *obj, struct f2ddata *fp, int *emerr,int *emnonum,int *emig,int *emng, char ddstat,char *s) { if (!*emerr && (ddstat==MATH_VALUE_ERROR)) { f2derror(obj,fp,ERRMERR,s); *emerr=TRUE; } if (!*emerr && (ddstat==MATH_VALUE_NAN)) { f2derror(obj,fp,ERRMERR,s); *emerr=TRUE; } if (!*emnonum && (ddstat==MATH_VALUE_NONUM)) { f2derror(obj,fp,ERRMNONUM,s); *emnonum=TRUE; } if (!*emig && fp->ignore) { error(obj,ERRIGNORE); *emig=TRUE; } if (!*emng && fp->negative) { error(obj,ERRNEGATIVE); *emng=TRUE; } } #define SPBUFFERSZ 1024 static double * dataadd(double dx,double dy,double dz, int fr,int fg,int fb,int fa, int *size, double **x,double **y,double **z, int **r,int **g,int **b, int **a, double **c1,double **c2,double **c3, double **c4,double **c5,double **c6) { double *xb,*yb,*zb,*c1b,*c2b,*c3b,*c4b,*c5b,*c6b; int *rb,*gb,*bb,*ab; int bz; if (*size==0) { if (((*x=g_malloc(sizeof(double)*SPBUFFERSZ))==NULL) || ((*y=g_malloc(sizeof(double)*SPBUFFERSZ))==NULL) || ((*z=g_malloc(sizeof(double)*SPBUFFERSZ))==NULL) || ((*r=g_malloc(sizeof(int)*SPBUFFERSZ))==NULL) || ((*g=g_malloc(sizeof(int)*SPBUFFERSZ))==NULL) || ((*b=g_malloc(sizeof(int)*SPBUFFERSZ))==NULL) || ((*a=g_malloc(sizeof(int)*SPBUFFERSZ))==NULL) || ((*c1=g_malloc(sizeof(double)*SPBUFFERSZ))==NULL) || ((*c2=g_malloc(sizeof(double)*SPBUFFERSZ))==NULL) || ((*c3=g_malloc(sizeof(double)*SPBUFFERSZ))==NULL) || ((*c4=g_malloc(sizeof(double)*SPBUFFERSZ))==NULL) || ((*c5=g_malloc(sizeof(double)*SPBUFFERSZ))==NULL) || ((*c6=g_malloc(sizeof(double)*SPBUFFERSZ))==NULL)) { g_free(*x); g_free(*y); g_free(*z); g_free(*r); g_free(*g); g_free(*b); g_free(*a); g_free(*c1); g_free(*c2); g_free(*c3); g_free(*c4); g_free(*c5); g_free(*c6); return NULL; } } else if ((*size%SPBUFFERSZ)==0) { bz=*size/SPBUFFERSZ+1; if (((xb=g_realloc(*x,sizeof(double)*SPBUFFERSZ*bz))==NULL) || ((yb=g_realloc(*y,sizeof(double)*SPBUFFERSZ*bz))==NULL) || ((zb=g_realloc(*z,sizeof(double)*SPBUFFERSZ*bz))==NULL) || ((rb=g_realloc(*r,sizeof(int)*SPBUFFERSZ*bz))==NULL) || ((gb=g_realloc(*g,sizeof(int)*SPBUFFERSZ*bz))==NULL) || ((bb=g_realloc(*b,sizeof(int)*SPBUFFERSZ*bz))==NULL) || ((ab=g_realloc(*b,sizeof(int)*SPBUFFERSZ*bz))==NULL) || ((c1b=g_realloc(*c1,sizeof(double)*SPBUFFERSZ*bz))==NULL) || ((c2b=g_realloc(*c2,sizeof(double)*SPBUFFERSZ*bz))==NULL) || ((c3b=g_realloc(*c3,sizeof(double)*SPBUFFERSZ*bz))==NULL) || ((c4b=g_realloc(*c4,sizeof(double)*SPBUFFERSZ*bz))==NULL) || ((c5b=g_realloc(*c5,sizeof(double)*SPBUFFERSZ*bz))==NULL) || ((c6b=g_realloc(*c6,sizeof(double)*SPBUFFERSZ*bz))==NULL)) { g_free(*x); g_free(*y); g_free(*z); g_free(*r); g_free(*g); g_free(*b); g_free(*a); g_free(*c1); g_free(*c2); g_free(*c3); g_free(*c4); g_free(*c5); g_free(*c6); return NULL; } else { *x=xb; *y=yb; *z=zb; *r=rb; *g=gb; *b=bb; *a=ab; *c1=c1b; *c2=c2b; *c3=c3b; *c4=c4b; *c5=c5b; *c6=c6b; } } (*x)[*size]=dx; (*y)[*size]=dy; (*z)[*size]=dz; (*r)[*size]=fr; (*g)[*size]=fg; (*b)[*size]=fb; (*a)[*size]=fa; (*size)++; return *x; } static int markout(struct objlist *obj,struct f2ddata *fp,int GC, int width,int snum,int *style) { int emerr,emnonum,emig,emng; int gx,gy; emerr=emnonum=emig=emng=FALSE; GRAlinestyle(GC,snum,style,width,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); while (getdata(fp)==0) { if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (getposition(fp,fp->dx,fp->dy,&gx,&gy)==0)) { if (fp->msize>0) GRAmark(GC,fp->mtype, gx, gy, fp->msize, fp->col.r, fp->col.g, fp->col.b, fp->col.a, fp->col2.r, fp->col2.g, fp->col2.b, fp->col2.a); } else errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); return 0; } static int lineout(struct objlist *obj,struct f2ddata *fp,int GC, int width,int snum,int *style, int join,int miter,int close) { int emerr,emnonum,emig,emng; int first; double x0,y0; emerr=emnonum=emig=emng=FALSE; #if EXPAND_DOTTED_LINE GRAlinestyle(GC,0,NULL,width,GRA_LINE_CAP_BUTT,join,miter); #else GRAlinestyle(GC, snum, style, width, GRA_LINE_CAP_BUTT, join, miter); #endif first=TRUE; while (getdata(fp)==0) { GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0)) { if (first) { GRAcurvefirst(GC,snum,style,f2dlineclipf,f2dtransf,NULL,NULL,fp, fp->dx,fp->dy); first=FALSE; x0=fp->dx; y0=fp->dy; } else { GRAdashlinetod(GC,fp->dx,fp->dy); } } else { if ((fp->dxstat!=MATH_VALUE_CONT) && (fp->dystat!=MATH_VALUE_CONT)) { if (! first && close) { GRAdashlinetod(GC,x0,y0); } first=TRUE; } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } } if (!first && close) GRAdashlinetod(GC,x0,y0); errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); return 0; } static void poly_add_point(struct narray *pos, double x, double y, struct f2ddata *fp) { int gx, gy; f2dtransf(x, y, &gx, &gy, fp); arrayadd(pos, &gx); arrayadd(pos, &gy); } static void poly_add_clip_point(struct narray *pos, double minx, double miny, double maxx, double maxy, double x, double y, struct f2ddata *fp) { if (x < minx) { x = minx; } else if (x > maxx) { x = maxx; } if (y < miny) { y = miny; } else if (y > maxy) { y = maxy; } poly_add_point(pos, x, y, fp); } struct point_pos { double x, y, d; }; static int poly_pos_sort_cb(const void *a, const void *b) { const struct point_pos *p1, *p2; double d; int r; p1 = a; p2 = b; d = p1->d - p2->d; if (d < 0) { r = -1; } else if (d > 0) { r = 1; } else { r = 0; } return r; } static void poly_set_pos(struct point_pos *p, int i, double x, double y, double x0, double y0) { p[i].x = x; p[i].y = y; x -= x0; y -= y0; p[i].d = x * x + y * y; } static int poly_add_elements(struct narray *pos, double minx, double miny, double maxx, double maxy, double x0, double y0, double x1, double y1, struct f2ddata *fp) { double x, y, v0, v1, a, b, ba; struct point_pos cpos[4]; int i; if (x0 == x1 && y0 == y1) { return 1; } if (x0 >= minx && x0 <= maxx && y0 >= miny && y0 <= maxy) { poly_add_clip_point(pos, minx, miny, maxx, maxy, x0, y0, fp); } if (x0 == x1) { if ((y0 < miny && y1 < miny) || (y0 > maxy && y1 > maxy)) { return 1; } if (y0 > y1) { if (y0 > maxy) { poly_add_clip_point(pos, minx, miny, maxx, maxy, x0, maxy, fp); } if (y1 < miny) { poly_add_clip_point(pos, minx, miny, maxx, maxy, x0, miny, fp); } } else { if (y0 < miny) { poly_add_clip_point(pos, minx, miny, maxx, maxy, x0, miny, fp); } if (y1 > maxy) { poly_add_clip_point(pos, minx, miny, maxx, maxy, x0, maxy, fp); } } goto End; } else if (y0 == y1) { if ((x0 < minx && x1 < minx) || (x0 > maxx && x1 > maxx)){ return 1; } if (x0 > x1) { if (x0 > maxx) { poly_add_clip_point(pos, minx, miny, maxx, maxy, maxx, y0, fp); } if (x1 < minx) { poly_add_clip_point(pos, minx, miny, maxx, maxy, minx, y0, fp); } } else { if (x0 < minx) { poly_add_clip_point(pos, minx, miny, maxx, maxy, minx, y0, fp); } if (x1 > maxx) { poly_add_clip_point(pos, minx, miny, maxx, maxy, maxx, y0, fp); } } goto End; } a = (y1 - y0) / (x1 - x0); b = (x1 * y0 - x0 * y1) / (x1 - x0); ba = (x1 * y0 - x0 * y1) / (y1 - y0); cpos[0].d = -1; cpos[1].d = -1; cpos[2].d = -1; cpos[3].d = -1; v0 = a * x0 + b; v1 = a * x1 + b; x = maxx; y = a * maxx + b; if (((x >= x0 && x <= x1) || (x >= x1 && x <= x0)) && ((y >= v0 && y <= v1) || (y >= v1 && y <= v0))) { poly_set_pos(cpos, 0, x, y, x0, y0); } x = minx; y = a * minx + b; if (((x >= x0 && x <= x1) || (x >= x1 && x <= x0)) && ((y >= v0 && y <= v1) || (y >= v1 && y <= v0))) { poly_set_pos(cpos, 1, x, y, x0, y0); } v0 = y0 / a - ba; v1 = y1 / a - ba; x = maxy / a - ba; y = maxy; if (((x >= v0 && x <= v1) || (x >= v1 && x <= v0)) && ((y >= y0 && y <= y1) || (y >= y1 && y <= y0))) { poly_set_pos(cpos, 2, x, y, x0, y0); } x = miny / a - ba; y = miny; if (((x >= v0 && x <= v1) || (x >= v1 && x <= v0)) && ((y >= y0 && y <= y1) || (y >= y1 && y <= y0))) { poly_set_pos(cpos, 3, x, y, x0, y0); } qsort(cpos, 4, sizeof(*cpos), poly_pos_sort_cb); for (i = 0; i < 4; i++) { if (cpos[i].d >= 0) { poly_add_clip_point(pos, minx, miny, maxx, maxy, cpos[i].x, cpos[i].y, fp); } } End: if (x1 >= minx && x1 <= maxx && y1 >= miny && y1 <= maxy) { poly_add_clip_point(pos, minx, miny, maxx, maxy, x1, y1, fp); } return 0; } static void add_polygon_point(struct narray *pos, double x0, double y0, double x1, double y1, struct f2ddata *fp) { double minx, miny, maxx, maxy; if (! fp->dataclip) { poly_add_point(pos, x0, y0, fp); poly_add_point(pos, x1, y1, fp); return; } if (fp->axmin > fp->axmax) { minx = fp->axmax; maxx = fp->axmin; } else { minx = fp->axmin; maxx = fp->axmax; } if (fp->aymax > fp->aymin) { miny = fp->aymin; maxy = fp->aymax; } else { miny = fp->aymax; maxy = fp->aymin; } poly_add_elements(pos, minx, miny, maxx, maxy, x0, y0, x1, y1, fp); } static void uniq_points(struct narray *pos) { int n, i, x0, y0, x1, y1; n = arraynum(pos) / 2 - 1; if (n < 2) { return; } for (i = n; i > 0; i--) { x0 = arraynget_int(pos, i * 2 - 2); y0 = arraynget_int(pos, i * 2 - 1); x1 = arraynget_int(pos, i * 2); y1 = arraynget_int(pos, i * 2 + 1); if (x0 == x1 && y0 == y1) { arrayndel(pos, i * 2 + 1); arrayndel(pos, i * 2); } } n = arraynum(pos) / 2 - 1; if (n < 2) { return; } x0 = arraynget_int(pos, 0); y0 = arraynget_int(pos, 1); x1 = arraynget_int(pos, n * 2); y1 = arraynget_int(pos, n * 2 + 1); if (x0 == x1 && y0 == y1) { arrayndel(pos, n * 2 + 1); arrayndel(pos, n * 2); } } static void draw_polygon(struct narray *pos, int GC) { int n, *ap; uniq_points(pos); ap = (int *) arraydata(pos); n = arraynum(pos); if (n > 4) { GRAdrawpoly(GC, n / 2, ap, GRA_FILL_MODE_WINDING); } #if 0 /* for debug */ int i; for (i = 0; i < n / 2; i++) { char buf[256]; GRAmark(GC, 0, ap[i * 2], ap[i * 2 + 1], 200, 0, 0, 0, 255, 0, 0, 0, 255); GRAcolor(GC, 0, 0, 0, 255); sprintf(buf, "%d/%d", i + 1, n / 2); GRAmoveto(GC, ap[i * 2], ap[i * 2 + 1] - i * 500); GRAdrawtext(GC, buf, "Serif", 0, 2000, 0, 0, 7000); } #endif arraydel(pos); } static int polyout(struct objlist *obj, struct f2ddata *fp, int GC) { int emerr, emnonum, emig, emng; int first; struct narray pos; double x0, y0, x1, y1, x2, y2; arrayinit(&pos, sizeof(int)); emerr = emnonum = emig = emng = FALSE; first = TRUE; while (getdata(fp) == 0) { GRAcolor(GC, fp->col.r, fp->col.g, fp->col.b, fp->col.a); if (fp->dxstat == MATH_VALUE_NORMAL && fp->dystat == MATH_VALUE_NORMAL) { if (first) { first = FALSE; x0 = fp->dx; y0 = fp->dy; x2 = fp->dx; y2 = fp->dy; } else { x1 = x2; y1 = y2; x2 = fp->dx; y2 = fp->dy; add_polygon_point(&pos, x1, y1, x2, y2, fp); } } else { if (fp->dxstat != MATH_VALUE_CONT && fp->dystat != MATH_VALUE_CONT) { if (! first) { add_polygon_point(&pos, x2, y2, x0, y0, fp); } draw_polygon(&pos, GC); first = TRUE; } errordisp(obj, fp, &emerr, &emnonum, &emig, &emng); } } if (! first) { add_polygon_point(&pos, x2, y2, x0, y0, fp); } draw_polygon(&pos, GC); errordisp(obj, fp, &emerr, &emnonum, &emig, &emng); return 0; } #define FREE_INTP_BUF() \ g_free(x); g_free(y); g_free(z); \ g_free(r); g_free(g); g_free(b); g_free(a); \ g_free(c1); g_free(c2); g_free(c3); \ g_free(c4); g_free(c5); g_free(c6); static int curveout(struct objlist *obj,struct f2ddata *fp,int GC, int width,int snum,int *style, int join,int miter,int intp) { int emerr,emnonum,emig,emng; int j,num; int first; double *x,*y,*z,*c1,*c2,*c3,*c4,*c5,*c6,count; int *r,*g,*b,*a; double c[8]; double bs1[7],bs2[7],bs3[4],bs4[4]; int bsr[7],bsg[7],bsb[7],bsa[7],bsr2[4],bsg2[4],bsb2[4],bsa2[4]; int spcond; emerr=emnonum=emig=emng=FALSE; #if EXPAND_DOTTED_LINE GRAlinestyle(GC,0,NULL,width,GRA_LINE_CAP_BUTT,join,miter); #else GRAlinestyle(GC, snum, style, width, GRA_LINE_CAP_BUTT, join, miter); #endif switch (intp) { case INTERPOLATION_TYPE_SPLINE: case INTERPOLATION_TYPE_SPLINE_CLOSE: num=0; count=0; x=y=z=c1=c2=c3=c4=c5=c6=NULL; r=g=b=a=NULL; while (getdata(fp)==0) { if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0)) { if (dataadd(fp->dx,fp->dy,count,fp->col.r,fp->col.g,fp->col.b,fp->col.a,&num, &x,&y,&z,&r,&g,&b,&a,&c1,&c2,&c3,&c4,&c5,&c6)==NULL) return -1; count++; } else { if ((fp->dxstat!=MATH_VALUE_CONT) && (fp->dystat!=MATH_VALUE_CONT)) { if (num>=2) { if (intp==INTERPOLATION_TYPE_SPLINE) { spcond=SPLCND2NDDIF; } else { spcond=SPLCNDPERIODIC; if ((x[num-1]!=x[0]) || (y[num-1]!=y[0])) { if (dataadd(x[0],y[0],count,r[0],g[0],b[0],a[0],&num, &x,&y,&z,&r,&g,&b,&a,&c1,&c2,&c3,&c4,&c5,&c6)==NULL) return -1; } } if (spline(z,x,c1,c2,c3,num,spcond,spcond,0,0) || spline(z,y,c4,c5,c6,num,spcond,spcond,0,0)) { FREE_INTP_BUF(); error(obj,ERRSPL); return -1; } GRAcurvefirst(GC,snum,style,f2dlineclipf,f2dtransf, f2dsplinedif,splineint,fp,x[0],y[0]); for (j=0;jdxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0)) { if (first) { bs1[num]=fp->dx; bs2[num]=fp->dy; bsr[num]=fp->col.r; bsg[num]=fp->col.g; bsb[num]=fp->col.b; bsa[num]=fp->col.a; num++; if (num>=7) { for (j=0;j<2;j++) { bspline(j+1,bs1+j,c); bspline(j+1,bs2+j,c+4); if (j==0) { GRAcurvefirst(GC,snum,style,f2dlineclipf,f2dtransf, f2dbsplinedif,bsplineint,fp,c[0],c[4]); } GRAcolor(GC,bsr[j],bsg[j],bsb[j],bsa[j]); if (!GRAcurve(GC,c,c[0],c[4])) return -1; } first=FALSE; } } else { for (j=1;j<7;j++) { bs1[j-1]=bs1[j]; bs2[j-1]=bs2[j]; bsr[j-1]=bsr[j]; bsg[j-1]=bsg[j]; bsb[j-1]=bsb[j]; bsa[j-1]=bsa[j]; } bs1[6]=fp->dx; bs2[6]=fp->dy; bsr[6]=fp->col.r; bsg[6]=fp->col.g; bsb[6]=fp->col.b; bsa[6]=fp->col.a; num++; bspline(0,bs1+1,c); bspline(0,bs2+1,c+4); GRAcolor(GC,bsr[1],bsg[1],bsb[1],bsa[1]); if (!GRAcurve(GC,c,c[0],c[4])) return -1; } } else { if ((fp->dxstat!=MATH_VALUE_CONT) && (fp->dystat!=MATH_VALUE_CONT)) { if (!first) { for (j=0;j<2;j++) { bspline(j+3,bs1+j+2,c); bspline(j+3,bs2+j+2,c+4); GRAcolor(GC,bsr[j+2],bsg[j+2],bsb[j+2],bsa[j+2]); if (!GRAcurve(GC,c,c[0],c[4])) return -1; } } first=TRUE; num=0; } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } } if (!first) { for (j=0;j<2;j++) { bspline(j+3,bs1+j+2,c); bspline(j+3,bs2+j+2,c+4); GRAcolor(GC,bsr[j+2],bsg[j+2],bsb[j+2],bsa[j+2]); if (!GRAcurve(GC,c,c[0],c[4])) return -1; } } break; case INTERPOLATION_TYPE_BSPLINE_CLOSE: first=TRUE; num=0; while (getdata(fp)==0) { if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0)) { if (first) { bs1[num]=fp->dx; bs3[num]=fp->dx; bs2[num]=fp->dy; bs4[num]=fp->dy; bsr[num]=fp->col.r; bsg[num]=fp->col.g; bsb[num]=fp->col.b; bsa[num]=fp->col.a; bsr2[num]=fp->col.r; bsg2[num]=fp->col.g; bsb2[num]=fp->col.b; bsa2[num]=fp->col.a; num++; if (num>=4) { bspline(0,bs1,c); bspline(0,bs2,c+4); GRAcurvefirst(GC,snum,style,f2dlineclipf,f2dtransf, f2dbsplinedif,bsplineint,fp,c[0],c[4]); GRAcolor(GC,bsr[0],bsg[0],bsb[0],bsa[0]); if (!GRAcurve(GC,c,c[0],c[4])) return -1; first=FALSE; } } else { for (j=1;j<4;j++) { bs1[j-1]=bs1[j]; bs2[j-1]=bs2[j]; bsr[j-1]=bsr[j]; bsg[j-1]=bsg[j]; bsb[j-1]=bsb[j]; bsa[j-1]=bsa[j]; } bs1[3]=fp->dx; bs2[3]=fp->dy; bsr[3]=fp->col.r; bsg[3]=fp->col.g; bsb[3]=fp->col.b; bsa[3]=fp->col.a; num++; bspline(0,bs1,c); bspline(0,bs2,c+4); GRAcolor(GC,bsr[0],bsg[0],bsb[0],bsa[0]); if (!GRAcurve(GC,c,c[0],c[4])) return -1; } } else { if ((fp->dxstat!=MATH_VALUE_CONT) && (fp->dystat!=MATH_VALUE_CONT)) { if (!first) { for (j=0;j<3;j++) { bs1[4+j]=bs3[j]; bs2[4+j]=bs4[j]; bsr[4+j]=bsr2[j]; bsg[4+j]=bsg2[j]; bsb[4+j]=bsb2[j]; bsa[4+j]=bsa2[j]; bspline(0,bs1+j+1,c); bspline(0,bs2+j+1,c+4); GRAcolor(GC,bsr[j+1],bsg[j+1],bsb[j+1],bsa[j+1]); if (!GRAcurve(GC,c,c[0],c[4])) return -1; } } first=TRUE; num=0; } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } } if (!first) { for (j=0;j<3;j++) { bs1[4+j]=bs3[j]; bs2[4+j]=bs4[j]; bsr[4+j]=bsr2[j]; bsg[4+j]=bsg2[j]; bsb[4+j]=bsb2[j]; bsa[4+j]=bsa2[j]; bspline(0,bs1+j+1,c); bspline(0,bs2+j+1,c+4); GRAcolor(GC,bsr[j+1],bsg[j+1],bsb[j+1],bsa[j+1]); if (!GRAcurve(GC,c,c[0],c[4])) return -1; } } break; } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); return 0; } static int rectout(struct objlist *obj,struct f2ddata *fp,int GC, int width,int snum,int *style,int type) { int emerr,emnonum,emig,emng; double x0,y0,x1,y1; int gx0,gy0,gx1,gy1,ax0,ay0; double dx,dy,len,alen,awidth; int ap[8],headlen,headwidth; emerr=emnonum=emig=emng=FALSE; headlen=72426; headwidth=60000; if (type == PLOT_TYPE_DIAGONAL) GRAlinestyle(GC,snum,style,width,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); else GRAlinestyle(GC,snum,style,width,GRA_LINE_CAP_PROJECTING,GRA_LINE_JOIN_MITER,1000); while (getdata(fp)==0) { GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->d2),&(fp->d3))==0)) { if (type == PLOT_TYPE_DIAGONAL) { x0=fp->dx; y0=fp->dy; x1=fp->d2; y1=fp->d3; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)==0) { f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); GRAline(GC,gx0,gy0,gx1,gy1); } } if (type == PLOT_TYPE_ARROW) { x0=fp->dx; y0=fp->dy; x1=fp->d2; y1=fp->d3; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)==0) { f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); if ((x1==fp->d2) && (y1==fp->d3) && (fp->msize>0)) { alen=fp->msize; awidth=fp->msize*(double )headwidth/(double )headlen/2; dx=gx1-gx0; dy=gy1-gy0; len=sqrt(dx*dx+dy*dy); if (len>0) { ax0=nround(gx1-dx*alen/len); ay0=nround(gy1-dy*alen/len); ap[0]=nround(ax0-dy/len*awidth); ap[1]=nround(ay0+dx/len*awidth); ap[2]=gx1; ap[3]=gy1; ap[4]=nround(ax0+dy/len*awidth); ap[5]=nround(ay0-dx/len*awidth); GRAline(GC,gx0,gy0,ax0,ay0); GRAdrawpoly(GC,3,ap,GRA_FILL_MODE_EVEN_ODD); } } else GRAline(GC,gx0,gy0,gx1,gy1); } } if (type == PLOT_TYPE_RECTANGLE_FILL || type == PLOT_TYPE_RECTANGLE_SOLID_FILL) { if (type == PLOT_TYPE_RECTANGLE_FILL) { GRAcolor(GC, fp->col2.r, fp->col2.g, fp->col2.b, fp->col2.a); } x0=fp->dx; y0=fp->dy; x1=fp->d2; y1=fp->d3; if (f2drectclipf(&x0,&y0,&x1,&y1,fp)==0) { f2dtransf(x0, y0, ap + 0, ap + 1, fp); f2dtransf(x0, y1, ap + 2, ap + 3, fp); f2dtransf(x1, y1, ap + 4, ap + 5, fp); f2dtransf(x1, y0, ap + 6, ap + 7, fp); GRAdrawpoly(GC, 4, ap, GRA_FILL_MODE_EVEN_ODD); } if (type == PLOT_TYPE_RECTANGLE_FILL) { GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); } } if (type == PLOT_TYPE_RECTANGLE || type == PLOT_TYPE_RECTANGLE_FILL) { x0=fp->dx; y0=fp->dy; x1=fp->dx; y1=fp->d3; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)==0) { f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); GRAline(GC,gx0,gy0,gx1,gy1); } x0=fp->dx; y0=fp->d3; x1=fp->d2; y1=fp->d3; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)==0) { f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); GRAline(GC,gx0,gy0,gx1,gy1); } x0=fp->d2; y0=fp->d3; x1=fp->d2; y1=fp->dy; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)==0) { f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); GRAline(GC,gx0,gy0,gx1,gy1); } x0=fp->d2; y0=fp->dy; x1=fp->dx; y1=fp->dy; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)==0) { f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); GRAline(GC,gx0,gy0,gx1,gy1); } } } else errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); return 0; } static int errorbarout(struct objlist *obj,struct f2ddata *fp,int GC, int width,int snum,int *style,int type) { int emerr,emnonum,emig,emng; double x0,y0,x1,y1; int gx0,gy0,gx1,gy1; int size; emerr=emnonum=emig=emng=FALSE; GRAlinestyle(GC,snum,style,width,GRA_LINE_CAP_BUTT,GRA_LINE_JOIN_MITER,1000); while (getdata(fp)==0) { size=fp->marksize0/2; GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); if (type == PLOT_TYPE_ERRORBAR_X) { if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0) && (getposition2(fp,fp->axtype,fp->axtype,&(fp->d2),&(fp->d3))==0)) { x0=fp->d2; y0=fp->dy; x1=fp->d3; y1=fp->dy; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)==0) { f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); GRAline(GC,gx0,gy0,gx1,gy1); if (fp->d2==x0) { GRAline(GC,gx0+nround(size*fp->axvy), gy0-nround(size*fp->axvx), gx0-nround(size*fp->axvy), gy0+nround(size*fp->axvx)); } if (fp->d3==x1) { GRAline(GC,gx1+nround(size*fp->axvy), gy1-nround(size*fp->axvx), gx1-nround(size*fp->axvy), gy1+nround(size*fp->axvx)); } } } else errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } else if (type == PLOT_TYPE_ERRORBAR_Y) { if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0) && (getposition2(fp,fp->aytype,fp->aytype,&(fp->d2),&(fp->d3))==0)) { x0=fp->dx; y0=fp->d2; x1=fp->dx; y1=fp->d3; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)==0) { f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); GRAline(GC,gx0,gy0,gx1,gy1); if (fp->d2==y0) { GRAline(GC,gx0+nround(size*fp->ayvy), gy0-nround(size*fp->ayvx), gx0-nround(size*fp->ayvy), gy0+nround(size*fp->ayvx)); } if (fp->d3==y1) { GRAline(GC,gx1+nround(size*fp->ayvy), gy1-nround(size*fp->ayvx), gx1-nround(size*fp->ayvy), gy1+nround(size*fp->ayvx)); } } } else errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); return 0; } static int stairout(struct objlist *obj,struct f2ddata *fp,int GC, int width,int snum,int *style, int join,int miter,int type) { int emerr,emnonum,emig,emng; int num; double x0,y0,x1,y1,x,y,dx,dy; emerr=emnonum=emig=emng=FALSE; #if EXPAND_DOTTED_LINE GRAlinestyle(GC,0,NULL,width,GRA_LINE_CAP_BUTT,join,miter); #else GRAlinestyle(GC, snum, style, width, GRA_LINE_CAP_BUTT, join, miter); #endif num=0; while (getdata(fp)==0) { GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0)) { if (num==0) { x0=fp->dx; y0=fp->dy; num++; } else if (num==1) { x1=fp->dx; y1=fp->dy; if (type == PLOT_TYPE_STAIRCASE_X) { dx=(x1-x0)*0.5; y=y0; x=x0-dx; GRAcurvefirst(GC,snum,style,f2dlineclipf,f2dtransf,NULL,NULL,fp,x,y); x=x0+dx; GRAdashlinetod(GC,x,y); y=y1; GRAdashlinetod(GC,x,y); } else { dy=(y1-y0)*0.5; x=x0; y=y0-dy; GRAcurvefirst(GC,snum,style,f2dlineclipf,f2dtransf,NULL,NULL,fp,x,y); y=y0+dy; GRAdashlinetod(GC,x,y); x=x1; GRAdashlinetod(GC,x,y); } x0=x1; y0=y1; num++; } else { x1=fp->dx; y1=fp->dy; if (type == PLOT_TYPE_STAIRCASE_X) { dx=(x1-x0)*0.5; y=y0; x=x0+dx; GRAdashlinetod(GC,x,y); y=y1; GRAdashlinetod(GC,x,y); } else { dy=(y1-y0)*0.5; x=x0; y=y0+dy; GRAdashlinetod(GC,x,y); x=x1; GRAdashlinetod(GC,x,y); } x0=x1; y0=y1; } } else { if ((fp->dxstat!=MATH_VALUE_CONT) && (fp->dystat!=MATH_VALUE_CONT)) { if (num!=0) { if (type == PLOT_TYPE_STAIRCASE_X) { dx=x0-x; x=x0+dx; GRAdashlinetod(GC,x,y); } else { dy=y0-y; y=y0+dy; GRAdashlinetod(GC,x,y); } } num=0; } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } } if (num!=0) { if (type == PLOT_TYPE_STAIRCASE_X) { dx=x0-x; x=x0+dx; GRAdashlinetod(GC,x,y); } else { dy=y0-y; y=y0+dy; GRAdashlinetod(GC,x,y); } } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); return 0; } static void draw_rect(int GC, int *ap, double v0, double v1, double v2, double v3) { GRAline(GC, ap[0], ap[1], ap[2] ,ap[3]); if (v0 == v1) { GRAline(GC, ap[2], ap[3], ap[4] ,ap[5]); } GRAline(GC, ap[4], ap[5], ap[6] ,ap[7]); if (v2 == v3) { GRAline(GC, ap[6], ap[7], ap[0] ,ap[1]); } } static int barout(struct objlist *obj,struct f2ddata *fp,int GC, int width,int snum,int *style,int type) { int emerr,emnonum,emig,emng; double x0,y0,x1,y1; int gx0,gy0,gx1,gy1; int size; int ap[8]; emerr=emnonum=emig=emng=FALSE; if (type <= PLOT_TYPE_BAR_FILL_Y) GRAlinestyle(GC,snum,style,width,GRA_LINE_CAP_PROJECTING,GRA_LINE_JOIN_MITER,1000); while (getdata(fp)==0) { size=fp->marksize0/2; if (fp->dxstat != MATH_VALUE_NORMAL || fp->dystat != MATH_VALUE_NORMAL || getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))) { errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); continue; } switch (type) { case PLOT_TYPE_BAR_FILL_X: case PLOT_TYPE_BAR_SOLID_FILL_X: case PLOT_TYPE_BAR_X: x0=0; y0=fp->dy; x1=fp->dx; y1=fp->dy; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)) { break; } f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); ap[0]=gx0+nround(size*fp->ayvx); ap[1]=gy0+nround(size*fp->ayvy); ap[2]=gx1+nround(size*fp->ayvx); ap[3]=gy1+nround(size*fp->ayvy); ap[4]=gx1-nround(size*fp->ayvx); ap[5]=gy1-nround(size*fp->ayvy); ap[6]=gx0-nround(size*fp->ayvx); ap[7]=gy0-nround(size*fp->ayvy); switch (type) { case PLOT_TYPE_BAR_X: GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); draw_rect(GC, ap, x1, fp->dx, x0, 0); break; case PLOT_TYPE_BAR_SOLID_FILL_X: GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); GRAdrawpoly(GC,4,ap,GRA_FILL_MODE_EVEN_ODD); break; case PLOT_TYPE_BAR_FILL_X: GRAcolor(GC, fp->col2.r, fp->col2.g, fp->col2.b, fp->col2.a); GRAdrawpoly(GC,4,ap,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); draw_rect(GC, ap, x1, fp->dx, x0, 0); break; } break; case PLOT_TYPE_BAR_FILL_Y: case PLOT_TYPE_BAR_SOLID_FILL_Y: case PLOT_TYPE_BAR_Y: x0=fp->dx; y0=0; x1=fp->dx; y1=fp->dy; if (f2dlineclipf(&x0,&y0,&x1,&y1,fp)) { break; } f2dtransf(x0,y0,&gx0,&gy0,fp); f2dtransf(x1,y1,&gx1,&gy1,fp); ap[0]=gx0+nround(size*fp->axvx); ap[1]=gy0+nround(size*fp->axvy); ap[2]=gx1+nround(size*fp->axvx); ap[3]=gy1+nround(size*fp->axvy); ap[4]=gx1-nround(size*fp->axvx); ap[5]=gy1-nround(size*fp->axvy); ap[6]=gx0-nround(size*fp->axvx); ap[7]=gy0-nround(size*fp->axvy); switch (type) { case PLOT_TYPE_BAR_Y: GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); draw_rect(GC, ap, y1, fp->dy, y0, 0); break; case PLOT_TYPE_BAR_SOLID_FILL_Y: GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); GRAdrawpoly(GC,4,ap,GRA_FILL_MODE_EVEN_ODD); break; case PLOT_TYPE_BAR_FILL_Y: GRAcolor(GC, fp->col2.r, fp->col2.g, fp->col2.b, fp->col2.a); GRAdrawpoly(GC,4,ap,GRA_FILL_MODE_EVEN_ODD); GRAcolor(GC,fp->col.r,fp->col.g,fp->col.b, fp->col.a); draw_rect(GC, ap, y1, fp->dy, y0, 0); break; } break; } } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); return 0; } static int calc_weight(struct objlist *obj, struct f2dlocal *f2dlocal, struct f2ddata *fp, const char *weight, struct narray *data, struct narray *index) { MathEquation *code; MathEquationParametar *prm; double dd; int emerr, emserr, emnonum, emig, emng, two_pass, maxdim, ddstat, rcode, datanum2, i, j; int const_id[MATH_CONST_SIZE]; code = ofile_create_math_equation(const_id, 3, FALSE, TRUE, FALSE, FALSE, TRUE); if (code == NULL) { return 1; } rcode = math_equation_parse(code, weight); if (rcode) { math_equation_free(code); return 1; } prm = math_equation_get_parameter(code, 0, NULL); maxdim = (prm) ? prm->id_max : 0; two_pass = math_equation_check_const(code, const_id, TWOPASS_CONST_SIZE); if (two_pass) { reopendata(fp); if (getminmaxdata(fp, f2dlocal) == -1) { math_equation_free(code); return 1; } } if (maxdim < fp->x) maxdim = fp->x; if (maxdim < fp->y) maxdim = fp->y; datanum2 = fp->datanum; reopendata(fp); if (hskipdata(fp) != 0) { math_equation_free(code); return 1; } fp->datanum = datanum2; if (set_const(code, const_id, two_pass, fp, TRUE)) { math_equation_free(code); return 1; } emerr = emserr = emnonum = emig = emng = FALSE; for (i = j = 0; getdata2(fp, code, maxdim, &dd, &ddstat) == 0; i++) { int *line; line = (int *) arraynget(index, j); if (line == NULL) { break; } else if (*line != i) { continue; } j++; if (ddstat == MATH_VALUE_NORMAL) { if (arrayadd(data, &dd) == NULL) { return -1; } } else { errordisp2(obj, fp, &emerr, &emnonum, &emig, &emng, ddstat, "weight"); } } math_equation_free(code); if (arraynum(data) == 0) { return -1; } return 0; } static int calc_fit(struct objlist *obj, struct f2dlocal *f2dlocal, struct f2ddata *fp, struct objlist *fitobj, int fit_id) { int emerr, emserr, emnonum, emig, emng, i, rcode; struct narray data, index; char *weight, *argv[2]; double dnum; arrayinit(&data,sizeof(double)); arrayinit(&index,sizeof(int)); emerr = emserr = emnonum = emig = emng = FALSE; for (i = 0; getdata(fp)==0; i++) { if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL)) { if (arrayadd(&data, &fp->dx) == NULL || arrayadd(&data, &fp->dy) == NULL || arrayadd(&index, &i) == NULL) { arraydel(&index); arraydel(&data); return -1; } } else { errordisp(obj, fp, &emerr, &emnonum, &emig, &emng); } } errordisp(obj, fp, &emerr, &emnonum, &emig, &emng); if ((dnum=(double )arraynum(&data))==0) { arraydel(&index); arraydel(&data); return -1; } dnum /= 2; if (arrayins(&data, &dnum, 0) == NULL) { arraydel(&index); arraydel(&data); return -1; } if (getobj(fitobj, "weight_func", fit_id, 0, NULL, &weight) == -1) { arraydel(&index); arraydel(&data); return -1; } if (weight) { rcode = calc_weight(obj, f2dlocal, fp, weight, &data, &index); if (rcode) { arraydel(&index); arraydel(&data); return rcode; } } arraydel(&index); argv[0] = (void *) (&data); argv[1] = NULL; if (exeobj(fitobj, "fit", fit_id, 1, argv)) { arraydel(&data); return -1; } arraydel(&data); return 0; } #define MATH_EQUATION_FREE(eq) math_equation_free(eq) static int draw_interpolation(struct f2ddata *fp, int GC, int num, int snum, int *style, double *c, double *x, double *y, double *z, double *c1, double *c2, double *c3, double *c4, double *c5, double *c6) { int j, spcond; spcond = SPLCND2NDDIF; if (spline(z, x, c1, c2, c3, num, spcond, spcond, 0, 0) || spline(z, y, c4, c5, c6, num, spcond, spcond, 0, 0)) { return -1; } GRAcurvefirst(GC, snum, style, f2dlineclipf, f2dtransf, f2dsplinedif, splineint, fp, x[0], y[0]); for (j = 0; j < num - 1; j++) { c[0] = c1[j]; c[1] = c2[j]; c[2] = c3[j]; c[3] = c4[j]; c[4] = c5[j]; c[5] = c6[j]; if (GRAcurve(GC, c, x[j], y[j]) == 0) { break; } } return 0; } static int draw_fit(struct objlist *obj, struct f2ddata *fp, int GC, struct objlist *fitobj, N_VALUE *fit_inst, int width, int snum, int *style, int join, int miter) { char *equation; double min, max, dx, dy; int i, div, interpolation, first, rcode, num, emerr; int *r, *g, *b, *a; double c[8], *x, *y, *z, *c1, *c2, *c3, *c4, *c5, *c6, count; MathEquation *code; MathValue val; if (_getobj(fitobj, "equation", fit_inst, &equation)) return -1; if (_getobj(fitobj, "min", fit_inst, &min)) return -1; if (_getobj(fitobj, "max", fit_inst, &max)) return -1; if (_getobj(fitobj, "div", fit_inst, &div)) return -1; if (_getobj(fitobj, "interpolation", fit_inst, &interpolation)) return -1; if (equation==NULL) return -1; if ((min==0) && (max==0)) { min=fp->axmin2; max=fp->axmax2; } else if (min==max) return 0; code = ofile_create_math_equation(NULL, 0, FALSE, FALSE, FALSE, FALSE, TRUE); if (code == NULL) { return 1; } rcode = math_equation_parse(code, equation); if (rcode) { math_equation_free(code); return 1; } rcode = math_equation_optimize(code); if (rcode) { math_equation_free(code); return 1; } GRAcolor(GC,fp->fg.r,fp->fg.g,fp->fg.b, fp->fg.a); #if EXPAND_DOTTED_LINE GRAlinestyle(GC,0,NULL,width,GRA_LINE_CAP_BUTT,join,miter); #else GRAlinestyle(GC, snum, style, width, GRA_LINE_CAP_BUTT, join, miter); #endif num=0; count=0; emerr=FALSE; x=y=z=c1=c2=c3=c4=c5=c6=NULL; r=g=b=a=NULL; first=TRUE; for (i=0;i<=div;i++) { dx=min+(max-min)/div*i; val.val = dx; val.type = MATH_VALUE_NORMAL; math_equation_set_var(code, 0, &val); rcode = math_equation_calculate(code, &val); dy = val.val; if (interpolation) { if ((rcode==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&dx,&dy)==0)) { if (dataadd(dx,dy,count,0,0,0,255,&num, &x,&y,&z,&r,&g,&b,&a,&c1,&c2,&c3,&c4,&c5,&c6)==NULL) { MATH_EQUATION_FREE(code); return -1; } count++; } else { if (num >= 2 && draw_interpolation(fp, GC, num, snum, style, c, x, y, z, c1, c2, c3, c4, c5, c6)) { FREE_INTP_BUF(); MATH_EQUATION_FREE(code); error(obj,ERRSPL); return -1; } FREE_INTP_BUF(); num=0; count=0; x=y=z=c1=c2=c3=c4=c5=c6=NULL; r=g=b=a=NULL; } } else { if ((rcode==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&dx,&dy)==0)) { if (first) { GRAcurvefirst(GC,snum,style,f2dlineclipf,f2dtransf,NULL,NULL,fp,dx,dy); first=FALSE; } else { GRAdashlinetod(GC,dx,dy); } } else { first=TRUE; } } if ((!emerr) && (rcode!=MATH_VALUE_NORMAL) && (rcode!=MATH_VALUE_UNDEF)) { error(obj,ERRMERR); emerr=TRUE; } } MATH_EQUATION_FREE(code); if (interpolation) { if (num > 0 && draw_interpolation(fp, GC, num, snum, style, c, x, y, z, c1, c2, c3, c4, c5, c6)) { FREE_INTP_BUF(); error(obj,ERRSPL); return -1; } FREE_INTP_BUF(); } return 0; } static int get_fit_obj_id(char *fit, struct objlist **fitobj, N_VALUE **inst) { struct narray iarray; int anum, id; if (fit == NULL) { return -1; } arrayinit(&iarray, sizeof(int)); if (getobjilist(fit, fitobj, &iarray, FALSE, NULL)) { return -1 ; } anum = arraynum(&iarray); if (anum < 1) { arraydel(&iarray); return -1 ; } id = arraylast_int(&iarray); arraydel(&iarray); *inst = getobjinst(*fitobj, id); if (*inst == NULL) { return -1 ; } return id; } static int fitout(struct objlist *obj,struct f2dlocal *f2dlocal, struct f2ddata *fp,int GC, int width,int snum,int *style, int join,int miter,char *fit,int redraw) { struct objlist *fitobj; int id; N_VALUE *inst; char *equation; int rcode; if (fit == NULL) { error(obj, ERRNOFIT); return -1; } id = get_fit_obj_id(fit, &fitobj, &inst); if (id < 0) { error2(obj, ERRNOFITINST, fit); return -1; } if (_getobj(fitobj, "equation", inst, &equation)) { return -1; } if (equation == NULL && redraw == 0) { rcode = calc_fit(obj, f2dlocal, fp, fitobj, id); if (rcode) { return rcode; } } return draw_fit(obj, fp, GC, fitobj, inst, width, snum, style, join, miter); } static int f2ddraw(struct objlist *obj, N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct f2dlocal *f2dlocal; int GC; int type; int mtype; int lwidth, ljoin, lmiter, intp; struct narray *lstyle; int snum, *style; struct f2ddata *fp; int rcode; int w, h, clip, zoom; char *fit, *field; char *file; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; _getobj(obj, "_local", inst, &f2dlocal); _getobj(obj, "GC", inst, &GC); if (GC<0) return 0; _getobj(obj, "file", inst, &file); if (file == NULL) return 0; _getobj(obj, "type", inst, &type); _getobj(obj, "mark_type", inst, &mtype); _getobj(obj, "line_width", inst, &lwidth); _getobj(obj, "line_style", inst, &lstyle); _getobj(obj, "line_join", inst, &ljoin); _getobj(obj, "line_miter_limit", inst, &lmiter); _getobj(obj, "interpolation", inst, &intp); _getobj(obj, "fit", inst, &fit); _getobj(obj, "clip", inst, &clip); snum = arraynum(lstyle); style = arraydata(lstyle); fp = opendata(obj, inst, f2dlocal, TRUE, FALSE); if (fp == NULL) return 1; if (fp->need2pass || fp->final < -1) { if (getminmaxdata(fp, f2dlocal) == -1) { closedata(fp, f2dlocal); return 1; } reopendata(fp); } if (hskipdata(fp)) { closedata(fp, f2dlocal); return 1; } if (set_const_all(fp)) return 1; GRAregion(GC, &w, &h, &zoom); GRAview(GC, 0, 0, w*10000.0/zoom, h*10000.0/zoom, clip); switch (type) { case PLOT_TYPE_MARK: rcode = markout(obj, fp, GC, lwidth, snum, style); break; case PLOT_TYPE_LINE: rcode = lineout(obj, fp, GC, lwidth, snum, style, ljoin, lmiter, FALSE); break; case PLOT_TYPE_POLYGON: rcode = lineout(obj, fp, GC, lwidth, snum, style, ljoin, lmiter, TRUE); break; case PLOT_TYPE_POLYGON_SOLID_FILL: rcode = polyout(obj, fp, GC); break; case PLOT_TYPE_CURVE: rcode = curveout(obj, fp, GC, lwidth, snum, style, ljoin, lmiter, intp); break; case PLOT_TYPE_DIAGONAL: case PLOT_TYPE_ARROW: case PLOT_TYPE_RECTANGLE: case PLOT_TYPE_RECTANGLE_FILL: case PLOT_TYPE_RECTANGLE_SOLID_FILL: rcode = rectout(obj, fp, GC, lwidth, snum, style, type); break; case PLOT_TYPE_ERRORBAR_X: rcode = errorbarout(obj, fp, GC, lwidth, snum, style, type); break; case PLOT_TYPE_ERRORBAR_Y: rcode = errorbarout(obj, fp, GC, lwidth, snum, style, type); break; case PLOT_TYPE_STAIRCASE_X: case PLOT_TYPE_STAIRCASE_Y: rcode = stairout(obj, fp, GC, lwidth, snum, style, ljoin, lmiter, type); break; case PLOT_TYPE_BAR_X: case PLOT_TYPE_BAR_Y: case PLOT_TYPE_BAR_FILL_X: case PLOT_TYPE_BAR_FILL_Y: case PLOT_TYPE_BAR_SOLID_FILL_X: case PLOT_TYPE_BAR_SOLID_FILL_Y: rcode = barout(obj, fp, GC, lwidth, snum, style, type); break; case PLOT_TYPE_FIT: field = (char *)argv[1]; rcode = fitout(obj, f2dlocal, fp, GC, lwidth, snum, style, ljoin, lmiter, fit, field[0] == 'r'); if (fp->datanum == 0) fp->datanum = f2dlocal->num; break; default: /* not reachable */ rcode = -1; } closedata(fp, f2dlocal); if (rcode == -1) return 1; GRAaddlist(GC, obj, inst, (char *) argv[0], "redraw"); return 0; } static int f2dgetcoord(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { double x,y; int gx,gy; int id; double ip1,ip2; int dataclip; double minx,maxx,miny,maxy; double v1x,v1y,v2x,v2y,vx,vy; double a,b,c,d; struct narray *array; struct axis_prm ax_prm, ay_prm; x=*(double *)argv[2]; y=*(double *)argv[3]; _getobj(obj,"data_clip",inst,&dataclip); id = get_axis_prm(obj, inst, AXIS_X, &ax_prm); if (id < 0) { return 1; } id = get_axis_prm(obj, inst, AXIS_Y, &ay_prm); if (id < 0) { return 1; } ip1=-ax_prm.vy*ay_prm.vx+ax_prm.vx*ay_prm.vy; ip2=-ay_prm.vy*ax_prm.vx+ay_prm.vx*ax_prm.vy; if ((fabs(ip1)<=1e-15) || (fabs(ip2)<=1e-15)) return 1; gx=gy=0; minx=ax_prm.min; maxx=ax_prm.max; miny=ay_prm.min; maxy=ay_prm.max; if (ax_prm.type == AXIS_TYPE_LOG) { if (x == 0) { return -1; } else if (x < 0) { x = fabs(x); } x = log10(x); } else if (ax_prm.type == AXIS_TYPE_INVERSE) { if (x == 0) { return -1; } x = 1 / x; } if (ay_prm.type == AXIS_TYPE_LOG) { if (y == 0) { return -1; } else if (y < 0) { y = fabs(y); } y = log10(y); } else if (ay_prm.type == AXIS_TYPE_INVERSE) { if (y == 0) { return -1; } y = 1 / y; } if (dataclip && ((((minx>x) || (x>maxx)) && ((maxx>x) || (x>minx))) || (((miny>y) || (y>maxy)) && ((maxy>y) || (y>miny))))) return 1; v1x=ax_prm.rate*(x-minx)*ax_prm.vx; v1y=ax_prm.rate*(x-minx)*ax_prm.vy; v2x=ay_prm.rate*(y-miny)*ay_prm.vx; v2y=ay_prm.rate*(y-miny)*ay_prm.vy; vx=ay_prm.posx-ax_prm.posx+v2x-v1x; vy=ay_prm.posy-ax_prm.posy+v2y-v1y; a=ay_prm.vy*ax_prm.vx-ay_prm.vx*ax_prm.vy; c=-ay_prm.vy*vx+ay_prm.vx*vy; b=ax_prm.vy*ay_prm.vx-ax_prm.vx*ay_prm.vy; d=ax_prm.vy*vx-ax_prm.vx*vy; if ((fabs(a)<=1e-16) && (fabs(b)<=1e-16)) { return -1; } else if (fabs(b)<=1e-16) { a=c/a; gx=ay_prm.posx+nround(v2x+a*ax_prm.vx); gy=ay_prm.posy+nround(v2y+a*ax_prm.vy); } else { b=d/b; gx=ax_prm.posx+nround(v1x+b*ay_prm.vx); gy=ax_prm.posy+nround(v1y+b*ay_prm.vy); } array=rval->array; if (arraynum(array) > 0) { arraydel(array); } if ((array==NULL) && ((array=arraynew(sizeof(double)))==NULL)) return 1; arrayins(array,&gy,0); arrayins(array,&gx,0); if (arraynum(array)==0) { arrayfree(array); rval->array = NULL; return 1; } rval->array=array; return 0; } static int f2devaluate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; char *file; struct narray *array; int gx0,gy0,gx1,gy1,num,limit; int minx,miny,maxx,maxy,err; double line,dx,dy,d2,d3; array=rval->array; arrayfree(array); array=NULL; rval->array=array; _getobj(obj,"_local",inst,&f2dlocal); _getobj(obj,"file",inst,&file); if (file==NULL) return 0; if ((fp=opendata(obj,inst,f2dlocal,TRUE,FALSE))==NULL) return 1; if (fp->need2pass || fp->final < -1) { if (getminmaxdata(fp, f2dlocal)==-1) { closedata(fp, f2dlocal); return 1; } reopendata(fp); } if (hskipdata(fp)!=0) { closedata(fp, f2dlocal); return 1; } array=arraynew(sizeof(double)); minx=*(int *)argv[2]; miny=*(int *)argv[3]; maxx=*(int *)argv[4]; maxy=*(int *)argv[5]; err=*(int *)argv[6]; limit=*(int *)argv[7]; if ((minx==maxx) && (miny==maxy)) { minx-=err; maxx+=err; miny-=err; maxy+=err; } if (set_const_all(fp)) return 1; while (getdata(fp)==0) { switch (fp->type) { case TYPE_NORMAL: dx=fp->dx; dy=fp->dy; if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&dx,&dy)==0)) { f2dtransf(dx,dy,&gx0,&gy0,fp); line=fp->dline; if ((minx<=gx0) && (gx0dx)); arrayadd(array,&(fp->dy)); } } break; case TYPE_DIAGONAL: dx=fp->dx; dy=fp->dy; d2=fp->d2; d3=fp->d3; if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&dx,&dy)==0) && (getposition2(fp,fp->axtype,fp->aytype,&d2,&d3)==0)) { f2dtransf(dx,dy,&gx0,&gy0,fp); f2dtransf(d2,d3,&gx1,&gy1,fp); line=fp->dline; if ((minx<=gx0) && (gx0dx)); arrayadd(array,&(fp->dy)); } if ((minx<=gx1) && (gx1d2)); arrayadd(array,&(fp->d3)); } } break; case TYPE_ERR_X: dx=fp->dx; dy=fp->dy; d2=fp->d2; d3=fp->d3; if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&dx,&dy)==0) && (getposition2(fp,fp->axtype,fp->axtype,&d2,&d3)==0)) { f2dtransf(d2,dy,&gx0,&gy0,fp); f2dtransf(d3,dy,&gx1,&gy1,fp); line=fp->dline; if ((minx<=gx0) && (gx0d2)); arrayadd(array,&(fp->dy)); } if ((minx<=gx1) && (gx1d3)); arrayadd(array,&(fp->dy)); } } break; case TYPE_ERR_Y: dx=fp->dx; dy=fp->dy; d2=fp->d2; d3=fp->d3; if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&dx,&dy)==0) && (getposition2(fp,fp->aytype,fp->aytype,&d2,&d3)==0)) { f2dtransf(dx,d2,&gx0,&gy0,fp); f2dtransf(dx,d3,&gx1,&gy1,fp); line=fp->dline; if ((minx<=gx0) && (gx0dx)); arrayadd(array,&(fp->d2)); } if ((minx<=gx1) && (gx1dx)); arrayadd(array,&(fp->d3)); } } break; } if ((int) arraynum(array) >= (limit * 3)) break; } closedata(fp, f2dlocal); num=arraynum(array); if (num/3>0) rval->array=array; else arrayfree(array); return 0; } static int f2dredraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int redrawf, num, dmax, type; int GC; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"redraw_flag",inst,&redrawf); _getobj(obj,"data_num",inst,&num); _getobj(obj,"redraw_num",inst,&dmax); _getobj(obj, "type", inst, &type); if (num > 0 && (dmax == 0 || num <= dmax || type == PLOT_TYPE_FIT) && redrawf) { f2ddraw(obj,inst,rval,argc,argv); } else { _getobj(obj,"GC",inst,&GC); if (GC<0) return 0; GRAaddlist(GC,obj,inst,(char *)argv[0],(char *)argv[1]); } return 0; } static int f2dcolumn(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *file,*ifs; int csv; int cline,ccol; int line,col; FILE *fd; int rcode; char *buf,*buf2; char *po,*po2; g_free(rval->str); rval->str=NULL; _getobj(obj,"file",inst,&file); _getobj(obj,"ifs",inst,&ifs); _getobj(obj,"csv",inst,&csv); line=*(int *)argv[2]; col=*(int *)argv[3]; if (line<=0) return 0; if (col<=0) col=0; if (file==NULL) return 0; if ((fd=nfopen(file,"rt"))==NULL) return 0; cline=0; while (TRUE) { if ((rcode=fgetline(fd,&buf))!=0) { fclose(fd); return 1; } cline++; if (cline==line) { if (col==0) rval->str=buf; else { ccol=0; po=buf; while (TRUE) { ccol++; if (*po=='\0') break; if (csv) { for (;*po==' ';po++); if (*po=='\0') break; if (strchr(ifs,*po)!=NULL) { if (ccol==col) break; else po++; } else { for (po2=po;(*po2!='\0') && (strchr(ifs,*po2)==NULL) && (*po2!=' ');po2++); if (ccol==col) { if ((buf2=g_malloc(po2-po+1))==NULL) { fclose(fd); g_free(buf); return 1; } strncpy(buf2,po,po2-po); buf2[po2-po]='\0'; rval->str=buf2; break; } else { for (;(*po2==' ');po2++); if (strchr(ifs,*po2)!=NULL) po2++; po=po2; } } } else { for (;(*po!='\0') && (strchr(ifs,*po)!=NULL);po++); if (*po=='\0') break; for (po2=po;(*po2!='\0') && (strchr(ifs,*po2)==NULL);po2++); if (ccol==col) { if ((buf2=g_malloc(po2-po+1))==NULL) { fclose(fd); g_free(buf); return 1; } strncpy(buf2,po,po2-po); buf2[po2-po]='\0'; rval->str=buf2; break; } else po=po2; } } g_free(buf); } break; } else g_free(buf); } fclose(fd); return 0; } static int f2dhead(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int cline, line; char *file, *ptr; GString *s; FILE *fd; g_free(rval->str); rval->str = NULL; _getobj(obj, "file", inst, &file); line = *(int *) argv[2]; if (line <= 0) return 0; if (file == NULL) return 0; fd = nfopen(file, "rt"); if (fd == NULL) return 0; s = g_string_sized_new(256); if (s == NULL) { fclose(fd); return 0; } for (cline = 0; cline < line; cline++) { if (fgetline(fd, &ptr)) { break; } if (cline) { s = g_string_append_c(s, '\n'); } g_string_append_printf(s, "%s", ptr); g_free(ptr); } fclose(fd); rval->str = g_string_free(s, FALSE); return 0; } static int f2dsettings(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *file; FILE *fd; int err; char *buf, *rem; char *po,*endptr; int d1,d2,d3; double f1,f2,f3; int i,j,id; char *s; struct narray *iarray; struct objlist *aobj; int aid,x; _getobj(obj,"file",inst,&file); if (file==NULL) return 0; if ((fd=nfopen(file,"rt"))==NULL) return 0; if (fgetline(fd,&buf)!=0) { fclose(fd); return 1; } _getobj(obj,"id",inst,&id); fclose(fd); po=buf; err=FALSE; sgetobjfield(obj, id, "remark", NULL, &rem, FALSE, FALSE, FALSE); if (rem && strchr(rem, po[0])) po++; g_free(rem); while (po[0]!='\0') { for (;(po[0]!='\0') && (strchr(" \t",po[0])!=NULL);po++); if (po[0]=='-') { switch (po[1]) { case 'x': d1=strtol(po+2,&endptr,10); if (endptr==(po+2)) err=TRUE; else { po=endptr; putobj(obj,"x",id,&d1); } break; case 'y': d1=strtol(po+2,&endptr,10); if (endptr==(po+2)) err=TRUE; else { po=endptr; putobj(obj,"y",id,&d1); } break; case 'd': for (i = PLOT_TYPE_FIT; i >= 0; i--) { if (strncmp(f2dtypechar[i], po + 2, strlen(f2dtypechar[i])) == 0) { break; } } if ((i==-1) || ((i == PLOT_TYPE_MARK) && (po[2+4]!=',')) || ((i == PLOT_TYPE_CURVE) && (po[2+5]!=','))) { err=TRUE; } else { if (i == PLOT_TYPE_MARK) { d1=strtol(po+2+5,&endptr,10); if (endptr==(po+2+5)) err=TRUE; else { putobj(obj,"type",id,&i); putobj(obj,"mark_type",id,&d1); po=endptr; } } else if (i == PLOT_TYPE_CURVE) { for (j = INTERPOLATION_TYPE_BSPLINE_CLOSE; j >= 0; j--) { if (strncmp(intpchar[j], po + 2 + 6, strlen(intpchar[j])) == 0) break; } if (j == -1) { err = TRUE; } else { putobj(obj,"type",id,&i); putobj(obj,"interpolation",id,&j); po=po+2+6+strlen(intpchar[j]); } } else { putobj(obj,"type",id,&i); po=po+2+strlen(f2dtypechar[i]); } } break; case 'o': d1=strtol(po+2,&endptr,10); if (endptr==(po+2)) err=TRUE; else { po=endptr; putobj(obj,"mark_size",id,&d1); } break; case 'l': iarray=arraynew(sizeof(int)); po+=1; do { po++; d1=strtol(po,&endptr,10); if (endptr==po) err=TRUE; else { po=endptr; arrayadd(iarray,&d1); } } while ((!err) && (po[0]==',')); if (err) arrayfree(iarray); else putobj(obj,"line_style",id,iarray); break; case 'w': d1=strtol(po+2,&endptr,10); if (endptr==(po+2)) err=TRUE; else { po=endptr; putobj(obj,"line_width",id,&d1); } break; case 'c': po+=2; d1=strtol(po,&endptr,10); if ((endptr==po) || (endptr[0]!=',')) err=TRUE; else { po=endptr+1; d2=strtol(po,&endptr,10); if ((endptr==po) || (endptr[0]!=',')) err=TRUE; else { po=endptr+1; d3=strtol(po,&endptr,10); if (endptr==po) err=TRUE; else po=endptr; } } if (!err) { putobj(obj,"R",id,&d1); putobj(obj,"G",id,&d2); putobj(obj,"B",id,&d3); } break; case 'C': po+=2; d1=strtol(po,&endptr,10); if ((endptr==po) || (endptr[0]!=',')) err=TRUE; else { po=endptr+1; d2=strtol(po,&endptr,10); if ((endptr==po) || (endptr[0]!=',')) err=TRUE; else { po=endptr+1; d3=strtol(po,&endptr,10); if (endptr==po) err=TRUE; else po=endptr; } } if (!err) { putobj(obj,"R2",id,&d1); putobj(obj,"G2",id,&d2); putobj(obj,"B2",id,&d3); } break; case 'v': if (po[2]=='x') { d1=strtol(po+3,&endptr,10); if (endptr==(po+3)) err=TRUE; else { po=endptr; putobj(obj,"smooth_x",id,&d1); } break; } else if (po[2]=='y') { d1=strtol(po+3,&endptr,10); if (endptr==(po+3)) err=TRUE; else { po=endptr; putobj(obj,"smooth_y",id,&d1); } break; } else err=TRUE; break; case 's': d1=strtol(po+2,&endptr,10); if (endptr==(po+2)) err=TRUE; else { po=endptr; putobj(obj,"head_skip",id,&d1); } break; case 'r': d1=strtol(po+2,&endptr,10); if (endptr==(po+2)) err=TRUE; else { po=endptr; putobj(obj,"read_step",id,&d1); } break; case 'f': d1=strtol(po+2,&endptr,10); if (endptr==(po+2)) err=TRUE; else { po=endptr; putobj(obj,"final_line",id,&d1); } break; case 'z': if ((po[2]=='x') || (po[2]=='y')) { x = (po[2] == 'x'); po+=3; f1=strtod(po,&endptr); if (check_infinite(f1) || endptr == po || endptr[0] != ',') { err=TRUE; } else { po=endptr+1; f2=strtod(po,&endptr); if (check_infinite(f2) || endptr == po || endptr[0] != ',') { err=TRUE; } else { po=endptr+1; f3=strtod(po,&endptr); if (check_infinite(f3) || endptr == po) { err=TRUE; } else { po=endptr; } } } if (!err) { aid = get_axis_id(obj, inst, &aobj, (x) ? AXIS_X : AXIS_Y); if (aid >= 0) { putobj(aobj,"min",aid,&f1); putobj(aobj,"max",aid,&f2); putobj(aobj,"inc",aid,&f3); } } } else err=TRUE; break; case 'e': if ((po[2]=='x') || (po[2]=='y')) { for (i=0;i<3;i++) if (strncmp(axistypechar[i],po+3,strlen(axistypechar[i]))==0) break; if (i!=3) { aid = get_axis_id(obj, inst, &aobj, (po[2]=='x') ? AXIS_X : AXIS_Y); if (aid >= 0) { putobj(aobj,"type",aid,&i); } po=po+3+strlen(axistypechar[i]); } else err=TRUE; } else err=TRUE; break; case 'm': if (po[2] != 'x' && po[2] != 'y') { err = TRUE; break; } for (i=3;(po[i]!='\0') && (strchr(" \t",po[i])==NULL);i++); if (i>3) { if ((s=g_malloc(i-2))!=NULL) { strncpy(s,po+3,i-3); s[i-3]='\0'; } else { err=TRUE; break; } } else s=NULL; putobj(obj, (po[2] == 'x') ? "math_x" : "math_y", id, s); po+=i; break; default: err=TRUE; break; } } else { err=TRUE; } if (err) { error2(obj,ERRILOPTION,buf); g_free(buf); return 1; } } g_free(buf); return 0; } static int f2dtime(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *file; GStatBuf buf; int style; g_free(rval->str); rval->str=NULL; _getobj(obj,"file",inst,&file); if (file==NULL) return 0; if (nstat(file,&buf)!=0) return 1; style=*(int *)(argv[2]); rval->str=ntime((time_t *)&(buf.st_mtime),style); return 0; } static int f2ddate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *file; GStatBuf buf; int style; g_free(rval->str); rval->str=NULL; _getobj(obj,"file",inst,&file); if (file==NULL) return 0; if (nstat(file,&buf)!=0) return 1; style=*(int *)(argv[2]); rval->str=ndate((time_t *)&(buf.st_mtime),style); return 0; } static void f2dsettbl(N_VALUE *inst,struct f2dlocal *f2dlocal,struct f2ddata *fp) { int gx,gy,g2,g3; switch (fp->type) { case TYPE_NORMAL: inst[f2dlocal->idx].d=fp->dx; inst[f2dlocal->idy].d=fp->dy; if (f2dlocal->coord) { getposition(fp,fp->dx,fp->dy,&gx,&gy); inst[f2dlocal->icx].i=gx; inst[f2dlocal->icy].i=gy; } break; case TYPE_DIAGONAL: inst[f2dlocal->idx].d=fp->dx; inst[f2dlocal->idy].d=fp->dy; inst[f2dlocal->id2].d=fp->d2; inst[f2dlocal->id3].d=fp->d3; if (f2dlocal->coord) { getposition(fp,fp->dx,fp->dy,&gx,&gy); getposition(fp,fp->d2,fp->d3,&g2,&g3); inst[f2dlocal->icx].i=gx; inst[f2dlocal->icy].i=gy; inst[f2dlocal->ic2].i=g2; inst[f2dlocal->ic3].i=g3; } break; case TYPE_ERR_X: inst[f2dlocal->idx].d=fp->dx; inst[f2dlocal->idy].d=fp->dy; inst[f2dlocal->id2].d=fp->d2; inst[f2dlocal->id3].d=fp->d3; if (f2dlocal->coord) { getposition(fp,fp->dx,fp->dy,&gx,&gy); getposition(fp,fp->d2,fp->dy,&g2,&gy); getposition(fp,fp->d3,fp->dy,&g3,&gy); inst[f2dlocal->icx].i=gx; inst[f2dlocal->icy].i=gy; inst[f2dlocal->ic2].i=g2; inst[f2dlocal->ic3].i=g3; } break; case TYPE_ERR_Y: inst[f2dlocal->idx].d=fp->dx; inst[f2dlocal->idy].d=fp->dy; inst[f2dlocal->id2].d=fp->d2; inst[f2dlocal->id3].d=fp->d3; if (f2dlocal->coord) { getposition(fp,fp->dx,fp->dy,&gx,&gy); getposition(fp,fp->dx,fp->d2,&gx,&g2); getposition(fp,fp->dx,fp->d3,&gx,&g3); inst[f2dlocal->icx].i=gx; inst[f2dlocal->icy].i=gy; inst[f2dlocal->ic2].i=g2; inst[f2dlocal->ic3].i=g3; } break; } inst[f2dlocal->isx].i=fp->dxstat; inst[f2dlocal->isy].i=fp->dystat; inst[f2dlocal->is2].i=fp->d2stat; inst[f2dlocal->is3].i=fp->d3stat; inst[f2dlocal->iline].i=fp->dline; } static int f2dopendata(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; int num2; _getobj(obj,"_local",inst,&f2dlocal); if (strcmp0((char *)argv[1],"opendatac")==0) f2dlocal->coord=TRUE; else f2dlocal->coord=FALSE; fp=f2dlocal->data; if (fp!=NULL) closedata(fp, f2dlocal); f2dlocal->data=NULL; if ((fp=opendata(obj,inst,f2dlocal,f2dlocal->coord,FALSE))==NULL) return 1; if (fp->need2pass || fp->final < -1) { if (getminmaxdata(fp, f2dlocal)==-1) { closedata(fp, f2dlocal); f2dlocal->data=NULL; return 1; } reopendata(fp); } if (hskipdata(fp)!=0) { closedata(fp, f2dlocal); f2dlocal->data=NULL; return 1; } f2dsettbl(inst,f2dlocal,fp); num2=0; _putobj(obj,"data_num",inst,&num2); f2dlocal->data=fp; return 0; } static int f2dgetdata(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; int rcode; _getobj(obj,"_local",inst,&f2dlocal); fp=f2dlocal->data; if (fp==NULL) return 1; rcode=getdata(fp); f2dsettbl(inst,f2dlocal,fp); if (rcode!=0) { closedata(fp, f2dlocal); f2dlocal->data=NULL; return 1; } return 0; } static int f2dclosedata(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; _getobj(obj,"_local",inst,&f2dlocal); fp=f2dlocal->data; if (fp==NULL) return 0; fp->dx=fp->dy=fp->d2=fp->d3=0; fp->dxstat=fp->dystat=fp->d2stat=fp->d3stat=MATH_VALUE_MEOF; f2dsettbl(inst,f2dlocal,fp); closedata(fp, f2dlocal); f2dlocal->data=NULL; return 0; } static int f2dopendataraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; _getobj(obj,"_local",inst,&f2dlocal); fp=f2dlocal->data; if (fp!=NULL) closedata(fp, f2dlocal); f2dlocal->data=NULL; if ((fp=opendata(obj,inst,f2dlocal,FALSE,TRUE))==NULL) return 1; if (fp->final < -1) { if (getminmaxdata(fp, f2dlocal) == -1) { closedata(fp, f2dlocal); return 1; } reopendata(fp); } if (hskipdata(fp)!=0) { closedata(fp, f2dlocal); f2dlocal->data=NULL; return 1; } f2dlocal->data=fp; return 0; } static int f2dgetdataraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; int rcode; struct narray *iarray; struct narray *darray; int i,num,*data,maxdim; double d; MathValue gdata[FILE_OBJ_MAXCOL + 3]; _getobj(obj,"_local",inst,&f2dlocal); fp=f2dlocal->data; if (fp==NULL) { return 0; } darray=rval->array; arrayfree(darray); rval->array=NULL; iarray=(struct narray *)argv[2]; num=arraynum(iarray); data=arraydata(iarray); maxdim=-1; for (i=0;imaxdim) { maxdim=data[i]; } } if (maxdim==-1) { return 0; } if (maxdim>FILE_OBJ_MAXCOL) maxdim=FILE_OBJ_MAXCOL; rcode = getdataraw(fp, maxdim, gdata); if (rcode!=0) { closedata(fp, f2dlocal); f2dlocal->data=NULL; return 1; } darray=arraynew(sizeof(double)); for (i=0;iFILE_OBJ_MAXCOL) { d=0; } else { d = gdata[data[i]].val; } arrayadd(darray,&d); } for (i=0;iFILE_OBJ_MAXCOL) { d=MATH_VALUE_NONUM; } else { d = gdata[data[i]].type; } arrayadd(darray,&d); } rval->array=darray; return 0; } static int f2dclosedataraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; _getobj(obj,"_local",inst,&f2dlocal); fp=f2dlocal->data; if (fp==NULL) return 0; closedata(fp, f2dlocal); f2dlocal->data=NULL; return 0; } static time_t get_mtime(struct objlist *obj, N_VALUE *inst, time_t *mtime) { GStatBuf buf; int r; char *file; _getobj(obj, "file", inst, &file); if (file == NULL) return 1; r = nstat(file, &buf); if (r) return 1; *mtime = buf.st_mtime; return 0; } static int f2dstat(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; int rcode, interrupt; int dnum,minxstat,maxxstat,minystat,maxystat; double minx,maxx,miny,maxy; double sumx,sumxx,sumy,sumyy; char *field; char str[32], *ptr; time_t mtime; g_free(rval->str); rval->str=NULL; field=argv[1]; _getobj(obj,"_local",inst,&f2dlocal); /* evaluation of mtime must be done before call opendata(). */ if (get_mtime(obj, inst, &mtime)) return 1; if (f2dlocal->mtime_stat == mtime) { minx = f2dlocal->dminx; maxx = f2dlocal->dmaxx; miny = f2dlocal->dminy; maxy = f2dlocal->dmaxy; sumx = f2dlocal->davx; sumy = f2dlocal->davy; sumxx = f2dlocal->dsigx; sumyy = f2dlocal->dsigy; dnum = f2dlocal->num; if (f2dlocal->dminx != HUGE_VAL || strcmp(field, "dnum") == 0) { goto End; } } fp = opendata(obj, inst, f2dlocal, FALSE, FALSE); if (fp == NULL) return 1; if (fp->need2pass || fp->final < -1) { if (getminmaxdata(fp, f2dlocal)==-1) { closedata(fp, f2dlocal); return 1; } reopendata(fp); } if (hskipdata(fp)!=0) { closedata(fp, f2dlocal); return 1; } minxstat=MATH_VALUE_UNDEF; maxxstat=MATH_VALUE_UNDEF; minystat=MATH_VALUE_UNDEF; maxystat=MATH_VALUE_UNDEF; dnum=0; minx=maxx=miny=maxy=0; sumx=sumxx=sumy=sumyy=0; if (set_const_all(fp)) return 1; while ((rcode=getdata(fp))==0) { switch (fp->type) { case TYPE_NORMAL: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL)) { if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->dx)) minx=fp->dx; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxdx)) maxx=fp->dx; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->dy)) miny=fp->dy; if ((maxystat==MATH_VALUE_UNDEF) || (maxydy)) maxy=fp->dy; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; sumx=sumx+fp->dx; sumxx=sumxx+(fp->dx)*(fp->dx); sumy=sumy+fp->dy; sumyy=sumyy+(fp->dy)*(fp->dy); dnum++; } break; case TYPE_DIAGONAL: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL)) { if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->dx)) minx=fp->dx; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxdx)) maxx=fp->dx; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->dy)) miny=fp->dy; if ((maxystat==MATH_VALUE_UNDEF) || (maxydy)) maxy=fp->dy; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->d2)) minx=fp->d2; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxd2)) maxx=fp->d2; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->d3)) miny=fp->d3; if ((maxystat==MATH_VALUE_UNDEF) || (maxyd3)) maxy=fp->d3; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; sumx=sumx+fp->dx; sumxx=sumxx+(fp->dx)*(fp->dx); sumy=sumy+fp->dy; sumyy=sumyy+(fp->dy)*(fp->dy); dnum++; sumx=sumx+fp->d2; sumxx=sumxx+(fp->d2)*(fp->d2); sumy=sumy+fp->d3; sumyy=sumyy+(fp->d3)*(fp->d3); dnum++; } break; case TYPE_ERR_X: if ((fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL)) { if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->dy)) miny=fp->dy; if ((maxystat==MATH_VALUE_UNDEF) || (maxydy)) maxy=fp->dy; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->d2)) minx=fp->d2; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxd2)) maxx=fp->d2; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->d3)) minx=fp->d3; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxd3)) maxx=fp->d3; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; sumx=sumx+fp->d2; sumxx=sumxx+(fp->d2)*(fp->d2); sumy=sumy+fp->dy; sumyy=sumyy+(fp->dy)*(fp->dy); dnum++; sumx=sumx+fp->d3; sumxx=sumxx+(fp->d3)*(fp->d3); sumy=sumy+fp->dy; sumyy=sumyy+(fp->dy)*(fp->dy); dnum++; } break; case TYPE_ERR_Y: if ((fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (fp->dxstat==MATH_VALUE_NORMAL)) { if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->dx)) minx=fp->dx; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxdx)) maxx=fp->dx; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->d2)) miny=fp->d2; if ((maxystat==MATH_VALUE_UNDEF) || (maxyd2)) maxy=fp->d2; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->d3)) miny=fp->d3; if ((maxystat==MATH_VALUE_UNDEF) || (maxyd3)) maxy=fp->d3; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; sumx=sumx+fp->dx; sumxx=sumxx+(fp->dx)*(fp->dx); sumy=sumy+fp->d2; sumyy=sumyy+(fp->d2)*(fp->d2); dnum++; sumx=sumx+fp->dx; sumxx=sumxx+(fp->dx)*(fp->dx); sumy=sumy+fp->d3; sumyy=sumyy+(fp->d3)*(fp->d3); dnum++; } break; } } interrupt = fp->interrupt; mtime = fp->mtime; closedata(fp, f2dlocal); if (rcode==-1) return -1; if (dnum!=0) { sumx=sumx/(double )dnum; sumy=sumy/(double )dnum; sumxx=sqrt((sumxx/(double )dnum)-sumx*sumx); sumyy=sqrt((sumyy/(double )dnum)-sumy*sumy); } else { sumx=sumy=sumxx=sumyy=0; } if (minxstat!=MATH_VALUE_NORMAL) minx=0; if (minystat!=MATH_VALUE_NORMAL) miny=0; if (maxxstat!=MATH_VALUE_NORMAL) maxx=0; if (maxystat!=MATH_VALUE_NORMAL) maxy=0; f2dlocal->dminx = minx; f2dlocal->dmaxx = maxx; f2dlocal->dminy = miny; f2dlocal->dmaxy = maxy; f2dlocal->davx = sumx; f2dlocal->davy = sumy; f2dlocal->dsigx = sumxx; f2dlocal->dsigy = sumyy; if (interrupt == FALSE) f2dlocal->mtime_stat = mtime; End: if (strcmp(field, "dnum") == 0) { snprintf(str, sizeof(str), "%d", dnum); } else if (strcmp(field,"dminx")==0) { snprintf(str, sizeof(str), "%.15e", minx); } else if (strcmp(field,"dmaxx")==0) { snprintf(str, sizeof(str), "%.15e", maxx); } else if (strcmp(field,"dminy")==0) { snprintf(str, sizeof(str), "%.15e", miny); } else if (strcmp(field,"dmaxy")==0) { snprintf(str, sizeof(str), "%.15e", maxy); } else if (strcmp(field,"davx")==0) { snprintf(str, sizeof(str), "%.15e", sumx); } else if (strcmp(field,"davy")==0) { snprintf(str, sizeof(str), "%.15e", sumy); } else if (strcmp(field,"dsigx")==0) { snprintf(str, sizeof(str), "%.15e", sumxx); } else if (strcmp(field,"dsigy")==0) { snprintf(str, sizeof(str), "%.15e", sumyy); } ptr = g_strdup(str); if (ptr == NULL) return -1; rval->str = ptr; return 0; } static int f2dstat2(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; int rcode; int line; double dx,dy,d2,d3; int find; char *field; char str[32], *ptr; g_free(rval->str); rval->str=NULL; field=argv[1]; line=*(int *)(argv[2]); _getobj(obj,"_local",inst,&f2dlocal); if ((fp=opendata(obj,inst,f2dlocal,FALSE,FALSE))==NULL) return 1; if (fp->need2pass || fp->final < -1) { if (getminmaxdata(fp, f2dlocal)==-1) { closedata(fp, f2dlocal); return 1; } reopendata(fp); } if (hskipdata(fp)!=0) { closedata(fp, f2dlocal); return 1; } dx=dy=d2=d3=0; find=FALSE; if (set_const_all(fp)) return 1; while ((rcode=getdata(fp))==0) { if (fp->dline==line) { switch (fp->type) { case TYPE_NORMAL: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL)) { dx=fp->dx; dy=fp->dy; find=TRUE; } break; default: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL)) { dx=fp->dx; dy=fp->dy; d2=fp->d2; d3=fp->d3; find=TRUE; } break; } } } closedata(fp, f2dlocal); if (!find) return -1; if (strcmp(field,"dx")==0) { snprintf(str, sizeof(str), "%.15e", dx); } else if (strcmp(field,"dy")==0) { snprintf(str, sizeof(str), "%.15e", dy); } else if (strcmp(field,"d2")==0) { snprintf(str, sizeof(str), "%.15e", d2); } else if (strcmp(field,"d3")==0) { snprintf(str, sizeof(str), "%.15e", d3); } ptr = g_strdup(str); if (ptr == NULL) return -1; rval->str = ptr; return 0; } static int f2dboundings(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; int rcode; int minxstat,maxxstat,minystat,maxystat,minmaxstat,type; double minx,maxx,miny,maxy,mm; int abs; abs=*(int *)argv[2]; mm=0; minmaxstat=MATH_VALUE_UNDEF; if (_putobj(obj,"minx",inst,&mm)) return 1; if (_putobj(obj,"maxx",inst,&mm)) return 1; if (_putobj(obj,"miny",inst,&mm)) return 1; if (_putobj(obj,"maxy",inst,&mm)) return 1; if (_putobj(obj,"stat_minx",inst,&minmaxstat)) return 1; if (_putobj(obj,"stat_maxx",inst,&minmaxstat)) return 1; if (_putobj(obj,"stat_miny",inst,&minmaxstat)) return 1; if (_putobj(obj,"stat_maxy",inst,&minmaxstat)) return 1; _getobj(obj,"_local",inst,&f2dlocal); fp = opendata(obj,inst,f2dlocal,FALSE,FALSE); if (fp == NULL) return 1; if (fp->need2pass || fp->final < -1) { if (getminmaxdata(fp, f2dlocal)==-1) { closedata(fp, f2dlocal); return 1; } reopendata(fp); } if (hskipdata(fp)!=0) { closedata(fp, f2dlocal); return 1; } minxstat=MATH_VALUE_UNDEF; maxxstat=MATH_VALUE_UNDEF; minystat=MATH_VALUE_UNDEF; maxystat=MATH_VALUE_UNDEF; minx=maxx=miny=maxy=0; if (set_const_all(fp)) return 1; while ((rcode=getdata(fp))==0) { switch (fp->type) { case TYPE_NORMAL: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL)) { if ((!abs) || (fp->dx>0)) { if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->dx)) minx=fp->dx; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxdx)) maxx=fp->dx; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; } if ((!abs) || (fp->dy>0)) { if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->dy)) miny=fp->dy; if ((maxystat==MATH_VALUE_UNDEF) || (maxydy)) maxy=fp->dy; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; } if (_getobj(obj, "type", inst, &type)) return 1; switch (type) { case PLOT_TYPE_BAR_X: case PLOT_TYPE_BAR_FILL_X: case PLOT_TYPE_BAR_SOLID_FILL_X: if (minxstat != MATH_VALUE_NORMAL) { break; } if (minx > 0 && maxx > 0) { minx = 0; } else if (minx < 0 && maxx < 0) { maxx = 0; } break; case PLOT_TYPE_BAR_Y: case PLOT_TYPE_BAR_FILL_Y: case PLOT_TYPE_BAR_SOLID_FILL_Y: if (minystat != MATH_VALUE_NORMAL) { break; } if (miny > 0 && maxy > 0) { miny = 0; } else if (miny < 0 && maxy < 0) { maxy = 0; } break; } } break; case TYPE_DIAGONAL: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL)) { if ((!abs) || (fp->dx>0)) { if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->dx)) minx=fp->dx; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxdx)) maxx=fp->dx; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; } if ((!abs) || (fp->dy>0)) { if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->dy)) miny=fp->dy; if ((maxystat==MATH_VALUE_UNDEF) || (maxydy)) maxy=fp->dy; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; } if ((!abs) || (fp->d2>0)) { if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->d2)) minx=fp->d2; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxd2)) maxx=fp->d2; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; } if ((!abs) || (fp->d3>0)) { if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->d3)) miny=fp->d3; if ((maxystat==MATH_VALUE_UNDEF) || (maxyd3)) maxy=fp->d3; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; } } break; case TYPE_ERR_X: if ((fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL)) { if ((!abs) || (fp->dy>0)) { if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->dy)) miny=fp->dy; if ((maxystat==MATH_VALUE_UNDEF) || (maxydy)) maxy=fp->dy; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; } if ((!abs) || (fp->d2>0)) { if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->d2)) minx=fp->d2; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxd2)) maxx=fp->d2; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; } if ((!abs) || (fp->d3>0)) { if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->d3)) minx=fp->d3; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxd3)) maxx=fp->d3; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; } } break; case TYPE_ERR_Y: if ((fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL) && (fp->dxstat==MATH_VALUE_NORMAL)) { if ((!abs) || (fp->dx>0)) { if ((minxstat==MATH_VALUE_UNDEF) || (minx>fp->dx)) minx=fp->dx; if ((maxxstat==MATH_VALUE_UNDEF) || (maxxdx)) maxx=fp->dx; minxstat=MATH_VALUE_NORMAL; maxxstat=MATH_VALUE_NORMAL; } if ((!abs) || (fp->d2>0)) { if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->d2)) miny=fp->d2; if ((maxystat==MATH_VALUE_UNDEF) || (maxyd2)) maxy=fp->d2; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; } if ((!abs) || (fp->d3>0)) { if ((minystat==MATH_VALUE_UNDEF) || (miny>fp->d3)) miny=fp->d3; if ((maxystat==MATH_VALUE_UNDEF) || (maxyd3)) maxy=fp->d3; minystat=MATH_VALUE_NORMAL; maxystat=MATH_VALUE_NORMAL; } } break; } } closedata(fp, f2dlocal); if (rcode==-1) return -1; if (_putobj(obj,"minx",inst,&minx)) return 1; if (_putobj(obj,"maxx",inst,&maxx)) return 1; if (_putobj(obj,"miny",inst,&miny)) return 1; if (_putobj(obj,"maxy",inst,&maxy)) return 1; if (_putobj(obj,"stat_minx",inst,&minxstat)) return 1; if (_putobj(obj,"stat_maxx",inst,&maxxstat)) return 1; if (_putobj(obj,"stat_miny",inst,&minystat)) return 1; if (_putobj(obj,"stat_maxy",inst,&maxystat)) return 1; _getobj(obj,"_local",inst,&f2dlocal); return 0; } static int f2dbounding(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct narray *minmax; char *axiss; struct narray iarray; struct objlist *aobj; int i,anum,id,r = 1; int *adata; double min,max; int minstat,maxstat; int hidden; int type,abs; char *argv2[2]; minmax=rval->array; if (minmax!=NULL) arrayfree(minmax); rval->array=NULL; axiss=(char *)argv[2]; if (axiss==NULL) return 0; _getobj(obj,"hidden",inst,&hidden); if (hidden) return 0; arrayinit(&iarray,sizeof(int)); if (getobjilist(axiss,&aobj,&iarray,FALSE,NULL)) return 0; anum=arraynum(&iarray); if (anum<1) { arraydel(&iarray); return 0; } adata=arraydata(&iarray); id = get_axis_id(obj, inst, &aobj, AXIS_X); if (id >= 0) { for (i=0;iarray=minmax; } r = 0; goto exit; } } id = get_axis_id(obj, inst, &aobj, AXIS_Y); if (id >= 0) { for (i=0;iarray=minmax; } } } r = 0; exit: arraydel(&iarray); return r; } static int f2dsave(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct objlist *fitobj; struct narray iarray, *array, *array2; int anum, idnum; char **adata; int i, j; char *argv2[4]; char *s2, *fit, *fitsave; int id; GString *s; array = (struct narray *) argv[2]; anum = arraynum(array); adata = arraydata(array); for (j = 0; j < anum; j++) { if (strcmp("fit", adata[j]) == 0) { return pathsave(obj, inst, rval, argc, argv); } } _getobj(obj, "fit", inst, &fit); if (fit == NULL) { return pathsave(obj, inst, rval, argc, argv); } arrayinit(&iarray, sizeof(int)); if (getobjilist(fit, &fitobj, &iarray, FALSE, NULL)) { return 1; } idnum = arraynum(&iarray); if (idnum < 1) { arraydel(&iarray); return pathsave(obj, inst, rval, argc, argv); } id = arraylast_int(&iarray); arraydel(&iarray); if (getobj(fitobj, "save", id, 0, NULL, &fitsave) == -1) { return 1; } s = g_string_sized_new(1024); if (s == NULL) { return 1; } g_string_append(s, fitsave); array2 = arraynew(sizeof(char *)); for (i = 0; i < anum; i++) { arrayadd(array2, &(adata[i])); } s2 = "fit"; arrayadd(array2, &s2); argv2[0] = argv[0]; argv2[1] = argv[1]; argv2[2] = (char *) array2; argv2[3] = NULL; if (pathsave(obj, inst, rval, 3, argv2)) { arrayfree(array2); return 1; } arrayfree(array2); g_string_append(s, rval->str); g_string_append_c(s, '\t'); g_string_append(s, "file::fit='fit:^'${fit::oid}\n"); g_free(rval->str); rval->str = g_string_free(s, FALSE); return 0; } static int f2dstore(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct f2dlocal *f2dlocal; char *file,*base,*date,*time; int style, r; char *buf; char *argv2[2]; g_free(rval->str); rval->str=NULL; _getobj(obj,"_local",inst,&f2dlocal); if (f2dlocal->endstore) { f2dlocal->endstore=FALSE; return 1; } if (f2dlocal->storefd == NULL) { _getobj(obj,"file",inst,&file); if (file==NULL) return 1; style=3; argv2[0]=(char *)&style; argv2[1]=NULL; if (_exeobj(obj,"date",inst,1,argv2)) return 1; style=0; argv2[0]=(char *)&style; argv2[1]=NULL; if (_exeobj(obj,"time",inst,1,argv2)) return 1; _getobj(obj,"date",inst,&date); if(date == NULL) { date = "1-1-1970"; } _getobj(obj,"time",inst,&time); if(time == NULL) { time = "00:00:00"; } if ((base=getbasename(file))==NULL) return 1; if ((f2dlocal->storefd=nfopen(file,"rt"))==NULL) { g_free(base); return 1; } buf = g_strdup_printf("file::load_data '%s' '%s %s' <<'[EOF]'", base, date, time); g_free(base); if (buf == NULL) { fclose(f2dlocal->storefd); f2dlocal->storefd=NULL; return 1; } rval->str=buf; } else { r = fgetline(f2dlocal->storefd, &buf); if (r) { fclose(f2dlocal->storefd); f2dlocal->storefd=NULL; buf = g_strdup("[EOF]\n"); if (buf == NULL) return 1; f2dlocal->endstore=TRUE; rval->str=buf; } else { rval->str=buf; } } return 0; } static int nstrrchr(const char *str, int chr, int index) { int i; for (i = index; i >= 0; i--) { if (str[i] == chr) { break; } } return i; } static int get_filename_last_index(const char *s) { int i; i = strlen(s); i = nstrrchr(s, ' ', i); if (i < 0) { return i; } while (s[i] == ' ') { i--; } i = nstrrchr(s, ' ', i); if (i < 0) { return i; } return i; } static int f2dload_sub(struct objlist *obj, N_VALUE *inst, char **s, int *expand, char **fullname) { struct objlist *sys; char *exdir, *file2, *file, *oldfile, *fname; int len; if (s == NULL) return 1; sys = getobject("system"); if (expand) { getobj(sys, "expand_file", 0, 0, NULL, expand); } len = get_filename_last_index(*s); if (len < 0) { return 1; } file = g_strndup(*s, len); if (file == NULL) { return 1; } *s = *s + len; getobj(sys, "expand_dir", 0, 0, NULL, &exdir); file2 = getfilename(CHK_STR(exdir), "/", file); g_free(file); fname = getfullpath(file2); if (fname == NULL) { g_free(file2); return 1; } if (fullname) *fullname = fname; g_free(file2); _getobj(obj, "file", inst, &oldfile); g_free(oldfile); _putobj(obj, "file", inst, fname); return 0; } static int f2dload(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int expand; char *s, *fullname, *mes; int mkdata; time_t ftime; s = argv[2]; if (f2dload_sub(obj, inst, &s, &expand, &fullname)) return 1; if (! expand) return 0; if (gettimeval(s, &ftime)) return 1; if (naccess(fullname, R_OK) != 0) { mkdata = TRUE; } else { int len; len = strlen(fullname) + 256; mes = g_malloc(len); if (mes == NULL) return 1; snprintf(mes, len, "`%s' Overwrite existing file?", fullname); mkdata = inputyn(mes); g_free(mes); } if (mkdata) { int len; struct utimbuf tm; FILE *fp; int fd; char buf[257]; fp = nfopen(fullname, "wt"); if (fp == NULL) { error2(obj, ERROPEN, fullname); return 1; } fd = stdinfd(); while ((len = nread(fd, buf, sizeof(buf) - 1)) > 0) { buf[len] = '\0'; fputs(buf, fp); } fclose(fp); tm.actime = ftime; tm.modtime = ftime; utime(fullname, &tm); } return 0; } static int f2dstoredum(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct f2dlocal *f2dlocal; char *file,*base,*date,*time; int style; char *buf; char *argv2[2]; g_free(rval->str); rval->str=NULL; _getobj(obj,"_local",inst,&f2dlocal); if (f2dlocal->endstore) { f2dlocal->endstore=FALSE; return 1; } else { _getobj(obj,"file",inst,&file); if (file==NULL) return 1; style=3; argv2[0]=(char *)&style; argv2[1]=NULL; if (_exeobj(obj,"date",inst,1,argv2)) return 1; style=0; argv2[0]=(char *)&style; argv2[1]=NULL; if (_exeobj(obj,"time",inst,1,argv2)) return 1; _getobj(obj,"date",inst,&date); if(date == NULL) { date = "1-1-1970"; } _getobj(obj,"time",inst,&time); if(time == NULL) { time = "00:00:00"; } if ((base=getbasename(file))==NULL) return 1; buf = g_strdup_printf("file::load_dummy '%s' '%s %s'\n", base, date, time); g_free(base); if (buf == NULL) { return 1; } rval->str=buf; f2dlocal->endstore=TRUE; return 0; } } static int f2dloaddum(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *s = argv[2]; return f2dload_sub(obj, inst, &s, NULL, NULL); } static int f2dtight(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { obj_do_tighten(obj, inst, "axis_x"); obj_do_tighten(obj, inst, "axis_y"); obj_do_tighten(obj, inst, "fit"); return 0; } static int curveoutfile(struct objlist *obj,struct f2ddata *fp,FILE *fp2, int intp,int div) { int emerr,emnonum,emig,emng; int j,k,num; int first; double *x,*y,*z,*c1,*c2,*c3,*c4,*c5,*c6,count,dd,dx,dy; int *r,*g,*b,*a; double c[8]; double bs1[7],bs2[7],bs3[4],bs4[4]; int spcond; emerr=emnonum=emig=emng=FALSE; switch (intp) { case INTERPOLATION_TYPE_SPLINE: case INTERPOLATION_TYPE_SPLINE_CLOSE: num=0; count=0; x=y=z=c1=c2=c3=c4=c5=c6=NULL; r=g=b=a=NULL; while (getdata(fp)==0) { if (fp->dxstat==MATH_VALUE_NORMAL && fp->dystat==MATH_VALUE_NORMAL) { if (dataadd(fp->dx,fp->dy,count,fp->col.r,fp->col.g,fp->col.b,fp->col.a,&num, &x,&y,&z,&r,&g,&b,&a,&c1,&c2,&c3,&c4,&c5,&c6)==NULL) return -1; count++; } else { if ((fp->dxstat!=MATH_VALUE_CONT) && (fp->dystat!=MATH_VALUE_CONT)) { if (num>=2) { if (intp==INTERPOLATION_TYPE_SPLINE) { spcond=SPLCND2NDDIF; } else { spcond=SPLCNDPERIODIC; if ((x[num-1]!=x[0]) || (y[num-1]!=y[0])) { if (dataadd(x[0],y[0],count,r[0],g[0],b[0],a[0],&num, &x,&y,&z,&r,&g,&b,&a,&c1,&c2,&c3,&c4,&c5,&c6)==NULL) return -1; } } if (spline(z,x,c1,c2,c3,num,spcond,spcond,0,0) || spline(z,y,c4,c5,c6,num,spcond,spcond,0,0)) { FREE_INTP_BUF(); error(obj,ERRSPL); return -1; } fprintf(fp2,"%.15e %.15e\n",x[0],y[0]); for (j=0;jdxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0)) { if (first) { bs1[num]=fp->dx; bs2[num]=fp->dy; num++; if (num>=7) { for (j=0;j<2;j++) { bspline(j+1,bs1+j,c); bspline(j+1,bs2+j,c+4); if (j==0) { fprintf(fp2,"%.15e %.15e\n",c[0],c[4]); } for (k=1;k<=div;k++) { dd=1.0/div*k; bsplineint(dd,c,c[0],c[4],&dx,&dy,NULL); fprintf(fp2,"%.15e %.15e\n",dx,dy); } } first=FALSE; } } else { for (j=1;j<7;j++) { bs1[j-1]=bs1[j]; bs2[j-1]=bs2[j]; } bs1[6]=fp->dx; bs2[6]=fp->dy; num++; bspline(0,bs1+1,c); bspline(0,bs2+1,c+4); for (k=1;k<=div;k++) { dd=1.0/div*k; bsplineint(dd,c,c[0],c[4],&dx,&dy,NULL); fprintf(fp2,"%.15e %.15e\n",dx,dy); } } } else { if ((fp->dxstat!=MATH_VALUE_CONT) && (fp->dystat!=MATH_VALUE_CONT)) { if (!first) { for (j=0;j<2;j++) { bspline(j+3,bs1+j+2,c); bspline(j+3,bs2+j+2,c+4); for (k=1;k<=div;k++) { dd=1.0/div*k; bsplineint(dd,c,c[0],c[4],&dx,&dy,NULL); fprintf(fp2,"%.15e %.15e\n",dx,dy); } } } first=TRUE; num=0; } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } } if (!first) { for (j=0;j<2;j++) { bspline(j+3,bs1+j+2,c); bspline(j+3,bs2+j+2,c+4); for (k=1;k<=div;k++) { dd=1.0/div*k; bsplineint(dd,c,c[0],c[4],&dx,&dy,NULL); fprintf(fp2,"%.15e %.15e\n",dx,dy); } } } break; case INTERPOLATION_TYPE_BSPLINE_CLOSE: first=TRUE; num=0; while (getdata(fp)==0) { if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (getposition2(fp,fp->axtype,fp->aytype,&(fp->dx),&(fp->dy))==0)) { if (first) { bs1[num]=fp->dx; bs3[num]=fp->dx; bs2[num]=fp->dy; bs4[num]=fp->dy; num++; if (num>=4) { bspline(0,bs1,c); bspline(0,bs2,c+4); fprintf(fp2,"%.15e %.15e\n",c[0],c[4]); for (k=1;k<=div;k++) { dd=1.0/div*k; bsplineint(dd,c,c[0],c[4],&dx,&dy,NULL); fprintf(fp2,"%.15e %.15e\n",dx,dy); } first=FALSE; } } else { for (j=1;j<4;j++) { bs1[j-1]=bs1[j]; bs2[j-1]=bs2[j]; } bs1[3]=fp->dx; bs2[3]=fp->dy; num++; bspline(0,bs1,c); bspline(0,bs2,c+4); for (k=1;k<=div;k++) { dd=1.0/div*k; bsplineint(dd,c,c[0],c[4],&dx,&dy,NULL); fprintf(fp2,"%.15e %.15e\n",dx,dy); } } } else { if ((fp->dxstat!=MATH_VALUE_CONT) && (fp->dystat!=MATH_VALUE_CONT)) { if (!first) { for (j=0;j<3;j++) { bs1[4+j]=bs3[j]; bs2[4+j]=bs4[j]; bspline(0,bs1+j+1,c); bspline(0,bs2+j+1,c+4); for (k=1;k<=div;k++) { dd=1.0/div*k; bsplineint(dd,c,c[0],c[4],&dx,&dy,NULL); fprintf(fp2,"%.15e %.15e\n",dx,dy); } } } first=TRUE; num=0; } errordisp(obj,fp,&emerr,&emnonum,&emig,&emng); } } if (!first) { for (j=0;j<3;j++) { bs1[4+j]=bs3[j]; bs2[4+j]=bs4[j]; bspline(0,bs1+j+1,c); bspline(0,bs2+j+1,c+4); for (k=1;k<=div;k++) { dd=1.0/div*k; bsplineint(dd,c,c[0],c[4],&dx,&dy,NULL); fprintf(fp2,"%.15e %.15e\n",dx,dy); } } } break; } return 0; } static int f2doutputfile(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { struct f2dlocal *f2dlocal; struct f2ddata *fp; char *file, *data_file; int rcode,type,intp,div,append,r; FILE *fp2; _getobj(obj,"_local",inst,&f2dlocal); _getobj(obj,"file", inst, &data_file); file=(char *)argv[2]; div=*(int *)argv[3]; append = *(int *) argv[4]; if (div<1) div=1; fp = opendata(obj,inst,f2dlocal,FALSE,FALSE); if (fp == NULL) { return 1; } if (fp->need2pass || fp->final < -1) { if (getminmaxdata(fp, f2dlocal)==-1) { closedata(fp, f2dlocal); error2(obj, ERRREAD, data_file); return 1; } reopendata(fp); } if (hskipdata(fp)!=0) { closedata(fp, f2dlocal); error2(obj, ERRREAD, data_file); return 1; } fp2 = nfopen(file, (append) ? "at" : "wt"); if (fp2 == NULL) { // error2(obj, ERROPEN, file); error22(obj, ERRUNKNOWN, g_strerror(errno), file); closedata(fp, f2dlocal); return 1; } if (set_const_all(fp)) return 1; _getobj(obj,"type",inst,&type); if (type==3) { _getobj(obj,"interpolation",inst,&intp); if (curveoutfile(obj,fp,fp2,intp,div)!=0) { closedata(fp, f2dlocal); fclose(fp2); error2(obj, ERRWRITE, file); return 1; } } else { while ((rcode=getdata(fp))==0) { switch (fp->type) { case TYPE_NORMAL: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL)) fprintf(fp2,"%.15e %.15e\n",fp->dx,fp->dy); break; case TYPE_DIAGONAL: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL)) fprintf(fp2,"%.15e %.15e %.15e %.15e\n",fp->dx,fp->dy,fp->d2,fp->d3); break; case TYPE_ERR_X: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL)) fprintf(fp2,"%.15e %.15e %.15e %.15e\n", fp->dx,fp->d2-fp->dx,fp->d3-fp->dx,fp->dy); break; case TYPE_ERR_Y: if ((fp->dxstat==MATH_VALUE_NORMAL) && (fp->dystat==MATH_VALUE_NORMAL) && (fp->d2stat==MATH_VALUE_NORMAL) && (fp->d3stat==MATH_VALUE_NORMAL)) fprintf(fp2,"%.15e %.15e %.15e %.15e\n", fp->dx,fp->dy,fp->d2-fp->dy,fp->d3-fp->dy); break; } } } r = 0; if (ferror(fp2)) { error2(obj, ERRWRITE, file); r = 1; } closedata(fp, f2dlocal); fclose(fp2); return r; } static int update_field(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct f2dlocal *f2dlocal; _getobj(obj, "_local", inst, &f2dlocal); f2dlocal->mtime = 0; f2dlocal->mtime_stat = 0; return 0; } static int accept_ascii_only(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *str; int i, j, n; update_field(obj, inst, rval, argc, argv); if (argv[2] == NULL) { return 0; } str = argv[2]; n = strlen(str); for (i = j = 0; i < n; i++) { if (str[i] > 0 && (g_ascii_isprint(str[i]) || g_ascii_isspace(str[i]))) { str[j] = str[i]; j++; } } str[j] = '\0'; return 0; } static int update_mask(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; update_field(obj, inst, rval, argc, argv); array = (struct narray *) argv[2]; arraysort_int(array); arrayuniq_int(array); return 0; } static int foputabs(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { update_field(obj, inst, rval, argc, argv); return oputabs(obj, inst, rval, argc, argv); } static int foputge1(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { update_field(obj, inst, rval, argc, argv); return oputge1(obj, inst, rval, argc, argv); } static int adjust_move_num(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *move, *move_x, *move_y; int i, n, nx, ny; _getobj(obj, "move_data", inst, &move); _getobj(obj, "move_data_x", inst, &move_x); _getobj(obj, "move_data_y", inst, &move_y); if (move == NULL || move_x == NULL || move_y == NULL) { arrayfree(move); arrayfree(move_x); arrayfree(move_y); move = NULL; _putobj(obj, "move_data", inst, move); _putobj(obj, "move_data_x", inst, move); _putobj(obj, "move_data_y", inst, move); return 0; } n = arraynum(move); nx = arraynum(move_x); ny = arraynum(move_y); if (n == nx && n == ny) return 0; if (nx < n) { for (i = n - 1; i >= nx; i--) { arrayndel(move, i); } n = nx; } else if (nx > n) { for (i = nx - 1; i >= n; i--) { arrayndel(move_x, i); } } if (ny < n) { for (i = n - 1; i >= ny; i--) { arrayndel(move, i); arrayndel(move_x, i); } n = ny; } else if (ny > n) { for (i = ny - 1; i >= n; i--) { arrayndel(move_y, i); } } return 0; } #define MAX_ITERATION 10000 static int bisection(MathEquation *eq, double a, double b, double y, double tolerance, double *x) { int r, i; double c, fa, fb, fc; MathValue val, rval; if (tolerance < 0) { tolerance = 0; } if (b < a) { c = a; a = b; a = c; } val.type = MATH_VALUE_NORMAL; val.val = a; math_equation_set_var(eq, 0, &val); r = math_equation_calculate(eq, &rval); if (r || rval.type != MATH_VALUE_NORMAL) { return 1; } fa = rval.val - y; val.val = b; math_equation_set_var(eq, 0, &val); r = math_equation_calculate(eq, &rval); if (r || rval.type != MATH_VALUE_NORMAL) { return 1; } fb = rval.val - y; if (compare_double(fa, 0)) { *x = a; return 0; } if (compare_double(fb, 0)) { *x = b; return 0; } if (fa * fb > 0) { return 1; } i = 0; while (1) { c = (a + b) / 2; if (c - a <= tolerance || b - c <= tolerance) { break; } val.val = c; math_equation_set_var(eq, 0, &val); r = math_equation_calculate(eq, &rval); if (r || rval.type != MATH_VALUE_NORMAL) { return 1; } fc = rval.val - y; if (compare_double(fc, 0)) { break; } if (fc * fa > 0) { a = c; fa = fc; } else { b = c; fb = fc; } if (tolerance == 0 && i > MAX_ITERATION) { break; } i++; } *x = c; return i >= MAX_ITERATION; } static int newton(MathEquation *eq, double *xx, double y) { int r, i, n; double h, x, fx, df, x_prev, fx_prev; MathValue val, rval; val.type = MATH_VALUE_NORMAL; x = *xx; val.val = x; math_equation_set_var(eq, 0, &val); r = math_equation_calculate(eq, &rval); if (r || rval.type != MATH_VALUE_NORMAL) { return 1; } fx = rval.val - y; n = 0; while (! compare_double(fx, 0)) { double dx; dx = (x == 0) ? 1E-6 : x * 1E-6; val.val = x + dx; math_equation_set_var(eq, 0, &val); r = math_equation_calculate(eq, &rval); if (r || rval.type != MATH_VALUE_NORMAL) { return 1; } df = (rval.val - y - fx) / dx; h = fx / df; x_prev = x; fx_prev = fx; i = 0; do { x = x_prev - h; val.val = x; math_equation_set_var(eq, 0, &val); r = math_equation_calculate(eq, &rval); if (r || rval.type != MATH_VALUE_NORMAL) { return 1; } fx = rval.val - y; h /= 2; i++; if (i > MAX_ITERATION) { return 1; } } while (fabs(fx) > fabs(fx_prev)); n++; if (n > MAX_ITERATION || (x == x_prev)) { break; } } *xx = x; return n >= MAX_ITERATION; } static int solve_equation(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { MathEquation *eq = NULL; int r, n, type, fit_id; char *equation, *fit, prefix[] = FIT_FIELD_PREFIX; N_VALUE *fit_inst; double a, b, x, y, tolerance, *data; struct narray *darray; struct objlist *fit_obj; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; g_free(rval->str); rval->str = NULL; _getobj(obj, "type", inst, &type); _getobj(obj, "fit", inst, &fit); if (type != PLOT_TYPE_FIT) { error(obj, ERR_INVALID_TYPE); return 1; } fit_id = get_fit_obj_id(fit, &fit_obj, &fit_inst); if (fit_id < 0) { error2(obj, ERRNOFITINST, fit); return -1; } if (_getobj(fit_obj, "equation", fit_inst, &equation)) { return -1; } darray = (struct narray *) (argv[2]); n = arraynum(darray); data = arraydata(darray); eq = ofile_create_math_equation(NULL, 0, FALSE, FALSE, FALSE, FALSE, TRUE); if (eq == NULL) { return 1; } r = math_equation_parse(eq, equation); if (r) { math_equation_free(eq); return 1; } r = math_equation_optimize(eq); if (r) { math_equation_free(eq); return 1; } if (argv[1][sizeof(prefix) - 1] == 'b') { if (n < 2) { error(obj, ERR_SMALL_ARGS); math_equation_free(eq); return 1; } a = data[0]; b = data[1]; y = (n > 2) ? data[2] : 0; x = 0; tolerance = (n > 3) ? data[3] : 0; r = bisection(eq, a, b, y, tolerance, &x); } else { x = (n > 0) ? data[0] : 0; y = (n > 1) ? data[1] : 0; r = newton(eq, &x, y); } math_equation_free(eq); if (r) { error(obj, ERRCONVERGE); return 1; } rval->str = g_strdup_printf("%.15e", x); return 0; } int ofile_calc_fit_equation(struct objlist *obj, int id, double x, double *y) { N_VALUE *inst; inst = chkobjinst(obj, id); if (inst == NULL) { return ERRNOFITINST; } return calc_fit_equation(obj, inst, x, y); } static int calc_fit_equation(struct objlist *obj, N_VALUE *inst, double x, double *y) { int type, fit_id; char *fit; N_VALUE *fit_inst; struct objlist *fit_obj; char *fit_argv[2]; *y = 0; _getobj(obj, "type", inst, &type); _getobj(obj, "fit", inst, &fit); if (type != PLOT_TYPE_FIT) { return ERR_INVALID_TYPE; } fit_id = get_fit_obj_id(fit, &fit_obj, &fit_inst); if (fit_id < 0) { return ERRNOFITINST; } fit_argv[0] = (char *) &x; fit_argv[1] = NULL; getobj(fit_obj, "calc", fit_id, 1, fit_argv, y); return 0; } static int calc_equation(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int r; double x, y; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; g_free(rval->str); rval->str = NULL; x = * (double *) argv[2]; r = calc_fit_equation(obj, inst, x, &y); switch (r) { case 0: break; case ERR_INVALID_TYPE: case ERRNOFITINST: error(obj, ERR_INVALID_TYPE); return 1; default: break; } rval->str = g_strdup_printf("%.15e", y); return 0; } static int get_fit_parameter(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int type, fit_id, i; char *fit; N_VALUE *fit_inst; struct objlist *fit_obj; char prm_str[] = "%00"; double val; if (_exeparent(obj, argv[1], inst, rval, argc, argv)) return 1; g_free(rval->str); rval->str = NULL; _getobj(obj, "type", inst, &type); _getobj(obj, "fit", inst, &fit); if (type != PLOT_TYPE_FIT) { error(obj, ERR_INVALID_TYPE); return 1; } fit_id = get_fit_obj_id(fit, &fit_obj, &fit_inst); if (fit_id < 0) { error2(obj, ERRNOFITINST, fit); return -1; } i = * (int *) argv[2]; if (i < 0 || i > 9) { error(obj, ERR_INVALID_PARAM); return 1; } prm_str[2] += i; if (_getobj(fit_obj, prm_str, fit_inst, &val)) { return -1; } rval->str = g_strdup_printf("%.15e", val); return 0; } static struct objtable file2d[] = { {"init",NVFUNC,NEXEC,f2dinit,NULL,0}, {"done",NVFUNC,NEXEC,f2ddone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"file",NSTR,NREAD|NWRITE,f2dfile,NULL,0}, {"save_path",NENUM,NREAD|NWRITE,NULL,pathchar,0}, {"x",NINT,NREAD|NWRITE,f2dput,NULL,0}, {"y",NINT,NREAD|NWRITE,f2dput,NULL,0}, {"type",NENUM,NREAD|NWRITE,NULL,f2dtypechar,0}, {"interpolation",NENUM,NREAD|NWRITE,NULL,intpchar,0}, {"fit",NOBJ,NREAD|NWRITE,NULL,NULL,0}, {"math_x",NSTR,NREAD|NWRITE,f2dput,NULL,0}, {"math_y",NSTR,NREAD|NWRITE,f2dput,NULL,0}, {"func_f",NSTR,NREAD|NWRITE,f2dput,NULL,0}, {"func_g",NSTR,NREAD|NWRITE,f2dput,NULL,0}, {"func_h",NSTR,NREAD|NWRITE,f2dput,NULL,0}, {"smooth_x",NINT,NREAD|NWRITE,f2dput,NULL,0}, {"smooth_y",NINT,NREAD|NWRITE,f2dput,NULL,0}, {"mark_type",NINT,NREAD|NWRITE,oputmarktype,NULL,0}, {"mark_size",NINT,NREAD|NWRITE,oputabs,NULL,0}, {"line_width",NINT,NREAD|NWRITE,oputge1,NULL,0}, {"line_style",NIARRAY,NREAD|NWRITE,oputstyle,NULL,0}, {"line_join",NENUM,NREAD|NWRITE,NULL,joinchar,0}, {"line_miter_limit",NINT,NREAD|NWRITE,oputge1,NULL,0}, {"R2",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"G2",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"B2",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"A2",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"remark",NSTR,NREAD|NWRITE,accept_ascii_only,NULL,0}, {"ifs",NSTR,NREAD|NWRITE,accept_ascii_only,NULL,0}, {"csv",NBOOL,NREAD|NWRITE,update_field,NULL,0}, {"head_skip",NINT,NREAD|NWRITE,foputabs,NULL,0}, {"read_step",NINT,NREAD|NWRITE,foputge1,NULL,0}, {"final_line",NINT,NREAD|NWRITE,f2dput,NULL,0}, {"mask",NIARRAY,NREAD|NWRITE,update_mask,NULL,0}, {"move_data",NIARRAY,NREAD|NWRITE,update_field,NULL,0}, {"move_data_x",NDARRAY,NREAD|NWRITE,update_field,NULL,0}, {"move_data_y",NDARRAY,NREAD|NWRITE,update_field,NULL,0}, {"move_data_adjust",NVFUNC,NREAD|NEXEC,adjust_move_num,"",0}, {"axis_x",NOBJ,NREAD|NWRITE,NULL,NULL,0}, {"axis_y",NOBJ,NREAD|NWRITE,NULL,NULL,0}, {"data_clip",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"dnum",NSFUNC,NREAD|NEXEC,f2dstat,"",0}, {"dminx",NSFUNC,NREAD|NEXEC,f2dstat,"",0}, {"dmaxx",NSFUNC,NREAD|NEXEC,f2dstat,"",0}, {"davx",NSFUNC,NREAD|NEXEC,f2dstat,"",0}, {"dsigx",NSFUNC,NREAD|NEXEC,f2dstat,"",0}, {"dminy",NSFUNC,NREAD|NEXEC,f2dstat,"",0}, {"dmaxy",NSFUNC,NREAD|NEXEC,f2dstat,"",0}, {"davy",NSFUNC,NREAD|NEXEC,f2dstat,"",0}, {"dsigy",NSFUNC,NREAD|NEXEC,f2dstat,"",0}, {"dx",NSFUNC,NREAD|NEXEC,f2dstat2,"i",0}, {"dy",NSFUNC,NREAD|NEXEC,f2dstat2,"i",0}, {"d2",NSFUNC,NREAD|NEXEC,f2dstat2,"i",0}, {"d3",NSFUNC,NREAD|NEXEC,f2dstat2,"i",0}, {"data_num",NINT,NREAD,NULL,NULL,0}, {"data_x",NDOUBLE,NREAD,NULL,NULL,0}, {"data_y",NDOUBLE,NREAD,NULL,NULL,0}, {"data_2",NDOUBLE,NREAD,NULL,NULL,0}, {"data_3",NDOUBLE,NREAD,NULL,NULL,0}, {"coord_x",NINT,NREAD,NULL,NULL,0}, {"coord_y",NINT,NREAD,NULL,NULL,0}, {"coord_2",NINT,NREAD,NULL,NULL,0}, {"coord_3",NINT,NREAD,NULL,NULL,0}, {"stat_x",NENUM,NREAD,NULL,matherrorchar,0}, {"stat_y",NENUM,NREAD,NULL,matherrorchar,0}, {"stat_2",NENUM,NREAD,NULL,matherrorchar,0}, {"stat_3",NENUM,NREAD,NULL,matherrorchar,0}, {"minx",NDOUBLE,NREAD,NULL,NULL,0}, {"maxx",NDOUBLE,NREAD,NULL,NULL,0}, {"miny",NDOUBLE,NREAD,NULL,NULL,0}, {"maxy",NDOUBLE,NREAD,NULL,NULL,0}, {"stat_minx",NENUM,NREAD,NULL,matherrorchar,0}, {"stat_maxx",NENUM,NREAD,NULL,matherrorchar,0}, {"stat_miny",NENUM,NREAD,NULL,matherrorchar,0}, {"stat_maxy",NENUM,NREAD,NULL,matherrorchar,0}, {"line",NINT,NREAD,NULL,NULL,0}, {"draw",NVFUNC,NREAD|NEXEC,f2ddraw,"i",0}, {"getcoord",NIAFUNC,NREAD|NEXEC,f2dgetcoord,"dd",0}, {"redraw",NVFUNC,NREAD|NEXEC,f2dredraw,"i",0}, {"opendata",NVFUNC,NREAD|NEXEC,f2dopendata,"",0}, {"opendatac",NVFUNC,NREAD|NEXEC,f2dopendata,"",0}, {"getdata",NVFUNC,NREAD|NEXEC,f2dgetdata,"",0}, {"closedata",NVFUNC,NREAD|NEXEC,f2dclosedata,"",0}, {"opendata_raw",NVFUNC,NEXEC,f2dopendataraw,"",0}, {"getdata_raw",NDAFUNC,NEXEC,f2dgetdataraw,"ia",0}, {"closedata_raw",NVFUNC,NEXEC,f2dclosedataraw,"",0}, {"column",NSFUNC,NREAD|NEXEC,f2dcolumn,"ii",0}, {"basename",NSFUNC,NREAD|NEXEC,f2dbasename,"",0}, {"head_lines",NSFUNC,NREAD|NEXEC,f2dhead,"i",0}, {"boundings",NVFUNC,NREAD|NEXEC,f2dboundings,"b",0}, {"bounding",NDAFUNC,NREAD|NEXEC,f2dbounding,"o",0}, {"load_settings",NVFUNC,NREAD|NEXEC,f2dsettings,"",0}, {"time",NSFUNC,NREAD|NEXEC,f2dtime,"i",0}, {"date",NSFUNC,NREAD|NEXEC,f2ddate,"i",0}, {"save",NSFUNC,NREAD|NEXEC,f2dsave,"sa",0}, {"evaluate",NDAFUNC,NREAD|NEXEC,f2devaluate,"iiiiii",0}, {"store_data",NSFUNC,NREAD|NEXEC,f2dstore,"",0}, {"load_data",NVFUNC,NREAD|NEXEC,f2dload,"s",0}, {"store_dummy",NSFUNC,NREAD|NEXEC,f2dstoredum,"",0}, {"load_dummy",NVFUNC,NREAD|NEXEC,f2dloaddum,"s",0}, {"tight",NVFUNC,NREAD|NEXEC,f2dtight,"",0}, {"save_config",NVFUNC,NREAD|NEXEC,f2dsaveconfig,"",0}, {"output_file",NVFUNC,NREAD|NEXEC,f2doutputfile,"sib",0}, {"modified",NVFUNC,NEXEC,update_field,"",0}, {FIT_FIELD_PREFIX "newton",NSFUNC,NREAD|NEXEC,solve_equation,"da",0}, {FIT_FIELD_PREFIX "bisection",NSFUNC,NREAD|NEXEC,solve_equation,"da",0}, {FIT_FIELD_PREFIX "calc",NSFUNC,NREAD|NEXEC,calc_equation,"d",0}, {FIT_FIELD_PREFIX "prm",NSFUNC,NREAD|NEXEC,get_fit_parameter,"i",0}, {"_local",NPOINTER,0,NULL,NULL,0}, }; #define TBLNUM (sizeof(file2d) / sizeof(*file2d)) void * addfile(void) /* addfile() returns NULL on error */ { unsigned int i; if (FileConfigHash == NULL) { FileConfigHash = nhash_new(); if (FileConfigHash == NULL) return NULL; for (i = 0; i < sizeof(FileConfig) / sizeof(*FileConfig); i++) { if (nhash_set_ptr(FileConfigHash, FileConfig[i].name, (void *) &FileConfig[i])) { nhash_free(FileConfigHash); return NULL; } } } return addobject(NAME,ALIAS,PARENT,OVERSION,TBLNUM,file2d,ERRNUM,f2derrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/opath.h0000644000175000017500000000015412241111703012715 00000000000000#ifndef OPATH_HEADER #define OPATH_HEADER enum PATH_TYPE { PATH_TYPE_LINE, PATH_TYPE_CURVE, }; #endif ngraph-gtk-6.06.13/src/omerge.c0000644000175000017500000003733512241111703013066 00000000000000/* * $Id: omerge.c,v 1.16 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include #include #include #include "object.h" #include "nstring.h" #include "ntime.h" #include "ioutil.h" #include "gra.h" #include "oroot.h" #include "odraw.h" #define NAME "merge" #define PARENT "draw" #define OVERSION "1.00.00" #define ERRFILE 100 #define ERROPEN 101 #define ERRGRA 102 #define ERRGRAFM 103 static char *mergeerrorlist[]={ "GRA file is not specified.", "I/O error: open file", "not GRA file", "illegal GRA format" }; #define ERRNUM (sizeof(mergeerrorlist) / sizeof(*mergeerrorlist)) struct mergelocal { FILE *storefd; int endstore; }; static int mergeinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int zm, n; struct mergelocal *mergelocal; char *ext; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; zm=10000; n = 0; ext = g_strdup("gra"); if (_putobj(obj,"zoom",inst,&zm)) return 1; if (_putobj(obj,"line_num",inst,&n)) return 1; if (_putobj(obj,"ext",inst,ext)) return 1; if ((mergelocal=g_malloc(sizeof(struct mergelocal)))==NULL) goto errexit; if (_putobj(obj,"_local",inst,mergelocal)) goto errexit; mergelocal->storefd=NULL; mergelocal->endstore=FALSE; return 0; errexit: g_free(mergelocal); return 1; } static int mergedone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int mergedraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; char *file,*graf; struct objlist *sys; FILE *fd; char *buf; int lm,tm,zm; int newgra,rcode,line = 0; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"GC",inst,&GC); if (GC<0) return 0; _getobj(obj,"file",inst,&file); _getobj(obj,"left_margin",inst,&lm); _getobj(obj,"top_margin",inst,&tm); _getobj(obj,"zoom",inst,&zm); if (file==NULL) { error(obj,ERRFILE); return 1; } if ((sys=getobject("system"))==NULL) return 1; if (getobj(sys,"GRAF",0,0,NULL,&graf)) return 1; if ((fd=nfopen(file,"rt"))==NULL) { error2(obj,ERROPEN,file); return 1; } if ((rcode=fgetline(fd,&buf))==1) error2(obj,ERRGRA,file); if (rcode!=0) { fclose(fd); return 1; } if (strcmp(graf,buf)==0) newgra=TRUE; else if (strcmp(" Ngraph GRA file",buf)==0) newgra=FALSE; else { error2(obj,ERRGRA,file); g_free(buf); fclose(fd); return 1; } g_free(buf); if (!newgra) { if ((rcode=fgetline(fd,&buf))==1) error2(obj,ERRGRA,file); g_free(buf); if (rcode!=0) { fclose(fd); return 1; } } while ((rcode=fgetline(fd,&buf))!=1) { if (rcode==-1) { fclose(fd); return 1; } if (newgra) rcode=GRAinput(GC,buf,lm,tm,zm); else rcode=GRAinputold(GC,buf,lm,tm,zm); if (!rcode) { error2(obj,ERRGRAFM,buf); g_free(buf); fclose(fd); return 1; } g_free(buf); line++; } fclose(fd); GRAaddlist(GC,obj,inst,(char *)argv[0],"redraw"); _putobj(obj, "line_num", inst, &line); return 0; } static int mergeredraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int redrawf, dmax, line_num; int GC; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"redraw_flag",inst,&redrawf); _getobj(obj,"redraw_num", inst, &dmax); _getobj(obj,"line_num", inst, &line_num); if (redrawf && line_num > 0 && (dmax == 0 || line_num < dmax * 10)) { mergedraw(obj,inst,rval,argc,argv); } else { _getobj(obj,"GC",inst,&GC); if (GC<0) return 0; GRAaddlist(GC,obj,inst,(char *)argv[0],(char *)argv[1]); } return 0; } static int mergefile(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct objlist *sys; int ignorepath; char *file, *file2; sys=getobject("system"); getobj(sys, "ignore_path", 0, 0, NULL, &ignorepath); if (argv[2] == NULL) { return 0; } file = get_utf8_filename(argv[2]); g_free(argv[2]); if (file == NULL) { argv[2] = NULL; return 1; } if (ignorepath) { file2 = getbasename(file); g_free(file); argv[2] = file2; } else { argv[2] = file; } if (clear_bbox(obj, inst)) { return 1; } return 0; } static int mergetime(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *file; GStatBuf buf; int style; g_free(rval->str); rval->str=NULL; _getobj(obj,"file",inst,&file); if (file==NULL) return 0; if (nstat(file,&buf)!=0) return 1; style=*(int *)(argv[2]); rval->str=ntime((time_t *)&(buf.st_mtime),style); return 0; } static int mergedate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *file; GStatBuf buf; int style; g_free(rval->str); rval->str=NULL; _getobj(obj,"file",inst,&file); if (file==NULL) return 0; if (nstat(file,&buf)!=0) return 1; style=*(int *)(argv[2]); rval->str=ndate((time_t *)&(buf.st_mtime),style); return 0; } static int mergestore(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct mergelocal *mergelocal; char *file,*base,*date,*time; int style; char *buf; char *argv2[2]; g_free(rval->str); rval->str=NULL; _getobj(obj,"_local",inst,&mergelocal); if (mergelocal->endstore) { mergelocal->endstore=FALSE; return 1; } else if (mergelocal->storefd==NULL) { _getobj(obj,"file",inst,&file); if (file==NULL) return 1; style=3; argv2[0]=(char *)&style; argv2[1]=NULL; if (_exeobj(obj,"date",inst,1,argv2)) return 1; style=0; argv2[0]=(char *)&style; argv2[1]=NULL; if (_exeobj(obj,"time",inst,1,argv2)) return 1; _getobj(obj,"date",inst,&date); if(date == NULL) { date = "1-1-1970"; } _getobj(obj,"time",inst,&time); if(time == NULL) { time = "00:00:00"; } if ((base=getbasename(file))==NULL) return 1; if ((mergelocal->storefd=nfopen(file,"rt"))==NULL) { g_free(base); return 1; } buf = g_strdup_printf("merge::load_data '%s' '%s %s' <<'[EOF]'", base, date, time); g_free(base); if (buf == NULL) { fclose(mergelocal->storefd); mergelocal->storefd=NULL; return 1; } rval->str=buf; return 0; } else { if (fgetline(mergelocal->storefd,&buf)!=0) { fclose(mergelocal->storefd); mergelocal->storefd=NULL; buf = g_strdup("[EOF]\n"); if (buf == NULL) return 1; mergelocal->endstore=TRUE; rval->str=buf; return 0; } else { rval->str=buf; return 0; } } } static int mergeload(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *s; int len; char *file,*fullname,*oldfile,*mes; time_t ftime; int mkdata; char buf[2]; FILE *fp; struct utimbuf tm; s=(char *)argv[2]; if ((file=getitok2(&s,&len," \t"))==NULL) return 1; if ((fullname=getfullpath(file))==NULL) { g_free(file); return 1; } _getobj(obj,"file",inst,&oldfile); g_free(oldfile); _putobj(obj,"file",inst,fullname); if (gettimeval(s,&ftime)) { g_free(file); return 1; } if (naccess(file,R_OK)!=0) mkdata=TRUE; else { if ((mes=g_malloc(strlen(file)+256))==NULL) { g_free(file); return 1; } sprintf(mes,"`%s' Overwrite existing file?",file); mkdata=inputyn(mes); g_free(mes); } if (mkdata) { if ((fp=nfopen(file,"wt"))==NULL) { error2(obj,ERROPEN,file); g_free(file); return 1; } while (nread(stdinfd(),buf,1)==1) fputc(buf[0],fp); fclose(fp); tm.actime=ftime; tm.modtime=ftime; utime(file,&tm); } g_free(file); return 0; } static int mergestoredum(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct mergelocal *mergelocal; char *file,*base,*date,*time; int style; char *buf; char *argv2[2]; g_free(rval->str); rval->str=NULL; _getobj(obj,"_local",inst,&mergelocal); if (mergelocal->endstore) { mergelocal->endstore=FALSE; return 1; } else { _getobj(obj,"file",inst,&file); if (file==NULL) return 1; style=3; argv2[0]=(char *)&style; argv2[1]=NULL; if (_exeobj(obj,"date",inst,1,argv2)) return 1; style=0; argv2[0]=(char *)&style; argv2[1]=NULL; if (_exeobj(obj,"time",inst,1,argv2)) return 1; _getobj(obj,"date",inst,&date); if(date == NULL) { date = "1-1-1970"; } _getobj(obj,"time",inst,&time); if(time == NULL) { time = "00:00:00"; } if ((base=getbasename(file))==NULL) return 1; buf = g_strdup_printf("merge::load_dummy '%s' '%s %s'\n", base, date, time); g_free(base); if (buf == NULL) { return 1; } rval->str=buf; mergelocal->endstore=TRUE; return 0; } } static int mergeloaddum(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *s; int len; char *file,*fullname,*oldfile; s=(char *)argv[2]; if ((file=getitok2(&s,&len," \t"))==NULL) return 1; if ((fullname=getfullpath(file))==NULL) { g_free(file); return 1; } _getobj(obj,"file",inst,&oldfile); g_free(oldfile); _putobj(obj,"file",inst,fullname); return 0; } static int mergebbox(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; char *file,*graf; int lm,tm,zm; int newgra,rcode; struct objlist *sys; FILE *fd; char *buf; struct GRAbbox bbox; int GC; array=rval->array; if (arraynum(array)!=0) return 0; _getobj(obj,"file",inst,&file); _getobj(obj,"left_margin",inst,&lm); _getobj(obj,"top_margin",inst,&tm); _getobj(obj,"zoom",inst,&zm); if (file==NULL) return 1; if ((sys=getobject("system"))==NULL) return 1; if (getobj(sys,"GRAF",0,0,NULL,&graf)) return 1; if ((fd=nfopen(file,"rt"))==NULL) return 1; if ((rcode=fgetline(fd,&buf))!=0) { fclose(fd); return 1; } if (strcmp(graf,buf)==0) newgra=TRUE; else if (strcmp(" Ngraph GRA file",buf)==0) newgra=FALSE; else { g_free(buf); fclose(fd); return 1; } g_free(buf); if (!newgra) { if ((rcode=fgetline(fd,&buf))!=0) { fclose(fd); return 1; } g_free(buf); } GRAinitbbox(&bbox); if ((GC=_GRAopencallback(GRAboundingbox,NULL,&bbox))==-1) { GRAendbbox(&bbox); fclose(fd); return 1; } GRAinit(GC,0,0,21000,29300,10000); while ((rcode=fgetline(fd,&buf))!=1) { if (rcode==-1) { fclose(fd); return 1; } if (newgra) rcode=GRAinput(GC,buf,lm,tm,zm); else rcode=GRAinputold(GC,buf,lm,tm,zm); if (!rcode) { g_free(buf); fclose(fd); return 1; } g_free(buf); } fclose(fd); _GRAclose(GC); GRAendbbox(&bbox); if ((array==NULL) && ((array=arraynew(sizeof(int)))==NULL)) return 1; arrayins(array,&bbox.maxy,0); arrayins(array,&bbox.maxx,0); arrayins(array,&bbox.miny,0); arrayins(array,&bbox.minx,0); if (arraynum(array)==0) { arrayfree(array); rval->array = NULL; return 1; } rval->array=array; return 0; } static int mergemove(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int lm,tm; _getobj(obj,"left_margin",inst,&lm); _getobj(obj,"top_margin",inst,&tm); lm+=*(int *)argv[2]; tm+=*(int *)argv[3]; if (_putobj(obj,"left_margin",inst,&lm)) return 1; if (_putobj(obj,"top_margin",inst,&tm)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } #define ZOOM_MAX 1000000 static int mergezoom(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int lm,tm,zm; double zoom; int refx,refy; zoom=(*(int *)argv[2])/10000.0; refx=(*(int *)argv[3]); refy=(*(int *)argv[4]); _getobj(obj,"left_margin",inst,&lm); _getobj(obj,"top_margin",inst,&tm); _getobj(obj,"zoom",inst,&zm); lm=(lm-refx)*zoom+refx; tm=(tm-refy)*zoom+refy; if (zm * zoom > ZOOM_MAX) { return 0; } zm=zm*zoom; if (_putobj(obj,"left_margin",inst,&lm)) return 1; if (_putobj(obj,"top_margin",inst,&tm)) return 1; if (_putobj(obj,"zoom",inst,&zm)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int mergematch(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int minx,miny,maxx,maxy,err; int bminx,bminy,bmaxx,bmaxy; struct narray *array; rval->i=FALSE; if (_exeobj(obj,"bbox",inst,0,NULL)) return 1; _getobj(obj,"bbox",inst,&array); if (array==NULL) return 0; minx=*(int *)argv[2]; miny=*(int *)argv[3]; maxx=*(int *)argv[4]; maxy=*(int *)argv[5]; err=*(int *)argv[6]; if (arraynum(array)<4) return 1; bminx=arraynget_int(array,0); bminy=arraynget_int(array,1); bmaxx=arraynget_int(array,2); bmaxy=arraynget_int(array,3); if ((minx==maxx) && (miny==maxy)) { bminx-=err; bminy-=err; bmaxx+=err; bmaxy+=err; if ((bminx<=minx) && (minx<=bmaxx) && (bminy<=miny) && (miny<=bmaxy)) rval->i=TRUE; } else { if ((minx<=bminx) && (bminx<=maxx) && (minx<=bmaxx) && (bmaxx<=maxx) && (miny<=bminy) && (bminy<=maxy) && (miny<=bmaxy) && (bmaxy<=maxy)) rval->i=TRUE; } return 0; } static int mergegeometry(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *field; field=(char *)(argv[1]); if (strcmp(field,"zoom")==0) { int *z = (int *) (argv[2]); if (*z > ZOOM_MAX) { *z = ZOOM_MAX; } else if (*z < 1) { *z = 1; } } if (clear_bbox(obj, inst)){ return 1; } return 0; } static struct objtable merge[] = { {"init",NVFUNC,NEXEC,mergeinit,NULL,0}, {"done",NVFUNC,NEXEC,mergedone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"file",NSTR,NREAD|NWRITE,mergefile,NULL,0}, {"save_path",NENUM,NREAD|NWRITE,NULL,pathchar,0}, {"top_margin",NINT,NREAD|NWRITE,mergegeometry,NULL,0}, {"left_margin",NINT,NREAD|NWRITE,mergegeometry,NULL,0}, {"zoom",NINT,NREAD|NWRITE,mergegeometry,NULL,0}, {"draw",NVFUNC,NREAD|NEXEC,mergedraw,"i",0}, {"redraw",NVFUNC,NREAD|NEXEC,mergeredraw,"i",0}, {"save",NSFUNC,NREAD|NEXEC,pathsave,"sa",0}, {"store_data",NSFUNC,NREAD|NEXEC,mergestore,"",0}, {"load_data",NVFUNC,NREAD|NEXEC,mergeload,"s",0}, {"store_dummy",NSFUNC,NREAD|NEXEC,mergestoredum,"",0}, {"load_dummy",NVFUNC,NREAD|NEXEC,mergeloaddum,"s",0}, {"time",NSFUNC,NREAD|NEXEC,mergetime,"i",0}, {"date",NSFUNC,NREAD|NEXEC,mergedate,"i",0}, {"line_num",NINT,NREAD,NULL,NULL,0}, {"bbox",NIAFUNC,NREAD|NEXEC,mergebbox,"",0}, {"move",NVFUNC,NREAD|NEXEC,mergemove,"ii",0}, {"zooming",NVFUNC,NREAD|NEXEC,mergezoom,"iiii",0}, {"match",NBFUNC,NREAD|NEXEC,mergematch,"iiiii",0}, {"ext",NSTR,NREAD,NULL,NULL,0}, {"_local",NPOINTER,0,NULL,NULL,0}, {"symbol_greek",NBOOL,NWRITE,NULL,NULL,0}, }; #define TBLNUM (sizeof(merge) / sizeof(*merge)) void * addmerge(void) /* addmerge() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,merge,ERRNUM,mergeerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/axis.c0000644000175000017500000001677212241111703012556 00000000000000/* * $Id: axis.c,v 1.7 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include "mathfn.h" #include "object.h" #include "axis.h" double scale(double x) { return pow(10.0,cutdown(log10(fabs(x)))); } double roundmin(double min,double sc) { return nraise(min/sc)*sc; } static void getaxispositionfirst(struct axislocal *alocal) { double min,max,inc; int numlim1,numlim2,numlim3; if (alocal->tighten) { numlim1=6; numlim2=11; numlim3=21; } else { numlim1=2; numlim2=3; numlim3=6; } if ((alocal->atype==AXISNORMAL) || (alocal->atype==AXISLOGBIG)) { if (alocal->div<=0) { if (alocal->num<=numlim1) alocal->countsend=10; else if (alocal->num<=numlim2) alocal->countsend=5; else if (alocal->num<=numlim3) alocal->countsend=2; else alocal->countsend=1; } else alocal->countsend=alocal->div; alocal->dposl=alocal->inc*10; alocal->posl=roundmin(alocal->posst,alocal->dposl)-alocal->dposl; alocal->dposm=alocal->inc; alocal->posm=roundmin(alocal->posst,alocal->dposm)-alocal->dposm; alocal->countmend=10; alocal->countm= nround((roundmin(alocal->posst,alocal->dposm)-alocal->posl)/alocal->dposm); alocal->dposs=alocal->dposm/alocal->countsend; alocal->counts=1; } else if (alocal->atype==AXISINVERSE) { if (alocal->div<=0) { if (alocal->num<=numlim1) alocal->countsend=10; else if (alocal->num<=numlim2) alocal->countsend=5; else if (alocal->num<=numlim3) alocal->countsend=2; else alocal->countsend=1; } else alocal->countsend=alocal->div; if (((alocal->max>alocal->min) && (alocal->min>0)) || ((alocal->maxmin) && (alocal->min<0))) { max=alocal->min; min=alocal->max; inc=alocal->inc*(-1); } else { min=alocal->min; max=alocal->max; inc=alocal->inc; } alocal->dposm=inc; alocal->posm=roundmin(min,alocal->dposm)-alocal->dposm; alocal->countmend=(max-alocal->posm)/alocal->dposm; alocal->countm=1; alocal->dposl=alocal->dposm*alocal->countmend; alocal->posl=alocal->posm; alocal->dposs=alocal->dposm/alocal->countsend; alocal->counts=1; } else if (alocal->atype==AXISLOGNORM) { if (alocal->div==1) { alocal->countsend=1; if (alocal->inc>0) alocal->dposs=9; else alocal->dposs=-0.9; } else if (alocal->div==2) { alocal->countsend=2; if (alocal->inc>0) alocal->dposs=4; else alocal->dposs=-0.5; } else { alocal->countsend=9; if (alocal->inc>0) alocal->dposs=1; else alocal->dposs=-0.1; } alocal->dposl=alocal->inc*10; alocal->posl=roundmin(alocal->posst,alocal->dposl)-alocal->dposl; alocal->dposm=alocal->inc; alocal->posm=roundmin(alocal->posst,alocal->dposm)-alocal->dposm; alocal->countmend=10; alocal->countm= nround((roundmin(alocal->posst,alocal->dposm)-alocal->posl)/alocal->dposm); alocal->counts=1; } else if (alocal->atype==AXISLOGSMALL) { if (alocal->div<=0) { if (alocal->num<=numlim1) alocal->countsend=10; else if (alocal->num<=numlim2) alocal->countsend=5; else if (alocal->num<=numlim3) alocal->countsend=2; else alocal->countsend=1; } else alocal->countsend=alocal->div; alocal->dposl=alocal->inc; alocal->posl=roundmin(alocal->posst,alocal->dposl)-alocal->dposl; if (alocal->dposl>0) alocal->dposm=1; else alocal->dposm=-0.1; alocal->posm=alocal->posl; alocal->countmend=9; alocal->countm=1; alocal->dposs=1.0/alocal->countsend; alocal->counts=1; } alocal->count=0; } int getaxisposition(struct axislocal *alocal, /*@out@*/ double *po) { int rcode; double dd; if (alocal->counts>=alocal->countsend) { if (alocal->atype==AXISLOGSMALL) *po=alocal->posl+log10(1.0+alocal->countm*alocal->dposm); else *po=alocal->posm+alocal->dposm; alocal->posm=*po; alocal->counts=1; rcode=2; if (alocal->countm==alocal->countmend) { *po=alocal->posl+alocal->dposl; alocal->posl=*po; alocal->countm=1; rcode=3; if (alocal->atype==AXISINVERSE) { if (((alocal->dposm>=0) && (alocal->min>=0)) || ((alocal->dposm<0) && (alocal->min<0))) dd=10; else dd=0.1; alocal->dposl*=dd; alocal->dposm*=dd; alocal->dposs*=dd; alocal->countmend=-1; } } else alocal->countm++; } else { rcode=1; if (alocal->atype==AXISLOGNORM) *po=alocal->posm+log10(1.0+alocal->counts*alocal->dposs); else if (alocal->atype==AXISLOGSMALL) *po=log10(pow(10.0, alocal->posm) + alocal->counts * alocal->dposs * pow(10.0, alocal->posl) * alocal->dposm); else *po=alocal->posm+alocal->counts*alocal->dposs; alocal->counts++; } if (fabs(*po/alocal->dposs)<1E-14) *po=0; if ((*po-alocal->posst)*(*po-alocal->posed)>0) { if (alocal->dposm>=0) { if (((alocal->posst<=alocal->posed) && (*poposst)) || ((alocal->posst>=alocal->posed) && (*poposed))) rcode=-1; else rcode=-2; } else { if (((alocal->posst<=alocal->posed) && (*po>alocal->posed)) || ((alocal->posst>=alocal->posed) && (*po>alocal->posst))) rcode=-1; else rcode=-2; } } if ((alocal->atype==AXISINVERSE) && (rcode>=0)) *po=1 / *po; alocal->count++; if (alocal->count>=10000) rcode=-2; return rcode; } int getaxispositionini(struct axislocal *alocal, int type, double min,double max,double inc,int div,int tighten) { double po; int rcode; int num; if (compare_double(min, max)) return -1; if (compare_double(inc, 0)) return -1; if (type==AXIS_TYPE_LOG) { if ((min<=0) || (max<=0)) return -1; if (compare_double(fabs(inc), 10)) { alocal->atype=AXISLOGNORM; } else if (compare_double(fabs(inc), 1)) { alocal->atype=AXISLOGSMALL; } else { alocal->atype=AXISLOGBIG; } alocal->min=log10(min); alocal->max=log10(max); alocal->inc=log10(fabs(inc)); if (alocal->atype==AXISLOGSMALL) alocal->inc=1; } else if (type==AXIS_TYPE_INVERSE) { if (min*max<=0) return -1; alocal->atype=AXISINVERSE; alocal->min=min; alocal->max=max; alocal->inc=inc; } else { alocal->atype=AXISNORMAL; alocal->min=min; alocal->max=max; alocal->inc=inc; } if (alocal->maxmin) alocal->inc=-fabs(alocal->inc); else alocal->inc=fabs(alocal->inc); alocal->div=div; alocal->posst=alocal->min; alocal->posed=alocal->max; alocal->num=100; alocal->tighten=tighten; getaxispositionfirst(alocal); num=0; while ((rcode=getaxisposition(alocal,&po))!=-2) { if (rcode>=2) num++; } alocal->num=num; if (alocal->count>1000) return -1; getaxispositionfirst(alocal); return 0; } ngraph-gtk-6.06.13/src/odouble.c0000644000175000017500000000362412241111703013233 00000000000000/* * $Id: odouble.c,v 1.6 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include "object.h" #define NAME "double" #define PARENT "object" #define OVERSION "1.00.00" #define ERRILNAME 100 static char *doubleerrorlist[]={ "" }; #define ERRNUM (sizeof(doubleerrorlist) / sizeof(*doubleerrorlist)) static int doubleinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int doubledone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static struct objtable odouble[] = { {"init",NVFUNC,NEXEC,doubleinit,NULL,0}, {"done",NVFUNC,NEXEC,doubledone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"@",NDOUBLE,NREAD|NWRITE,NULL,NULL,0}, }; #define TBLNUM (sizeof(odouble) / sizeof(*odouble)) void * adddouble(void) { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,odouble,ERRNUM,doubleerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/object.h0000644000175000017500000002564712241111706013071 00000000000000/* * $Id: object.h,v 1.20 2010-01-04 05:11:28 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef N_OBJECT_HEADER #define N_OBJECT_HEADER #define TEXT_SIZE_MIN 500 #include "nhash.h" #include "ngraph.h" struct objlist; struct objtable; enum OBJ_LIST_SPECIFIED_TYPE { OBJ_LIST_SPECIFIED_NOT_FOUND, OBJ_LIST_SPECIFIED_BY_ID, OBJ_LIST_SPECIFIED_BY_OID, OBJ_LIST_SPECIFIED_BY_NAME, OBJ_LIST_SPECIFIED_BY_OTHER, }; union n_value { int i; double d; char *str; struct narray *array; void *ptr; union n_value *inst; }; typedef union n_value N_VALUE; typedef int (*Proc)(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv); typedef int (*DoneProc)(struct objlist *obj,void *local); struct objtable { char *name; enum ngraph_object_field_type type; int attrib; Proc proc; void *arglist; int offset; }; struct objlist { int id; int curinst; int lastinst; int lastoid; char *name; char *alias; char *ver; int tblnum, fieldnum; struct objtable *table; NHASH table_hash; int size; int errnum; char **errtable; N_VALUE *root; N_VALUE *root2; int lastinst2; struct objlist *parent; struct objlist *next, *child; int idp,oidp,nextp; void *local; DoneProc doneproc; }; struct narray { unsigned int size; unsigned int base; unsigned int num; void *data; }; struct loopproc; struct loopproc { struct loopproc *next; char *objname; char *evname; struct objlist *obj; int idn; N_VALUE *inst; void *local; }; #define ERRUNKNOWN 0 #define ERRHEAP 1 #define ERRPARENT 2 #define ERRDUP 3 #define ERROBJNUM 4 #define ERRINSTNUM 5 #define ERROBJFOUND 6 #define ERRVALFOUND 7 #define ERRNONEXT 8 #define ERRNOID 9 #define ERRIDFOUND 10 #define ERROIDFOUND 11 #define ERRNMFOUND 12 #define ERRDESTRUCT 13 #define ERRPERMISSION 14 #define ERROBJCINST 15 #define ERRNOINST 16 #define ERRILOBJ 17 #define ERRILINST 18 #define ERRFIELD 19 #define ERROEXTARG 20 #define ERROSMLARG 21 #define ERROVALUE 22 #define ERROVERWRITE 23 extern int (*getstdin)(void); extern int (*putstdout)(const char *s); extern int (*putstderr)(const char *s); extern int (*printfstdout)(char *fmt,...); extern int (*printfstderr)(char *fmt,...); extern int (*ninterrupt)(void); extern int (*inputyn)(const char *mes); extern void (*ndisplaydialog)(const char *str); extern void (*ndisplaystatus)(const char *str); struct savedstdio { int (*getstdin)(void); int (*putstdout)(const char *s); int (*putstderr)(const char *s); int (*printfstdout)(char *fmt,...); int (*printfstderr)(char *fmt,...); int (*ninterrupt)(void); int (*inputyn)(const char *mes); void (*ndisplaydialog)(const char *str); void (*ndisplaystatus)(const char *str); }; extern struct savedstdio stdiosave; int seputs(const char *s); int seprintf(char *fmt,...); void error(struct objlist *obj,int code); void error2(struct objlist *obj,int code, const char *mes); void error22(struct objlist *obj,int code, const char *mes1, const char *mes2); void error3(struct objlist *obj,int code,int num); void ignorestdio(struct savedstdio *save); void restorestdio(struct savedstdio *save); void savestdio(struct savedstdio *save); void loadstdio(struct savedstdio *save); void arrayinit(struct narray *array,unsigned int base); struct narray *arraynew(unsigned int base); void *arraydata(struct narray *array); unsigned int arraynum(struct narray *array); void arraydel(struct narray *array); void arraydel2(struct narray *array); void arrayclear(struct narray *array); void arrayclear2(struct narray *array); void arrayfree(struct narray *array); void arrayfree2(struct narray *array); struct narray *arrayadd(struct narray *array,const void *val); struct narray *arrayadd2(struct narray *array,const char *val); struct narray *arrayins(struct narray *array,const void *val,unsigned int idx); struct narray *arrayins2(struct narray *array,const char *val,unsigned int idx); struct narray *arrayndel(struct narray *array,unsigned int idx); struct narray *arrayndel2(struct narray *array,unsigned int idx); struct narray *arrayput(struct narray *array,const void *val,unsigned int idx); struct narray *arrayput2(struct narray *array,const char *val,unsigned int idx); struct narray *array_reverse(struct narray *array); struct narray *array_slice(struct narray *array, int start, int length); struct narray *array_slice2(struct narray *array, int start, int length); void *arraynget(struct narray *array,unsigned int idx); int arraynget_int(struct narray *array, unsigned int idx); double arraynget_double(struct narray *array, unsigned int idx); char *arraynget_str(struct narray *array, unsigned int idx); void *arraylast(struct narray *array); int arraylast_int(struct narray *array); void arraysort_int(struct narray *array); void arrayrsort_int(struct narray *array); void arrayuniq_int(struct narray *array); void arraysort_double(struct narray *array); void arrayrsort_double(struct narray *array); void arrayuniq_double(struct narray *array); void arrayrsort_str(struct narray *array); void arraysort_str(struct narray *array); void arrayuniq_str(struct narray *array); int getargc(char **arg); char **arg_add(char ***arg,void *ptr); void arg_del(char **arg); void registerevloop(char *objname, char *evname, struct objlist *obj,int idn,N_VALUE *inst,void *local); void unregisterevloop(struct objlist *obj,int idn,N_VALUE *inst); void eventloop(void); struct objlist *chkobjroot(void); void *addobject(char *name,char *alias,char *parentname, char *ver,int tblnum,struct objtable *table, int errnum,char **errtable,void *local,DoneProc doneproc); void hideinstance(struct objlist *obj); void recoverinstance(struct objlist *obj); struct objlist *chkobject(const char *name); int chkobjectid(struct objlist *obj); char *chkobjectname(struct objlist *obj); char *chkobjectalias(struct objlist *obj); struct objlist *chkobjparent(struct objlist *obj); int chkobjchild(struct objlist *parent,struct objlist *child); char *chkobjver(struct objlist *obj); int chkobjsize(struct objlist *obj); int chkobjlastinst(struct objlist *obj); int chkobjcurinst(struct objlist *obj); int chkobjoffset(struct objlist *obj, const char *name); int chkobjoffset2(struct objlist *obj,int tblpos); N_VALUE *chkobjinstoid(struct objlist *obj,int oid); N_VALUE *chkobjinst(struct objlist *obj,int id); int chkobjoid(struct objlist *obj,int oid); int chkobjfieldnum(struct objlist *obj); char *chkobjfieldname(struct objlist *obj,int num); int chkobjfield(struct objlist *obj, const char *name); int chkobjperm(struct objlist *obj, const char *name); enum ngraph_object_field_type chkobjfieldtype(struct objlist *obj, const char *name); const char *chkobjarglist(struct objlist *obj, const char *name); struct objlist *getobject(const char *name); char *getobjver(const char *name); char *getobjectname(struct objlist *obj); int getobjoffset(struct objlist *obj, const char *name); int getobjtblpos(struct objlist *obj, const char *name,struct objlist **robj); N_VALUE *getobjinstoid(struct objlist *obj,int oid); N_VALUE *getobjinst(struct objlist *obj,int id); int getobjfield(struct objlist *obj, const char *name); int _putobj(struct objlist *obj, const char *vname,N_VALUE *inst,void *val); int _getobj(struct objlist *obj, const char *vname,N_VALUE *inst,void *val); int _exeparent(struct objlist *obj,const char *vname,N_VALUE *inst,N_VALUE *rval, int argc,char **argv); int _exeobj(struct objlist *obj,const char *vname,N_VALUE *inst,int argc,char **argv); int __exeobj(struct objlist *obj,int idn,N_VALUE *inst,int argc,char **argv); int copyobj(struct objlist *obj, const char *vname,int did,int sid); int newobj(struct objlist *obj); int newobj_alias(struct objlist *obj, const char *name); int delobj(struct objlist *obj,int delid); int putobj(struct objlist *obj, const char *vname,int id,void *val); int getobj(struct objlist *obj, const char *vname,int id, int argc,char **argv,void *val); int exeobj(struct objlist *obj,const char *vname,int id,int argc,char **argv); int moveobj(struct objlist *obj,int did,int sid); int moveupobj(struct objlist *obj,int id); int movetopobj(struct objlist *obj,int id); int movedownobj(struct objlist *obj,int id); int movelastobj(struct objlist *obj,int id); int exchobj(struct objlist *obj,int id1,int id2); void set_newobj_cb(void (* newobj_cb)(struct objlist *obj)); void set_delobj_cb(void (* delobj_cb)(struct objlist *obj)); int getobjiname(char *s, char **name, char **ptr); int chkobjilist(char *s,struct objlist **obj,struct narray *iarray, int def,int *spc); int getobjilist(char *s,struct objlist **obj,struct narray *iarray, int def,int *spc); int chkobjilist2(char **s,struct objlist **obj,struct narray *iarray, int def); char *mkobjlist(struct objlist *obj, const char *objname,int id, const char *field,int oid); struct objlist *getobjlist(char *list,int *id,char **field,int *oid); char *chgobjlist(char *olist); char *getvaluestr(struct objlist *obj, const char *field,void *val,int cr,int quote); int isobject(char **s); int schkobjfield(struct objlist *obj,int id, const char *field,char *arg, char **valstr,int limittype,int cr,int quote); int sgetobjfield(struct objlist *obj,int id, const char *field,char *arg, char **valstr,int limittype,int cr,int quote); int sgetfield(struct objlist *obj,int id,char *arg,char **valstr, int limittype,int cr,int quote); struct narray *sgetobj(char *arg,int limittype,int cr,int quote); int sputobjfield(struct objlist *obj,int id, const char *field,char *arg); int sputfield(struct objlist *obj,int id,char *arg); int sputobj(char *arg); int sexefield(struct objlist *obj,int id,char *arg); int sexeobj(char *arg); int has_eventloop(void); void obj_do_tighten(struct objlist *obj, N_VALUE *inst, const char *field); int getobjilist2(char **s,struct objlist **obj,struct narray *iarray,int def); void delchildobj(struct objlist *parent); int vinterrupt(void); int vinputyn(const char *mes); int copy_obj_field(struct objlist *obj, int dist, int src, char **ignore_field); int str_calc(const char *str, double *val, int *r, char **err_msg); #endif ngraph-gtk-6.06.13/src/shellux.c0000644000175000017500000002242712241111703013270 00000000000000/* * $Id: shellux.c,v 1.9 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include "nstring.h" #include "object.h" #include "ioutil.h" #include "shell.h" #include "shellux.h" int cmtrue(struct nshell *nshell,int argc,char **argv) { return 0; } int cmfalse(struct nshell *nshell,int argc,char **argv) { return 1; } int cmsleep(struct nshell *nshell,int argc,char **argv) { int a; char *arg,*endptr; if (argc<2) { sherror4(argv[0],ERRSMLARG); return ERRSMLARG; } arg=argv[1]; a=strtol(arg,&endptr,10); if (endptr[0]!='\0') { sherror3(argv[0],ERRNUMERIC,arg); return ERRNUMERIC; } nsleep(a); return 0; } static int testexpand(int pre,int *oppo,int *numpo, int numbuf[],char *numbufc[],char opbuf[],int prebuf[]) { int argnum; int d1,d2; char *endptr1,*endptr2; GStatBuf buf; while ((*oppo>=0) && (pre<=prebuf[*oppo])) { if (strchr("!nzdefrswx",opbuf[*oppo])!=NULL) argnum=1; else argnum=2; switch (opbuf[*oppo]) { case 'n': if (numbufc[*numpo]==NULL) return FALSE; numbuf[*numpo]=(numbufc[*numpo][0]=='\0')?FALSE:TRUE; numbufc[*numpo]=NULL; break; case 'z': if (numbufc[*numpo]==NULL) return FALSE; numbuf[*numpo]=(numbufc[*numpo][0]=='\0')?TRUE:FALSE; numbufc[*numpo]=NULL; break; case 'd': case 'f': case 'e': case 'r': case 'w': case 'x': case 's': if (numbufc[*numpo]==NULL) return FALSE; if (nstat(numbufc[*numpo],&buf)!=0) { numbuf[*numpo]=FALSE; numbufc[*numpo]=NULL; break; } switch (opbuf[*oppo]) { case 'd': numbuf[*numpo]=((buf.st_mode & S_IFMT)==S_IFDIR)?TRUE:FALSE; break; case 'f': numbuf[*numpo]=((buf.st_mode & S_IFMT)==S_IFREG)?TRUE:FALSE; break; case 'e': numbuf[*numpo]=TRUE; break; case 'r': numbuf[*numpo]=((buf.st_mode & S_IREAD)!=0)?TRUE:FALSE; break; case 'w': numbuf[*numpo]=((buf.st_mode & S_IWRITE)!=0)?TRUE:FALSE; break; case 'x': numbuf[*numpo]=((buf.st_mode & S_IEXEC)!=0)?TRUE:FALSE; break; case 's': numbuf[*numpo]=(buf.st_size>0)?TRUE:FALSE; break; } numbufc[*numpo]=NULL; break; case '!': numbuf[*numpo]=(numbuf[*numpo])?FALSE:TRUE; numbufc[*numpo]=NULL; break; case 'o': numbuf[*numpo-1]=numbuf[*numpo-1] || numbuf[*numpo]; numbufc[*numpo]=NULL; break; case 'a': numbuf[*numpo-1]=numbuf[*numpo-1] && numbuf[*numpo]; numbufc[*numpo]=NULL; break; case '?': case '*': case '>': case '}': case '<': case '{': if ((numbufc[*numpo-1]==NULL) || (numbufc[*numpo]==NULL)) return FALSE; d1=strtol(numbufc[*numpo-1],&endptr1,10); d2=strtol(numbufc[*numpo],&endptr2,10); if ((endptr1[0]!='\0') || (endptr2[0]!='\0')) return FALSE; switch (opbuf[*oppo]) { case '?': numbuf[*numpo-1]=(d1==d2)?TRUE:FALSE; break; case '*': numbuf[*numpo-1]=(d1!=d2)?TRUE:FALSE; break; case '>': numbuf[*numpo-1]=(d1>d2)?TRUE:FALSE; break; case '}': numbuf[*numpo-1]=(d1>=d2)?TRUE:FALSE; break; case '<': numbuf[*numpo-1]=(d1=20) { sherror4(argv[0],ERRTESTNEST); return 1; } opbuf[oppo]='!'; prebuf[oppo]=4; i++; } else if (((strcmp2(argv[i],"-d")==0) || (strcmp2(argv[i],"-e")==0) || (strcmp2(argv[i],"-f")==0) || (strcmp2(argv[i],"-r")==0) || (strcmp2(argv[i],"-s")==0) || (strcmp2(argv[i],"-w")==0) || (strcmp2(argv[i],"-x")==0) || (strcmp2(argv[i],"-z")==0) || (strcmp2(argv[i],"-n")==0)) && ((i+1)=20) { sherror4(argv[0],ERRTESTNEST); return 1; } opbuf[oppo]='('; prebuf[oppo]=0; i++; } else { numpo++; if (numpo>=20) { sherror4(argv[0],ERRTESTNEST); return 1; } numbuf[numpo]=strlen(argv[i]); numbufc[numpo]=argv[i]; numeric=TRUE; i++; } } else { if (((strcmp2(argv[i],"-eq")==0) || (strcmp2(argv[i],"-ne")==0) || (strcmp2(argv[i],"-gt")==0) || (strcmp2(argv[i],"-ge")==0) || (strcmp2(argv[i],"-lt")==0) || (strcmp2(argv[i],"-le")==0) || (strcmp2(argv[i],"=")==0) || (strcmp2(argv[i],"!=")==0)) && ((i+1)=20) { sherror4(argv[0],ERRTESTNEST); return 1; } if (strcmp2(argv[i],"-eq")==0) opbuf[oppo]='?'; else if (strcmp2(argv[i],"-ne")==0) opbuf[oppo]='*'; else if (strcmp2(argv[i],"-gt")==0) opbuf[oppo]='>'; else if (strcmp2(argv[i],"-ge")==0) opbuf[oppo]='}'; else if (strcmp2(argv[i],"-lt")==0) opbuf[oppo]='<'; else if (strcmp2(argv[i],"-le")==0) opbuf[oppo]='{'; else if (strcmp2(argv[i],"=")==0) opbuf[oppo]='='; else if (strcmp2(argv[i],"!=")==0) opbuf[oppo]='+'; prebuf[oppo]=5; numeric=FALSE; i++; } else if (strcmp2(argv[i],")")==0) { if (!testexpand(1,&oppo,&numpo,numbuf,numbufc,opbuf,prebuf)) { sherror4(argv[0],ERRTESTSYNTAX); return 1; } if ((oppo!=-1) && (opbuf[oppo]=='(')) oppo--; numeric=TRUE; i++; } else if ((strcmp2(argv[i],"-a")==0) && ((i+1)=20) { sherror4(argv[0],ERRTESTNEST); return 1; } opbuf[oppo]=argv[i][1]; prebuf[oppo]=3; numeric=FALSE; i++; } else if ((strcmp2(argv[i],"-o")==0) && ((i+1)=20) { sherror4(argv[0],ERRTESTNEST); return 1; } opbuf[oppo]=argv[i][1]; prebuf[oppo]=2; numeric=FALSE; i++; } else if (strcmp2(argv[i],"]")==0) { i++; } else { sherror4(argv[0],ERRTESTSYNTAX); return 1; } } } if (!numeric || !testexpand(1,&oppo,&numpo,numbuf,numbufc,opbuf,prebuf)) { sherror4(argv[0],ERRTESTSYNTAX); return 1; } if ((oppo>-1) || (numpo!=0)) { sherror4(argv[0],ERRTESTSYNTAX); return 1; } if (numbuf[0]) return 0; else return 1; } ngraph-gtk-6.06.13/src/oiarray.h0000644000175000017500000000144212241111703013251 00000000000000#ifndef OIARRAY_HEADER #define OIARRAY_HEADER #include "math/math_equation.h" struct narray *oarray_get_array(struct objlist *obj, N_VALUE *inst, unsigned int size); MathEquation *oarray_create_math(struct objlist *obj, const char *fild, const char *eqn); int oarray_get_index(struct narray *array, int i); int oarray_seq(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); int oarray_reverse_seq(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); int oarray_reverse(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); int oarray_slice(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); int oarray_num(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); #endif /* OIARRAY_HEADER */ ngraph-gtk-6.06.13/src/osarray.c0000644000175000017500000002442412241111706013266 00000000000000/* * $Id: osarray.c,v 1.6 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include "object.h" #include "oiarray.h" #define NAME "sarray" #define PARENT "object" #define OVERSION "1.00.00" #define ERRREGEXP 100 #define ERROUTBOUND 101 static char *sarrayerrorlist[]={ "invalid regular expression." "array index is out of array bounds.", }; #define DEFAULT_DELIMITER "\\s+" struct osarray_local { GRegex *regexp; }; #define ERRNUM (sizeof(sarrayerrorlist) / sizeof(*sarrayerrorlist)) static int sarrayinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct osarray_local *local; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; local = g_malloc0(sizeof(*local)); if (local == NULL) { return 1; } if (_putobj(obj, "_local", inst, local)) { g_free(local); return 1; } local->regexp = g_regex_new(DEFAULT_DELIMITER, 0, 0, NULL); return 0; } static int sarraydone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct osarray_local *local; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj, "_local", inst, &local); if (local->regexp) { g_regex_unref(local->regexp); } return 0; } static int sarrayget(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; char **po; char *buf; g_free(rval->str); rval->str=NULL; num=*(int *)argv[2]; _getobj(obj,"@",inst,&array); num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } po=(char **)arraynget(array,num); if (po==NULL) { error(obj, ERROUTBOUND); return 1; } if ((buf=g_malloc(strlen(*po)+1))==NULL) return 1; strcpy(buf,*po); rval->str=buf; return 0; } static int sarrayput(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; char *val; num=*(int *)argv[2]; val=(char *)argv[3]; _getobj(obj,"@",inst,&array); num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } if (arrayput2(array,val,num)==NULL) return 1; return 0; } static int sarrayadd(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; char *val; val=(char *)argv[2]; array = oarray_get_array(obj, inst, sizeof(char *)); if (array == NULL) { return 1; } if (arrayadd2(array,val)==NULL) return 1; return 0; } static int sarraypop(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; char *val; int n; g_free(rval->str); rval->str = NULL; _getobj(obj, "@", inst, &array); if (array == NULL) { return 1; } n = arraynum(array) - 1; if (n < 0) { return 1; } val = arraynget_str(array, n); if (arrayndel(array, n) == NULL) { g_free(val); return 1; } if (arraynum(array) == 0) { arrayfree(array); if (_putobj(obj, "@", inst, NULL)) { g_free(val); return 1; } } rval->str = val; return 0; } static int sarrayins(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; char *val; num=*(int *)argv[2]; val=(char *)argv[3]; array = oarray_get_array(obj, inst, sizeof(char *)); if (array == NULL) { return 1; } num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } if (arrayins2(array,val,num)==NULL) return 1; return 0; } static int sarrayunshift(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; char *val; val = (char *) argv[2]; array = oarray_get_array(obj, inst, sizeof(char *)); if (array == NULL) { return 1; } if (arrayins2(array, val, 0)==NULL) { return 1; } return 0; } static int sarrayshift(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; char *val; g_free(rval->str); rval->str = NULL; _getobj(obj, "@", inst, &array); if (array == NULL) { return 1; } val = arraynget_str(array, 0); if (arrayndel(array, 0) == NULL) { g_free(val); return 1; } if (arraynum(array) == 0) { arrayfree(array); if (_putobj(obj, "@", inst, NULL)) { g_free(val); return 1; } } rval->str = val; return 0; } static int sarraydel(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; num=*(int *)argv[2]; _getobj(obj,"@",inst,&array); if (array==NULL) return 1; num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } if (arrayndel2(array,num)==NULL) { error(obj, ERROUTBOUND); return 1; } if (arraynum(array)==0) { arrayfree2(array); if (_putobj(obj,"@",inst,NULL)) return 1; } return 0; } static int set_delimiter(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct osarray_local *local; GRegex *regexp; char *str; str = (char *) argv[2]; if (str == NULL || str[0] == '\0') { str = DEFAULT_DELIMITER; } regexp = g_regex_new(str, 0, 0, NULL); if (regexp == NULL) { error(obj, ERRREGEXP); return 1; } _getobj(obj, "_local", inst, &local); if (local->regexp) { g_regex_unref(local->regexp); } local->regexp = regexp; return 0; } static int sarraysplit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct osarray_local *local; struct narray *array, *array2; int i; char *str, *delimiter, **sary; str = (char *) argv[2]; if (str == NULL) { return 0; } _getobj(obj, "_local", inst, &local); _getobj(obj, "delimiter", inst, &delimiter); if (delimiter == NULL) { delimiter = " "; } sary = g_regex_split(local->regexp, str, 0); if (sary == NULL) { return 1; } array = arraynew(sizeof(char *)); if (array == NULL) { g_strfreev(sary); return 1; } for (i = 0; sary[i]; i++) { if (arrayadd(array, sary + i) == NULL) { arrayfree(array); g_strfreev(sary); return 1; } } g_free(sary); /* don't free each element i.e. don't use g_strfreev() */ _getobj(obj, "@", inst, &array2); if (array2) { arrayfree2(array2); } if (_putobj(obj, "@", inst, array) == -1) { arrayfree2(array); return 1; } return 0; } static int sarrayjoin(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; GString *str; int i, n; char *sep, *val, *ptr; g_free(rval->str); rval->str = NULL; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } ptr = (char *) argv[2]; if (ptr) { sep = g_strcompress(ptr); } else { sep = g_strdup(","); } if (sep == NULL) { return 1; } str = g_string_sized_new(64); if (str == NULL) { g_free(sep); return 1; } for (i = 0; i < n; i++) { val = arraynget_str(array, i); g_string_append_printf(str, "%s%s", val, (i == n - 1) ? "" : sep); } rval->str = g_string_free(str, FALSE); g_free(sep); return 0; } static int sarraysort(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); arraysort_str(array); return 0; } static int sarrayrsort(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); arrayrsort_str(array); return 0; } static int sarrayuniq(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); arrayuniq_str(array); return 0; } static int sarray_slice(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int start, len; start = * (int *) argv[2]; len = * (int *) argv[3]; if (_getobj(obj, "@", inst, &array)) { return 1; } if (array_slice2(array, start, len) == NULL) { return 1; } return 0; } static struct objtable osarray[] = { {"init",NVFUNC,NEXEC,sarrayinit,NULL,0}, {"done",NVFUNC,NEXEC,sarraydone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"@",NSARRAY,NREAD|NWRITE,NULL,NULL,0}, {"delimiter",NSTR,NREAD|NWRITE,set_delimiter,NULL,0}, {"get",NSFUNC,NREAD|NEXEC,sarrayget,"i",0}, {"put",NVFUNC,NREAD|NEXEC,sarrayput,"is",0}, {"add",NVFUNC,NREAD|NEXEC,sarrayadd,"s",0}, {"push",NVFUNC,NREAD|NEXEC,sarrayadd,"s",0}, {"pop",NSFUNC,NREAD|NEXEC,sarraypop,"",0}, {"ins",NVFUNC,NREAD|NEXEC,sarrayins,"is",0}, {"unshift",NVFUNC,NREAD|NEXEC,sarrayunshift,"s",0}, {"shift",NSFUNC,NREAD|NEXEC,sarrayshift,"",0}, {"del",NVFUNC,NREAD|NEXEC,sarraydel,"i",0}, {"split",NVFUNC,NREAD|NEXEC,sarraysplit,"s",0}, {"join",NSFUNC,NREAD|NEXEC,sarrayjoin,"s",0}, {"sort",NVFUNC,NREAD|NEXEC,sarraysort,"s",0}, {"rsort",NVFUNC,NREAD|NEXEC,sarrayrsort,"s",0}, {"uniq", NSFUNC, NREAD|NEXEC, sarrayuniq, "", 0}, {"num", NIFUNC, NREAD|NEXEC, oarray_num, "", 0}, {"seq", NSFUNC, NREAD|NEXEC, oarray_seq, "", 0}, {"rseq", NSFUNC, NREAD|NEXEC, oarray_reverse_seq, "", 0}, {"reverse", NVFUNC, NREAD|NEXEC, oarray_reverse, "", 0}, {"slice", NVFUNC, NREAD|NEXEC, sarray_slice, "ii", 0}, {"_local",NPOINTER,0,NULL,NULL,0}, }; #define TBLNUM (sizeof(osarray) / sizeof(*osarray)) void * addsarray(void) { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,osarray,ERRNUM,sarrayerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/mathfn.h0000644000175000017500000000253312241111703013062 00000000000000/* * $Id: mathfn.h,v 1.6 2009-12-04 16:11:20 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #define MPI 3.1415926535897932385 #define MEXP1 2.71828182845905 #define MEULER 0.57721566490153286 typedef double vector[11]; typedef vector matrix[11]; double cutdown(double x); double nraise(double x); double frand(double a); int nround(double x); int matsolv(int dim,matrix a,vector b,vector x); void HSB2RGB(double h,double s,double b,int *R,int *G,int *B); int bsearch_int(int *ary, int n, int val, int *idx); int compare_double(double x, double y); ngraph-gtk-6.06.13/src/omath.c0000644000175000017500000002143212241111703012707 00000000000000/* * $Id: omath.c,v 1.22 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include "object.h" #include "mathcode.h" #include "mathfn.h" #include "math/math_equation.h" #define NAME "math" #define PARENT "object" #define OVERSION "1.00.00" #define ERRSYNTAX 100 #define ERRILLEGAL 101 #define ERRNEST 102 #define ERRARG 103 #define ERRSMLARG 104 static char *matherrorlist[]={ "syntax error.", "not allowed function.", "sum() or dif(): deep nest.", "illegal argument", "not enough argument." }; #define ERRNUM (sizeof(matherrorlist) / sizeof(*matherrorlist)) struct mlocal { double x; double y; double z; double val; int maxdim; MathEquation *code; int rcode; int idpx; int idpy; int idpz; int idpr; }; static void msettbl(N_VALUE *inst,struct mlocal *mlocal) { inst[mlocal->idpx].d=mlocal->x; inst[mlocal->idpy].d=mlocal->y; inst[mlocal->idpz].d=mlocal->z; inst[mlocal->idpr].i=mlocal->rcode; } static void mlocalclear(struct mlocal *mlocal,int memory) { math_equation_clear(mlocal->code); } static int minit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct mlocal *mlocal; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; if ((mlocal=g_malloc(sizeof(struct mlocal)))==NULL) goto errexit; if (_putobj(obj,"_local",inst,mlocal)) goto errexit; mlocal->x=0; mlocal->y=0; mlocal->z=0; mlocal->val=0; mlocal->code = math_equation_basic_new(); if (mlocal->code == NULL) goto errexit; if (math_equation_add_parameter(mlocal->code, 0, 1, 2, MATH_EQUATION_PARAMETAR_USE_ID)) { math_equation_free(mlocal->code); goto errexit; } if (math_equation_add_var(mlocal->code, "X") != 0) { math_equation_free(mlocal->code); goto errexit; } if (math_equation_add_var(mlocal->code, "Y") != 1) { math_equation_free(mlocal->code); goto errexit; } if (math_equation_add_var(mlocal->code, "Z") != 2) { math_equation_free(mlocal->code); goto errexit; } math_equation_parse(mlocal->code, "def f(x,y,z){0}"); math_equation_parse(mlocal->code, "def g(x,y,z){0}"); math_equation_parse(mlocal->code, "def h(x,y,z){0}"); mlocal->rcode=MATH_VALUE_NORMAL; mlocalclear(mlocal,TRUE); if (_putobj(obj,"formula",inst,NULL)) goto errexit; if (_putobj(obj,"f",inst,NULL)) goto errexit; if (_putobj(obj,"g",inst,NULL)) goto errexit; if (_putobj(obj,"h",inst,NULL)) goto errexit; mlocal->idpx=chkobjoffset(obj,"x"); mlocal->idpy=chkobjoffset(obj,"y"); mlocal->idpz=chkobjoffset(obj,"z"); mlocal->idpr=chkobjoffset(obj,"status"); msettbl(inst,mlocal); return 0; errexit: g_free(mlocal); return 1; } static int mdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct mlocal *mlocal; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"_local",inst,&mlocal); math_equation_free(mlocal->code); return 0; } static char * create_func_def_str(char *name, char *code) { return g_strdup_printf("def %s(x,y,z) {%s;}", name, code); } static void parse_original_formula(struct objlist *obj,N_VALUE *inst, struct mlocal *mlocal) { char *ptr; MathEquationParametar *prm; _getobj(obj, "formula", inst, &ptr); math_equation_parse(mlocal->code, ptr); math_equation_optimize(mlocal->code); prm = math_equation_get_parameter(mlocal->code, 0, NULL); if (prm == NULL) { mlocal->maxdim = 0; } else { mlocal->maxdim = prm->id_max; } } /* # following procedure causes error. new math math::formula="const A:1;A" get math: calc # calc:1.000000000000000e+00 math::formula="const A=1;A" get math: formula # formula:const A:1;A get math: calc # calc:0.000000000000000e+00 */ static int mformula(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *math; struct mlocal *mlocal; int rcode; char *ptr, *err_msg; MathEquationParametar *prm; math=argv[2]; _getobj(obj,"_local",inst,&mlocal); if (strcmp("formula",argv[1])==0) { if (math) { rcode = math_equation_parse(mlocal->code, math); if (rcode) { err_msg = math_err_get_error_message(mlocal->code, math, rcode); error22(obj, ERRUNKNOWN, argv[1], err_msg); g_free(err_msg); parse_original_formula(obj, inst, mlocal); return 1; } if (math_equation_optimize(mlocal->code)) { parse_original_formula(obj, inst, mlocal); return 1; } prm = math_equation_get_parameter(mlocal->code, 0, NULL); if (prm == NULL) { mlocal->maxdim = 0; } else { mlocal->maxdim = prm->id_max; } } } else { if (math) { ptr = create_func_def_str(argv[1], math); } else { ptr = create_func_def_str(argv[1], "0"); } if (ptr == NULL) { return 1; } rcode = math_equation_parse(mlocal->code, ptr); if (rcode) { err_msg = math_err_get_error_message(mlocal->code, math, rcode); error22(obj, ERRUNKNOWN, argv[1], err_msg); g_free(err_msg); parse_original_formula(obj, inst, mlocal); return 1; } if (math_equation_optimize(mlocal->code)) { parse_original_formula(obj, inst, mlocal); return 1; } g_free(ptr); parse_original_formula(obj, inst, mlocal); } msettbl(inst,mlocal); return 0; } static int mparam(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *arg; struct mlocal *mlocal; _getobj(obj, "_local", inst, &mlocal); arg = argv[1]; switch (arg[0]) { case 'x': mlocal->x = * (double *) argv[2]; break; case 'y': mlocal->y = * (double *) argv[2]; break; case 'z': mlocal->z = * (double *) argv[2]; break; } msettbl(inst, mlocal); return 0; } static int mcalc(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct mlocal *mlocal; int i,num; double *adata; struct narray *darray; int maxdim; MathValue val, *data; _getobj(obj,"_local",inst,&mlocal); maxdim=mlocal->maxdim; darray=(struct narray *)argv[2]; num=arraynum(darray); adata=arraydata(darray); if (numx; math_equation_set_var(mlocal->code, 0, &val); val.val = mlocal->y; math_equation_set_var(mlocal->code, 1, &val); val.val = mlocal->z; math_equation_set_var(mlocal->code, 2, &val); math_equation_set_parameter_data(mlocal->code, 0, data); math_equation_calculate(mlocal->code, &val); mlocal->val = val.val; mlocal->rcode = val.type; g_free(data); msettbl(inst,mlocal); rval->d=mlocal->val; return 0; } static int mclear(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct mlocal *mlocal; _getobj(obj,"_local",inst,&mlocal); mlocalclear(mlocal,TRUE); msettbl(inst,mlocal); return 0; } static struct objtable math[] = { {"init",NVFUNC,NEXEC,minit,NULL,0}, {"done",NVFUNC,NEXEC,mdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"formula",NSTR,NREAD|NWRITE,mformula,NULL,0}, {"f",NSTR,NREAD|NWRITE,mformula,NULL,0}, {"g",NSTR,NREAD|NWRITE,mformula,NULL,0}, {"h",NSTR,NREAD|NWRITE,mformula,NULL,0}, {"x",NDOUBLE,NREAD|NWRITE,mparam,NULL,0}, {"y",NDOUBLE,NREAD|NWRITE,mparam,NULL,0}, {"z",NDOUBLE,NREAD|NWRITE,mparam,NULL,0}, {"status",NENUM,NREAD,NULL,matherrorchar,0}, {"calc",NDFUNC,NREAD|NEXEC,mcalc,"da",0}, {"clear",NVFUNC,NREAD|NEXEC,mclear,"",0}, {"_local",NPOINTER,0,NULL,NULL,0}, }; #define TBLNUM (sizeof(math) / sizeof(*math)) void * addmath(void) /* addmath() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,math,ERRNUM,matherrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/nstring.h0000644000175000017500000000301112241111703013261 00000000000000/* * $Id: nstring.h,v 1.4 2009-11-16 09:13:04 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef NSTRING_HEADER #define NSTRING_HEADER #define STRLEN 256 #define CHK_STR(s) (((s) == NULL) ? "" : (s)) char *nstrnew(void); char *nstrccat(char *po,char ch); char *nstrcat(char *po,char *s); char *nstraddchar(char *po, int len, char ch); int strcmp0(const char *s1,const char *s2); int strcmp2(char *s1,char *s2); #define WILD_PATHNAME 2 #define WILD_PERIOD 4 int wildmatch(const char *pat, const char *s,int flags); char *getitok(char **s, int *len, const char *ifs); char *getitok2(char **s, int *len, const char *ifs); int add_printf_formated_str(GString *str, const char *format, const char *arg, int *len); #endif ngraph-gtk-6.06.13/src/nconfig.c0000644000175000017500000003352312241111703013226 00000000000000/* * $Id: nconfig.c,v 1.17 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include #include #include #include #include #include #include "common.h" #include "object.h" #include "nstring.h" #include "ioutil.h" #include "shell.h" #include "nconfig.h" #include #define CONF "Ngraph.ini" #define CONFBAK "Ngraph.ini~" #define LOCK "Ngraph.lock" #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif char * getscriptname(char *file) { struct objlist *sys; char *homedir,*s; if ((sys=getobject("system"))==NULL) return NULL; if (getobj(sys,"home_dir",0,0,NULL,&homedir)==-1) return NULL; s=getfilename(homedir,CONFTOP,file); return s; } char * searchscript(char *file) { struct objlist *sys; char *libdir,*homedir,*s; if ((sys=getobject("system"))==NULL) return NULL; if (getobj(sys,"home_dir",0,0,NULL,&homedir)==-1) return NULL; if (getobj(sys,"conf_dir",0,0,NULL,&libdir)==-1) return NULL; if (!findfilename(homedir,CONFTOP,file)) { if (!findfilename(libdir,CONFTOP,file)) return NULL; if ((s=getfilename(libdir,CONFTOP,file))==NULL) return NULL; } else { if ((s=getfilename(homedir,CONFTOP,file))==NULL) return NULL; } return s; } static int configlocked(char *dir) { if (findfilename(dir,CONFSEP,LOCK)) return TRUE; else return FALSE; } static void lockconfig(char *dir) { char *file; FILE *fp; while (configlocked(dir)) { msleep(100); } if ((file=getfilename(dir,CONFSEP,LOCK))==NULL) return; if ((fp=nfopen(file,"wt"))==NULL) { g_free(file); return; } fputs("Ngraph.ini is locked",fp); fclose(fp); g_free(file); } static void unlockconfig(char *dir) { char *file; if (!findfilename(dir,CONFSEP,LOCK)) return; if ((file=getfilename(dir,CONFSEP,LOCK))==NULL) return; g_unlink(file); g_free(file); } FILE * openconfig(char *section) { struct objlist *sys; char *libdir,*s,*homedir,*homeconf,*libconf,*buf; FILE *fp; GStatBuf homestat,libstat; if ((sys=getobject("system"))==NULL) return NULL; if (getobj(sys,"home_dir",0,0,NULL,&homedir)==-1) return NULL; if (getobj(sys,"conf_dir",0,0,NULL,&libdir)==-1) return NULL; homeconf=libconf=NULL; if (findfilename(homedir,CONFSEP,CONF)) { if ((homeconf=getfilename(homedir,CONFSEP,CONF))!=NULL) { if (nstat(homeconf,&homestat)!=0) { g_free(homeconf); homeconf=NULL; } } } if (findfilename(libdir,CONFSEP,CONF)) { if ((libconf=getfilename(libdir,CONFSEP,CONF))!=NULL) { if (nstat(libconf,&libstat)!=0) { g_free(libconf); libconf=NULL; } } } if (homeconf) { #if 0 if (libconf==NULL) { s=homeconf; } else if (homestat.st_mtime>=libstat.st_mtime) { s=homeconf; g_free(libconf); } else { s=libconf; g_free(homeconf); } #else s=homeconf; g_free(libconf); #endif } else if (libconf) { s=libconf; } else { return NULL; } if ((fp=nfopen(s,"rt"))==NULL) { g_free(s); return NULL; } g_free(s); while (fgetline(fp,&buf)==0) { if (strcmp0(buf,section)==0) { g_free(buf); return fp; } g_free(buf); } fclose(fp); return NULL; } char * getconfig(FILE *fp,char **val) { char *s,*tok,*buf; int len; while (fgetline(fp, &buf) == 0) { switch (buf[0]) { case '[': g_free(buf); return NULL; case ';': case '#': g_free(buf); continue; } s = buf; tok = getitok2(&s, &len, "="); if (tok) { s += (s[0] == '=') ? 1 : 0; *val = g_strdup(s); if (*val == NULL) { g_free(tok); tok = NULL; } g_free(buf); return tok; } g_free(buf); } return NULL; } void closeconfig(FILE *fp) { fclose(fp); } static int make_backup(char *homedir, char *libdir, char *fil, FILE *fptmp) { FILE *fp; char *buf, *bak; if (! findfilename(homedir, CONFSEP, CONF)) { bak = getfilename(libdir, CONFSEP, CONFBAK); if (bak && findfilename(libdir, CONFSEP, CONFBAK)) { g_unlink(bak); } } else { bak = getfilename(homedir, CONFSEP, CONFBAK); if (bak && findfilename(homedir, CONFSEP, CONFBAK)) { g_unlink(bak); } } if (bak) { rename(fil, bak); g_free(bak); } fp = nfopen(fil, "wt"); if (fp == NULL) { return FALSE; } rewind(fptmp); while (fgetline(fptmp, &buf) == 0) { fputs(buf, fp); fputs("\n", fp); g_free(buf); } fclose(fp); return TRUE; } static char * replaceconfig_match(FILE *fp, FILE *fptmp, struct narray *iconf, struct narray *conf) { char *s, *s2, *buf, *tok, *tok2, **data; int out, len, len2, i, j, num, num2; num = arraynum(conf); data = arraydata(conf); while (fgetline(fp, &buf) == 0) { if (buf[0]=='[') { return buf; } s = buf; out = FALSE; tok = getitok(&s, &len, " \t=,"); if (tok) { for (i = 0; i < num; i++) { s2 = data[i]; tok2 = getitok(&s2, &len2, " \t=,"); if (tok2 && (len == len2 && strncmp(tok, tok2, len) == 0)) { out = TRUE; num2 = arraynum(iconf); for (j = 0; j < num2; j++) { if (i == arraynget_int(iconf, j)) break; } if (j == num2) { fputs(data[i], fptmp); fputs("\n", fptmp); arrayadd(iconf, &i); } } } } if (! out && buf && buf[0] != '\0') { fputs(buf, fptmp); fputs("\n", fptmp); } g_free(buf); } return NULL; } int replaceconfig(char *section,struct narray *conf) { int i,j,num,num2, r; char **data; struct objlist *sys; char *libdir,*homedir,*dir,*fil,*buf,*pfx, *tmp_name; FILE *fp,*fptmp; struct narray iconf; if (arraynum(conf) == 0) return TRUE; if ((sys=getobject("system"))==NULL) return FALSE; if (getobj(sys,"temp_prefix",0,0,NULL,&pfx)) return FALSE; if ((sys=getobject("system"))==NULL) return FALSE; if (getobj(sys,"home_dir",0,0,NULL,&homedir)==-1) return FALSE; if (getobj(sys,"conf_dir",0,0,NULL,&libdir)==-1) return FALSE; if (!findfilename(homedir,CONFSEP,CONF)) { if (!findfilename(libdir,CONFSEP,CONF)) return FALSE; if ((fil=getfilename(libdir,CONFSEP,CONF))==NULL) return FALSE; dir=libdir; } else { if ((fil=getfilename(homedir,CONFSEP,CONF))==NULL) return FALSE; dir=homedir; } lockconfig(dir); fptmp = n_tmpfile(&tmp_name); if (fptmp == NULL) { unlockconfig(dir); return FALSE; } fp = nfopen(fil,"rt"); if (fp == NULL) { n_tmpfile_close(fptmp, tmp_name); g_free(fil); unlockconfig(dir); return FALSE; } arrayinit(&iconf,sizeof(int)); while (fgetline(fp,&buf)==0) { if (strcmp0(buf,section)==0) { fputs(buf,fptmp); fputs("\n",fptmp); g_free(buf); buf = replaceconfig_match(fp, fptmp, &iconf, conf); goto flush; } else { fputs(buf,fptmp); fputs("\n",fptmp); } g_free(buf); } /* section not found */ fputs("\n",fptmp); fputs(section,fptmp); fputs("\n",fptmp); flush: data = arraydata(conf); num = arraynum(conf); for (i=0;i=libstat.st_mtime) { dir=1; s=homeconf; g_free(libconf); } else { dir=3; s=homeconf; g_free(libconf); } } else if (libconf!=NULL) { dir=2; s=libconf; } else return 0; ret=naccess(s,W_OK); g_free(s); if (ret==0) return dir; return -dir; } int copyconfig(void) /* copy configuration file from libdir to home dir */ { struct objlist *sys; char *libdir,*homedir,*buf; char *libname,*homename,*bak; FILE *libfp,*homefp; int r; GStatBuf sbuf; if ((sys=getobject("system"))==NULL) return FALSE; if (getobj(sys,"home_dir",0,0,NULL,&homedir)==-1) return FALSE; if (getobj(sys,"conf_dir",0,0,NULL,&libdir)==-1) return FALSE; r = nstat(homedir, &sbuf); if (r && errno == ENOENT) { r = g_mkdir(homedir, 0755); if (r) return FALSE; } else if (! S_ISDIR(sbuf.st_mode)) { return FALSE; } if (findfilename(homedir,CONFSEP,CONF)) { if ((bak=getfilename(homedir,CONFSEP,CONFBAK))!=NULL) { if (findfilename(homedir,CONFSEP,CONFBAK)) g_unlink(bak); if ((homename=getfilename(homedir,CONFSEP,CONF))!=NULL) { rename(homename,bak); g_free(homename); } g_free(bak); } } if (!findfilename(libdir,CONFSEP,CONF)) return FALSE; homename = getfilename(homedir,CONFSEP,CONF); libname = getfilename(libdir,CONFSEP,CONF); if (homename == NULL || libname == NULL) { g_free(homename); g_free(libname); return FALSE; } if (strcmp0(homename,libname)==0) { g_free(homename); g_free(libname); return FALSE; } if ((homefp=nfopen(homename,"wt"))==NULL) { return FALSE; } if ((libfp=nfopen(libname,"rt"))==NULL) { g_free(homename); fclose(homefp); g_free(libname); fclose(libfp); return FALSE; } g_free(homename); g_free(libname); while (fgetline(libfp,&buf)==0) { fputs(buf,homefp); fputs("\n",homefp); g_free(buf); } fclose(libfp); fclose(homefp); return TRUE; } ngraph-gtk-6.06.13/src/olegend.h0000644000175000017500000000370512241111706013227 00000000000000/* * $Id: olegend.h,v 1.6 2009-05-01 09:15:58 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef OLEGEND_HEADER #define OLEGEND_HEADER enum FLIP_DIRECTION { FLIP_DIRECTION_HORIZONTAL, FLIP_DIRECTION_VERTICAL, }; int legendgeometry(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv); int legendbbox(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv); int legendmove(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv); int legendrotate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv); int legendchange(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv); int legendzoom(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv); int legendmatch(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv); void rotate(int px, int py, int angle, int *x, int *y); void flip(int pivot, enum FLIP_DIRECTION dir, int *x, int *y); int legendflip(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv); int put_color_for_backward_compatibility(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv); #endif ngraph-gtk-6.06.13/src/oplugin.c0000644000175000017500000005010112241111703013247 00000000000000#include "common.h" #include #include #include #define USE_HASH 1 #include "ngraph.h" #include "object.h" #include "mathfn.h" #include "shell.h" #define NAME "plugin" #define PARENT "object" #define OVERSION "1.00.00" #define MAXCLINE 256 #define ERRMEM 100 #define ERRRUN 101 #define ERRNOMODULE 102 #define ERRFILEFIND 103 #define ERRLOAD 104 #define ERRLOADED 105 #define ERRNOLOAD 106 #define ERRINIT 107 #define ERRSECURTY 108 #define ERRINVALID 109 static char *sherrorlist[] = { "cannot allocate enough memory", "already running.", "no module name is specified.", "no such file", "cannot load module", "the module is already loaded", "a module is not loaded", "cannot initialize the plugin", "the method is forbidden for the security", "invalid module", }; struct ngraph_plugin { GModule *module; ngraph_plugin_exec exec; ngraph_plugin_open open; ngraph_plugin_close close, interrupt; int deleted, id; void *user_data; char *name, *file; }; struct shlocal { struct ngraph_plugin *plugin; int lock; }; static NHASH Plugins = NULL; static int get_symbol(GModule *module, const char *format, const char *name, gpointer *symbol) { char *func; int r; func = g_strdup_printf(format, name); r = g_module_symbol(module, func, symbol); g_free(func); return ! r; } static char * get_plugin_name(const char *str) { char *basename; int i; basename = getbasename(str); if (basename == NULL) { return NULL; } for (i = 0; basename[i]; i++) { if (basename[i] == '.') { basename[i] = '\0'; break; } } return basename; } static int load_plugin(struct objlist *obj, N_VALUE *inst, const char *name, struct ngraph_plugin *plugin) { GModule *module; void *loaded; ngraph_plugin_exec np_exec; ngraph_plugin_open np_open; ngraph_plugin_close np_close, np_interrupt; int r, id; char *basename, *module_file, *plugin_path; struct objlist *sysobj; module = NULL; module_file = NULL; basename = NULL; basename = get_plugin_name(name); if (basename == NULL) { error(obj, ERRLOAD); return 1; } r = nhash_get_ptr(Plugins, basename, &loaded); if (r == 0 && loaded) { error2(obj, ERRLOADED, basename); goto ErrorExit; } plugin_path = NULL; sysobj = getobject("system"); getobj(sysobj, "plugin_dir", 0, 0, NULL, &plugin_path); module_file = g_module_build_path(plugin_path, basename); module = g_module_open(module_file, 0); if (module == NULL) { error2(obj, ERRLOAD, name); putstderr(g_module_error()); goto ErrorExit; } np_exec = NULL; r = get_symbol(module, "ngraph_plugin_exec_%s", basename, (gpointer *) &np_exec); if (r) { error2(obj, ERRINVALID, name); goto ErrorExit; } np_open = NULL; get_symbol(module, "ngraph_plugin_open_%s", basename, (gpointer *) &np_open); np_close = NULL; get_symbol(module, "ngraph_plugin_close_%s", basename, (gpointer *) &np_close); np_interrupt = NULL; get_symbol(module, "ngraph_plugin_interrupt_%s", basename, (gpointer *) &np_interrupt); r = nhash_set_ptr(Plugins, basename, plugin); if (r) { error(obj, ERRMEM); goto ErrorExit; } _getobj(obj, "id", inst, &id); plugin->name = basename; plugin->file = module_file; plugin->module = module; plugin->exec = np_exec; plugin->open = np_open; plugin->close = np_close; plugin->interrupt = np_interrupt; plugin->id = id; return 0; ErrorExit: if (module) { g_module_close(module); } g_free(module_file); g_free(basename); return 1; } static struct ngraph_plugin * get_plugin_from_name(const char *name) { void *ptr; int r; r = nhash_get_ptr(Plugins, name, &ptr); if (r) { return NULL; } return ptr; } static struct ngraph_plugin * get_plugin(struct objlist *obj, N_VALUE *inst) { const char *name; _getobj(obj, "module_name", inst, &name); if (name == NULL) { return NULL; } return get_plugin_from_name(name); } static int plugin_open(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { char *name; struct ngraph_plugin *plugin; int r; rval->i = 0; if (argv[2] == NULL) { error(obj, ERRNOMODULE); return 1; } name = get_plugin_name(argv[2]); if (name == NULL) { error(obj, ERRNOMODULE); return 1; } plugin = get_plugin_from_name(name); g_free(name); #ifdef WINDOWS if (plugin) { if (plugin->id >= 0) { error2(obj, ERRLOADED, plugin->name); return 1; } _getobj(obj, "id", inst, &plugin->id); } else { plugin = g_malloc0(sizeof(struct ngraph_plugin)); if (plugin == NULL) { error(obj, ERRMEM); return 1; } if (load_plugin(obj, inst, argv[2], plugin)) { g_free(plugin); return 1; } } #else if (plugin) { error2(obj, ERRLOADED, plugin->name); return 1; } plugin = g_malloc0(sizeof(struct ngraph_plugin)); if (plugin == NULL) { error(obj, ERRMEM); return 1; } if (load_plugin(obj, inst, argv[2], plugin)) { g_free(plugin); return 1; } #endif _putobj(obj, "module_name", inst, plugin->name); _putobj(obj, "module_file", inst, plugin->file); if (plugin->open) { r = plugin->open(plugin); rval->i = r; if (r) { error2(obj, ERRINIT, argv[2]); g_free(plugin); return 1; } } return 0; } static int close_plugin(struct objlist *obj, N_VALUE *inst, struct ngraph_plugin *plugin) { if (plugin->module == NULL) { error(obj, ERRNOLOAD); return 1; } #ifdef WINDOWS plugin->id = -1; #else if (plugin->close) { plugin->close(plugin); } g_module_close(plugin->module); plugin->module = NULL; plugin->exec = NULL; plugin->open = NULL; plugin->close = NULL; #endif if (inst) { _putobj(obj, "module_name", inst, NULL); _putobj(obj, "module_file", inst, NULL); } #ifndef WINDOWS if (plugin->name) { g_free(plugin->name); plugin->name = NULL; } if (plugin->file) { g_free(plugin->file); plugin->name = NULL; } g_free(plugin); nhash_set_ptr(Plugins, plugin->name, NULL); #endif return 0; } static int plugin_close(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct ngraph_plugin *plugin; int lock; plugin = get_plugin(obj, inst); if (plugin == NULL) { error(obj, ERRNOLOAD); return 1; } _getobj(obj, "lock", inst, &lock); if (lock) { error(obj, ERRRUN); return 1; } close_plugin(obj, inst, plugin); return 0; } static int plugin_lock(struct objlist *obj, N_VALUE *inst, int state) { int lock; lock = state; return _putobj(obj, "lock", inst, &lock); } static int plugin_init(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; if (plugin_lock(obj, inst, FALSE)) { return 1; } return 0; } static int plugin_done(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct ngraph_plugin *plugin; int lock; plugin = get_plugin(obj, inst); if (plugin) { _getobj(obj, "lock", inst, &lock); if (lock) { if (plugin->interrupt) { plugin->interrupt(plugin); } plugin->deleted = TRUE; } else { close_plugin(obj, inst, plugin); } } _putobj(obj, "module_name", inst, NULL); _putobj(obj, "module_file", inst, NULL); return 0; } static void free_argv(int argc, char **argv) { int i; for (i = 0; i < argc; i ++) { if (argv[i]) { g_free(argv[i]); argv[i] = NULL; } } g_free(argv); } static char ** allocate_argv(const char *name, int argc, char * const *argv) { int i, new_argc; char **new_argv; new_argc = argc + 2; new_argv = g_malloc0(sizeof(*new_argv) * new_argc); if (new_argv == NULL) { return NULL; } new_argv[0] = g_strdup(name); if (new_argv[0] == NULL) { free_argv(new_argc, new_argv); return NULL; } for (i = 0; i < argc; i++) { new_argv[i + 1] = g_strdup(argv[i]); if (new_argv[i + 1] == NULL) { free_argv(new_argc, new_argv); return NULL; } } new_argv[i + 1] = NULL; return new_argv; } static int plugin_exec(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct ngraph_plugin *plugin; char **new_argv; int r, lock; rval->i = 0; plugin = get_plugin(obj, inst); if (plugin == NULL) { error(obj, ERRNOLOAD); return 1; } if (get_security()) { error2(obj, ERRSECURTY, plugin->name); return 1; } if (plugin->module == NULL || plugin->exec == NULL) { error(obj, ERRNOLOAD); return 1; } _getobj(obj, "lock", inst, &lock); if (lock) { error(obj, ERRRUN); return 1; } new_argv = allocate_argv(plugin->name, argc - 2, argv + 2); if (new_argv == NULL) { error(obj, ERRMEM); return 1; } plugin_lock(obj, inst, TRUE); r = plugin->exec(plugin, argc - 1, new_argv); rval->i = r; if (plugin->deleted) { close_plugin(obj, NULL, plugin); } else { plugin_lock(obj, inst, FALSE); } free_argv(argc - 1, new_argv); return r; } #define ERRNUM (sizeof(sherrorlist) / sizeof(*sherrorlist)) static struct objtable Plugin[] = { {"init", NVFUNC, NEXEC, plugin_init, NULL, 0}, {"done", NVFUNC, NEXEC, plugin_done, NULL, 0}, {"next", NPOINTER, 0, NULL, NULL, 0}, {"exec", NIFUNC, NREAD|NEXEC, plugin_exec, NULL, 0}, {"open", NIFUNC, NREAD|NEXEC, plugin_open, "s", 0}, {"close", NVFUNC, NREAD|NEXEC, plugin_close, "", 0}, {"module_name", NSTR, NREAD, NULL, NULL, 0}, {"module_file", NSTR, NREAD, NULL, NULL, 0}, {"lock", NBOOL, NREAD, NULL, NULL, 0}, }; #define TBLNUM (sizeof(Plugin) / sizeof(*Plugin)) void * addplugin(void) { if (Plugins == NULL) { Plugins = nhash_new(); if (Plugins == NULL) { return NULL; } } return addobject(NAME, NULL, PARENT, OVERSION, TBLNUM, Plugin, ERRNUM, sherrorlist, NULL, NULL); } /*****************************************************/ void ngraph_plugin_set_user_data(struct ngraph_plugin *plugin, void *user_data) { if (plugin == NULL) { return; } plugin->user_data = user_data; } void * ngraph_plugin_get_user_data(struct ngraph_plugin *plugin) { if (plugin == NULL) { return NULL; } return plugin->user_data; } union ngraph_val { int i; double d; char *str; struct narray *ary; }; static struct narray * allocate_iarray(ngraph_arg *arg) { struct narray *array, *ptr; int i; if (arg == NULL) { return NULL; } if (arg->num < 1) { return NULL; } array = arraynew(sizeof(int)); if (array == NULL) { return NULL; } for (i = 0; i < arg->num; i++) { ptr = arrayadd(array, &arg->ary[i].i); if (ptr == NULL) { arrayfree(array); return NULL; } } return array; } static struct narray * allocate_darray(ngraph_arg *arg) { struct narray *array, *ptr; int i; if (arg == NULL) { return NULL; } if (arg->num < 1) { return NULL; } array = arraynew(sizeof(double)); if (array == NULL) { return NULL; } for (i = 0; i < arg->num; i++) { ptr = arrayadd(array, &arg->ary[i].d); if (ptr == NULL) { arrayfree(array); return NULL; } } return array; } static struct narray * allocate_sarray(ngraph_arg *arg) { struct narray *array, *ptr; int i; if (arg == NULL) { return NULL; } if (arg->num < 1) { return NULL; } array = arraynew(sizeof(char *)); if (array == NULL) { return NULL; } for (i = 0; i < arg->num; i++) { ptr = arrayadd2(array, arg->ary[i].str); if (ptr == NULL) { arrayfree(array); return NULL; } } return array; } int ngraph_putobj(struct objlist *obj, const char *vname, int id, ngraph_value *val) { enum ngraph_object_field_type type; int r; void *valp; struct narray *array; r = -1; type = chkobjfieldtype(obj, vname); switch (type) { case NVOID: #if USE_LABEL case NLABEL: #endif case NVFUNC: valp = NULL; r = putobj(obj, vname, id, valp); break; case NSTR: case NOBJ: if (val->str) { valp = g_strdup(val->str); } else { valp = NULL; } r = putobj(obj, vname, id, valp); if (r < 0 && valp) { g_free(valp); } break; case NPOINTER: /* these fields may not be writable */ case NBFUNC: case NIFUNC: case NDFUNC: case NSFUNC: case NIAFUNC: case NDAFUNC: case NSAFUNC: valp = NULL; r = putobj(obj, vname, id, valp); break; case NBOOL: case NINT: case NENUM: valp = &val->i; r = putobj(obj, vname, id, valp); break; case NDOUBLE: valp = &val->d; r = putobj(obj, vname, id, valp); break; case NIARRAY: array = allocate_iarray(val->ary); r = putobj(obj, vname, id, array); if (r < 0) { arrayfree(array); } break; case NDARRAY: array = allocate_darray(val->ary); r = putobj(obj, vname, id, array); if (r < 0) { arrayfree(array); } break; case NSARRAY: array = allocate_sarray(val->ary); r = putobj(obj, vname, id, array); if (r < 0) { arrayfree2(array); } break; } return r; } static const char ** allocate_obj_arg(struct objlist *obj, const char *vname, ngraph_arg *arg) { int i, n, num, is_a; const char *arglist; const char **ary; num = arg->num; if (num < 1) { /* If the type of the field is NENUM the number of the argument is 0. */ return NULL; } arglist = chkobjarglist(obj, vname); if (arglist && arglist[0] == '\0') { return NULL; } ary = g_malloc0(sizeof(*ary) * (num + 1)); if (ary == NULL) { return NULL; } if (arglist == NULL) { for (i = 0; i < num; i++) { ary[i] = arg->ary[i].str; } } else { n = 0; for (i = 0; arglist[i]; i++) { if (n >= num) { break; } is_a = (arglist[i + 1]== 'a'); switch (arglist[i]) { case 'b': case 'c': ary[n] = (char *) &arg->ary[n].i; break; case 'i': if (is_a) { ary[n] = (char *) allocate_iarray(arg->ary[n].ary); } else { ary[n] = (char *) &arg->ary[n].i; } break; case 'd': if (is_a) { ary[n] = (char *) allocate_darray(arg->ary[n].ary); } else { ary[n] = (char *) &arg->ary[n].d; } break; case 's': if (is_a) { ary[n] = (char *) allocate_sarray(arg->ary[n].ary); } else { ary[n] = arg->ary[n].str; } break; case 'p': ary[n] = NULL; break; case 'o': ary[n] = arg->ary[n].str; break; } if (is_a) { i++; } n++; } } return ary; } static void free_obj_arg(const char **ary, struct objlist *obj, const char *vname, ngraph_arg *arg) { int i, n, num, is_a; const char *arglist; num = arg->num; if (num < 1) { return; } arglist = chkobjarglist(obj, vname); if (arglist == NULL) { return; } n = 0; for (i = 0; arglist[i]; i++) { if (n >= num) { break; } is_a = (arglist[i + 1]== 'a'); switch (arglist[i]) { case 'b': case 'c': break; case 'i': case 'd': if (is_a) { arrayfree((struct narray *) ary[n]); } break; case 's': if (is_a) { arrayfree2((struct narray *) ary[n]); } break; case 'p': break; case 'o': break; } if (is_a) { i++; } n++; } g_free(ary); return; } int ngraph_getobj(struct objlist *obj, const char *vname, int id, ngraph_arg *arg, ngraph_returned_value *val) { int r, argc; enum ngraph_object_field_type type; const char **argv; union ngraph_val nval; type = chkobjfieldtype(obj, vname); argc = arg->num; argv = allocate_obj_arg(obj, vname, arg); r = getobj(obj, vname, id, argc, (char **) argv, &nval); free_obj_arg(argv, obj, vname, arg); if (r < 0) { return r; } switch (type) { case NVOID: #if USE_LABEL case NLABEL: #endif case NVFUNC: break; case NSFUNC: case NSTR: case NOBJ: val->str = nval.str; break; case NPOINTER: /* these fields may not be writable */ break; case NBFUNC: case NIFUNC: case NBOOL: case NINT: case NENUM: val->i = nval.i; break; case NDFUNC: case NDOUBLE: val->d = nval.d; break; case NIAFUNC: case NIARRAY: val->ary.num = arraynum(nval.ary); val->ary.data.ia = arraydata(nval.ary); break; case NDAFUNC: case NDARRAY: val->ary.num = arraynum(nval.ary); val->ary.data.da = arraydata(nval.ary); break; case NSAFUNC: case NSARRAY: val->ary.num = arraynum(nval.ary); val->ary.data.sa = arraydata(nval.ary); break; } return r; } int ngraph_exeobj(struct objlist *obj, const char *vname, int id, ngraph_arg *arg) { int r, argc; enum ngraph_object_field_type type; const char **argv; type = chkobjfieldtype(obj, vname); if (type < NVFUNC) { return -1; } argc = arg->num; argv = allocate_obj_arg(obj, vname, arg); r = exeobj(obj, vname, id, argc, (char **) argv); free_obj_arg(argv, obj, vname, arg); return r; } struct objlist * ngraph_get_object(const char *name) { return getobject(name); } struct objlist * ngraph_get_instances_by_str(const char *str, int *n, int **ids) { struct narray iarray; int *id_ary, *adata, anum, i, r; struct objlist *obj; if (n) { *n = 0; } if (ids == NULL) { return NULL; } *ids = NULL; if (str == NULL) { return NULL; } arrayinit(&iarray,sizeof(int)); r = chkobjilist((char *) str, &obj, &iarray, TRUE, NULL); if (r) { arraydel(&iarray); return NULL; } anum = arraynum(&iarray); adata = arraydata(&iarray); id_ary = malloc(sizeof(*id_ary) * (anum + 1)); if (id_ary == NULL) { arraydel(&iarray); return NULL; } for (i = 0; i < anum; i++) { id_ary[i] = adata[i]; } id_ary[i] = -1; arraydel(&iarray); if (n) { *n = anum; } *ids = id_ary; return obj; } int ngraph_get_id_by_oid(struct objlist *obj, int oid) { return chkobjoid(obj, oid); } int ngraph_move_top(struct objlist *obj, int id) { return movetopobj(obj, id); } int ngraph_move_last(struct objlist *obj, int id) { return movelastobj(obj, id); } int ngraph_move_up(struct objlist *obj, int id) { return moveupobj(obj, id); } int ngraph_move_down(struct objlist *obj, int id) { return movedownobj(obj, id); } int ngraph_exchange(struct objlist *obj, int id1, int id2) { return exchobj(obj, id1, id2); } int ngraph_copy(struct objlist *obj, int dist, int src) { return copy_obj_field(obj, dist, src, NULL); } int ngraph_new(struct objlist *obj) { return newobj(obj); } int ngraph_del(struct objlist *obj, int id) { return delobj(obj, id); } int ngraph_exist(struct objlist *obj, int id) { int last; if (obj == NULL) { return -1; } last = chkobjlastinst(obj); if (id < 0 || id > last) { return -1; } return id; } const char * ngraph_get_obj_name(struct objlist *obj) { return chkobjectname(obj); } int ngraph_get_obj_field_num(struct objlist *obj) { return chkobjfieldnum(obj); } const char * ngraph_get_obj_field(struct objlist *obj, int i) { return chkobjfieldname(obj, i); } int ngraph_get_obj_field_permission(struct objlist *obj, const char *field) { return chkobjperm(obj, field); } enum ngraph_object_field_type ngraph_get_obj_field_type(struct objlist *obj, const char *field) { return chkobjfieldtype(obj, field); } const char * ngraph_get_obj_field_args(struct objlist *obj, const char *field) { return chkobjarglist(obj, field); } struct objlist * ngraph_get_obj_parent(struct objlist *obj) { return chkobjparent(obj); } struct objlist * ngraph_get_obj_root(void) { return chkobjroot(); } const char * ngraph_get_obj_version(struct objlist *obj) { return chkobjver(obj); } int ngraph_get_obj_id(struct objlist *obj) { return chkobjectid(obj); } int ngraph_get_obj_size(struct objlist *obj) { return chkobjsize(obj); } int ngraph_get_obj_current_id(struct objlist *obj) { return chkobjcurinst(obj); } int ngraph_get_obj_last_id(struct objlist *obj) { return chkobjlastinst(obj); } struct objlist * ngraph_get_obj_next(struct objlist *obj) { return obj->next; } struct objlist * ngraph_get_obj_child(struct objlist *obj) { return obj->child; } int ngraph_puts(const char *s) { return putstdout(s); } int ngraph_err_puts(const char *s) { return putstderr(s); } void ngraph_sleep(int t) { nsleep(t); } ngraph-gtk-6.06.13/src/gettext.h0000644000175000017500000002311712241111703013272 00000000000000/* Convenience header for conditional use of GNU . Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009 Free Software Foundation, Inc. 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 3, 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 Library 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. */ #ifndef _LIBGETTEXT_H #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option. */ #if ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include /* You can set the DEFAULT_TEXT_DOMAIN macro to specify the domain used by the gettext() and ngettext() macros. This is an alternative to calling textdomain(), and is useful for libraries. */ # ifdef DEFAULT_TEXT_DOMAIN # undef gettext # define gettext(Msgid) \ dgettext (DEFAULT_TEXT_DOMAIN, Msgid) # undef ngettext # define ngettext(Msgid1, Msgid2, N) \ dngettext (DEFAULT_TEXT_DOMAIN, Msgid1, Msgid2, N) # endif #else /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. We don't include as well because people using "gettext.h" will not include , and also including would fail on SunOS 4, whereas is OK. */ #if defined(__sun) # include #endif /* Many header files from the libstdc++ coming with g++ 3.3 or newer include , which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. */ #if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3) # include # if (__GLIBC__ >= 2) || _GLIBCXX_HAVE_LIBINTL_H # include # endif #endif /* Disabled NLS. The casts to 'const char *' serve the purpose of producing warnings for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ # undef gettext # define gettext(Msgid) ((const char *) (Msgid)) # undef dgettext # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) # undef dcgettext # define dcgettext(Domainname, Msgid, Category) \ ((void) (Category), dgettext (Domainname, Msgid)) # undef ngettext # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 \ ? ((void) (Msgid2), (const char *) (Msgid1)) \ : ((void) (Msgid1), (const char *) (Msgid2))) # undef dngettext # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) # undef dcngettext # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N)) # undef textdomain # define textdomain(Domainname) ((const char *) (Domainname)) # undef bindtextdomain # define bindtextdomain(Domainname, Dirname) \ ((void) (Domainname), (const char *) (Dirname)) # undef bind_textdomain_codeset # define bind_textdomain_codeset(Domainname, Codeset) \ ((void) (Domainname), (const char *) (Codeset)) #endif /* A pseudo function call that serves as a marker for the automated extraction of messages, but does not call gettext(). The run-time translation is done at a different place in the code. The argument, String, should be a literal string. Concatenated strings and other string expressions won't work. The macro's expansion is not parenthesized, so that it is suitable as initializer for static 'char[]' or 'const char[]' variables. */ #define gettext_noop(String) String /* The separator between msgctxt and msgid in a .mo file. */ #define GETTEXT_CONTEXT_GLUE "\004" /* Pseudo function calls, taking a MSGCTXT and a MSGID instead of just a MSGID. MSGCTXT and MSGID must be string literals. MSGCTXT should be short and rarely need to change. The letter 'p' stands for 'particular' or 'special'. */ #ifdef DEFAULT_TEXT_DOMAIN # define pgettext(Msgctxt, Msgid) \ pgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #else # define pgettext(Msgctxt, Msgid) \ pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #endif #define dpgettext(Domainname, Msgctxt, Msgid) \ pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #define dcpgettext(Domainname, Msgctxt, Msgid, Category) \ pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category) #ifdef DEFAULT_TEXT_DOMAIN # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #else # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #endif #define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \ npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category) #ifdef __GNUC__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * pgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, int category) { const char *translation = dcgettext (domain, msg_ctxt_id, category); if (translation == msg_ctxt_id) return msgid; else return translation; } #ifdef __GNUC__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * npgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, const char *msgid_plural, unsigned long int n, int category) { const char *translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); if (translation == msg_ctxt_id || translation == msgid_plural) return (n == 1 ? msgid : msgid_plural); else return translation; } /* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID can be arbitrary expressions. But for string literals these macros are less efficient than those above. */ #include #define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \ (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \ /* || __STDC_VERSION__ >= 199901L */ ) #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS #include #endif #define pgettext_expr(Msgctxt, Msgid) \ dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES) #define dpgettext_expr(Domainname, Msgctxt, Msgid) \ dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES) #ifdef __GNUC__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * dcpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; const char *translation; #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS char msg_ctxt_id[msgctxt_len + msgid_len]; #else char buf[1024]; char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); if (msg_ctxt_id != NULL) #endif { memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); msg_ctxt_id[msgctxt_len - 1] = '\004'; memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); translation = dcgettext (domain, msg_ctxt_id, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) free (msg_ctxt_id); #endif if (translation != msg_ctxt_id) return translation; } return msgid; } #define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N) \ dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) #define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) #ifdef __GNUC__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * dcnpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, const char *msgid_plural, unsigned long int n, int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; const char *translation; #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS char msg_ctxt_id[msgctxt_len + msgid_len]; #else char buf[1024]; char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); if (msg_ctxt_id != NULL) #endif { memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); msg_ctxt_id[msgctxt_len - 1] = '\004'; memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) free (msg_ctxt_id); #endif if (!(translation == msg_ctxt_id || translation == msgid_plural)) return translation; } return (n == 1 ? msgid : msgid_plural); } #endif /* _LIBGETTEXT_H */ ngraph-gtk-6.06.13/src/strconv.h0000644000175000017500000000024512241111703013301 00000000000000/* * $Id: strconv.h,v 1.1 2009-11-16 09:13:04 hito Exp $ */ char *sjis_to_utf8(char *src); char *utf8_to_sjis(char *src); gchar *ascii2greece(const gchar *src); ngraph-gtk-6.06.13/src/olegend.c0000644000175000017500000002305512241111706013222 00000000000000/* * $Id: olegend.c,v 1.18 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include "mathfn.h" #include "object.h" #include "odraw.h" #include "olegend.h" #define NAME "legend" #define PARENT "draw" #define OVERSION "1.00.00" static char *legenderrorlist[]={ "", }; #define ERRNUM (sizeof(legenderrorlist) / sizeof(*legenderrorlist)) static int legendinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int legenddone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } int legendgeometry(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { if (clear_bbox(obj, inst)) return 1; return 0; } int legendmatch(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int minx,miny,maxx,maxy,err; int bminx,bminy,bmaxx,bmaxy; int i,num,*data; double x1,y1,x2,y2; double r,r2,r3,ip; struct narray *array; rval->i=FALSE; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; if (_exeobj(obj,"bbox",inst,0,NULL)) return 1; _getobj(obj,"bbox",inst,&array); if (array==NULL) return 0; minx=*(int *)argv[2]; miny=*(int *)argv[3]; maxx=*(int *)argv[4]; maxy=*(int *)argv[5]; err=*(int *)argv[6]; if ((minx==maxx) && (miny==maxy)) { num=arraynum(array)-4; data=arraydata(array); for (i=0;ii=TRUE; break; } if (r2!=0) { ip=((x2-x1)*(minx-x1)+(y2-y1)*(miny-y1))/r2; if ((0<=ip) && (ip<=r2)) { x2=x1+(x2-x1)*ip/r2; y2=y1+(y2-y1)*ip/r2; r=sqrt((minx-x2)*(minx-x2)+(miny-y2)*(miny-y2)); if (ri=TRUE; break; } } } } } else { if (arraynum(array)<4) return 1; bminx=arraynget_int(array,0); bminy=arraynget_int(array,1); bmaxx=arraynget_int(array,2); bmaxy=arraynget_int(array,3); if ((minx<=bminx) && (bminx<=maxx) && (minx<=bmaxx) && (bmaxx<=maxx) && (miny<=bminy) && (bminy<=maxy) && (miny<=bmaxy) && (bmaxy<=maxy)) rval->i=TRUE; } return 0; } int legendbbox(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int minx,miny,maxx,maxy; int x,y,num; struct narray *points; int pnum; int *pdata; struct narray *array; int i,width; array=rval->array; if (arraynum(array)!=0) return 0; _getobj(obj,"points",inst,&points); _getobj(obj,"width",inst,&width); pnum=arraynum(points); pdata=arraydata(points); num=pnum/2; if (num<2) return 0; if ((array==NULL) && ((array=arraynew(sizeof(int)))==NULL)) return 1; maxx=minx=pdata[0]; maxy=miny=pdata[1]; arrayadd(array,&(pdata[0])); arrayadd(array,&(pdata[1])); for (i=1;imaxx) maxx=x; if (ymaxy) maxy=y; } minx-=width/2; miny-=width/2; maxx+=width/2; maxy+=width/2; arrayins(array,&(maxy),0); arrayins(array,&(maxx),0); arrayins(array,&(miny),0); arrayins(array,&(minx),0); if (arraynum(array)==0) { arrayfree(array); rval->array = NULL; return 1; } rval->array=array; return 0; } int legendmove(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *points; int i,num,*pdata; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"points",inst,&points); num=arraynum(points); pdata=arraydata(points); for (i=0;i 255) { val = 255; } switch (col) { case 'R': _putobj(obj, "stroke_R", inst, &val); _putobj(obj, "fill_R", inst, &val); break; case 'G': _putobj(obj, "stroke_G", inst, &val); _putobj(obj, "fill_G", inst, &val); break; case 'B': _putobj(obj, "stroke_B", inst, &val); _putobj(obj, "fill_B", inst, &val); break; case 'A': _putobj(obj, "stroke_A", inst, &val); _putobj(obj, "fill_A", inst, &val); break; } return 0; } static struct objtable legend[] = { {"init",NVFUNC,0,legendinit,NULL,0}, {"done",NVFUNC,0,legenddone,NULL,0}, {"bbox",NIAFUNC,NREAD|NEXEC,NULL,"",0}, {"move",NVFUNC,NREAD|NEXEC,NULL,"ii",0}, {"zooming",NVFUNC,NREAD|NEXEC,NULL,"iiii",0}, {"match",NBFUNC,NREAD|NEXEC,NULL,"iiiii",0}, }; #define TBLNUM (sizeof(legend) / sizeof(*legend)) void * addlegend(void) /* addlegend() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,legend,ERRNUM,legenderrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/mathcode.h0000644000175000017500000000037012241111706013371 00000000000000extern char *matherrorchar[]; /* #define MNOERR 0 */ /* #define MERR 1 */ /* #define MNAN 2 */ /* #define MUNDEF 3 */ /* #define MSERR 4 */ /* #define MSCONT 5 */ /* #define MSBREAK 6 */ /* #define MNONUM 7 */ /* #define MEOF 8 */ ngraph-gtk-6.06.13/src/oint.c0000644000175000017500000000523612241111703012554 00000000000000/* * $Id: oint.c,v 1.6 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include "object.h" #define NAME "int" #define PARENT "object" #define OVERSION "1.00.00" #define ERRILNAME 100 static char *interrorlist[]={ "" }; #define ERRNUM (sizeof(interrorlist) / sizeof(*interrorlist)) static int intinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int intdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int int_times(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int count; _getobj(obj, "@", inst, &count); rval->i = count; if (count <= 0) { return 1; } count--; _putobj(obj,"@",inst,&count); return 0; } static int int_inc(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int count; _getobj(obj, "@", inst, &count); count++; rval->i = count; _putobj(obj,"@",inst,&count); return 0; } static int int_dec(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int count; _getobj(obj, "@", inst, &count); count--; rval->i = count; _putobj(obj,"@",inst,&count); return 0; } static struct objtable oint[] = { {"init",NVFUNC,NEXEC,intinit,NULL,0}, {"done",NVFUNC,NEXEC,intdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"@",NINT,NREAD|NWRITE,NULL,NULL,0}, {"times",NIFUNC,NREAD|NEXEC,int_times,"",0}, {"inc",NIFUNC,NREAD|NEXEC,int_inc,"",0}, {"dec",NIFUNC,NREAD|NEXEC,int_dec,"",0}, }; #define TBLNUM (sizeof(oint) / sizeof(*oint)) void * addint(void) { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,oint,ERRNUM,interrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/nconfig.h0000644000175000017500000000240212241111703013223 00000000000000/* * $Id: nconfig.h,v 1.2 2009-03-09 05:20:30 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef NCONFIG_HEADER #define NCONFIG_HEADER char *getscriptname(char *file); char *searchscript(char *file); FILE *openconfig(char *section); char *getconfig(FILE *fp,char **val); void closeconfig(FILE *fp); int replaceconfig(char *section,struct narray *conf); int removeconfig(char *section,struct narray *conf); int writecheckconfig(); int copyconfig(); #endif ngraph-gtk-6.06.13/src/axis.h0000644000175000017500000000362612241111706012560 00000000000000/* * $Id: axis.h,v 1.2 2009-03-24 09:14:52 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #define AXISNORMAL 0 #define AXISLOGSMALL 1 #define AXISLOGNORM 2 #define AXISLOGBIG 3 #define AXISINVERSE 4 enum AXIS_SCALE_TYPE { AXIS_TYPE_LINEAR, AXIS_TYPE_LOG, AXIS_TYPE_INVERSE, AXIS_TYPE_MJD, }; enum AXIS_NUM_DIR { AXIS_NUM_POS_HORIZONTAL, AXIS_NUM_POS_PARALLEL1, AXIS_NUM_POS_PARALLEL2, AXIS_NUM_POS_NORMAL1, AXIS_NUM_POS_NORMAL2, AXIS_NUM_POS_OBLIQUE1, AXIS_NUM_POS_OBLIQUE2, AXIS_NUM_POS_NORMAL, /* for backward compatibility */ AXIS_NUM_POS_PARALLEL, /* for backward compatibility */ }; struct axislocal { int atype; double min,max,inc; int div; int tighten; double posst,posed; double posl,posm,dposl,dposm,dposs; int counts,countm,countsend,countmend,count; int num; }; int getaxispositionini(struct axislocal *alocal, int type,double min,double max,double inc,int div,int tighten); int getaxisposition(struct axislocal *alocal,double *po); double scale(double x); double roundmin(double min,double sc); extern char *axistypechar[]; ngraph-gtk-6.06.13/src/ofile.h0000644000175000017500000000203512241111703012700 00000000000000#ifndef OFILE_HEADER #define OFILE_HEADER #define FILE_OBJ_MAXCOL 999 #define FILE_OBJ_SMOOTH_MAX 50 enum FILE_OBJ_PLOT_TYPE { PLOT_TYPE_MARK, PLOT_TYPE_LINE, PLOT_TYPE_POLYGON, PLOT_TYPE_POLYGON_SOLID_FILL, PLOT_TYPE_CURVE, PLOT_TYPE_DIAGONAL, PLOT_TYPE_ARROW, PLOT_TYPE_RECTANGLE, PLOT_TYPE_RECTANGLE_FILL, PLOT_TYPE_RECTANGLE_SOLID_FILL, PLOT_TYPE_ERRORBAR_X, PLOT_TYPE_ERRORBAR_Y, PLOT_TYPE_STAIRCASE_X, PLOT_TYPE_STAIRCASE_Y, PLOT_TYPE_BAR_X, PLOT_TYPE_BAR_Y, PLOT_TYPE_BAR_FILL_X, PLOT_TYPE_BAR_FILL_Y, PLOT_TYPE_BAR_SOLID_FILL_X, PLOT_TYPE_BAR_SOLID_FILL_Y, PLOT_TYPE_FIT, }; enum axis_instance_field_type{ AXIS_X, AXIS_Y, AXIS_REFERENCE, }; #include "math/math_equation.h" MathEquation *ofile_create_math_equation(int *id, int prm_digit, int use_fprm, int use_const, int usr_func, int use_fobj_func, int use_fit_func); int get_axis_id(struct objlist *obj, N_VALUE *inst, struct objlist **aobj, int axis); int ofile_calc_fit_equation(struct objlist *obj, int id, double x, double *y); #endif ngraph-gtk-6.06.13/src/osystem.c0000644000175000017500000002270012241111703013301 00000000000000/* * $Id: osystem.c,v 1.17 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include #include "nstring.h" #include "object.h" #include "ioutil.h" #include "ntime.h" #ifdef HAVE_LIBGSL #include #endif #define NAME "system" #define PARENT "object" #define SYSNAME "Ngraph" #define TEMPN "NGP" #define COPYRIGHT "Copyright (C) 2003, Satoshi ISHIZAKA." #define EMAIL "ZXB01226@nifty.com" #define WEB "http://sourceforge.net/projects/ngraph-gtk/" #define ERRNODIR 100 #define ERRTMPFILE 101 void resizeconsole(int col,int row); extern int consolecol,consolerow; static char *syserrorlist[]={ "no such directory" "can't create temporary file" }; #define ERRNUM (sizeof(syserrorlist) / sizeof(*syserrorlist)) static int sysinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *wd; int expand, pid; char *exdir; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; expand=TRUE; if (_putobj(obj,"expand_file",inst,&expand)) return 1; exdir = g_strdup("./"); if (exdir == NULL) return 1; if (_putobj(obj,"expand_dir",inst,exdir)) return 1; if (_putobj(obj,"name",inst,SYSNAME)) return 1; if (_putobj(obj,"version",inst,VERSION)) return 1; if (_putobj(obj,"copyright",inst,COPYRIGHT)) return 1; if (_putobj(obj,"e-mail",inst,EMAIL)) return 1; if (_putobj(obj,"web",inst,WEB)) return 1; if (_putobj(obj,"compiler",inst, COMPILER_NAME)) return 1; if (_putobj(obj,"GRAF",inst,"%Ngraph GRAF")) return 1; if (_putobj(obj,"temp_prefix",inst,TEMPN)) return 1; if ((wd=ngetcwd())==NULL) return 1; pid = getpid(); if (_putobj(obj,"pid",inst,&pid)) return 1; if (_putobj(obj,"cwd",inst,wd)) { g_free(wd); return 1; } #ifdef HAVE_LIBGSL gsl_set_error_handler_off(); #endif return 0; } static int sysdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct objlist *objcur; int i, n; char *s; struct narray *array; struct objlist *objectcur,*objectdel; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; objcur=chkobjroot(); while (objcur!=NULL) { if (objcur!=obj) { recoverinstance(objcur); for (i=chkobjlastinst(objcur);i>=0;i--) delobj(objcur,i); } objcur=objcur->next; } _getobj(obj,"conf_dir",inst,&s); g_free(s); _getobj(obj,"data_dir",inst,&s); g_free(s); _getobj(obj,"doc_dir",inst,&s); g_free(s); _getobj(obj,"lib_dir",inst,&s); g_free(s); _getobj(obj,"plugin_dir",inst,&s); g_free(s); _getobj(obj,"home_dir",inst,&s); g_free(s); _getobj(obj,"cwd",inst,&s); g_free(s); _getobj(obj,"login_shell",inst,&s); g_free(s); _getobj(obj,"time",inst,&s); g_free(s); _getobj(obj,"date",inst,&s); g_free(s); _getobj(obj,"expand_dir",inst,&s); g_free(s); _getobj(obj,"temp_file",inst,&s); g_free(s); _getobj(obj,"temp_list",inst,&array); n = arraynum(array); if (n > 0) { char **data; data = arraydata(array); for (i = 0; i < n; i++) { g_unlink(data[i]); } } arrayfree2(array); objectcur=chkobjroot(); while (objectcur!=NULL) { objectdel=objectcur; objectcur=objectcur->next; if (objectdel->doneproc) objectdel->doneproc(objectdel,objectdel->local); if (objectdel->table_hash) nhash_free(objectdel->table_hash); g_free(objectdel); } g_free(inst); g_free(argv); exit(0); return 0; } static int syscwd(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *wd; const char *home; wd=argv[2]; if (wd!=NULL) { if (nchdir(wd)!=0) { error2(obj,ERRNODIR,wd); return 1; } } else { if ((home=g_getenv("HOME"))!=NULL) { if (nchdir(home)!=0) { error2(obj,ERRNODIR,home); return 1; } } } if ((wd=ngetcwd())==NULL) return 1; g_free(argv[2]); argv[2]=wd; return 0; } static int systime(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { time_t t; int style; t=time(NULL); style=*(int *)(argv[2]); g_free(rval->str); rval->str=ntime(&t,style); return 0; } static int sysdate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { time_t t; int style; t=time(NULL); style=*(int *)(argv[2]); g_free(rval->str); rval->str=ndate(&t,style); return 0; } static int systemp(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *pfx, *tmpfil; struct narray *array; int fd; g_free(rval->str); rval->str=NULL; _getobj(obj,"temp_prefix",inst,&pfx); _getobj(obj,"temp_list",inst,&array); if (array==NULL) { if ((array=arraynew(sizeof(char *)))==NULL) return 1; if (_putobj(obj,"temp_list",inst,array)) { arrayfree2(array); return 1; } } fd = n_mkstemp(NULL, pfx, &tmpfil); if (fd < 0) { error(obj, ERRTMPFILE); return 1; } close(fd); arrayadd2(array,tmpfil); rval->str=tmpfil; return 0; } static int sysunlink(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *tmpfil; struct narray *array; int i,num; char **data; _getobj(obj,"temp_list",inst,&array); if (array==NULL) return 0; num=arraynum(array); data=arraydata(array); if (num>0) { tmpfil=(char *)argv[2]; if (tmpfil==NULL) tmpfil=data[num-1]; for (i=num-1;i>=0;i--) if (strcmp(tmpfil,data[i])==0) break; if (i>=0) { g_unlink(data[i]); arrayndel2(array,i); } } if (arraynum(array)==0) { arrayfree2(array); _putobj(obj,"temp_list",inst,NULL); } _getobj(obj,"temp_file",inst,&tmpfil); g_free(tmpfil); _putobj(obj,"temp_file",inst,NULL); return 0; } static int syshideinstance(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; struct objlist *obj2; char **objdata; int j,anum; array=(struct narray *)argv[2]; if (array!=NULL) { anum=arraynum(array); objdata=arraydata(array); for (j=0;j= 2) { data=arraydata(iarray); resizeconsole(data[0], data[1]); } return 0; } #if USE_MEM_PROFILE static int system_mem_profile(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { g_mem_profile(); return 0; } #endif static struct objtable nsystem[] = { {"init",NVFUNC,NEXEC,sysinit,NULL,0}, {"done",NVFUNC,NEXEC,sysdone,NULL,0}, {"name",NSTR,NREAD,NULL,NULL,0}, {"version",NSTR,NREAD,NULL,NULL,0}, {"copyright",NSTR,NREAD,NULL,NULL,0}, {"e-mail",NSTR,NREAD,NULL,NULL,0}, {"web",NSTR,NREAD,NULL,NULL,0}, {"compiler",NSTR,NREAD,NULL,NULL,0}, {"login_shell",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"cwd",NSTR,NREAD|NWRITE,syscwd,NULL,0}, {"ignore_path",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"expand_file",NBOOL,NREAD|NWRITE,NULL,NULL,0}, {"expand_dir",NSTR,NREAD|NWRITE,NULL,NULL,0}, {"GRAF",NSTR,NREAD,NULL,NULL,0}, {"temp_prefix",NSTR,NREAD,NULL,NULL,0}, {"conf_dir",NSTR,NREAD,NULL,NULL,0}, {"data_dir",NSTR,NREAD,NULL,NULL,0}, {"doc_dir",NSTR,NREAD,NULL,NULL,0}, {"lib_dir",NSTR,NREAD,NULL,NULL,0}, {"plugin_dir",NSTR,NREAD,NULL,NULL,0}, {"home_dir",NSTR,NREAD,NULL,NULL,0}, {"pid",NINT,NREAD,NULL,NULL,0}, {"time",NSFUNC,NREAD|NEXEC,systime,"i",0}, {"date",NSFUNC,NREAD|NEXEC,sysdate,"i",0}, {"temp_file",NSFUNC,NREAD|NEXEC,systemp,"",0}, {"temp_list",NSARRAY,NREAD,NULL,NULL,0}, {"unlink_temp_file",NVFUNC,NREAD|NEXEC,sysunlink,NULL,0}, {"hide_instance",NVFUNC,NREAD|NEXEC,syshideinstance,"sa",0}, {"recover_instance",NVFUNC,NREAD|NEXEC,sysrecoverinstance,"sa",0}, {"resize",NVFUNC,NREAD|NEXEC,systemresize,"ia",0}, #if USE_MEM_PROFILE {"mem_profile",NVFUNC,NREAD|NEXEC,system_mem_profile,"",0}, #endif }; #define TBLNUM (sizeof(nsystem) / sizeof(*nsystem)) void * addsystem() /* addsystem() returns NULL on error */ { return addobject(NAME,NULL,PARENT,VERSION,TBLNUM,nsystem,ERRNUM,syserrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/ogra.c0000644000175000017500000002723012241111706012534 00000000000000/* * $Id: ogra.c,v 1.11 2009-11-16 09:13:04 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include #include #include "object.h" #include "ioutil.h" #include "ogra.h" #include "gra.h" #define NAME "gra" #define PARENT "object" #define OVERSION "1.00.00" static char *GRAerrorlist[]={ "unable to open device", "device is busy", "device is already opened", "no instance for output device", "illegal graphics context", "gra is now opened.", "gra is closed.", }; #define ERRNUM (sizeof(GRAerrorlist) / sizeof(*GRAerrorlist)) static void set_progress_val(int i, int n, char *name); static int oGRAclose(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv); static int oGRAinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC,width,height,zoom; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; GC=-1; width=21000; height=29700; zoom=10000; if (_putobj(obj,"open",inst,&GC)) return 1; if (_putobj(obj,"GC",inst,&GC)) return 1; if (_putobj(obj,"zoom",inst,&zoom)) return 1; if (_putobj(obj,"paper_width",inst,&width)) return 1; if (_putobj(obj,"paper_height",inst,&height)) return 1; return 0; } static int oGRAdisconnect(struct objlist *obj,void *inst,int clear) { struct objlist *dobj,*gobj; struct narray *sarray; char *list; N_VALUE *dinst; char *device,*dfield,*gfield; int oid,did,gid; _getobj(obj,"oid",inst,&oid); _getobj(obj,"_device",inst,&device); _putobj(obj,"_device",inst,NULL); if (device!=NULL) { if (((dobj=getobjlist(device,&did,&dfield,NULL))!=NULL) && ((dinst=chkobjinstoid(dobj,did))!=NULL)) { if ((!chkobjfield(dobj,"_list")) && (!_getobj(dobj,"_list",dinst,&sarray)) && (sarray!=NULL)) { list=arraynget_str(sarray,0); if (((gobj=getobjlist(list,&gid,&gfield,NULL))!=NULL) && (gobj==obj) && (gid==oid) && (strcmp(gfield,"open")==0)) { arrayfree2(sarray); _putobj(dobj,"_list",dinst,NULL); _exeobj(dobj,"disconnect",dinst,0,NULL); if (clear) _exeobj(dobj,"disconnect",dinst,0,NULL); } } } } g_free(device); return 0; } static int oGRAdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; _getobj(obj,"GC",inst,&GC); GRAclose(GC); if (oGRAdisconnect(obj,inst,FALSE)) return 1; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int oGRAputdevice(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { int GC; _getobj(obj,"GC",inst,&GC); if (GC!=-1) { error(obj,ERRGRABUSY); return 1; } if (oGRAdisconnect(obj,inst,FALSE)) return 1; return 0; } static int close_gc(struct objlist *obj, N_VALUE *inst, int GC) { GRAclose(GC); GC = -1; if (_putobj(obj, "GC", inst, &GC)) { return 1; } return 0; } static int oGRAopen(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int anum,id; struct narray iarray; int GC, r; char *device,*dev,*gfield; struct objlist *dobj,*gobj,*robj; N_VALUE *dinst,*ginst; void *local; struct narray **list; int oid,gid; int topm,leftm,width,height,zoom; int output,charheight,chardescent,strwidth; _getobj(obj,"device",inst,&device); _getobj(obj,"GC",inst,&GC); if (GC!=-1) { error2(obj,ERRALOPEN,device); return 1; } _getobj(obj,"left_margin",inst,&leftm); _getobj(obj,"top_margin",inst,&topm); _getobj(obj,"zoom",inst,&zoom); _getobj(obj,"paper_width",inst,&width); _getobj(obj,"paper_height",inst,&height); if (device==NULL) { GC=GRAopen(NULL,NULL,NULL,NULL,-1,-1,-1,-1,NULL,NULL); if (GC<0) { error2(obj,ERROPEN,device); return 1; } } else { arrayinit(&iarray,sizeof(int)); if (getobjilist(device,&dobj,&iarray,FALSE,NULL)) return 1; anum=arraynum(&iarray); if (anum<1) { arraydel(&iarray); error2(obj,ERRNODEVICE,device); return 1; } id=arraylast_int(&iarray); arraydel(&iarray); /* check target device */ dinst = getobjinst(dobj, id); if (dinst == NULL) { return 1; } robj = NULL; if (!chkobjfield(dobj,"_output")) { if ((output=getobjtblpos(dobj,"_output",&robj))==-1) return 1; } else output=-1; if (!chkobjfield(dobj,"_strwidth")) { if ((strwidth=getobjtblpos(dobj,"_strwidth",&robj))==-1) return 1; } else strwidth=-1; if (!chkobjfield(dobj,"_charascent")) { if ((charheight=getobjtblpos(dobj,"_charascent",&robj))==-1) return 1; } else charheight=-1; if (!chkobjfield(dobj,"_chardescent")) { if ((chardescent=getobjtblpos(dobj,"_chardescent",&robj))==-1) return 1; } else chardescent=-1; if (robj == NULL) { error2(obj, ERROPEN, device); return -1; } if (!chkobjfield(dobj,"_list")) { int offset; offset = getobjoffset(dobj, "_list"); if (offset == -1) { return 1; } list = &dinst[offset].array; } else { list = NULL; } if (!chkobjfield(dobj,"_local")) { if (_getobj(dobj,"_local",dinst,&local)) return 1; } else local=NULL; GC=GRAopen(chkobjectname(dobj),"_output", robj,dinst,output,strwidth,charheight,chardescent,list,local); if (GC==-2) { error2(obj,ERRBUSY,device); return 1; } else if (GC<0) { error2(obj,ERROPEN,device); return 1; } /* clear gra connected to target device */ if ((list!=NULL) && (*list!=NULL) && (arraynum(*list)!=0)) { if (((gobj=getobjlist(arraynget_str(*list,0),&gid,&gfield,NULL))!=NULL) && ((ginst=chkobjinstoid(gobj,gid))!=NULL) && (!_getobj(gobj,"_device",ginst,&dev))) { if (oGRAdisconnect(gobj,ginst,TRUE)) return 1; } } if (oGRAdisconnect(obj,inst,FALSE)) return 1; if (!_getobj(dobj,"oid",dinst,&oid)) { if ((dev=mkobjlist(dobj,NULL,oid,"_output",TRUE))!=NULL) if (_putobj(obj,"_device",inst,dev)) { g_free(dev); return 1; } } } rval->i=GC; if (_putobj(obj,"GC",inst,&GC)) return 1; r = GRAinit(GC,leftm,topm,width,height,zoom); if (r) { error2(obj,ERROPEN,device); close_gc(obj, inst, GC); return r; } GRAaddlist(GC,obj,inst,(char *)argv[0],(char *)argv[1]); return 0; } static int oGRAclose(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; _getobj(obj,"GC",inst,&GC); GRAend(GC); return close_gc(obj, inst, GC); } static int oGRAredraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct objlist *dobj; N_VALUE *dinst; char *device,*dfield,*field; int oid,did; field=(char *)(argv[1]); _getobj(obj,"oid",inst,&oid); _getobj(obj,"_device",inst,&device); if (device!=NULL) { if (((dobj=getobjlist(device,&did,&dfield,NULL))!=NULL) && ((dinst=chkobjinstoid(dobj,did))!=NULL)) { if (chkobjfield(dobj,field)==0) _exeobj(dobj,field,dinst,0,NULL); } } return 0; } static int oGRAclear(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; struct objlist *dobj; N_VALUE *dinst; char *device,*dfield,*field; int oid,did; field=(char *)(argv[1]); _getobj(obj,"GC",inst,&GC); if (GC!=-1) GRAreopen(GC); _getobj(obj,"oid",inst,&oid); _getobj(obj,"_device",inst,&device); if (device!=NULL) { if (((dobj=getobjlist(device,&did,&dfield,NULL))!=NULL) && ((dinst=chkobjinstoid(dobj,did))!=NULL)) { if (chkobjfield(dobj,field)==0) _exeobj(dobj,field,dinst,0,NULL); } } return 0; } static int oGRAputtopm(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; char *arg; _getobj(obj,"GC",inst,&GC); if (GC!=-1) { error(obj,ERRGRABUSY); return 1; } arg=argv[1]; if (arg[0]=='p') { if ((*(int *)(argv[2]))<=0) *(int *)(argv[2])=1; } else if (arg[0]=='z') { if ((*(int *)(argv[2]))<=0) *(int *)(argv[2])=1; } if (oGRAdisconnect(obj,inst,FALSE)) return 1; return 0; } static int oGRAdrawparent(struct objlist *parent, char **oGRAargv) { struct objlist *ocur; int i,instnum; char *objname; ocur=chkobjroot(); while (ocur!=NULL) { if (chkobjparent(ocur)==parent) { instnum = chkobjlastinst(ocur); if (instnum != -1) { objname = chkobjectname(ocur); for (i=0;i<=instnum;i++) { set_progress_val(i, instnum, objname); if (ninterrupt()) return FALSE; exeobj(ocur,"draw",i,1,oGRAargv); } } if (!oGRAdrawparent(ocur, oGRAargv)) return FALSE; } ocur=ocur->next; } return TRUE; } static int oGRAdraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; struct objlist *draw; struct narray *array; char **drawrable, *objname; char *oGRAargv[2]; int j,i,anum,instnum; _getobj(obj,"GC",inst,&GC); if (GC==-1) { error(obj,ERRGRACLOSE); return 1; } _getobj(obj,"draw_obj",inst,&array); oGRAargv[0]=(char *)&GC; oGRAargv[1]=NULL; if (array==NULL) { if ((draw=getobject("draw"))==NULL) return 1; oGRAdrawparent(draw, oGRAargv); } else { anum=arraynum(array); drawrable=arraydata(array); for (j=0;j #include #include #include "object.h" #define NAME "regexp" #define PARENT "object" #define OVERSION "1.00.00" #define ERR_REGEXP 100 #define ERR_INVALID_UTF8 101 static char *regexperrorlist[]={ "invalid regular expression.", "invalid UTF-8 string.", }; struct oregexp_local { GRegex *regexp; struct narray *array; }; #define ERRNUM (sizeof(regexperrorlist) / sizeof(*regexperrorlist)) static void del_array_element(struct narray *array) { int i, n; char ***data; n = arraynum(array); data = arraydata(array); for (i = 0; i < n; i++) { g_strfreev(data[i]); } arraydel(array); } static int regexpinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct oregexp_local *local; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; local = g_malloc0(sizeof(*local)); if (local == NULL) { return 1; } local->array = arraynew(sizeof(char **)); if (local->array == NULL) { g_free(local); return 1; } if (_putobj(obj, "_local", inst, local)) { g_free(local); return 1; } return 0; } static int regexpdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct oregexp_local *local; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj, "_local", inst, &local); if (local->regexp) { g_regex_unref(local->regexp); } if (local->array) { del_array_element(local->array); arrayfree(local->array); } return 0; } static int regexp_set(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct oregexp_local *local; GRegex *regexp; char *str; _getobj(obj, "_local", inst, &local); str = (char *) argv[2]; if (str == NULL || str[0] == '\0') { if (local->regexp) { g_regex_unref(local->regexp); } local->regexp = NULL; del_array_element(local->array); return 0; } if (! g_utf8_validate(str, -1, NULL)) { error(obj, ERR_INVALID_UTF8); return 1; } regexp = g_regex_new(str, 0, 0, NULL); if (regexp == NULL) { error(obj, ERR_REGEXP); return 1; } if (local->regexp) { g_regex_unref(local->regexp); } local->regexp = regexp; del_array_element(local->array); return 0; } static int regexp_get(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct oregexp_local *local; int i, j, n; char ***strvp, **strv; i = * (int *) argv[2]; j = * (int *) argv[3]; g_free(rval->str); rval->str = NULL; if (i < 0) { return 1; } _getobj(obj, "_local", inst, &local); strvp = arraynget(local->array, i); if (strvp == NULL) { return 1; } strv = *strvp; for (n = 0; strv[n]; n++) { if (n == j) { rval->str = g_strdup(strv[n]); return 0; } } return 1; } static int regexp_num(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct oregexp_local *local; rval->i = 0; _getobj(obj, "_local", inst, &local); rval->i = arraynum(local->array); return 0; } static int regexp_match(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct oregexp_local *local; GMatchInfo *info; int r; char *str, **match; str = (char *) argv[2]; rval->i = 0; _getobj(obj, "_local", inst, &local); if (local->regexp == NULL) { return 1; } del_array_element(local->array); if (str == NULL || str[0] == '\0') { return 1; } info = NULL; r = g_regex_match(local->regexp, str, 0, &info); if (! r) { g_match_info_free(info); return 1; } while (g_match_info_matches(info)) { match = g_match_info_fetch_all(info); arrayadd(local->array, &match); g_match_info_next(info, NULL); } g_match_info_free(info); rval->i = arraynum(local->array); return 0; } static int regexp_replace(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct oregexp_local *local; char *str, *replace; g_free(rval->str); rval->str = NULL; str = (char *) argv[2]; replace = (char *) argv[3]; if (str == NULL || str[0] == '\0') { return 0; } if (replace == NULL) { replace = ""; } if (! g_utf8_validate(str, -1, NULL)) { error(obj, ERR_INVALID_UTF8); return 1; } if (! g_utf8_validate(replace, -1, NULL)) { error(obj, ERR_INVALID_UTF8); return 1; } _getobj(obj, "_local", inst, &local); if (local->regexp == NULL) { return 1; } rval->str = g_regex_replace(local->regexp, str, -1, 0, replace, 0, NULL); return 0; } int regexp_seq(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct oregexp_local *local; GString *str; int i, n; g_free(rval->str); rval->str = NULL; _getobj(obj, "_local", inst, &local); n = arraynum(local->array); if (n == 0) { return 0; } str = g_string_sized_new(64); if (str == NULL) { return 0; } for (i = 0; i < n; i++) { g_string_append_printf(str, "%d%s", i, (i == n - 1) ? "" : " "); } rval->str = g_string_free(str, FALSE); return 0; } int regexp_rseq(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct oregexp_local *local; GString *str; int i, n; g_free(rval->str); rval->str = NULL; _getobj(obj, "_local", inst, &local); n = arraynum(local->array); if (n == 0) { return 0; } str = g_string_sized_new(64); if (str == NULL) { return 0; } for (i = 0; i < n; i++) { g_string_append_printf(str, "%d%s", n - i - 1, (i == n - 1) ? "" : " "); } rval->str = g_string_free(str, FALSE); return 0; } static struct objtable oregexp[] = { {"init", NVFUNC, NEXEC, regexpinit, NULL, 0}, {"done", NVFUNC, NEXEC, regexpdone, NULL, 0}, {"next", NPOINTER,0, NULL, NULL, 0}, {"@", NSTR, NREAD|NWRITE,regexp_set, NULL, 0}, {"match", NIFUNC, NREAD|NEXEC, regexp_match,"s", 0}, {"replace", NSFUNC,NREAD|NEXEC, regexp_replace,"ss",0}, {"get", NSFUNC, NREAD|NEXEC, regexp_get, "ii", 0}, {"num", NIFUNC, NREAD|NEXEC, regexp_num, "", 0}, {"seq", NSFUNC, NREAD|NEXEC, regexp_seq, "", 0}, {"rseq", NSFUNC, NREAD|NEXEC, regexp_rseq, "", 0}, {"_local",NPOINTER,0, NULL, NULL, 0}, }; #define TBLNUM (sizeof(oregexp) / sizeof(*oregexp)) void * addregexp(void) { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,oregexp,ERRNUM,regexperrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/otext.c0000644000175000017500000003261612241111703012750 00000000000000/* * $Id: otext.c,v 1.19 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include #include #include #include #include #include #include "common.h" #include "object.h" #include "gra.h" #include "oroot.h" #include "odraw.h" #include "otext.h" #include "olegend.h" #include "mathfn.h" #include "nstring.h" #include "nconfig.h" #include "strconv.h" #define NAME "text" #define PARENT "legend" #define OVERSION "1.00.00" #define TEXTCONF "[text]" #define ERR_INVALID_STR 100 static char *texterrorlist[]={ "invalid string." }; #define ERRNUM (sizeof(texterrorlist) / sizeof(*texterrorlist)) static struct obj_config TextConfig[] = { {"R", OBJ_CONFIG_TYPE_NUMERIC}, {"G", OBJ_CONFIG_TYPE_NUMERIC}, {"B", OBJ_CONFIG_TYPE_NUMERIC}, {"A", OBJ_CONFIG_TYPE_NUMERIC}, {"pt", OBJ_CONFIG_TYPE_NUMERIC}, {"space", OBJ_CONFIG_TYPE_NUMERIC}, {"direction", OBJ_CONFIG_TYPE_NUMERIC}, {"script_size", OBJ_CONFIG_TYPE_NUMERIC}, {"raw", OBJ_CONFIG_TYPE_NUMERIC}, {"font", OBJ_CONFIG_TYPE_STRING}, {"style", OBJ_CONFIG_TYPE_NUMERIC}, }; static NHASH TextConfigHash = NULL; static int textloadconfig(struct objlist *obj,N_VALUE *inst) { return obj_load_config(obj, inst, TEXTCONF, TextConfigHash); } static int textsaveconfig(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { return obj_save_config(obj, inst, TEXTCONF, TextConfig, sizeof(TextConfig) / sizeof(*TextConfig)); } static int textinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int pt,scriptsize; char *font; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; pt=2000; scriptsize=7000; if (_putobj(obj,"pt",inst,&pt)) return 1; if (_putobj(obj,"script_size",inst,&scriptsize)) return 1; font = g_strdup(fontchar[0]); if (font == NULL) { return 1; } if (_putobj(obj,"font",inst,font)) { g_free(font); return 1; } textloadconfig(obj,inst); return 0; } static int textdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int textgeometry(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *field; field=(char *)(argv[1]); if (strcmp(field,"pt") == 0) { if (*(int *)(argv[2])TEXT_OBJ_SCRIPT_SIZE_MAX) { *(int *)(argv[2])=TEXT_OBJ_SCRIPT_SIZE_MAX; } } else if (strcmp(field,"style") == 0) { * (int *) (argv[2]) &= (GRA_FONT_STYLE_BOLD | GRA_FONT_STYLE_ITALIC); } if (clear_bbox(obj, inst)) return 1; return 0; } static int textdraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; int x,y,pt,space,dir,fr,fg,fb,fa,w,h,scriptsize,raw; char *font; char *text; int clip,zoom,style; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"GC",inst,&GC); if (GC<0) return 0; _getobj(obj,"R",inst,&fr); _getobj(obj,"G",inst,&fg); _getobj(obj,"B",inst,&fb); _getobj(obj,"A",inst,&fa); _getobj(obj,"text",inst,&text); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"pt",inst,&pt); _getobj(obj,"space",inst,&space); _getobj(obj,"direction",inst,&dir); _getobj(obj,"script_size",inst,&scriptsize); _getobj(obj,"raw",inst,&raw); _getobj(obj,"font",inst,&font); _getobj(obj,"clip",inst,&clip); _getobj(obj,"style",inst,&style); GRAregion(GC,&w,&h,&zoom); GRAview(GC,0,0,w*10000.0/zoom,h*10000.0/zoom,clip); GRAcolor(GC,fr,fg,fb, fa); GRAmoveto(GC,x,y); if (raw) { GRAdrawtextraw(GC,text,font,style,pt,space,dir); } else { GRAdrawtext(GC,text,font,style,pt,space,dir,scriptsize); } GRAaddlist(GC,obj,inst,(char *)argv[0],(char *)argv[1]); return 0; } static int textprintf(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; char **argv2; int argc2; char *format; int po, arg, i, quote, r; GString *ret; char *arg_str; g_free(rval->str); rval->str=NULL; array=(struct narray *)argv[2]; argv2=arraydata(array); argc2=arraynum(array); if (argc2<1) return 0; format=argv2[0]; ret = g_string_sized_new(64); if (ret == NULL) { return 1; } po=0; arg=1; while (format[po]!='\0') { quote=FALSE; for (i=po;(quote || (format[i]!='%')) && (format[i]!='\0');i++) { if (quote) { quote=FALSE; } else if (format[i]=='\\') { quote=TRUE; } } if (i > po) { g_string_append_len(ret, format + po, i - po); } po = i; if (format[po] != '%') { continue; } arg_str = (arg < argc2 && argv2[arg]) ? argv2[arg] : NULL; r = add_printf_formated_str(ret, format + po, arg_str, &i); if (r) { arg++; } po += i + 1; } rval->str = g_string_free(ret, FALSE); return 0; } static int textbbox(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int minx,miny,maxx,maxy; struct narray *array; int x,y,pt,space,dir,scriptsize,raw,style; char *font; char *text; int gx0,gy0,gx1,gy1; int i,ggx[4],ggy[4]; double si,co; array=rval->array; if (arraynum(array)!=0) return 0; _getobj(obj,"text",inst,&text); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"pt",inst,&pt); _getobj(obj,"space",inst,&space); _getobj(obj,"direction",inst,&dir); _getobj(obj,"script_size",inst,&scriptsize); _getobj(obj,"raw",inst,&raw); _getobj(obj,"font",inst,&font); _getobj(obj,"style",inst,&style); if (raw) { GRAtextextentraw(text,font,style,pt,space,&gx0,&gy0,&gx1,&gy1); } else { GRAtextextent(text,font,style,pt,space,scriptsize,&gx0,&gy0,&gx1,&gy1,FALSE); } si=-sin(dir/18000.0*MPI); co=cos(dir/18000.0*MPI); ggx[0]=x+gx0*co-gy0*si; ggy[0]=y+gx0*si+gy0*co; ggx[1]=x+gx1*co-gy0*si; ggy[1]=y+gx1*si+gy0*co; ggx[2]=x+gx0*co-gy1*si; ggy[2]=y+gx0*si+gy1*co; ggx[3]=x+gx1*co-gy1*si; ggy[3]=y+gx1*si+gy1*co; minx=ggx[0]; maxx=ggx[0]; miny=ggy[0]; maxy=ggy[0]; for (i=1;i<4;i++) { if (ggx[i]maxx) maxx=ggx[i]; if (ggy[i]maxy) maxy=ggy[i]; } if ((array==NULL) && ((array=arraynew(sizeof(int)))==NULL)) return 1; arrayins(array,&(maxy),0); arrayins(array,&(maxx),0); arrayins(array,&(miny),0); arrayins(array,&(minx),0); if (arraynum(array)==0) { arrayfree(array); rval->array = NULL; return 1; } rval->array=array; return 0; } static int textmove(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x,y; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); x+=*(int *)argv[2]; y+=*(int *)argv[3]; if (_putobj(obj,"x",inst,&x)) return 1; if (_putobj(obj,"y",inst,&y)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int textrotate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int dir, angle, use_pivot; _getobj(obj, "direction", inst, &dir); angle = *(int *) argv[2]; use_pivot = * (int *) argv[3]; dir += angle; dir %= 36000; if (dir < 0) dir += 36000; if (use_pivot) { int px, py, x, y; px = *(int *) argv[4]; py = *(int *) argv[5]; _getobj(obj, "x", inst, &x); _getobj(obj, "y", inst, &y); rotate(px, py, angle, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); } _putobj(obj, "direction", inst, &dir); if (clear_bbox(obj, inst)) return 1; return 0; } static int textzoom(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x,y,pt,space,refx,refy; double zoom; zoom=(*(int *)argv[2])/10000.0; refx=(*(int *)argv[3]); refy=(*(int *)argv[4]); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"pt",inst,&pt); _getobj(obj,"space",inst,&space); x=(x-refx)*zoom+refx; y=(y-refy)*zoom+refy; pt=pt*zoom; space=space*zoom; if (pt < 1) pt = 1; if (_putobj(obj,"x",inst,&x)) return 1; if (_putobj(obj,"y",inst,&y)) return 1; if (_putobj(obj,"pt",inst,&pt)) return 1; if (_putobj(obj,"space",inst,&space)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int textmatch(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int minx,miny,maxx,maxy,err; int bminx,bminy,bmaxx,bmaxy; struct narray *array; int gx0,gy0,gx1,gy1; int px,py,px2,py2; double si,co; int x,y,pt,space,dir,scriptsize,raw, style; char *font; char *text; rval->i=FALSE; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"text",inst,&text); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"pt",inst,&pt); _getobj(obj,"space",inst,&space); _getobj(obj,"direction",inst,&dir); _getobj(obj,"script_size",inst,&scriptsize); _getobj(obj,"raw",inst,&raw); _getobj(obj,"font",inst,&font); _getobj(obj,"style",inst,&style); minx=*(int *)(argv[2]); miny=*(int *)(argv[3]); maxx=*(int *)(argv[4]); maxy=*(int *)(argv[5]); err=*(int *)(argv[6]); if ((minx==maxx) && (miny==maxy)) { if (raw) { GRAtextextentraw(text,font,style,pt,space,&gx0,&gy0,&gx1,&gy1); } else { GRAtextextent(text,font,style,pt,space,scriptsize,&gx0,&gy0,&gx1,&gy1,FALSE); } minx-=err; miny-=err; maxx+=err; maxy+=err; si=sin(dir/18000.0*MPI); co=cos(dir/18000.0*MPI); px=minx-x; py=miny-y; px2=px*co-py*si; py2=px*si+py*co; if ((gx0<=px2) && (px2<=gx1) && (gy0<=py2) && (py2<=gy1)) rval->i=TRUE; } else { if (_exeobj(obj,"bbox",inst,0,NULL)) return 1; _getobj(obj,"bbox",inst,&array); if (arraynum(array)<4) return 1; bminx=arraynget_int(array,0); bminy=arraynget_int(array,1); bmaxx=arraynget_int(array,2); bmaxy=arraynget_int(array,3); if ((minx<=bminx) && (bminx<=maxx) && (minx<=bmaxx) && (bmaxx<=maxx) && (miny<=bminy) && (bminy<=maxy) && (miny<=bmaxy) && (bmaxy<=maxy)) rval->i=TRUE; } return 0; } static int text_set_text(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { char *str, *ptr; gsize len; str = argv[2]; if (str == NULL) return 0; if (g_utf8_validate(str, -1, NULL)) return textgeometry(obj, inst, rval, argc, argv); ptr = sjis_to_utf8(str); if (ptr) { g_free(str); argv[2] = ptr; return textgeometry(obj, inst, rval, argc, argv); } ptr = g_locale_to_utf8(str, -1, NULL, &len, NULL); if (ptr) { char *tmp; g_free(str); tmp = g_strdup(ptr); g_free(ptr); if (tmp == NULL) return 1; argv[2] = tmp; return textgeometry(obj, inst, rval, argc, argv); } error(obj, ERR_INVALID_STR); return 1; } static struct objtable text[] = { {"init",NVFUNC,NEXEC,textinit,NULL,0}, {"done",NVFUNC,NEXEC,textdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"text",NSTR,NREAD|NWRITE,text_set_text,NULL,0}, {"x",NINT,NREAD|NWRITE,textgeometry,NULL,0}, {"y",NINT,NREAD|NWRITE,textgeometry,NULL,0}, {"pt",NINT,NREAD|NWRITE,textgeometry,NULL,0}, {"font",NSTR,NREAD|NWRITE,textgeometry,NULL,0}, {"style",NINT,NREAD|NWRITE,textgeometry,NULL,0}, {"space",NINT,NREAD|NWRITE,textgeometry,NULL,0}, {"direction",NINT,NREAD|NWRITE,textgeometry,NULL,0}, {"script_size",NINT,NREAD|NWRITE,textgeometry,NULL,0}, {"raw",NBOOL,NREAD|NWRITE,textgeometry,NULL,0}, {"draw",NVFUNC,NREAD|NEXEC,textdraw,"i",0}, {"printf",NSFUNC,NREAD|NEXEC,textprintf,"sa",0}, {"bbox",NIAFUNC,NREAD|NEXEC,textbbox,"",0}, {"move",NVFUNC,NREAD|NEXEC,textmove,"ii",0}, {"rotate",NVFUNC,NREAD|NEXEC,textrotate,"iiii",0}, {"zooming",NVFUNC,NREAD|NEXEC,textzoom,"iiii",0}, {"match",NBFUNC,NREAD|NEXEC,textmatch,"iiiii",0}, {"save_config",NVFUNC,NREAD|NEXEC,textsaveconfig,"",0}, /* following fields exist for backward compatibility */ {"jfont",NSTR,NWRITE,textgeometry,NULL,0}, }; #define TBLNUM (sizeof(text) / sizeof(*text)) void * addtext() /* addtext() returns NULL on error */ { unsigned int i; if (TextConfigHash == NULL) { TextConfigHash = nhash_new(); if (TextConfigHash == NULL) return NULL; for (i = 0; i < sizeof(TextConfig) / sizeof(*TextConfig); i++) { if (nhash_set_ptr(TextConfigHash, TextConfig[i].name, (void *) &TextConfig[i])) { nhash_free(TextConfigHash); return NULL; } } } return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,text,ERRNUM,texterrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/odarray.c0000644000175000017500000002657312241111703013253 00000000000000/* * $Id: odarray.c,v 1.6 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include "object.h" #include "oiarray.h" #include "math/math_equation.h" #define NAME "darray" #define PARENT "object" #define OVERSION "1.00.00" #define ERRILNAME 100 #define ERROUTBOUND 101 static char *darrayerrorlist[]={ "", "array index is out of array bounds.", }; #define ERRNUM (sizeof(darrayerrorlist) / sizeof(*darrayerrorlist)) static int darrayinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int darraydone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int darrayget(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; double *po; num=*(int *)argv[2]; _getobj(obj,"@",inst,&array); num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } po=(double *)arraynget(array,num); if (po==NULL) { error(obj, ERROUTBOUND); return 1; } rval->d=*po; return 0; } static int darrayput(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; double val; num=*(int *)argv[2]; val=*(double *)argv[3]; _getobj(obj,"@",inst,&array); num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } if (arrayput(array,&val,num)==NULL) return 1; return 0; } static int darrayadd(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; double val; val=*(double *)argv[2]; array = oarray_get_array(obj, inst, sizeof(double)); if (array==NULL) { return 1; } if (arrayadd(array,&val)==NULL) return 1; return 0; } static int darraypop(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; double val; int n; rval->d = 0.0; _getobj(obj,"@",inst,&array); if (array == NULL) { return 1; } n = arraynum(array) - 1; if (n < 0) { return 1; } val = arraynget_double(array, n); if (arrayndel(array, n) == NULL) { return 1; } if (arraynum(array) == 0) { arrayfree(array); if (_putobj(obj, "@", inst, NULL)) { return 1; } } rval->d = val; return 0; } static int darrayins(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; double val; num=*(int *)argv[2]; val=*(double *)argv[3]; array = oarray_get_array(obj, inst, sizeof(double)); if (array==NULL) { return 1; } num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } if (arrayins(array,&val,num)==NULL) return 1; return 0; } static int darrayunshift(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; double val; val = * (double *) argv[2]; array = oarray_get_array(obj, inst, sizeof(double)); if (array == NULL) { return 1; } if (arrayins(array, &val, 0)==NULL) { return 1; } return 0; } static int darrayshift(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; double val; rval->d = 0; _getobj(obj,"@",inst,&array); if (array == NULL) { return 1; } val = arraynget_double(array, 0); if (arrayndel(array, 0) == NULL) { return 1; } if (arraynum(array) == 0) { arrayfree(array); if (_putobj(obj, "@", inst, NULL)) { return 1; } } rval->d = val; return 0; } static int darraydel(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { struct narray *array; int num; num=*(int *)argv[2]; _getobj(obj,"@",inst,&array); if (array==NULL) return 1; num = oarray_get_index(array, num); if (num < 0) { error(obj, ERROUTBOUND); return 1; } if (arrayndel(array,num)==NULL) { error(obj, ERROUTBOUND); return 1; } if (arraynum(array)==0) { arrayfree(array); if (_putobj(obj,"@",inst,NULL)) return 1; } return 0; } static int darraysort(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); arraysort_double(array); return 0; } static int darrayrsort(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); arrayrsort_double(array); return 0; } static int darrayuniq(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc, char **argv) { struct narray *array; _getobj(obj, "@", inst, &array); arrayuniq_double(array); return 0; } static int darrayjoin(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; GString *str; int i, n; char *sep, *ptr; double val; g_free(rval->str); rval->str = NULL; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } ptr = (char *) argv[2]; if (ptr) { sep = g_strcompress(ptr); } else { sep = g_strdup(","); } if (sep == NULL) { return 1; } str = g_string_sized_new(64); if (str == NULL) { g_free(sep); return 1; } for (i = 0; i < n; i++) { val = arraynget_double(array, i); g_string_append_printf(str, "%.15e%s", val, (i == n - 1) ? "" : sep); } rval->str = g_string_free(str, FALSE); g_free(sep); return 0; } static double calc_sum(const double *d, int n) { double sum; int i; sum = 0; for (i = 0; i < n; i++) { sum += d[i]; } return sum; } static double calc_square_sum(const double *d, int n) { double sum; int i; sum = 0; for (i = 0; i < n; i++) { sum += d[i] * d[i]; } return sum; } static int darray_sum(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int n; double *data; rval->d = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } data = arraydata(array); rval->d = calc_sum(data, n); return 0; } static int darray_average(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int n; double val, *data; rval->d = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } data = arraydata(array); val = calc_sum(data, n); rval->d = val / n; return 0; } static int darray_rms(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int n; double val, *data; rval->d = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } data = arraydata(array); val = calc_square_sum(data, n); rval->d = sqrt(val / n); return 0; } static int darray_sdev(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int n; double sum, ssum, val, *data; rval->d = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 0; } data = arraydata(array); sum = calc_sum(data, n); ssum = calc_square_sum(data, n); sum /= n; val = ssum / n - sum * sum; rval->d = sqrt(val); return 0; } static int darray_min(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int i, n; double val, *data; rval->d = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 1; } data = arraydata(array); val = data[0]; for (i = 1; i < n; i++) { if (data[i] < val) { val = data[i]; } } rval->d = val; return 0; } static int darray_max(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int i, n; double val, *data; rval->d = 0; _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 1; } data = arraydata(array); val = data[0]; for (i = 1; i < n; i++) { if (data[i] > val) { val = data[i]; } } rval->d = val; return 0; } static int darray_map(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { struct narray *array; int i, n; double *data; MathEquation *code; MathValue val; if (argv[2] == NULL) { return 0; } _getobj(obj, "@", inst, &array); n = arraynum(array); if (n == 0) { return 1; } code = oarray_create_math(obj, argv[1], argv[2]); if (code == NULL) { return 1; } data = arraydata(array); for (i = 0; i < n; i++) { val.val = data[i]; val.type = MATH_VALUE_NORMAL; math_equation_set_var(code, 0, &val); val.val = i; val.type = MATH_VALUE_NORMAL; math_equation_set_var(code, 1, &val); math_equation_calculate(code, &val); data[i] = val.val; } math_equation_free(code); return 0; } static struct objtable odarray[] = { {"init",NVFUNC,NEXEC,darrayinit,NULL,0}, {"done",NVFUNC,NEXEC,darraydone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"@",NDARRAY,NREAD|NWRITE,NULL,NULL,0}, {"get",NDFUNC,NREAD|NEXEC,darrayget,"i",0}, {"put",NVFUNC,NREAD|NEXEC,darrayput,"id",0}, {"add",NVFUNC,NREAD|NEXEC,darrayadd,"d",0}, {"push",NVFUNC,NREAD|NEXEC,darrayadd,"d",0}, {"pop",NDFUNC,NREAD|NEXEC,darraypop,"",0}, {"ins",NVFUNC,NREAD|NEXEC,darrayins,"id",0}, {"unshift",NVFUNC,NREAD|NEXEC,darrayunshift,"d",0}, {"shift",NDFUNC,NREAD|NEXEC,darrayshift,"",0}, {"del",NVFUNC,NREAD|NEXEC,darraydel,"i",0}, {"join",NSFUNC,NREAD|NEXEC,darrayjoin,"s",0}, {"sort",NVFUNC,NREAD|NEXEC,darraysort,"",0}, {"rsort",NVFUNC,NREAD|NEXEC,darrayrsort,"",0}, {"uniq",NVFUNC,NREAD|NEXEC,darrayuniq,"",0}, {"sum", NDFUNC, NREAD|NEXEC, darray_sum, "", 0}, {"average", NDFUNC, NREAD|NEXEC, darray_average, "", 0}, {"sdev", NDFUNC, NREAD|NEXEC, darray_sdev, "", 0}, {"RMS", NDFUNC, NREAD|NEXEC, darray_rms, "", 0}, {"min", NDFUNC, NREAD|NEXEC, darray_min, "", 0}, {"max", NDFUNC, NREAD|NEXEC, darray_max, "", 0}, {"num", NIFUNC, NREAD|NEXEC, oarray_num, "", 0}, {"seq", NSFUNC, NREAD|NEXEC, oarray_seq, "", 0}, {"rseq", NSFUNC, NREAD|NEXEC, oarray_reverse_seq, "", 0}, {"reverse", NVFUNC, NREAD|NEXEC, oarray_reverse, "", 0}, {"slice", NVFUNC, NREAD|NEXEC, oarray_slice, "ii", 0}, {"map", NVFUNC, NREAD|NEXEC, darray_map, "s", 0}, }; #define TBLNUM (sizeof(odarray) / sizeof(*odarray)) void * adddarray(void) { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,odarray,ERRNUM,darrayerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/oarc.c0000644000175000017500000003463412241111706012536 00000000000000/* * $id: oarc.c,v 1.21 2010-03-04 08:30:16 hito Exp $ * * This file is part of "Ngraph for X11". * * Copyright (C) 2002, Satoshi ISHIZAKA. isizaka@msa.biglobe.ne.jp * * "Ngraph for X11" 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. * * "Ngraph for X11" 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include "common.h" #include #include #include #include #include "common.h" #include "object.h" #include "gra.h" #include "mathfn.h" #include "oroot.h" #include "odraw.h" #include "olegend.h" #include "oarc.h" #define NAME "arc" #define PARENT "legend" #define OVERSION "1.00.00" static char *arcerrorlist[]={ "" }; #define ERRNUM (sizeof(arcerrorlist) / sizeof(*arcerrorlist)) static int arcinit(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int angle2, width, pieslice, stroke, miter, join, alpha; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; angle2 = 36000; width = 40; pieslice = TRUE; miter = 1000; join = JOIN_TYPE_BEVEL; stroke = TRUE; alpha = 255; if (_putobj(obj, "pieslice", inst, &pieslice)) return 1; if (_putobj(obj, "angle2", inst, &angle2)) return 1; if (_putobj(obj, "width", inst, &width)) return 1; if (_putobj(obj, "miter_limit", inst, &miter)) return 1; if (_putobj(obj, "join", inst, &join)) return 1; if (_putobj(obj, "stroke", inst, &stroke)) return 1; if (_putobj(obj, "stroke_A", inst, &alpha)) return 1; if (_putobj(obj, "fill_A", inst, &alpha)) return 1; return 0; } static int arcdone(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; return 0; } static int arcdraw(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int GC; int x,y,rx,ry,angle1,angle2,width,ifill,fr,fg,fb,fa,w,h,stroke,close_path,br,bg,bb, ba, join, miter; int pieslice; struct narray *style; int snum,*sdata; int clip,zoom; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"GC",inst,&GC); if (GC<0) return 0; _getobj(obj,"stroke_R",inst,&fr); _getobj(obj,"stroke_G",inst,&fg); _getobj(obj,"stroke_B",inst,&fb); _getobj(obj,"stroke_A",inst,&fa); _getobj(obj,"fill_R",inst,&br); _getobj(obj,"fill_G",inst,&bg); _getobj(obj,"fill_B",inst,&bb); _getobj(obj,"fill_A",inst,&ba); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"rx",inst,&rx); _getobj(obj,"ry",inst,&ry); _getobj(obj,"pieslice",inst,&pieslice); _getobj(obj,"angle1",inst,&angle1); _getobj(obj,"angle2",inst,&angle2); _getobj(obj,"width",inst,&width); _getobj(obj,"style",inst,&style); _getobj(obj, "join", inst, &join); _getobj(obj, "miter_limit", inst, &miter); _getobj(obj,"fill",inst,&ifill); _getobj(obj,"stroke",inst,&stroke); _getobj(obj,"close_path",inst,&close_path); _getobj(obj,"clip",inst,&clip); if (! ifill && ! stroke) { return 0; } snum=arraynum(style); sdata=arraydata(style); GRAregion(GC,&w,&h,&zoom); GRAview(GC,0,0,w*10000.0/zoom,h*10000.0/zoom,clip); if (ifill) { GRAcolor(GC,br,bg,bb, ba); GRAcircle(GC, x, y, rx, ry, angle1, angle2, (pieslice) ? 1 : 2); } if (stroke) { GRAcolor(GC,fr,fg,fb, fa); GRAlinestyle(GC, snum, sdata, width, GRA_LINE_CAP_BUTT, join, miter); GRAcircle(GC, x, y, rx, ry, angle1, angle2, (close_path) ? ((pieslice) ? 3 : 4) : 0); } GRAaddlist(GC,obj,inst,(char *)argv[0],(char *)argv[1]); return 0; } static int arcgeometry(struct objlist *obj,N_VALUE *inst,N_VALUE *rval, int argc,char **argv) { char *field; int val; field = (char *) (argv[1]); val = * (int *) (argv[2]); if (strcmp(field,"width")==0) { if (val < 1) val = 1; } else if (strcmp(field, "rx") == 0 || strcmp(field, "ry") == 0) { if (val < 1) val = 1; } else if (strcmp(field, "angle1") == 0){ if (val < 0) { val %= 36000; if (val < 0) { val += 36000; } } else if (val > 36000) { val %= 36000; } } else if (strcmp(field, "angle2") == 0) { if (val < 0) { val = 0; } else if (val > 36000) { val = 36000; } } * (int *)(argv[2]) = val; if (clear_bbox(obj, inst)) return 1; return 0; } static int arcbbox(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int minx,miny,maxx,maxy; int x,y,x1,y1; int x0,y0,angle1,angle2,rx,ry,pieslice,fill,stroke,close_path; struct narray *array; int i,width; array=rval->array; if (arraynum(array)!=0) return 0; _getobj(obj,"x",inst,&x0); _getobj(obj,"y",inst,&y0); _getobj(obj,"rx",inst,&rx); _getobj(obj,"ry",inst,&ry); _getobj(obj,"angle1",inst,&angle1); _getobj(obj,"angle2",inst,&angle2); _getobj(obj,"fill",inst,&fill); _getobj(obj,"stroke",inst,&stroke); _getobj(obj,"pieslice",inst,&pieslice); _getobj(obj,"close_path",inst,&close_path); _getobj(obj,"width",inst,&width); angle2+=angle1; if (! fill && ! stroke) { return 0; } if (angle2maxx) maxx=x; if (ymaxy) maxy=y; for (i=angle1/9000+1;i<=angle2/9000;i++) { x=x0+rx*cos(i*MPI/2); y=y0-ry*sin(i*MPI/2); if (xmaxx) maxx=x; if (ymaxy) maxy=y; } if (pieslice && (fill || close_path)) { x=x0; y=y0; if (xmaxx) maxx=x; if (ymaxy) maxy=y; } if (stroke) { minx-=width/2; miny-=width/2; maxx+=width/2; maxy+=width/2; } arrayins(array,&maxy,0); arrayins(array,&maxx,0); arrayins(array,&miny,0); arrayins(array,&minx,0); /* ARC_POINT_TYPE_R */ x = x0 - rx; y = y0 - ry; arrayadd(array, &x); arrayadd(array, &y); /* ARC_POINT_TYPE_ANGLE1 */ arrayadd(array, &x1); arrayadd(array, &y1); /* ARC_POINT_TYPE_ANGLE2 */ if (angle2 - angle1 < 36000) { x = x0 + rx * cos(angle2 * MPI / 18000); y = y0 - ry * sin(angle2 * MPI / 18000); arrayadd(array, &x); arrayadd(array, &y); } if (arraynum(array) == 0) { arrayfree(array); rval->array = NULL; return 1; } rval->array = array; return 0; } static int arcmove(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int x,y; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); x+=*(int *)argv[2]; y+=*(int *)argv[3]; if (_putobj(obj,"x",inst,&x)) return 1; if (_putobj(obj,"y",inst,&y)) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int arcchange(struct objlist *obj, N_VALUE *inst, N_VALUE *rval, int argc, char **argv) { int point, a1, a2, rx, ry, ret; if (_exeparent(obj, (char *)argv[1], inst, rval, argc, argv)) return 1; point = * (int *) argv[2]; a1 = * (int *) argv[3]; a2 = * (int *) argv[4]; ret = 1; switch (point) { case ARC_POINT_TYPE_R: _getobj(obj, "rx", inst, &rx); _getobj(obj, "ry", inst, &ry); rx -= a1; ry -= a2; if (rx > 0) ret = _putobj(obj, "rx", inst, &rx); if (ry > 0) ret = _putobj(obj, "ry", inst, &ry); break; case ARC_POINT_TYPE_ANGLE1: case ARC_POINT_TYPE_ANGLE2: ret = _putobj(obj, "angle1", inst, &a1); ret = _putobj(obj, "angle2", inst, &a2); break; default: return 1; } if (ret) return 1; if (clear_bbox(obj, inst)) return 1; return 0; } static int arcrotate(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int tmp, angle, rx, ry, a, use_pivot; _getobj(obj, "rx", inst, &rx); _getobj(obj, "ry", inst, &ry); _getobj(obj, "angle1", inst, &a); angle = *(int *) argv[2]; angle %= 36000; if (angle < 0) angle += 36000; switch (angle) { case 9000: case 27000: tmp = rx; rx = ry; ry = tmp; _putobj(obj, "rx", inst, &rx); _putobj(obj, "ry", inst, &ry); case 18000: a += angle; break; default: return 1; } a %= 36000; _putobj(obj, "angle1", inst, &a); use_pivot = * (int *) argv[3]; if (use_pivot) { int x, y, px, py; px = *(int *) argv[4]; py = *(int *) argv[5]; _getobj(obj, "x", inst, &x); _getobj(obj, "y", inst, &y); rotate(px, py, angle, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); } if (clear_bbox(obj, inst)) return 1; return 0; } static int arcflip(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int rx, ry, a1, a2, use_pivot; enum FLIP_DIRECTION dir; _getobj(obj, "rx", inst, &rx); _getobj(obj, "ry", inst, &ry); _getobj(obj, "angle1", inst, &a1); _getobj(obj, "angle2", inst, &a2); dir = (* (int *) argv[2] == FLIP_DIRECTION_HORIZONTAL) ? FLIP_DIRECTION_HORIZONTAL : FLIP_DIRECTION_VERTICAL; switch (dir) { case FLIP_DIRECTION_VERTICAL: a1 = - a1 - a2; break; case FLIP_DIRECTION_HORIZONTAL: a1 = 18000 - a1 - a2; break; } a1 %= 36000; if (a1 < 0) a1 += 36000; _putobj(obj, "angle1", inst, &a1); use_pivot = * (int *) argv[3]; if (use_pivot) { int x, y, p; p = *(int *) argv[4]; _getobj(obj, "x", inst, &x); _getobj(obj, "y", inst, &y); flip(p, dir, &x, &y); _putobj(obj, "x", inst, &x); _putobj(obj, "y", inst, &y); } if (clear_bbox(obj, inst)) return 1; return 0; } static int arczoom(struct objlist *obj,N_VALUE *inst,N_VALUE *rval,int argc,char **argv) { int i,snum,*sdata,rx,ry,x,y,refx,refy,width,preserve_width; double zoom; struct narray *style; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; zoom=(*(int *)argv[2])/10000.0; refx=(*(int *)argv[3]); refy=(*(int *)argv[4]); preserve_width = (*(int *)argv[5]); _getobj(obj,"x",inst,&x); _getobj(obj,"y",inst,&y); _getobj(obj,"rx",inst,&rx); _getobj(obj,"ry",inst,&ry); _getobj(obj,"width",inst,&width); _getobj(obj,"style",inst,&style); snum=arraynum(style); sdata=arraydata(style); x=(x-refx)*zoom+refx; y=(y-refy)*zoom+refy; rx=rx*zoom; ry=ry*zoom; if (rx < 1) rx = 1; if (ry < 1) ry = 1; if (! preserve_width) { width=width*zoom; for (i=0;ii=FALSE; if (_exeparent(obj,(char *)argv[1],inst,rval,argc,argv)) return 1; if (_exeobj(obj,"bbox",inst,0,NULL)) return 1; _getobj(obj,"bbox",inst,&array); if (array==NULL) return 0; minx=*(int *)(argv[2]); miny=*(int *)(argv[3]); maxx=*(int *)(argv[4]); maxy=*(int *)(argv[5]); err=*(int *)(argv[6]); if (arraynum(array)<4) return 1; bminx=arraynget_int(array,0); bminy=arraynget_int(array,1); bmaxx=arraynget_int(array,2); bmaxy=arraynget_int(array,3); if ((minx==maxx) && (miny==maxy)) { bminx-=err; bminy-=err; bmaxx+=err; bmaxy+=err; if ((bminx<=minx) && (minx<=bmaxx) && (bminy<=miny) && (miny<=bmaxy)) rval->i=TRUE; } else { if ((minx<=bminx) && (bminx<=maxx) && (minx<=bmaxx) && (bmaxx<=maxx) && (miny<=bminy) && (bminy<=maxy) && (miny<=bmaxy) && (bmaxy<=maxy)) rval->i=TRUE; } return 0; } static struct objtable arc[] = { {"init",NVFUNC,NEXEC,arcinit,NULL,0}, {"done",NVFUNC,NEXEC,arcdone,NULL,0}, {"next",NPOINTER,0,NULL,NULL,0}, {"x",NINT,NREAD|NWRITE,arcgeometry,NULL,0}, {"y",NINT,NREAD|NWRITE,arcgeometry,NULL,0}, {"rx",NINT,NREAD|NWRITE,arcgeometry,NULL,0}, {"ry",NINT,NREAD|NWRITE,arcgeometry,NULL,0}, {"angle1",NINT,NREAD|NWRITE,arcgeometry,NULL,0}, {"angle2",NINT,NREAD|NWRITE,arcgeometry,NULL,0}, {"pieslice",NBOOL,NREAD|NWRITE,arcgeometry,NULL,0}, {"fill_R",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"fill_G",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"fill_B",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"fill_A",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"stroke_R",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"stroke_G",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"stroke_B",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"stroke_A",NINT,NREAD|NWRITE,oputcolor,NULL,0}, {"fill",NBOOL,NREAD|NWRITE,arcgeometry,NULL,0}, {"stroke",NBOOL,NREAD|NWRITE,arcgeometry,NULL,0}, {"close_path",NBOOL,NREAD|NWRITE,arcgeometry,NULL,0}, {"width",NINT,NREAD|NWRITE,arcgeometry,NULL,0}, {"style",NIARRAY,NREAD|NWRITE,oputstyle,NULL,0}, {"join",NENUM,NREAD|NWRITE,NULL,joinchar,0}, {"miter_limit",NINT,NREAD|NWRITE,oputge1,NULL,0}, {"draw",NVFUNC,NREAD|NEXEC,arcdraw,"i",0}, {"bbox",NIAFUNC,NREAD|NEXEC,arcbbox,"",0}, {"move",NVFUNC,NREAD|NEXEC,arcmove,"ii",0}, {"rotate",NVFUNC,NREAD|NEXEC,arcrotate,"iiii",0}, {"flip",NVFUNC,NREAD|NEXEC,arcflip,"iii",0}, {"change",NVFUNC,NREAD|NEXEC,arcchange,"iii",0}, {"zooming",NVFUNC,NREAD|NEXEC,arczoom,"iiii",0}, {"match",NBFUNC,NREAD|NEXEC,arcmatch,"iiiii",0}, /* following fields exist for backward compatibility */ {"R",NINT,NWRITE,put_color_for_backward_compatibility,NULL,0}, {"G",NINT,NWRITE,put_color_for_backward_compatibility,NULL,0}, {"B",NINT,NWRITE,put_color_for_backward_compatibility,NULL,0}, {"A",NINT,NWRITE,put_color_for_backward_compatibility,NULL,0}, }; #define TBLNUM (sizeof(arc) / sizeof(*arc)) void * addarc(void) /* addarc() returns NULL on error */ { return addobject(NAME,NULL,PARENT,OVERSION,TBLNUM,arc,ERRNUM,arcerrorlist,NULL,NULL); } ngraph-gtk-6.06.13/src/math/0000755000175000017500000000000012241600064012445 500000000000000ngraph-gtk-6.06.13/src/math/math_constant.c0000644000175000017500000000254612241111705015401 00000000000000#include "config.h" #include #include "math_expression.h" #include "math_equation.h" #include "math_constant.h" static struct math_const_parameter MathConstParameter[] = { {"BREAK", MATH_SCANNER_VAL_TYPE_NORMAL, {0, MATH_VALUE_BREAK}}, {"UNDEF", MATH_SCANNER_VAL_TYPE_NORMAL, {0, MATH_VALUE_UNDEF}}, {"EULER", MATH_SCANNER_VAL_TYPE_NORMAL, {0.57721566490153286061, MATH_VALUE_NORMAL}}, {"CONT", MATH_SCANNER_VAL_TYPE_NORMAL, {0, MATH_VALUE_CONT}}, {"NAN", MATH_SCANNER_VAL_TYPE_NORMAL, {0, MATH_VALUE_NAN}}, {"PI", MATH_SCANNER_VAL_TYPE_NORMAL, {3.14159265358979323846, MATH_VALUE_NORMAL}}, {"E", MATH_SCANNER_VAL_TYPE_NORMAL, {2.71828182845904523536, MATH_VALUE_NORMAL}}, }; int math_add_basic_constant(MathEquation *eq) { unsigned int i; for (i = 0; i < sizeof(MathConstParameter) / sizeof(*MathConstParameter); i++) { if (math_equation_add_const(eq, MathConstParameter[i].str, &MathConstParameter[i].val) < 0) { return 1; } } return 0; } enum MATH_SCANNER_VAL_TYPE math_scanner_check_math_const_parameter(char *str, MathValue *val) { unsigned int i; for (i = 0; i < sizeof(MathConstParameter) / sizeof(*MathConstParameter); i++) { if (strcmp(str, MathConstParameter[i].str) == 0) { *val = MathConstParameter[i].val; return MathConstParameter[i].type; } } return MATH_SCANNER_VAL_TYPE_UNKNOWN; } ngraph-gtk-6.06.13/src/math/math_function.rb0000644000175000017500000000644412241111705015557 00000000000000#! /usr/bin/ruby func_str = []; IO.foreach(ARGV[0]) { |l| next if (l[0] == ?#) l.chomp! next if (l.length < 1) func_str.push(l.split) } func_str = func_str.uniq.sort {|a, b| b[0].length - a[0].length} File.open("#{ARGV[1]}.h", "w") { |f| f.puts < #include #include #include "math_expression.h" #include "math_equation.h" #include "math_function.h" struct funcs { char *name; struct math_function_parameter prm; }; static struct funcs FuncAry[] = { EOF func = [] i = 0; func_str.each {|s| if (s.length == 5) f.puts(" {\"#{s[0].upcase}\", {#{s[1]}, #{s[2]}, #{s[3]}, math_func_#{s[0]}, NULL, NULL, NULL, NULL}},") if (s[4] != "NULL") func.push([i, s[4].split(","), s[0].upcase]) end i += 1 elsif (s.length == 6) f.puts("#ifdef HAVE_LIBGSL") f.puts(" {\"#{s[0].upcase}\", {#{s[1]}, #{s[2]}, #{s[3]}, math_func_#{s[0]}, NULL, NULL, NULL, NULL}},") if (s[4] != "NULL") func.push([i, s[4].split(","), s[0].upcase]) end f.puts("#else") f.puts(" {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}},") f.puts("#endif") i += 1 end } f.puts("};\n\n") f.puts < #include "math_expression.h" #include "math_equation.h" #include "math_constant.h" static struct math_const_parameter MathConstParameter[] = { EOF const_str.each {|s| if (s.length == 3) f.puts(" {\"#{s[0]}\", MATH_SCANNER_VAL_TYPE_NORMAL, {#{s[1]}, #{s[2]}}},") end } f.puts("};\n\n") f.puts < #include #include #include "common.h" #include "math_equation.h" #define ERR_MSG_EOEQ N_("syntax error, unexpected end of equation.") #define ERR_MSG_FUNC_NEST N_("syntax error, function definition cannot be nested.") #define ERR_MSG_UNEXP_OP N_("syntax error, unexpected operator.") #define ERR_MSG_UNEXP_TOK N_("syntax error, unexpected token.") #define ERR_MSG_ARG_NUM N_("syntax error, wrong number of arguments.") #define ERR_MSG_MISS_RP N_("syntax error, unexpected end of equation, expecting ')'.") #define ERR_MSG_MISS_RC N_("syntax error, unexpected end of equation, expecting '}'.") #define ERR_MSG_MISS_RB N_("syntax error, unexpected end of equation, expecting ']'.") #define ERR_MSG_INVALID_F N_("syntax error, invalid function definition.") #define ERR_MSG_INVALID_C N_("syntax error, constant cannot be defined in a function definition.") #define ERR_MSG_INVALID_P N_("error, invalid parameter.") #define ERR_MSG_PRM_IN_DEF N_("error, a parameter cannot be used in a user function or a constant definition.") #define ERR_MSG_UNKNOWN_F N_("error, unknown function.") #define ERR_MSG_MEMORY N_("error, cannot allocate enough memory.") #define ERR_MSG_UNKNOWN N_("error, unknown error.") #define ERR_MSG_POS_FUNC N_("error, the function cannot be used in a user function or a constant definition.") #define ERR_MSG_CONST_EXIST N_("error, the constant is already defined.") #define ERR_MSG_CALCULATION N_("error, calculation error.") static char * check_error_position(MathEquation *eq, const char *code) { int i, l, len; char *buf; if (code == NULL) return NULL; len = strlen(code); l = eq->err_info.pos - code; if (l < 0) return NULL; if (l >= len) return NULL; if (eq->err_info.pos[0] == ';' || eq->err_info.pos[0] == '=' || eq->err_info.pos[0] == '\0') return NULL; len -= l; buf = g_malloc(len + 1); if (buf == NULL) return NULL; for (i = 0; i < len; i++) { if (eq->err_info.pos[i] == ';' || eq->err_info.pos[i] == '=') break; buf[i] = eq->err_info.pos[i]; } buf[i] = '\0'; return buf; } char * math_err_get_error_message(MathEquation *eq, const char *code, int err) { char *code_buf = NULL, *buf = NULL, *ptr; switch (err) { case MATH_ERROR_NONE: break; case MATH_ERROR_EOEQ: buf = g_strdup(_(ERR_MSG_EOEQ)); break; case MATH_ERROR_FDEF_NEST: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_FUNC_NEST), code_buf); } else { buf = g_strdup(_(ERR_MSG_FUNC_NEST)); } break; case MATH_ERROR_UNEXP_OPE: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_UNEXP_OP), code_buf); } else { buf = g_strdup(_(ERR_MSG_UNEXP_OP)); } break; case MATH_ERROR_ARG_NUM: if (eq->err_info.func.fprm) { buf = g_strdup_printf("%s (%d for %d) '%s()'", _(ERR_MSG_ARG_NUM), eq->err_info.func.arg_num, eq->err_info.func.fprm->argc, eq->err_info.func.fprm->name); } else { buf = g_strdup(_(ERR_MSG_ARG_NUM)); } break; case MATH_ERROR_MISS_RP: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_MISS_RP), code_buf); } else { buf = g_strdup(_(ERR_MSG_MISS_RP)); } break; case MATH_ERROR_MISS_RB: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_MISS_RB), code_buf); } else { buf = g_strdup(_(ERR_MSG_MISS_RB)); } break; case MATH_ERROR_MISS_RC: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_MISS_RC), code_buf); } else { buf = g_strdup(_(ERR_MSG_MISS_RC)); } break; case MATH_ERROR_UNKNOWN_FUNC: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_UNKNOWN_F), code_buf); } else { buf = g_strdup(_(ERR_MSG_UNKNOWN_F)); } break; case MATH_ERROR_INVALID_FDEF: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_INVALID_F), code_buf); } else { buf = g_strdup(_(ERR_MSG_INVALID_F)); } break; case MATH_ERROR_INVALID_CDEF: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_INVALID_C), code_buf); } else { buf = g_strdup(_(ERR_MSG_INVALID_C)); } break; case MATH_ERROR_UNEXP_TOKEN: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_UNEXP_TOK), code_buf); } else { buf = g_strdup(_(ERR_MSG_UNEXP_TOK)); } break; case MATH_ERROR_INVALID_PRM: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_INVALID_P), code_buf); } else { buf = g_strdup(_(ERR_MSG_INVALID_P)); } break; case MATH_ERROR_PRM_IN_DEF: code_buf = check_error_position(eq, code); if (code_buf) { buf = g_strdup_printf(_("%s\n the error is found at: %s"), _(ERR_MSG_PRM_IN_DEF), code_buf); } else { buf = g_strdup(_(ERR_MSG_PRM_IN_DEF)); } break; case MATH_ERROR_MEMORY: buf = g_strdup(_(ERR_MSG_MEMORY)); break; case MATH_ERROR_UNKNOWN: buf = g_strdup(_(ERR_MSG_UNKNOWN)); break; case MATH_ERROR_INVALID_FUNC: if (eq->err_info.func.fprm) { buf = g_strdup_printf("%s '%s()'", _(ERR_MSG_POS_FUNC), eq->err_info.func.fprm->name); } else { buf = g_strdup(_(ERR_MSG_POS_FUNC)); } break; case MATH_ERROR_CONST_EXIST: ptr = math_equation_get_const_name(eq, eq->err_info.const_id); if (ptr) { buf = g_strdup_printf("%s '%s'", _(ERR_MSG_CONST_EXIST), ptr); } else { buf = g_strdup(_(ERR_MSG_CONST_EXIST)); } break; case MATH_ERROR_CALCULATION: buf = g_strdup(_(ERR_MSG_CALCULATION)); break; default: buf = g_strdup(_(ERR_MSG_UNKNOWN)); } if (code_buf) g_free(code_buf); if (buf) { gsize len; ptr = g_locale_from_utf8(buf, -1, NULL, &len, NULL); g_free(buf); buf = ptr; } return buf; } ngraph-gtk-6.06.13/src/math/math_function.h.in0000644000175000017500000000352312241111705016003 00000000000000#name argc side_effect positional arg_type use_GSL #arg_type 0: MATH_FUNCTION_ARG_TYPE_DOUBLE, 1: MATH_FUNCTION_ARG_TYPE_ARRAY, 2: MATH_FUNCTION_ARG_TYPE_PROC abs 1 0 0 NULL sign 1 0 0 NULL int 1 0 0 NULL gauss 1 0 0 NULL frac 1 0 0 NULL round 1 0 0 NULL min -1 0 0 NULL max -1 0 0 NULL sqr 1 0 0 NULL sqrt 1 0 0 NULL exp 1 0 0 NULL ln 1 0 0 NULL log 1 0 0 NULL sin 1 0 0 NULL cos 1 0 0 NULL tan 1 0 0 NULL asin 1 0 0 NULL acos 1 0 0 NULL atan 1 0 0 NULL sinh 1 0 0 NULL cosh 1 0 0 NULL tanh 1 0 0 NULL asinh 1 0 0 NULL acosh 1 0 0 NULL atanh 1 0 0 NULL rand 1 0 0 NULL srand 1 0 0 NULL theta 1 0 0 NULL delta 1 0 0 NULL gamma 1 0 0 NULL icgam 2 0 0 NULL erf 1 0 0 NULL true erfc 1 0 0 NULL qinv 1 0 0 NULL ei 1 0 0 NULL beta 2 0 0 NULL icbeta 3 0 0 NULL true jn 2 0 0 NULL yn 2 0 0 NULL pn 2 0 0 NULL lgn 3 0 0 NULL hn 2 0 0 NULL tn 2 0 0 NULL mjd 6 0 0 NULL unix2mjd 1 0 0 NULL mjd2year 1 0 0 NULL mjd2month 1 0 0 NULL mjd2day 1 0 0 NULL mjd2wday 1 0 0 NULL mjd2yday 1 0 0 NULL eq 3 0 0 NULL neq 3 0 0 NULL ge 3 0 0 NULL gt 3 0 0 NULL le 3 0 0 NULL lt 3 0 0 NULL not 1 0 0 NULL or 2 0 0 NULL and 2 0 0 NULL xor 2 0 0 NULL m 2 1 0 NULL rm 1 1 0 NULL cm 1 0 0 NULL if 3 0 0 0,2,2 unless 3 0 0 0,2,2 for 5 1 0 0,0,0,0,2 dif 1 1 1 NULL sum 1 1 1 NULL sort 1 1 0 1 rsort 1 1 0 1 size 1 1 0 1 isnormal 1 0 0 NULL isnan 1 0 0 NULL isundef 1 0 0 NULL isbreak 1 0 0 NULL iscont 1 0 0 NULL zeta 1 0 0 NULL true zetam1 1 0 0 NULL true zeta_int 1 0 0 NULL true zetam1_int 1 0 0 NULL true in 2 0 0 NULL true kn 2 0 0 NULL true yl 2 0 0 NULL true jl 2 0 0 NULL true jnu 2 0 0 NULL true ynu 2 0 0 NULL true inu 2 0 0 NULL true knu 2 0 0 NULL true progn -1 0 0 NULL prog1 -1 0 0 NULL prog2 -1 0 0 NULL push 2 0 0 1,0 pop 1 0 0 1 unshift 2 0 0 1,0 shift 1 0 0 1 time 0 0 0 NULL choose 2 0 0 NULL true ngraph-gtk-6.06.13/src/math/math_expression.h0000644000175000017500000001177612241111705015761 00000000000000/* * $Id: math_expression.h,v 1.3 2009-11-10 04:12:20 hito Exp $ * */ #ifndef EXPRESSION_HEADER #define EXPRESSION_HEADER typedef struct _math_expression MathExpression; typedef struct _math_function_call_expression MathFunctionCallExpression; typedef union _math_function_argument MathFunctionArgument; #include "nhash.h" #include "math_equation.h" #include "math_function.h" #include "math_operator.h" enum MATH_EXPRESSION_TYPE { MATH_EXPRESSION_TYPE_OR, MATH_EXPRESSION_TYPE_AND, MATH_EXPRESSION_TYPE_EQ, MATH_EXPRESSION_TYPE_NE, MATH_EXPRESSION_TYPE_ADD, MATH_EXPRESSION_TYPE_SUB, MATH_EXPRESSION_TYPE_MUL, MATH_EXPRESSION_TYPE_DIV, MATH_EXPRESSION_TYPE_MOD, MATH_EXPRESSION_TYPE_POW, MATH_EXPRESSION_TYPE_GT, MATH_EXPRESSION_TYPE_GE, MATH_EXPRESSION_TYPE_LT, MATH_EXPRESSION_TYPE_LE, MATH_EXPRESSION_TYPE_MINUS, MATH_EXPRESSION_TYPE_FUNC, MATH_EXPRESSION_TYPE_FUNC_CALL, MATH_EXPRESSION_TYPE_FACT, MATH_EXPRESSION_TYPE_DOBLE, MATH_EXPRESSION_TYPE_CONST, MATH_EXPRESSION_TYPE_CONST_DEF, MATH_EXPRESSION_TYPE_VARIABLE, MATH_EXPRESSION_TYPE_ARRAY, MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT, MATH_EXPRESSION_TYPE_PRM, MATH_EXPRESSION_TYPE_ASSIGN, MATH_EXPRESSION_TYPE_EOEQ, }; struct math_func_arg_list { char *name; enum MATH_FUNCTION_ARG_TYPE type; struct math_func_arg_list *next; }; typedef struct _math_function_expression { int argc, local_num, local_array_num; MathExpression *exp; struct math_function_parameter *fprm; struct math_func_arg_list *arg_list, *arg_last; } MathFunctionExpression ; typedef struct _math_binary_expression { MathExpression *left; MathExpression *right; } MathBinaryExpression; typedef struct _math_assign_expression { enum MATH_OPERATOR_TYPE op; MathExpression *left; MathExpression *right; } MathAssignExpression; typedef struct _math_unary_expression { MathExpression *operand; } MathUnaryExpression; typedef struct _math_constant_definition_expression { int id; MathExpression *operand; } MathConstantDefinitionExpression; union _math_function_argument { MathValue val; MathExpression *exp; int idx; } function_argument; struct _math_function_call_expression { MathExpression **argv; MathFunctionArgument *buf; int argc, pos_id; struct math_function_parameter *fprm; }; typedef struct _math_parameter_expression { int type, id, index; MathEquationParametar *prm; } MathParameterExpression; typedef struct _math_array_expression { int index; MathExpression *operand; } MathArrayExpression; struct _math_expression { enum MATH_EXPRESSION_TYPE type; int line_number; MathExpression *next; MathEquation *equation; union { MathValue value; char *symbol; int index; MathBinaryExpression bin; MathUnaryExpression unary; MathFunctionCallExpression func_call; MathFunctionExpression func; MathParameterExpression prm; MathArrayExpression array; MathConstantDefinitionExpression const_def; MathAssignExpression assign; } u; }; MathExpression *math_expression_new(enum MATH_EXPRESSION_TYPE type, MathEquation *eq, int *err); MathExpression *math_eoeq_expression_new(MathEquation *eq, int *err); MathExpression *math_array_expression_new(MathEquation *eq, const char *name, MathExpression *operand, int *err); MathExpression *math_array_argument_expression_new(MathEquation *eq, const char *name, int *err); MathExpression *math_unary_expression_new(enum MATH_EXPRESSION_TYPE type, MathEquation *eq, MathExpression *operand, int *err); MathExpression *math_binary_expression_new(enum MATH_EXPRESSION_TYPE type, MathEquation *eq, MathExpression *left, MathExpression *right, int *err); MathExpression *math_assign_expression_new(enum MATH_EXPRESSION_TYPE type, MathEquation *eq, MathExpression *left, MathExpression *right, enum MATH_OPERATOR_TYPE op, int *err); MathExpression *math_double_expression_new(MathEquation *eq, const MathValue *val, int *err); MathExpression *math_constant_expression_new(MathEquation *eq, const char *name, int *err); MathExpression *math_variable_expression_new(MathEquation *eq, const char *name, int *err); MathExpression *math_func_call_expression_new(MathEquation *eq, struct math_function_parameter *fprm, int argc, MathExpression **argv, int pos_id, int *err); MathExpression *math_parameter_expression_new(MathEquation *eq, char *name, int *err); MathExpression *math_constant_definition_expression_new(MathEquation *eq, char *name, MathExpression *exp, int *err); MathExpression *math_function_expression_new(MathEquation *eq, const char *name, int *err); int math_function_expression_add_arg(MathExpression *func, const char *arg_name, enum MATH_FUNCTION_ARG_TYPE type); int math_function_expression_set_function(MathEquation *eq, MathExpression *func, const char *name, MathExpression *exp); int math_function_expression_register_arg(MathExpression *func); MathExpression *math_expression_optimize(MathExpression *exp, int *err); void math_expression_free(MathExpression *exp); int math_expression_calculate(MathExpression *exp, MathValue *val); #endif ngraph-gtk-6.06.13/src/math/math_parser.c0000644000175000017500000006406312241111705015046 00000000000000/* * $Id: math_parser.c,v 1.19 2010-03-04 08:30:17 hito Exp $ * */ #include "config.h" #include #include #include #include #include #include "object.h" #include "math_scanner.h" #include "math_equation.h" #include "math_function.h" #include "parse_bin_expression.h" #define MATH_ARG_NUM 16 #define DEBUG 1 MathValue MATH_VALUE_ZERO = {0.0, MATH_VALUE_NORMAL}; static struct math_token *st_look_ahead_token = NULL; static MathExpression * parse_expression(const char **str, MathEquation *eq, int *err); static MathExpression * parse_expression_list(const char **str, MathEquation *eq, int inside_block, int *err); static MathExpression * parse_unary_expression(const char **str, MathEquation *eq, int *err); static struct math_token * my_get_token(const const char **str) { struct math_token *token; if (st_look_ahead_token) { token = st_look_ahead_token; st_look_ahead_token = token->next; token->next = NULL; } else { token = math_scanner_get_token(*str, str); } return token; } static void unget_token(struct math_token *token) { token->next = st_look_ahead_token; st_look_ahead_token = token; } static MathExpression * parse_array_expression(const char **str, MathEquation *eq, const char *name, int *err) { struct math_token *token; MathExpression *operand, *exp; token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; return NULL; } math_scanner_free_token(token); operand = parse_expression(str, eq, err); if (operand == NULL) return NULL; token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; math_expression_free(operand); return NULL; } if (token->type != MATH_TOKEN_TYPE_RB) { *err = MATH_ERROR_MISS_RB; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); math_expression_free(operand); return NULL; } math_scanner_free_token(token); exp = math_array_expression_new(eq, name, operand, err); if (exp == NULL) { math_expression_free(operand); return NULL; } return exp; } static MathExpression * parse_primary_expression(const char **str, MathEquation *eq, int *err) { struct math_token *token, *token2; MathExpression *exp; MathValue val; token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; return NULL; } switch (token->type) { case MATH_TOKEN_TYPE_NUMERIC: val.val = token->data.val.dnum; val.type = MATH_VALUE_NORMAL; exp = math_double_expression_new(eq, &val, err); break; case MATH_TOKEN_TYPE_SYMBOL: token2 = my_get_token(str); unget_token(token2); if (token2->type == MATH_TOKEN_TYPE_LB) { exp = parse_array_expression(str, eq, token->data.sym, err); if (exp == NULL) { math_scanner_free_token(token); return NULL; } } else { exp = math_constant_expression_new(eq, token->data.sym, err); if (exp == NULL) { if (token->data.sym[0] == '%') { exp = math_parameter_expression_new(eq, token->data.sym, err); if (exp == NULL) { math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); return NULL; } #if 1 /* length of a variable expression is 1. */ } else if (strlen(token->data.sym) == 1) { exp = math_variable_expression_new(eq, token->data.sym, err); } else { *err = MATH_ERROR_UNEXP_TOKEN; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); return NULL; #else /* length of a variable expression is not fixed. */ } else { exp = math_variable_expression_new(eq, token->data.sym, err); #endif } } } break; case MATH_TOKEN_TYPE_LP: math_scanner_free_token(token); exp = parse_expression(str, eq, err); if (exp == NULL) return NULL; token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; math_expression_free(exp); return NULL; } if (token->type != MATH_TOKEN_TYPE_RP) { *err = MATH_ERROR_MISS_RP; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); math_expression_free(exp); return NULL; } break; case MATH_TOKEN_TYPE_EOEQ: *err = MATH_ERROR_EOEQ; math_scanner_free_token(token); return NULL; default: *err = MATH_ERROR_UNEXP_TOKEN; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); return NULL; } math_scanner_free_token(token); return exp; } static void free_arg_list(MathExpression **argv) { int i; for (i = 0; argv[i]; i++) { math_expression_free(argv[i]); } } static MathExpression * get_argument(const char **str, MathEquation *eq, struct math_function_parameter *fprm, int i, int *err) { struct math_token *token; MathExpression *exp; if (fprm->arg_type && i < fprm->argc && fprm->arg_type[i] == MATH_FUNCTION_ARG_TYPE_ARRAY) { token = my_get_token(str); if (token->type != MATH_TOKEN_TYPE_SYMBOL) { *err = MATH_ERROR_INVALID_FDEF; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); /* invalid argument */ return NULL; } exp = math_array_argument_expression_new(eq, token->data.sym, err); math_scanner_free_token(token); } else { exp = parse_expression(str, eq, err); } return exp; } static int parse_argument_list(const char **str, MathEquation *eq, struct math_function_parameter *fprm, MathExpression ***buf, int argc, int *err) { struct math_token *token; int i, n; MathExpression *exp, **tmp, **argv; argv = *buf; token = my_get_token(str); unget_token(token); if (token->type == MATH_TOKEN_TYPE_RP) { return 0; } n = 0; exp = get_argument(str, eq, fprm, n, err); if (exp == NULL) { return -1; } argv[0] = exp; argv[1] = NULL; for (i = 1; ; i++) { token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; free_arg_list(argv); return -1; } if (token->type != MATH_TOKEN_TYPE_COMMA) { unget_token(token); break; } math_scanner_free_token(token); n++; exp = get_argument(str, eq, fprm, n, err); if (exp == NULL) { free_arg_list(argv); return -1; } if (i >= argc) { int m; m = argc * 2 + 1; tmp = g_realloc(argv, m * sizeof(*argv)); if (tmp == NULL) { math_expression_free(exp); free_arg_list(argv); return -1; } argv = tmp; *buf = tmp; memset(argv + argc, 0, m - argc); argc = m - 1; } argv[i] = exp; argv[i + 1] = NULL; } *buf = argv; return i; } static MathExpression * create_math_func(const char **str, MathEquation *eq, struct math_token *name, int *err) { struct math_function_parameter *fprm; int i, arg_max, argc, pos_id; MathExpression **argv, *exp; struct math_token *token; fprm = math_equation_get_func(eq, name->data.sym); if (fprm == NULL) { *err = MATH_ERROR_UNKNOWN_FUNC; math_equation_set_parse_error(eq, name->ptr); return NULL; } arg_max = (fprm->argc < 0) ? MATH_ARG_NUM : fprm->argc; argv = g_malloc0((arg_max + 1) * sizeof(*argv)); if (argv == NULL) { *err = MATH_ERROR_MEMORY; return NULL; } argc = parse_argument_list(str, eq, fprm, &argv, arg_max, err); if (argc < 0) { g_free(argv); return NULL; } token = my_get_token(str); if (token->type != MATH_TOKEN_TYPE_RP) { *err = MATH_ERROR_MISS_RP; math_equation_set_parse_error(eq, token->ptr); free_arg_list(argv); g_free(argv); math_scanner_free_token(token); return NULL; } math_scanner_free_token(token); if (argc < fprm->argc) { for (i = argc; i < fprm->argc; i++) { argv[i] = math_double_expression_new(eq, &MATH_VALUE_ZERO, err); if (argv[i] == NULL) { free_arg_list(argv); g_free(argv); return NULL; } } argc = fprm->argc; } else if (fprm->argc >= 0 && argc > fprm->argc) { *err = MATH_ERROR_ARG_NUM; math_equation_set_func_arg_num_error(eq, fprm, argc); free_arg_list(argv); g_free(argv); return NULL; } pos_id = math_equation_add_pos_func(eq, fprm); if (pos_id == MATH_ERROR_INVALID_FUNC) { *err = MATH_ERROR_INVALID_FUNC; math_equation_set_func_error(eq, fprm); free_arg_list(argv); g_free(argv); return NULL; } exp = math_func_call_expression_new(eq, fprm, argc, argv, pos_id, err); if (exp == NULL) { free_arg_list(argv); g_free(argv); return NULL; } return exp; } static MathExpression * parse_func_expression(const char **str, MathEquation *eq, int *err) { struct math_token *token1, *token2; MathExpression *exp; token1 = my_get_token(str); if (token1 == NULL) { return NULL; } switch (token1->type) { case MATH_TOKEN_TYPE_SYMBOL: token2 = my_get_token(str); if (token2 == NULL) { math_scanner_free_token(token1); return NULL; } switch (token2->type) { case MATH_TOKEN_TYPE_LP: exp = create_math_func(str, eq, token1, err); math_scanner_free_token(token2); math_scanner_free_token(token1); break; default: unget_token(token2); unget_token(token1); exp = parse_primary_expression(str, eq, err); } break; default: unget_token(token1); exp = parse_primary_expression(str, eq, err); } return exp; } static MathExpression * parse_factorial_expression(const char **str, MathEquation *eq, int *err) { struct math_token *token; MathExpression *operand, *exp; exp = parse_func_expression(str, eq, err); if (exp == NULL) { return NULL; } for (;;) { token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; math_expression_free(exp); return NULL; } switch (token->type) { case MATH_TOKEN_TYPE_OPERATOR: switch (token->data.op) { case MATH_OPERATOR_TYPE_FACT: math_scanner_free_token(token); operand = exp; exp = math_unary_expression_new(MATH_EXPRESSION_TYPE_FACT, eq, operand, err); if (exp == NULL) { return NULL; } break; default: unget_token(token); goto End; } break; default: unget_token(token); goto End; } } End: return exp; } static MathExpression * parse_power_expression(const char **str, MathEquation *eq, int *err) { struct math_token *token; MathExpression *left, *right, *exp; exp = parse_factorial_expression(str, eq, err); if (exp == NULL) { return NULL; } token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; math_expression_free(exp); return NULL; } switch (token->type) { case MATH_TOKEN_TYPE_OPERATOR: switch (token->data.op) { case MATH_OPERATOR_TYPE_POW: right = parse_unary_expression(str, eq, err); if (right == NULL) { math_scanner_free_token(token); return NULL; } left = exp; exp = math_binary_expression_new(MATH_EXPRESSION_TYPE_POW, eq, left, right, err); if (exp == NULL) { math_expression_free(left); math_expression_free(right); math_scanner_free_token(token); return NULL; } math_scanner_free_token(token); break; default: unget_token(token); goto End; } break; default: unget_token(token); goto End; } End: return exp; } static MathExpression * parse_unary_expression(const char **str, MathEquation *eq, int *err) { struct math_token *token; MathExpression *exp, *operand; token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; return NULL; } switch (token->type) { case MATH_TOKEN_TYPE_OPERATOR: switch (token->data.op) { case MATH_OPERATOR_TYPE_PLUS: exp = parse_unary_expression(str, eq, err); break; case MATH_OPERATOR_TYPE_MINUS: operand = parse_unary_expression(str, eq, err); if (operand == NULL) { math_scanner_free_token(token); return NULL; } exp = math_unary_expression_new(MATH_EXPRESSION_TYPE_MINUS, eq, operand, err); if (exp == NULL) { math_scanner_free_token(token); math_expression_free(operand); return NULL; } break; default: *err = MATH_ERROR_UNEXP_OPE; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); return NULL; } math_scanner_free_token(token); break; default: unget_token(token); exp = parse_power_expression(str, eq, err); } return exp; } static MathExpression * CREATE_PARSER3_FUNC(multiplicative, unary, MATH_OPERATOR_TYPE_MUL, MATH_EXPRESSION_TYPE_MUL, MATH_OPERATOR_TYPE_DIV, MATH_EXPRESSION_TYPE_DIV, MATH_OPERATOR_TYPE_MOD, MATH_EXPRESSION_TYPE_MOD); static MathExpression * CREATE_PARSER2_FUNC(additive, multiplicative, MATH_OPERATOR_TYPE_PLUS, MATH_EXPRESSION_TYPE_ADD, MATH_OPERATOR_TYPE_MINUS, MATH_EXPRESSION_TYPE_SUB); static MathExpression * CREATE_PARSER4_FUNC(relation, additive, MATH_OPERATOR_TYPE_GT, MATH_EXPRESSION_TYPE_GT, MATH_OPERATOR_TYPE_GE, MATH_EXPRESSION_TYPE_GE, MATH_OPERATOR_TYPE_LE, MATH_EXPRESSION_TYPE_LE, MATH_OPERATOR_TYPE_LT, MATH_EXPRESSION_TYPE_LT); static MathExpression * CREATE_PARSER2_FUNC(equality, relation, MATH_OPERATOR_TYPE_EQ, MATH_EXPRESSION_TYPE_EQ, MATH_OPERATOR_TYPE_NE, MATH_EXPRESSION_TYPE_NE); static MathExpression * CREATE_PARSER_FUNC(and, equality, MATH_OPERATOR_TYPE_AND, MATH_EXPRESSION_TYPE_AND); static MathExpression * CREATE_PARSER_FUNC(or, and, MATH_OPERATOR_TYPE_OR, MATH_EXPRESSION_TYPE_OR); static MathExpression * create_variable_assign_expression(MathEquation *eq, enum MATH_OPERATOR_TYPE op, MathExpression *lexp, MathExpression *rexp, int *err) { MathExpression *exp, *bin; bin = NULL; switch (op) { case MATH_OPERATOR_TYPE_ASSIGN: break; case MATH_OPERATOR_TYPE_POW_ASSIGN: bin = math_binary_expression_new(MATH_EXPRESSION_TYPE_POW, eq, lexp, rexp, err); if (bin == NULL) goto ErrEnd; rexp = bin; break; case MATH_OPERATOR_TYPE_MOD_ASSIGN: bin = math_binary_expression_new(MATH_EXPRESSION_TYPE_MOD, eq, lexp, rexp, err); if (bin == NULL) goto ErrEnd; rexp = bin; break; case MATH_OPERATOR_TYPE_DIV_ASSIGN: bin = math_binary_expression_new(MATH_EXPRESSION_TYPE_DIV, eq, lexp, rexp, err); if (bin == NULL) goto ErrEnd; rexp = bin; break; case MATH_OPERATOR_TYPE_MUL_ASSIGN: bin = math_binary_expression_new(MATH_EXPRESSION_TYPE_MUL, eq, lexp, rexp, err); if (bin == NULL) goto ErrEnd; rexp = bin; break; case MATH_OPERATOR_TYPE_PLUS_ASSIGN: bin = math_binary_expression_new(MATH_EXPRESSION_TYPE_ADD, eq, lexp, rexp, err); if (bin == NULL) goto ErrEnd; rexp = bin; break; case MATH_OPERATOR_TYPE_MINUS_ASSIGN: bin = math_binary_expression_new(MATH_EXPRESSION_TYPE_SUB, eq, lexp, rexp, err); if (bin == NULL) goto ErrEnd; rexp = bin; break; default: return NULL; } exp = math_expression_new(MATH_EXPRESSION_TYPE_VARIABLE, eq, err); if (exp == NULL) { math_expression_free(bin); return NULL; } exp->u.index = lexp->u.index; lexp = math_assign_expression_new(MATH_EXPRESSION_TYPE_ASSIGN, eq, exp, rexp, op, err); if (lexp == NULL) { math_expression_free(exp); math_expression_free(bin); } return lexp; ErrEnd: math_expression_free(lexp); math_expression_free(rexp); return NULL; } static MathExpression * parse_assign_expression(const char **str, MathEquation *eq, enum MATH_OPERATOR_TYPE op, MathExpression *lexp, int *err) { MathExpression *exp, *rexp; rexp = parse_expression(str, eq, err); if (rexp == NULL) { math_expression_free(lexp); return NULL; } if (lexp->type == MATH_EXPRESSION_TYPE_VARIABLE && op != MATH_OPERATOR_TYPE_ASSIGN) { exp = create_variable_assign_expression(eq, op, lexp, rexp, err); } else { exp = math_assign_expression_new(MATH_EXPRESSION_TYPE_ASSIGN, eq, lexp, rexp, op, err); if (exp == NULL) { math_expression_free(lexp); math_expression_free(rexp); } } return exp; } static int parse_parameter_list(const char **str, MathEquation *eq, MathExpression *func, int *err) { struct math_token *token; enum MATH_FUNCTION_ARG_TYPE type; token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; return 1; } if (token->type != MATH_TOKEN_TYPE_LP) { math_scanner_free_token(token); return 1; } math_scanner_free_token(token); token = my_get_token(str); if (token->type == MATH_TOKEN_TYPE_RP) { return 0; } unget_token(token); for (;;) { token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; return 1; } if (token->type == MATH_TOKEN_TYPE_ARRAY_PREFIX) { type = MATH_FUNCTION_ARG_TYPE_ARRAY; math_scanner_free_token(token); token = my_get_token(str); } else { type = MATH_FUNCTION_ARG_TYPE_DOUBLE; } if (token->type != MATH_TOKEN_TYPE_SYMBOL) { math_scanner_free_token(token); return 1; } if (math_function_expression_add_arg(func, token->data.sym, type)) { math_scanner_free_token(token); return 1; } math_scanner_free_token(token); token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; return 1; } if (token->type != MATH_TOKEN_TYPE_COMMA) { unget_token(token); break; } math_scanner_free_token(token); } token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; return 1; } if (token->type != MATH_TOKEN_TYPE_RP) { math_scanner_free_token(token); return 1; } math_scanner_free_token(token); return 0; } static MathExpression * parse_block_expression(const char **str, MathEquation *eq, int *err) { struct math_token *token; MathExpression *exp; token = my_get_token(str); if (token == NULL) { return NULL; } if (token->type != MATH_TOKEN_TYPE_LC) { math_scanner_free_token(token); return NULL; } math_scanner_free_token(token); token = my_get_token(str); if (token->type == MATH_TOKEN_TYPE_RC) { math_scanner_free_token(token); return NULL; } unget_token(token); exp = parse_expression_list(str, eq, 1, err); if (exp == NULL) return NULL; token = my_get_token(str); if (token->type != MATH_TOKEN_TYPE_RC) { math_scanner_free_token(token); return NULL; } math_scanner_free_token(token); return exp; } static void free_func_prm(struct math_function_parameter *prm) { if (prm == NULL) return; if (prm->arg_type) { g_free(prm->arg_type); } if (prm->opt_usr) { math_expression_free(prm->opt_usr); } if (prm->name) { g_free(prm->name); } g_free(prm); } MathExpression * parse_func_def_expression(const char **str, MathEquation *eq, int *err) { struct math_token *fname; MathExpression *exp, *block; /* get name of the function */ fname = my_get_token(str); if (fname == NULL) { return NULL; } if (fname->type != MATH_TOKEN_TYPE_SYMBOL) { math_scanner_free_token(fname); return NULL; } exp = math_function_expression_new(eq, fname->data.sym, err); if (exp == NULL) { math_scanner_free_token(fname); return NULL; } /* get parameters */ if (parse_parameter_list(str, eq, exp, err)) { math_equation_finish_user_func_definition(eq, NULL, NULL); free_func_prm(exp->u.func.fprm); math_scanner_free_token(fname); math_expression_free(exp); return NULL; } if (math_function_expression_register_arg(exp)) { math_equation_finish_user_func_definition(eq, NULL, NULL); free_func_prm(exp->u.func.fprm); math_scanner_free_token(fname); math_expression_free(exp); } /* get block */ block = parse_block_expression(str, eq, err); if (block == NULL) { math_equation_finish_user_func_definition(eq, NULL, NULL); free_func_prm(exp->u.func.fprm); math_scanner_free_token(fname); math_expression_free(exp); return NULL; } if (math_function_expression_set_function(eq, exp, fname->data.sym, block)) { math_equation_finish_user_func_definition(eq, NULL, NULL); free_func_prm(exp->u.func.fprm); math_scanner_free_token(fname); math_expression_free(exp); return NULL; } math_scanner_free_token(fname); return exp; } MathExpression * parse_const_def_expression(const char **str, MathEquation *eq, int *err) { struct math_token *cname, *token; MathExpression *exp, *cdef; if (eq->func_def) { *err = MATH_ERROR_INVALID_CDEF; return NULL; } /* get name of the constant */ cname = my_get_token(str); if (cname == NULL) { return NULL; } if (cname->type != MATH_TOKEN_TYPE_SYMBOL) { *err = MATH_ERROR_UNEXP_TOKEN; math_equation_set_parse_error(eq, cname->ptr); math_scanner_free_token(cname); return NULL; } token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; math_scanner_free_token(cname); return NULL; } if (token->type != MATH_TOKEN_TYPE_OPERATOR || token->data.op != MATH_OPERATOR_TYPE_ASSIGN) { if (token->type == MATH_TOKEN_TYPE_EOEQ) { *err = MATH_ERROR_EOEQ; } else { *err = MATH_ERROR_UNEXP_TOKEN; math_equation_set_parse_error(eq, token->ptr); } math_scanner_free_token(token); math_scanner_free_token(cname); return NULL; } math_scanner_free_token(token); eq->func_def = TRUE; exp = parse_expression(str, eq, err); eq->func_def = FALSE; if (exp == NULL) { math_scanner_free_token(cname); return NULL; } cdef = math_constant_definition_expression_new(eq, cname->data.sym, exp, err); math_scanner_free_token(cname); if (cdef == NULL) { math_expression_free(exp); return NULL; } return cdef; } static MathExpression * parse_expression(const char **str, MathEquation *eq, int *err) { struct math_token *token; MathExpression *exp; exp = parse_or_expression(str, eq, err); if (exp == NULL) return NULL; switch (exp->type) { case MATH_EXPRESSION_TYPE_VARIABLE: case MATH_EXPRESSION_TYPE_ARRAY: break; default: goto End; } token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; math_expression_free(exp); return NULL; } switch (token->type) { case MATH_TOKEN_TYPE_OPERATOR: switch (token->data.op) { case MATH_OPERATOR_TYPE_ASSIGN: case MATH_OPERATOR_TYPE_POW_ASSIGN: case MATH_OPERATOR_TYPE_MOD_ASSIGN: case MATH_OPERATOR_TYPE_DIV_ASSIGN: case MATH_OPERATOR_TYPE_MUL_ASSIGN: case MATH_OPERATOR_TYPE_PLUS_ASSIGN: case MATH_OPERATOR_TYPE_MINUS_ASSIGN: exp = parse_assign_expression(str, eq, token->data.op, exp, err); math_scanner_free_token(token); break; default: *err = MATH_ERROR_UNEXP_OPE; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); math_expression_free(exp); return NULL; } break; case MATH_TOKEN_TYPE_RC: case MATH_TOKEN_TYPE_RP: case MATH_TOKEN_TYPE_RB: case MATH_TOKEN_TYPE_EOEQ: case MATH_TOKEN_TYPE_COMMA: unget_token(token); break; default: *err = MATH_ERROR_UNEXP_TOKEN; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); math_expression_free(exp); return NULL; break; } End: return exp; } static MathExpression * parse_expression_list(const char ** str, MathEquation *eq, int inside_block, int *err) { struct math_token *token; MathExpression *exp, *prev, *top; top = prev = NULL; for (;;) { token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; math_expression_free(top); return NULL; } switch (token->type) { case MATH_TOKEN_TYPE_DEF: if (inside_block) { *err = MATH_ERROR_FDEF_NEST; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); math_expression_free(top); return NULL; } math_scanner_free_token(token); exp = parse_func_def_expression(str, eq, err); if (exp == NULL) { math_expression_free(top); return NULL; } continue; case MATH_TOKEN_TYPE_CONST: if (inside_block) { *err = MATH_ERROR_INVALID_CDEF; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); math_expression_free(top); return NULL; } math_scanner_free_token(token); exp = parse_const_def_expression(str, eq, err); if (exp == NULL) { math_expression_free(top); return NULL; } continue; case MATH_TOKEN_TYPE_EOEQ: if (*str[0] == '\0') { if (inside_block) { *err = MATH_ERROR_MISS_RC; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); math_expression_free(top); return NULL; } math_scanner_free_token(token); goto End; } math_scanner_free_token(token); continue; case MATH_TOKEN_TYPE_RC: if (inside_block) { unget_token(token); goto End; } *err = MATH_ERROR_UNEXP_TOKEN; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); math_expression_free(top); return NULL; default: unget_token(token); exp = parse_expression(str, eq, err); } if (exp == NULL) { math_expression_free(top); return NULL; } if (prev) { prev->next = exp; } if (top == NULL) { top = exp; } prev = exp; token = my_get_token(str); if (token == NULL) { *err = MATH_ERROR_MEMORY; math_expression_free(top); return NULL; } if (token->type != MATH_TOKEN_TYPE_EOEQ) { if (token->type == MATH_TOKEN_TYPE_RC && inside_block) { unget_token(token); goto End; } *err = MATH_ERROR_UNEXP_TOKEN; math_equation_set_parse_error(eq, token->ptr); math_scanner_free_token(token); math_expression_free(top); return NULL; } unget_token(token); } End: return top; } MathExpression * math_parser_parse(const char *line, MathEquation *eq, int *err) { const char *ptr = line; struct math_token *token, *tmp; MathExpression *exp; *err = MATH_ERROR_NONE; st_look_ahead_token = NULL; exp = parse_expression_list(&ptr, eq, 0, err); token = st_look_ahead_token; while (token) { tmp = token->next; math_scanner_free_token(token); token = tmp; } st_look_ahead_token = NULL; return exp; } ngraph-gtk-6.06.13/src/math/math_equation.c0000644000175000017500000006675712241111705015413 00000000000000/* * $Id: math_equation.c,v 1.13 2009-11-24 06:32:37 hito Exp $ * */ #include "config.h" #include #include #include #include "math_parser.h" #include "math_equation.h" #include "object.h" #include "nstring.h" #define BUF_UNIT 64 static void init_parameter(MathEquation *eq); static void free_parameter(MathEquation *eq); static void free_func(NHASH func); static void optimize_func(NHASH func); static int optimize_const_definition(MathEquation *eq); static int math_equation_call_user_func(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); static MathValue * add_to_ary(MathValue *buf, int *num, int *size, const MathValue *val) { MathValue *ptr; if (*num % BUF_UNIT == 0) { int n; n = *num / BUF_UNIT; ptr = g_realloc(buf, sizeof(*buf) * (n + 1) * BUF_UNIT); if (ptr == NULL) { g_free(buf); *num = 0; return NULL; } buf = ptr; if (size) *size = (n + 1) * BUF_UNIT; } if (val) { buf[*num] = *val; } else { buf[*num].val = 0; buf[*num].type = MATH_VALUE_NORMAL; } (*num)++; return buf; } static int * add_to_ary_int(int *buf, int *num, int val) { int *ptr; if (*num % BUF_UNIT == 0) { int n; n = *num / BUF_UNIT; ptr = g_realloc(buf, sizeof(*buf) * (n + 1) * BUF_UNIT); if (ptr == NULL) { g_free(buf); *num = 0; return NULL; } buf = ptr; } buf[*num] = val; (*num)++; return buf; } static MathEquationArray * add_to_ary_array(MathEquationArray *buf, int *num) { MathEquationArray *ptr; if (*num % BUF_UNIT == 0) { int n; n = *num / BUF_UNIT; ptr = g_realloc(buf, sizeof(*buf) * (n + 1) * BUF_UNIT); if (ptr == NULL) { g_free(buf); *num = 0; return NULL; } buf = ptr; } buf[*num].num = 0; buf[*num].size = 0; buf[*num].data = NULL; (*num)++; return buf; } MathEquation * math_equation_basic_new(void) { MathEquation *eq; eq = math_equation_new(); if (eq == NULL) { return NULL; } if (math_add_basic_constant(eq)) goto ErrEnd; if (math_add_basic_function(eq)) goto ErrEnd; return eq; ErrEnd: math_equation_free(eq); return NULL; } MathEquation * math_equation_new(void) { MathEquation *eq; eq = g_malloc(sizeof(*eq)); if (eq == NULL) return NULL; memset(eq, 0, sizeof(*eq)); eq->constant = nhash_new(); eq->function = nhash_new(); eq->variable = nhash_new(); eq->array = nhash_new(); eq->local_array = nhash_new(); eq->local_variable = nhash_new(); if (eq->function == NULL || eq->constant == NULL || eq->variable == NULL || eq->array == NULL || eq->local_variable == NULL || eq->local_array == NULL) { math_equation_free(eq); return NULL; } return eq; } static void clear_pos_func_buf(MathEquation *eq) { int i; if (eq->pos_func_buf) { for (i = 0; i < eq->pos_func_num; i++) { eq->pos_func_buf[i].val = 0; eq->pos_func_buf[i].type = MATH_VALUE_UNDEF; } } } void math_equation_clear(MathEquation *eq) { int i; if (eq == NULL) return; clear_pos_func_buf(eq); if (eq->vnum > 0 && eq->vbuf) { memset(eq->vbuf, 0, sizeof(*eq->vbuf) * eq->vnum); } if (eq->array_num > 0 && eq->array_buf) { for (i = 0; i < eq->array_num; i++) { if (eq->array_buf[i].num > 0 && eq->array_buf[i].data) { memset(eq->array_buf[i].data, 0, sizeof(MathEquationArray) * eq->array_buf[i].num); } } } } void math_equation_set_parse_error(MathEquation *eq, const char *ptr) { if (eq == NULL) return; eq->err_info.pos = ptr; } void math_equation_set_const_error(MathEquation *eq, int id) { if (eq == NULL) return; eq->err_info.const_id = id; } void math_equation_set_func_arg_num_error(MathEquation *eq, struct math_function_parameter *fprm, int arg_num) { if (eq == NULL) return; eq->err_info.func.fprm = fprm; eq->err_info.func.arg_num = arg_num; } void math_equation_set_func_error(MathEquation *eq, struct math_function_parameter *fprm) { math_equation_set_func_arg_num_error(eq, fprm, 0); } int math_equation_parse(MathEquation *eq, const char *str) { int err; if (eq == NULL) return MATH_ERROR_UNKNOWN; memset(&eq->err_info, 0, sizeof(eq->err_info)); if (eq->cnum > 0 && eq->cbuf == NULL) return MATH_ERROR_UNKNOWN; if (eq->pos_func_buf) { g_free(eq->pos_func_buf); eq->pos_func_buf = NULL; } eq->pos_func_num = 0; if (eq->opt_exp) { math_expression_free(eq->opt_exp); eq->opt_exp = NULL; } if (eq->exp) { math_expression_free(eq->exp); } init_parameter(eq); if (str) { eq->exp = math_parser_parse(str, eq, &err); } else { eq->exp = NULL; } if (eq->pos_func_num > 0) { eq->pos_func_buf = g_malloc(eq->pos_func_num * sizeof(*eq->pos_func_buf)); if (eq->pos_func_buf == NULL) { math_expression_free(eq->exp); return MATH_ERROR_MEMORY; } clear_pos_func_buf(eq); } return err; } static void free_array_buf(MathEquationArray *buf, int num) { int i; if (buf == NULL) return; for (i = 0; i < num; i++) { g_free(buf[i].data); } g_free(buf); } void math_equation_free(MathEquation *eq) { if (eq == NULL) return; if (eq->constant) nhash_free(eq->constant); if (eq->variable) nhash_free(eq->variable); if (eq->function) free_func(eq->function); if (eq->array) nhash_free(eq->array); if (eq->local_array) nhash_free(eq->local_array); if (eq->local_variable) nhash_free(eq->local_variable); if (eq->const_def) { math_expression_free(eq->const_def); } free_array_buf(eq->array_buf, eq->array_num); free_parameter(eq); math_expression_free(eq->exp); math_expression_free(eq->opt_exp); g_free(eq->cbuf); g_free(eq->vbuf); g_free(eq->pos_func_buf); g_free(eq); } int math_equation_optimize(MathEquation *eq) { int err; if ((eq == NULL) || (eq->exp == NULL) || (eq->cnum > 0 && eq->cbuf == NULL) || (eq->vnum > 0 && eq->vbuf == NULL)) { return 1; } /* optimize_const_definition() must be called before any other optimization */ if (optimize_const_definition(eq)) { return 1; } /* optimize_func() must be called before optimize_expression() */ optimize_func(eq->function); if (eq->opt_exp) { math_expression_free(eq->opt_exp); } eq->opt_exp = math_expression_optimize(eq->exp, &err); return err; } int math_equation_calculate(MathEquation *eq, MathValue *val) { int r; if ((eq == NULL) || (eq->exp == NULL) || (eq->cnum > 0 && eq->cbuf == NULL) || (eq->vnum > 0 && eq->vbuf == NULL)) { if (val) { val->val = 0; val->type = MATH_VALUE_ERROR; } return 1; } if (eq->opt_exp) { r = math_expression_calculate(eq->opt_exp, val); } else { r = math_expression_calculate(eq->exp, val); } return r; } int math_equation_add_parameter(MathEquation *eq, int type, int min, int max, int use_index) { MathEquationParametar *ptr, *prm; prm = g_malloc(sizeof(*prm)); if (prm == NULL) return 1; prm->type = type; prm->min_length = min; prm->max_length = max; prm->use_index = use_index; prm->id_num = 0; prm->id_max = -1; prm->next = NULL; prm->id = NULL; if (eq->parameter == NULL) { eq->parameter = prm; } else { ptr = eq->parameter; while (ptr->next) { ptr = ptr->next; } ptr->next = prm; prm->next = NULL; } return 0; } static int add_parameter_data(MathEquationParametar *ptr, int val) { int i; if (ptr->id == NULL) { ptr->id = add_to_ary_int(ptr->id, &ptr->id_num, val); } else { for (i = 0; i < ptr->id_num; i++) { if (ptr->id[i] == val) { return i; } } ptr->id = add_to_ary_int(ptr->id, &ptr->id_num, val); } if (ptr->id == NULL) { /* error: cannot allocate enough memory */ return -1; } if (val > ptr->id_max) { ptr->id_max = val; } return ptr->id_num - 1; } int math_equation_use_parameter(MathEquation *eq, int type, int val) { MathEquationParametar *ptr; if (eq->parameter == NULL) { /* error: the parameter is not exist */ return -1; } ptr = eq->parameter; while (ptr) { if (ptr->type == type) { break; } ptr = ptr->next; } if (ptr == NULL) { /* error: the parameter is not exist */ return -1; } return add_parameter_data(ptr, val); } int math_equation_set_parameter_data(MathEquation *eq, int type, MathValue *data) { MathEquationParametar *ptr; if (eq->parameter == NULL) { /* error: the parameter is not exist */ return 1; } ptr = eq->parameter; while (ptr) { if (ptr->type == type) { ptr->data = data; return 0; } ptr = ptr->next; } return 1; } MathEquationParametar * math_equation_get_parameter(MathEquation *eq, int type, int *err) { MathEquationParametar *ptr; if (eq == NULL || eq->parameter == NULL) { if (err) { *err = MATH_ERROR_INVALID_PRM; } return NULL; } if (eq->func_def) { if (err) { *err = MATH_ERROR_PRM_IN_DEF; } return NULL; } ptr = eq->parameter; while (ptr) { if (ptr->type == type) { break; } ptr = ptr->next; } return ptr; } static void init_parameter(MathEquation *eq) { MathEquationParametar *ptr; if (eq->parameter == NULL) { return; } ptr = eq->parameter; while (ptr) { if (ptr->id) { g_free(ptr->id); ptr->id = NULL; } ptr->id_num = 0; ptr->id_max = 0; ptr = ptr->next; } } static void free_parameter(MathEquation *eq) { MathEquationParametar *ptr, *next; if (eq->parameter == NULL) { return; } ptr = eq->parameter; while (ptr) { next = ptr->next; if (ptr->id) { g_free(ptr->id); } g_free(ptr); ptr = next; } } int math_equation_add_pos_func(MathEquation *eq, struct math_function_parameter *fprm) { int n; if (! fprm->positional) return -1; if (eq->func_def) return MATH_ERROR_INVALID_FUNC; n = eq->pos_func_num; eq->pos_func_num++; return n; } static void free_func_prm_sub(struct math_function_parameter *ptr) { g_free(ptr->name); if (ptr->opt_usr) { math_expression_free(ptr->opt_usr); ptr->opt_usr = NULL; } if (ptr->base_usr) { math_expression_free(ptr->base_usr); ptr->base_usr = NULL; } g_free(ptr->arg_type); } static void free_func_prm(struct math_function_parameter *ptr) { free_func_prm_sub(ptr); g_free(ptr); } static int free_func_cb(struct nhash *hash, void *ptr) { struct math_function_parameter *fprm; fprm = (struct math_function_parameter *) hash->val.p; free_func_prm(fprm); return 0; } static void free_func(NHASH func) { nhash_each(func, free_func_cb, NULL); nhash_free(func); return; } static int optimize_func_cb(struct nhash *hash, void *ptr) { struct math_function_parameter *fprm; int err; fprm = (struct math_function_parameter *) hash->val.p; if (fprm->opt_usr) { math_expression_free(fprm->opt_usr); fprm->opt_usr = NULL; } if (fprm->base_usr) { fprm->opt_usr = math_expression_optimize(fprm->base_usr, &err); } if (fprm->opt_usr && fprm->opt_usr->u.func.exp->type == MATH_EXPRESSION_TYPE_DOBLE) { fprm->side_effect = 0; } else { fprm->side_effect = 1; } return 0; } static void optimize_func(NHASH func) { nhash_each(func, optimize_func_cb, NULL); return; } void math_equation_remove_func(MathEquation *eq, const char *name) { int r; struct math_function_parameter *ptr; r = nhash_get_ptr(eq->function, name, (void *) &ptr); if (r == 0) { free_func_prm(ptr); nhash_del(eq->function, name); if (eq->exp) { math_expression_free(eq->exp); eq->exp = NULL; } if (eq->opt_exp) { math_expression_free(eq->opt_exp); eq->opt_exp = NULL; } } } struct math_function_parameter * math_equation_start_user_func_definition(MathEquation *eq, const char *name) { struct math_function_parameter *fprm; if (eq == NULL || eq->func_def) return NULL; fprm = g_malloc(sizeof(*fprm)); if (fprm == NULL) return NULL; fprm->argc = 0; fprm->side_effect = 1; fprm->positional = 0; fprm->func = math_equation_call_user_func; fprm->base_usr = NULL; fprm->opt_usr = NULL; fprm->arg_type = NULL; fprm->name = g_strdup(name); if (fprm->name == NULL) { g_free(fprm); return NULL; } eq->local_vnum = 0; eq->local_array_num = 0; eq->func_def = 1; return fprm; } int math_equation_register_user_func_definition(MathEquation *eq, const char *name, MathExpression *exp) { struct math_function_parameter *fprm; int r; if (eq == NULL || ! eq->func_def || name == NULL || exp == NULL) return 1; fprm = math_equation_get_func(eq, name); if (fprm == NULL) { r = nhash_set_ptr(eq->function, name, exp->u.func.fprm); return r; } #if 0 if (fprm->argc != exp->u.func.fprm->argc) { return 1; } if (fprm->argc > 0) { enum MATH_FUNCTION_ARG_TYPE *arg_type1, *arg_type2; arg_type1 = fprm->arg_type; arg_type2 = exp->u.func.fprm->arg_type; if (arg_type1 && arg_type2) { int i; for (i = 0; i < fprm->argc; i++) { if (arg_type1[i] != arg_type2[i]) { return 1; } } } else if ((arg_type1 && arg_type2 == NULL) || (arg_type1 == NULL && arg_type2)) { return 1; } } #endif free_func_prm_sub(fprm); memcpy(fprm, exp->u.func.fprm, sizeof(*fprm)); g_free(exp->u.func.fprm); exp->u.func.fprm = fprm; return 0; } int math_equation_finish_user_func_definition(MathEquation *eq, int *vnum, int *anum) { if (eq == NULL || ! eq->func_def) return 1; if (vnum) *vnum = nhash_num(eq->local_variable); nhash_clear(eq->local_variable); if (anum) *anum = nhash_num(eq->local_array); nhash_clear(eq->local_array); eq->local_vnum = 0; eq->local_array_num = 0; eq->func_def = 0; return 0; } struct math_function_parameter * math_equation_add_func(MathEquation *eq, const char *name, struct math_function_parameter *prm) { int r; struct math_function_parameter *ptr; if (eq == NULL) return NULL; r = nhash_get_ptr(eq->function, name, (void *) &ptr); if (r == 0) { free_func_prm(ptr); } ptr = g_malloc(sizeof(*ptr)); if (ptr == NULL) return NULL; memcpy(ptr, prm, sizeof(*ptr)); ptr->name = g_strdup(name); if (ptr->name == NULL) { g_free(ptr); return NULL; } if (prm->arg_type) { ptr->arg_type = g_malloc(sizeof(*prm->arg_type) * prm->argc); if (ptr->arg_type == NULL) { g_free(ptr->name); g_free(ptr); return NULL; } memcpy(ptr->arg_type, prm->arg_type, sizeof(*prm->arg_type) * prm->argc); } r = nhash_set_ptr(eq->function, name, ptr); if (r) { g_free(ptr->name); g_free(ptr->arg_type); g_free(ptr); return NULL; } return ptr; } struct math_function_parameter * math_equation_get_func(MathEquation *eq, const char *name) { int r; struct math_function_parameter *ptr; r = nhash_get_ptr(eq->function, name, (void *) &ptr); if (r) { return NULL; } return (struct math_function_parameter *) ptr; } int math_equation_add_const(MathEquation *eq, const char *name, const MathValue *val) { int i, r; if (eq == NULL) return -1; r = nhash_get_int(eq->constant, name, &i); if (r) { i = eq->cnum; eq->cbuf = add_to_ary(eq->cbuf, &eq->cnum, NULL, val); if (eq->cbuf == NULL) { /* error: cannot allocate enough memory */ return -1; } nhash_set_int(eq->constant, name, i); } else if (eq->cbuf && i < eq->cnum && val) { eq->cbuf[i] = *val; } return i; } int math_equation_add_const_definition(MathEquation *eq, const char *name, MathExpression *exp, int *err) { int i, r; MathValue val; if (eq == NULL) return -1; r = nhash_get_int(eq->constant, name, &i); if (r == 0) { /* error: the constant is already exist */ *err = MATH_ERROR_CONST_EXIST; eq->err_info.const_id = i; return -1; } if (math_expression_calculate(exp->u.const_def.operand, &val)) { *err = MATH_ERROR_CALCULATION; return -1; } i = math_equation_add_const(eq, name, &val); if (i < 0) { *err = MATH_ERROR_MEMORY; return -1; } exp->u.const_def.id = i; exp->next = eq->const_def; eq->const_def = exp; return i; } static int optimize_const_definition(MathEquation *eq) { MathExpression *exp; MathValue val; if (eq->const_def == NULL) { return 0; } exp = eq->const_def; while (exp) { if (math_expression_calculate(exp->u.const_def.operand, &val)) return 1; math_equation_set_const(eq, exp->u.const_def.id, &val); exp = exp->next; } return 0; } static int expand_stack(MathEquation *eq, int size) { MathValue *ptr; int n, request_size; request_size = eq->stack_end + size; if (eq->vbuf_size <= request_size) { n = (request_size / BUF_UNIT + 1) * BUF_UNIT; ptr = g_realloc(eq->vbuf, sizeof(*ptr) * n); if (ptr == NULL) return 1; eq->vbuf = ptr; eq->vbuf_size = n; } if (eq->vbuf == NULL) return 1; memset(eq->vbuf + eq->stack_end, 0, sizeof(*eq->vbuf) * size); eq->stack_ofst = eq->stack_end; eq->stack_end = request_size; return 0; } int math_equation_add_var(MathEquation *eq, const char *name) { int i, r; if (eq == NULL) return -1; if (eq->func_def) { r = nhash_get_int(eq->local_variable, name, &i); if (r) { i = eq->local_vnum; nhash_set_int(eq->local_variable, name, i); eq->local_vnum++; } return i; } r = nhash_get_int(eq->variable, name, &i); if (r) { i = eq->vnum; if (expand_stack(eq, 1)) { /* error: cannot allocate enough memory */ return -1; } eq->stack_ofst = 0; eq->vnum++; nhash_set_int(eq->variable, name, i); } return i; } int math_equation_set_const_by_name(MathEquation *eq, const char *name, const MathValue *val) { int i, r; r = nhash_get_int(eq->constant, name, &i); if (r) { return 1; } if (eq->cbuf == NULL) { return 1; } eq->cbuf[i] = *val; return 0; } struct search_val { int val; char *name; }; int search_val_cb(struct nhash *hash, void *ptr) { struct search_val *v; v = (struct search_val *) ptr; if (hash->val.i == v->val) { v->name = hash->key; } return 0; } char * math_equation_get_var_name(MathEquation *eq, int idx) { struct search_val v; if (eq == NULL) return NULL; v.val = idx; v.name = NULL; nhash_each(eq->variable, search_val_cb, &v); return v.name; } char * math_equation_get_const_name(MathEquation *eq, int idx) { struct search_val v; if (eq == NULL) return NULL; v.val = idx; v.name = NULL; nhash_each(eq->constant, search_val_cb, &v); return v.name; } int math_equation_set_const(MathEquation *eq, int idx, const MathValue *val) { if (eq->cbuf == NULL || idx >= eq->cnum || idx < 0) { return 1; } eq->cbuf[idx] = *val; return 0; } int math_equation_set_var(MathEquation *eq, int idx, const MathValue *val) { if (eq->vbuf == NULL || idx + eq->stack_ofst >= eq->stack_end) { return 1; } eq->vbuf[idx + eq->stack_ofst] = *val; return 0; } int math_equation_get_const_by_name(MathEquation *eq, const char *name, MathValue *val) { int i, r; r = nhash_get_int(eq->constant, name, &i); if (r) { /* error: cannot find the constant */ return -1; } if (eq->cbuf == NULL) { /* error: cannot find the constant */ return -1; } if (val) { *val = eq->cbuf[i]; } return i; } int math_equation_get_const(MathEquation *eq, int idx, MathValue *val) { if (eq->cbuf == NULL || idx >= eq->cnum) { return 1; } *val = eq->cbuf[idx]; return 0; } #define USER_FUNC_NEST_MAX 8192 static int math_equation_call_user_func(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { static int nest = 0; int ofst, end, r, i, j, prev_num; MathEquationArray *prev, *local = NULL; MathExpression *func; MathFunctionArgument *argv; if (nest > USER_FUNC_NEST_MAX) return 1; if (exp->fprm->opt_usr) { func = exp->fprm->opt_usr; } else if (exp->fprm->base_usr) { func = exp->fprm->base_usr; } else { return 1; } argv = exp->buf; ofst = eq->stack_ofst; end = eq->stack_end; prev = eq->array_buf; prev_num = eq->array_num; if (func->u.func.local_array_num > 0) { local = g_malloc(sizeof(*local) * func->u.func.local_array_num); if (local == NULL) return 1; memset(local, 0, sizeof(*local) * func->u.func.local_array_num); if (func->u.func.fprm->arg_type) { j = 0; for (i = 0; i < func->u.func.argc; i++) { if (func->u.func.fprm->arg_type[i] == MATH_FUNCTION_ARG_TYPE_ARRAY) { local[j] = prev[argv[i].idx]; j++; } } } } if (expand_stack(eq, func->u.func.local_num)) { g_free(local); return 1; } eq->array_buf = local; eq->array_num = func->u.func.local_array_num; j = 0; for (i = 0; i < exp->argc; i++) { if (func->u.func.fprm->arg_type == NULL || func->u.func.fprm->arg_type[i] == MATH_FUNCTION_ARG_TYPE_DOUBLE) { eq->vbuf[eq->stack_ofst + j] = argv[i].val; j++; } } nest++; r = math_expression_calculate(func->u.func.exp, rval); nest--; eq->array_num = prev_num; eq->array_buf = prev; eq->stack_end = end; eq->stack_ofst = ofst; if (func->u.func.fprm->arg_type) { j = 0; for (i = 0; i < func->u.func.argc; i++) { if (func->u.func.fprm->arg_type[i] == MATH_FUNCTION_ARG_TYPE_ARRAY) { prev[argv[i].idx] = local[j]; local[j].num = 0; local[j].size = 0; local[j].data = NULL; j++; } } } free_array_buf(local, func->u.func.local_array_num); return r; } int math_equation_check_var(MathEquation *eq, const char *name) { int r, i; if (eq->func_def) { r = nhash_get_int(eq->local_variable, name, &i); } else { r = nhash_get_int(eq->variable, name, &i); } if (r) { return -1; } return i; } int math_equation_get_var(MathEquation *eq, int idx, MathValue *val) { if (eq->vbuf == NULL || idx + eq->stack_ofst >= eq->stack_end) { return 1; } if (val) { *val = eq->vbuf[idx + eq->stack_ofst]; } return 0; } void math_equation_clear_variable(MathEquation *eq) { if (eq->vbuf) { g_free(eq->vbuf); eq->vnum = 0; eq->vbuf = NULL; } nhash_clear(eq->variable); } char * math_equation_get_array_name(MathEquation *eq, int index) { return NULL; } int math_equation_check_array(MathEquation *eq, const char *name) { int r, i; if (eq->func_def) { r = nhash_get_int(eq->local_array, name, &i); } else { r = nhash_get_int(eq->array, name, &i); } if (r) { return -1; } return i; } int math_equation_add_array(MathEquation *eq, const char *name) { int i, r; if (eq == NULL) return -1; if (eq->func_def) { r = nhash_get_int(eq->local_array, name, &i); if (r) { i = eq->local_array_num; if (nhash_set_int(eq->local_array, name, i)) { /* error: cannot allocate enough memory */ return -1; } eq->local_array_num++; } } else { r = nhash_get_int(eq->array, name, &i); if (r) { i = eq->array_num; eq->array_buf = add_to_ary_array(eq->array_buf, &eq->array_num); if (eq->array == NULL) { /* error: cannot allocate enough memory */ return -1; } if (nhash_set_int(eq->array, name, i)) { /* error: cannot allocate enough memory */ return -1; } } } return i; } static int check_array(MathEquation *eq, int id, int index) { int i; MathEquationArray *ary; MathValue *ptr; if (eq == NULL || eq->array_buf == NULL || id < 0 || id >= eq->array_num) { /* error: the array is not exist */ return -1; } ary = eq->array_buf + id; if (index < 0) { i = ary->num + index; } else { i = index; } if (i < 0 || i > MATH_EQUATION_ARRAY_INDEX_MAX) { /* error: the index of the array is out of bound */ return -1; } if (i >= ary->size) { int n; n = (i / BUF_UNIT + 1) * BUF_UNIT; ptr = g_realloc(ary->data, sizeof(*ary->data) * n); if (ptr == NULL) { /* error: cannot allocate enough memory */ return -1; } memset(ptr + ary->num, 0, sizeof(*ptr) * (n - ary->num)); ary->data = ptr; ary->size = n; } if (i >= ary->num) { ary->num = i + 1; } return i; } int math_equation_set_array_val(MathEquation *eq, int array, int index, const MathValue *val) { int i; i = check_array(eq, array, index); if (i < 0) return 1; eq->array_buf[array].data[i] = *val; return 0; } int math_equation_get_array_val(MathEquation *eq, int array, int index, MathValue *val) { int i; i = check_array(eq, array, index); if (i < 0) return 1; *val = eq->array_buf[array].data[i]; return 0; } MathEquationArray * math_equation_get_array(MathEquation *eq, int array) { if (array < 0 || array >= eq->array_num || eq->array_buf == NULL) { /* error: the array is not exist */ return NULL; } return &eq->array_buf[array]; } void math_equation_set_user_data(MathEquation *eq, void *user_data) { if (eq) { eq->user_data = user_data; } } void * math_equation_get_user_data(MathEquation *eq) { return (eq) ? eq->user_data : NULL; } static int check_const_sub(MathExpression *exp, int *constant, int n) { int i, r; if (exp == NULL) return 0; switch (exp->type) { case MATH_EXPRESSION_TYPE_OR: case MATH_EXPRESSION_TYPE_AND: case MATH_EXPRESSION_TYPE_EQ: case MATH_EXPRESSION_TYPE_NE: case MATH_EXPRESSION_TYPE_ADD: case MATH_EXPRESSION_TYPE_SUB: case MATH_EXPRESSION_TYPE_MUL: case MATH_EXPRESSION_TYPE_DIV: case MATH_EXPRESSION_TYPE_MOD: case MATH_EXPRESSION_TYPE_POW: case MATH_EXPRESSION_TYPE_GT: case MATH_EXPRESSION_TYPE_GE: case MATH_EXPRESSION_TYPE_LT: case MATH_EXPRESSION_TYPE_LE: r = check_const_sub(exp->u.bin.left, constant, n); if (r) return r; r = check_const_sub(exp->u.bin.right, constant, n); break; case MATH_EXPRESSION_TYPE_ASSIGN: r = check_const_sub(exp->u.assign.right, constant, n); break; case MATH_EXPRESSION_TYPE_FUNC: r = check_const_sub(exp->u.func.exp, constant, n); break; case MATH_EXPRESSION_TYPE_FUNC_CALL: for (i = 0; i < exp->u.func_call.argc; i++) { r = check_const_sub(exp->u.func_call.argv[i], constant, n); if (r) return r; } r = 0; break; case MATH_EXPRESSION_TYPE_MINUS: case MATH_EXPRESSION_TYPE_FACT: r = check_const_sub(exp->u.unary.operand, constant, n); break; case MATH_EXPRESSION_TYPE_CONST: for (i = 0; i < n; i++) { if (constant[i] == exp->u.index) return 1; } r = 0; break; case MATH_EXPRESSION_TYPE_CONST_DEF: case MATH_EXPRESSION_TYPE_ARRAY: case MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT: case MATH_EXPRESSION_TYPE_VARIABLE: case MATH_EXPRESSION_TYPE_DOBLE: case MATH_EXPRESSION_TYPE_PRM: case MATH_EXPRESSION_TYPE_EOEQ: r = 0; break; } return r; } struct search_const { int *constant, n, r; }; static int check_counst_in_func(struct nhash *hash, void *ptr) { int r; struct math_function_parameter *fprm; struct search_const *sc; fprm = (struct math_function_parameter *) hash->val.p; sc = (struct search_const *) ptr; r = check_const_sub(fprm->base_usr, sc->constant, sc->n); sc->r = r; return r; } int math_equation_check_const(MathEquation *eq, int *constant, int n) { int r; struct search_const sc; MathExpression *exp; if (eq == NULL || constant == NULL) return 0; sc.constant = constant; sc.n = n; nhash_each(eq->function, check_counst_in_func, &sc); if (sc.r) { return sc.r; } r = 0; exp = eq->exp; while (exp) { r = check_const_sub(exp, constant, n); if (r) break; exp = exp->next; } return r; } ngraph-gtk-6.06.13/src/math/Makefile.in0000644000175000017500000007460212241364552014454 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/math DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libmath_la_LIBADD = am_libmath_la_OBJECTS = libmath_la-math_function.lo \ libmath_la-math_operator.lo libmath_la-math_constant.lo \ libmath_la-math_expression.lo libmath_la-math_parser.lo \ libmath_la-math_basic_function.lo libmath_la-math_equation.lo \ libmath_la-math_scanner.lo libmath_la-math_error.lo libmath_la_OBJECTS = $(am_libmath_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libmath_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libmath_la_CFLAGS) \ $(CFLAGS) $(libmath_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libmath_la_SOURCES) DIST_SOURCES = $(libmath_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = libmath.la libmath_la_SOURCES = math_function.c math_function.h math_operator.c \ math_operator.h math_constant.c math_constant.h \ math_expression.c math_parser.c math_scanner.h \ parse_bin_expression.h math_basic_function.c math_equation.c \ math_expression.h math_parser.h math_equation.h \ math_scanner.c math_error.h math_error.c EXTRA_DIST = math_operator.h.in math_operator.rb math_constant.h.in \ math_constant.rb math_function.h.in math_function.rb BUILT_SOURCES = math_operator.h math_operator.c math_constant.h \ math_constant.c math_function.h math_function.c libmath_la_LDFLAGS = -static libmath_la_CFLAGS = $(GTK_CFLAGS) -I.. all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/math/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/math/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libmath.la: $(libmath_la_OBJECTS) $(libmath_la_DEPENDENCIES) $(EXTRA_libmath_la_DEPENDENCIES) $(AM_V_CCLD)$(libmath_la_LINK) $(libmath_la_OBJECTS) $(libmath_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath_la-math_basic_function.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath_la-math_constant.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath_la-math_equation.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath_la-math_error.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath_la-math_expression.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath_la-math_function.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath_la-math_operator.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath_la-math_parser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath_la-math_scanner.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libmath_la-math_function.lo: math_function.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -MT libmath_la-math_function.lo -MD -MP -MF $(DEPDIR)/libmath_la-math_function.Tpo -c -o libmath_la-math_function.lo `test -f 'math_function.c' || echo '$(srcdir)/'`math_function.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmath_la-math_function.Tpo $(DEPDIR)/libmath_la-math_function.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math_function.c' object='libmath_la-math_function.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -c -o libmath_la-math_function.lo `test -f 'math_function.c' || echo '$(srcdir)/'`math_function.c libmath_la-math_operator.lo: math_operator.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -MT libmath_la-math_operator.lo -MD -MP -MF $(DEPDIR)/libmath_la-math_operator.Tpo -c -o libmath_la-math_operator.lo `test -f 'math_operator.c' || echo '$(srcdir)/'`math_operator.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmath_la-math_operator.Tpo $(DEPDIR)/libmath_la-math_operator.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math_operator.c' object='libmath_la-math_operator.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -c -o libmath_la-math_operator.lo `test -f 'math_operator.c' || echo '$(srcdir)/'`math_operator.c libmath_la-math_constant.lo: math_constant.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -MT libmath_la-math_constant.lo -MD -MP -MF $(DEPDIR)/libmath_la-math_constant.Tpo -c -o libmath_la-math_constant.lo `test -f 'math_constant.c' || echo '$(srcdir)/'`math_constant.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmath_la-math_constant.Tpo $(DEPDIR)/libmath_la-math_constant.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math_constant.c' object='libmath_la-math_constant.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -c -o libmath_la-math_constant.lo `test -f 'math_constant.c' || echo '$(srcdir)/'`math_constant.c libmath_la-math_expression.lo: math_expression.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -MT libmath_la-math_expression.lo -MD -MP -MF $(DEPDIR)/libmath_la-math_expression.Tpo -c -o libmath_la-math_expression.lo `test -f 'math_expression.c' || echo '$(srcdir)/'`math_expression.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmath_la-math_expression.Tpo $(DEPDIR)/libmath_la-math_expression.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math_expression.c' object='libmath_la-math_expression.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -c -o libmath_la-math_expression.lo `test -f 'math_expression.c' || echo '$(srcdir)/'`math_expression.c libmath_la-math_parser.lo: math_parser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -MT libmath_la-math_parser.lo -MD -MP -MF $(DEPDIR)/libmath_la-math_parser.Tpo -c -o libmath_la-math_parser.lo `test -f 'math_parser.c' || echo '$(srcdir)/'`math_parser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmath_la-math_parser.Tpo $(DEPDIR)/libmath_la-math_parser.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math_parser.c' object='libmath_la-math_parser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -c -o libmath_la-math_parser.lo `test -f 'math_parser.c' || echo '$(srcdir)/'`math_parser.c libmath_la-math_basic_function.lo: math_basic_function.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -MT libmath_la-math_basic_function.lo -MD -MP -MF $(DEPDIR)/libmath_la-math_basic_function.Tpo -c -o libmath_la-math_basic_function.lo `test -f 'math_basic_function.c' || echo '$(srcdir)/'`math_basic_function.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmath_la-math_basic_function.Tpo $(DEPDIR)/libmath_la-math_basic_function.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math_basic_function.c' object='libmath_la-math_basic_function.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -c -o libmath_la-math_basic_function.lo `test -f 'math_basic_function.c' || echo '$(srcdir)/'`math_basic_function.c libmath_la-math_equation.lo: math_equation.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -MT libmath_la-math_equation.lo -MD -MP -MF $(DEPDIR)/libmath_la-math_equation.Tpo -c -o libmath_la-math_equation.lo `test -f 'math_equation.c' || echo '$(srcdir)/'`math_equation.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmath_la-math_equation.Tpo $(DEPDIR)/libmath_la-math_equation.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math_equation.c' object='libmath_la-math_equation.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -c -o libmath_la-math_equation.lo `test -f 'math_equation.c' || echo '$(srcdir)/'`math_equation.c libmath_la-math_scanner.lo: math_scanner.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -MT libmath_la-math_scanner.lo -MD -MP -MF $(DEPDIR)/libmath_la-math_scanner.Tpo -c -o libmath_la-math_scanner.lo `test -f 'math_scanner.c' || echo '$(srcdir)/'`math_scanner.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmath_la-math_scanner.Tpo $(DEPDIR)/libmath_la-math_scanner.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math_scanner.c' object='libmath_la-math_scanner.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -c -o libmath_la-math_scanner.lo `test -f 'math_scanner.c' || echo '$(srcdir)/'`math_scanner.c libmath_la-math_error.lo: math_error.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -MT libmath_la-math_error.lo -MD -MP -MF $(DEPDIR)/libmath_la-math_error.Tpo -c -o libmath_la-math_error.lo `test -f 'math_error.c' || echo '$(srcdir)/'`math_error.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmath_la-math_error.Tpo $(DEPDIR)/libmath_la-math_error.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math_error.c' object='libmath_la-math_error.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmath_la_CFLAGS) $(CFLAGS) -c -o libmath_la-math_error.lo `test -f 'math_error.c' || echo '$(srcdir)/'`math_error.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am math_operator.c: math_operator.h math_operator.h: math_operator.h.in math_operator.rb ruby math_operator.rb math_operator.h.in math_operator math_constant.c: math_constant.h math_constant.h: math_constant.h.in math_constant.rb ruby math_constant.rb math_constant.h.in math_constant math_function.c: math_function.h math_operator.h math_function.h: math_function.h.in math_function.rb ruby math_function.rb math_function.h.in math_function # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/src/math/math_equation.h0000644000175000017500000001141712241111705015377 00000000000000/* * $Id: math_equation.h,v 1.8 2009-11-21 11:39:10 hito Exp $ * */ #ifndef MATH_EQUATION_HEADER #define MATH_EQUATION_HEADER typedef struct _math_equation MathEquation; typedef struct _math_parameter MathEquationParametar; typedef struct _math_array MathEquationArray; typedef struct _math_value MathValue; #include "math_error.h" #include "nhash.h" #define MATH_EQUATION_ARRAY_INDEX_MAX 65535 struct _math_value { double val; enum { MATH_VALUE_NORMAL = 0, MATH_VALUE_ERROR = 1, MATH_VALUE_NAN = 2, MATH_VALUE_UNDEF = 3, // MATH_VALUE_SYNTAX = 4, MATH_VALUE_CONT = 5, MATH_VALUE_BREAK = 6, MATH_VALUE_NONUM = 7, MATH_VALUE_MEOF = 8, } type; }; struct _math_array { int num, size; MathValue *data; }; #include "math_expression.h" #include "math_function.h" #include "math_constant.h" struct _math_equation { NHASH constant, variable, array, function; int cnum, vnum, array_num, pos_func_num; NHASH local_variable, local_array; int local_vnum, local_array_num, func_def; MathValue *cbuf, *vbuf, *pos_func_buf; int stack_ofst, stack_end, vbuf_size; MathExpression *exp, *opt_exp, *const_def; MathEquationParametar *parameter; MathEquationArray *array_buf; union { const char *pos; struct { int arg_num; struct math_function_parameter *fprm; } func; int const_id; } err_info; void *user_data; }; struct _math_parameter { int type; int min_length, max_length; int *id, id_num, id_max; MathValue *data; int use_index; struct _math_parameter *next; }; enum { MATH_EQUATION_PARAMETAR_USE_ID, MATH_EQUATION_PARAMETAR_USE_INDEX, }; MathEquation *math_equation_new(void); MathEquation *math_equation_basic_new(void); void math_equation_free(MathEquation *eq); int math_equation_optimize(MathEquation *eq); int math_equation_parse(MathEquation *eq, const char *str); void math_equation_clear(MathEquation *eq); int math_equation_calculate(MathEquation *eq, MathValue *val); void math_equation_clear_variable(MathEquation *eq); MathEquationParametar *math_equation_get_parameter(MathEquation *eq, int type, int *err); int math_equation_use_parameter(MathEquation *eq, int type, int val); int math_equation_add_parameter(MathEquation *eq, int type, int min, int max, int use_index); int math_equation_set_parameter_data(MathEquation *eq, int type, MathValue *data); int math_equation_add_pos_func(MathEquation *eq, struct math_function_parameter *fprm); struct math_function_parameter *math_equation_start_user_func_definition(MathEquation *eq, const char *name); int math_equation_register_user_func_definition(MathEquation *eq, const char *name, MathExpression *exp); int math_equation_finish_user_func_definition(MathEquation *eq, int *vnum, int *anum); struct math_function_parameter *math_equation_add_func(MathEquation *eq, const char *name, struct math_function_parameter *prm); struct math_function_parameter *math_equation_get_func(MathEquation *eq, const char *name); void math_equation_remove_func(MathEquation *eq, const char *name); int math_equation_add_const_definition(MathEquation *eq, const char *name, MathExpression *exp, int *err); int math_equation_add_const(MathEquation *eq, const char *name, const MathValue *val); int math_equation_set_const_by_name(MathEquation *eq, const char *name, const MathValue *val); int math_equation_set_const(MathEquation *eq, int idx, const MathValue *val); int math_equation_get_const_by_name(MathEquation *eq, const char *name, MathValue *val); int math_equation_get_const(MathEquation *eq, int idx, MathValue *val); char *math_equation_get_const_name(MathEquation *eq, int idx); int math_equation_add_var(MathEquation *eq, const char *name); int math_equation_set_var(MathEquation *eq, int idx, const MathValue *val); int math_equation_check_var(MathEquation *eq, const char *name); int math_equation_get_var(MathEquation *eq, int idx, MathValue *val); int math_equation_check_array(MathEquation *eq, const char *name); int math_equation_add_array(MathEquation *eq, const char *name); int math_equation_set_array_val(MathEquation *eq, int array, int index, const MathValue *val); int math_equation_get_array_val(MathEquation *eq, int array, int index, MathValue *val); MathEquationArray *math_equation_get_array(MathEquation *eq, int array); void math_equation_set_user_data(MathEquation *eq, void *user_data); void *math_equation_get_user_data(MathEquation *eq); int math_equation_check_const(MathEquation *eq, int *constant, int n); void math_equation_set_parse_error(MathEquation *eq, const char *ptr); void math_equation_set_func_arg_num_error(MathEquation *eq, struct math_function_parameter *fprm, int arg_num); void math_equation_set_func_error(MathEquation *eq, struct math_function_parameter *fprm); void math_equation_set_const_error(MathEquation *eq, int id); #endif ngraph-gtk-6.06.13/src/math/math_operator.rb0000644000175000017500000000323012241111705015553 00000000000000#! /usr/bin/ruby N = 256 ope = [] ope_str = []; IO.foreach(ARGV[0]) { |l| l.chomp! next if (l.length < 1) ope.push(l[0]) ope_str.push(l.split) } ope_str = ope_str.uniq.sort {|a, b| b[0].length - a[0].length} OPE_PREFIX = "MATH_OPERATOR_TYPE" File.open("#{ARGV[1]}.h", "w") { |f| f.puts < #include "math_operator.h" struct ope_str { char *ope; int len; enum #{OPE_PREFIX} type; }; static struct ope_str OpeStr[] = { EOF ope_str.each {|s| f.puts(" {\"#{s[0].gsub('\\', '\\\\\\')}\", #{s[0].length}, #{OPE_PREFIX}_#{s[1]}},") } f.puts("};\n\n") f.puts("static char OpeChar[#{N}] = {") N.times {|i| c = sprintf("%c", i) f.puts(ope.include?(c) ? " 1, /* #{i.chr} */" : " 0,") } f.puts("};") f.puts < (int) (sizeof(OpeChar) / sizeof(*OpeChar))) return 0; return OpeChar[chr]; } enum #{OPE_PREFIX} math_scanner_check_ope_str(const char *str, int *len) { unsigned int i; for (i = 0; i < sizeof(OpeStr) / sizeof(*OpeStr); i++) { if (strncmp(str, OpeStr[i].ope, OpeStr[i].len) == 0) { *len = OpeStr[i].len; return OpeStr[i].type; } } return #{OPE_PREFIX}_UNKNOWN; } EOF } ngraph-gtk-6.06.13/src/math/math_error.h0000644000175000017500000000260512241111705014702 00000000000000/* * $Id: math_error.h,v 1.5 2009-11-21 11:39:10 hito Exp $ * */ #ifndef MATH_ERROR_HEADER #define MATH_ERROR_HEADER #define MATH_ERROR_TYPE_SYNTAX 0x00010000 #define MATH_ERROR_TYPE_PARSE 0x00020000 #define MATH_ERROR_TYPE_RUNTIME 0x00040000 enum MATH_ERROR { MATH_ERROR_NONE = 0, MATH_ERROR_EOEQ = (MATH_ERROR_TYPE_SYNTAX | 0x0001), MATH_ERROR_FDEF_NEST = (MATH_ERROR_TYPE_SYNTAX | 0x0002), MATH_ERROR_UNEXP_OPE = (MATH_ERROR_TYPE_SYNTAX | 0x0003), MATH_ERROR_ARG_NUM = (MATH_ERROR_TYPE_SYNTAX | 0x0004), MATH_ERROR_MISS_RP = (MATH_ERROR_TYPE_SYNTAX | 0x0005), MATH_ERROR_MISS_RB = (MATH_ERROR_TYPE_SYNTAX | 0x0006), MATH_ERROR_MISS_RC = (MATH_ERROR_TYPE_SYNTAX | 0x0007), MATH_ERROR_UNKNOWN_FUNC = (MATH_ERROR_TYPE_SYNTAX | 0x0008), MATH_ERROR_INVALID_FDEF = (MATH_ERROR_TYPE_SYNTAX | 0x0009), MATH_ERROR_INVALID_CDEF = (MATH_ERROR_TYPE_PARSE | 0x000A), MATH_ERROR_UNEXP_TOKEN = (MATH_ERROR_TYPE_SYNTAX | 0x000B), MATH_ERROR_INVALID_PRM = (MATH_ERROR_TYPE_PARSE | 0x0010), MATH_ERROR_PRM_IN_DEF = (MATH_ERROR_TYPE_PARSE | 0x0020), MATH_ERROR_CONST_EXIST = (MATH_ERROR_TYPE_PARSE | 0x0040), MATH_ERROR_CALCULATION = (MATH_ERROR_TYPE_RUNTIME | 0x0010), MATH_ERROR_MEMORY = 0x0100, MATH_ERROR_UNKNOWN = 0x1000, MATH_ERROR_INVALID_FUNC = -2, }; char *math_err_get_error_message(MathEquation *eq, const char *code, int err); #endif ngraph-gtk-6.06.13/src/math/math_function.c0000644000175000017500000002622712241111705015377 00000000000000#include "config.h" #include #include #include #include "math_expression.h" #include "math_equation.h" #include "math_function.h" struct funcs { char *name; struct math_function_parameter prm; }; static struct funcs FuncAry[] = { #ifdef HAVE_LIBGSL {"ZETAM1_INT", {1, 0, 0, math_func_zetam1_int, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif {"MJD2MONTH", {1, 0, 0, math_func_mjd2month, NULL, NULL, NULL, NULL}}, {"UNIX2MJD", {1, 0, 0, math_func_unix2mjd, NULL, NULL, NULL, NULL}}, {"MJD2YEAR", {1, 0, 0, math_func_mjd2year, NULL, NULL, NULL, NULL}}, {"ISNORMAL", {1, 0, 0, math_func_isnormal, NULL, NULL, NULL, NULL}}, {"MJD2WDAY", {1, 0, 0, math_func_mjd2wday, NULL, NULL, NULL, NULL}}, {"MJD2YDAY", {1, 0, 0, math_func_mjd2yday, NULL, NULL, NULL, NULL}}, #ifdef HAVE_LIBGSL {"ZETA_INT", {1, 0, 0, math_func_zeta_int, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif {"UNSHIFT", {2, 0, 0, math_func_unshift, NULL, NULL, NULL, NULL}}, {"MJD2DAY", {1, 0, 0, math_func_mjd2day, NULL, NULL, NULL, NULL}}, {"ISUNDEF", {1, 0, 0, math_func_isundef, NULL, NULL, NULL, NULL}}, {"ISBREAK", {1, 0, 0, math_func_isbreak, NULL, NULL, NULL, NULL}}, {"ISCONT", {1, 0, 0, math_func_iscont, NULL, NULL, NULL, NULL}}, #ifdef HAVE_LIBGSL {"ZETAM1", {1, 0, 0, math_func_zetam1, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif #ifdef HAVE_LIBGSL {"ICBETA", {3, 0, 0, math_func_icbeta, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif {"UNLESS", {3, 0, 0, math_func_unless, NULL, NULL, NULL, NULL}}, #ifdef HAVE_LIBGSL {"CHOOSE", {2, 0, 0, math_func_choose, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif {"PROGN", {-1, 0, 0, math_func_progn, NULL, NULL, NULL, NULL}}, {"PROG1", {-1, 0, 0, math_func_prog1, NULL, NULL, NULL, NULL}}, {"ROUND", {1, 0, 0, math_func_round, NULL, NULL, NULL, NULL}}, {"PROG2", {-1, 0, 0, math_func_prog2, NULL, NULL, NULL, NULL}}, {"GAUSS", {1, 0, 0, math_func_gauss, NULL, NULL, NULL, NULL}}, {"ASINH", {1, 0, 0, math_func_asinh, NULL, NULL, NULL, NULL}}, {"ACOSH", {1, 0, 0, math_func_acosh, NULL, NULL, NULL, NULL}}, {"ATANH", {1, 0, 0, math_func_atanh, NULL, NULL, NULL, NULL}}, {"SHIFT", {1, 0, 0, math_func_shift, NULL, NULL, NULL, NULL}}, {"SRAND", {1, 0, 0, math_func_srand, NULL, NULL, NULL, NULL}}, {"THETA", {1, 0, 0, math_func_theta, NULL, NULL, NULL, NULL}}, {"DELTA", {1, 0, 0, math_func_delta, NULL, NULL, NULL, NULL}}, {"GAMMA", {1, 0, 0, math_func_gamma, NULL, NULL, NULL, NULL}}, {"ICGAM", {2, 0, 0, math_func_icgam, NULL, NULL, NULL, NULL}}, {"RSORT", {1, 1, 0, math_func_rsort, NULL, NULL, NULL, NULL}}, {"ISNAN", {1, 0, 0, math_func_isnan, NULL, NULL, NULL, NULL}}, {"QINV", {1, 0, 0, math_func_qinv, NULL, NULL, NULL, NULL}}, {"TIME", {0, 0, 0, math_func_time, NULL, NULL, NULL, NULL}}, {"BETA", {2, 0, 0, math_func_beta, NULL, NULL, NULL, NULL}}, {"ERFC", {1, 0, 0, math_func_erfc, NULL, NULL, NULL, NULL}}, {"SIGN", {1, 0, 0, math_func_sign, NULL, NULL, NULL, NULL}}, {"PUSH", {2, 0, 0, math_func_push, NULL, NULL, NULL, NULL}}, {"FRAC", {1, 0, 0, math_func_frac, NULL, NULL, NULL, NULL}}, {"SQRT", {1, 0, 0, math_func_sqrt, NULL, NULL, NULL, NULL}}, #ifdef HAVE_LIBGSL {"ZETA", {1, 0, 0, math_func_zeta, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif {"SIZE", {1, 1, 0, math_func_size, NULL, NULL, NULL, NULL}}, {"ASIN", {1, 0, 0, math_func_asin, NULL, NULL, NULL, NULL}}, {"SORT", {1, 1, 0, math_func_sort, NULL, NULL, NULL, NULL}}, {"RAND", {1, 0, 0, math_func_rand, NULL, NULL, NULL, NULL}}, {"TANH", {1, 0, 0, math_func_tanh, NULL, NULL, NULL, NULL}}, {"COSH", {1, 0, 0, math_func_cosh, NULL, NULL, NULL, NULL}}, {"SINH", {1, 0, 0, math_func_sinh, NULL, NULL, NULL, NULL}}, {"ATAN", {1, 0, 0, math_func_atan, NULL, NULL, NULL, NULL}}, {"ACOS", {1, 0, 0, math_func_acos, NULL, NULL, NULL, NULL}}, {"FOR", {5, 1, 0, math_func_for, NULL, NULL, NULL, NULL}}, {"ABS", {1, 0, 0, math_func_abs, NULL, NULL, NULL, NULL}}, {"INT", {1, 0, 0, math_func_int, NULL, NULL, NULL, NULL}}, {"POP", {1, 0, 0, math_func_pop, NULL, NULL, NULL, NULL}}, {"MIN", {-1, 0, 0, math_func_min, NULL, NULL, NULL, NULL}}, {"NOT", {1, 0, 0, math_func_not, NULL, NULL, NULL, NULL}}, {"MAX", {-1, 0, 0, math_func_max, NULL, NULL, NULL, NULL}}, {"AND", {2, 0, 0, math_func_and, NULL, NULL, NULL, NULL}}, {"XOR", {2, 0, 0, math_func_xor, NULL, NULL, NULL, NULL}}, #ifdef HAVE_LIBGSL {"KNU", {2, 0, 0, math_func_knu, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif #ifdef HAVE_LIBGSL {"INU", {2, 0, 0, math_func_inu, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif #ifdef HAVE_LIBGSL {"YNU", {2, 0, 0, math_func_ynu, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif #ifdef HAVE_LIBGSL {"JNU", {2, 0, 0, math_func_jnu, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif {"SQR", {1, 0, 0, math_func_sqr, NULL, NULL, NULL, NULL}}, {"NEQ", {3, 0, 0, math_func_neq, NULL, NULL, NULL, NULL}}, {"DIF", {1, 1, 1, math_func_dif, NULL, NULL, NULL, NULL}}, {"SUM", {1, 1, 1, math_func_sum, NULL, NULL, NULL, NULL}}, #ifdef HAVE_LIBGSL {"ERF", {1, 0, 0, math_func_erf, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif {"MJD", {6, 0, 0, math_func_mjd, NULL, NULL, NULL, NULL}}, {"LGN", {3, 0, 0, math_func_lgn, NULL, NULL, NULL, NULL}}, {"TAN", {1, 0, 0, math_func_tan, NULL, NULL, NULL, NULL}}, {"COS", {1, 0, 0, math_func_cos, NULL, NULL, NULL, NULL}}, {"SIN", {1, 0, 0, math_func_sin, NULL, NULL, NULL, NULL}}, {"EXP", {1, 0, 0, math_func_exp, NULL, NULL, NULL, NULL}}, {"LOG", {1, 0, 0, math_func_log, NULL, NULL, NULL, NULL}}, {"HN", {2, 0, 0, math_func_hn, NULL, NULL, NULL, NULL}}, {"LN", {1, 0, 0, math_func_ln, NULL, NULL, NULL, NULL}}, {"TN", {2, 0, 0, math_func_tn, NULL, NULL, NULL, NULL}}, {"EQ", {3, 0, 0, math_func_eq, NULL, NULL, NULL, NULL}}, #ifdef HAVE_LIBGSL {"IN", {2, 0, 0, math_func_in, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif #ifdef HAVE_LIBGSL {"KN", {2, 0, 0, math_func_kn, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif #ifdef HAVE_LIBGSL {"YL", {2, 0, 0, math_func_yl, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif #ifdef HAVE_LIBGSL {"JL", {2, 0, 0, math_func_jl, NULL, NULL, NULL, NULL}}, #else {NULL, {0, 0, 0, NULL, NULL, NULL, NULL, NULL}}, #endif {"IF", {3, 0, 0, math_func_if, NULL, NULL, NULL, NULL}}, {"CM", {1, 0, 0, math_func_cm, NULL, NULL, NULL, NULL}}, {"EI", {1, 0, 0, math_func_ei, NULL, NULL, NULL, NULL}}, {"GE", {3, 0, 0, math_func_ge, NULL, NULL, NULL, NULL}}, {"OR", {2, 0, 0, math_func_or, NULL, NULL, NULL, NULL}}, {"LT", {3, 0, 0, math_func_lt, NULL, NULL, NULL, NULL}}, {"PN", {2, 0, 0, math_func_pn, NULL, NULL, NULL, NULL}}, {"YN", {2, 0, 0, math_func_yn, NULL, NULL, NULL, NULL}}, {"LE", {3, 0, 0, math_func_le, NULL, NULL, NULL, NULL}}, {"GT", {3, 0, 0, math_func_gt, NULL, NULL, NULL, NULL}}, {"JN", {2, 0, 0, math_func_jn, NULL, NULL, NULL, NULL}}, {"RM", {1, 1, 0, math_func_rm, NULL, NULL, NULL, NULL}}, {"M", {2, 1, 0, math_func_m, NULL, NULL, NULL, NULL}}, }; int math_add_basic_function(MathEquation *eq) { unsigned int i; enum MATH_FUNCTION_ARG_TYPE *ptr; for (i = 0; i < sizeof(FuncAry) / sizeof(*FuncAry); i++) { if (FuncAry[i].name == NULL) { continue; } switch (i) { case 8: /* UNSHIFT */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 2); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_ARRAY; ptr[1] = MATH_FUNCTION_ARG_TYPE_DOUBLE; FuncAry[i].prm.arg_type = ptr; break; case 15: /* UNLESS */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 3); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_DOUBLE; ptr[1] = MATH_FUNCTION_ARG_TYPE_PROC; ptr[2] = MATH_FUNCTION_ARG_TYPE_PROC; FuncAry[i].prm.arg_type = ptr; break; case 25: /* SHIFT */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 1); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_ARRAY; FuncAry[i].prm.arg_type = ptr; break; case 31: /* RSORT */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 1); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_ARRAY; FuncAry[i].prm.arg_type = ptr; break; case 38: /* PUSH */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 2); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_ARRAY; ptr[1] = MATH_FUNCTION_ARG_TYPE_DOUBLE; FuncAry[i].prm.arg_type = ptr; break; case 42: /* SIZE */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 1); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_ARRAY; FuncAry[i].prm.arg_type = ptr; break; case 44: /* SORT */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 1); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_ARRAY; FuncAry[i].prm.arg_type = ptr; break; case 51: /* FOR */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 5); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_DOUBLE; ptr[1] = MATH_FUNCTION_ARG_TYPE_DOUBLE; ptr[2] = MATH_FUNCTION_ARG_TYPE_DOUBLE; ptr[3] = MATH_FUNCTION_ARG_TYPE_DOUBLE; ptr[4] = MATH_FUNCTION_ARG_TYPE_PROC; FuncAry[i].prm.arg_type = ptr; break; case 54: /* POP */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 1); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_ARRAY; FuncAry[i].prm.arg_type = ptr; break; case 84: /* IF */ if (FuncAry[i].prm.arg_type) { break; } ptr = g_malloc(sizeof(enum MATH_FUNCTION_ARG_TYPE) * 3); if (ptr == NULL) { return 1; } ptr[0] = MATH_FUNCTION_ARG_TYPE_DOUBLE; ptr[1] = MATH_FUNCTION_ARG_TYPE_PROC; ptr[2] = MATH_FUNCTION_ARG_TYPE_PROC; FuncAry[i].prm.arg_type = ptr; break; } if (math_equation_add_func(eq, FuncAry[i].name, &FuncAry[i].prm) == NULL) return 1; } return 0; } ngraph-gtk-6.06.13/src/math/math_operator.h0000644000175000017500000000157112241111705015405 00000000000000#ifndef MATH_SCANNER_OPE_HEADER #define MATH_SCANNER_OPE_HEADER enum MATH_OPERATOR_TYPE { MATH_OPERATOR_TYPE_AND, MATH_OPERATOR_TYPE_ASSIGN, MATH_OPERATOR_TYPE_DIV, MATH_OPERATOR_TYPE_DIV_ASSIGN, MATH_OPERATOR_TYPE_EOEQ, MATH_OPERATOR_TYPE_EQ, MATH_OPERATOR_TYPE_FACT, MATH_OPERATOR_TYPE_GE, MATH_OPERATOR_TYPE_GT, MATH_OPERATOR_TYPE_LE, MATH_OPERATOR_TYPE_LT, MATH_OPERATOR_TYPE_MINUS, MATH_OPERATOR_TYPE_MINUS_ASSIGN, MATH_OPERATOR_TYPE_MOD, MATH_OPERATOR_TYPE_MOD_ASSIGN, MATH_OPERATOR_TYPE_MUL, MATH_OPERATOR_TYPE_MUL_ASSIGN, MATH_OPERATOR_TYPE_NE, MATH_OPERATOR_TYPE_OR, MATH_OPERATOR_TYPE_PLUS, MATH_OPERATOR_TYPE_PLUS_ASSIGN, MATH_OPERATOR_TYPE_POW, MATH_OPERATOR_TYPE_POW_ASSIGN, MATH_OPERATOR_TYPE_UNKNOWN }; int math_scanner_is_ope(int chr); enum MATH_OPERATOR_TYPE math_scanner_check_ope_str(const char *str, int *len); #endif ngraph-gtk-6.06.13/src/math/math_constant.h0000644000175000017500000000077412241111705015407 00000000000000#ifndef MATH_SCANNER_CONST_HEADER #define MATH_SCANNER_CONST_HEADER #include "math_expression.h" #include "math_equation.h" enum MATH_SCANNER_VAL_TYPE { MATH_SCANNER_VAL_TYPE_NORMAL, MATH_SCANNER_VAL_TYPE_UNKNOWN }; struct math_const_parameter { char *str; enum MATH_SCANNER_VAL_TYPE type; MathValue val; }; int math_scanner_is_const(int chr); enum MATH_SCANNER_VAL_TYPE math_scanner_check_math_const_parameter(char *str, MathValue *val); int math_add_basic_constant(MathEquation *eq); #endif ngraph-gtk-6.06.13/src/math/Makefile.am0000644000175000017500000000214712241111705014424 00000000000000noinst_LTLIBRARIES = libmath.la libmath_la_SOURCES = math_function.c math_function.h math_operator.c \ math_operator.h math_constant.c math_constant.h \ math_expression.c math_parser.c math_scanner.h \ parse_bin_expression.h math_basic_function.c math_equation.c \ math_expression.h math_parser.h math_equation.h \ math_scanner.c math_error.h math_error.c EXTRA_DIST = math_operator.h.in math_operator.rb math_constant.h.in \ math_constant.rb math_function.h.in math_function.rb BUILT_SOURCES = math_operator.h math_operator.c math_constant.h \ math_constant.c math_function.h math_function.c math_operator.c: math_operator.h math_operator.h: math_operator.h.in math_operator.rb ruby math_operator.rb math_operator.h.in math_operator math_constant.c: math_constant.h math_constant.h: math_constant.h.in math_constant.rb ruby math_constant.rb math_constant.h.in math_constant math_function.c: math_function.h math_operator.h math_function.h: math_function.h.in math_function.rb ruby math_function.rb math_function.h.in math_function libmath_la_LDFLAGS = -static libmath_la_CFLAGS = $(GTK_CFLAGS) -I.. ngraph-gtk-6.06.13/src/math/math_operator.c0000644000175000017500000000661412241111705015403 00000000000000#include "config.h" #include #include "math_operator.h" struct ope_str { char *ope; int len; enum MATH_OPERATOR_TYPE type; }; static struct ope_str OpeStr[] = { {"!:", 2, MATH_OPERATOR_TYPE_NE}, {"^=", 2, MATH_OPERATOR_TYPE_POW_ASSIGN}, {"^:", 2, MATH_OPERATOR_TYPE_POW_ASSIGN}, {"\\=", 2, MATH_OPERATOR_TYPE_MOD_ASSIGN}, {"\\:", 2, MATH_OPERATOR_TYPE_MOD_ASSIGN}, {"/=", 2, MATH_OPERATOR_TYPE_DIV_ASSIGN}, {"/:", 2, MATH_OPERATOR_TYPE_DIV_ASSIGN}, {"*=", 2, MATH_OPERATOR_TYPE_MUL_ASSIGN}, {":=", 2, MATH_OPERATOR_TYPE_ASSIGN}, {"*:", 2, MATH_OPERATOR_TYPE_MUL_ASSIGN}, {"+=", 2, MATH_OPERATOR_TYPE_PLUS_ASSIGN}, {">:", 2, MATH_OPERATOR_TYPE_GE}, {">=", 2, MATH_OPERATOR_TYPE_GE}, {"<:", 2, MATH_OPERATOR_TYPE_LE}, {"<=", 2, MATH_OPERATOR_TYPE_LE}, {"::", 2, MATH_OPERATOR_TYPE_EQ}, {"==", 2, MATH_OPERATOR_TYPE_EQ}, {"+:", 2, MATH_OPERATOR_TYPE_PLUS_ASSIGN}, {"!=", 2, MATH_OPERATOR_TYPE_NE}, {"||", 2, MATH_OPERATOR_TYPE_OR}, {"&&", 2, MATH_OPERATOR_TYPE_AND}, {"-:", 2, MATH_OPERATOR_TYPE_MINUS_ASSIGN}, {"-=", 2, MATH_OPERATOR_TYPE_MINUS_ASSIGN}, {"-", 1, MATH_OPERATOR_TYPE_MINUS}, {"<", 1, MATH_OPERATOR_TYPE_LT}, {">", 1, MATH_OPERATOR_TYPE_GT}, {":", 1, MATH_OPERATOR_TYPE_ASSIGN}, {"!", 1, MATH_OPERATOR_TYPE_FACT}, {"^", 1, MATH_OPERATOR_TYPE_POW}, {"\\", 1, MATH_OPERATOR_TYPE_MOD}, {"/", 1, MATH_OPERATOR_TYPE_DIV}, {"*", 1, MATH_OPERATOR_TYPE_MUL}, {"+", 1, MATH_OPERATOR_TYPE_PLUS}, {"=", 1, MATH_OPERATOR_TYPE_EOEQ}, {";", 1, MATH_OPERATOR_TYPE_EOEQ}, }; static char OpeChar[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, /* ! */ 0, 0, 0, 0, 1, /* & */ 0, 0, 0, 1, /* * */ 1, /* + */ 0, 1, /* - */ 0, 1, /* / */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, /* : */ 1, /* ; */ 1, /* < */ 1, /* = */ 1, /* > */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, /* \ */ 0, 1, /* ^ */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, /* | */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; int math_scanner_is_ope(int chr) { if (chr < 0 || chr > (int) (sizeof(OpeChar) / sizeof(*OpeChar))) return 0; return OpeChar[chr]; } enum MATH_OPERATOR_TYPE math_scanner_check_ope_str(const char *str, int *len) { unsigned int i; for (i = 0; i < sizeof(OpeStr) / sizeof(*OpeStr); i++) { if (strncmp(str, OpeStr[i].ope, OpeStr[i].len) == 0) { *len = OpeStr[i].len; return OpeStr[i].type; } } return MATH_OPERATOR_TYPE_UNKNOWN; } ngraph-gtk-6.06.13/src/math/math_function.h0000644000175000017500000002244712241111705015404 00000000000000#ifndef MATH_SCANNER_FUNC_HEADER #define MATH_SCANNER_FUNC_HEADER enum MATH_FUNCTION_ARG_TYPE { MATH_FUNCTION_ARG_TYPE_DOUBLE, MATH_FUNCTION_ARG_TYPE_ARRAY, MATH_FUNCTION_ARG_TYPE_PROC, }; typedef int (* math_function) (MathFunctionCallExpression *exp, MathEquation *eq, MathValue *r); struct math_function_parameter { int argc; int side_effect, positional; math_function func; enum MATH_FUNCTION_ARG_TYPE *arg_type; MathExpression *opt_usr, *base_usr; char *name; }; int math_scanner_is_func(int chr); int math_add_basic_function(MathEquation *eq); #ifdef HAVE_LIBGSL int math_func_zetam1_int(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif int math_func_mjd2month(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_unix2mjd(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_mjd2year(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_isnormal(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_mjd2wday(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_mjd2yday(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #ifdef HAVE_LIBGSL int math_func_zeta_int(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif int math_func_unshift(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_mjd2day(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_isundef(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_isbreak(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_iscont(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #ifdef HAVE_LIBGSL int math_func_zetam1(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif #ifdef HAVE_LIBGSL int math_func_icbeta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif int math_func_unless(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #ifdef HAVE_LIBGSL int math_func_choose(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif int math_func_progn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_prog1(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_round(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_prog2(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_gauss(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_asinh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_acosh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_atanh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_shift(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_srand(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_theta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_delta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_gamma(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_icgam(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_rsort(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_isnan(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_qinv(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_time(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_beta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_erfc(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_sign(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_push(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_frac(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_sqrt(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #ifdef HAVE_LIBGSL int math_func_zeta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif int math_func_size(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_asin(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_sort(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_rand(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_tanh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_cosh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_sinh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_atan(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_acos(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_for(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_abs(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_int(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_pop(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_min(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_not(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_max(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_and(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_xor(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #ifdef HAVE_LIBGSL int math_func_knu(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif #ifdef HAVE_LIBGSL int math_func_inu(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif #ifdef HAVE_LIBGSL int math_func_ynu(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif #ifdef HAVE_LIBGSL int math_func_jnu(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif int math_func_sqr(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_neq(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_dif(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_sum(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #ifdef HAVE_LIBGSL int math_func_erf(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif int math_func_mjd(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_lgn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_tan(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_cos(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_sin(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_exp(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_log(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_hn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_ln(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_tn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_eq(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #ifdef HAVE_LIBGSL int math_func_in(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif #ifdef HAVE_LIBGSL int math_func_kn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif #ifdef HAVE_LIBGSL int math_func_yl(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif #ifdef HAVE_LIBGSL int math_func_jl(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif int math_func_if(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_cm(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_ei(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_ge(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_or(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_lt(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_pn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_yn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_le(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_gt(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_jn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_rm(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); int math_func_m(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval); #endif ngraph-gtk-6.06.13/src/math/math_scanner.c0000644000175000017500000002342412241111705015177 00000000000000/* * $Id: math_scanner.c,v 1.5 2009-11-16 09:13:06 hito Exp $ * */ #include "config.h" #include #include #include #include #include #include #include "object.h" #include "math_scanner.h" static struct math_token *create_token(const char *str, enum MATH_TOKEN_TYPE type); static struct math_token *get_array_prefix(const char *str, const char ** rstr); static struct math_token *get_bracket(const char *str, const char ** rstr); static struct math_token *get_unknown(const char *str, const char ** rstr); static struct math_token *get_symbol(const char *str, const char ** rstr); static struct math_token *get_paren(const char *str, const char ** rstr); static struct math_token *get_curly(const char *str, const char ** rstr); static struct math_token *get_comma(const char *str, const char ** rstr); static struct math_token *get_eoeq(const char *str, const char ** rstr); static struct math_token *get_ope(const char *str, const char ** rstr); static struct math_token *get_num(const char *str, const char ** rstr); struct reserved { char *name; enum MATH_TOKEN_TYPE type; }; static struct reserved Reserved[] = { {"DEF", MATH_TOKEN_TYPE_DEF}, {"CONST", MATH_TOKEN_TYPE_CONST}, }; static enum MATH_TOKEN_TYPE check_reserved(char *str) { unsigned int i; for (i = 0; i < sizeof(Reserved) / sizeof(*Reserved); i++) { if (strcmp(Reserved[i].name, str) == 0) { return Reserved[i].type; } } return MATH_TOKEN_TYPE_UNKNOWN; } void math_scanner_free_token(struct math_token *token) { if (token == NULL) return; switch (token->type) { case MATH_TOKEN_TYPE_NUMERIC: case MATH_TOKEN_TYPE_OPERATOR: case MATH_TOKEN_TYPE_COMMA: case MATH_TOKEN_TYPE_EOEQ: case MATH_TOKEN_TYPE_LP: case MATH_TOKEN_TYPE_RP: case MATH_TOKEN_TYPE_LB: case MATH_TOKEN_TYPE_RB: case MATH_TOKEN_TYPE_LC: case MATH_TOKEN_TYPE_RC: case MATH_TOKEN_TYPE_DEF: case MATH_TOKEN_TYPE_CONST: case MATH_TOKEN_TYPE_ARRAY_PREFIX: case MATH_TOKEN_TYPE_UNKNOWN: break; case MATH_TOKEN_TYPE_SYMBOL: g_free(token->data.sym); break; } g_free(token); } struct math_token * math_scanner_get_token(const char *str, const char **rstr) { char c; if (str == NULL) { return NULL; } while (*str < 0 || *str == ' ' || *str == '\t' || *str == '\n') str++; c = str[0]; if (c == '\0') { return get_eoeq(str, rstr); } else if (isdigit(c) || c == '.') { return get_num(str, rstr); } else if (math_scanner_is_ope(c)) { return get_ope(str, rstr); } else if (isalpha(c) || c == '%') { return get_symbol(str, rstr); } else if (c == '(' || c == ')') { return get_paren(str, rstr); } else if (c == '[' || c == ']') { return get_bracket(str, rstr); } else if (c == '{' || c == '}') { return get_curly(str, rstr); } else if (c == ',') { return get_comma(str, rstr); } else if (c == '@') { return get_array_prefix(str, rstr); } return get_unknown(str, rstr); } static struct math_token * get_unknown(const char *str, const char ** rstr) { struct math_token *tok; tok = create_token(str, MATH_TOKEN_TYPE_UNKNOWN); if (tok == NULL) return NULL; return tok; } static struct math_token * get_paren(const char *str, const char ** rstr) { struct math_token *tok; tok = create_token(str, (str[0] == ')') ? MATH_TOKEN_TYPE_RP : MATH_TOKEN_TYPE_LP); if (tok == NULL) return NULL; *rstr = str + 1; return tok; } static struct math_token * get_bracket(const char *str, const char ** rstr) { struct math_token *tok; tok = create_token(str, (str[0] == ']') ? MATH_TOKEN_TYPE_RB : MATH_TOKEN_TYPE_LB); if (tok == NULL) return NULL; *rstr = str + 1; return tok; } static struct math_token * get_curly(const char *str, const char ** rstr) { struct math_token *tok; tok = create_token(str, (str[0] == '}') ? MATH_TOKEN_TYPE_RC : MATH_TOKEN_TYPE_LC); if (tok == NULL) return NULL; *rstr = str + 1; return tok; } static struct math_token * get_comma(const char *str, const char ** rstr) { struct math_token *tok; tok = create_token(str, MATH_TOKEN_TYPE_COMMA); if (tok == NULL) return NULL; *rstr = str + 1; return tok; } static struct math_token * get_array_prefix(const char *str, const char ** rstr) { struct math_token *tok; tok = create_token(str, MATH_TOKEN_TYPE_ARRAY_PREFIX); if (tok == NULL) return NULL; *rstr = str + 1; return tok; } static struct math_token * get_eoeq(const char *str, const char ** rstr) { struct math_token *tok; tok = create_token(str, MATH_TOKEN_TYPE_EOEQ); if (tok == NULL) return NULL; *rstr = str + ((*str) ? 1 : 0); return tok; } static struct math_token * get_ope(const char *str, const char ** rstr) { struct math_token *tok; int len; enum MATH_OPERATOR_TYPE ope; ope = math_scanner_check_ope_str(str, &len); switch (ope) { case MATH_OPERATOR_TYPE_EOEQ: tok = create_token(str, MATH_TOKEN_TYPE_EOEQ); break; case MATH_OPERATOR_TYPE_UNKNOWN: tok = create_token(str, MATH_TOKEN_TYPE_UNKNOWN); break; default: tok = create_token(str, MATH_TOKEN_TYPE_OPERATOR); if (tok) { tok->data.op = ope; } } *rstr = str + len; return tok; } static struct math_token * get_symbol(const char *str, const char ** rstr) { struct math_token *tok; char *buf; int n, i; enum MATH_TOKEN_TYPE type; for (n = (str[0] == '%') ? 1 : 0; isalnum(str[n]) || str[n] == '_'; n++); buf = g_malloc(n + 1); if (buf == NULL) return NULL; for (i = 0; i < n; i++) { buf[i] = toupper(str[i]); } buf[i] = '\0'; type = check_reserved(buf); if (type != MATH_TOKEN_TYPE_UNKNOWN) { g_free(buf); tok = create_token(str, type); if (tok == NULL) { g_free(buf); return NULL; } } else { tok = create_token(str, MATH_TOKEN_TYPE_SYMBOL); if (tok == NULL) { g_free(buf); return NULL; } tok->data.sym = buf; } *rstr = str + n; return tok; } static const char * get_oct(const char *str, double *val) { double oct; char c; oct = 0; for (; *str; str++) { c = *str; switch (c) { case ' ': case '_': case '\t': continue; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': oct *= 8; oct += c - '0'; break; default: goto End; } } End: *val = oct; return str; } static const char * get_hex(const char *str, double *val) { double hex; char c; hex = 0; for (; *str; str++) { c = toupper(*str); switch (c) { case ' ': case '_': case '\t': continue; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': hex *= 16; hex += c - '0'; break; case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': hex *= 16; hex += c - 'A' + 10; break; default: goto End; } } End: *val = hex; return str; } static const char * get_bin(const char *str, double *val) { double bin; char c; bin = 0; for (; *str; str++) { c = str[0]; switch (c) { case ' ': case '_': case '\t': continue; case '0': case '1': bin *= 2; bin += c - '0'; break; default: goto End; } } End: *val = bin; return str; } static const char * get_dec(const char *str, double *val) { int in_decimal, in_pow, pow_sign, pow_val, dec_order; long double dec, flaction; pow_val = 0; pow_sign = 1; dec_order = 0; flaction = 0; dec = 0; in_decimal = 0; in_pow = 0; for (; *str; str++) { char c; c = toupper(*str); if (c < 0) { break; } else if (c == ' ' || c == '\t' || c == '_') { continue; } else if (c == '.') { if (in_decimal || in_pow) { break; } in_decimal = 1; } else if (c == 'E' || c == 'D') { if (in_pow) { break; } in_pow = 1; } else if (c == '+' || c =='-') { if (in_pow != 1) { break; } pow_sign = (c == '+') ? 1 : -1; in_pow = 2; } else if (isdigit(c)) { switch (in_pow) { case 1: in_pow = 2; case 2: if (pow_val < INT_MAX / 10) { pow_val *= 10; pow_val += c - '0'; } break; default: if (in_decimal) { if (flaction < 1E30) { /* dec and flaction is not negative */ dec_order++; flaction *= 10; flaction += c - '0'; } } else { dec *= 10; dec += c - '0'; } } } else { break; } } #if HAVE_POWL *val = dec * powl(10.0, pow_sign * pow_val) + flaction * powl(10.0, pow_sign * pow_val - dec_order); #else /* HAVE_POWL */ *val = dec * pow(10.0, pow_sign * pow_val) + flaction * pow(10.0, pow_sign * pow_val - dec_order); #endif /* HAVE_POWL */ return str; } static struct math_token * get_num(const char *str, const char ** rstr) { struct math_token *tok; const char *ptr; double val; tok = create_token(str, MATH_TOKEN_TYPE_NUMERIC); if (tok == NULL) { return NULL; } if (str[0] == '0' && str[1] == 'x') { str += 2; ptr = get_hex(str, &val); } else if (str[0] == '0' && str[1] == 'b') { str += 2; ptr = get_bin(str, &val); } else if (str[0] == '0' && str[1] == 'o') { str += 2; ptr = get_oct(str, &val); } else if (str[0] == '0' && (str[1] == '.' || str[1] == 'E' || str[1] == 'D')) { ptr = get_dec(str, &val); } else { ptr = get_dec(str, &val); } if (ptr == NULL) { tok->type = MATH_TOKEN_TYPE_UNKNOWN; return tok; } tok->data.val.dnum = val; tok->data.val.type = MATH_SCANNER_VAL_TYPE_NORMAL; *rstr = ptr; return tok; } static struct math_token * create_token(const char *str, enum MATH_TOKEN_TYPE type) { struct math_token *tok; tok = g_malloc0(sizeof(*tok)); if (tok == NULL) { return NULL; } tok->type = type; tok->ptr = str; return tok; } ngraph-gtk-6.06.13/src/math/math_parser.h0000644000175000017500000000036312241111705015044 00000000000000/* * $Id: math_parser.h,v 1.3 2009-11-10 04:12:20 hito Exp $ * */ #ifndef MATH_PARSER_HEADER #define MATH_PARSER_HEADER #include "math_equation.h" MathExpression *math_parser_parse(const char *line, MathEquation *eq, int *err); #endif ngraph-gtk-6.06.13/src/math/math_scanner.h0000644000175000017500000000171512241111705015203 00000000000000/* * $Id: math_scanner.h,v 1.2 2009-11-10 04:12:20 hito Exp $ * */ #ifndef MATH_SCANNER_HEADER #define MATH_SCANNER_HEADER #include "math_operator.h" #include "math_constant.h" enum MATH_TOKEN_TYPE { MATH_TOKEN_TYPE_NUMERIC, MATH_TOKEN_TYPE_SYMBOL, MATH_TOKEN_TYPE_OPERATOR, MATH_TOKEN_TYPE_LP, MATH_TOKEN_TYPE_RP, MATH_TOKEN_TYPE_LB, MATH_TOKEN_TYPE_RB, MATH_TOKEN_TYPE_LC, MATH_TOKEN_TYPE_RC, MATH_TOKEN_TYPE_DEF, MATH_TOKEN_TYPE_CONST, MATH_TOKEN_TYPE_COMMA, MATH_TOKEN_TYPE_ARRAY_PREFIX, MATH_TOKEN_TYPE_EOEQ, MATH_TOKEN_TYPE_UNKNOWN, }; struct math_token { enum MATH_TOKEN_TYPE type; union { struct { double dnum; enum MATH_SCANNER_VAL_TYPE type; } val; enum MATH_OPERATOR_TYPE op; char *sym; } data; const char *ptr; struct math_token *next; }; struct math_token *math_scanner_get_token(const char *str, const char ** rstr); void math_scanner_free_token(struct math_token *token); #endif ngraph-gtk-6.06.13/src/math/math_expression.c0000644000175000017500000011455312241111705015751 00000000000000/* * $Id: math_expression.c,v 1.16 2010-02-24 00:52:44 hito Exp $ * */ #include "config.h" #include #include #include #include #include #include #include #include "nhash.h" #include "math_expression.h" #include "math_function.h" static int calc(MathExpression *exp, MathValue *val); static MathExpression *optimize(MathExpression *exp, int *err); #define CALC_EXPRESSION(e, v) \ ((e->type == MATH_EXPRESSION_TYPE_DOBLE) ? \ ((v = e->u.value), 0) : \ calc(e, &v)) MathExpression * math_expression_new(enum MATH_EXPRESSION_TYPE type, MathEquation *eq, int *err) { MathExpression *exp; exp = g_malloc(sizeof(*exp)); if (exp == NULL) { if (err) { *err =MATH_ERROR_MEMORY; } return NULL; } exp->type = type; exp->next = NULL; exp->equation = eq; return exp; } MathExpression * math_constant_definition_expression_new(MathEquation *eq, char *name, MathExpression *exp, int *err) { MathExpression *cdef; int id; id = math_equation_get_const_by_name(eq, name, NULL); if (id >= 0) { /* already defined */ *err = MATH_ERROR_CONST_EXIST; math_equation_set_const_error(eq, id); return NULL; } cdef = math_expression_new(MATH_EXPRESSION_TYPE_CONST_DEF, eq, err); if (cdef == NULL) { return NULL; } cdef->u.const_def.operand = exp; if (math_equation_add_const_definition(eq, name, cdef, err) < 0) { g_free(cdef); return NULL; } return cdef; } MathExpression * math_function_expression_new(MathEquation *eq, const char *name, int *err) { MathExpression *func; struct math_function_parameter *prm; prm = math_equation_get_func(eq, name); if (prm && prm->base_usr == NULL) { /* embedded function */ return NULL; } func = math_expression_new(MATH_EXPRESSION_TYPE_FUNC, eq, err); if (func == NULL) return NULL; func->u.func.argc = 0; func->u.func.local_num = 0; func->u.func.exp = NULL; func->u.func.arg_list = NULL; func->u.func.fprm = math_equation_start_user_func_definition(eq, name); if (func->u.func.fprm == NULL) return NULL; return func; } static struct math_func_arg_list * create_arg(const char *name, enum MATH_FUNCTION_ARG_TYPE type) { struct math_func_arg_list *ptr; ptr = g_malloc(sizeof(*ptr)); if (ptr == NULL) { return NULL; } ptr->name = g_strdup(name); if (ptr->name == NULL) { g_free(ptr); return NULL; } ptr->next = NULL; ptr->type = type; return ptr; } static int register_arg(MathExpression *func, const char *arg_name, enum MATH_FUNCTION_ARG_TYPE type) { switch (type) { case MATH_FUNCTION_ARG_TYPE_DOUBLE: if (math_equation_check_var(func->equation, arg_name) >= 0) { /* the variable already exist */ return 1; } math_equation_add_var(func->equation, arg_name); break; case MATH_FUNCTION_ARG_TYPE_ARRAY: if (math_equation_check_array(func->equation, arg_name) >= 0) { /* the array already exist */ return 1; } math_equation_add_array(func->equation, arg_name); break; case MATH_FUNCTION_ARG_TYPE_PROC: return 1; } return 0; } int math_function_expression_add_arg(MathExpression *func, const char *arg_name, enum MATH_FUNCTION_ARG_TYPE type) { static struct math_func_arg_list *list; list = create_arg(arg_name, type); if (list == NULL) return 1; if (func->u.func.arg_list == NULL) { func->u.func.arg_list = list; } else { func->u.func.arg_last->next = list; } func->u.func.arg_last = list; return 0; } static int func_set_arg_buf(MathExpression *func) { static struct math_func_arg_list *list; int n, i, have_array; enum MATH_FUNCTION_ARG_TYPE *arg_type_buf; have_array = 0; list = func->u.func.arg_list; for (n = 0; list; n++) { switch (list->type) { case MATH_FUNCTION_ARG_TYPE_DOUBLE: break; case MATH_FUNCTION_ARG_TYPE_ARRAY: have_array = 1; break; case MATH_FUNCTION_ARG_TYPE_PROC: return 1; break; } list = list->next; } if (have_array) { arg_type_buf = g_malloc(sizeof(*arg_type_buf) * n); if (arg_type_buf == NULL) return 1; list = func->u.func.arg_list; for (i = 0; list; i++) { arg_type_buf[i] = list->type; if (register_arg(func, list->name, list->type)) { g_free(arg_type_buf); return 1; } list = list->next; } func->u.func.fprm->arg_type = arg_type_buf; } else { list = func->u.func.arg_list; for (i = 0; list; i++) { if (register_arg(func, list->name, list->type)) { return 1; } list = list->next; } } func->u.func.argc = n; func->u.func.fprm->argc = func->u.func.argc; return 0; } static void free_arg_list(struct math_func_arg_list *list) { static struct math_func_arg_list *next; while (list) { next = list->next; g_free(list->name); g_free(list); list = next; } } int math_function_expression_register_arg(MathExpression *func) { return func_set_arg_buf(func); } int math_function_expression_set_function(MathEquation *eq, MathExpression *func, const char *name, MathExpression *exp) { int anum, vnum; func->u.func.exp = exp; if (func->u.func.fprm == NULL) { return 1; } if (math_equation_register_user_func_definition(eq, name, func)) { return 1; } func->u.func.fprm->base_usr = func; func->u.func.fprm->opt_usr = NULL; math_equation_finish_user_func_definition(eq, &vnum, &anum); func->u.func.local_num = vnum; func->u.func.local_array_num = anum; return 0; } MathExpression * math_parameter_expression_new(MathEquation *eq, char *name, int *err) { int ofst, i, type, n, id, id_pre, id_post, index; MathExpression *exp; MathEquationParametar *prm; if (isalpha(name[1])) { type = name[1]; ofst = 2; } else { type = 0; ofst = 1; } prm = math_equation_get_parameter(eq, type, err); if (prm == NULL) { *err = MATH_ERROR_INVALID_PRM; return NULL; } for (i = ofst; isdigit(name[i]); i++); if (name[i] != '\0' || i == ofst) { *err = MATH_ERROR_INVALID_PRM; return NULL; } n = i - ofst; if (n < prm->min_length || n > prm->max_length) { *err = MATH_ERROR_INVALID_PRM; return NULL; } id_pre = id_post = 0; for (i = 0; i < prm->min_length - 1; i++) { id_pre *= 10; id_pre += name[ofst + i] - '0'; } for (; i < n; i++) { id_post *= 10; id_post += name[ofst + i] - '0'; } for (i = 0; i < prm->max_length - prm->min_length + 1; i++) { id_pre *= 10; } id = id_pre + id_post; index = math_equation_use_parameter(eq, type, id); if (index < 0) { *err = MATH_ERROR_MEMORY; return NULL; } exp = math_expression_new(MATH_EXPRESSION_TYPE_PRM, eq, err); if (exp == NULL) { return NULL; } exp->u.prm.type = type; exp->u.prm.prm = prm; exp->u.prm.id = id; exp->u.prm.index = (prm->use_index == MATH_EQUATION_PARAMETAR_USE_INDEX) ? index : id; return exp; } MathExpression * math_constant_expression_new(MathEquation *eq, const char *name, int *err) { MathExpression *exp; MathValue val; int i; i = math_equation_get_const_by_name(eq, name, &val); if (i < 0) { return NULL; } exp = math_expression_new(MATH_EXPRESSION_TYPE_CONST, eq, err); if (exp == NULL) { return NULL; } exp->u.index = i; return exp; } MathExpression * math_variable_expression_new(MathEquation *eq, const char *name, int *err) { MathExpression *exp; int i; exp = math_expression_new(MATH_EXPRESSION_TYPE_VARIABLE, eq, err); if (exp == NULL) { return NULL; } i = math_equation_add_var(eq, name); if (i < 0) { *err = MATH_ERROR_MEMORY; math_expression_free(exp); return NULL; } exp->u.index = i; return exp; } MathExpression * math_array_expression_new(MathEquation *eq, const char *name, MathExpression *operand, int *err) { MathExpression *exp; int i; exp = math_expression_new(MATH_EXPRESSION_TYPE_ARRAY, eq, err); if (exp == NULL) { return NULL; } i = math_equation_add_array(eq, name); if (i < 0) { *err = MATH_ERROR_MEMORY; math_expression_free(exp); return NULL; } exp->u.array.index = i; exp->u.array.operand = operand; return exp; } MathExpression * math_array_argument_expression_new(MathEquation *eq, const char *name, int *err) { MathExpression *exp; int i; exp = math_expression_new(MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT, eq, err); if (exp == NULL) { return NULL; } i = math_equation_add_array(eq, name); if (i < 0) { *err = MATH_ERROR_MEMORY; math_expression_free(exp); return NULL; } exp->u.array.index = i; return exp; } static int check_argument(struct math_function_parameter *fprm, int argc, MathExpression **argv) { int i; for (i = 0; i < argc; i++) { if (fprm->arg_type && i < fprm->argc && fprm->arg_type[i] == MATH_FUNCTION_ARG_TYPE_ARRAY) { if (argv[i]->type != MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT) { return 1; } } else if (argv[i]->type == MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT) { return 1; } } return 0; } MathExpression * math_func_call_expression_new(MathEquation *eq, struct math_function_parameter *fprm, int argc, MathExpression **argv, int pos_id, int *err) { MathExpression *exp; MathFunctionArgument *buf; if (check_argument(fprm, argc, argv)) { return NULL; } buf = NULL; if (argc > 0) { buf = g_malloc(sizeof(*buf) * argc); if (buf == NULL) { return NULL; } } exp = math_expression_new(MATH_EXPRESSION_TYPE_FUNC_CALL, eq, err); if (exp == NULL) { g_free(buf); return NULL; } exp->u.func_call.argv = argv; exp->u.func_call.argc = argc; exp->u.func_call.buf = buf; exp->u.func_call.pos_id = pos_id; exp->u.func_call.fprm = fprm; return exp; } MathExpression * math_binary_expression_new(enum MATH_EXPRESSION_TYPE type, MathEquation *eq, MathExpression *left, MathExpression *right, int *err) { MathExpression *exp; exp = math_expression_new(type, eq, err); if (exp == NULL) return NULL; exp->u.bin.left = left; exp->u.bin.right = right; return exp; } MathExpression * math_assign_expression_new(enum MATH_EXPRESSION_TYPE type, MathEquation *eq, MathExpression *left, MathExpression *right, enum MATH_OPERATOR_TYPE op, int *err) { MathExpression *exp; exp = math_expression_new(type, eq, err); if (exp == NULL) return NULL; exp->u.assign.op = op; exp->u.assign.left = left; exp->u.assign.right = right; return exp; } MathExpression * math_unary_expression_new(enum MATH_EXPRESSION_TYPE type, MathEquation *eq, MathExpression *operand, int *err) { MathExpression *exp; exp = math_expression_new(type, eq, err); if (exp == NULL) return NULL; exp->u.unary.operand = operand; return exp; } MathExpression * math_double_expression_new(MathEquation *eq, const MathValue *val, int *err) { MathExpression *exp; exp = math_expression_new(MATH_EXPRESSION_TYPE_DOBLE, eq, err); if (exp == NULL) return NULL; exp->u.value = *val; return exp; } MathExpression * math_eoeq_expression_new(MathEquation *eq, int *err) { MathExpression *exp; exp = math_expression_new(MATH_EXPRESSION_TYPE_EOEQ, eq, err); return exp; } static void math_expression_free_sub(MathExpression *exp) { int i; if (exp == NULL) return; switch (exp->type) { case MATH_EXPRESSION_TYPE_OR: case MATH_EXPRESSION_TYPE_AND: case MATH_EXPRESSION_TYPE_EQ: case MATH_EXPRESSION_TYPE_NE: case MATH_EXPRESSION_TYPE_ADD: case MATH_EXPRESSION_TYPE_SUB: case MATH_EXPRESSION_TYPE_MUL: case MATH_EXPRESSION_TYPE_DIV: case MATH_EXPRESSION_TYPE_MOD: case MATH_EXPRESSION_TYPE_POW: case MATH_EXPRESSION_TYPE_GT: case MATH_EXPRESSION_TYPE_GE: case MATH_EXPRESSION_TYPE_LT: case MATH_EXPRESSION_TYPE_LE: math_expression_free(exp->u.bin.left); math_expression_free(exp->u.bin.right); break; case MATH_EXPRESSION_TYPE_ASSIGN: math_expression_free(exp->u.assign.left); math_expression_free(exp->u.assign.right); break; case MATH_EXPRESSION_TYPE_FUNC: math_expression_free(exp->u.func.exp); free_arg_list(exp->u.func.arg_list); break; case MATH_EXPRESSION_TYPE_CONST_DEF: math_expression_free(exp->u.const_def.operand); break; case MATH_EXPRESSION_TYPE_FUNC_CALL: for (i = 0; i < exp->u.func_call.argc; i++) { math_expression_free(exp->u.func_call.argv[i]); } g_free(exp->u.func_call.argv); g_free(exp->u.func_call.buf); break; case MATH_EXPRESSION_TYPE_MINUS: case MATH_EXPRESSION_TYPE_FACT: math_expression_free(exp->u.unary.operand); break; case MATH_EXPRESSION_TYPE_ARRAY: math_expression_free(exp->u.array.operand); break; case MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT: case MATH_EXPRESSION_TYPE_CONST: case MATH_EXPRESSION_TYPE_VARIABLE: break; case MATH_EXPRESSION_TYPE_DOBLE: case MATH_EXPRESSION_TYPE_PRM: case MATH_EXPRESSION_TYPE_EOEQ: break; } g_free(exp); } void math_expression_free(MathExpression *exp) { MathExpression *next; while (exp) { next = exp->next; math_expression_free_sub(exp); exp = next; } } static double Fact_data[] = { 1.000000000000000e+00, 1.000000000000000e+00, 2.000000000000000e+00, 6.000000000000000e+00, 2.400000000000000e+01, 1.200000000000000e+02, 7.200000000000000e+02, 5.040000000000000e+03, 4.032000000000000e+04, 3.628800000000000e+05, 3.628800000000000e+06, 3.991680000000000e+07, 4.790016000000000e+08, 6.227020800000000e+09, 8.717829120000000e+10, 1.307674368000000e+12, 2.092278988800000e+13, 3.556874280960000e+14, 6.402373705728000e+15, 1.216451004088320e+17, 2.432902008176640e+18, 5.109094217170944e+19, 1.124000727777608e+21, 2.585201673888498e+22, 6.204484017332394e+23, 1.551121004333099e+25, 4.032914611266057e+26, 1.088886945041835e+28, 3.048883446117139e+29, 8.841761993739702e+30, 2.652528598121911e+32, 8.222838654177922e+33, 2.631308369336935e+35, 8.683317618811886e+36, 2.952327990396042e+38, 1.033314796638615e+40, 3.719933267899013e+41, 1.376375309122635e+43, 5.230226174666011e+44, 2.039788208119744e+46, 8.159152832478977e+47, 3.345252661316381e+49, 1.405006117752880e+51, 6.041526306337383e+52, 2.658271574788449e+54, 1.196222208654802e+56, 5.502622159812089e+57, 2.586232415111682e+59, 1.241391559253607e+61, 6.082818640342675e+62, 3.041409320171338e+64, 1.551118753287382e+66, 8.065817517094388e+67, 4.274883284060025e+69, 2.308436973392414e+71, 1.269640335365828e+73, 7.109985878048635e+74, 4.052691950487721e+76, 2.350561331282878e+78, 1.386831185456898e+80, 8.320987112741390e+81, 5.075802138772248e+83, 3.146997326038794e+85, 1.982608315404440e+87, 1.268869321858842e+89, 8.247650592082472e+90, 5.443449390774431e+92, 3.647111091818868e+94, 2.480035542436831e+96, 1.711224524281413e+98, 1.197857166996989e+100, 8.504785885678623e+101, 6.123445837688608e+103, 4.470115461512684e+105, 3.307885441519386e+107, 2.480914081139540e+109, 1.885494701666050e+111, 1.451830920282859e+113, 1.132428117820630e+115, 8.946182130782976e+116, 7.156945704626381e+118, 5.797126020747368e+120, 4.753643337012842e+122, 3.945523969720659e+124, 3.314240134565353e+126, 2.817104114380550e+128, 2.422709538367273e+130, 2.107757298379528e+132, 1.854826422573984e+134, 1.650795516090846e+136, 1.485715964481762e+138, 1.352001527678403e+140, 1.243841405464131e+142, 1.156772507081642e+144, 1.087366156656743e+146, 1.032997848823906e+148, 9.916779348709496e+149, 9.619275968248212e+151, 9.426890448883248e+153, 9.332621544394415e+155, 9.332621544394415e+157, 9.425947759838360e+159, 9.614466715035127e+161, 9.902900716486180e+163, 1.029901674514563e+166, 1.081396758240291e+168, 1.146280563734708e+170, 1.226520203196138e+172, 1.324641819451829e+174, 1.443859583202494e+176, 1.588245541522743e+178, 1.762952551090245e+180, 1.974506857221074e+182, 2.231192748659814e+184, 2.543559733472188e+186, 2.925093693493016e+188, 3.393108684451898e+190, 3.969937160808721e+192, 4.684525849754291e+194, 5.574585761207606e+196, 6.689502913449127e+198, 8.094298525273444e+200, 9.875044200833601e+202, 1.214630436702533e+205, 1.506141741511141e+207, 1.882677176888926e+209, 2.372173242880047e+211, 3.012660018457659e+213, 3.856204823625804e+215, 4.974504222477287e+217, 6.466855489220474e+219, 8.471580690878821e+221, 1.118248651196004e+224, 1.487270706090686e+226, 1.992942746161519e+228, 2.690472707318050e+230, 3.659042881952549e+232, 5.012888748274992e+234, 6.917786472619489e+236, 9.615723196941089e+238, 1.346201247571753e+241, 1.898143759076171e+243, 2.695364137888163e+245, 3.854370717180073e+247, 5.550293832739304e+249, 8.047926057471992e+251, 1.174997204390911e+254, 1.727245890454639e+256, 2.556323917872865e+258, 3.808922637630570e+260, 5.713383956445855e+262, 8.627209774233240e+264, 1.311335885683452e+267, 2.006343905095682e+269, 3.089769613847351e+271, 4.789142901463394e+273, 7.471062926282894e+275, 1.172956879426414e+278, 1.853271869493735e+280, 2.946702272495038e+282, 4.714723635992062e+284, 7.590705053947219e+286, 1.229694218739449e+289, 2.004401576545303e+291, 3.287218585534296e+293, 5.423910666131589e+295, 9.003691705778438e+297, 1.503616514864999e+300, 2.526075744973198e+302, 4.269068009004705e+304, }; #define FACT_MAX (sizeof(Fact_data) / sizeof(*Fact_data)) static double factorial(unsigned int n) { if (n < FACT_MAX) { return Fact_data[n]; } return HUGE_VAL; } static int call_func(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *val) { int i, n; enum MATH_FUNCTION_ARG_TYPE *type; type = exp->fprm->arg_type; if (exp->fprm->argc > 0 && exp->argc != exp->fprm->argc) { val->type = MATH_VALUE_ERROR; return 1; } n = exp->argc; for (i = 0; i < n; i++) { if (type){ switch (type[i]) { case MATH_FUNCTION_ARG_TYPE_ARRAY: if (exp->argv[i]->type != MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT) { val->type = MATH_VALUE_ERROR; return 1; } exp->buf[i].idx = exp->argv[i]->u.array.index; break; case MATH_FUNCTION_ARG_TYPE_PROC: if (exp->argv[i]->type == MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT) { val->type = MATH_VALUE_ERROR; return 1; } exp->buf[i].exp = exp->argv[i]; break; case MATH_FUNCTION_ARG_TYPE_DOUBLE: if (exp->argv[i]->type == MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT) { val->type = MATH_VALUE_ERROR; return 1; } if (CALC_EXPRESSION(exp->argv[i], exp->buf[i].val)) return 1; break; } } else if (CALC_EXPRESSION(exp->argv[i], exp->buf[i].val)) { return 1; } } return exp->fprm->func(exp, eq, val); } static MathExpression * reduce_expression(MathExpression *exp, int *err) { #if 1 MathValue val; int r; MathExpression *rexp; r = math_expression_calculate(exp, &val); if (r) { math_expression_free(exp); *err = MATH_ERROR_CALCULATION; return NULL; } rexp = math_double_expression_new(exp->equation, &val, NULL); math_expression_free(exp); return rexp; #else return exp; #endif } static MathExpression * optimize_usr_function(MathExpression *exp,int *err) { MathExpression *new_exp; new_exp = math_expression_new(MATH_EXPRESSION_TYPE_FUNC, exp->equation, NULL); if (new_exp == NULL) return NULL; new_exp->u.func.argc = exp->u.func.argc; new_exp->u.func.local_num = exp->u.func.local_num; new_exp->u.func.local_array_num = exp->u.func.local_array_num; new_exp->u.func.exp = math_expression_optimize(exp->u.func.exp, err); new_exp->u.func.fprm = exp->u.func.fprm; new_exp->u.func.arg_list = NULL; if (new_exp->u.func.exp == NULL) { math_expression_free(new_exp); return NULL; } return new_exp; } static void free_arg_array(int argc, MathExpression **argv) { int i; for (i = 0; i < argc; i++) { math_expression_free(argv[i]); } g_free(argv); } static MathExpression * optimize_func_call(MathExpression *exp, int *err) { MathExpression **argv, *new_exp; int can_reduce, i, error; can_reduce = 1; argv = g_malloc0(exp->u.func_call.argc * sizeof(*argv)); if (argv == NULL) { return NULL; } error = 0; for (i = 0; i < exp->u.func_call.argc; i++) { argv[i] = optimize(exp->u.func_call.argv[i], err); if (argv[i] == NULL) { error = 1; } else if (argv[i]->type != MATH_EXPRESSION_TYPE_DOBLE) { can_reduce = 0; } } if (error) { free_arg_array(exp->u.func_call.argc, argv); return NULL; } new_exp = math_func_call_expression_new(exp->equation, exp->u.func_call.fprm, exp->u.func_call.argc, argv, exp->u.func_call.pos_id, &error); if (new_exp == NULL) { free_arg_array(exp->u.func_call.argc, argv); return NULL; } if (can_reduce && ! exp->u.func_call.fprm->side_effect) { new_exp = reduce_expression(new_exp, err); } return new_exp; } static MathExpression * optimize_or_expression(MathExpression *exp, int *err) { MathExpression *left, *right, *new_exp; new_exp = math_binary_expression_new(exp->type, exp->equation, NULL, NULL, err); if (new_exp == NULL) return NULL; left = optimize(exp->u.bin.left, err); new_exp->u.bin.left = left; if (left == NULL) { math_expression_free(new_exp); return NULL; } right = optimize(exp->u.bin.right, err); new_exp->u.bin.right = right; if (right == NULL) { math_expression_free(new_exp); return NULL; } if (left->type == MATH_EXPRESSION_TYPE_DOBLE && right->type == MATH_EXPRESSION_TYPE_DOBLE) { new_exp = reduce_expression(new_exp, err); } else if (left->type == MATH_EXPRESSION_TYPE_DOBLE) { if (left->u.value.val == 0.0) { math_expression_free(new_exp); new_exp = right; } else { new_exp->u.bin.left = NULL; math_expression_free(new_exp); new_exp = left; } } return new_exp; } static MathExpression * optimize_and_expression(MathExpression *exp, int *err) { MathExpression *left, *right, *new_exp; new_exp = math_binary_expression_new(exp->type, exp->equation, NULL, NULL, err); if (new_exp == NULL) return NULL; left = optimize(exp->u.bin.left, err); new_exp->u.bin.left = left; if (left == NULL) { math_expression_free(new_exp); return NULL; } right = optimize(exp->u.bin.right, err); new_exp->u.bin.right = right; if (right == NULL) { math_expression_free(new_exp); return NULL; } if (left->type == MATH_EXPRESSION_TYPE_DOBLE && right->type == MATH_EXPRESSION_TYPE_DOBLE) { new_exp = reduce_expression(new_exp, err); } else if (left->type == MATH_EXPRESSION_TYPE_DOBLE) { if (left->u.value.val == 0.0) { new_exp->u.bin.left = NULL; math_expression_free(new_exp); new_exp = left; } else { new_exp->u.bin.right = NULL; math_expression_free(new_exp); new_exp = right; } } return new_exp; } static MathExpression * optimize_bin_expression(MathExpression *exp, int *err) { MathExpression *left, *right, *new_exp; new_exp = math_binary_expression_new(exp->type, exp->equation, NULL, NULL, err); if (new_exp == NULL) return NULL; left = optimize(exp->u.bin.left, err); new_exp->u.bin.left = left; if (left == NULL) { math_expression_free(new_exp); return NULL; } right = optimize(exp->u.bin.right, err); new_exp->u.bin.right = right; if (right == NULL) { math_expression_free(new_exp); return NULL; } if (left->type == MATH_EXPRESSION_TYPE_DOBLE && right->type == MATH_EXPRESSION_TYPE_DOBLE) { new_exp = reduce_expression(new_exp, err); } return new_exp; } static MathExpression * optimize_assign_expression(MathExpression *exp, int *err) { MathExpression *left, *right, *new_exp; new_exp = math_assign_expression_new(exp->type, exp->equation, NULL, NULL, exp->u.assign.op, err); if (new_exp == NULL) return NULL; left = optimize(exp->u.assign.left, err); new_exp->u.assign.left = left; if (left == NULL) { math_expression_free(new_exp); return NULL; } right = optimize(exp->u.assign.right, err); new_exp->u.assign.right = right; if (right == NULL) { math_expression_free(new_exp); return NULL; } if (left->type == MATH_EXPRESSION_TYPE_DOBLE && right->type == MATH_EXPRESSION_TYPE_DOBLE) { new_exp = reduce_expression(new_exp, err); } return new_exp; } static MathExpression * optimize_mul_expression(MathExpression *exp, int *err) { MathExpression *left, *right, *new_exp; new_exp = math_binary_expression_new(exp->type, exp->equation, NULL, NULL, err); if (new_exp == NULL) return NULL; left = optimize(exp->u.bin.left, err); new_exp->u.bin.left = left; if (left == NULL) { math_expression_free(new_exp); return NULL; } right = optimize(exp->u.bin.right, err); new_exp->u.bin.right = right; if (right == NULL) { math_expression_free(new_exp); return NULL; } if (left->type == MATH_EXPRESSION_TYPE_DOBLE && right->type == MATH_EXPRESSION_TYPE_DOBLE) { new_exp = reduce_expression(new_exp, err); } else if (left->type == MATH_EXPRESSION_TYPE_DOBLE && left->u.value.val == 1.0) { new_exp->u.bin.right = NULL; math_expression_free(new_exp); new_exp = right; } else if (right->type == MATH_EXPRESSION_TYPE_DOBLE && right->u.value.val == 1.0) { new_exp->u.bin.left = NULL; math_expression_free(new_exp); new_exp = left; } return new_exp; } static MathExpression * optimize_div_expression(MathExpression *exp, int *err) { MathExpression *left, *right, *new_exp; new_exp = math_binary_expression_new(exp->type, exp->equation, NULL, NULL, err); if (new_exp == NULL) return NULL; left = optimize(exp->u.bin.left, err); new_exp->u.bin.left = left; if (left == NULL) { math_expression_free(new_exp); return NULL; } right = optimize(exp->u.bin.right, err); new_exp->u.bin.right = right; if (right == NULL) { math_expression_free(new_exp); return NULL; } if (left->type == MATH_EXPRESSION_TYPE_DOBLE && right->type == MATH_EXPRESSION_TYPE_DOBLE) { new_exp = reduce_expression(new_exp, err); } else if (right->type == MATH_EXPRESSION_TYPE_DOBLE) { if (right->u.value.val == 1.0) { new_exp->u.bin.left = NULL; math_expression_free(new_exp); new_exp = left; } else if (right->u.value.val == 0.0) { right->u.value.val = right->u.value.val; new_exp->type = MATH_EXPRESSION_TYPE_DIV; } else { right->u.value.val = 1.0 / right->u.value.val; new_exp->type = MATH_EXPRESSION_TYPE_MUL; } } return new_exp; } static MathExpression * optimize_una_expression(MathExpression *exp, int *err) { MathExpression *operand, *new_exp; new_exp = math_unary_expression_new(exp->type, exp->equation, NULL, err); if (new_exp == NULL) return NULL; operand = optimize(exp->u.unary.operand, err); new_exp->u.unary.operand = operand; if (operand == NULL) { math_expression_free(new_exp); return NULL; } if (operand->type == MATH_EXPRESSION_TYPE_DOBLE) { new_exp = reduce_expression(new_exp, err); } return new_exp; } static MathExpression * optimize_array_expression(MathExpression *exp, int *err) { MathExpression *operand, *new_exp; new_exp = math_expression_new(exp->type, exp->equation, err); if (new_exp == NULL) return NULL; operand = optimize(exp->u.array.operand, err); new_exp->u.array.operand = operand; new_exp->u.array.index = exp->u.array.index; if (operand == NULL) { math_expression_free(new_exp); return NULL; } return new_exp; } static MathExpression * optimize(MathExpression *exp, int *err) { MathExpression *new_exp; switch (exp->type) { case MATH_EXPRESSION_TYPE_OR: new_exp = optimize_or_expression(exp, err); break; case MATH_EXPRESSION_TYPE_AND: new_exp = optimize_and_expression(exp, err); break; case MATH_EXPRESSION_TYPE_EQ: case MATH_EXPRESSION_TYPE_NE: case MATH_EXPRESSION_TYPE_ADD: case MATH_EXPRESSION_TYPE_SUB: case MATH_EXPRESSION_TYPE_MOD: case MATH_EXPRESSION_TYPE_POW: case MATH_EXPRESSION_TYPE_GT: case MATH_EXPRESSION_TYPE_GE: case MATH_EXPRESSION_TYPE_LT: case MATH_EXPRESSION_TYPE_LE: new_exp = optimize_bin_expression(exp, err); break; case MATH_EXPRESSION_TYPE_ASSIGN: new_exp = optimize_assign_expression(exp, err); break; case MATH_EXPRESSION_TYPE_MUL: new_exp = optimize_mul_expression(exp, err); break; case MATH_EXPRESSION_TYPE_DIV: new_exp = optimize_div_expression(exp, err); break; case MATH_EXPRESSION_TYPE_MINUS: case MATH_EXPRESSION_TYPE_FACT: new_exp = optimize_una_expression(exp, err); break; case MATH_EXPRESSION_TYPE_FUNC_CALL: new_exp = optimize_func_call(exp, err); break; case MATH_EXPRESSION_TYPE_FUNC: new_exp = optimize_usr_function(exp, err); break; case MATH_EXPRESSION_TYPE_DOBLE: new_exp = math_double_expression_new(exp->equation, &exp->u.value, err); break; case MATH_EXPRESSION_TYPE_CONST: new_exp = math_expression_new(exp->type, exp->equation, err); if (new_exp) { new_exp->u.index = exp->u.index; new_exp = reduce_expression(new_exp, err); } break; case MATH_EXPRESSION_TYPE_VARIABLE: new_exp = math_expression_new(exp->type, exp->equation, err); if (new_exp) new_exp->u.index = exp->u.index; break; case MATH_EXPRESSION_TYPE_PRM: new_exp = math_expression_new(exp->type, exp->equation, err); if (new_exp) { new_exp->u.prm.type = exp->u.prm.type; new_exp->u.prm.index = exp->u.prm.index; new_exp->u.prm.prm = exp->u.prm.prm; new_exp->u.prm.id = exp->u.prm.id; } break; case MATH_EXPRESSION_TYPE_EOEQ: new_exp = math_eoeq_expression_new(exp->equation, err); break; case MATH_EXPRESSION_TYPE_ARRAY: new_exp = optimize_array_expression(exp, err); break; case MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT: new_exp = math_expression_new(exp->type, exp->equation, err); if (new_exp) { new_exp->u.array.index = exp->u.array.index; } break; default: new_exp = NULL; /* never reached */ } return new_exp; } MathExpression * math_expression_optimize(MathExpression *exp, int *err) { MathExpression *prev, *rexp, *top; *err = MATH_ERROR_NONE; top = prev = NULL; while (exp) { rexp = optimize(exp, err); if (rexp == NULL || *err != MATH_ERROR_NONE) { math_expression_free(top); return NULL; } if (prev) { prev->next = rexp; } if (top == NULL) { top = rexp; } prev = rexp; exp = exp->next; } return top; } static int set_val_to_array(MathExpression *exp, MathValue *val, enum MATH_OPERATOR_TYPE op) { MathValue v; int i; if (CALC_EXPRESSION(exp->u.array.operand, v)) { return 1; } i = v.val; if (op == MATH_OPERATOR_TYPE_ASSIGN) { if (math_equation_set_array_val(exp->equation, exp->u.array.index, i, val)) { return 1; } } else { if (math_equation_get_array_val(exp->equation, exp->u.array.index, i, &v)) { return 1; } switch (op) { case MATH_OPERATOR_TYPE_POW_ASSIGN: v.val = pow(v.val, val->val); break; case MATH_OPERATOR_TYPE_MOD_ASSIGN: v.val = fmod(v.val, val->val); break; case MATH_OPERATOR_TYPE_DIV_ASSIGN: v.val /= val->val; break; case MATH_OPERATOR_TYPE_MUL_ASSIGN: v.val *= val->val; break; case MATH_OPERATOR_TYPE_PLUS_ASSIGN: v.val += val->val; break; case MATH_OPERATOR_TYPE_MINUS_ASSIGN: v.val -= val->val; break; default: /* never reached */ v.val = 0; } if (math_equation_set_array_val(exp->equation, exp->u.array.index, i, &v)) { return 1; } *val = v; } return 0; } #define MATH_CHECK_VAL(rval, v) if (v.type != MATH_VALUE_NORMAL) { \ *rval = v; \ break; \ } static int calc(MathExpression *exp, MathValue *val) { MathValue left, right, operand; val->type = MATH_VALUE_NORMAL; switch (exp->type) { case MATH_EXPRESSION_TYPE_OR: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (left.type == MATH_VALUE_NORMAL && left.val) { *val = left; break; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } *val = right; break; case MATH_EXPRESSION_TYPE_AND: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (left.type != MATH_VALUE_NORMAL || ! left.val) { *val = left; break; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } *val = right; break; case MATH_EXPRESSION_TYPE_EQ: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = (left.val == right.val); break; case MATH_EXPRESSION_TYPE_NE: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = (left.val != right.val); break; case MATH_EXPRESSION_TYPE_ADD: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = left.val + right.val; break; case MATH_EXPRESSION_TYPE_SUB: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = left.val - right.val; break; case MATH_EXPRESSION_TYPE_MUL: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = left.val * right.val; break; case MATH_EXPRESSION_TYPE_DIV: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); if (right.val == 0.0) { if (left.val < 0) { val->val = - HUGE_VAL; } else if (left.val > 0) { val->val = HUGE_VAL; } else { val->val = 0; } val->type = MATH_VALUE_NAN; } else { val->val = left.val / right.val; } break; case MATH_EXPRESSION_TYPE_MOD: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); if (right.val == 0.0) { return 1; } val->val = fmod(left.val, right.val); break; case MATH_EXPRESSION_TYPE_POW: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = pow(left.val, right.val); break; case MATH_EXPRESSION_TYPE_GT: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = (left.val > right.val); break; case MATH_EXPRESSION_TYPE_GE: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = (left.val >= right.val); break; case MATH_EXPRESSION_TYPE_LT: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = (left.val < right.val); break; case MATH_EXPRESSION_TYPE_LE: if (CALC_EXPRESSION(exp->u.bin.left, left)) { return 1; } if (CALC_EXPRESSION(exp->u.bin.right, right)) { return 1; } MATH_CHECK_VAL(val, left); MATH_CHECK_VAL(val, right); val->val = (left.val <= right.val); break; case MATH_EXPRESSION_TYPE_MINUS: if (CALC_EXPRESSION(exp->u.unary.operand, operand)) { return 1; } MATH_CHECK_VAL(val, operand); val->val = - operand.val; break; case MATH_EXPRESSION_TYPE_FACT: if (CALC_EXPRESSION(exp->u.unary.operand, operand)) { return 1; } MATH_CHECK_VAL(val, operand); if (operand.val < 0 || operand.val >= FACT_MAX) { return 1; } val->val = factorial(operand.val); break; case MATH_EXPRESSION_TYPE_FUNC_CALL: if (call_func(&exp->u.func_call, exp->equation, val)) return 1; break; case MATH_EXPRESSION_TYPE_DOBLE: *val = exp->u.value; break; case MATH_EXPRESSION_TYPE_CONST: if (math_equation_get_const(exp->equation, exp->u.index, val)) return 1; break; case MATH_EXPRESSION_TYPE_VARIABLE: if (math_equation_get_var(exp->equation, exp->u.index, val)) return 1; break; case MATH_EXPRESSION_TYPE_ASSIGN: if (CALC_EXPRESSION(exp->u.assign.right, right)) { return 1; } if (exp->u.assign.left->type == MATH_EXPRESSION_TYPE_VARIABLE) { if (math_equation_set_var(exp->equation, exp->u.assign.left->u.index, &right)) { return 1; } } else { if (set_val_to_array(exp->u.assign.left, &right, exp->u.assign.op)) { return 1; } } *val = right; break; case MATH_EXPRESSION_TYPE_ARRAY: if (CALC_EXPRESSION(exp->u.array.operand, operand)) { return 1; } if (math_equation_get_array_val(exp->equation, exp->u.array.index, operand.val, val)) { return 1; } break; case MATH_EXPRESSION_TYPE_PRM: if (exp->u.prm.prm->data == NULL) { return 1; } *val = exp->u.prm.prm->data[exp->u.prm.index]; break; case MATH_EXPRESSION_TYPE_EOEQ: val->val = 0; break; case MATH_EXPRESSION_TYPE_ARRAY_ARGUMENT: return 1; case MATH_EXPRESSION_TYPE_FUNC: case MATH_EXPRESSION_TYPE_CONST_DEF: /* never reached */ val->val = 0; break; } return 0; } int math_expression_calculate(MathExpression *exp, MathValue *val) { MathExpression *ptr; MathValue v; if (exp == NULL) { return 1; } ptr = exp; while (ptr) { v.val = 0; v.type = MATH_VALUE_NORMAL; if (calc(ptr, &v)) { val->val = v.val; val->type = MATH_VALUE_ERROR; return 1; } ptr = ptr->next; } *val = v; return 0; } ngraph-gtk-6.06.13/src/math/parse_bin_expression.h0000644000175000017500000001263212241111705016762 00000000000000/* * $Id: parse_bin_expression.h,v 1.3 2009-11-10 04:12:20 hito Exp $ * */ #define CREATE_PARSER_FUNC(a, b, c, d) parse_ ## a ## _expression(const char **str, MathEquation *eq, int *err) \ {\ struct math_token *token;\ MathExpression *left, *right, *exp;\ \ exp = parse_ ## b ## _expression(str, eq, err); \ if (exp == NULL) {\ return NULL;\ }\ \ for (;;) {\ token = my_get_token(str);\ if (token == NULL) {\ *err = MATH_ERROR_MEMORY;\ math_expression_free(exp);\ return NULL;\ }\ \ switch (token->type) {\ case MATH_TOKEN_TYPE_OPERATOR:\ switch (token->data.op) {\ case c:\ right = parse_ ## b ## _expression(str, eq, err); \ if (right == NULL) {\ math_expression_free(exp);\ math_scanner_free_token(token);\ return NULL;\ }\ left = exp;\ math_scanner_free_token(token);\ exp = math_binary_expression_new(d, eq, left, right, err); \ if (exp == NULL) { \ math_expression_free(left); \ math_expression_free(right); \ return NULL; \ } \ break;\ default:\ unget_token(token);\ goto End;\ }\ break;\ default:\ unget_token(token);\ goto End;\ }\ }\ \ End:\ return exp;\ } #define CREATE_PARSER2_FUNC(a, b, c, d, e, f) parse_ ## a ## _expression(const char **str, MathEquation *eq, int *err) \ {\ struct math_token *token;\ MathExpression *left, *right, *exp;\ enum MATH_EXPRESSION_TYPE type;\ \ exp = parse_ ## b ## _expression(str, eq, err); \ if (exp == NULL) {\ return NULL;\ }\ \ for (;;) {\ token = my_get_token(str);\ if (token == NULL) {\ *err = MATH_ERROR_MEMORY;\ math_expression_free(exp);\ return NULL;\ }\ \ switch (token->type) {\ case MATH_TOKEN_TYPE_OPERATOR:\ switch (token->data.op) {\ case c:\ case e:\ right = parse_ ## b ## _expression(str, eq, err); \ if (right == NULL) {\ math_expression_free(exp);\ math_scanner_free_token(token);\ return NULL;\ }\ if (token->data.op == c) {\ type = d;\ } else if (token->data.op == e) {\ type = f;\ } else {\ type = 0; /* never reached */\ }\ left = exp;\ math_scanner_free_token(token);\ exp = math_binary_expression_new(type, eq, left, right, err); \ if (exp == NULL) {\ math_expression_free(left);\ math_expression_free(right);\ return NULL;\ }\ break;\ default:\ unget_token(token);\ goto End;\ }\ break;\ default:\ unget_token(token);\ goto End;\ }\ }\ \ End:\ return exp;\ } #define CREATE_PARSER3_FUNC(a, b, c, d, e, f, g, h) parse_ ## a ## _expression(const char **str, MathEquation *eq, int *err) \ {\ struct math_token *token;\ MathExpression *left, *right, *exp;\ enum MATH_EXPRESSION_TYPE type;\ \ exp = parse_ ## b ## _expression(str, eq, err); \ if (exp == NULL) {\ return NULL;\ }\ \ for (;;) {\ token = my_get_token(str);\ if (token == NULL) {\ *err = MATH_ERROR_MEMORY;\ math_expression_free(exp);\ return NULL;\ }\ \ switch (token->type) {\ case MATH_TOKEN_TYPE_OPERATOR:\ switch (token->data.op) {\ case c:\ case e:\ case g:\ right = parse_ ## b ## _expression(str, eq, err); \ if (right == NULL) {\ math_expression_free(exp);\ math_scanner_free_token(token);\ return NULL;\ }\ if (token->data.op == c) {\ type = d;\ } else if (token->data.op == e) {\ type = f;\ } else if (token->data.op == g) {\ type = h;\ } else {\ type = 0; /* never reached */\ }\ left = exp;\ math_scanner_free_token(token); \ exp = math_binary_expression_new(type, eq, left, right, err); \ if (exp == NULL) { \ math_expression_free(left);\ math_expression_free(right);\ return NULL;\ }\ break;\ default:\ unget_token(token);\ goto End;\ }\ break;\ default:\ unget_token(token);\ goto End;\ }\ }\ \ End:\ return exp;\ } #define CREATE_PARSER4_FUNC(a, b, c, d, e, f, g, h, i, j) parse_ ## a ## _expression(const char **str, MathEquation *eq, int *err) \ {\ struct math_token *token;\ MathExpression *left, *right, *exp;\ enum MATH_EXPRESSION_TYPE type;\ \ exp = parse_ ## b ## _expression(str, eq, err); \ if (exp == NULL) {\ return NULL;\ }\ \ for (;;) {\ token = my_get_token(str);\ if (token == NULL) {\ *err = MATH_ERROR_MEMORY;\ math_expression_free(exp);\ return NULL;\ }\ \ switch (token->type) {\ case MATH_TOKEN_TYPE_OPERATOR:\ switch (token->data.op) {\ case c:\ case e:\ case g:\ case i:\ right = parse_ ## b ## _expression(str, eq, err); \ if (right == NULL) {\ math_expression_free(exp);\ math_scanner_free_token(token);\ return NULL;\ }\ if (token->data.op == c) {\ type = d;\ } else if (token->data.op == e) {\ type = f;\ } else if (token->data.op == g) {\ type = h;\ } else if (token->data.op == i) {\ type = j;\ } else {\ type = 0; /* never reached */\ }\ left = exp;\ math_scanner_free_token(token); \ exp = math_binary_expression_new(type, eq, left, right, err); \ if (exp == NULL) {\ math_expression_free(left);\ math_expression_free(right);\ return NULL;\ }\ break;\ default:\ unget_token(token);\ goto End;\ }\ break;\ default:\ unget_token(token);\ goto End;\ }\ }\ \ End:\ return exp;\ } ngraph-gtk-6.06.13/src/math/math_operator.h.in0000644000175000017500000000050412241111705016005 00000000000000- MINUS + PLUS * MUL / DIV \ MOD ^ POW ! FACT : ASSIGN := ASSIGN > GT < LT >: GE >= GE <: LE <= LE :: EQ == EQ !: NE != NE || OR && AND -: MINUS_ASSIGN -= MINUS_ASSIGN +: PLUS_ASSIGN += PLUS_ASSIGN *: MUL_ASSIGN *= MUL_ASSIGN /: DIV_ASSIGN /= DIV_ASSIGN \: MOD_ASSIGN \= MOD_ASSIGN ^: POW_ASSIGN ^= POW_ASSIGN = EOEQ ; EOEQ ngraph-gtk-6.06.13/src/math/math_constant.h.in0000644000175000017500000000035012241111705016002 00000000000000E 2.71828182845904523536 MATH_VALUE_NORMAL PI 3.14159265358979323846 MATH_VALUE_NORMAL EULER 0.57721566490153286061 MATH_VALUE_NORMAL NAN 0 MATH_VALUE_NAN UNDEF 0 MATH_VALUE_UNDEF CONT 0 MATH_VALUE_CONT BREAK 0 MATH_VALUE_BREAK ngraph-gtk-6.06.13/src/math/math_basic_function.c0000644000175000017500000014107612241111705016540 00000000000000/* * $Id: math_basic_function.c,v 1.14 2010-03-04 08:30:17 hito Exp $ * */ #include "config.h" #include #include #include #include #include #ifdef HAVE_LIBGSL #include #include #endif #include "ntime.h" #include "math_equation.h" #include "math_function.h" #define MPI 3.14159265358979323846 #define MEXP1 2.71828182845905 #define MEULER 0.57721566490153286 #define MATH_CHECK_ARG(rval, v) if (v.val.type != MATH_VALUE_NORMAL) { \ *rval = v.val; \ return 0; \ } #define MATH_FUNCTION_MEMORY_NUM 65536 static MathValue *Memory = NULL; static int compare_double_with_prec(long double a, long double b, int prec); int math_func_time(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { rval->val = time(NULL); return 0; } int math_func_atanh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double v; MATH_CHECK_ARG(rval, exp->buf[0]); v = exp->buf[0].val.val; if (v > 1) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = atanh(v); return 0; } int math_func_asinh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = asinh(exp->buf[0].val.val); return 0; } int math_func_acosh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double v; MATH_CHECK_ARG(rval, exp->buf[0]); v = exp->buf[0].val.val; if (v < 1) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = acosh(v); return 0; } int math_func_gauss(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int val; MATH_CHECK_ARG(rval, exp->buf[0]); if (exp->buf[0].val.val >= 0) { val = (int) (exp->buf[0].val.val); } else if (exp->buf[0].val.val - (int) exp->buf[0].val.val == 0) { val = (int) exp->buf[0].val.val; } else { val = (int) exp->buf[0].val.val - 1; } rval->val = (double) val; return 0; } int math_func_round(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double val; MATH_CHECK_ARG(rval, exp->buf[0]); if (fabs(exp->buf[0].val.val - (int) exp->buf[0].val.val) >= 0.5) { if (exp->buf[0].val.val >= 0) { val = exp->buf[0].val.val - (exp->buf[0].val.val - (int) exp->buf[0].val.val) + 1; } else { val = exp->buf[0].val.val - (exp->buf[0].val.val - (int) exp->buf[0].val.val) - 1; } } else { val = exp->buf[0].val.val - (exp->buf[0].val.val - (int) exp->buf[0].val.val); } rval->val = val; return 0; } int math_func_tanh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = tanh(exp->buf[0].val.val); return 0; } int math_func_sign(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = (exp->buf[0].val.val < 0) ? -1 : 1; return 0; } int math_func_frac(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = exp->buf[0].val.val - (int) exp->buf[0].val.val; return 0; } int math_func_cosh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = cosh(exp->buf[0].val.val); return 0; } int math_func_sqrt(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double v; MATH_CHECK_ARG(rval, exp->buf[0]); v = exp->buf[0].val.val; if (v < 0) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = sqrt(v); return 0; } int math_func_sinh(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = sinh(exp->buf[0].val.val); return 0; } int math_func_atan(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = atan(exp->buf[0].val.val); return 0; } int math_func_acos(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double v; MATH_CHECK_ARG(rval, exp->buf[0]); v = exp->buf[0].val.val; if (v < -1 || v > 1) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = acos(v); return 0; } int math_func_asin(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double v; MATH_CHECK_ARG(rval, exp->buf[0]); v = exp->buf[0].val.val; if (v < -1 || v > 1) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = asin(v); return 0; } int math_func_log(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double v; MATH_CHECK_ARG(rval, exp->buf[0]); v = exp->buf[0].val.val; if (v <= 0) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = log10(v); return 0; } int math_func_tan(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = tan(exp->buf[0].val.val); return 0; } int math_func_sin(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = sin(exp->buf[0].val.val); return 0; } int math_func_cos(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = cos(exp->buf[0].val.val); return 0; } int math_func_abs(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = fabs(exp->buf[0].val.val); return 0; } int math_func_exp(MathFunctionCallExpression *expl, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, expl->buf[0]); rval->val = exp(expl->buf[0].val.val); return 0; } int math_func_int(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = (int) exp->buf[0].val.val; return 0; } int math_func_max(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double max; int i; if (exp->argc < 1) { rval->val = 0; return 0; } max = exp->buf[0].val.val; for (i = 1; i < exp->argc; i++) { MATH_CHECK_ARG(rval, exp->buf[i]); if (exp->buf[i].val.val > max) { max = exp->buf[i].val.val; } } rval->val = max; return 0; } int math_func_min(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double min; int i; if (exp->argc < 1) { rval->val = 0; return 0; } min = exp->buf[0].val.val; for (i = 1; i < exp->argc; i++) { MATH_CHECK_ARG(rval, exp->buf[i]); if (exp->buf[i].val.val < min) { min = exp->buf[i].val.val; } } rval->val = min; return 0; } int math_func_progn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { if (exp->argc < 1) { rval->val = 0; } else { *rval = exp->buf[exp->argc - 1].val; } return 0; } int math_func_prog2(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { if (exp->argc < 2) { rval->val = 0; } else { *rval = exp->buf[1].val; } return 0; } int math_func_prog1(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { if (exp->argc < 1) { rval->val = 0; } else { *rval = exp->buf[0].val; } return 0; } int math_func_sqr(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = exp->buf[0].val.val * exp->buf[0].val.val; return 0; } int math_func_ln(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double v; MATH_CHECK_ARG(rval, exp->buf[0]); v = exp->buf[0].val.val; if (v <= 0) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = log(v); return 0; } int math_func_theta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = (exp->buf[0].val.val >= 0) ? 1 : 0; return 0; } int math_func_delta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = (exp->buf[0].val.val == 0) ? 1 : 0; return 0; } #ifndef HAVE_LIBGSL static int gamma2(double x, double *val) { double m, s, x1, xx; unsigned int i; static double gammacoe[] = { -0.42278433509846714, -0.23309373642178674, 0.19109110138769151, -0.24552490005400017E-1, -0.17645244550144320E-1, 0.80232730222673465E-2, -0.80432977560424699E-3, -0.3608378162548E-3, 0.1455961421399E-3, -0.175458597517E-4, -0.25889950224E-5, 0.13385015466E-5, -0.2054743152E-6, -0.1595268E-9, 0.62756218E-8, -0.12736143E-8, 0.923397E-10, 0.120028E-10, -0.42202E-11 }; if (((x <= 0) && ((x - (int) x) == 0)) || (x > 57)) return -1; m = 1; if (1.5 < x) while (1.5 < x) { x -= 1; m *= x; } else if (x < 0.5) while (x < 0.5) { if (x <= 1E-300) return -1; m /= x; x++; } s = 1; xx = 1; x1 = x - 1; for (i = 0; i < sizeof(gammacoe) / sizeof(*gammacoe); i++) { xx *= x1; s += xx * gammacoe[i]; } s *= x; if (s == 0) return -1; *val = m / s; return 0; } static int exp1(double x, double *val) { double x2, xx, xx2, qexp1, qexp2; int i, n; static double xo[18] = { 3.3, 4.0, 4.8, 5.8, 7.1, 8.6, 10.4, 12.5, 15.2, 18.4, 22.2, 26.9, 32.5, 39.4, 47.6, 57.6, 69.7, 83.0 }; static double eipt[18] = { 44.85377247567375, 35.95520078636207, 28.55548567959244, 22.28304130069319, 17.15083762120765, 13.52650411391756, 10.81282973538746, 8.781902021178544, 7.084719123528884, 5.769115302038587, 4.728746710237675, 3.867300609441438, 3.178040354772841, 2.606037129493851, 2.146957943513479, 1.767357146269297, 1.455922099180754, 1.219698244176420 }; static double eimt[18] = { 24.23610327385172, 20.63456499010558, 17.65538999222755, 14.96789725060241, 12.50401823871386, 10.51365383249826, 8.830924437781962, 7.443527518977505, 6.194083826443568, 5.167187241655524, 4.317774043309917, 3.588549395492134, 2.987594411636582, 2.476696474779806, 2.058451487317135, 1.706965828524471, 1.414702600059552, 1.190641095161813 }; x2 = fabs(x); if (x == 0 || x2 > 174) { return -1; } if (x2 >= 90) { n = 1; xx = 1; qexp2 = 1; do { xx *= n / x; n++; qexp1 = qexp2; qexp2 = qexp1 + xx; } while (qexp1 != qexp2); qexp1 /= x; if (x < 0) { qexp1 = -qexp1 * exp(-x2); } else { qexp1 *= exp(x2); } } else if (x2 >= 3) { i = 0; while ((i < 18) && (x2 >= 0.5 * (xo[i] + xo[i + 1]))) { i++; } if (x > 0) { xx = eipt[i] / 100; } else{ xx = eimt[i] / 100; } xx2 = 1 / (-xo[i]); qexp2 = xx; n = 1; do { qexp1 = qexp2; xx = (xo[i] - x2) / n * (xx + xx2); if (x < 0) { xx = -xx; } qexp2 = qexp1 + xx; xx2 *= (x2 - xo[i]) / (-xo[i]); n++; } while (qexp2 != qexp1); if (x < 0) { qexp1 = -qexp1 * exp(-x2); } else { qexp1 *= exp(x2); } } else { n = 1; xx = 1; qexp2 = 0; do { xx *= x / n; qexp1 = qexp2; qexp2 = qexp1 + xx / n; n++; } while (qexp1 != qexp2); qexp1 += MEULER + log(x2); } *val = qexp1; return 0; } #endif int math_func_icgam(MathFunctionCallExpression *expl, MathEquation *eq, MathValue *rval) { double mu, x; #ifdef HAVE_LIBGSL int r; gsl_sf_result val; #else double a, u, p0, p1, q0, q1, val; int i, i2, i3; #endif MATH_CHECK_ARG(rval, expl->buf[0]); MATH_CHECK_ARG(rval, expl->buf[1]); mu = expl->buf[0].val.val; x = expl->buf[1].val.val; if (x < 0 || mu < 0) { rval->type = MATH_VALUE_ERROR; return -1; } #ifdef HAVE_LIBGSL r = gsl_sf_gamma_inc_e(mu, x, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; #else if (mu == 0) { if (exp1(-x, &val)) { rval->type = MATH_VALUE_ERROR; return -1; } else { val = -val; } } else if (x == 0) { if (gamma2(mu, &val)) { rval->type = MATH_VALUE_ERROR; return -1; } } else { i2 = 0; while (mu > 1) { i = 0; do { if (i == 56) { rval->type = MATH_VALUE_ERROR; return -1; } i++; mu--; } while (mu > 1); i2 = i; } u = exp(-x + mu * log(x)); if (x <= 1) { if (gamma2(mu, &p1)) { rval->type = MATH_VALUE_ERROR; return -1; } p0 = 1; q0 = 1; i = 0; do { i++; q0 *= x / (mu + i); p0 += q0; } while ((q0 > 1E-17) && (i != 20)); val = p1 - u / mu * p0; } else { i3 = (int) (120 / x + 5); p0 = 0; if (mu != 1) { p1 = 1E-78 / (1 - mu); } else { p1 = 1E-78; } q0 = p1; q1 = x * q0; for (i = 1; i <= i3; i++) { a = i - mu; p0 = p1 + a * p0; q0 = q1 + a * q0; p1 = x * p0 + i * p1; q1 = x * q0 + i * q1; if (i >= 50) { q0 /= i; p0 /= i; q1 /= i; p1 /= i; } } val = u / q1 * p1; } for (i = 1; i < i2; i++) { val = u + mu * val; u *= x; mu++; } } rval->val = val; return 0; #endif } int math_func_gamma(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { #ifdef HAVE_LIBGSL int r; gsl_sf_result val; #endif MATH_CHECK_ARG(rval, exp->buf[0]); #ifdef HAVE_LIBGSL r = gsl_sf_gamma_e (exp->buf[0].val.val, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; #else return gamma2(exp->buf[0].val.val, &rval->val); #endif } #ifdef HAVE_LIBGSL int math_func_erf(MathFunctionCallExpression *expl, MathEquation *eq, MathValue *rval) { double x; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, expl->buf[0]); x = expl->buf[0].val.val; r = gsl_sf_erf_e(x, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } #endif int math_func_erfc(MathFunctionCallExpression *expl, MathEquation *eq, MathValue *rval) { double x; #ifdef HAVE_LIBGSL int r; gsl_sf_result val; #else int i, i2, sg; double x2, x3, sum, h, h2, val; #endif MATH_CHECK_ARG(rval, expl->buf[0]); x = expl->buf[0].val.val; #ifdef HAVE_LIBGSL r = gsl_sf_erfc_e(x, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; #else x2 = fabs(x); if (x2 <= 0.1) { sum = 0; sg = 1; x3 = x2; for (i = 0; i <= 5; i++) { if (i == 0) { i2 = 1; } else { i2 *= i; } sum += sg * x3 / i2 / (2 * i + 1); sg *= -1; x3 *= x2 * x2; } sum *= 2 / sqrt(MPI); val = 1 - sum; } else if (x2 <= 100) { h = 0.5; h2 = h * h; sum = 0; for (i = 1; i <= 13; i++) { i2 = i * i; sum += exp(-i2 * h2) / (i2 * h2 + x2 * x2); } if (x2 < 6) { sum += 0.5 / (x2 * x2); sum *= 2 * x2 / MPI * exp(-x2 * x2) * h; sum -= 2 / (exp(2 * MPI * x2 / h) - 1); } else { sum += 0.5 / (x2 * x2); sum *= 2 * x2 / MPI * exp(-x2 * x2) * h; } val = sum; } else { sum = 1; sg = -1; x3 = 2 * x2 * x2; i2 = 1; for (i = 1; i <= 5; i++) { i2 *= (2 * i - 1); sum += sg * i2 / x3; sg *= -1; x3 *= 2 * x2 * x2; } sum *= exp(-x2 * x2) / sqrt(MPI) / x2; val = sum; } if (x < 0) { val = 2 - (val); } rval->val = val; return 0; #endif } static double qinv3(double y) { double n, sum, y2, y3, i; sum = 0; y2 = y; y3 = y * y; i = 1; n = 0; do { i *= (2 * n + 1); sum += y2 / i; n = n + 1; y2 *= y3; } while (fabs(y2 / i) > 1e-16); return sum; } static double qinv2(double y) { int n, i; double a; if (y < 7.5) { n = (int) (110 / (y - 1)); } else if (y < 12.5) { n = (int) (-1.6 * y + 30); } else { n = 10; } a = 0; for (i = n; i > 0; i--) { a = i / (y + a); } return 1 / (y + a); } int math_func_qinv(MathFunctionCallExpression *expl, MathEquation *eq, MathValue *rval) { double x, x2, m2, c0, c1, y0, y1, val; MATH_CHECK_ARG(rval, expl->buf[0]); x = expl->buf[0].val.val; if (x <= 0 || x >= 1) { rval->type = MATH_VALUE_ERROR; return -1; } if (x > 0.5) { x2 = 1 - x; } else { x2 = x; } m2 = sqrt(2 * MPI); if (x2 <= 0.01) { c0 = sqrt(-2 * log(m2 * 3 * x2)); c1 = c0 + 1 / c0; y1 = sqrt(-2 * log(m2 * c1 * x2)); do { y0 = y1; y1 = y0 + (qinv2(y0) - m2 * x2 * exp(0.5 * y0 * y0)); } while (fabs(y0 - y1) >= 1e-14); } else if (x2 <= 0.5) { y1 = m2 * (0.5 - x2) * 1.5; do { y0 = y1; y1 = y0 - (qinv3(y0) - m2 * (0.5 - x2) * exp(0.5 * y0 * y0)); } while (fabs(y0 - y1) >= 1e-14); } else { /* never reached */ y1 = 0; } if (x > 0.5) { val = -y1; } else { val = y1; } rval->val = val; return 0; } int math_func_rand(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = g_random_double() * exp->buf[0].val.val; return 0; } int math_func_srand(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); g_random_set_seed(exp->buf[0].val.val); rval->val = exp->buf[0].val.val; return 0; } #ifdef HAVE_LIBGSL int math_func_icbeta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int r; gsl_sf_result val; double a, b, x; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); MATH_CHECK_ARG(rval, exp->buf[2]); a = exp->buf[0].val.val; b = exp->buf[1].val.val; x = exp->buf[2].val.val; if (x < 0 || x > 1) { rval->type = MATH_VALUE_ERROR; return -1; } r = gsl_sf_beta_inc_e(a, b, x, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_zeta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int r; gsl_sf_result val; double n; MATH_CHECK_ARG(rval, exp->buf[0]); n = exp->buf[0].val.val; if (n == 1) { rval->type = MATH_VALUE_ERROR; return -1; } r = gsl_sf_zeta_e(n, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_zetam1(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int r; gsl_sf_result val; double n; MATH_CHECK_ARG(rval, exp->buf[0]); n = exp->buf[0].val.val; if (n == 1) { rval->type = MATH_VALUE_ERROR; return -1; } r = gsl_sf_zetam1_e(n, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_zeta_int(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int r; gsl_sf_result val; int n; MATH_CHECK_ARG(rval, exp->buf[0]); n = exp->buf[0].val.val; if (n == 1) { rval->type = MATH_VALUE_ERROR; return -1; } r = gsl_sf_zeta_int_e(n, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_zetam1_int(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int r; gsl_sf_result val; int n; MATH_CHECK_ARG(rval, exp->buf[0]); n = exp->buf[0].val.val; if (n == 1) { rval->type = MATH_VALUE_ERROR; return -1; } r = gsl_sf_zetam1_int_e(n, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } #endif int math_func_beta(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double p, q; #ifdef HAVE_LIBGSL int r; gsl_sf_result val; #else double a, b, c; #endif MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); p = exp->buf[0].val.val; q = exp->buf[1].val.val; #ifdef HAVE_LIBGSL r = gsl_sf_beta_e(p, q, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; #else if (gamma2(p, &a)) { rval->type = MATH_VALUE_ERROR; return -1; } if (gamma2(q, &b)) { rval->type = MATH_VALUE_ERROR; return -1; } if (gamma2(p + q, &c)) { rval->type = MATH_VALUE_ERROR; return -1; } if (fabs(c) < 1E-300) { rval->type = MATH_VALUE_ERROR; return -1; } rval->val = a * b / c; return 0; #endif } int math_func_lgn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double x, alp; int n; #ifdef HAVE_LIBGSL int r; gsl_sf_result val; #else int i; double l1, l2, tmp1, tmp2, val; #endif MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); MATH_CHECK_ARG(rval, exp->buf[2]); n = exp->buf[0].val.val; alp = exp->buf[1].val.val; x = exp->buf[2].val.val; if (n < 0) { rval->type = MATH_VALUE_ERROR; return -1; } #ifdef HAVE_LIBGSL if (n == 1) { r = gsl_sf_laguerre_1_e(alp, x, &val); } else if (n == 2) { r = gsl_sf_laguerre_2_e(alp, x, &val); } else if (n == 3) { r = gsl_sf_laguerre_3_e(alp, x, &val); } else { r = gsl_sf_laguerre_n_e(n, alp, x, &val); } rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; #else l1 = 1; if (n == 0) { val = l1; } else { l2 = 1 - x + alp; if (n == 1) { val = l2; } else { tmp1 = 1 + x - alp; tmp2 = 1 - alp; for (i = 2; i <= n; i++) { val = (l2 - l1) + l2 - (tmp1 * l2 - tmp2 * l1) / i; l1 = l2; l2 = val; } } } rval->val = val; return 0; #endif } static double mjd(int y, int m, int d, int hh, int mm, int ss) { int d0, d1, d2, d3, d4; if (m < 1) { m = 1; } if (d < 1) { d = 1; } d0 = (14 - m) / 12; d1 = (y - d0) * 365.25; d2 = (m + d0 * 12 - 2) * 30.59; d3 = (y - d0) / 100; d4 = (y - d0) / 400; return d1 + d2 - d3 + d4 + d + 1721088 - 2400000 + hh / 24.0 + mm / 1440.0 + ss / 86400.0; } int math_func_mjd(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); MATH_CHECK_ARG(rval, exp->buf[2]); MATH_CHECK_ARG(rval, exp->buf[3]); MATH_CHECK_ARG(rval, exp->buf[4]); MATH_CHECK_ARG(rval, exp->buf[5]); rval->val = mjd(exp->buf[0].val.val, exp->buf[1].val.val, exp->buf[2].val.val, exp->buf[3].val.val, exp->buf[4].val.val, exp->buf[5].val.val); return 0; } int math_func_unix2mjd(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct tm *tm; time_t t; MATH_CHECK_ARG(rval, exp->buf[0]); t = exp->buf[0].val.val; tm = gmtime(&t); if (tm == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = mjd(tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); return 0; } int math_func_mjd2year(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct tm t; MATH_CHECK_ARG(rval, exp->buf[0]); mjd2gd(exp->buf[0].val.val, &t); if (t.tm_year < MJD2GD_YEAR_MIN) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = t.tm_year + 1900; return 0; } int math_func_mjd2month(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct tm t; MATH_CHECK_ARG(rval, exp->buf[0]); mjd2gd(exp->buf[0].val.val, &t); if (t.tm_year < MJD2GD_YEAR_MIN) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = t.tm_mon + 1; return 0; } int math_func_mjd2day(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct tm t; MATH_CHECK_ARG(rval, exp->buf[0]); mjd2gd(exp->buf[0].val.val, &t); if (t.tm_year < MJD2GD_YEAR_MIN) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = t.tm_mday; return 0; } int math_func_mjd2wday(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct tm t; MATH_CHECK_ARG(rval, exp->buf[0]); mjd2gd(exp->buf[0].val.val, &t); if (t.tm_year < MJD2GD_YEAR_MIN) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = (t.tm_wday == 0) ? 7 : t.tm_wday; return 0; } int math_func_mjd2yday(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { struct tm t; MATH_CHECK_ARG(rval, exp->buf[0]); mjd2gd(exp->buf[0].val.val, &t); if (t.tm_year < MJD2GD_YEAR_MIN) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = t.tm_yday + 1; return 0; } int math_func_xor(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); rval->val = ((exp->buf[0].val.val != 0) ^ (exp->buf[1].val.val != 0)) ? 1 : 0; return 0; } int math_func_and(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); rval->val = (exp->buf[0].val.val && exp->buf[1].val.val); return 0; } int math_func_not(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); rval->val = ! exp->buf[0].val.val; return 0; } int math_func_lt(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int prec, r; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); MATH_CHECK_ARG(rval, exp->buf[2]); prec = exp->buf[2].val.val; r = compare_double_with_prec(exp->buf[0].val.val, exp->buf[1].val.val, prec); rval->val = (r < 0) ? 1 : 0; return 0; } int math_func_le(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int prec, r; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); MATH_CHECK_ARG(rval, exp->buf[2]); prec = exp->buf[2].val.val; r = compare_double_with_prec(exp->buf[0].val.val, exp->buf[1].val.val, prec); rval->val = (r <= 0) ? 1 : 0; return 0; } int math_func_or(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); rval->val = (exp->buf[0].val.val || exp->buf[1].val.val); return 0; } int math_func_ge(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int prec, r; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); MATH_CHECK_ARG(rval, exp->buf[2]); prec = exp->buf[2].val.val; r = compare_double_with_prec(exp->buf[0].val.val, exp->buf[1].val.val, prec); rval->val = (r >= 0) ? 1 : 0; return 0; } static int compare_double_with_prec(long double a, long double b, int prec) { long double scale, r, dif; int order, order_a, order_b; if (a == b) { return 0; } if (prec < 1 || prec > 34) { /* long double (IEEE754-2008 binary128) */ return (a > b) ? 1 : -1; } if (a == 0.0 || b == 0.0) { return (a > b) ? 1 : -1; } if ((a > 0 && b < 0) || (a < 0 && b > 0)) { return (a > b) ? 1 : -1; } #if HAVE_FLOORL && HAVE_LOG10L && HAVE_FABSL order_a = floorl(log10l(fabsl(a))); order_b = floorl(log10l(fabsl(b))); #else /* HAVE_FLOORL && HAVE_LOG10L && HAVE_FABSL */ order_a = floor(log10(fabs(a))); order_b = floor(log10(fabs(b))); #endif if (order_a - order_b > 1) { return 1; } else if (order_a - order_b < -1) { return -1; } order = (order_a > order_b) ? order_a : order_b; #if HAVE_POWL scale = powl(10, - order); #else /* HAVE_POWL */ scale = pow(10, - order); #endif dif = a *scale - b * scale; #if HAVE_POWL scale = powl(10, prec - 1); #else /* HAVE_POWL */ scale = pow(10, prec - 1); #endif r = dif * scale; if (r >= 0.5) { return 1; } else if (r <= -0.5) { return -1; } return 0; } int math_func_eq(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int prec, r; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); MATH_CHECK_ARG(rval, exp->buf[2]); prec = exp->buf[2].val.val; r = compare_double_with_prec(exp->buf[0].val.val, exp->buf[1].val.val, prec); rval->val = (r == 0) ? 1 : 0; return 0; } int math_func_neq(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int prec, r; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); MATH_CHECK_ARG(rval, exp->buf[2]); prec = exp->buf[2].val.val; r = compare_double_with_prec(exp->buf[0].val.val, exp->buf[1].val.val, prec); rval->val = (r != 0) ? 1 : 0; return 0; } int math_func_tn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double l1, l2, tmp1, x, val; int i, n; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; if (n < 0) { rval->type = MATH_VALUE_ERROR; return -1; } l1 = 1; if (n == 0) { val = l1; } else { l2 = x; if (n == 1) { val = l2; } else { tmp1 = x + x; for (i = 2; i <= n; i++) { val = tmp1 * l2 - l1; l1 = l2; l2 = val; } } } rval->val = val; return 0; } int math_func_hn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double l1, l2, val, x; int i, n; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; if (n < 0) { rval->type = MATH_VALUE_ERROR; return -1; } l1 = 1; if (n == 0) { val = l1; } else { l2 = 2 * x; if (n == 1) { val = l2; } else { for (i = 2; i <= n; i++) { val = x * l2 - (i - 1) * l1; val += val; l1 = l2; l2 = val; } } } rval->val = val; return 0; } int math_func_gt(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int prec, r; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); MATH_CHECK_ARG(rval, exp->buf[2]); prec = exp->buf[2].val.val; r = compare_double_with_prec(exp->buf[0].val.val, exp->buf[1].val.val, prec); rval->val = (r > 0) ? 1 : 0; return 0; } int math_func_if(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n; n = (exp->buf[0].val.type == MATH_VALUE_NORMAL && exp->buf[0].val.val) ? 1 : 2; return math_expression_calculate(exp->buf[n].exp, rval); } int math_func_unless(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n; n = (exp->buf[0].val.type == MATH_VALUE_NORMAL && exp->buf[0].val.val) ? 2 : 1; return math_expression_calculate(exp->buf[n].exp, rval); } #define CHECK_VAL_TYPE(R,V,T) (R)->val = ((V).val.type == T); \ (R)->type = MATH_VALUE_NORMAL; int math_func_isnormal(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { CHECK_VAL_TYPE(rval, exp->buf[0], MATH_VALUE_NORMAL); return 0; } int math_func_isnan(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { rval->val = (exp->buf[0].val.type == MATH_VALUE_NAN || (exp->buf[0].val.val != exp->buf[0].val.val)); rval->type = MATH_VALUE_NORMAL; return 0; } int math_func_isundef(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { CHECK_VAL_TYPE(rval, exp->buf[0], MATH_VALUE_UNDEF); return 0; } int math_func_isbreak(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { CHECK_VAL_TYPE(rval, exp->buf[0], MATH_VALUE_BREAK); return 0; } int math_func_iscont(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { CHECK_VAL_TYPE(rval, exp->buf[0], MATH_VALUE_CONT); return 0; } int math_func_pn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double x; int n; #ifdef HAVE_LIBGSL int r; gsl_sf_result val; #else double l1, val; int i; #endif MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; #ifdef HAVE_LIBGSL if (n < 0 || fabs(x) > 1) { rval->type = MATH_VALUE_ERROR; return -1; } switch (n) { case 1: r = gsl_sf_legendre_P1_e(x, &val); break; case 2: r = gsl_sf_legendre_P2_e(x, &val); break; case 3: r = gsl_sf_legendre_P3_e(x, &val); break; default: r = gsl_sf_legendre_Pl_e(n, x, &val); } rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; #else if (n < 0 || fabs(x) > 1000) { rval->type = MATH_VALUE_ERROR; return -1; } l1 = 1; if (n == 0) { val = l1; } else { double l2; l2 = x; if (n == 1) { val = l2; } else { double tmp1, tmp2; for (i = 2; i <= n; i++) { tmp1 = x * l2; tmp2 = tmp1 - l1; val = tmp2 + tmp1 - tmp2 / i; l1 = l2; l2 = val; } } } rval->val = val; return 0; #endif } int math_func_yn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n2, n; double x2, x; #ifdef HAVE_LIBGSL int r; gsl_sf_result val; #else int m, i, l; double t1, t2, t3, s, ss, w, j0, j1, y0, y1, y2, val; #endif MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = abs(n); #ifdef HAVE_LIBGSL if (n2 == 0) { r = gsl_sf_bessel_Y0_e(x2, &val); } else if (n2 == 1) { r = gsl_sf_bessel_Y1_e(x2, &val); } else { r = gsl_sf_bessel_Yn_e(n2, x2, &val); } rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; #else if ((n2 > 1000) || (x2 > 1000) || (x2 <= 1E-300)) { rval->type = MATH_VALUE_ERROR; return -1; } if (x2 <= 2E-5) { t1 = x2 * 0.5; j0 = 1 - t1 * t1; y0 = 2 / MPI * ((MEULER + log(t1)) * j0 + t1 * t1); if (n2 != 0) { j1 = t1 - 0.5 * t1 * t1 * t1; y1 = (j1 * y0 - 2 / MPI / x2) / j0; if (n2 >= -65 / log10(t1)) { rval->type = MATH_VALUE_ERROR; return -1; } for (i = 2; i <= n2; i++) { y2 = 2 * (i - 1) / x2 * y1 - y0; y0 = y1; y1 = y2; } } } else { if (x2 >= 100) { m = (int) (1.073 * x2 + 47); } else if (x2 >= 10) { m = (int) (1.27 * x2 + 28); } else if (x2 >= 1) { m = (int) (2.4 * x2 + 15); } else if (x2 >= 0.1) { m = 17; } else { m = 10; } t3 = 0; t2 = 1E-75; s = 0; ss = 0; for (i = m - 1; i >= 0; i--) { t1 = 2 * (i + 1) / x2 * t2 - t3; if ((i % 2 == 0) && (i != 0)) { s += t1; l = i / 2; if (l % 2 == 0) { ss -= t1 / l; } else { ss += t1 / l; } if (fabs(s) >= 1E55) { t1 *= 1E-55; t2 *= 1E-55; s *= 1E-55; ss *= 1E-55; } } t3 = t2; t2 = t1; } s = 2 * s + t1; j0 = t1 / s; j1 = t3 / s; ss /= s; y0 = 2 / MPI * ((MEULER + log(x2 * 0.5)) * j0 + 2 * ss); if (n2 != 0) { y1 = (j1 * y0 - 2 / MPI / x2) / j0; for (i = 2; i <= n2; i++) { if (y1 <= -1E65) { w = y1 * 1E-10; y2 = 2 * (i - 1) / x2 * w - y0 * 1E-10; if (fabs(y2) >= 1E65) { rval->type = MATH_VALUE_ERROR; return -1; } y2 *= 1E10; } else { y2 = 2 * (i - 1) / x2 * y1 - y0; } y0 = y1; y1 = y2; } } } if (n == 0) { val = y0; } else { if ((n < 0) && (n2 % 2 == 1)) { y1 = -y1; } if ((x < 0) && (n2 % 2 == 1)){ y1 = -y1; } val = y1; } rval->val = val; return 0; #endif } int math_func_jn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n2, n; double x2, x; #ifdef HAVE_LIBGSL int r; gsl_sf_result val; #else int m, l, i; double t1, t2, t3, s, j; #endif MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = abs(n); #ifdef HAVE_LIBGSL if (n2 == 0) { r = gsl_sf_bessel_J0_e(x2, &val); } else if (n2 == 1) { r = gsl_sf_bessel_J1_e(x2, &val); } else { r = gsl_sf_bessel_Jn_e(n2, x2, &val); } rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; #else if (n2 > 1000 || x2 > 1000) { rval->type = MATH_VALUE_ERROR; return -1; } if (x2 <= 2E-5) { t1 = x2 * 0.5; if (n2 == 0) { j = 1 - t1 * t1; } else if (x2 <= 1E-77) { j = 0; } else { t2 = 1; t3 = 1; i = 1; while ((i <= n2) && (fabs(t3) > fabs(t2 / t1) * 1E-77)) { t3 *= t1 / t2; t2++; i++; } if (i <= n2) { j = 0; } else { j = t3 * (1 - t1 * t1 / t2); } } } else { if (n2 > x2) { m = n2; } else { m = (int) x2; } if (x2 >= 100) { l = (int) (0.073 * x2 + 47); } else if (x2 >= 10) { l = (int) (0.27 * x2 + 27); } else if (x2 > 1) { l = (int) (1.4 * x2 + 14); } else { l = 14; } m += l; t3 = 0; t2 = 1E-75; s = 0; for (i = m - 1; i >= 0; i--) { t1 = 2 * (i + 1) / x2 * t2 - t3; if (i == n2) { j = t1; } if ((i % 2 == 0) && (i != 0)) { s += t1; if (fabs(s) >= 1E55) { t1 *= 1E-55; t2 *= 1E-55; s *= 1E-55; j *= 1E-55; } } t3 = t2; t2 = t1; } s = 2 * s + t1; j /= s; } if ((n < 0) && (n2 % 2 == 1)) { j = -j; } if ((x < 0) && (n2 % 2 == 1)) { j = -j; } rval->val = j; return 0; #endif } #ifdef HAVE_LIBGSL int math_func_ynu(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double x2, x, n2, n; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = fabs(n); r = gsl_sf_bessel_Ynu_e(n2, x2, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_jnu(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double x2, x, n2, n; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = fabs(n); r = gsl_sf_bessel_Jnu_e(n2, x2, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_inu(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double x2, x, n2, n; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = fabs(n); r = gsl_sf_bessel_Inu_e(n2, x2, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_knu(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { double x2, x, n2, n; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = fabs(n); r = gsl_sf_bessel_Knu_e(n2, x2, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_in(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n2, n; double x2, x; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = abs(n); switch (n2) { case 0: r = gsl_sf_bessel_I0_e(x2, &val); break; case 1: r = gsl_sf_bessel_I1_e(x2, &val); break; default: r = gsl_sf_bessel_In_e(n2, x2, &val); } rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_kn(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n2, n; double x2, x; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = abs(n); switch (n2) { case 0: r = gsl_sf_bessel_K0_e(x2, &val); break; case 1: r = gsl_sf_bessel_K1_e(x2, &val); break; default: r = gsl_sf_bessel_Kn_e(n2, x2, &val); } rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_yl(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n2, n; double x2, x; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = abs(n); switch (n2) { case 0: r = gsl_sf_bessel_y0_e(x2, &val); break; case 1: r = gsl_sf_bessel_y1_e(x2, &val); break; default: r = gsl_sf_bessel_yl_e(n2, x2, &val); } rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_jl(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n2, n; double x2, x; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); n = exp->buf[0].val.val; x = exp->buf[1].val.val; x2 = fabs(x); n2 = abs(n); switch (n2) { case 0: r = gsl_sf_bessel_j0_e(x2, &val); break; case 1: r = gsl_sf_bessel_j1_e(x2, &val); break; default: r = gsl_sf_bessel_jl_e(n2, x2, &val); } rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } int math_func_choose(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { unsigned int m, n; int r; gsl_sf_result val; MATH_CHECK_ARG(rval, exp->buf[0]); MATH_CHECK_ARG(rval, exp->buf[1]); if (exp->buf[0].val.val < 0 || exp->buf[1].val.val < 0) { printf("math_func_choose\n"); rval->type = MATH_VALUE_ERROR; return 1; } n = exp->buf[0].val.val; m = exp->buf[1].val.val; r = gsl_sf_choose_e(n, m, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; } #endif int math_func_ei(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { #ifdef HAVE_LIBGSL int r; gsl_sf_result val; #endif MATH_CHECK_ARG(rval, exp->buf[0]); #ifdef HAVE_LIBGSL r = gsl_sf_expint_Ei_e(exp->buf[0].val.val, &val); rval->val = val.val; if (r) { rval->type = MATH_VALUE_ERROR; } return r; #else return exp1(exp->buf[0].val.val, &rval->val); #endif } static int init_memory(void) { if (Memory) { return 0; } Memory = g_malloc0(sizeof(*Memory) * MATH_FUNCTION_MEMORY_NUM); if (Memory == NULL) { return 1; } return 0; } int math_func_cm(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { if (Memory == NULL && init_memory()) { return 1; } if (exp->buf[0].val.val == 0 && exp->buf[0].val.type == MATH_VALUE_NORMAL) { memset(Memory, 0, sizeof(*Memory) * MATH_FUNCTION_MEMORY_NUM); } else { int i; MathValue val; val = exp->buf[0].val; for (i = 0; i < MATH_FUNCTION_MEMORY_NUM; i++) { Memory[i] = val; } } *rval = exp->buf[0].val; return 0; } int math_func_rm(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n; MATH_CHECK_ARG(rval, exp->buf[0]); if (Memory == NULL && init_memory()) { return 1; } n = exp->buf[0].val.val; if (n < 0 || n >= MATH_FUNCTION_MEMORY_NUM) { rval->type = MATH_VALUE_ERROR; return 1; } *rval = Memory[n]; return 0; } int math_func_m(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n; MATH_CHECK_ARG(rval, exp->buf[0]); if (Memory == NULL && init_memory()) { return 1; } n = exp->buf[0].val.val; if (n < 0 || n >= MATH_FUNCTION_MEMORY_NUM) { rval->type = MATH_VALUE_ERROR; return 1; } *rval = Memory[n] = exp->buf[1].val; return 0; } int math_func_for(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int n, r; double v, start, stop, step; MathFunctionArgument *argv; if (Memory == NULL && init_memory()) { return 1; } argv = exp->buf; MATH_CHECK_ARG(rval, argv[0]); MATH_CHECK_ARG(rval, argv[1]); MATH_CHECK_ARG(rval, argv[2]); MATH_CHECK_ARG(rval, argv[3]); n = argv[0].val.val; start = argv[1].val.val; stop = argv[2].val.val; step = argv[3].val.val; if (n >= MATH_FUNCTION_MEMORY_NUM || (stop - start) * step <= 0) { rval->type = MATH_VALUE_ERROR; return 1; } if (n >= 0) { Memory[n].type = MATH_VALUE_NORMAL; } rval->val = 0; for (v = start; (step < 0) ? (v >= stop) : (v <= stop); v += step) { if (n >= 0) { Memory[n].val = v; } r = math_expression_calculate(argv[4].exp, rval); if(r) { return r; } } return 0; } static int compare_double(const void *p1, const void *p2) { MathValue *v1, *v2; v1 = (MathValue *) p1; v2 = (MathValue *) p2; if (v1->type == MATH_VALUE_NORMAL && v2->type == MATH_VALUE_NORMAL) { if (v1->val > v2->val) { return 1; } else if (v1->val < v2->val) { return -1; } } else if (v1->type != MATH_VALUE_NORMAL && v2->type == MATH_VALUE_NORMAL) { return 1; } else if (v1->type == MATH_VALUE_NORMAL && v2->type != MATH_VALUE_NORMAL) { return -1; } return 0; } static int rcompare_double(const void *p1, const void *p2) { MathValue *v1, *v2; v1 = (MathValue *) p1; v2 = (MathValue *) p2; if (v1->type == MATH_VALUE_NORMAL && v2->type == MATH_VALUE_NORMAL) { if (v1->val > v2->val) { return -1; } else if (v1->val < v2->val) { return 1; } } else if (v1->type != MATH_VALUE_NORMAL && v2->type == MATH_VALUE_NORMAL) { return -1; } else if (v1->type == MATH_VALUE_NORMAL && v2->type != MATH_VALUE_NORMAL) { return 1; } return 0; } int math_func_push(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int id; MathEquationArray *ary; rval->val = 0; id = (int) exp->buf[0].idx; ary = math_equation_get_array(eq, id); if (ary == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } if (math_equation_set_array_val(eq, id, ary->num, &exp->buf[1].val)) { rval->type = MATH_VALUE_ERROR; return 1; } *rval = exp->buf[1].val; return 0; } int math_func_pop(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int id; MathEquationArray *ary; rval->val = 0; id = (int) exp->buf[0].idx; ary = math_equation_get_array(eq, id); if (ary == NULL || ary->num < 1 || ary->data == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } ary->num--; *rval = ary->data[ary->num]; ary->data[ary->num].val = 0; ary->data[ary->num].type = MATH_VALUE_NORMAL; return 0; } int math_func_shift(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int id; MathEquationArray *ary; rval->val = 0; id = (int) exp->buf[0].idx; ary = math_equation_get_array(eq, id); if (ary == NULL || ary->num < 1 || ary->data == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } *rval = ary->data[0]; ary->num--; if (ary->num > 0) { memmove(ary->data, ary->data + 1, sizeof(*ary->data) * ary->num); } ary->data[ary->num].val = 0; ary->data[ary->num].type = MATH_VALUE_NORMAL; return 0; } int math_func_unshift(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int id; MathEquationArray *ary; rval->val = 0; id = (int) exp->buf[0].idx; ary = math_equation_get_array(eq, id); if (ary == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } if (math_equation_set_array_val(eq, id, ary->num, &exp->buf[1].val)) { rval->type = MATH_VALUE_ERROR; return 1; } if (ary->num > 1) { memmove(ary->data + 1, ary->data, sizeof(*ary->data) * (ary->num - 1)); } *rval = ary->data[0] = exp->buf[1].val; return 0; } int math_func_sort(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int id; MathEquationArray *ary; rval->val = 0; id = (int) exp->buf[0].idx; ary = math_equation_get_array(eq, id); if (ary == NULL || ary->num < 1 || ary->data == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = ary->num; if (ary->num < 2) { return 0; } qsort(ary->data, ary->num, sizeof(MathValue), compare_double); return 0; } int math_func_rsort(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int id; MathEquationArray *ary; rval->val = 0; id = (int) exp->buf[0].idx; ary = math_equation_get_array(eq, id); if (ary == NULL || ary->num < 1 || ary->data == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = ary->num; if (ary->num < 2) { return 0; } qsort(ary->data, ary->num, sizeof(MathValue), rcompare_double); return 0; } int math_func_size(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { int id; MathEquationArray *ary; rval->val = 0; id = (int) exp->buf[0].idx; ary = math_equation_get_array(eq, id); if (ary == NULL) { rval->type = MATH_VALUE_ERROR; return 1; } rval->val = ary->num; return 0; } int math_func_sum(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { if (exp->buf[0].val.type == MATH_VALUE_NORMAL) { MathValue *ptr = eq->pos_func_buf + exp->pos_id; ptr->val += exp->buf[0].val.val; ptr->type = MATH_VALUE_NORMAL; *rval = *ptr; } else { *rval = exp->buf[0].val; } return 0; } int math_func_dif(MathFunctionCallExpression *exp, MathEquation *eq, MathValue *rval) { if (exp->buf[0].val.type == MATH_VALUE_NORMAL) { MathValue *ptr = eq->pos_func_buf + exp->pos_id; if (ptr->type == MATH_VALUE_NORMAL) { rval->val = exp->buf[0].val.val - ptr->val; } else { rval->val = 0; } rval->type = ptr->type; *ptr = exp->buf[0].val; } else { *rval = exp->buf[0].val; } return 0; } ngraph-gtk-6.06.13/ltmain.sh0000755000175000017500000105202612241364542012506 00000000000000 # libtool (GNU libtool) 2.4.2 # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --no-quiet, --no-silent # print informational messages (default) # --no-warn don't display warning messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print more informational messages than default # --no-verbose don't print the extra informational messages # --version print version information # -h, --help, --help-all print short, long, or detailed help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. When passed as first option, # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.3 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . # GNU libtool home page: . # General help using GNU software: . PROGRAM=libtool PACKAGE=libtool VERSION="2.4.2 Debian-2.4.2-1.3" TIMESTAMP="" package_revision=1.3337 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # NLS nuisances: We save the old values to restore during execute mode. lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL $lt_unset CDPATH # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" : ${CP="cp -f"} test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_dirname may be replaced by extended shell implementation # func_basename file func_basename () { func_basename_result=`$ECHO "${1}" | $SED "$basename"` } # func_basename may be replaced by extended shell implementation # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` } # func_dirname_and_basename may be replaced by extended shell implementation # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname may be replaced by extended shell implementation # These SED scripts presuppose an absolute path with a trailing slash. pathcar='s,^/\([^/]*\).*$,\1,' pathcdr='s,^/[^/]*,,' removedotparts=':dotsl s@/\./@/@g t dotsl s,/\.$,/,' collapseslashes='s@/\{1,\}@/@g' finalslash='s,/*$,/,' # func_normal_abspath PATH # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. # value returned in "$func_normal_abspath_result" func_normal_abspath () { # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` while :; do # Processed it all yet? if test "$func_normal_abspath_tpath" = / ; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result" ; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_relative_path SRCDIR DSTDIR # generates a relative path from SRCDIR to DSTDIR, with a trailing # slash if non-empty, suitable for immediately appending a filename # without needing to append a separator. # value returned in "$func_relative_path_result" func_relative_path () { func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=${func_dirname_result} if test "x$func_relative_path_tlibdir" = x ; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test "x$func_stripname_result" != x ; then func_relative_path_result=${func_relative_path_result}/${func_stripname_result} fi # Normalisation. If bindir is libdir, return empty string, # else relative path ending with a slash; either way, target # file name can be directly appended. if test ! -z "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result/" func_relative_path_result=$func_stripname_result fi } # The name of this program: func_dirname_and_basename "$progpath" progname=$func_basename_result # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' # Sed substitution that converts a w32 file name or path # which contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "$my_tmpdir" } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_tr_sh # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_version # Echo version message to standard output and exit. func_version () { $opt_debug $SED -n '/(C)/!b go :more /\./!{ N s/\n# / / b more } :go /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $opt_debug $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" echo $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help [NOEXIT] # Echo long help message to standard output and exit, # unless 'noexit' is passed as argument. func_help () { $opt_debug $SED -n '/^# Usage:/,/# Report bugs to/ { :print s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ p d } /^# .* home page:/b print /^# General help using/b print ' < "$progpath" ret=$? if test -z "$1"; then exit $ret fi } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $opt_debug func_error "missing argument for $1." exit_cmd=exit } # func_split_short_opt shortopt # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. func_split_short_opt () { my_sed_short_opt='1s/^\(..\).*$/\1/;q' my_sed_short_rest='1s/^..\(.*\)$/\1/;q' func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` } # func_split_short_opt may be replaced by extended shell implementation # func_split_long_opt longopt # Set func_split_long_opt_name and func_split_long_opt_arg shell # variables after splitting LONGOPT at the `=' sign. func_split_long_opt () { my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^--[^=]*=//' func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` } # func_split_long_opt may be replaced by extended shell implementation exit_cmd=: magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. nonopt= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "${1}=\$${1}\${2}" } # func_append may be replaced by extended shell implementation # func_append_quoted var value # Quote VALUE and append to the end of shell variable VAR, separated # by a space. func_append_quoted () { func_quote_for_eval "${2}" eval "${1}=\$${1}\\ \$func_quote_for_eval_result" } # func_append_quoted may be replaced by extended shell implementation # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "${@}"` } # func_arith may be replaced by extended shell implementation # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` } # func_len may be replaced by extended shell implementation # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` } # func_lo2o may be replaced by extended shell implementation # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` } # func_xform may be replaced by extended shell implementation # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Option defaults: opt_debug=: opt_dry_run=false opt_config=false opt_preserve_dup_deps=false opt_features=false opt_finish=false opt_help=false opt_help_all=false opt_silent=: opt_warning=: opt_verbose=: opt_silent=false opt_verbose=false # Parse options once, thoroughly. This comes as soon as possible in the # script to make things like `--version' happen as quickly as we can. { # this just eases exit handling while test $# -gt 0; do opt="$1" shift case $opt in --debug|-x) opt_debug='set -x' func_echo "enabling shell trace mode" $opt_debug ;; --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) opt_config=: func_config ;; --dlopen|-dlopen) optarg="$1" opt_dlopen="${opt_dlopen+$opt_dlopen }$optarg" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) opt_features=: func_features ;; --finish) opt_finish=: set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help_all=: opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_mode="$optarg" case $optarg in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_silent=false func_append preserve_args " $opt" ;; --no-warning|--no-warn) opt_warning=false func_append preserve_args " $opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $opt" ;; --silent|--quiet) opt_silent=: func_append preserve_args " $opt" opt_verbose=false ;; --verbose|-v) opt_verbose=: func_append preserve_args " $opt" opt_silent=false ;; --tag) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_tag="$optarg" func_append preserve_args " $opt $optarg" func_enable_tag "$optarg" shift ;; -\?|-h) func_usage ;; --help) func_help ;; --version) func_version ;; # Separate optargs to long options: --*=*) func_split_long_opt "$opt" set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-n*|-v*) func_split_short_opt "$opt" set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) set dummy "$opt" ${1+"$@"}; shift; break ;; esac done # Validate options: # save first non-option argument if test "$#" -gt 0; then nonopt="$opt" shift fi # preserve --debug test "$opt_debug" = : || func_append preserve_args " --debug" case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test "$opt_mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$opt_mode' for more information." } # Bail if the options were screwed $exit_cmd $EXIT_FAILURE } ## ----------- ## ## Main. ## ## ----------- ## # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case "$lt_sysroot:$1" in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result="=$func_stripname_result" ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$lt_sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $opt_debug # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result="" if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result" ; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $opt_debug if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $opt_debug # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $opt_debug if test -z "$2" && test -n "$1" ; then func_error "Could not determine host file name corresponding to" func_error " \`$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result="$1" fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $opt_debug if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " \`$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result="$3" fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $opt_debug case $4 in $1 ) func_to_host_path_result="$3$func_to_host_path_result" ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via `$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $opt_debug $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $opt_debug case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result="$1" } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result="$func_convert_core_msys_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via `$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $opt_debug if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd="func_convert_path_${func_stripname_result}" fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $opt_debug func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result="$1" } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_msys_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac echo $ECHO "Try \`$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test "$opt_help" = :; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | sed -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | sed '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "\`$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument \`$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and \`=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the \`-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the \`$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test "x$prev" = x-m && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename="" if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname" ; then func_basename "$dlprefile_dlname" dlprefile_dlbasename="$func_basename_result" else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename" ; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $opt_debug sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $opt_debug match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive which possess that section. Heuristic: eliminate # all those which have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $opt_debug if func_cygming_gnu_implib_p "$1" ; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1" ; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result="" fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" if test "$lock_old_archive_extraction" = yes; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test "$lock_old_archive_extraction" = yes; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ which is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options which match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include /* declarations of non-ANSI functions */ #if defined(__MINGW32__) # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined(__CYGWIN__) # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined (other platforms) ... */ #endif /* portability defines, excluding path handling macros */ #if defined(_MSC_VER) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC # ifndef _INTPTR_T_DEFINED # define _INTPTR_T_DEFINED # define intptr_t int # endif #elif defined(__MINGW32__) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined(__CYGWIN__) # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined (other platforms) ... */ #endif #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #if defined(LT_DEBUGWRAPPER) static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $opt_debug case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir="$arg" prev= continue ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps ; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." else echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test "$prefer_static_libs" = yes || test "$prefer_static_libs,$installed" = "built,no"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib="$l" done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$lt_sysroot$libdir" absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi case "$host" in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$absdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi func_append newlib_search_path " $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type \`$version_type'" ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. func_append verstring ":${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$opt_mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test "X$deplibs_check_method" = "Xnone"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then # Remove ${wl} instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd1 in $cmds; do IFS="$save_ifs" # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test "$try_normal_branch" = yes \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=${output_objdir}/${output_la}.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " ${wl}-bind_at_load" func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=no ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" func_resolve_sysroot "$deplib" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test "x$bindir" != x ; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) func_append RM " $arg"; rmforce=yes ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then odir="$objdir" else odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" test "$opt_mode" = uninstall && odir="$dir" # Remember odir for removal later, being careful to avoid duplicates if test "$opt_mode" = clean; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case "$opt_mode" in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 ngraph-gtk-6.06.13/config.sub0000755000175000017500000010535412241364550012647 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-08-10' # This file 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 3 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, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches with a ChangeLog entry to config-patches@gnu.org. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 \ | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or1k-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ngraph-gtk-6.06.13/aclocal.m40000644000175000017500000016014312241364545012525 00000000000000# generated automatically by aclocal 1.14 -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Configure paths for GLIB # Owen Taylor 1997-2001 dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject, dnl gthread, or gio is specified in MODULES, pass to pkg-config dnl AC_DEFUN([AM_PATH_GLIB_2_0], [dnl dnl Get the cflags and libraries from pkg-config dnl AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], , enable_glibtest=yes) pkg_config_args=glib-2.0 for module in . $4 do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gmodule-no-export) pkg_config_args="$pkg_config_args gmodule-no-export-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; gio*) pkg_config_args="$pkg_config_args $module-2.0" ;; esac done PKG_PROG_PKG_CONFIG([0.16]) no_glib="" if test "x$PKG_CONFIG" = x ; then no_glib=yes PKG_CONFIG=no fi min_glib_version=ifelse([$1], ,2.0.0,$1) AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" dnl dnl Now check if the installed GLIB is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.glibtest AC_TRY_RUN([ #include #include #include int main () { unsigned int major, minor, micro; char *tmp_version; fclose (fopen ("conf.glibtest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" AC_TRY_LINK([ #include #include ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" GLIB_COMPILE_RESOURCES="" ifelse([$3], , :, [$3]) fi AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) AC_SUBST(GLIB_GENMARSHAL) AC_SUBST(GOBJECT_QUERY) AC_SUBST(GLIB_MKENUMS) AC_SUBST(GLIB_COMPILE_RESOURCES) rm -f conf.glibtest ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.14' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.14], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.14])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # -*- Autoconf -*- # Obsolete and "removed" macros, that must however still report explicit # error messages when used, to smooth transition. # # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl AC_CONFIG_HEADERS($@)]) AC_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should simply use the 'AC][_PROG_CC' macro instead. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', but upon 'ac_cv_prog_cc_stdc'.])]) AC_DEFUN([AM_C_PROTOTYPES], [AC_FATAL([automatic de-ANSI-fication support has been removed])]) AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/gettext.m4]) m4_include([m4/gsl.m4]) m4_include([m4/gtk-2.0.m4]) m4_include([m4/gtk-3.0.m4]) m4_include([m4/iconv.m4]) m4_include([m4/intlmacosx.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) m4_include([m4/lib-prefix.m4]) m4_include([m4/libtool.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) m4_include([m4/ltversion.m4]) m4_include([m4/lt~obsolete.m4]) m4_include([m4/nls.m4]) m4_include([m4/po.m4]) m4_include([m4/progtest.m4]) m4_include([acinclude.m4]) ngraph-gtk-6.06.13/mkinstalldirs0000755000175000017500000000672212241364552013473 00000000000000#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2009-04-28.21; # UTC # Original author: Noah Friedman # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' IFS=" "" $nl" errstatus=0 dirmode= usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to ." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit $? ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit $? ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" else # On NextStep and OpenStep, the 'mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because '.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do case $file in /*) pathcomp=/ ;; *) pathcomp= ;; esac oIFS=$IFS IFS=/ set fnord $file shift IFS=$oIFS for d do test "x$d" = x && continue pathcomp=$pathcomp$d case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr= chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp=$pathcomp/ done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ngraph-gtk-6.06.13/pixmap/0000755000175000017500000000000012241600065012224 500000000000000ngraph-gtk-6.06.13/pixmap/ngraph_align_b.png0000644000175000017500000000072712241111702015605 00000000000000PNG  IHDR szzsRGBbKGD pHYs  tIME 5FWIDATX핽JAF;3Y46؊)B}b_N00 ,DmوsmEv.0̙T争"5f@/iV>9([$kBDU(d;X1]@m@h=7" LXV1܏KE*G?ONM0,Țy~}6kz U22  P;vsXYDnj1 3F#2O!x^כ&Rp\wnJ9#cMpP1XJt.Y&c0$Kx+9i!aSEfwSIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_coordwin.png0000644000175000017500000000053512241111702016033 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*IDAT8˽a Y, Ai~h%PEHH^@` :~[r{96=o#) mw4\곱vz7-G3 vpAg;*IDATH Pۙ3Svyޟ BrєZ8"®hcsNӝ(٠JبN 3CC0RFS@94Дw!XH @zu[4Tݺ%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:38+09:00pIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_trimming.png0000644000175000017500000000057212241111702016036 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*IDAT8˵T[0[e0mP Gi8&9`~8kf"OF՛34`^1=5U ^z&0|o۔EVI~::=9LrV%:饰leL1[X$Jz2Ppo[ }d;;?${ue%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:52+09:00{oIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_eval.png0000644000175000017500000000047312241111702015137 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*hIDAT8c`2`PPH,0.#7 5, F]HSq qy2aA Mt ta 2] ? "D%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:39+09:00~IENDB`ngraph-gtk-6.06.13/pixmap/Makefile.in0000644000175000017500000003735112241364551014231 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pixmap DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_pixmap_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pixmapdir)" DATA = $(dist_pixmap_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ pixmapdir = $(datadir)/pixmaps/$(PACKAGE) dist_pixmap_DATA = ngraph_arc.png ngraph_cross.png ngraph_filewin.png \ ngraph_legendpoint.png ngraph_math.png ngraph_scale.png \ ngraph_trimming.png ngraph_axispoint.png ngraph_datapoint.png \ ngraph_frame.png ngraph_legendwin.png ngraph_mergewin.png \ ngraph_section.png ngraph_zoom.png ngraph_axiswin.png \ ngraph_draw.png ngraph_gauss.png ngraph_line.png \ ngraph_point.png ngraph_single.png ngraph_coordwin.png \ ngraph_eval.png ngraph_infowin.png ngraph_mark.png \ ngraph_rect.png ngraph_text.png ngraph_align_b.png \ ngraph_align_hc.png ngraph_align_l.png ngraph_align_r.png \ ngraph_align_t.png ngraph_align_vc.png all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pixmap/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmap/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_pixmapDATA: $(dist_pixmap_DATA) @$(NORMAL_INSTALL) @list='$(dist_pixmap_DATA)'; test -n "$(pixmapdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pixmapdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pixmapdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pixmapdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pixmapdir)" || exit $$?; \ done uninstall-dist_pixmapDATA: @$(NORMAL_UNINSTALL) @list='$(dist_pixmap_DATA)'; test -n "$(pixmapdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pixmapdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(pixmapdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_pixmapDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_pixmapDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_pixmapDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_pixmapDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/pixmap/ngraph_cross.png0000644000175000017500000000045312241111702015337 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*XIDAT8QA g;VCmōx3cU2lZ$\TR+NJGgv|sC$s܂ %a%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:37+09:008#IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_mergewin.png0000644000175000017500000000047612241111702016030 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*kIDAT8 0C;mV<МBH@3 "`V!)*@mT<2F!)ohyvo)~WD/x&_2pZwnEjnR%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:47+09:00:IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_axiswin.png0000644000175000017500000000051712241111702015671 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*|IDAT8Q C !N+e_˗}*DP@V NN-/ٶ͞y`:c۲tTnHfR!H7p)'Ξ`!NbeR#baAig̵n4Rfe޻fΙ Ty  DlUY1.*Kxt(9&H=0 kt##-IIpX.(%!ˉ⭭/l˩Ɇg@ѳjʔ25%b6ug{z/ B?*up*~N62D+KK0 dYH S@ flݛh?io_ab*ԚD 0Y-ht8tusWWxOP+13;?B&rm8 @<$~a3P22Z<%Tc.{de<@;<,JOg lIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_legendpoint.png0000644000175000017500000000055612241111702016522 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*IDAT8˵ C{icczA)]-6l)"7aSEڃ`$etS(K%{x Q#JSf7(!Xιs1pA ]3:a Z\ML?ב䜩P$|_[%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:43+09:00)IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_single.png0000644000175000017500000000041312241111702015463 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*8IDAT8c`&bU2f#A`saCe&*F]Gzyˣ^x %tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:51+09:00JIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_mark.png0000644000175000017500000000047712241111702015146 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*lIDAT8K Dg]k5,J|=KZ[`[1o*FF'(~0GgGƣD,0ΟlC%8>:Bro! X n%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:45+09:00rbIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_filewin.png0000644000175000017500000000051512241111702015642 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*zIDAT8ݕK 0DgBo`EM JDyPET+$I@h`Z|iB2!Y Y EiQQ夠&5+9Y)gb'P(g:T"u 5 x%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:40+09:00 ZIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_datapoint.png0000644000175000017500000000053412241111702016171 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*IDAT8ՔK DW KI&/3|l0!.0 r~R<_->o^E ڥuʧu%fLJCÛB0\h`e$BّzĜ!0TvD <%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:37+09:008#IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_align_t.png0000644000175000017500000000070412241111702015622 00000000000000PNG  IHDR szzsRGBbKGDlIDATXJQsgjRk@F _"r!Bzh#F" h*Q,C ehӢf*Wwq.= Oe<`MCtf%e04zk ,e_e `c!~pCGӎ4Si^EJX}m[\VE=[#;S|PhE# L>n0#d1F (%<<PEV :fyicж @pUMF9R~B5ub ^ b)GTM& G7k[b$8e&3C4_spA+OIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_zoom.png0000644000175000017500000000052412241111702015171 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*IDAT8ՓK Wh)<袬dH9&y j~Ϯ61Jj1qU,#S1TdvN9uΧկ<#g{S~rm'̴l۞#nȝ, mL%tEXtdate:create2011-02-22T10:46:41+09:005 -%tEXtdate:modify2011-02-22T10:46:41+09:00D٘IENDB`ngraph-gtk-6.06.13/pixmap/Makefile.am0000644000175000017500000000125312241111702014174 00000000000000pixmapdir = $(datadir)/pixmaps/$(PACKAGE) dist_pixmap_DATA = ngraph_arc.png ngraph_cross.png ngraph_filewin.png \ ngraph_legendpoint.png ngraph_math.png ngraph_scale.png \ ngraph_trimming.png ngraph_axispoint.png ngraph_datapoint.png \ ngraph_frame.png ngraph_legendwin.png ngraph_mergewin.png \ ngraph_section.png ngraph_zoom.png ngraph_axiswin.png \ ngraph_draw.png ngraph_gauss.png ngraph_line.png \ ngraph_point.png ngraph_single.png ngraph_coordwin.png \ ngraph_eval.png ngraph_infowin.png ngraph_mark.png \ ngraph_rect.png ngraph_text.png ngraph_align_b.png \ ngraph_align_hc.png ngraph_align_l.png ngraph_align_r.png \ ngraph_align_t.png ngraph_align_vc.png ngraph-gtk-6.06.13/pixmap/ngraph_align_hc.png0000644000175000017500000000111512241111702015746 00000000000000PNG  IHDR szzsRGBbKGDIDATXJ[A3wLlbJ"DJoU! + A7.!>PdHR?JۖpX] h]:*kvuu0UL7Q/rޭcDF|~ِ/McBN(Բ H$jz|Y[Xq.⦑_K2IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_frame.png0000644000175000017500000000044712241111702015303 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*TIDAT8c`q?F1bD7g"V< $xՓ)D!mĄA B/X&2& m8KA+0 8%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:41+09:00-IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_align_l.png0000644000175000017500000000073112241111702015612 00000000000000PNG  IHDR szzsRGBbKGDIDATXKQǿ=]CAdbt(B) @4`ѱkEPj]\x17oQ>'",W*opE+z?oQ*VpPW[Gzf@׃)afo40%K!ŒP`73H03hiaZh?@0KT @~ kX=W3+nK!6 09L>oN) 0|2mHT,>3dh@#@gs2G֜}7)qn֭"N:=C|7nTo`ƚ>e+u!ZIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_gauss.png0000644000175000017500000000045112241111702015326 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*VIDAT8c`0$-D!0l|TDa %` .>/c^!1ÑLⶈmlDžKq Y 8%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:41+09:00-IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_point.png0000644000175000017500000000053512241111702015340 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*IDAT8͔K 0Dg`Zh>k=.{@fg 7 &6m F mǞCHr<6@`;n,ERCSE1{Mh2B_pfw%Џ{<XJ)%tEXtdate:create2011-02-22T10:47:56+09:00Ku%tEXtdate:modify2011-02-22T10:47:56+09:00ͿIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_math.png0000644000175000017500000000046212241111702015137 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*_IDAT8K DWU?V6ñgS:T (;@\7®Qg*c[ EIȑ_"{.z X<%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:46+09:00CIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_scale.png0000644000175000017500000000051012241111702015267 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*uIDAT8˵A 9=u,#b4g Q[_iiVaDfԾq@"f4v $Q"aMȒKD/O|BP4r7JaP1=S4I X$5y%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:49+09:00gIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_infowin.png0000644000175000017500000000054712241111702015663 00000000000000PNG  IHDRNbKGD X pHYsHHFk> vpAg;*IDATHQ CWf_3[dTbkKETU8'd@g (SVD O!6N5z]Q6rb9cyiG\ X*3U&[G=˅? ̜B }X)@|P6@+yfl%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:42+09:00ſIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_section.png0000644000175000017500000000041112241111702015644 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*6IDAT8c`BGK* F vpAg;*UIDAT8!  (6p2b]D5;XQ}11aI0%@ @ۀy0Gu*FM%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:44+09:00IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_axispoint.png0000644000175000017500000000055312241111702016225 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*IDAT8˵A ] TVwڿ|G)lzU_H)v"".$HOeW8}I(k4Trk3L Rbhb{y?+hY 1f =Lkv/]*Nx%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:31+09:00IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_arc.png0000644000175000017500000000045112241111702014751 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*VIDAT8c`쀑hé4@dð%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:25+09:00 IENDB`ngraph-gtk-6.06.13/pixmap/ngraph_text.png0000644000175000017500000000043212241111702015167 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*GIDAT8c`FTBHE!a]Ex8e QGx153 ,z%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:52+09:00{oIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_rect.png0000644000175000017500000000041312241111702015137 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*8IDAT8c`qS2Dm ƝXGu8j4gÖąT$%^%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:49+09:00gIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_align_r.png0000644000175000017500000000070312241111702015617 00000000000000PNG  IHDR szzsRGBbKGDkIDATXJQ;NӦE(J"N D}`Ao sѲehs۴mlww=߹p>.RP*wŢPP*uyi!J"q_Lw `Di`&6`E<q|Dx _6Z8)?R'$^2qaH󽧪njsՊ,р nky;{X `ýny|4|)&kx:0d;ׄ2٩>:nFhW@,;pk< h6τk0&Hv@14}ЩV_g$pVWo3pIENDB`ngraph-gtk-6.06.13/pixmap/ngraph_legendwin.png0000644000175000017500000000053112241111702016157 00000000000000PNG  IHDRw bKGD1 pHYsHHFk> vpAg;*IDAT8˵Q !DgijzjJ+Dʊ;I5*`h mwhLm2~UϚ=Wo} 8UVXfɻʓWI6)Y!cb{-+h~%tEXtdate:create2011-02-17T10:47:16+09:00~k%tEXtdate:modify2011-02-17T10:45:44+09:00IENDB`ngraph-gtk-6.06.13/pathconv.sh0000644000175000017500000000111412241111710013013 00000000000000#! /bin/sh if [ $# -ne 8 ] then echo "error: wrong number of arguments ($0)." exit fi BINDIR=$1 shift DOCDIR=$1 shift LIBEXECDIR=$1 shift LIBDIR=$1 shift DATADIR=$1 shift CONFDIR=$1 shift PIXMAPDIR=$1 shift TARGET=`basename $1 .in` LC_ALL=C export LC_ALL cat $1 | sed -e "s!BINDIRDEF!$BINDIR!g" \ -e "s!DOCDIRDEF!$DOCDIR!g" \ -e "s!LIBEXECDIRDEF!$LIBEXECDIR!g" \ -e "s!LIBDIRDEF!$LIBDIR!g" \ -e "s!DATADIRDEF!$DATADIR!g" \ -e "s!PIXMAPDIRDEF!$PIXMAPDIR!g" \ -e "s!CONFDIRDEF!$CONFDIR!g" > $TARGET ngraph-gtk-6.06.13/plugins/0000755000175000017500000000000012241600066012410 500000000000000ngraph-gtk-6.06.13/plugins/ruby.c0000644000175000017500000011013012241111713013445 00000000000000#include #include #include #include #ifdef HAVE_ALLOCA_H # include #elif defined __GNUC__ # ifndef alloca # define alloca __builtin_alloca # endif #elif defined _AIX # define alloca __alloca #elif defined _MSC_VER # include # define alloca _alloca #else # include # ifdef __cplusplus extern "C" # endif void *alloca (size_t); #endif #include "config.h" #include "../src/ngraph.h" #ifdef TRUE #undef TRUE #endif #define TRUE 1 #ifdef FALSE #undef FALSE #endif #define FALSE 0 static int Initialized = FALSE; static VALUE NgraphClass, NgraphModule; static ID Uniq, Argv; static char *DummyArgv[] = {"ngraph_ruby", NULL}; static char **DummyArgvPtr = DummyArgv; static int DummyArgc = 1; #define VAL2INT(val) (NIL_P(val) ? 0 : NUM2INT(val)) #define VAL2DBL(val) (NIL_P(val) ? 0.0 : NUM2DBL(val)) #define VAL2STR(val) (NIL_P(val) ? NULL : StringValueCStr(val)) struct ngraph_instance { int id, oid, rcode; struct objlist *obj; }; struct obj_ids { int *ids, num; struct objlist *obj; }; static VALUE get_ngraph_obj(const char *name); static VALUE str2inst_get_ary(VALUE data1); static VALUE str2inst_ensure(VALUE data2); static VALUE obj_get(VALUE klass, VALUE id_value, const char *name); static VALUE tainted_utf8_str_new(const char *str); static VALUE tainted_utf8_str_new(const char *str) { size_t l; VALUE s; if (str == NULL) { return Qnil; } l = strlen(str); s = rb_enc_str_new(str, l, rb_utf8_encoding()); rb_obj_taint(s); return s; } static void ngraph_object_free(struct ngraph_instance *inst) { free(inst); } static VALUE ngraph_inst_method_equal(VALUE klass1, VALUE klass2) { struct ngraph_instance *inst1, *inst2; if (! rb_obj_is_kind_of(klass2, NgraphClass)) { return Qfalse; } Data_Get_Struct(klass1, struct ngraph_instance, inst1); Data_Get_Struct(klass2, struct ngraph_instance, inst2); if (inst1->obj == inst2->obj && inst1->oid == inst2->oid) { return Qtrue; } return Qfalse; } static VALUE ngraph_inst_method_compare(VALUE klass1, VALUE klass2) { struct ngraph_instance *inst1, *inst2; int r; if (! rb_obj_is_kind_of(klass2, NgraphClass)) { return Qnil; } Data_Get_Struct(klass1, struct ngraph_instance, inst1); Data_Get_Struct(klass2, struct ngraph_instance, inst2); if (inst1->obj != inst2->obj) { return Qnil; } if (inst1->oid == inst2->oid) { r = 0; } else if (inst1->oid > inst2->oid) { r = 1; } else { r = -1; } return INT2FIX(r); } static struct ngraph_instance * check_id(VALUE klass) { struct ngraph_instance *inst; int id, r, last; ngraph_arg arg; ngraph_returned_value oid; Data_Get_Struct(klass, struct ngraph_instance, inst); if (inst->id < 0) { rb_raise(rb_eArgError, "%s: the instance is already deleted.", rb_obj_classname(klass)); } last = ngraph_get_obj_last_id(inst->obj); if (inst->id <= last) { arg.num = 0; r = ngraph_getobj(inst->obj, "oid", inst->id, &arg, &oid); if (r >= 0 && inst->oid == oid.i) { return inst; } if (r < 0) { inst->id = -1; rb_raise(rb_eArgError, "%s: the instance is already deleted.", rb_obj_classname(klass)); } } id = ngraph_get_id_by_oid(inst->obj, inst->oid); inst->id = id; return inst; } static VALUE ngraph_inst_method_move_up(VALUE klass) { struct ngraph_instance *inst; inst = check_id(klass); if (inst == NULL) { return Qnil; } inst->id = ngraph_move_up(inst->obj, inst->id); return klass; } static VALUE ngraph_inst_method_move_down(VALUE klass) { struct ngraph_instance *inst; inst = check_id(klass); if (inst == NULL) { return Qnil; } inst->id = ngraph_move_down(inst->obj, inst->id); return klass; } static VALUE ngraph_inst_method_move_top(VALUE klass) { struct ngraph_instance *inst; inst = check_id(klass); if (inst == NULL) { return Qnil; } inst->id = ngraph_move_top(inst->obj, inst->id); return klass; } static VALUE ngraph_inst_method_move_last(VALUE klass) { struct ngraph_instance *inst; inst = check_id(klass); if (inst == NULL) { return Qnil; } inst->id = ngraph_move_last(inst->obj, inst->id); return klass; } static int check_inst_args(VALUE self, VALUE arg, const char *field, struct ngraph_instance **inst1, struct ngraph_instance **inst2) { *inst1 = check_id(self); if (*inst1 == NULL) { return 1; } if (! rb_obj_is_kind_of(arg, NgraphClass)) { rb_raise(rb_eArgError, "%s#%s: illegal type of the argument (%s).", rb_obj_classname(self), field, rb_obj_classname(arg)); } *inst2 = check_id(arg); if (*inst2 == NULL) { return 1; } if ((*inst1)->obj != (*inst2)->obj) { rb_raise(rb_eArgError, "%s#%s: illegal type of the argument (%s).", rb_obj_classname(self), field, rb_obj_classname(arg)); } return 0; } static VALUE ngraph_inst_method_exchange(VALUE self, VALUE arg) { struct ngraph_instance *inst1, *inst2; int id, r; r = check_inst_args(self, arg, "exchange", &inst1, &inst2); if (r) { return Qnil; } r = ngraph_exchange(inst1->obj, inst1->id, inst2->id); if (r < 0) { return Qnil; } id = inst1->id; inst1->id = inst2->id; inst2->id = id; return self; } static VALUE ngraph_inst_method_copy(VALUE self, VALUE arg) { struct ngraph_instance *inst1, *inst2; int r; r = check_inst_args(self, arg, "copy", &inst1, &inst2); if (r) { return Qnil; } r = ngraph_copy(inst1->obj, inst1->id, inst2->id); if (r < 0) { return Qnil; } return self; } static VALUE ngraph_inst_method_to_str(VALUE klass) { struct ngraph_instance *inst; const char *name; VALUE rstr; inst = check_id(klass); if (inst == NULL) { return Qnil; } name = ngraph_get_obj_name(inst->obj); rstr = rb_sprintf("%s:%d", name, inst->id); return rstr; } static VALUE ngraph_inst_method_rcode(VALUE klass) { struct ngraph_instance *inst; inst = check_id(klass); if (inst == NULL) { return Qnil; } return INT2FIX(inst->rcode); } static VALUE str2inst_get_ary(VALUE data1) { const char *name; int i, n; VALUE ary, obj, klass; struct obj_ids *obj_ids; obj_ids = (struct obj_ids *) data1; name = ngraph_get_obj_name(obj_ids->obj); klass = get_ngraph_obj(name); ary = rb_ary_new2(obj_ids->num); n = obj_ids->num; for (i = 0; i < n; i++) { obj = obj_get(klass, INT2FIX(obj_ids->ids[i]), name); rb_ary_push(ary, obj); } return ary; } static VALUE str2inst_ensure(VALUE data2) { int *ids; ids = (int *) data2; free(ids); return Qnil; } static VALUE obj_get_from_str(VALUE klass, VALUE arg, const char *name) { const char *str; struct obj_ids obj_ids; VALUE ary, inst; str = StringValueCStr(arg); inst = rb_sprintf("%s:%s", name, str); obj_ids.obj = ngraph_get_instances_by_str(StringValueCStr(inst), &obj_ids.num, &obj_ids.ids); if (obj_ids.obj == NULL) { return rb_ary_new(); } ary = rb_ensure(str2inst_get_ary, (VALUE) &obj_ids, str2inst_ensure, (VALUE) obj_ids.ids); return ary; } static VALUE obj_get(VALUE klass, VALUE id_value, const char *name) { struct ngraph_instance *inst; struct objlist *nobj; ngraph_returned_value oid; ngraph_arg arg; VALUE new_inst; int id, n; if (RB_TYPE_P(id_value, T_STRING)) { return obj_get_from_str(klass, id_value, name); } id = NUM2INT(id_value); nobj = ngraph_get_object(name); n = ngraph_get_obj_last_id(nobj); if (id < 0) { id = n + id + 1; } if (id < 0 || id > n) { return Qnil; } new_inst = Data_Make_Struct(klass, struct ngraph_instance, NULL, ngraph_object_free, inst); inst->obj = nobj; inst->id = id; inst->rcode = id; arg.num = 0; ngraph_getobj(inst->obj, "oid", inst->id, &arg, &oid); inst->oid = oid.i; return new_inst; } static VALUE obj_field_args(VALUE klass, VALUE field, const char *name) { struct objlist *nobj; const char* args; enum ngraph_object_field_type type; nobj = ngraph_get_object(name); type = ngraph_get_obj_field_type(nobj, StringValueCStr(field)); if (type < NVFUNC) { return Qnil; } args = ngraph_get_obj_field_args(nobj, StringValueCStr(field)); if (args == NULL) { args = ""; } else if (args[0] == '\0') { args = "void"; } return rb_str_new2(args); } static VALUE obj_field_type(VALUE klass, VALUE field, const char *name) { struct objlist *nobj; enum ngraph_object_field_type type; nobj = ngraph_get_object(name); type = ngraph_get_obj_field_type(nobj, StringValueCStr(field)); return INT2FIX(type); } static VALUE obj_field_permission(VALUE klass, VALUE field, const char *name) { struct objlist *nobj; int perm; nobj = ngraph_get_object(name); perm = ngraph_get_obj_field_permission(nobj, StringValueCStr(field)); return INT2FIX(perm); } static VALUE get_ngraph_obj(const char *name) { char buf[64]; strncpy(buf, name, sizeof(buf) - 1); buf[sizeof(buf) - 1] = '\0'; buf[0] = toupper(buf[0]); return rb_const_get(NgraphModule, rb_intern(buf)); } static void add_child(VALUE ary, struct objlist *parent, int noinst) { struct objlist *ocur; VALUE obj; int id; const char *name; ocur = ngraph_get_obj_root(); while (ocur) { if (ngraph_get_obj_parent(ocur) == parent) { id = ngraph_get_obj_last_id(ocur); if (id != -1 || ! noinst) { name = ngraph_get_obj_name(ocur); obj = get_ngraph_obj(name); if (! NIL_P(obj)) { rb_ary_push(ary, obj); } } add_child(ary, ocur, noinst); } ocur = ngraph_get_obj_next(ocur); } } static VALUE obj_derive(VALUE klass, VALUE arg, const char *name) { struct objlist *obj; int noinst, id; VALUE robj, ary; noinst = RTEST(arg); obj = ngraph_get_object(name); if (obj == NULL) { return Qnil; } ary = rb_ary_new(); id = ngraph_get_obj_last_id(obj); if (id != -1 || ! noinst) { robj = get_ngraph_obj(name); if (! NIL_P(robj)) { rb_ary_push(ary, robj); } } add_child(ary, obj, noinst); return ary; } static VALUE obj_each(VALUE klass, const char *name) { struct objlist *nobj; int i, n; VALUE inst, id, ary; nobj = ngraph_get_object(name); n = ngraph_get_obj_last_id(nobj) + 1; if (n < 1) { return klass; } name = ngraph_get_obj_name(nobj); ary = rb_ary_new2(n); for (i = 0; i < n; i++) { id = INT2FIX(i); inst = obj_get(klass, id, name); rb_ary_store(ary, i, inst); } rb_ary_each(ary); return klass; } static VALUE obj_move_up(VALUE klass, VALUE arg, const char *name) { struct objlist *nobj; int id, r; nobj = ngraph_get_object(name); id = NUM2INT(arg); r = ngraph_move_up(nobj, id); if (r < 0) { return Qnil; } return klass; } static VALUE obj_move_down(VALUE klass, VALUE arg, const char *name) { struct objlist *nobj; int id, r; nobj = ngraph_get_object(name); id = NUM2INT(arg); r = ngraph_move_down(nobj, id); if (r < 0) { return Qnil; } return klass; } static VALUE obj_move_top(VALUE klass, VALUE arg, const char *name) { struct objlist *nobj; int id, r; nobj = ngraph_get_object(name); id = NUM2INT(arg); r = ngraph_move_top(nobj, id); if (r < 0) { return Qnil; } return klass; } static VALUE obj_move_last(VALUE klass, VALUE arg, const char *name) { struct objlist *nobj; int id, r; nobj = ngraph_get_object(name); id = NUM2INT(arg); r = ngraph_move_last(nobj, id); if (r < 0) { return Qnil; } return klass; } static VALUE obj_exchange(VALUE klass, VALUE arg1, VALUE arg2, const char *name) { struct objlist *nobj; int id1, id2, r; nobj = ngraph_get_object(name); id1 = NUM2INT(arg1); id2 = NUM2INT(arg2); r = ngraph_exchange(nobj, id1, id2); if (r < 0) { return Qnil; } return klass; } static VALUE obj_copy(VALUE klass, VALUE arg1, VALUE arg2, const char *name) { struct objlist *nobj; int id1, id2, r; nobj = ngraph_get_object(name); id1 = NUM2INT(arg1); id2 = NUM2INT(arg2); r = ngraph_copy(nobj, id1, id2); if (r < 0) { return Qnil; } return klass; } static VALUE obj_size(VALUE klass, const char *name) { struct objlist *nobj; int n; nobj = ngraph_get_object(name); n = ngraph_get_obj_last_id(nobj); n = (n >= 0) ? n + 1 : 0; return INT2FIX(n); } static VALUE obj_exist(VALUE klass, const char *name) { struct objlist *nobj; int n; nobj = ngraph_get_object(name); n = ngraph_get_obj_last_id(nobj); return (n >= 0) ? Qtrue : Qfalse; } static VALUE obj_del_from_str(VALUE klass, VALUE arg, const char *name) { const char *str; int i, *ids, n; struct objlist *obj; VALUE inst; str = StringValueCStr(arg); inst = rb_sprintf("%s:%s", name, str); obj = ngraph_get_instances_by_str(StringValueCStr(inst), &n, &ids); if (obj == NULL) { return klass; } for (i = n - 1; i >= 0; i--) { ngraph_del(obj, ids[i]); } free(ids); return klass; } static VALUE obj_del(VALUE klass, VALUE id_value, const char *name) { int id, n; struct objlist *nobj; if (RB_TYPE_P(id_value, T_STRING)) { return obj_del_from_str(klass, id_value, name); } id = NUM2INT(id_value); nobj = ngraph_get_object(name); n = ngraph_get_obj_last_id(nobj); if (id < 0) { id = n + id + 1; } if (id < 0 || id > n) { return Qnil; } ngraph_del(nobj, id); return klass; } static VALUE ngraph_inst_method_del(VALUE self) { int id; struct ngraph_instance *inst; inst = check_id(self); if (inst == NULL) { return Qnil; } id = inst->id; inst->id = -1; ngraph_del(inst->obj, id); return INT2FIX(id); } static VALUE obj_new_with_block_body(VALUE arg) { return rb_yield(arg); } static VALUE obj_new_with_block_ensure(VALUE arg) { return ngraph_inst_method_del(arg); } static VALUE obj_new(VALUE klass, const char *name) { VALUE new_inst; struct objlist *nobj; int r; nobj = ngraph_get_object(name); r = ngraph_new(nobj); if (r < 0) { return Qnil; } new_inst = obj_get(klass, INT2FIX(r), name); if (RTEST(rb_block_given_p())) { new_inst = rb_ensure(obj_new_with_block_body, new_inst, obj_new_with_block_ensure, new_inst); } return new_inst; } static VALUE obj_current(VALUE klass, const char *name) { VALUE new_inst; struct objlist *nobj; int id; nobj = ngraph_get_object(name); id = ngraph_get_obj_current_id(nobj); if (id < 0) { return Qnil; } new_inst = obj_get(klass, INT2FIX(id), name); return new_inst; } static VALUE inst_get_int(VALUE self, const char *field) { struct ngraph_instance *inst; ngraph_returned_value num; ngraph_arg carg; inst = check_id(self); if (inst == NULL) { return Qnil; } carg.num = 0; inst->rcode = ngraph_getobj(inst->obj, field, inst->id, &carg, &num); if (inst->rcode < 0) { return Qnil; } return INT2NUM(num.i); } static VALUE inst_get_double(VALUE self, const char *field) { struct ngraph_instance *inst; ngraph_returned_value num; ngraph_arg carg; inst = check_id(self); if (inst == NULL) { return Qnil; } carg.num = 0; inst->rcode = ngraph_getobj(inst->obj, field, inst->id, &carg, &num); if (inst->rcode < 0) { return Qnil; } return rb_float_new(num.d); } static VALUE inst_get_bool(VALUE self, const char *field) { struct ngraph_instance *inst; ngraph_returned_value num; ngraph_arg carg; VALUE val; inst = check_id(self); if (inst == NULL) { return Qnil; } carg.num = 0; inst->rcode = ngraph_getobj(inst->obj, field, inst->id, &carg, &num); if (inst->rcode < 0) { return Qnil; } val = num.i ? Qtrue : Qfalse; return val; } static VALUE inst_get_str(VALUE self, const char *field) { struct ngraph_instance *inst; ngraph_returned_value str; ngraph_arg carg; inst = check_id(self); if (inst == NULL) { return Qnil; } carg.num = 0; inst->rcode = ngraph_getobj(inst->obj, field, inst->id, &carg, &str); if (inst->rcode < 0) { return Qnil; } return tainted_utf8_str_new(str.str); } static VALUE inst_get_obj(VALUE self, const char *field) { struct ngraph_instance *inst; ngraph_returned_value str; ngraph_arg carg; const char *name; int id, n, *ids; struct objlist *obj; VALUE klass; inst = check_id(self); if (inst == NULL) { return Qnil; } carg.num = 0; inst->rcode = ngraph_getobj(inst->obj, field, inst->id, &carg, &str); if (inst->rcode < 0) { return Qnil; } if (str.str == NULL) { return Qnil; } obj = ngraph_get_instances_by_str(str.str, &n, &ids); if (obj == NULL) { return Qnil; } id = ids[n - 1]; free(ids); name = ngraph_get_obj_name(obj); if (name == NULL) { return Qnil; } klass = get_ngraph_obj(name); return obj_get(klass, INT2FIX(id), name); } static VALUE inst_put_int(VALUE self, VALUE arg, const char *field) { struct ngraph_instance *inst; ngraph_value num; inst = check_id(self); if (inst == NULL) { return Qnil; } num.i = NUM2INT(arg); inst->rcode = ngraph_putobj(inst->obj, field, inst->id, &num); if (inst->rcode < 0) { return Qnil; } return arg; } static VALUE inst_put_double(VALUE self, VALUE arg, const char *field) { struct ngraph_instance *inst; ngraph_value num; inst = check_id(self); if (inst == NULL) { return Qnil; } num.d = NUM2DBL(arg); inst->rcode = ngraph_putobj(inst->obj, field, inst->id, &num); if (inst->rcode < 0) { return Qnil; } return arg; } static VALUE inst_put_bool(VALUE self, VALUE arg, const char *field) { struct ngraph_instance *inst; ngraph_value num; inst = check_id(self); if (inst == NULL) { return Qnil; } num.i = RTEST(arg) ? 1 : 0; inst->rcode = ngraph_putobj(inst->obj, field, inst->id, &num); if (inst->rcode < 0) { return Qnil; } return arg; } static VALUE inst_put_enum(VALUE self, VALUE arg, const char *field, int max) { struct ngraph_instance *inst; ngraph_value num; inst = check_id(self); if (inst == NULL) { return Qnil; } num.i = NUM2INT(arg); if (num.i < 0 || num.i > max) { return Qnil; } inst->rcode = ngraph_putobj(inst->obj, field, inst->id, &num); if (inst->rcode < 0) { return Qnil; } return arg; } static VALUE inst_put_str(VALUE self, VALUE arg, const char *field) { struct ngraph_instance *inst; ngraph_value str; inst = check_id(self); if (inst == NULL) { return Qnil; } if (NIL_P(arg)) { str.str = NULL; } else { str.str = StringValueCStr(arg); } inst->rcode = ngraph_putobj(inst->obj, field, inst->id, &str); if (inst->rcode < 0) { return Qnil; } return arg; } static VALUE inst_put_obj(VALUE self, VALUE arg, const char *field) { struct ngraph_instance *inst1, *inst2; ngraph_value str; char buf[128]; const char *name, *ptr; int *ids; struct objlist *obj; switch (TYPE(arg)) { case T_NIL: ptr = NULL; break; case T_STRING: ptr = StringValueCStr(arg); obj = ngraph_get_instances_by_str(ptr, NULL, &ids); if (obj == NULL) { rb_raise(rb_eArgError, "%s#%s: illegal instance representation (%s).", rb_obj_classname(self), field, ptr); } free(ids); break; default: if (! rb_obj_is_kind_of(arg, NgraphClass)) { rb_raise(rb_eArgError, "%s#%s: illegal type of the argument (%s).", rb_obj_classname(self), field, rb_obj_classname(arg)); } inst2 = check_id(arg); if (inst2 == NULL) { return Qnil; } name = ngraph_get_obj_name(inst2->obj); #if 0 snprintf(buf, sizeof(buf), "%s:%d", name, inst2->id); #else snprintf(buf, sizeof(buf), "%s:^%d", name, inst2->oid); /* shoud instance be tighten? */ #endif ptr = buf; } inst1 = check_id(self); if (inst1 == NULL) { return Qnil; } str.str = ptr; inst1->rcode = ngraph_putobj(inst1->obj, field, inst1->id, &str); if (inst1->rcode < 0) { return Qnil; } return arg; } static VALUE inst_put_iarray(VALUE self, VALUE arg, const char *field) { VALUE tmpstr; struct ngraph_instance *inst; ngraph_value ary; int num, i; inst = check_id(self); if (inst == NULL) { return Qnil; } if (NIL_P(arg)) { num = 0; } else { if (!RB_TYPE_P(arg, T_ARRAY)) { rb_raise(rb_eArgError, "%s#%s: the argument must be an Array", rb_obj_classname(self), field); } num = RARRAY_LEN(arg); } ary.ary = NULL; if (num > 0) { ary.ary = rb_alloc_tmp_buffer(&tmpstr, sizeof(*ary.ary) + sizeof(union array) * num); ary.ary->num = num; if (ary.ary) { for (i = 0; i < num; i++) { ary.ary->ary[i].i = NUM2INT(rb_ary_entry(arg, i)); } } } inst->rcode = ngraph_putobj(inst->obj, field, inst->id, &ary); if (ary.ary) { rb_free_tmp_buffer(&tmpstr); } if (inst->rcode < 0) { return Qnil; } return arg; } static VALUE inst_get_iarray(VALUE self, const char *field) { struct ngraph_instance *inst; ngraph_returned_value cary; ngraph_arg carg; VALUE ary; int i; inst = check_id(self); if (inst == NULL) { return Qnil; } carg.num = 0; inst->rcode = ngraph_getobj(inst->obj, field, inst->id, &carg, &cary); if (inst->rcode < 0) { return Qnil; } ary = rb_ary_new2(cary.ary.num); for (i = 0; i < cary.ary.num; i++) { rb_ary_store(ary, i, INT2NUM(cary.ary.data.ia[i])); } return ary; } static VALUE inst_put_darray(VALUE self, VALUE arg, const char *field) { VALUE tmpstr; struct ngraph_instance *inst; ngraph_value ary; int num, i; inst = check_id(self); if (inst == NULL) { return Qnil; } if (NIL_P(arg)) { num = 0; } else { if (!RB_TYPE_P(arg, T_ARRAY)) { rb_raise(rb_eArgError, "%s#%s: the argument must be an Array", rb_obj_classname(self), field); } num = RARRAY_LEN(arg); } ary.ary = NULL; if (num > 0) { ary.ary = rb_alloc_tmp_buffer(&tmpstr, sizeof(*ary.ary) + sizeof(union array) * num); ary.ary->num = num; if (ary.ary) { for (i = 0; i < num; i++) { ary.ary->ary[i].d = NUM2DBL(rb_ary_entry(arg, i)); } } } inst->rcode = ngraph_putobj(inst->obj, field, inst->id, &ary); if (ary.ary) { rb_free_tmp_buffer(&tmpstr); } if (inst->rcode < 0) { return Qnil; } return arg; } static VALUE inst_get_darray(VALUE self, const char *field) { struct ngraph_instance *inst; ngraph_returned_value cary; ngraph_arg carg; VALUE ary; int i; inst = check_id(self); if (inst == NULL) { return Qnil; } carg.num = 0; inst->rcode = ngraph_getobj(inst->obj, field, inst->id, &carg, &cary); if (inst->rcode < 0) { return Qnil; } ary = rb_ary_new2(cary.ary.num); for (i = 0; i < cary.ary.num; i++) { rb_ary_store(ary, i, rb_float_new(cary.ary.data.da[i])); } return ary; } static VALUE inst_put_sarray(VALUE self, VALUE arg, const char *field) { struct ngraph_instance *inst; ngraph_value ary; int num, i; VALUE str, tmpstr; inst = check_id(self); if (inst == NULL) { return Qnil; } if (NIL_P(arg)) { num = 0; } else { if (!RB_TYPE_P(arg, T_ARRAY)) { rb_raise(rb_eArgError, "%s#%s: the argument must be an Array", rb_obj_classname(self), field); } num = RARRAY_LEN(arg); } ary.ary = NULL; if (num > 0) { ary.ary = rb_alloc_tmp_buffer(&tmpstr, sizeof(*ary.ary) + sizeof(union array) * num); ary.ary->num = num; if (ary.ary) { for (i = 0; i < num; i++) { str = rb_ary_entry(arg, i); ary.ary->ary[i].str = StringValueCStr(str); } } } inst->rcode = ngraph_putobj(inst->obj, field, inst->id, &ary); if (ary.ary) { rb_free_tmp_buffer(&tmpstr); } if (inst->rcode < 0) { return Qnil; } return arg; } static VALUE inst_get_sarray(VALUE self, const char *field) { struct ngraph_instance *inst; ngraph_returned_value cary; ngraph_arg carg; VALUE ary; int i; inst = check_id(self); if (inst == NULL) { return Qnil; } carg.num = 0; inst->rcode = ngraph_getobj(inst->obj, field, inst->id, &carg, &cary); if (inst->rcode < 0) { return Qnil; } ary = rb_ary_new2(cary.ary.num); for (i = 0; i < cary.ary.num; i++) { rb_ary_store(ary, i, tainted_utf8_str_new(cary.ary.data.sa[i])); } return ary; } static VALUE inst_exe_void_func(VALUE self, const char *field) { struct ngraph_instance *inst; ngraph_arg carg; inst = check_id(self); if (inst == NULL) { return Qnil; } carg.num = 0; inst->rcode = ngraph_exeobj(inst->obj, field, inst->id, &carg); if (inst->rcode < 0) { return Qnil; } return self; } static VALUE get_array_arg(VALUE self, const char *field, VALUE arg, int *num) { int n; VALUE ary, val; if (NIL_P(arg)) { *num = 0; return Qnil; } if (!RB_TYPE_P(arg, T_ARRAY)) { rb_raise(rb_eArgError, "%s#%s: the argument must be an Array", rb_obj_classname(self), field); } n = RARRAY_LEN(arg); ary = arg; if (n == 1) { val = rb_ary_entry(arg, 0); if (RB_TYPE_P(val, T_ARRAY)) { ary = val; n = RARRAY_LEN(val); } } *num = n; return ary; } static struct ngraph_array * allocate_iarray(VALUE self, volatile VALUE *tmpstr, VALUE arg, const char *field) { struct ngraph_array *narray; int i, num; VALUE ary; ary = get_array_arg(self, field, arg, &num); narray = rb_alloc_tmp_buffer(tmpstr, sizeof(*narray) + sizeof(union array) * num); if (narray == NULL) { return NULL; } narray->num = num; for (i = 0; i < num; i++) { narray->ary[i].i = NUM2INT(rb_ary_entry(ary, i)); } return narray; } static struct ngraph_array * allocate_darray(VALUE self, volatile VALUE *tmpstr, VALUE arg, const char *field) { struct ngraph_array *narray; int i, num; VALUE ary; ary = get_array_arg(self, field, arg, &num); narray = rb_alloc_tmp_buffer(tmpstr, sizeof(*narray) + sizeof(union array) * num); if (narray == NULL) { return NULL; } narray->num = num; for (i = 0; i < num; i++) { narray->ary[i].d = NUM2DBL(rb_ary_entry(ary, i)); } return narray; } static struct ngraph_array * allocate_sarray(VALUE self, volatile VALUE *tmpstr, VALUE arg, const char *field) { struct ngraph_array *narray; int i, num; VALUE str; VALUE ary; ary = get_array_arg(self, field, arg, &num); narray = rb_alloc_tmp_buffer(tmpstr, sizeof(*narray) + sizeof(union array) * num); if (narray == NULL) { return NULL; } narray->num = num; for (i = 0; i < num; i++) { str = rb_ary_entry(ary, i); narray->ary[i].str = StringValueCStr(str); } return narray; } static VALUE create_obj_arg(VALUE args) { int i, n; VALUE arg, str, uniq_args; struct ngraph_instance *inst; struct objlist *obj = NULL; const char *name; uniq_args = rb_funcall(args, Uniq, 0); n = RARRAY_LEN(uniq_args); str = rb_str_new2(""); for (i = 0; i < n; i++) { arg = rb_ary_entry(uniq_args, i); if (! rb_obj_is_kind_of(arg, NgraphClass)) { return Qnil; } inst = check_id(arg); if (inst == NULL) { return Qnil; } if (obj == NULL) { obj = inst->obj; name = ngraph_get_obj_name(inst->obj); rb_str_cat2(str, name); } else if (obj != inst->obj) { return Qnil; } rb_str_catf(str, "%c%d", (i) ? ',' : ':', inst->id); } return str; } static VALUE obj_func_obj(VALUE self, VALUE argv, const char *field, int type) { VALUE arg, rstr, val; int i, n; struct ngraph_instance *inst; ngraph_arg carg; int argc; ngraph_returned_value rval; const char *str; inst = check_id(self); if (inst == NULL) { return Qnil; } argc = RARRAY_LEN(argv); if (argc < 1) { str = NULL; } else { arg = rb_ary_entry(argv, 0); if (RB_TYPE_P(arg, T_ARRAY)) { if (argc > 1) { return Qnil; } n = RARRAY_LEN(arg); if (n < 1) { str = NULL; } else { rstr = create_obj_arg(arg); if (NIL_P(rstr)) { return Qnil; } str = StringValueCStr(rstr); } } else { rstr = create_obj_arg(argv); if (NIL_P(rstr)) { return Qnil; } str = StringValueCStr(rstr); } } carg.num = 1; carg.ary[0].str = str; if (type == NVFUNC) { inst->rcode = ngraph_exeobj(inst->obj, field, inst->id, &carg); } else { inst->rcode = ngraph_getobj(inst->obj, field, inst->id, &carg, &rval); } if (inst->rcode < 0) { return Qnil; } switch (type) { case NVFUNC: val = self; break; case NBFUNC: val = (rval.i) ? Qtrue : Qfalse; break; #if USE_NCHAR case NCFUNC: #endif case NIFUNC: val = INT2NUM(rval.i); break; case NDFUNC: val = rb_float_new(rval.d); break; case NSFUNC: val = tainted_utf8_str_new(rval.str); break; case NIAFUNC: val = rb_ary_new2(rval.ary.num); for (i = 0; i < rval.ary.num; i++) { rb_ary_store(val, i, INT2NUM(rval.ary.data.ia[i])); } break; case NDAFUNC: val = rb_ary_new2(rval.ary.num); for (i = 0; i < rval.ary.num; i++) { rb_ary_store(val, i, rb_float_new(rval.ary.data.da[i])); } break; case NSAFUNC: val = rb_ary_new2(rval.ary.num); for (i = 0; i < rval.ary.num; i++) { rb_ary_store(val, i, tainted_utf8_str_new(rval.ary.data.sa[i])); } break; default: val = Qnil; } return val; } #if 0 static VALUE get_str_func_argv(VALUE self, VALUE argv, const char *field) { ngraph_returned_value rval; struct ngraph_instance *inst; ngraph_arg *carg; VALUE tmpstr; inst = check_id(self); if (inst == NULL) { return Qnil; } carg = allocate_sarray(self, &tmpstr, argv, field); inst->rcode = ngraph_getobj(inst->obj, field, inst->id, carg, &rval); rb_free_tmp_buffer(&tmpstr); if (inst->rcode < 0) { return Qnil; } return tainted_utf8_str_new(rval.str ? rval.str : ""); } #endif static void add_obj_name_const(VALUE klass, struct objlist *nobj, const char *name) { const char *obj_name; char str[64]; VALUE val; if (nobj == NULL) { val = Qnil; } else { obj_name = ngraph_get_obj_name(nobj); strncpy(str, obj_name, sizeof(str) - 1); str[sizeof(str) - 1] = '\0'; str[0] = toupper(str[0]); val = ID2SYM(rb_intern(str)); } rb_define_const(klass, name, val); } static void add_obj_str_const(VALUE klass, const char *name, const char *str) { VALUE val; val = rb_str_new2(str); OBJ_FREEZE(val); rb_define_const(klass, name, val); } static void add_obj_const(VALUE klass, const char *name) { struct objlist *nobj, *next, *child, *parent; const char *str; nobj = ngraph_get_object(name); next = ngraph_get_obj_next(nobj); child = ngraph_get_obj_child(nobj); parent = ngraph_get_obj_parent(nobj); str = ngraph_get_obj_version(nobj); add_obj_str_const(klass, "VERSION", str); add_obj_str_const(klass, "NAME", name); add_obj_name_const(klass, parent, "PARENT"); add_obj_name_const(klass, next, "NEXT"); add_obj_name_const(klass, child, "CHILD"); } static void setup_obj_common(VALUE obj) { rb_extend_object(obj, rb_mEnumerable); rb_include_module(obj, rb_mComparable); rb_define_method(obj, "del", ngraph_inst_method_del, 0); rb_define_method(obj, "===", ngraph_inst_method_equal, 1); rb_define_method(obj, "<=>", ngraph_inst_method_compare, 1); rb_define_method(obj, "move_up", ngraph_inst_method_move_up, 0); rb_define_method(obj, "move_down", ngraph_inst_method_move_down, 0); rb_define_method(obj, "move_top", ngraph_inst_method_move_top, 0); rb_define_method(obj, "move_last", ngraph_inst_method_move_last, 0); rb_define_method(obj, "exchange", ngraph_inst_method_exchange, 1); rb_define_method(obj, "to_s", ngraph_inst_method_to_str, 0); rb_define_method(obj, "rcode", ngraph_inst_method_rcode, 0); rb_define_method(obj, "copy", ngraph_inst_method_copy, 1); } static void store_field_names(VALUE fields, const char *name) { VALUE field; field = rb_str_new2(name); OBJ_FREEZE(field); rb_ary_push(fields, field); } #include "ruby_ngraph.c" static void add_common_const(VALUE ngraph_module) { VALUE type, attr; type = rb_define_module_under(ngraph_module, "FIELD_TYPE"); #if USE_NCHAR rb_define_const(type, "CHAR", INT2FIX(NCHAR)); #endif rb_define_const(type, "VOID", INT2FIX(NVOID)); rb_define_const(type, "BOOL", INT2FIX(NBOOL)); rb_define_const(type, "INT", INT2FIX(NINT)); rb_define_const(type, "DOUBLE", INT2FIX(NDOUBLE)); rb_define_const(type, "STR", INT2FIX(NSTR)); rb_define_const(type, "POINTER", INT2FIX(NPOINTER)); rb_define_const(type, "IARRAY", INT2FIX(NIARRAY)); rb_define_const(type, "DARRAY", INT2FIX(NDARRAY)); rb_define_const(type, "SARRAY", INT2FIX(NSARRAY)); rb_define_const(type, "ENUM", INT2FIX(NENUM)); rb_define_const(type, "OBJ", INT2FIX(NOBJ)); #if USE_LABEL rb_define_const(type, "LABEL", INT2FIX(NLABEL)); #endif rb_define_const(type, "VFUNC", INT2FIX(NVFUNC)); rb_define_const(type, "BFUNC", INT2FIX(NBFUNC)); #if USE_NCHAR rb_define_const(type, "CFUNC", INT2FIX(NCFUNC)); #endif rb_define_const(type, "IFUNC", INT2FIX(NIFUNC)); rb_define_const(type, "DFUNC", INT2FIX(NDFUNC)); rb_define_const(type, "SFUNC", INT2FIX(NSFUNC)); rb_define_const(type, "IAFUNC", INT2FIX(NIAFUNC)); rb_define_const(type, "DAFUNC", INT2FIX(NDAFUNC)); rb_define_const(type, "SAFUNC", INT2FIX(NSAFUNC)); attr = rb_define_module_under(ngraph_module, "FIELD_PERMISSION"); rb_define_const(attr, "READ", INT2FIX(NREAD)); rb_define_const(attr, "WRITE", INT2FIX(NWRITE)); rb_define_const(attr, "EXEC", INT2FIX(NEXEC)); } static VALUE ngraph_class_new(VALUE self) { rb_raise(rb_eNotImpError, "%s: creation of an instance is forbidden.", rb_obj_classname(self)); return Qnil; } static VALUE nputs(VALUE module, VALUE str) { ngraph_puts(StringValueCStr(str)); return Qnil; } static VALUE nputerr(VALUE module, VALUE str) { ngraph_err_puts(StringValueCStr(str)); return Qnil; } static VALUE nsleep(VALUE module, VALUE arg) { int t; t = NUM2INT(arg); ngraph_sleep(t); return Qnil; } static VALUE ngraph_str2inst(VALUE module, VALUE arg) { const char *str; VALUE ary; struct obj_ids obj_ids; str = StringValueCStr(arg); obj_ids.obj = ngraph_get_instances_by_str(str, &obj_ids.num, &obj_ids.ids); if (obj_ids.obj == NULL) { return Qnil; } ary = rb_ensure(str2inst_get_ary, (VALUE) &obj_ids, str2inst_ensure, (VALUE) obj_ids.ids); return ary; } int ngraph_plugin_open_ruby(struct ngraph_plugin *plugin) { rb_encoding *enc; if (Initialized) { return 0; } ruby_sysinit(&DummyArgc, &DummyArgvPtr); ruby_init(); ruby_script("Embedded Ruby on Ngraph"); ruby_init_loadpath(); rb_enc_find_index("encdb"); /* http://www.artonx.org/diary/20090206.html */ enc = rb_locale_encoding(); if (enc) { rb_enc_set_default_external(rb_enc_from_encoding(enc)); } rb_enc_set_default_internal(rb_enc_from_encoding(rb_utf8_encoding())); rb_require("enc/encdb"); rb_require("enc/trans/transdb"); rb_require("rubygems"); Initialized = TRUE; NgraphModule = rb_define_module("Ngraph"); rb_define_singleton_method(NgraphModule, "puts", nputs, 1); rb_define_singleton_method(NgraphModule, "err_puts", nputerr, 1); rb_define_singleton_method(NgraphModule, "sleep", nsleep, 1); rb_define_singleton_method(NgraphModule, "str2inst", ngraph_str2inst, 1); NgraphClass = rb_define_class_under(NgraphModule, "NgraphObject", rb_cObject); rb_define_method(NgraphClass, "initialize", ngraph_class_new, 0); add_common_const(NgraphModule); create_ngraph_classes(NgraphModule, NgraphClass); Uniq = rb_intern("uniq"); Argv = rb_intern("ARGV"); return 0; } int ngraph_plugin_exec_ruby(struct ngraph_plugin *plugin, int argc, char *argv[]) { int state, i; VALUE r_argv; if (! Initialized) { return 1; } if (argc < 2) { return 0; } r_argv = rb_const_get(rb_mKernel, Argv); rb_ary_clear(r_argv); for (i = 2; i < argc; i++) { rb_ary_push(r_argv, rb_tainted_str_new2(argv[i])); } ruby_script(argv[1]); rb_load_protect(rb_str_new2(argv[1]), 1, &state); if (state) { VALUE errinfo, errstr, errat; int n, i; const char *cstr; errinfo = rb_errinfo(); errstr = rb_obj_as_string(errinfo); cstr = StringValueCStr(errstr); if (strcmp(cstr, "exit")) { ngraph_err_puts(cstr); errat = rb_funcall(errinfo, rb_intern("backtrace"), 0); if (! NIL_P(errat)) { n = RARRAY_LEN(errat); for (i = 0; i < n; i ++) { errstr = rb_str_new2("\tfrom "); rb_str_append(errstr, rb_ary_entry(errat, i)); ngraph_err_puts(StringValueCStr(errstr)); } } } } rb_gc_start(); return 0; } #ifndef WINDOWS void ngraph_plugin_close_ruby(struct ngraph_plugin *plugin) { if (Initialized) { ruby_finalize(); NgraphClass = 0; NgraphModule = 0; Initialized = FALSE; } } #endif ngraph-gtk-6.06.13/plugins/Makefile.in0000644000175000017500000005633412241364551014416 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = plugins DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(ngraphplugindir)" LTLIBRARIES = $(ngraphplugin_LTLIBRARIES) libruby_la_LIBADD = am__libruby_la_SOURCES_DIST = ruby.c @HAVE_RUBY_DEV_TRUE@am_libruby_la_OBJECTS = libruby_la-ruby.lo libruby_la_OBJECTS = $(am_libruby_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libruby_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libruby_la_CFLAGS) \ $(CFLAGS) $(libruby_la_LDFLAGS) $(LDFLAGS) -o $@ @HAVE_RUBY_DEV_TRUE@am_libruby_la_rpath = -rpath $(ngraphplugindir) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libruby_la_SOURCES) DIST_SOURCES = $(am__libruby_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ extra_dist_common = getobj.nsc create_objs.rb @HAVE_RUBY_DEV_TRUE@ngraphplugindir = $(pkglibdir)/plugins @HAVE_RUBY_DEV_TRUE@RUBY_INCRUDEDIR = `ruby -e 'puts(RbConfig::CONFIG["rubyhdrdir"])'` @HAVE_RUBY_DEV_TRUE@RUBY_ARCH = `ruby -e 'puts(RbConfig::CONFIG["arch"])'` @HAVE_RUBY_DEV_TRUE@BUILT_SOURCES = ruby_ngraph.c @HAVE_RUBY_DEV_TRUE@ngraphplugin_LTLIBRARIES = libruby.la @HAVE_RUBY_DEV_TRUE@libruby_la_SOURCES = ruby.c @HAVE_RUBY_DEV_TRUE@libruby_la_CFLAGS = -I.. -I $(RUBY_INCRUDEDIR) -I $(RUBY_INCRUDEDIR)/$(RUBY_ARCH) @HAVE_RUBY_DEV_TRUE@libruby_la_LDFLAGS = -avoid-version -disable-static --mode=link -module `ruby -e 'puts(RbConfig::CONFIG["LIBRUBYARG_SHARED"])'` @HAVE_RUBY_DEV_FALSE@extra_dist = $(extra_dist_common) ruby.c @HAVE_RUBY_DEV_TRUE@extra_dist = $(extra_dist_common) EXTRA_DIST = $(extra_dist) CLEANFILES = obj.txt ruby_ngraph.c all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-ngraphpluginLTLIBRARIES: $(ngraphplugin_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(ngraphplugin_LTLIBRARIES)'; test -n "$(ngraphplugindir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(ngraphplugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(ngraphplugindir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(ngraphplugindir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(ngraphplugindir)"; \ } uninstall-ngraphpluginLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(ngraphplugin_LTLIBRARIES)'; test -n "$(ngraphplugindir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(ngraphplugindir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(ngraphplugindir)/$$f"; \ done clean-ngraphpluginLTLIBRARIES: -test -z "$(ngraphplugin_LTLIBRARIES)" || rm -f $(ngraphplugin_LTLIBRARIES) @list='$(ngraphplugin_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libruby.la: $(libruby_la_OBJECTS) $(libruby_la_DEPENDENCIES) $(EXTRA_libruby_la_DEPENDENCIES) $(AM_V_CCLD)$(libruby_la_LINK) $(am_libruby_la_rpath) $(libruby_la_OBJECTS) $(libruby_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libruby_la-ruby.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libruby_la-ruby.lo: ruby.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libruby_la_CFLAGS) $(CFLAGS) -MT libruby_la-ruby.lo -MD -MP -MF $(DEPDIR)/libruby_la-ruby.Tpo -c -o libruby_la-ruby.lo `test -f 'ruby.c' || echo '$(srcdir)/'`ruby.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libruby_la-ruby.Tpo $(DEPDIR)/libruby_la-ruby.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ruby.c' object='libruby_la-ruby.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libruby_la_CFLAGS) $(CFLAGS) -c -o libruby_la-ruby.lo `test -f 'ruby.c' || echo '$(srcdir)/'`ruby.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(ngraphplugindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool clean-ngraphpluginLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-ngraphpluginLTLIBRARIES install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-ngraphpluginLTLIBRARIES .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-ngraphpluginLTLIBRARIES cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-ngraphpluginLTLIBRARIES \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-ngraphpluginLTLIBRARIES obj.txt: ../src/ngraph ../src/ngraph -i getobj.nsc > obj.txt ruby_ngraph.c: obj.txt $(EXTRA_DIST) ruby create_objs.rb obj.txt ruby_ngraph.c # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/plugins/Makefile.am0000644000175000017500000000151512241111713014362 00000000000000extra_dist_common = getobj.nsc create_objs.rb if HAVE_RUBY_DEV ngraphplugindir = $(pkglibdir)/plugins RUBY_INCRUDEDIR = `ruby -e 'puts(RbConfig::CONFIG["rubyhdrdir"])'` RUBY_ARCH = `ruby -e 'puts(RbConfig::CONFIG["arch"])'` BUILT_SOURCES = ruby_ngraph.c ngraphplugin_LTLIBRARIES = libruby.la libruby_la_SOURCES = ruby.c libruby_la_CFLAGS = -I.. -I $(RUBY_INCRUDEDIR) -I $(RUBY_INCRUDEDIR)/$(RUBY_ARCH) libruby_la_LDFLAGS = -avoid-version -disable-static --mode=link -module `ruby -e 'puts(RbConfig::CONFIG["LIBRUBYARG_SHARED"])'` extra_dist = $(extra_dist_common) else extra_dist = $(extra_dist_common) ruby.c endif EXTRA_DIST = $(extra_dist) obj.txt: ../src/ngraph ../src/ngraph -i getobj.nsc > obj.txt ruby_ngraph.c: obj.txt $(EXTRA_DIST) ruby create_objs.rb obj.txt ruby_ngraph.c CLEANFILES = obj.txt ruby_ngraph.c ngraph-gtk-6.06.13/plugins/getobj.nsc0000644000175000017500000000015412241111713014303 00000000000000#! /usr/bin/ngraph echo "#" > $1 for i in `object` do object $i >> $1 echo "#" >> $1 done del system ngraph-gtk-6.06.13/plugins/create_objs.rb0000644000175000017500000005457112241111713015145 00000000000000#! /usr/bin/ruby class Field attr_reader :name, :func, :argc def initialize(name, func, argc) @name = name @func = func @argc = argc end end class EnumItem attr_reader :const, :name, :num def initialize(enum, i) @const = enum.upcase.gsub(".", "_") @num = i @name = enum end end class Enum attr_reader :module, :enum, :max def initialize(name, enum) @module = name.capitalize i = 0; @enum = [] enum.each_with_index {|e, i| @enum.push(EnumItem.new(e, i)) } @max = enum.size - 1 end end class NgraphObj attr_reader :name, :fields attr_accessor :abstruct, :singleton SINGLETON_METHOD = [ ["new", "new", 0], ["[]", "get", 1], ["del", "del", 1], ["each", "each", 0], ["size", "size", 0], ["current", "current", 0], ] SINGLETON_METHOD2 = [ ["move_up", "move_up", 1], ["move_down", "move_down", 1], ["move_top", "move_top", 1], ["move_last", "move_last", 1], ["exchange", "exchange", 2], ["copy", "copy", 2], ] SINGLETON_METHOD3 = [ ["exist?", "exist", 0], ["get_field_args", "field_args", 1], ["get_field_type", "field_type", 1], ["get_field_permission", "field_permission", 1], ["derive", "derive", 1], ] FUNC_FIELD_COMMON = <<-EOF struct ngraph_instance *inst; inst = check_id(self); if (inst == NULL) { return Qnil; } EOF FUNC_FIELD_VAL = " ngraph_returned_value rval;\n" FUNC_FIELD_ARY = <<-EOF ngraph_returned_value rval; VALUE ary; int i; EOF def initialize(name, cfile, version, parent) @name = name @fields = [] @methods = [] @enum = {} @cfile = cfile @version = version @parent = (parent == "(null)") ? nil : parent @abstruct = false @singleton = false @func = "" end def put_indented_str(s) @cfile.puts(s.gsub(/^ /, "")) end def add_singleton_method_func(method, func, argc) @cfile.puts("static VALUE") @cfile.print("#{@name}_#{func}(VALUE klass") if (argc > 0) @cfile.print(", ") argc.times { |i| @cfile.print("VALUE arg#{i}") if (i == argc - 1) @cfile.puts(")\n{") else @cfile.print(", ") end } else @cfile.puts(")\n{") end @cfile.print(" return obj_#{func}(klass, ") argc.times { |i| @cfile.print("arg#{i}, ") } @cfile.puts(%Q!"#{@name}");\n}!); end def create_obj unless (@abstruct) put_indented_str(@func) SINGLETON_METHOD.each { |method, func, argc| add_singleton_method_func(method, func, argc) } unless (@singleton) SINGLETON_METHOD2.each { |method, func, argc| add_singleton_method_func(method, func, argc) } end end SINGLETON_METHOD3.each { |method, func, argc| add_singleton_method_func(method, func, argc) } @enum.each { |key, val| put_indented_str <<-EOF static VALUE #{@name}_get_#{val.module}(VALUE klass, VALUE arg) { int i; i = VAL2INT(arg); switch (i) { EOF val.enum.each { |enum| @cfile.puts(" case #{enum.num}:") @cfile.puts(%Q! return rb_str_new2("#{enum.name}");!) } put_indented_str <<-EOF } return Qnil; } EOF } put_indented_str <<-EOF static void create_#{@name}_object(VALUE ngraph_module, VALUE ngraph_class) { VALUE obj; VALUE fields; #{(@enum.size > 0) ? " VALUE module;" : ""} obj = rb_define_class_under(ngraph_module, "#{@name.capitalize}", ngraph_class); EOF unless (@abstruct) SINGLETON_METHOD.each { |method, func, argc| @cfile.puts(%Q! rb_define_singleton_method(obj, "#{method}", #{@name}_#{func}, #{argc});!) } unless (@singleton) SINGLETON_METHOD2.each { |method, func, argc| @cfile.puts(%Q! rb_define_singleton_method(obj, "#{method}", #{@name}_#{func}, #{argc});!) } end end SINGLETON_METHOD3.each { |method, func, argc| @cfile.puts(%Q! rb_define_singleton_method(obj, "#{method}", #{@name}_#{func}, #{argc});!) } @cfile.puts(" setup_obj_common(obj);") unless (@abstruct) put_indented_str <<-EOF add_obj_const(obj, "#{@name}"); fields = rb_ary_new2(#{@fields.size}); rb_define_const(obj, "FIELDS", fields); EOF @fields.each_with_index { |field, i| @cfile.puts(%Q! store_field_names(fields, "#{field}");!) } @cfile.puts(" OBJ_FREEZE(fields);") unless (@abstruct) @methods.each { |field| @cfile.puts(%Q! rb_define_method(obj, "#{field.name}", #{field.func}, #{field.argc});!) } end @enum.each { |key, val| @cfile.puts(%Q! module = rb_define_module_under(obj, "#{val.module}");!) @cfile.puts(%Q! rb_extend_object(module, rb_mEnumerable);!) @cfile.puts(%Q! rb_define_singleton_method(module, "[]", #{@name}_get_#{val.module}, 1);!) val.enum.each { |enum| @cfile.puts(%Q! rb_define_const(module, "#{enum.const}", INT2FIX(#{enum.num}));!) } } @cfile.puts("}") end def create_rw_field_func(func, rw, type, field) if (rw == "put") parm = ", VALUE arg" arg = ", arg" else arg = "" parm = "" end @func += <<-EOF static VALUE #{func}(VALUE self#{parm}) { return inst_#{rw}_#{type}(self#{arg}, "#{field}"); } EOF end def create_put_obj_func(func, field) create_rw_field_func(func, "put", "obj", field) end def create_get_obj_func(func, field) create_rw_field_func(func, "get", "obj", field) end def create_put_str_func(func, field) create_rw_field_func(func, "put", "str", field) end def create_get_str_func(func, field) create_rw_field_func(func, "get", "str", field) end def create_put_int_func(func, field) create_rw_field_func(func, "put", "int", field) end def create_get_int_func(func, field) create_rw_field_func(func, "get", "int", field) end def create_put_double_func(func, field) create_rw_field_func(func, "put", "double", field) end def create_get_double_func(func, field) create_rw_field_func(func, "get", "double", field) end def create_put_bool_func(func, field) create_rw_field_func(func, "put", "bool", field) end def create_get_bool_func(func, field) create_rw_field_func(func, "get", "bool", field) end def create_put_enum_func(func, field, enum) @func += <<-EOF static VALUE #{func}(VALUE self, VALUE arg) { return inst_put_enum(self, arg, "#{field}", #{enum.max}); } EOF end def add_enum(field, ary) return @enum[field] if (@enum[field]) enum = Enum.new(field, ary) @enum[field] = enum enum end def create_get_enum_func(func, field) create_rw_field_func(func, "get", "int", field) end def create_put_int_array_func(func, field) create_rw_field_func(func, "put", "iarray", field) end def create_get_int_array_func(func, field) create_rw_field_func(func, "get", "iarray", field) end def create_put_double_array_func(func, field) create_rw_field_func(func, "put", "darray", field) end def create_get_double_array_func(func, field) create_rw_field_func(func, "get", "darray", field) end def create_put_str_array_func(func, field) create_rw_field_func(func, "put", "sarray", field) end def create_get_str_array_func(func, field) create_rw_field_func(func, "get", "sarray", field) end def field2method(field) method = field.gsub("-", "_").gsub("%", "prm") method = "value" if (method == "@") method.downcase end def add_put_method(ary) field = ary[1] type = ary[2] method = field2method(field) func = "#{@name}_field_put_#{method}" case type when "bool" create_put_bool_func(func, field) when "int" create_put_int_func(func, field) when "double" create_put_double_func(func, field) when "obj" create_put_obj_func(func, field) when "char*" create_put_str_func(func, field) when "enum(" n = ary.size - 4 enum = add_enum(field, ary[3, n]) create_put_enum_func(func, field, enum) when "int[]" create_put_int_array_func(func, field) when "double[]" create_put_double_array_func(func, field) when "char*[]" create_put_str_array_func(func, field) end field = Field.new("#{method}=", func, 1) @methods.push(field) end def add_get_method(ary) field = ary[1] type = ary[2] method = field2method(field) func = "#{@name}_field_get_#{method}" case type when "bool" create_get_bool_func(func, field) method += "?" when "int" create_get_int_func(func, field) when "double" create_get_double_func(func, field) when "obj" create_get_obj_func(func, field) when "char*" create_get_str_func(func, field) when "enum(" n = ary.size - 4 add_enum(field, ary[3, n]) create_get_enum_func(func, field) when "int[]" create_get_int_array_func(func, field) when "double[]" create_get_double_array_func(func, field) when "char*[]" create_get_str_array_func(func, field) end field = Field.new("#{method}", func, 0) @methods.push(field) end def create_void_exe_func(func, field) @func += <<-EOF static VALUE #{func}(VALUE self) { return inst_exe_void_func(self, "#{field}"); } EOF end def check_args(ary) n = ary.size - 4 case (n) when 0 [-2, []] when 1 if (ary[3][-1] == "]") [-2, ary[3, n]] elsif (ary[3] == "void") [0, []] else [-1, ary[3, n]] end else [-1, ary[3, n]] end end def create_func_type(func, args) @func += "static VALUE\n#{func}(int argc, VALUE *argv, VALUE self)\n{\n" @func += " VALUE arg[#{args.size}];\n" @func += " VALUE tmpstr;\n" if (args.find {|s| s[-1] == "]"}) @func += " ngraph_arg *carg;\n" end def create_arguments(field, args) array = false @func += (%Q! rb_scan_args(argc, argv, "0#{args.size}", !) args.size.times { |i| @func += ("arg + #{i}") if (i == args.size - 1) @func += (");\n") else @func += (", ") end } @func += (" carg = alloca(sizeof(*carg) + sizeof(union array) * #{args.size});\n") @func += (%Q! if (carg == NULL) {\n rb_raise(rb_eSysStackError, "%s: cannot allocate enough memory.", rb_obj_classname(self));\n }\n!) @func += (" carg->num = #{args.size};\n") args.each_with_index { |arg, i| case arg when "int" @func += (" carg->ary[#{i}].i = VAL2INT(arg[#{i}]);\n") when "double" @func += (" carg->ary[#{i}].d = VAL2DBL(arg[#{i}]);\n") when "char*" @func += (" carg->ary[#{i}].str = VAL2STR(arg[#{i}]);\n") when "bool" @func += (" carg->ary[#{i}].i = RTEST(arg[#{i}]) ? 1 : 0;\n") when "int[]" @func += (%Q! carg->ary[#{i}].ary = allocate_iarray(self, &tmpstr, arg[#{i}], "#{field}");\n!) array = true when "double[]" @func += (%Q! carg->ary[#{i}].ary = allocate_darray(self, &tmpstr, arg[#{i}], "#{field}");\n!) array = true when "char*[]" @func += (%Q! carg->ary[#{i}].ary = allocate_sarray(self, &tmpstr, arg[#{i}], "#{field}");\n!) array = true end } array end def create_finalize_arguments(args) args.each_with_index { |arg, i| case arg when "int[]", "double[]", "char*[]" @func += (" if (carg->ary[#{i}].ary) {\n rb_free_tmp_buffer(&tmpstr);\n }\n") end } end def add_arg_array(arg, field) unless (arg) @func += %Q! carg = allocate_sarray(self, &tmpstr, argv, "#{field}");\n! return end case (arg) when "int[]" @func += %Q! carg.ary[0].ary = allocate_iarray(self, &tmpstr, argv, "#{field}");\n! when "double[]" @func += %Q! carg.ary[0].ary = allocate_darray(self, &tmpstr, argv, "#{field}");\n! when "char*[]" @func += %Q! carg.ary[0].ary = allocate_sarray(self, &tmpstr, argv, "#{field}");\n! else @func += %Q! carg.ary[0].ary = allocate_sarray(self, &tmpstr, argv, "#{field}");\n! end @func += " carg.num = 1;\n" end def create_val_func_with_argv(func, field, args, comv) varg = (args.size == 0) @func += ("static VALUE\n#{func}(VALUE self, VALUE argv)\n{\n") @func += (" VALUE tmpstr;\n") @func += (FUNC_FIELD_VAL) @func += " ngraph_arg #{(varg) ? '*' : ''}carg;\n" @func += (FUNC_FIELD_COMMON) add_arg_array(args[0], field) @func += <<-EOF inst->rcode = ngraph_getobj(inst->obj, "#{field}", inst->id, #{varg ? '' : '&'}carg, &rval); rb_free_tmp_buffer(&tmpstr); if (inst->rcode < 0) { return Qnil; } return #{comv}; } EOF end def create_void_func_with_argv(func, field, args) varg = (args.size == 0) @func += <<-EOF static VALUE #{func}(VALUE self, VALUE argv) { struct ngraph_instance *inst; ngraph_arg #{(varg) ? '*' : ''}carg; VALUE tmpstr; inst = check_id(self); if (inst == NULL) { return Qnil; } EOF add_arg_array(args[0], field) @func += <<-EOF inst->rcode = ngraph_exeobj(inst->obj, "#{field}", inst->id, #{varg ? '' : '&'}carg); rb_free_tmp_buffer(&tmpstr); if (inst->rcode < 0) { return Qnil; } return self; } EOF end def create_array_func_with_argv(func, field, args, comv) varg = (args.size == 0) @func += ("static VALUE\n#{func}(VALUE self, VALUE argv)\n{") @func += (" VALUE tmpstr;\n") @func += (FUNC_FIELD_ARY) @func += " ngraph_arg #{(varg) ? '*' : ''}carg;\n" @func += (FUNC_FIELD_COMMON) add_arg_array(args[0], field) @func += <<-EOF inst->rcode = ngraph_getobj(inst->obj, "#{field}", inst->id, #{varg ? '' : '&'}carg, &rval); rb_free_tmp_buffer(&tmpstr); if (inst->rcode < 0) { return Qnil; } ary = rb_ary_new2(rval.ary.num); for (i = 0; i < rval.ary.num; i++) { rb_ary_store(ary, i, #{comv}); } return ary; } EOF end def create_val_func_with_args(func, field, args, conv) create_func_type(func, args) @func += (FUNC_FIELD_VAL) @func += (FUNC_FIELD_COMMON) array = create_arguments(field, args) @func += (%Q! inst->rcode = ngraph_getobj(inst->obj, "#{field}", inst->id, carg, &rval);\n!) @func += (%Q! rb_free_tmp_buffer(&tmpstr);\n!) if (array) @func += <<-EOF if (inst->rcode < 0) { return Qnil; } return #{conv}; } EOF end def create_void_func_with_args(func, field, args) create_func_type(func, args) @func += (FUNC_FIELD_COMMON) array = create_arguments(field, args) @func += (%Q! inst->rcode = ngraph_exeobj(inst->obj, "#{field}", inst->id, carg);\n!) @func += (%Q! rb_free_tmp_buffer(&tmpstr);\n!) if (array) @func += <<-EOF if (inst->rcode < 0) { return Qnil; } return self; } EOF end def create_array_func_with_args(func, field, args, comv) create_func_type(func, args) @func += (FUNC_FIELD_ARY) @func += (FUNC_FIELD_COMMON) array = create_arguments(field, args) @func += (%Q! inst->rcode = ngraph_getobj(inst->obj, "#{field}", inst->id, carg, &rval);\n!) @func += (%Q! rb_free_tmp_buffer(&tmpstr);\n!) if (array) @func += <<-EOF if (inst->rcode < 0) { return Qnil; } ary = rb_ary_new2(rval.ary.num); for (i = 0; i < rval.ary.num; i++) { rb_ary_store(ary, i, #{comv}); } return ary; } EOF end def create_bool_func_with_args(func, field, args) create_val_func_with_args(func, field, args, 'rval.i ? Qtrue : Qfalse') end def create_int_func_with_args(func, field, args) create_val_func_with_args(func, field, args, 'INT2NUM(rval.i)') end def create_double_func_with_args(func, field, args) create_val_func_with_args(func, field, args, 'rb_float_new(rval.d)') end def create_str_func_with_args(func, field, args) create_val_func_with_args(func, field, args, 'tainted_utf8_str_new(rval.str ? rval.str : "")') end def create_bool_func_with_argv(func, field, args) create_val_func_with_argv(func, field, args, 'rval.i ? Qtrue : Qfalse') end def create_int_func_with_argv(func, field, args) create_val_func_with_argv(func, field, args, 'INT2NUM(rval.i)') end def create_double_func_with_argv(func, field, args) create_val_func_with_argv(func, field, args, 'rb_float_new(rval.d)') end def create_str_func_with_argv(func, field, args) create_val_func_with_argv(func, field, args, 'tainted_utf8_str_new(rval.str ? rval.str : "")') end def add_bool_func(func, field, argc, args) case (argc) when 0 create_get_bool_func(func, field) when -2 create_bool_func_with_argv(func, field, args) else create_bool_func_with_args(func, field, args) end end def add_int_func(func, field, argc, args) case (argc) when 0 create_get_int_func(func, field) when -2 create_int_func_with_argv(func, field, args) else create_int_func_with_args(func, field, args) end end def add_double_func(func, field, argc, args) case (argc) when 0 create_get_double_func(func, field) when -2 create_double_func_with_argv(func, field, args) else create_double_func_with_args(func, field, args) end end def add_str_func(func, field, argc, args) case (argc) when 0 create_get_str_func(func, field) when -2 create_str_func_with_argv(func, field, args) else create_str_func_with_args(func, field, args) end end def add_int_array_func(func, field, argc, args) case (argc) when 0 create_get_int_array_func(func, field) when -2 create_array_func_with_argv(func, field, args, 'INT2NUM(rval.ary.data.ia[i])') else create_array_func_with_args(func, field, args, 'INT2NUM(rval.ary.data.ia[i])') end end def add_double_array_func(func, field, argc, args) case (argc) when 0 create_get_double_array_func(func, field) when -2 create_array_func_with_argv(func, field, args, 'rb_float_new(rval.ary.data.da[i])') else create_array_func_with_args(func, field, args, 'rb_float_new(rval.ary.data.da[i])') end end def add_str_array_func(func, field, argc, args) case (argc) when 0 create_get_str_array_func(func, field) when -2 create_array_func_with_argv(func, field, args, 'tainted_utf8_str_new(rval.ary.data.sa[i] ? rval.ary.data.sa[i] : "")') else create_array_func_with_args(func, field, args, 'tainted_utf8_str_new(rval.ary.data.sa[i] ? rval.ary.data.sa[i] : "")') end end def add_void_func(func, field, argc, args) case (argc) when 0 create_void_exe_func(func, field) when -2 create_void_func_with_argv(func, field, args) else create_void_func_with_args(func, field, args) end end def add_func_obj(type, func, field, args) rtype = case type when "bool(" "NBFUNC" when "int(" "NIFUNC" when "char*(" "NSFUNC" when "int[](" "NIAFUNC" when "double[](" "NDAFUNC" when "char*[](" "NSAFUNC" when "void(" "NVFUNC" else "NVFUNC" end @func += <<-EOF static VALUE #{func}(VALUE self, VALUE argv) { return obj_func_obj(self, argv, "#{field}", #{rtype}); } EOF end def add_func_method(ary) field = ary[1] type = ary[2] method = field2method(field) func = "#{@name}_field_#{method}" argc, args = check_args(ary) if (ary[3] == "obj") argc = -2; add_func_obj(type, func, field, args) else case type when "bool(" add_bool_func(func, field, argc, args) when "int(" add_int_func(func, field, argc, args) when "double(" add_double_func(func, field, argc, args) when "char*(" add_str_func(func, field, argc, args) when "int[](" add_int_array_func(func, field, argc, args) when "double[](" add_double_array_func(func, field, argc, args) when "char*[](" add_str_array_func(func, field, argc, args) when "void(" add_void_func(func, field, argc, args) end end method += "?" if (type == "bool(") field = Field.new("#{method}", func, argc) @methods.push(field) end def add_method(ary) case ary[0] when "-w-" add_put_method(ary) when "r--" add_get_method(ary) when "r-x" add_func_method(ary) when "rw-" add_put_method(ary) add_get_method(ary) end end end def create_obj_funcs(file, cfile, name, version, parent) obj = NgraphObj.new(name, cfile, version, parent) singleton = true while (true) ary = file.gets.chomp.split singleton = false if (ary[1] == "next") case ary[0] when "#" break when "---" obj.abstruct = true if (ary[1] == "init") when "--x" # can't execute when "r--" obj.add_method(ary) when "-w-" # obj.add_method(ary) # only used for backword compatibility. when "r-x" obj.add_method(ary) when "rw-" obj.add_method(ary) else next end obj.fields.push(ary[1]) end obj.singleton = singleton obj.create_obj obj end objs = [] File.open(ARGV[1], "w") { |cfile| File.open(ARGV[0], "r") { |file| while (l = file.gets) str_ary = l.chomp.split case (str_ary[0]) when "object:" name = str_ary[1] next when "version:" version = str_ary[1] next when "parent:" parent = str_ary[1] else next end obj = create_obj_funcs(file, cfile, name, version, parent) objs.push(obj) end } str = <<-EOF static void create_ngraph_classes(VALUE ngraph_module, VALUE ngraph_class) { VALUE objs; objs = rb_ary_new2(#{objs.size}); rb_define_const(ngraph_module, "OBJECTS", objs); EOF cfile.puts(str.gsub(/^ /, "")) objs.each_with_index {|obj, i| cfile.puts(" create_#{obj.name}_object(ngraph_module, ngraph_class);\n") cfile.puts(%Q! rb_ary_store(objs, #{i}, ID2SYM(rb_intern("#{obj.name.capitalize}")));\n!) } cfile.puts(" OBJ_FREEZE(objs);\n") cfile.puts("}") } ngraph-gtk-6.06.13/README0000644000175000017500000000013112241111702011514 00000000000000Homepage for ngraph-gtk is at: http://homepage3.nifty.com/slokar/ngraph/ngraph-gtk.html ngraph-gtk-6.06.13/Makefile.in0000644000175000017500000007040612241364550012730 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/configure $(am__configure_deps) \ $(srcdir)/config.h.in mkinstalldirs ABOUT-NLS COPYING TODO \ compile config.guess config.rpath config.sub depcomp \ install-sh missing ltmain.sh ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(docdir)" DATA = $(doc_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ngraphconfdir = $(sysconfdir)/$(PACKAGE) EXTRA_DIST = config.rpath pathconv.sh doc_DATA = README AUTHORS ChangeLog NEWS COPYING SUBDIRS = po m4 src initfile driver addin demo doc zsh test mingw pixmap icons misc plugins ACLOCAL_AMFLAGS = -I m4 LIBTOOL_DEPS = @LIBTOOL_DEPS@ all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-docDATA: $(doc_DATA) @$(NORMAL_INSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ done uninstall-docDATA: @$(NORMAL_UNINSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(docdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-docDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-docDATA .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ dist-xz dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-libtool distclean-tags distcleancheck \ distdir distuninstallcheck dvi dvi-am html html-am info \ info-am install install-am install-data install-data-am \ install-docDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-docDATA test_all: (cd test; $(MAKE) test) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/depcomp0000755000175000017500000005601612241364552012243 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # Copyright (C) 1999-2013 Free Software Foundation, Inc. # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ngraph-gtk-6.06.13/config.h.in0000644000175000017500000001767512241364550012717 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if the `closedir' function returns void instead of `int'. */ #undef CLOSEDIR_VOID /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP systems. This function is required for `alloca.c' support on those systems. */ #undef CRAY_STACKSEG_END /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to 1 if you have the `alarm' function. */ #undef HAVE_ALARM /* Define to 1 if you have `alloca', as a function or macro. */ #undef HAVE_ALLOCA /* Define to 1 if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_DIRENT_H /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ #undef HAVE_DOPRNT /* Define to 1 if you have the `dup2' function. */ #undef HAVE_DUP2 /* Define to 1 if you have the `fabsl' function. */ #undef HAVE_FABSL /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `finite' function. */ #undef HAVE_FINITE /* Define to 1 if you have the `floorl' function. */ #undef HAVE_FLOORL /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define if you have the iconv() function and it works. */ #undef HAVE_ICONV /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `isfinite' function. */ #undef HAVE_ISFINITE /* have GNU Scientific Library */ #undef HAVE_LIBGSL /* have readline library */ #undef HAVE_LIBREADLINE /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have the `log10l' function. */ #undef HAVE_LOG10L /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `mkdir' function. */ #undef HAVE_MKDIR /* Define to 1 if you have a working `mmap' system call. */ #undef HAVE_MMAP /* Define to 1 if you have the `nanosleep' function. */ #undef HAVE_NANOSLEEP /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_NDIR_H /* Define to 1 if you have the `pow' function. */ #undef HAVE_POW /* Define to 1 if you have the `powl' function. */ #undef HAVE_POWL /* Define to 1 if you have the header file. */ #undef HAVE_READLINE_READLINE_H /* Define to 1 if your system has a GNU libc compatible `realloc' function, and to 0 otherwise. */ #undef HAVE_REALLOC /* Define to 1 if you have the `sigaction' function. */ #undef HAVE_SIGACTION /* Define to 1 if you have the `sigsuspend' function. */ #undef HAVE_SIGSUSPEND /* Define to 1 if you have the `sleep' function. */ #undef HAVE_SLEEP /* Define to 1 if you have the `sqrt' function. */ #undef HAVE_SQRT /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ #undef HAVE_STAT_EMPTY_STRING_BUG /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strncasecmp' function. */ #undef HAVE_STRNCASECMP /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Define to 1 if you have the `strtol' function. */ #undef HAVE_STRTOL /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_DIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_NDIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `utime' function. */ #undef HAVE_UTIME /* Define to 1 if you have the header file. */ #undef HAVE_UTIME_H /* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */ #undef HAVE_UTIME_NULL /* Define to 1 if you have the `vfork' function. */ #undef HAVE_VFORK /* Define to 1 if you have the header file. */ #undef HAVE_VFORK_H /* Define to 1 if you have the `vprintf' function. */ #undef HAVE_VPRINTF /* Define to 1 if `fork' works. */ #undef HAVE_WORKING_FORK /* Define to 1 if `vfork' works. */ #undef HAVE_WORKING_VFORK /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ #undef LSTAT_FOLLOWS_SLASHED_SYMLINK /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define as the return type of signal handlers (`int' or `void'). */ #undef RETSIGTYPE /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Version number of package */ #undef VERSION /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to `int' if does not define. */ #undef pid_t /* Define to rpl_realloc if the replacement function should be used. */ #undef realloc /* Define to `unsigned int' if does not define. */ #undef size_t /* Define as `fork' if `vfork' does not work. */ #undef vfork ngraph-gtk-6.06.13/misc/0000755000175000017500000000000012241600066011662 500000000000000ngraph-gtk-6.06.13/misc/ngraph.xml0000644000175000017500000000135712241111702013603 00000000000000 Ngraph Ngraph graphic file Ngraph のグラフィックデータファイル Ngraph script file Ngraph script のファイル ngraph-gtk-6.06.13/misc/ngraph.bash0000644000175000017500000000561512241111702013721 00000000000000# ngraph completion # put this file in /etc/bash_completion.d/ have ngraph && _ngraph() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} case "$prev" in -png|-pdf|-ps|-eps|-svg|-gra|-p|-L) _filedir 'ngp' return 0 ;; -ex|-ey) COMPREPLY=( $( compgen -W 'linear log inverse MJD' -- $cur ) ) return 0 ;; -d) COMPREPLY=( $( compgen -W 'mark line polygon curve diagonal \ arrow rectangle rectangle_fill rectangle_solid_fill \ errorbar_x errorbar_y staircase_x staircase_y bar_x bar_y \ bar_fill_x bar_fill_y bar_solid_fill_x bar_solid_fill_y fit' \ -- $cur ) ) return 0 ;; -m) COMPREPLY=( $( compgen -W "`seq 0 89`" -- $cur ) ) return 0 ;; -x|-y|-o|-l|-w|-cr|-cg|-cb|-CR|-CG|-CB|-s|-r|-f|-vx|-vy|-mx|-my|-minx|-maxx|-incx|-miny|-maxy|-incy) return 0 ;; esac case "$cur" in -*) COMPREPLY=( $( compgen -W '-h --help --version --VERSION \ -L -x -y -X -Y -d -m -o -l -w -cr -cg -cb -CR -CG -CB -s -r -f \ -vx -vy -mx -my -ex -ey -minx -maxx -incx -miny -maxy -incy -g \ -png -pdf -ps -eps -svg -gra -n -p -dialog' -- $cur ) ) ;; *) _filedir ;; esac } [ "${have:-}" ] && complete -F _ngraph $filenames ngraph have ngp2 && _ngp2() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} case "$cur" in -*) COMPREPLY=( $( compgen -W '-h --help -I -a -A -c \ -ps -ps3 -ps2 -eps -eps3 -eps2 \ -wmf -pdf -svg -svg1.1 -svg1.2 -png' -- $cur ) ) ;; *) _filedir 'ngp' ;; esac } [ "${have:-}" ] && complete -F _ngp2 $filenames ngp2 # have gra2ps && # _gra2ps() # { # local cur # COMPREPLY=() # cur=${COMP_WORDS[COMP_CWORD]} # prev=${COMP_WORDS[COMP_CWORD-1]} # case "$prev" in # -o) # _filedir '@(ps|eps)' # return 0 # ;; # -i) # _filedir 'ps' # return 0 # ;; # -p) # COMPREPLY=( $( compgen -W 'a3 a4 b4 a5 b5 letter legal' -- $cur ) ) # return 0 # ;; # -s) # return 0 # ;; # esac # case "$cur" in # -*) # COMPREPLY=( $( compgen -W '-o -i -c -e -p -l -r' -- $cur ) ) # ;; # *) # _filedir 'gra' # ;; # esac # } # [ "${have:-}" ] && complete -F _gra2ps $filenames gra2ps # have gra2wmf && # _gra2wmf() # { # local cur # COMPREPLY=() # cur=${COMP_WORDS[COMP_CWORD]} # prev=${COMP_WORDS[COMP_CWORD-1]} # case "$prev" in # -o) # _filedir 'wmf' # return 0 # ;; # -d) # return 0 # ;; # esac # case "$cur" in # -*) # COMPREPLY=( $( compgen -W '-o -d' -- $cur ) ) # ;; # *) # _filedir 'gra' # ;; # esac # } # [ "${have:-}" ] && complete -F _gra2wmf $filenames gra2wmf ngraph-gtk-6.06.13/misc/Makefile.in0000644000175000017500000003166212241364551013665 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = misc DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = ngraph.applications ngraph.mime ngraph.keys ngraph.desktop ngraph.xml ngraph.bash ngraph.1 ngp2.1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu misc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu misc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/misc/ngraph.10000644000175000017500000000663612241111702013150 00000000000000.nr N -1 .nr D 5 .TH NGRAPH 1 Local .UC 4 .SH NAME Ngraph \- creating scientific 2-dimensional graphs .SH SYNOPSIS .B ngraph [options] [data file(s) or ngp file] .PP .SH DESCRIPTION .\" This defines appropriate quote strings for nroff and troff .ds lq \&" .ds rq \&" .if t .ds lq `` .if t .ds rq '' .\" Just in case these number registers aren't set yet... .if \nN==0 .nr N 10 .if \nD==0 .nr D 5 .I \fINgraph\fR is the program to create scientific 2-dimensional graphs for researchers and engineers. Graphs can be exported to PostScript, SVG, PNG or PDF format. .PP .SH OPTIONS Command line options are: .PP .TP .B -L file load ngp file .TP .B -x column data column for the x axis .TP .B -y column data column for the y axis .TP .B -X use X axis as the x axis .TP .B -Y use Y axis as the y axis .TP .B -U use U axis as the x axis .TP .B -R use R axis as the y axis .TP .B -d {mark | line | polygon | curve | diagonal | arrow | rectangle | rectangle_fill | rectangle_solid_fill | errorbar_x | errorbar_y | staircase_x | staircase_y | bar_x | bar_y | bar_fill_x | bar_fill_y | bar_solid_fill_x | bar_solid_fill_y | fit} specify plot type .TP .B -m type specify mark type (0-89) .TP .B -o size specify mark size .TP .B -l style specify line style .TP .B -w width specify line width .TP .B -CR n specify red component of the 1st plot color (0-255) .TP .B -CG n specify green component of the 1st plot color (0-255) .TP .B -CB n specify blue component of the 1st plot color (0-255) .TP .B -cr n specify red component of the 2nd plot color (0-255) .TP .B -cg n specify green component of the 2nd plot color (0-255) .TP .B -cb n specify blue component of the 2nd plot color (0-255) .TP .B -s line specify number of the head skip .TP .B -r step specify number of the read step .TP .B -f line specify number of the final line .TP .B -vx n neighbor average of the x data .TP .B -vy n neighbor average of the y data .TP .B -mx formula specify math transformation for the x data .TP .B -my formula specify math transformation for the y data .TP .B -ex {linear | log | inverse | MJD} specify scale type of the x axis .TP .B -ey {linear | log | inverse | MJD} specify scale type of the y axis .TP .B -minx value specify minimum value of x axis .TP .B -maxx value specify maximum value of x axis .TP .B -incx value specify increment value of x axis .TP .B -miny value specify minimum value of y axis .TP .B -maxy value specify maximum value of y axis .TP .B -incy value specify increment value of y axis .TP .B -g load settings from data file .TP .B -png file convert ngp file to PNG format .TP .B -pdf file convert ngp file to PDF format .TP .B -ps file convert ngp file to PostScript format .TP .B -eps file convert ngp file to Encapsulated PostScript format .TP .B -svg file convert ngp file to SVG format .TP .B -gra file convert ngp file to GRA format .TP .B -dialog show print dialog (with \-p option) .TP .B -p file print ngp file .TP .B -n output ngp-file to stdout .TP .B -h, --help show help message .TP .B -v, --version show version of \fINgraph\fR .TP .B -V, --VERSION show detail information about \fINgraph\fR .SH FILES .TP .I ${HOME}/.Ngraph/Ngraph.nsc start up script .TP .I ${HOME}/.Ngraph/Ngraph.ini configuration file .TP .I ${HOME}/.Ngraph/Ngraph.ngp default graph .SH AUTHORS \fBSatoshi ISHIZAKA\fR .PP \fBHiroyuki Ito\fR .SH "SEE ALSO" .BR ngp2 (1) .PP .SH "COPYRIGHT" .br Copyright \(co 2003 Satoshi ISHIZAKA .br Copyright \(co 2008-2011 Hiroyuki Ito ngraph-gtk-6.06.13/misc/ngp2.10000644000175000017500000000250312241111702012524 00000000000000.nr N -1 .nr D 5 .TH NGP2 1 Local .UC 4 .SH NAME ngp2 \- convert ngp files to image .SH SYNOPSIS .B ngp2 [options] ngp files .PP .SH DESCRIPTION .\" This defines appropriate quote strings for nroff and troff .ds lq \&" .ds rq \&" .if t .ds lq `` .if t .ds rq '' .\" Just in case these number registers aren't set yet... .if \nN==0 .nr N 10 .if \nD==0 .nr D 5 .I \fIngp2\fR is the program to convert ngp files created by Ngraph to image files such as PostScript, SVG, PNG, PDF or GRA. .PP .SH OPTIONS Command line options are: .PP .TP .B -I ignore path of data files .TP .B -a automatically set scale of axis when scale is not set .TP .B -A clear and automatically set scale of axis .TP .B -c change directory to location of a ngp file .TP .B -d dpi set dpi .TP .B -ps, ps3 save as PostScript level 3 .TP .B -ps2 save as PostScript level 2 .TP .B -eps, -eps3 save as Encapsulated PostScript level 3 .TP .B -eps2 save as Encapsulated PostScript level 2 .TP .B -pdf save as Portable Document Format .TP .B -svg, -svg1.1 save as Scalable Vector Graphics version 1.1 .TP .B -svg1.2 save as Scalable Vector Graphics version 1.2 .TP .B -png save as Portable Network Graphics .TP .B -h, --help show help message .SH AUTHORS \fBHiroyuki Ito\fR .SH "SEE ALSO" .BR ngraph (1) .PP .SH "COPYRIGHT" .br Copyright \(co 1999 Hiroyuki Ito ngraph-gtk-6.06.13/misc/Makefile.am0000644000175000017500000000015712241111701013632 00000000000000EXTRA_DIST = ngraph.applications ngraph.mime ngraph.keys ngraph.desktop ngraph.xml ngraph.bash ngraph.1 ngp2.1 ngraph-gtk-6.06.13/misc/ngraph.keys0000644000175000017500000000207012241111701013746 00000000000000application/x-ngraph open=ngraph %f icon_filename=application-x-ngraph.png description=Ngraph default_action_type=application short_list_application_ids_for_novice_user_level=ngraph short_list_application_ids_for_intermediate_user_level=ngraph short_list_application_ids_for_advanced_user_level=ngraph category=Documents/Graphics application/x-ngraph-script open=gedit %f icon_filename=application-x-ngraph-script.png description=Ngraph script default_action_type=application short_list_application_ids_for_novice_user_level=ngraph short_list_application_ids_for_intermediate_user_level=ngraph short_list_application_ids_for_advanced_user_level=ngraph category=Documents application/x-ngraph-graphic open=ngraph %f icon_filename=application-x-ngraph-graphic.png description=Ngraph graphic file default_action_type=application short_list_application_ids_for_novice_user_level=ngraph short_list_application_ids_for_intermediate_user_level=ngraph short_list_application_ids_for_advanced_user_level=ngraph category=Documents/Graphics ngraph-gtk-6.06.13/misc/ngraph.applications0000644000175000017500000000021312241111702015457 00000000000000ngraph command=ngraph name=ngraph can_open_multiple_files=false expects_uris=false requires_terminal=false mime_types=image/x-ngraph ngraph-gtk-6.06.13/misc/ngraph.desktop0000644000175000017500000000052712241111702014452 00000000000000[Desktop Entry] Name=Ngraph Comment=create scientific 2-dimensional graphs Comment[ja]=科学技術用 2D グラフ作成 Exec=ngraph %f TryExec=ngraph Icon=ngraph Terminal=false Type=Application Version=1.0 Categories=GTK;GNOME;Graphics; MimeType=application/x-ngraph;application/x-ngraph-graphic Keywords=graph;scientific;chart;calculation; ngraph-gtk-6.06.13/misc/ngraph.mime0000644000175000017500000000015612241111702013726 00000000000000application/x-ngraph ext: ngp application/x-ngraph-script ext: nsc application/x-ngraph-graphic ext: gra ngraph-gtk-6.06.13/test/0000755000175000017500000000000012241600065011705 500000000000000ngraph-gtk-6.06.13/test/math_test_new.dat0000644000175000017500000000656712241111713015173 000000000000000xffff#65535 0b1011#11 0o377#255 123_456.789_E8#1.234567890000000e+13 const a:123*4=a#492 const bbb:=123*4;bbb#492 def f(x,y){x*y}=f(2,3)#6 ICBETA(2,3,0.4)#0.5248 ISNORMAL(0)#1 ISNORMAL(NAN)#0 ISBREAK(0)#0 ISBREAK(BREAK)#1 ISCONT(0)#0 ISCONT(CONT)#1 ISNAN(0)#0 ISNAN(NAN)#1 ISUNDEF(0)#0 ISUNDEF(dif(2))#1 ISUNDEF(UNDEF)#1 ISCONT(OR(1,cont))#1 ISBREAK(AND(0,break))#1 a[0]:2=a[1]:1=SORT(a)=a[0]#1 a[10]#0 a[0]:1=a[1]:2=RSORT(a)=a[0]#2 a[10]:10=SIZE(a)#11 b[0]:=2;b[1]:=1;SORT(b);b[0]#1 b[10]#0 b[0]:=1;b[1]:=2;RSORT(b);b[0]#2 b[10]:=10;SIZE(b)#11 UNLESS(1,2,3)#3 UNLESS(0,2,3)#2 break::break#0 break==break#0 0.2::0.20#1 0.2==0.20#1 0.2::0.21#0 0.2==0.21#0 0::0.0#1 0==0.0#1 0::-0.0#1 0==-0.0#1 -0::0.0#1 -0==0.0#1 -0!:0.0#0 -0!=0.0#0 0.21::0.2#0 0.21==0.2#0 0.2>:0.20#1 0.2>:0.21#0 0.21>:0.2#1 0.2>0.20#0 0.21>0.2#1 0.2>0.21#0 0.2<:0.20#1 0.2<:0.21#1 0.21<:0.2#0 0.2>=0.20#1 0.2>=0.21#0 0.21>=0.2#1 0.2>0.20#0 0.21>0.2#1 0.2>0.21#0 0.2<=0.20#1 0.2<=0.21#1 0.21<=0.2#0 0.2<0.20#0 0.2<0.21#1 0.21<0.2#0 0.0&&0.2#0 0.1&&0.2#0.2 0.2&&0.0#0 nan&&0.1#nan 0.0&&nan#0 0.1&&nan#nan undef&&0.1#undefined 0.0&&undef#0 0.1&&undef#undefined 0.1&&break#0 0.1&&cont#0 break&&0.1#0 cont&&0.1#0 0.0||0.2#0.2 0.21||0.2#0.21 0.21||0.0#0.21 nan||0.1#0.1 0.0||nan#nan 0.1||nan#0.1 undef||0.1#0.1 0.0||undef#undefined 0.1||undef#0.1 0.1||break#0.1 0.1||cont#0.1 break||0.1#0.1 cont||0.1#0.1 (zeta_int(2)*6)^0.5#3.141592653589793e+00 (zeta(2)*6)^0.5#3.141592653589794e+00 ((zetam1_int(2)+1)*6)^0.5#3.141592653589793e+00 ((zetam1(2)+1)*6)^0.5#3.141592653589794e+00 jnu(1.5,2.3)#5.2110918572117E-01 ynu(1.5,2.3)#-2.3991644631326E-01 jl(5,2.3)#5.0374877417878E-03 yl(5,2.3)#-8.6948247901974E+00 in(5,2.3)#2.0824734274240E-02 kn(5,2.3)#4.3528686306516E+00 inu(1.5,2.3)#1.5208328933032E+00 knu(1.5,2.3)#1.1887891043736E-01 prog1(1,2,3)#1 prog2(1,b:2,3)#2 prog2(1,b:=2,3)#2 b#2 progn(1,2,3)#3 progn(1,2,UNDEF)#undefined mjd2year(51603)#2000 mjd2month(51603)#2 mjd2day(51603)#29 mjd2wday(51603)#2 mjd2yday(51603)#60 unix2mjd(0)#40587 cm(BREAK)=isbreak(rm(0))#1 cm(100)=rm(0)#100 push(a,3)#3 push(a,4)#4 unshift(a,2)#2 unshift(a,1)#1 pop(a)#4 shift(a)#1 pop(a)#3 shift(a)#2 min(1,2,3,4,5,6,7,8,9,10)#1 max(1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10)#10 eq(1.009, 1.000, 2)#1 eq(1.005, 1.000, 3)#1 eq(1.0051, 1.000, 3)#0 eq(-10000, -9999, 4)#1 eq(-10000, -9999, 5)#0 eq(0.00501, 0.00500, 2)#1 eq(0.00501, 0.00500, 3)#0 neq(1.009, 1.000, 2)#0 neq(1.005, 1.000, 3)#0 neq(1.0051, 1.000, 3)#1 neq(-10000, -9999, 4)#0 neq(-10000, -9999, 5)#1 neq(0.00501, 0.00500, 2)#0 neq(0.00501, 0.00500, 3)#1 lt(1.00, 1.005, 2)#0 lt(1.00, 1.005, 3)#0 lt(1.00, 1.0051, 3)#1 lt(-10000, -9999, 4)#0 lt(-10000, -9999, 5)#1 lt(0.0050, 0.00501, 2)#0 lt(0.0050, 0.00501, 3)#1 le(1.00, 1.005, 2)#1 le(1.00, 1.005, 3)#1 le(1.00, 1.0051, 3)#1 le(-10000, -9999, 4)#1 le(-10000, -9999, 5)#1 le(0.0050, 0.00501, 2)#1 le(0.0050, 0.00501, 3)#1 gt(1.005, 1.00, 2)#0 gt(1.005, 1.00, 3)#0 gt(1.0051, 1.00, 3)#1 gt(-9999, -10000, 4)#0 gt(-9999, -10000, 5)#1 gt(0.00501, 0.0050, 2)#0 gt(0.00501, 0.0050, 3)#1 ge(1.005, 1.00, 2)#1 ge(1.005, 1.00, 3)#1 ge(1.0051, 1.00, 3)#1 ge(-9999, -10000, 4)#1 ge(-9999, -10000, 5)#1 ge(0.00501, 0.0050, 2)#1 ge(0.00501, 0.0050, 3)#1 9.000 000 000 000 002::9.000 000 000 000 000#0 0.6::0.60#1 0.3::0.30#1 9.000 000 000 000 002==9.000 000 000 000 000#0 0.6==0.60#1 0.3==0.30#1 b:=3;b*=2;b#6 b:=3;b+=2;b#5 b:=3;b-=2;b#1 b:=3;b/=2;b#1.5 b:=3;b\=2;b#1 b:=3;b^=2;b#9 ngraph-gtk-6.06.13/test/Makefile.in0000644000175000017500000003735312241364552013715 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = test DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = regexp_test.nsc io_test.nsc math_test.nsc \ math_test_new.dat math_test_old.dat iarray_test.nsc \ darray_test.nsc sarray_test.nsc string_test.nsc NGRAPH = ../src/ngraph all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am test: math_test io_test regexp_test iarray_test darray_test sarray_test string_test string_test: string_test.nsc $(NGRAPH) -i string_test.nsc iarray_test: iarray_test.nsc $(NGRAPH) -i iarray_test.nsc darray_test: darray_test.nsc $(NGRAPH) -i darray_test.nsc sarray_test: sarray_test.nsc $(NGRAPH) -i sarray_test.nsc io_test: io_test.nsc $(NGRAPH) -i io_test.nsc regexp_test: regexp_test.nsc $(NGRAPH) -i regexp_test.nsc math_test: math_test.nsc math_test_old.dat math_test_new.dat $(NGRAPH) -i math_test.nsc math_test_old.dat math_test_new.dat # original Ngraph causes following errors # # error E # expected: 2.718281828459045e+00 # result: 2.718281828459050e+00 # difference: 4.884981308350689e-15 # error UNDEF # expected: undefined # result: undifined # shell: dexpr: illegal type of argument # difference: # error ASIN(1/2) # expected: 5.235987755982989e-01 # result: 5.235987755982988e-01 # difference: -1.110223024625157e-16 # error EI(1/2) # expected: 4.542199048631735e-01 # result: 4.542199048631737e-01 # difference: 2.220446049250313e-16 # error EQ(0.1,BREAK) # expected: 0.000000000000000e+00 # result: 1.000000000000000e-01 # difference: 1.000000000000000e-01 # error EQ(0.1,CONT) # expected: 0.000000000000000e+00 # result: 1.000000000000000e-01 # difference: 1.000000000000000e-01 # error NEQ(0.1,BREAK) # expected: 0.000000000000000e+00 # result: 1.000000000000000e-01 # difference: 1.000000000000000e-01 # error NEQ(0.1,CONT) # expected: 0.000000000000000e+00 # result: 1.000000000000000e-01 # difference: 1.000000000000000e-01 # error OR(1,break) # expected: 0.000000000000000e+00 # result: 1.000000000000000e+00 # difference: 1.000000000000000e+00 # error OR(1,cont) # expected: 0.000000000000000e+00 # result: 1.000000000000000e+00 # difference: 1.000000000000000e+00 # error AND(undef,1) # expected: undefined # result: undifined # shell: dexpr: illegal type of argument # difference: # error AND(1,undef) # expected: undefined # result: undifined # shell: dexpr: illegal type of argument # difference: # error AND(0,undef) # expected: undefined # result: undifined # shell: dexpr: illegal type of argument # difference: # shell: dexpr: illegal type of argument # error dif(2) # expected: undefined # result: # shell: dexpr: illegal type of argument # difference: # shell: dexpr: illegal type of argument # error sum(2) # expected: 2.000000000000000e+00 # result: # difference: -2.000000000000000e+00 # shell: dexpr: illegal type of argument # error FOR(0,1,10,1,sum(1)) # expected: 1.000000000000000e+01 # result: # difference: -1.000000000000000e+01 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/test/io_test.nsc0000644000175000017500000000223112241111713013773 00000000000000#! /usr/bin/ngraph set +e TEST_STR="test str..." TEST_STR2="123" TEST_FILE=${system::temp_file} new io # gets and puts test io::mode="w+" io::open "$TEST_FILE" io::puts $TEST_STR io::rewind str=${io::gets} if [ "$str" != "$TEST_STR" ] then echo "error. (gets and puts)" else echo "OK. (gets and puts)" fi # getc and putc test TEST_CHAR=48 io::putc $TEST_CHAR io::whence=cur io::seek -1 ch=${io::getc} if [ "$ch" -ne $TEST_CHAR ] then echo "error. (getc and putc)" else echo "OK. (getc and putc)" fi # read and write test TEST_STR="123" io::write $TEST_STR io::whence=cur io::seek -3 str=${io::read:3} if [ "$str" -ne $TEST_STR ] then echo "error. (read and write)" echo "$str" echo "$TEST_STR" else echo "OK. (read and write)" fi # flush test io::flush # tell test if [ ${io::tell} -ne 16 ] then echo "error. (tell)" else echo "OK. (tell)" fi io::getc # eof test if io::eof then echo "OK. (eof)" else echo "error. (eof)" fi io::close # popen test io::mode="r" io::popen "ls io_test.nsc" str=${io::gets} if [ $str != "io_test.nsc" ] then echo "error. (popen)" else echo "OK. (popen)" fi io::close del system ngraph-gtk-6.06.13/test/regexp_test.nsc0000644000175000017500000000164012241111713014661 00000000000000show_result() { if [ "$2" = "$3" ] then echo "OK. ($1)" else echo "error. ($1) $2 $3" fi } check_match() { n=${regexp::num} m=`object sarray -instance` show_result "num" "$n" "$m" for i in ${regexp::seq} do for j in `get sarray:$i -field seq` do s1=`get regexp -field get:"$i $j"` s2=`get sarray:$i -field get:$j` show_result "get" "$s1" "$s2" done done } new regexp new sarray new sarray regexp::@="(foo)(bar)(BAZ)?" regexp::match 'foobarbaz foobarBAZ' sarray:0:@="foobar foo bar" sarray:1:@="foobarBAZ foo bar BAZ" check_match regexp::@="(?i)(foo)(bar)(BAZ)?" regexp::match 'FOObarbaz foobarBAZ' sarray:0:@="FOObarbaz FOO bar baz" sarray:1:@="foobarBAZ foo bar BAZ" check_match regexp::@="(foo)(bar)(BAZ)?" show_result "replace" "${regexp::replace:'foobarbaz'}" "baz" show_result "replace" "${regexp::replace:'foobarbaz \\2\\1'}" "barfoobaz" del system ngraph-gtk-6.06.13/test/math_test.nsc0000644000175000017500000000115112241111713014315 00000000000000#! /usr/bin/ngraph check_val() { if [ "$1" = "nan" -o "$1" = "undefined" ] then echo $1 else get text -field printf:"%.13E $1" fi } set +e new text new io while [ -n "$1" ] do io::open "$1" while l=`get io -field gets` do eqn=${l%#*} val=`check_val ${l#*#}` RESULT=`dexpr "$eqn"` RESULT=`check_val $RESULT` if [ "$RESULT" != "$val" ] then echo echo error "$eqn" echo ' expected:' "$val" echo ' result:' "$RESULT" echo ' difference:' `dexpr $RESULT-$val` else echo "OK. ($eqn)" fi done io::close shift done del system ngraph-gtk-6.06.13/test/Makefile.am0000644000175000017500000000564512241111713013670 00000000000000EXTRA_DIST = regexp_test.nsc io_test.nsc math_test.nsc \ math_test_new.dat math_test_old.dat iarray_test.nsc \ darray_test.nsc sarray_test.nsc string_test.nsc NGRAPH=../src/ngraph test: math_test io_test regexp_test iarray_test darray_test sarray_test string_test string_test: string_test.nsc $(NGRAPH) -i string_test.nsc iarray_test: iarray_test.nsc $(NGRAPH) -i iarray_test.nsc darray_test: darray_test.nsc $(NGRAPH) -i darray_test.nsc sarray_test: sarray_test.nsc $(NGRAPH) -i sarray_test.nsc io_test: io_test.nsc $(NGRAPH) -i io_test.nsc regexp_test: regexp_test.nsc $(NGRAPH) -i regexp_test.nsc math_test: math_test.nsc math_test_old.dat math_test_new.dat $(NGRAPH) -i math_test.nsc math_test_old.dat math_test_new.dat # original Ngraph causes following errors # # error E # expected: 2.718281828459045e+00 # result: 2.718281828459050e+00 # difference: 4.884981308350689e-15 # error UNDEF # expected: undefined # result: undifined # shell: dexpr: illegal type of argument # difference: # error ASIN(1/2) # expected: 5.235987755982989e-01 # result: 5.235987755982988e-01 # difference: -1.110223024625157e-16 # error EI(1/2) # expected: 4.542199048631735e-01 # result: 4.542199048631737e-01 # difference: 2.220446049250313e-16 # error EQ(0.1,BREAK) # expected: 0.000000000000000e+00 # result: 1.000000000000000e-01 # difference: 1.000000000000000e-01 # error EQ(0.1,CONT) # expected: 0.000000000000000e+00 # result: 1.000000000000000e-01 # difference: 1.000000000000000e-01 # error NEQ(0.1,BREAK) # expected: 0.000000000000000e+00 # result: 1.000000000000000e-01 # difference: 1.000000000000000e-01 # error NEQ(0.1,CONT) # expected: 0.000000000000000e+00 # result: 1.000000000000000e-01 # difference: 1.000000000000000e-01 # error OR(1,break) # expected: 0.000000000000000e+00 # result: 1.000000000000000e+00 # difference: 1.000000000000000e+00 # error OR(1,cont) # expected: 0.000000000000000e+00 # result: 1.000000000000000e+00 # difference: 1.000000000000000e+00 # error AND(undef,1) # expected: undefined # result: undifined # shell: dexpr: illegal type of argument # difference: # error AND(1,undef) # expected: undefined # result: undifined # shell: dexpr: illegal type of argument # difference: # error AND(0,undef) # expected: undefined # result: undifined # shell: dexpr: illegal type of argument # difference: # shell: dexpr: illegal type of argument # error dif(2) # expected: undefined # result: # shell: dexpr: illegal type of argument # difference: # shell: dexpr: illegal type of argument # error sum(2) # expected: 2.000000000000000e+00 # result: # difference: -2.000000000000000e+00 # shell: dexpr: illegal type of argument # error FOR(0,1,10,1,sum(1)) # expected: 1.000000000000000e+01 # result: # difference: -1.000000000000000e+01 ngraph-gtk-6.06.13/test/iarray_test.nsc0000644000175000017500000000462512241111713014664 00000000000000show_result() { if [ "$2" = "$3" ] then echo "OK. ($1)" else echo "error. ($1) $2 $3" fi } show_result_val() { if [ `iexpr "EQ($2, $3, 15)"` = "1" ] then echo "OK. ($1)" else echo "error. ($1) $2 $3" fi } new iarray iarray::@="1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1" s="${iarray::join}" show_result "join" "$s" "1,2,3,4,5,6,7,8,9,0,9,8,7,6,5,4,3,2,1" iarray::rsort s="${iarray::join}" show_result "rsort" "$s" "9,9,8,8,7,7,6,6,5,5,4,4,3,3,2,2,1,1,0" iarray::sort s="${iarray::join}" show_result "sort" "$s" "0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9" iarray::uniq s="${iarray::join}" show_result "uniq" "$s" "0,1,2,3,4,5,6,7,8,9" s="${iarray::seq}" show_result "seq" "$s" "0 1 2 3 4 5 6 7 8 9" s="${iarray::rseq}" show_result "rseq" "$s" "9 8 7 6 5 4 3 2 1 0" s="${iarray::pop}" show_result "pop" "$s" "9" s="${iarray::join}" show_result "pop" "$s" "0,1,2,3,4,5,6,7,8" iarray::push "9" s="${iarray::join}" show_result "push" "$s" "0,1,2,3,4,5,6,7,8,9" s="${iarray::shift}" show_result "shift" "$s" "0" s="${iarray::join}" show_result "shift" "$s" "1,2,3,4,5,6,7,8,9" iarray::unshift "0" s="${iarray::join}" show_result "unshift" "$s" "0,1,2,3,4,5,6,7,8,9" s="${iarray::get:-2}" show_result "get" "$s" "8" iarray::reverse s="${iarray::join}" show_result "reverse" "$s" "9,8,7,6,5,4,3,2,1,0" iarray::@="1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1" TEMP_FILE=${system::temp_file} echo "${iarray::join:'\n'}" > $TEMP_FILE new file file::file=$TEMP_FILE file::y=1 avg="${file::davy}" sig="${file::dsigy}" min="${file::dminy}" max="${file::dmaxy}" rms=`dexpr "sqrt($sig^2+$avg^2)"` del file s="${iarray::sum}" show_result "sum" "$s" "90" s="${iarray::average}" show_result "average" "$s" "$avg" s="${iarray::RMS}" show_result_val "RMS" "$s" "$rms" s="${iarray::sdev}" show_result "sdev" "$s" "$sig" s="${iarray::min}" show_result_val "min" "$s" "$min" s="${iarray::max}" show_result_val "max" "$s" "$max" iarray::slice 1 3 s="${iarray::join}" show_result "slice" "$s" "2,3,4" iarray::@="1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1" iarray::slice -4 3 iarray::reverse s="${iarray::join}" show_result "slice" "$s" "2,3,4" iarray::@="1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1" iarray::map "x ^ 2" s="${iarray::join}" show_result "map" "$s" "1,4,9,16,25,36,49,64,81,0,81,64,49,36,25,16,9,4,1" iarray::map "i" s="${iarray::join}" show_result "map" "$s" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18" del system ngraph-gtk-6.06.13/test/sarray_test.nsc0000644000175000017500000000372012241111713014671 00000000000000show_result() { if [ "$2" = "$3" ] then echo "OK. ($1)" else echo "error. ($1) $2 $3" fi } new sarray sarray::delimiter=",+" sarray::split "1,,2,,3,,4,,5,,6,,7,,8,,9,,0,,9,,8,,7,,6,,5,,4,,3,,2,,1" s="${sarray::join}" show_result "join" "$s" "1,2,3,4,5,6,7,8,9,0,9,8,7,6,5,4,3,2,1" sarray::rsort s="${sarray::join}" show_result "rsort" "$s" "9,9,8,8,7,7,6,6,5,5,4,4,3,3,2,2,1,1,0" sarray::sort s="${sarray::join}" show_result "sort" "$s" "0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9" sarray::uniq s="${sarray::join}" show_result "uniq" "$s" "0,1,2,3,4,5,6,7,8,9" s="${sarray::seq}" show_result "seq" "$s" "0 1 2 3 4 5 6 7 8 9" s="${sarray::rseq}" show_result "rseq" "$s" "9 8 7 6 5 4 3 2 1 0" s="${sarray::pop}" show_result "pop" "$s" "9" s="${sarray::join}" show_result "pop" "$s" "0,1,2,3,4,5,6,7,8" sarray::push "9" s="${sarray::join}" show_result "push" "$s" "0,1,2,3,4,5,6,7,8,9" s="${sarray::shift}" show_result "shift" "$s" "0" s="${sarray::join}" show_result "shift" "$s" "1,2,3,4,5,6,7,8,9" sarray::unshift "0" s="${sarray::join}" show_result "unshift" "$s" "0,1,2,3,4,5,6,7,8,9" s="${sarray::get:-2}" show_result "get" "$s" "8" sarray::reverse s="${sarray::join}" show_result "reverse" "$s" "9,8,7,6,5,4,3,2,1,0" sarray::@="1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1" sarray::slice 1 3 s="${sarray::join}" show_result "slice" "$s" "2,3,4" sarray::@="1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1" sarray::slice -4 3 sarray::reverse s="${sarray::join}" show_result "slice" "$s" "2,3,4" sarray::@="0 9 8 7 6 5 4 3 2 1" sarray::put -4 -4 s="${sarray::join}" show_result "put" "$s" "0,9,8,7,6,5,-4,3,2,1" sarray::@="0 9 8 7 6 5 4 3 2 1" sarray::put 4 -4 s="${sarray::join}" show_result "put" "$s" "0,9,8,7,-4,5,4,3,2,1" sarray::@="0 9 8 7 6 5 4 3 2 1" sarray::ins -4 100 s="${sarray::join}" show_result "ins" "$s" "0,9,8,7,6,5,100,4,3,2,1" sarray::@="0 9 8 7 6 5 4 3 2 1" sarray::ins 4 100 s="${sarray::join}" show_result "ins" "$s" "0,9,8,7,100,6,5,4,3,2,1" del system ngraph-gtk-6.06.13/test/darray_test.nsc0000644000175000017500000000660212241111713014654 00000000000000show_result() { if [ "$2" = "$3" ] then echo "OK. ($1)" else echo "error. ($1) $2 $3" fi } show_result_val() { if [ `iexpr "EQ($2, $3, 15)"` = "1" ] then echo "OK. ($1)" else echo "error. ($1) $2 $3" fi } new darray darray::@="1 2 3 4 3 2 1" s="${darray::join}" show_result "join" "$s" "1.000000000000000e+00,2.000000000000000e+00,3.000000000000000e+00,4.000000000000000e+00,3.000000000000000e+00,2.000000000000000e+00,1.000000000000000e+00" darray::rsort s="${darray::join}" show_result "rsort" "$s" "4.000000000000000e+00,3.000000000000000e+00,3.000000000000000e+00,2.000000000000000e+00,2.000000000000000e+00,1.000000000000000e+00,1.000000000000000e+00" darray::sort s="${darray::join}" show_result "sort" "$s" "1.000000000000000e+00,1.000000000000000e+00,2.000000000000000e+00,2.000000000000000e+00,3.000000000000000e+00,3.000000000000000e+00,4.000000000000000e+00" darray::uniq s="${darray::join}" show_result "uniq" "$s" "1.000000000000000e+00,2.000000000000000e+00,3.000000000000000e+00,4.000000000000000e+00" s="${darray::seq}" show_result "seq" "$s" "0 1 2 3" s="${darray::rseq}" show_result "rseq" "$s" "3 2 1 0" s="${darray::pop}" show_result "pop" "$s" "4.000000000000000e+00" s="${darray::join}" show_result "pop" "$s" "1.000000000000000e+00,2.000000000000000e+00,3.000000000000000e+00" darray::push "4" s="${darray::join}" show_result "push" "$s" "1.000000000000000e+00,2.000000000000000e+00,3.000000000000000e+00,4.000000000000000e+00" s="${darray::shift}" show_result "shift" "$s" "1.000000000000000e+00" s="${darray::join}" show_result "shift" "$s" "2.000000000000000e+00,3.000000000000000e+00,4.000000000000000e+00" darray::unshift "0" s="${darray::join}" show_result "unshift" "$s" "0.000000000000000e+00,2.000000000000000e+00,3.000000000000000e+00,4.000000000000000e+00" s="${darray::get:-2}" show_result "get" "$s" "3.000000000000000e+00" darray::reverse s="${darray::join}" show_result "reverse" "$s" "4.000000000000000e+00,3.000000000000000e+00,2.000000000000000e+00,0.000000000000000e+00" darray::pop darray::reverse s="${darray::join}" show_result "reverse" "$s" "2.000000000000000e+00,3.000000000000000e+00,4.000000000000000e+00" darray::@="1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1" TEMP_FILE=${system::temp_file} echo "${darray::join:'\n'}" > $TEMP_FILE new file file::file=$TEMP_FILE file::y=1 avg="${file::davy}" sig="${file::dsigy}" min="${file::dminy}" max="${file::dmaxy}" rms=`dexpr "sqrt($sig^2+$avg^2)"` del file s="${darray::sum}" show_result "sum" "$s" "9.000000000000000e+01" s="${darray::average}" show_result "average" "$s" "$avg" s="${darray::RMS}" show_result_val "RMS" "$s" "$rms" s="${darray::sdev}" show_result "sdev" "$s" "$sig" s="${darray::min}" show_result "min" "$s" "$min" s="${darray::max}" show_result "max" "$s" "$max" darray::slice 1 3 s="${darray::join}" show_result "slice" "$s" "2.000000000000000e+00,3.000000000000000e+00,4.000000000000000e+00" darray::@="1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1" darray::slice -4 3 darray::reverse s="${darray::join}" show_result "slice" "$s" "2.000000000000000e+00,3.000000000000000e+00,4.000000000000000e+00" darray::@="1 2 3" darray::map "x ^ 2" s="${darray::join}" show_result "map" "$s" "1.000000000000000e+00,4.000000000000000e+00,9.000000000000000e+00" darray::map "i" s="${darray::join}" show_result "map" "$s" "0.000000000000000e+00,1.000000000000000e+00,2.000000000000000e+00" del system ngraph-gtk-6.06.13/test/math_test_old.dat0000644000175000017500000001116712241111713015150 00000000000000PI#3.141592653589793e+00 E#2.718281828459050e+00 EULER#5.772156649015329e-01 NAN#nan UNDEF#undefined CONT#0.000000000000000e+00 BREAK#0.000000000000000e+00 -123#-1.230000000000000e+02 +123#1.230000000000000e+02 1+2#3.000000000000000e+00 3-1#2.000000000000000e+00 3*5#1.500000000000000e+01 6/3#2.000000000000000e+00 6/0#nan 5\3#2.000000000000000e+00 2^4#1.600000000000000e+01 4!#2.400000000000000e+01 ABS(-10)#1.000000000000000e+01 SIGN(-10)#-1.000000000000000e+00 SIGN(10)#1.000000000000000e+00 INT(-1.1)#-1.000000000000000e+00 INT(1.1)#1.000000000000000e+00 GAUSS(-1.1)#-2.000000000000000e+00 GAUSS(1.1)#1.000000000000000e+00 FRAC(1.1)#1.000000000000001e-01 FRAC(-1.1)#-1.000000000000001e-01 ROUND(1.1)#1.000000000000000e+00 ROUND(-1.1)#-1.000000000000000e+00 MIN(1,1.1)#1.000000000000000e+00 MAX(1,1.1)#1.100000000000000e+00 SQR(PI)#9.869604401089358e+00 SQRT(16)#4.000000000000000e+00 EXP(3)#2.008553692318767e+01 LN(10)#2.302585092994046e+00 LOG(2)#3.010299956639812e-01 SIN(PI/2)#1.000000000000000e+00 COS(PI/4)#7.071067811865476e-01 TAN(PI/4)#9.999999999999999e-01 ASIN(1/2)#5.235987755982988e-01 ACOS(1/2)#1.047197551196598e+00 ATAN(1/2)#4.636476090008061e-01 SINH(2)#3.626860407847019e+00 COSH(2)#3.762195691083631e+00 TANH(2)#9.640275800758169e-01 ASINH(1/2)#4.812118250596035e-01 ACOSH(1.5)#9.624236501192069e-01 ATANH(1/2)#5.493061443340549e-01 THETA(-1)#0.000000000000000e+00 THETA(0)#1.000000000000000e+00 THETA(1)#1.000000000000000e+00 DELTA(-1)#0.000000000000000e+00 DELTA(0)#1.000000000000000e+00 DELTA(1)#0.000000000000000e+00 GAMMA(1/2)#1.772453850905516e+00 ICGAM(1,1/2)#6.065306597126334e-01 ERFC(1/2)#4.795001221869535e-01 QINV(1/2)#0.000000000000000e+00 EI(1/2)#4.542199048631737e-01 BETA(1,1/2)#2.000000000000000e+00 JN(0,1/2)#9.384698072408129e-01 JN(1,1/2)#2.422684576748739e-01 JN(2,1/2)#3.060402345868264e-02 YN(0,1/2)#-4.445187335067065e-01 YN(1,1/2)#-1.471472392670243e+00 YN(2,1/2)#-5.441370837174266e+00 PN(0,1/2)#1.000000000000000e+00 PN(1,1/2)#5.000000000000000e-01 PN(2,1/2)#-1.250000000000000e-01 PN(3,1/2)#-4.375000000000000e-01 PN(10,1)#1.000000000000000e+00 LGN(1,1,1/2)#1.500000000000000e+00 LGN(2,1,1/2)#1.625000000000000e+00 LGN(3,1,1/2)#1.479166666666667e+00 LGN(4,1,1/2)#1.148437500000000e+00 HN(1,0.4)#8.000000000000000e-01 TN(1,0.9)#9.000000000000000e-01 TN(2,0.8)#2.800000000000000e-01 TN(10,0.9)#-2.007474688000005e-01 MJD(2000,1,1)#5.154400000000000e+04 EQ(0.2,0.2)#1.000000000000000e+00 EQ(0.21,0.2)#0.000000000000000e+00 EQ(0.2,0.21)#0.000000000000000e+00 EQ(BREAK,BREAK)#0.000000000000000e+00 EQ(CONT,BREAK)#0.000000000000000e+00 EQ(CONT,CONT)#0.000000000000000e+00 EQ(BREAK,0.1)#0.000000000000000e+00 EQ(CONT,0.1)#0.000000000000000e+00 EQ(0.1,BREAK)#0.000000000000000e+00 EQ(0.1,CONT)#0.000000000000000e+00 NEQ(0.2,0.2)#0.000000000000000e+00 NEQ(0.21,0.2)#1.000000000000000e+00 NEQ(0.2,0.21)#1.000000000000000e+00 NEQ(BREAK,BREAK)#0.000000000000000e+00 NEQ(CONT,BREAK)#0.000000000000000e+00 NEQ(CONT,CONT)#0.000000000000000e+00 NEQ(BREAK,0.1)#0.000000000000000e+00 NEQ(CONT,0.1)#0.000000000000000e+00 NEQ(0.1,BREAK)#0.000000000000000e+00 NEQ(0.1,CONT)#0.000000000000000e+00 GE(0.2,0.2)#1.000000000000000e+00 GE(0.21,0.2)#1.000000000000000e+00 GE(0.2,0.21)#0.000000000000000e+00 GT(0.2,0.2)#0.000000000000000e+00 GT(0.21,0.2)#1.000000000000000e+00 GT(0.2,0.21)#0.000000000000000e+00 LE(0.2,0.2)#1.000000000000000e+00 LE(0.2,0.21)#1.000000000000000e+00 LE(0.21,0.2)#0.000000000000000e+00 LT(0.2,0.2)#0.000000000000000e+00 LT(0.2,0.21)#1.000000000000000e+00 LT(0.21,0.2)#0.000000000000000e+00 NOT(0)#1.000000000000000e+00 NOT(1)#0.000000000000000e+00 NOT(-1)#0.000000000000000e+00 OR(0,0)#0.000000000000000e+00 OR(1,0)#1.000000000000000e+00 OR(0,1)#1.000000000000000e+00 OR(1,1)#1.000000000000000e+00 OR(nan,1)#nan OR(break,1)#0.000000000000000e+00 OR(1,break)#0.000000000000000e+00 OR(0,break)#0.000000000000000e+00 OR(cont,1)#0.000000000000000e+00 OR(1,cont)#0.000000000000000e+00 OR(0,cont)#0.000000000000000e+00 AND(break,1)#0.000000000000000e+00 AND(undef,1)#undefined AND(1,undef)#undefined AND(0,undef)#undefined AND(cont,1)#0.000000000000000e+00 AND(break,1)#0.000000000000000e+00 AND(NAN,1)#nan AND(1, NAN)#nan AND(0, NAN)#nan AND(1,1)#1.000000000000000e+00 AND(1,0)#0.000000000000000e+00 AND(0,1)#0.000000000000000e+00 AND(0,0)#0.000000000000000e+00 XOR(1,1)#0.000000000000000e+00 XOR(1,0)#1.000000000000000e+00 XOR(0,1)#1.000000000000000e+00 XOR(0,0)#0.000000000000000e+00 IF(1,1,2)#1.000000000000000e+00 IF(0,1,2)#2.000000000000000e+00 IF(BREAK,1,2)#2.000000000000000e+00 IF(CONT,1,2)#2.000000000000000e+00 IF(NAN,1,2)#2.000000000000000e+00 IF(UNDEF,1,2)#2.000000000000000e+00 dif(2)#undefined sum(2)#2.000000000000000e+00 FOR(0,1,10,1,sum(1))#1.000000000000000e+01 ngraph-gtk-6.06.13/test/string_test.nsc0000644000175000017500000000175712241111713014706 00000000000000show_result() { if [ "$2" = "$3" ] then echo "OK. ($1)" else echo "error. ($1) '$2' '$3'" fi } new string string::@=" a b b b c d e f BCD" show_result "strip" "${string::strip}" "a b b b c d e f BCD" show_result "upcase" "${string::upcase}" " A B B B C D E F BCD" show_result "downcase" "${string::downcase}" " a b b b c d e f bcd" show_result "reverse" "${string::reverse}" "DCB f e d c b b b a " show_result "slice" "${string::slice:'6 9'}" "b b c" show_result "slice" "${string::slice:'21 4'}" "f BC" show_result "index" "${string::index:'D 25'}" "25" show_result "index" "${string::index:'a 1'}" "1" show_result "rindex" "${string::rindex:'a 1'}" "1" show_result "rindex" "${string::rindex:'b 20'}" "10" show_result "match" "${string::match:'f.B'}" "true" show_result "match" "${string::match:'a[^b]+c'}" "false" del system ngraph-gtk-6.06.13/config.rpath0000755000175000017500000004443512241364012013167 00000000000000#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2013 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; nagfor*) wl='-Wl,-Wl,,' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; xl* | bgxl* | bgf* | mpixl*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ F* | *Sun*Fortran*) wl= ;; *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; newsos6) ;; *nto* | *qnx*) ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) wl='-Qoption ld ' ;; *) wl='-Wl,' ;; esac ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; haiku*) ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then : else ld_shlibs=no fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) case "$host_cpu" in powerpc*) library_names_spec='$libname$shrext' ;; m68k) library_names_spec='$libname.a' ;; esac ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd* | dragonfly*) case "$host_os" in freebsd[123]*) library_names_spec='$libname$shrext$versuffix' ;; *) library_names_spec='$libname$shrext' ;; esac ;; gnu*) library_names_spec='$libname$shrext' ;; haiku*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; *nto* | *qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; tpf*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <, YEAR. # msgid "" msgstr "" "Project-Id-Version: Ngraph-gtk 6.03.48\n" "Report-Msgid-Bugs-To: ZXB01226@nifty.com\n" "POT-Creation-Date: 2013-11-14 18:24+0900\n" "PO-Revision-Date: 2013-07-17 11:18+0900\n" "Last-Translator: Ito Hiroyuki \n" "Language-Team: Ito Hiroyuki \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtk/ox11menu.c:2033 msgid "Unsaved Graph" msgstr "新規グラフ" #: src/gtk/ox11dlg.c:578 msgid "Open file" msgstr "ファイルを開く" #: src/gtk/ox11dlg.c:626 msgid "Open files" msgstr "ファイルを開く" #: src/gtk/ox11dlg.c:674 msgid "Save file" msgstr "別名で保存" #: src/gtk/ogra2cairo.c:45 src/gtk/x11axis.c:1148 src/gtk/x11axis.c:2283 #: src/odraw.c:84 src/oaxis.c:71 src/oaxis.c:86 msgid "none" msgstr "なし" #: src/gtk/ogra2cairo.c:46 msgid "default" msgstr "デフォルト" #: src/gtk/ogra2cairo.c:47 msgid "gray" msgstr "グレイスケール" #: src/gtk/x11axis.c:57 src/gtk/x11opt.c:474 src/gtk/x11opt.c:1182 msgid "name" msgstr "名前" #: src/gtk/x11axis.c:58 msgid "min" msgstr "最小" #: src/gtk/x11axis.c:59 msgid "max" msgstr "最大" #: src/gtk/x11axis.c:60 msgid "inc" msgstr "増分" #: src/gtk/x11axis.c:61 src/gtk/x11file.c:74 msgid "type" msgstr "タイプ" #: src/gtk/x11axis.c:64 src/gtk/x11axis.c:170 msgid "dir" msgstr "方向" #: src/gtk/x11axis.c:65 msgid "len" msgstr "長さ" #: src/gtk/x11axis.c:89 src/gtk/x11file.c:118 src/gtk/x11lgnd.c:213 #: src/gtk/x11menu.c:627 src/gtk/x11merge.c:69 msgid "_Duplicate" msgstr "複製(_D)" #: src/gtk/x11axis.c:92 src/gtk/x11lgnd.c:217 msgid "_Focus" msgstr "フォーカス(_F)" #: src/gtk/x11axis.c:116 msgid "" "%a\tThe abbreviated weekday name.\n" "%A\tThe full weekday name.\n" "%b\tThe abbreviated month name.\n" "%B\tThe full month name.\n" "%c\tEquivalent to %a %b %e %T %Y.\n" "%C\tThe century number (year/100).\n" "%d\tThe day of the month (01 to 31).\n" "%e\tThe day of the month (1 to 31).\n" "%F\tEquivalent to %Y-%m-%d.\n" "%H\tThe hour (00 to 23).\n" "%I\tThe hour (01 to 12).\n" "%j\tThe day of the year (001 to 366).\n" "%k\tThe hour (0 to 23).\n" "%l\tThe hour (1 to 12).\n" "%m\tThe month (01 to 12).\n" "%M\tThe minute (00 to 59).\n" "%n\tA newline character.\n" "%p\tEither \"AM\" or \"PM\".\n" "%P\tEither \"am\" or \"pm\".\n" "%r\tEquivalent to %I:%M:%S %p.\n" "%R\tEquivalent to %H:%M.\n" "%S\tThe second (00 to 60).\n" "%T\tEquivalent to %H:%M:%S.\n" "%u\tThe day of the week, Monday being 1 (1 to 7).\n" "%w\tThe day of the week, Sunday being 0 (0 to 6).\n" "%y\tThe year without a century (00 to 99).\n" "%Y\tThe year including the century.\n" "%+\tEquivalent to %a %b %e %T GMT %Y.\n" "%%\tA literal '%' character." msgstr "" "%a\t曜日の省略名.\n" "%A\t曜日.\n" "%b\t月の省略名.\n" "%B\t月の完全な名前.\n" "%c\t%a %b %e %T %Y と同等.\n" "%C\t世紀 (西暦年の上 2 桁).\n" "%d\t月内通算日 (01 から 31).\n" "%e\t月内通算日 (1 から 31).\n" "%F\t%Y-%m-%d と同等.\n" "%H\t24 時間表記での時 (00 から 23).\n" "%I\t14 時間表記での時 (01 から 12).\n" "%j\t年の初めから通算の日数 (001 から 366).\n" "%k\t24 時間表記での時 (0 から 23).\n" "%l\t12 時間表記での時 (1 から 12).\n" "%m\t月 (01 から 12).\n" "%M\t分 (00 から 59).\n" "%n\t改行.\n" "%p\t\"AM\" または \"PM\".\n" "%P\t\"am\" または \"pm\".\n" "%r\t%I:%M:%S %p と同等.\n" "%R\t%H:%M と同等.\n" "%S\t秒 (00 から 60).\n" "%T\t%H:%M:%S と同等.\n" "%u\t週の何番目の日か。月曜日を 1 とする (1 から 7).\n" "%w\t週の何番目の日か。日曜日を 0 とする (0 から 6).\n" "%y\t西暦の下2桁 (世紀部分を含まない年) (00 から 99).\n" "%Y\t西暦年.\n" "%+\t%a %b %e %T GMT %Y と同等.\n" "%%\t'%' 文字." #: src/gtk/x11axis.c:317 #, c-format msgid "_Style %d:" msgstr "線種 %d(_S):" #: src/gtk/x11axis.c:322 src/gtk/x11axis.c:1728 #, c-format msgid "_Width %d:" msgstr "線幅 %d(_W):" #: src/gtk/x11axis.c:337 #, c-format msgid "Grid %d" msgstr "グリッド %d" #: src/gtk/x11axis.c:356 msgid "Axis (_X):" msgstr "_X 軸:" #: src/gtk/x11axis.c:360 msgid "draw _X grid" msgstr "_X グリッド描画" #: src/gtk/x11axis.c:365 msgid "Axis (_Y):" msgstr "_Y 軸:" #: src/gtk/x11axis.c:369 msgid "draw _Y grid" msgstr "_Y グリッド描画" #: src/gtk/x11axis.c:373 src/gtk/x11menu.c:1728 msgid "Axis" msgstr "軸" #: src/gtk/x11axis.c:386 src/gtk/x11axis.c:1510 src/gtk/x11axis.c:1724 #: src/gtk/x11axis.c:2215 src/gtk/x11lgnd.c:1077 src/gtk/x11lgnd.c:1097 #: src/gtk/x11lgnd.c:1107 src/gtk/x11lgndx.c:456 msgid "_Color:" msgstr "色(_C):" #: src/gtk/x11axis.c:389 msgid "_Background" msgstr "背景色(_B)" #: src/gtk/x11axis.c:395 src/gtk/x11opt.c:1791 msgid "_Background Color:" msgstr "背景色(_B):" #: src/gtk/x11axis.c:398 src/gtk/x11axis.c:3303 src/gtk/x11axis.c:3328 #: src/gtk/x11axis.c:3361 src/gtk/x11lgnd.c:3258 src/gtk/x11lgnd.c:3271 #: src/gtk/x11lgnd.c:3706 src/gtk/gtk_widget.c:1128 msgid "Color" msgstr "色" #: src/gtk/x11axis.c:416 src/gtk/x11axis.c:1739 msgid "Style" msgstr "スタイル" #: src/gtk/x11axis.c:654 src/gtk/x11axis.c:913 msgid "Graph _Width:" msgstr "幅(_W):" #: src/gtk/x11axis.c:658 src/gtk/x11axis.c:917 msgid "Graph _Height:" msgstr "高さ(_H):" #: src/gtk/x11axis.c:675 src/gtk/x11axis.c:933 msgid "_X axis" msgstr "_X 軸" #: src/gtk/x11axis.c:693 src/gtk/x11axis.c:951 msgid "_Y axis" msgstr "_Y 軸" #: src/gtk/x11axis.c:711 msgid "_U axis" msgstr "_U 軸" #: src/gtk/x11axis.c:729 msgid "_R axis" msgstr "_R 軸" #: src/gtk/x11axis.c:747 src/gtk/x11menu.c:1304 msgid "_Grid" msgstr "グリッド(_G)" #: src/gtk/x11axis.c:1052 src/gtk/x11merge.c:148 msgid "_Zoom:" msgstr "ズーム(_Z):" #: src/gtk/x11axis.c:1329 src/gtk/x11axis.c:1698 src/gtk/x11file.c:1548 msgid "_Min:" msgstr "最小値(_M):" #: src/gtk/x11axis.c:1333 src/gtk/x11axis.c:1703 src/gtk/x11file.c:1552 msgid "_Max:" msgstr "最大値(_M):" #: src/gtk/x11axis.c:1337 msgid "_Inc:" msgstr "増分(_I):" #: src/gtk/x11axis.c:1351 msgid "_File" msgstr "ファイル(_F)" #: src/gtk/x11axis.c:1359 msgid "_Scale:" msgstr "スケール法(_S):" #: src/gtk/x11axis.c:1363 src/gtk/x11file.c:1556 src/gtk/x11print.c:258 msgid "_Div:" msgstr "分割数(_D):" #: src/gtk/x11axis.c:1367 msgid "_Ref:" msgstr "参照軸(_R):" #: src/gtk/x11axis.c:1373 msgid "_Auto scale margin:" msgstr "オートスケール余白(_A):" #: src/gtk/x11axis.c:1376 src/gtk/x11axis.c:3376 msgid "Scale" msgstr "スケール" #: src/gtk/x11axis.c:1496 msgid "Draw _Baseline" msgstr "軸基線描画(_B)" #: src/gtk/x11axis.c:1502 src/gtk/x11file.c:3095 src/gtk/x11lgnd.c:1047 #: src/gtk/x11lgndx.c:440 msgid "Line _Style:" msgstr "線種(_S):" #: src/gtk/x11axis.c:1506 src/gtk/x11file.c:3099 src/gtk/x11lgndx.c:444 msgid "_Line Width:" msgstr "線幅(_W):" #: src/gtk/x11axis.c:1513 src/gtk/x11axis.c:3285 msgid "Baseline" msgstr "軸基線" #: src/gtk/x11axis.c:1531 src/gtk/x11axis.c:1558 msgid "_Position:" msgstr "位置(_P):" #: src/gtk/x11axis.c:1536 msgid "_Arrow length:" msgstr "長さ(_A):" #: src/gtk/x11axis.c:1541 msgid "_Arrow width:" msgstr "幅(_A):" #: src/gtk/x11axis.c:1544 src/gtk/x11axis.c:3297 msgid "Arrow" msgstr "矢印" #: src/gtk/x11axis.c:1562 msgid "_Wave length:" msgstr "長さ(_W):" #: src/gtk/x11axis.c:1566 msgid "_Wave width:" msgstr "線幅(_W):" #: src/gtk/x11axis.c:1569 src/gtk/x11axis.c:3300 msgid "Wave" msgstr "波型" #: src/gtk/x11axis.c:1693 msgid "_Gauge:" msgstr "位置(_G):" #: src/gtk/x11axis.c:1706 src/gtk/x11axis.c:1984 msgid "Range" msgstr "範囲" #: src/gtk/x11axis.c:1720 msgid "_Style:" msgstr "線種(_S):" #: src/gtk/x11axis.c:1733 #, c-format msgid "_Length %d:" msgstr "長さ %d(_L):" #: src/gtk/x11axis.c:1969 msgid "_Numbering:" msgstr "位置(_N):" #: src/gtk/x11axis.c:1973 msgid "_Begin:" msgstr "開始点(_B):" #: src/gtk/x11axis.c:1977 msgid "_Step:" msgstr "間隔(_S):" #: src/gtk/x11axis.c:1981 msgid "_Num:" msgstr "個数(_N):" #: src/gtk/x11axis.c:1998 msgid "_Align:" msgstr "位置合わせ(_A):" #: src/gtk/x11axis.c:2002 src/gtk/x11axis.c:2346 src/gtk/x11lgnd.c:1845 msgid "_Direction:" msgstr "方向(_D):" #: src/gtk/x11axis.c:2007 msgid "shift (_P):" msgstr "並行シフト量(_P):" #: src/gtk/x11axis.c:2011 msgid "shift (_N):" msgstr "垂直シフト量(_N):" #: src/gtk/x11axis.c:2014 src/gtk/x11axis.c:2364 src/gtk/x11axis.c:3324 #: src/gtk/x11axis.c:3345 msgid "Position" msgstr "位置" #: src/gtk/x11axis.c:2030 msgid "_Fraction:" msgstr "小数部桁数(_F):" #: src/gtk/x11axis.c:2034 msgid "_Head:" msgstr "先頭(_H):" #: src/gtk/x11axis.c:2038 msgid "_Tail:" msgstr "後続(_T):" #: src/gtk/x11axis.c:2043 msgid "_Date/time format:" msgstr "日時書式(_D):" #: src/gtk/x11axis.c:2047 msgid "_Auto normalization:" msgstr "自動スケール(_A):" #: src/gtk/x11axis.c:2050 msgid "_Log power" msgstr "ベキ形式(ログ)(_L)" #: src/gtk/x11axis.c:2054 msgid "_Add plus" msgstr "+追加(_A)" #: src/gtk/x11axis.c:2058 msgid "no _Zero" msgstr "ゼロ非表示(_Z)" #: src/gtk/x11axis.c:2062 msgid "Format" msgstr "フォーマット" #: src/gtk/x11axis.c:2181 msgid "_Point:" msgstr "ポイント(_P):" #: src/gtk/x11axis.c:2185 src/gtk/x11lgnd.c:1812 msgid "_Space:" msgstr "文字間(_S):" #: src/gtk/x11axis.c:2189 msgid "_Script size:" msgstr "スクリプトサイズ(_S):" #: src/gtk/x11axis.c:2193 src/gtk/x11lgnd.c:1821 src/gtk/x11opt.c:927 msgid "_Font:" msgstr "フォント(_F):" #: src/gtk/x11axis.c:2218 src/gtk/x11axis.c:3354 src/gtk/x11dialg.c:238 #: src/gtk/x11lgnd.c:3704 src/gtk/x11opt.c:1417 msgid "Font" msgstr "フォント" #: src/gtk/x11axis.c:2342 msgid "_Length:" msgstr "長さ(_L):" #: src/gtk/x11axis.c:2356 msgid "_Adjust:" msgstr "交差軸(_A):" #: src/gtk/x11axis.c:2360 msgid "Adjust _Position:" msgstr "交差位置(_P):" #: src/gtk/x11axis.c:2390 #, c-format msgid "Axis %d %s" msgstr "軸 %d %s" #: src/gtk/x11axis.c:2399 msgid "_Scale" msgstr "スケール(_S)" #: src/gtk/x11axis.c:2403 msgid "_Baseline" msgstr "軸基線(_B)" #: src/gtk/x11axis.c:2407 msgid "_Gauge" msgstr "目盛線(_G)" #: src/gtk/x11axis.c:2411 msgid "_Numbering" msgstr "目盛数字(_N)" #: src/gtk/x11axis.c:2415 msgid "_Font" msgstr "フォント(_F)" #: src/gtk/x11axis.c:2419 msgid "_Position" msgstr "位置(_P)" #: src/gtk/x11axis.c:3293 src/gtk/x11axis.c:3305 src/gtk/x11lgnd.c:3263 #: src/gtk/x11lgnd.c:3277 src/gtk/x11menu.c:941 src/gtk/x11menu.c:955 msgid "Draw" msgstr "描画" #: src/gtk/x11axis.c:3317 msgid "Gauge" msgstr "目盛線" #: src/gtk/x11axis.c:3338 msgid "Numbering" msgstr "目盛数字" #: src/gtk/x11axis.c:3348 msgid "Align" msgstr "位置合わせ" #: src/gtk/x11axis.c:3351 msgid "Direction" msgstr "方向" #: src/gtk/x11axis.c:3363 msgid "Log power" msgstr "ベキ形式(ログ)" #: src/gtk/x11axis.c:3364 msgid "No zero" msgstr "ゼロ非表示" #: src/gtk/x11commn.c:980 src/gtk/x11menu.c:346 msgid "Save NGP file" msgstr "NGPファイルの保存" #: src/gtk/x11commn.c:1004 src/gtk/x11opt.c:1943 #, c-format msgid "Saving `%.128s'." msgstr "保存中 `%.128s'." #: src/gtk/x11commn.c:1190 src/gtk/x11commn.c:1272 #, c-format msgid "Loading `%.128s'." msgstr "読込中 `%.128s'." #: src/gtk/x11commn.c:1389 msgid "" "This graph is modified.\n" "Save this graph?" msgstr "" "このグラフは変更されています.\n" "保存しますか?" #: src/gtk/x11commn.c:1390 msgid "Confirm" msgstr "確認" #: src/gtk/x11commn.c:1570 msgid "Ngraph.ini is not found." msgstr "Ngraph.ini が見つかりません." #: src/gtk/x11commn.c:1573 msgid "Ngraph.ini is write protected." msgstr "Ngraph.ini に書き込めませんでした." #: src/gtk/x11commn.c:1588 #, c-format msgid "Install `Ngraph.ini' to %s ?" msgstr "%s に 'Ngraph.ini' をインストールしますか?" #: src/gtk/x11commn.c:1592 msgid "Ngraph.ini could not be copied." msgstr "Ngraph.ini をコピーできませんでした." #: src/gtk/x11commn.c:1732 msgid "error" msgstr "エラー" #: src/gtk/x11dialg.c:48 src/gtk/x11opt.c:1795 msgid "solid" msgstr "実線" #: src/gtk/x11dialg.c:49 src/gtk/x11opt.c:1796 msgid "dot" msgstr "点線" #: src/gtk/x11dialg.c:50 msgid "short dash" msgstr "短鎖線" #: src/gtk/x11dialg.c:51 msgid "dash" msgstr "鎖線" #: src/gtk/x11dialg.c:52 msgid "dot dash" msgstr "一点鎖線" #: src/gtk/x11dialg.c:53 msgid "2-dot dash" msgstr "二点鎖線" #: src/gtk/x11dialg.c:54 msgid "dot 2-dash" msgstr "一点二鎖線" #: src/gtk/x11dialg.c:60 msgid "auto" msgstr "自動" #: src/gtk/x11dialg.c:121 src/gtk/x11menu.c:2765 src/gtk/x11menu.c:2768 msgid "data" msgstr "データ" #: src/gtk/x11dialg.c:124 src/gtk/x11dialg.c:130 src/gtk/x11dialg.c:184 msgid "mark selection" msgstr "マーク選択" #: src/gtk/x11dialg.c:127 msgid "data default" msgstr "データファイル初期状態" #: src/gtk/x11dialg.c:133 msgid "evaluation" msgstr "データ評価" #: src/gtk/x11dialg.c:136 src/gtk/x11file.c:466 msgid "math" msgstr "変換数式" #: src/gtk/x11dialg.c:139 msgid "math text" msgstr "数式入力" #: src/gtk/x11dialg.c:142 src/ofile.c:182 msgid "fit" msgstr "フィット" #: src/gtk/x11dialg.c:145 msgid "fit load" msgstr "フィット設定読込" #: src/gtk/x11dialg.c:149 msgid "fit save" msgstr "フィット設定保存" #: src/gtk/x11dialg.c:152 msgid "Frame/Section Graph" msgstr "方眼グラフ" #: src/gtk/x11dialg.c:155 src/gtk/x11menu.c:1839 msgid "Cross Graph" msgstr "交差グラフ" #: src/gtk/x11dialg.c:158 msgid "axis" msgstr "軸" #: src/gtk/x11dialg.c:161 msgid "grid" msgstr "グリッド" #: src/gtk/x11dialg.c:164 msgid "Scale Zoom" msgstr "スケールズーム" #: src/gtk/x11dialg.c:168 msgid "merge" msgstr "合成" #: src/gtk/x11dialg.c:172 msgid "legend line" msgstr "直線" #: src/gtk/x11dialg.c:175 msgid "legend rectangle" msgstr "矩形" #: src/gtk/x11dialg.c:178 msgid "legend arc" msgstr "円" #: src/gtk/x11dialg.c:181 msgid "legend mark" msgstr "マーク" #: src/gtk/x11dialg.c:187 msgid "legend text" msgstr "テキスト" #: src/gtk/x11dialg.c:190 msgid "textdefault" msgstr "レジェンドテキスト初期状態" #: src/gtk/x11dialg.c:193 msgid "legend gauss" msgstr "ガウス関数等" #: src/gtk/x11dialg.c:196 msgid "page" msgstr "用紙" #: src/gtk/x11dialg.c:199 msgid "drawobj" msgstr "描画オブジェクト" #: src/gtk/x11dialg.c:202 src/gtk/x11graph.c:871 msgid "directory" msgstr "現在のディレクトリ" #: src/gtk/x11dialg.c:205 msgid "load" msgstr "読込" #: src/gtk/x11dialg.c:208 msgid "loadprm" msgstr "PRM ファイル読込" #: src/gtk/x11dialg.c:211 msgid "save" msgstr "保存" #: src/gtk/x11dialg.c:214 msgid "driver" msgstr "ドライバ" #: src/gtk/x11dialg.c:217 msgid "print" msgstr "印刷" #: src/gtk/x11dialg.c:220 msgid "output data" msgstr "データ出力" #: src/gtk/x11dialg.c:223 msgid "save default" msgstr "初期状態としてセーブ" #: src/gtk/x11dialg.c:226 msgid "Add-in script" msgstr "スクリプト設定" #: src/gtk/x11dialg.c:229 msgid "Add-in script setup" msgstr "スクリプト" #: src/gtk/x11dialg.c:232 msgid "External driver" msgstr "外部ドライバ設定" #: src/gtk/x11dialg.c:235 msgid "External driver setup" msgstr "外部ドライバ" #: src/gtk/x11dialg.c:241 src/gtk/x11opt.c:1440 msgid "Miscellaneous" msgstr "その他" #: src/gtk/x11dialg.c:244 msgid "External viewer" msgstr "外部ビューア" #: src/gtk/x11dialg.c:247 msgid "Viewer" msgstr "ビューア" #: src/gtk/x11dialg.c:250 msgid "multi select" msgstr "複数選択" #: src/gtk/x11dialg.c:253 msgid "single select" msgstr "単一選択" #: src/gtk/x11dialg.c:256 msgid "output image" msgstr "画像ファイル出力" #: src/gtk/x11dialg.c:332 msgid "_All" msgstr "全て(_A)" #: src/gtk/x11file.c:69 src/gtk/x11merge.c:52 src/gtk/x11opt.c:475 msgid "file" msgstr "ファイル" #: src/gtk/x11file.c:72 msgid "ax" msgstr "x軸" #: src/gtk/x11file.c:73 msgid "ay" msgstr "y軸" #: src/gtk/x11file.c:75 src/gtk/x11lgnd.c:153 msgid "size" msgstr "サイズ" #: src/gtk/x11file.c:76 src/gtk/x11lgnd.c:72 src/gtk/x11lgnd.c:127 msgid "width" msgstr "幅" #: src/gtk/x11file.c:77 msgid "skip" msgstr "スキップ" #: src/gtk/x11file.c:78 msgid "step" msgstr "ステップ" #: src/gtk/x11file.c:79 msgid "final" msgstr "最終行" #: src/gtk/x11file.c:80 msgid "num" msgstr "データ数" #: src/gtk/x11file.c:119 msgid "duplicate _Behind" msgstr "直後に複製(_B)" #: src/gtk/x11file.c:122 src/gtk/x11file.c:1591 src/gtk/x11menu.c:940 #: src/gtk/x11menu.c:954 msgid "_Draw" msgstr "描画(_D)" #: src/gtk/x11file.c:155 msgid "_Math X:" msgstr "X 変換式(_M):" #: src/gtk/x11file.c:155 msgid "_Math Y:" msgstr "Y 変換式(_M):" #: src/gtk/x11file.c:165 msgid "_Math:" msgstr "式(_M):" #: src/gtk/x11file.c:474 msgid "_X math" msgstr "_X 変換式" #: src/gtk/x11file.c:475 msgid "_Y math" msgstr "_Y 変換式" #: src/gtk/x11file.c:631 msgid "_Profile:" msgstr "プロフィール(_P):" #: src/gtk/x11file.c:668 msgid "Please specify the profile." msgstr "プロファイルを設定してください." #: src/gtk/x11file.c:774 msgid "Setting file not found." msgstr "設定ファイルが見つかりません." #: src/gtk/x11file.c:813 msgid "No settings." msgstr "設定がありません." #: src/gtk/x11file.c:834 msgid "Overwrite existing profile?" msgstr "既存のプロファイルに上書きしますか?" #: src/gtk/x11file.c:921 #, c-format msgid "Delete the profile '%s'?" msgstr "プロファイル '%s' を削除しますか?" #: src/gtk/x11file.c:932 #, c-format msgid "The profile '%s' is not exist." msgstr "プロファイル '%s' は存在しません." #: src/gtk/x11file.c:1015 #, c-format msgid "The profile '%s' is saved." msgstr "プロファイル '%s' は保存されました." #: src/gtk/x11file.c:1020 #, c-format msgid "The profile '%s' is deleted." msgstr "プロファイル '%s' は削除されました." #: src/gtk/x11file.c:1200 msgid "Fitting Results" msgstr "フィット結果" #: src/gtk/x11file.c:1388 msgid "_Formula:" msgstr "フィット式(_F):" #: src/gtk/x11file.c:1394 msgid "_Converge (%):" msgstr "収束(%) (_C):" #: src/gtk/x11file.c:1397 msgid "_Derivatives" msgstr "微分式指定(_D)" #: src/gtk/x11file.c:1440 msgid "User definition" msgstr "ユーザ定義" #: src/gtk/x11file.c:1455 #, c-format msgid "Fit %d" msgstr "フィット %d" #: src/gtk/x11file.c:1476 src/gtk/x11file.c:3058 src/gtk/x11lgnd.c:1301 msgid "_Type:" msgstr "タイプ(_T):" #: src/gtk/x11file.c:1485 msgid "_Dim:" msgstr "多項式次元(_D):" #: src/gtk/x11file.c:1506 msgid "_Weight:" msgstr "重み付け(_W):" #: src/gtk/x11file.c:1518 msgid "_Through" msgstr "通過点(_T)" #: src/gtk/x11file.c:1537 msgid "Action" msgstr "動作" #: src/gtk/x11file.c:1559 msgid "_Interpolation" msgstr "補完(_I)" #: src/gtk/x11file.c:1570 msgid "Draw X range" msgstr "X 描画範囲" #: src/gtk/x11file.c:1582 src/gtk/x11file.c:3219 msgid "_Load" msgstr "読込(_L)" #: src/gtk/x11file.c:1595 msgid "_Result" msgstr "フィット結果(_R)" #: src/gtk/x11file.c:1786 src/gtk/x11file.c:2024 src/gtk/x11view.c:959 msgid "Line No." msgstr "行" #: src/gtk/x11file.c:1811 src/gtk/x11file.c:2037 msgid "_Line:" msgstr "新規行(_L):" #: src/gtk/x11file.c:2189 msgid "_Head skip:" msgstr "先頭スキップ行(_H):" #: src/gtk/x11file.c:2193 msgid "_Read step:" msgstr "読込ステップ行(_S):" #: src/gtk/x11file.c:2197 msgid "_Final line:" msgstr "最終行(_F):" #: src/gtk/x11file.c:2201 msgid "_Remark:" msgstr "コメント行(_R):" #: src/gtk/x11file.c:2205 msgid "_IFS:" msgstr "区切文字(_I):" #: src/gtk/x11file.c:2208 msgid "_CSV" msgstr "CSV形式" #: src/gtk/x11file.c:2344 msgid "_X smooth:" msgstr "_X 隣接平均:" #: src/gtk/x11file.c:2348 msgid "_Y smooth:" msgstr "_Y 隣接平均:" #: src/gtk/x11file.c:2352 msgid "_X math:" msgstr "_X 変換数式:" #: src/gtk/x11file.c:2356 msgid "_Y math:" msgstr "_Y 変換数式:" #: src/gtk/x11file.c:2613 src/gtk/x11file.c:3756 src/gtk/x11file.c:5220 #, c-format msgid "Create" msgstr "作成" #: src/gtk/x11file.c:3063 src/gtk/x11lgnd.c:1764 msgid "_Mark:" msgstr "マーク(_M):" #: src/gtk/x11file.c:3068 msgid "_Curve:" msgstr "曲線(_C):" #: src/gtk/x11file.c:3076 msgid "_Color 1:" msgstr "色 1(_C):" #: src/gtk/x11file.c:3080 msgid "_Color 2:" msgstr "色 2(_C):" #: src/gtk/x11file.c:3103 src/gtk/x11lgnd.c:1769 msgid "_Size:" msgstr "サイズ(_S):" #: src/gtk/x11file.c:3107 src/gtk/x11lgnd.c:1057 src/gtk/x11lgndx.c:448 msgid "_Miter:" msgstr "マイター(_M):" #: src/gtk/x11file.c:3111 src/gtk/x11lgnd.c:1067 src/gtk/x11lgndx.c:452 msgid "_Join:" msgstr "ジョイン(_J):" #: src/gtk/x11file.c:3114 msgid "_Clip" msgstr "クリップ(_C)" #: src/gtk/x11file.c:3153 msgid "_X column:" msgstr "_X カラム:" #: src/gtk/x11file.c:3158 msgid "_X axis:" msgstr "_X 軸:" #: src/gtk/x11file.c:3172 msgid "_Y column:" msgstr "_Y カラム:" #: src/gtk/x11file.c:3177 msgid "_Y axis:" msgstr "_Y 軸:" #: src/gtk/x11file.c:3211 msgid "_Plot" msgstr "プロット(_P)" #: src/gtk/x11file.c:3215 msgid "_Math" msgstr "変換数式(_M)" #: src/gtk/x11file.c:3250 msgid "This file contain invalid UTF-8 strings." msgstr "ファイルに不正な UTF-8 文字列が含まれています." #: src/gtk/x11file.c:3685 #, c-format msgid "Data %d" msgstr "データ %d" #: src/gtk/x11file.c:3689 msgid "_Apply all" msgstr "全てに適用(_A)" #: src/gtk/x11file.c:3698 src/gtk/x11merge.c:136 src/gtk/x11print.c:165 msgid "_File:" msgstr "ファイル名(_F):" #: src/gtk/x11file.c:3701 msgid "_Load settings" msgstr "ファイルから設定読込(_L)" #: src/gtk/x11file.c:3706 src/gtk/x11menu.c:207 msgid "_Edit" msgstr "編集(_E)" #: src/gtk/x11file.c:3717 src/gtk/x11view.c:969 msgid "_Mask" msgstr "マスク(_M)" #: src/gtk/x11file.c:3721 src/gtk/x11view.c:970 msgid "_Move" msgstr "移動(_M)" #: src/gtk/x11file.c:3728 msgid "_Table" msgstr "表(_T) " #: src/gtk/x11file.c:3737 msgid "_Plain" msgstr "" #: src/gtk/x11file.c:3757 msgid "_Fit:" msgstr "フィット(_F):" #: src/gtk/x11file.c:4046 msgid "Data new" msgstr "新規作成" #: src/gtk/x11file.c:4090 src/gtk/x11menu.c:1104 msgid "Add Data file" msgstr "データの追加" #: src/gtk/x11file.c:5075 msgid "Data file" msgstr "データの保存" #: src/gtk/x11file.c:5081 msgid "Making data file" msgstr "データファイル作成中" #: src/gtk/x11file.c:5082 msgid "Making data file." msgstr "データファイル作成中" #: src/gtk/x11file.c:5271 src/gtk/x11lgnd.c:3255 msgid "Join" msgstr "ジョイン" #: src/gtk/x11file.c:5276 src/gtk/x11lgnd.c:3231 src/gtk/gtk_widget.c:1135 msgid "Color 1" msgstr "色 1" #: src/gtk/x11file.c:5283 src/gtk/x11lgnd.c:3232 src/gtk/gtk_widget.c:1142 msgid "Color 2" msgstr "色 2" #: src/gtk/x11file.c:5291 msgid "Clip" msgstr "クリップ" #: src/gtk/x11file.c:5303 msgid "Type" msgstr "タイプ" #: src/gtk/x11graph.c:59 src/odraw.c:55 msgid "unchange" msgstr "変更しない" #: src/gtk/x11graph.c:60 src/odraw.c:56 msgid "full" msgstr "フルパス" #: src/gtk/x11graph.c:61 src/odraw.c:58 msgid "base" msgstr "ファイル名のみ" #: src/gtk/x11graph.c:73 msgid "Custom" msgstr "任意" #: src/gtk/x11graph.c:82 msgid "Letter P (215.90x279.40)" msgstr "レター P (215.90x279.40)" #: src/gtk/x11graph.c:83 msgid "Letter L (279.40x215.90)" msgstr "レター L (279.40x215.90)" #: src/gtk/x11graph.c:84 msgid "Legal P (215.90x355.60)" msgstr "リーガル P (215.90x355.60)" #: src/gtk/x11graph.c:85 msgid "Legal L (355.60x215.90)" msgstr "リーガル L (355.60x215.90)" #: src/gtk/x11graph.c:179 msgid "paper _Width:" msgstr "用紙幅(_W):" #: src/gtk/x11graph.c:184 msgid "paper _Height:" msgstr "用紙高さ(_H):" #: src/gtk/x11graph.c:188 msgid "_Paper:" msgstr "用紙(_P):" #: src/gtk/x11graph.c:197 msgid "_Left margin:" msgstr "左マージン(_L):" #: src/gtk/x11graph.c:202 msgid "_Top margin:" msgstr "上マージン(_T):" #: src/gtk/x11graph.c:206 msgid "paper _Zoom:" msgstr "拡大率(_Z):" #: src/gtk/x11graph.c:666 msgid "Object" msgstr "オブジェクト" #: src/gtk/x11graph.c:683 src/gtk/x11menu.c:484 msgid "_Draw order" msgstr "描画順(_D)" #: src/gtk/x11graph.c:713 msgid "_Insert" msgstr "挿入(_I)" #: src/gtk/x11graph.c:765 msgid "_Objects" msgstr "オブジェクト(_O)" #: src/gtk/x11graph.c:873 msgid "_Select Dir:" msgstr "ディレクトリ選択(_S):" #: src/gtk/x11graph.c:875 msgid "Current Dir:" msgstr "現在のディレクトリ:" #: src/gtk/x11graph.c:954 msgid "_Expand included file" msgstr "データファイルの展開(データ込 NGP ファイル) (_E)" #: src/gtk/x11graph.c:959 msgid "_Dir:" msgstr "ディレクトリ(_D):" #: src/gtk/x11graph.c:963 src/gtk/x11graph.c:1070 src/gtk/x11opt.c:1339 #: src/gtk/x11opt.c:1375 msgid "_Path:" msgstr "パス情報(_P):" #: src/gtk/x11graph.c:1017 msgid "_Ignore file path" msgstr "パス情報無視(_I)" #: src/gtk/x11graph.c:1076 msgid "_Include data file" msgstr "データファイルを含める(_I)" #: src/gtk/x11graph.c:1080 msgid "_Include merge file" msgstr "合成ファイルを含める(_I)" #: src/gtk/x11graph.c:1170 src/gtk/x11menu.c:322 msgid "Load NGP file" msgstr "NGPファイルを開く" #: src/gtk/x11graph.c:1367 msgid "" "Ngraph is the program to create scientific 2-dimensional graphs for " "researchers and engineers." msgstr "" "Ngraph は理工系学生、研究者、技術者のために作られた2次元グラフ作成プログラム" "です。" #: src/gtk/x11gui.c:272 msgid "Error" msgstr "エラー" #: src/gtk/x11gui.c:817 src/gtk/x11gui.c:995 msgid "All" msgstr "全てのファイル" #: src/gtk/x11gui.c:918 src/gtk/x11opt.c:1936 #, c-format msgid "" "`%s'\n" "\n" "Overwrite existing file?" msgstr "" "'%s' というファイルは既に存在します.\n" "上書きしてもよろしいですか?" #: src/gtk/x11gui.c:972 msgid "_Change current directory" msgstr "カレントディレクトリを移動(_C)" #: src/gtk/x11gui.c:983 #, c-format msgid "%s file (*.%s)" msgstr "%s ファイル (*.%s)" #: src/gtk/x11lgnd.c:69 src/gtk/x11lgnd.c:94 msgid "color" msgstr "色" #: src/gtk/x11lgnd.c:73 msgid "points" msgstr "点数" #: src/gtk/x11lgnd.c:98 msgid "height" msgstr "高さ" #: src/gtk/x11lgnd.c:99 msgid "line width" msgstr "線幅" #: src/gtk/x11lgnd.c:124 msgid "angle1" msgstr "開始角" #: src/gtk/x11lgnd.c:125 msgid "angle2" msgstr "円弧角" #: src/gtk/x11lgnd.c:126 msgid "pieslice" msgstr "扇型" #: src/gtk/x11lgnd.c:174 msgid "font" msgstr "フォント" #: src/gtk/x11lgnd.c:177 msgid "pt" msgstr "ポイント" #: src/gtk/x11lgnd.c:178 msgid "direction" msgstr "方向" #: src/gtk/x11lgnd.c:326 #, c-format msgid "X:%.2f Y:%.2f %s%stype:%-2d" msgstr "X:%.2f Y:%.2f %s%sタイプ:%-2d" #: src/gtk/x11lgnd.c:824 msgid "_Line width:" msgstr "線幅(_W):" #: src/gtk/x11lgnd.c:996 msgid "_Points:" msgstr "座標(_P):" #: src/gtk/x11lgnd.c:1087 msgid "_Color2:" msgstr "色2(_C):" #: src/gtk/x11lgnd.c:1257 #, c-format msgid "Legend line %d" msgstr "直線 %d" #: src/gtk/x11lgnd.c:1307 msgid "_Interpolation:" msgstr "補完法(_I):" #: src/gtk/x11lgnd.c:1319 src/gtk/x11lgnd.c:1637 msgid "_Close path" msgstr "パスを閉じる(_C)" #: src/gtk/x11lgnd.c:1325 msgid "_Arrow:" msgstr "矢印(_A):" #: src/gtk/x11lgnd.c:1377 src/gtk/x11lgnd.c:1500 src/gtk/x11lgnd.c:1647 msgid "_Stroke" msgstr "ストローク(_S)" #: src/gtk/x11lgnd.c:1396 msgid "fill _Rule:" msgstr "ルール(_R):" #: src/gtk/x11lgnd.c:1400 src/gtk/x11lgnd.c:1519 src/gtk/x11lgnd.c:1667 msgid "_Fill" msgstr "塗りつぶし(_F)" #: src/gtk/x11lgnd.c:1442 #, c-format msgid "Legend rectangle %d" msgstr "矩形 %d" #: src/gtk/x11lgnd.c:1472 msgid "_Width:" msgstr "幅(_W):" #: src/gtk/x11lgnd.c:1476 msgid "_Height:" msgstr "高さ(_H):" #: src/gtk/x11lgnd.c:1561 #, c-format msgid "Legend arc %d" msgstr "円 %d" #: src/gtk/x11lgnd.c:1611 msgid "_Angle1:" msgstr "開始角(_A):" #: src/gtk/x11lgnd.c:1615 msgid "_Angle2:" msgstr "円弧角(_A):" #: src/gtk/x11lgnd.c:1618 msgid "_Pieslice" msgstr "扇型(_P)" #: src/gtk/x11lgnd.c:1719 #, c-format msgid "Legend mark %d" msgstr "マーク %d" #: src/gtk/x11lgnd.c:1808 msgid "_Pt:" msgstr "ポイント(_P):" #: src/gtk/x11lgnd.c:1817 msgid "_Script:" msgstr "スクリプトサイズ(_S):" #: src/gtk/x11lgnd.c:1848 msgid "_Raw" msgstr "_Raw" #: src/gtk/x11lgnd.c:1979 #, c-format msgid "Legend text %d" msgstr "テキスト %d" #: src/gtk/x11lgnd.c:2021 msgid "_Text:" msgstr "テキスト(_T):" #: src/gtk/x11lgnd.c:3227 src/gtk/x11menu.c:1783 src/gtk/x11menu.c:1784 msgid "Mark" msgstr "マーク" #: src/gtk/x11lgnd.c:3249 src/gtk/x11lgnd.c:3251 msgid "Stroke" msgstr "ストローク" #: src/gtk/x11lgnd.c:3260 msgid "Close path" msgstr "パスを閉じる" #: src/gtk/x11lgnd.c:3267 src/gtk/x11lgnd.c:3269 msgid "Fill" msgstr "塗りつぶし" #: src/gtk/x11lgnd.c:3273 msgid "Fill rule" msgstr "ルール" #: src/gtk/x11lgnd.c:3757 msgid "path" msgstr "パス" #: src/gtk/x11lgnd.c:3758 src/ofile.c:169 msgid "rectangle" msgstr "矩形" #: src/gtk/x11lgnd.c:3759 msgid "arc" msgstr "円" #: src/gtk/x11lgnd.c:3760 src/ofile.c:162 msgid "mark" msgstr "マーク" #: src/gtk/x11lgnd.c:3761 msgid "text" msgstr "テキスト" #: src/gtk/x11lgndx.c:392 #, c-format msgid "Legend Gaussian/Lorentzian/Parabola/Sin %d" msgstr "ガウス関数/ローレンツ関数/双曲線/三角関数 %d" #: src/gtk/x11lgndx.c:404 msgid "_Sin" msgstr "三角関数(_S)" #: src/gtk/x11lgndx.c:408 msgid "_Parabola" msgstr "双曲線(_P)" #: src/gtk/x11lgndx.c:412 msgid "_Lorentz" msgstr "ローレンツ関数(_L)" #: src/gtk/x11lgndx.c:416 msgid "_Gauss" msgstr "ガウス関数(_G)" #: src/gtk/x11lgndx.c:465 msgid "_Division:" msgstr "分割数(_D):" #: src/gtk/x11lgndx.c:496 msgid "Direction:" msgstr "方向:" #: src/gtk/x11menu.c:158 msgid "_Graph" msgstr "グラフ(_G)" #: src/gtk/x11menu.c:167 msgid "_New graph" msgstr "新規作成(_N)" #: src/gtk/x11menu.c:179 msgid "_Export image" msgstr "画像にエクスポート(_E)" #: src/gtk/x11menu.c:191 src/gtk/x11menu.c:199 msgid "_Add-in" msgstr "アドイン(_A)" #: src/gtk/x11menu.c:215 msgid "_View" msgstr "表示(_V)" #: src/gtk/x11menu.c:223 msgid "_Data" msgstr "データ(_D)" #: src/gtk/x11menu.c:232 msgid "_Axis" msgstr "軸(_A)" #: src/gtk/x11menu.c:240 msgid "_Legend" msgstr "レジェンド(_L)" #: src/gtk/x11menu.c:248 msgid "_Merge" msgstr "合成(_M)" #: src/gtk/x11menu.c:256 msgid "_Preference" msgstr "設定(_P)" #: src/gtk/x11menu.c:264 msgid "_Help" msgstr "ヘルプ(_H)" #: src/gtk/x11menu.c:272 src/gtk/x11menu.c:1193 msgid "_Frame graph" msgstr "フレームグラフ(_F)" #: src/gtk/x11menu.c:273 msgid "Create frame graph" msgstr "フレームグラフを作成" #: src/gtk/x11menu.c:284 src/gtk/x11menu.c:1205 msgid "_Section graph" msgstr "方眼グラフ(_S)" #: src/gtk/x11menu.c:285 msgid "Create section graph" msgstr "方眼グラフを作成" #: src/gtk/x11menu.c:296 src/gtk/x11menu.c:1217 msgid "_Cross graph" msgstr "交差グラフ(_C)" #: src/gtk/x11menu.c:297 msgid "Create cross graph" msgstr "交差グラフを作成" #: src/gtk/x11menu.c:308 msgid "_All clear" msgstr "全てクリア(_A)" #: src/gtk/x11menu.c:309 msgid "Clear graph" msgstr "グラフのクリア" #: src/gtk/x11menu.c:320 msgid "_Load graph" msgstr "開く(_L)" #: src/gtk/x11menu.c:321 msgid "Load NGP" msgstr "NGPファイルの読み込み" #: src/gtk/x11menu.c:334 msgid "_Recent graphs" msgstr "最近使用したグラフ(_R)" #: src/gtk/x11menu.c:345 src/gtk/x11menu.c:359 msgid "Save NGP" msgstr "NGPファイル保存" #: src/gtk/x11menu.c:372 msgid "_GRA file" msgstr "_GRA ファイル" #: src/gtk/x11menu.c:373 msgid "Export as GRA file" msgstr "合成ファイルの保存" #: src/gtk/x11menu.c:384 msgid "_PS file" msgstr "_PS ファイル" #: src/gtk/x11menu.c:385 msgid "Export as PostScript file" msgstr "PostScript ファイルにエクスポート" #: src/gtk/x11menu.c:396 msgid "_EPS file" msgstr "_EPS ファイル" #: src/gtk/x11menu.c:397 msgid "Export as Encapsulate PostScript file" msgstr "EPS ファイルにエクスポート" #: src/gtk/x11menu.c:408 msgid "P_DF file" msgstr "P_DF ファイル" #: src/gtk/x11menu.c:409 msgid "Export as Portable Document Format" msgstr "PDF ファイルにエクスポート" #: src/gtk/x11menu.c:420 msgid "_SVG file" msgstr "_SVG ファイル" #: src/gtk/x11menu.c:421 msgid "Export as Scalable Vector Graphics file" msgstr "SVG ファイルにエクスポート" #: src/gtk/x11menu.c:432 msgid "P_NG file" msgstr "P_NG ファイル" #: src/gtk/x11menu.c:433 msgid "Export as Portable Network Graphics file" msgstr "PNG ファイルにエクスポート" #: src/gtk/x11menu.c:445 src/gtk/x11menu.c:459 msgid "_EMF file" msgstr "E_MF ファイル" #: src/gtk/x11menu.c:446 src/gtk/x11menu.c:460 msgid "Export as Windows Enhanced Metafile" msgstr "EMF にエクスポート" #: src/gtk/x11menu.c:471 msgid "_Clipboard (EMF)" msgstr "クリップボード (EMF) (_C) " #: src/gtk/x11menu.c:472 msgid "Copy to the clipboard as Windows Enhanced Metafile " msgstr "EMF としてクリップボードにコピー" #: src/gtk/x11menu.c:509 src/gtk/x11menu.c:510 msgid "Print preview" msgstr "印刷プレビュー" #: src/gtk/x11menu.c:521 src/gtk/x11menu.c:522 src/gtk/x11print.c:680 msgid "Print" msgstr "印刷" #: src/gtk/x11menu.c:534 msgid "_Current directory" msgstr "現在のディレクトリ(_C)" #: src/gtk/x11menu.c:546 msgid "_Ngraph shell" msgstr "Ngraphシェル(_N)" #: src/gtk/x11menu.c:640 msgid "draw _Order" msgstr "描画順(_O)" #: src/gtk/x11menu.c:700 msgid "_Align" msgstr "位置合わせ(_A)" #: src/gtk/x11menu.c:708 msgid "_Left" msgstr "左揃え(_L)" #: src/gtk/x11menu.c:720 msgid "_Right" msgstr "右揃え(_R)" #: src/gtk/x11menu.c:732 msgid "_Vertical center" msgstr "中央揃え(横)(_V)" #: src/gtk/x11menu.c:744 msgid "_Top" msgstr "上端揃え(_T)" #: src/gtk/x11menu.c:756 msgid "_Bottom" msgstr "下端揃え(_B)" #: src/gtk/x11menu.c:768 msgid "_Horizontal center" msgstr "中央揃え(縦)(_H)" #: src/gtk/x11menu.c:780 msgid "_Rotate" msgstr "回転(_R)" #: src/gtk/x11menu.c:788 msgid "rotate _90 degree clockwise" msgstr "_90° 時計回り回転" #: src/gtk/x11menu.c:800 msgid "rotate 9_0 degree counter-clockwise" msgstr "9_0° 反時計回り回転" #: src/gtk/x11menu.c:812 msgid "_Flip" msgstr "反転(_F)" #: src/gtk/x11menu.c:820 msgid "flip _Horizontally" msgstr "水平反転(_H)" #: src/gtk/x11menu.c:832 msgid "flip _Vertically" msgstr "垂直反転(_V)" #: src/gtk/x11menu.c:844 src/gtk/x11menu.c:845 msgid "Single window mode" msgstr "シングルウィンドウモード" #: src/gtk/x11menu.c:846 msgid "Toggle single window mode" msgstr "シングルウィンドウモード表示の切り替え" #: src/gtk/x11menu.c:858 msgid "Activate Data Window" msgstr "Data Windowをアクティブにする" #: src/gtk/x11menu.c:872 msgid "Activate Axis Window" msgstr "Axis Windowをアクティブにする" #: src/gtk/x11menu.c:886 msgid "Activate Legend Window" msgstr "Legend Windowをアクティブにする" #: src/gtk/x11menu.c:900 msgid "Activate Merge Window" msgstr "Merge Windowをアクティブにする" #: src/gtk/x11menu.c:914 msgid "Activate Coordinate Window" msgstr "Coordinate Windowをアクティブにする" #: src/gtk/x11menu.c:928 msgid "Activate Information Window" msgstr "Information Windowをアクティブにする" #: src/gtk/x11menu.c:942 src/gtk/x11menu.c:956 msgid "Draw on Viewer Window" msgstr "ビューアに描画" #: src/gtk/x11menu.c:967 msgid "Clear Image" msgstr "クリア" #: src/gtk/x11menu.c:968 msgid "Clear Viewer Window" msgstr "ビューアのクリア" #: src/gtk/x11menu.c:980 msgid "default _Window config" msgstr "初期状態のウィンドウ配置(_W)" #: src/gtk/x11menu.c:992 msgid "_Clear information view" msgstr "Information 表示をクリア(_C)" #: src/gtk/x11menu.c:1004 msgid "_Sidebar" msgstr "サイドバー(_S)" #: src/gtk/x11menu.c:1016 msgid "_Statusbar" msgstr "ステータスバー(_S)" #: src/gtk/x11menu.c:1028 msgid "_Ruler" msgstr "ルーラー(_R)" #: src/gtk/x11menu.c:1040 msgid "_Scrollbar" msgstr "スクロールバー(_S)" #: src/gtk/x11menu.c:1052 msgid "_Command toolbar" msgstr "コマンドツールバー(_C)" #: src/gtk/x11menu.c:1064 msgid "_Toolbox" msgstr "ツールボックス(_T)" #: src/gtk/x11menu.c:1076 msgid "cross _Gauge" msgstr "クロスゲージ(_G)" #: src/gtk/x11menu.c:1090 msgid "_New" msgstr "新規作成(_N)" #: src/gtk/x11menu.c:1102 msgid "_Add" msgstr "追加(_A)" #: src/gtk/x11menu.c:1103 msgid "Add Data" msgstr "データ追加" #: src/gtk/x11menu.c:1116 msgid "_Recent data" msgstr "最近使用したデータ(_R)" #: src/gtk/x11menu.c:1162 msgid "_Save data" msgstr "データの保存(_S)" #: src/gtk/x11menu.c:1174 msgid "_Math Transformation" msgstr "変換式の一括入力(_M)" #: src/gtk/x11menu.c:1175 msgid "Math Transformation" msgstr "変換式の一括入力" #: src/gtk/x11menu.c:1176 msgid "Set Math Transformation" msgstr "変換式の一括入力" #: src/gtk/x11menu.c:1229 msgid "Single _Axis" msgstr "単一軸(_A)" #: src/gtk/x11menu.c:1265 msgid "Scale _Zoom" msgstr "スケールズーム(_Z)" #: src/gtk/x11menu.c:1278 msgid "Scale _Clear" msgstr "スケールクリア(_C)" #: src/gtk/x11menu.c:1279 src/gtk/x11menu.c:1280 msgid "Clear Scale" msgstr "スケールのクリア" #: src/gtk/x11menu.c:1292 msgid "Scale _Undo" msgstr "スケールアンドゥ(_U)" #: src/gtk/x11menu.c:1293 msgid "Scale Undo" msgstr "スケールundo" #: src/gtk/x11menu.c:1294 msgid "Undo Scale Settings" msgstr "スケール設定のundo" #: src/gtk/x11menu.c:1383 msgid "_Path" msgstr "パス(_P)" #: src/gtk/x11menu.c:1394 msgid "_Rectangle" msgstr "矩形(_R)" #: src/gtk/x11menu.c:1405 msgid "_Arc" msgstr "円(_A)" #: src/gtk/x11menu.c:1416 msgid "_Mark" msgstr "マーク(_M)" #: src/gtk/x11menu.c:1427 msgid "_Text" msgstr "テキスト(_T)" #: src/gtk/x11menu.c:1559 src/gtk/x11opt.c:78 msgid "_Viewer" msgstr "ビューア(_V)" #: src/gtk/x11menu.c:1571 msgid "_External viewer" msgstr "外部ビューア(_E)" #: src/gtk/x11menu.c:1583 src/gtk/x11opt.c:86 msgid "_Font aliases" msgstr "フォント別名(_F)" #: src/gtk/x11menu.c:1595 msgid "_Add-in script" msgstr "アドイン設定(_A)" #: src/gtk/x11menu.c:1607 src/gtk/x11opt.c:98 msgid "_Miscellaneous" msgstr "その他(_M)" #: src/gtk/x11menu.c:1619 msgid "save as default (_Settings)" msgstr "初期状態としてセーブ(各種設定)(_S)" #: src/gtk/x11menu.c:1631 msgid "save as default (_Graph)" msgstr "初期状態としてセーブ(グラフ)(_G)" #: src/gtk/x11menu.c:1643 msgid "_Data file default" msgstr "データファイル初期状態(_D)" #: src/gtk/x11menu.c:1655 msgid "_Legend text default" msgstr "レジェンドテキスト初期状態(_T)" #: src/gtk/x11menu.c:1706 msgid "Point" msgstr "選択" #: src/gtk/x11menu.c:1707 msgid "Pointer" msgstr "選択" #: src/gtk/x11menu.c:1708 msgid "" "Legend and Axis Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/" "Vertical +SHIFT: Fine)" msgstr "" "Legend, 軸の選択 (+SHIFT:複数選択 / +CONTROL:水平/垂直移動 +SHIFT:微動)" #: src/gtk/x11menu.c:1717 msgid "Legend" msgstr "レジェンド" #: src/gtk/x11menu.c:1718 msgid "Legend Pointer" msgstr "Legend選択" #: src/gtk/x11menu.c:1719 msgid "" "Legend Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: " "Fine)" msgstr "Legend の選択 (+SHIFT:複数選択 / +CONTROL:水平/垂直移動 +SHIFT:微動)" #: src/gtk/x11menu.c:1729 msgid "Axis Pointer" msgstr "軸選択" #: src/gtk/x11menu.c:1730 msgid "" "Axis Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: " "Fine)" msgstr "軸の選択 (+SHIFT:複数選択 / +CONTROL:水平/垂直移動 +SHIFT:微動)" #: src/gtk/x11menu.c:1739 msgid "Data" msgstr "データ選択" #: src/gtk/x11menu.c:1740 src/gtk/x11menu.c:1741 msgid "Data Pointer" msgstr "データの選択" #: src/gtk/x11menu.c:1750 src/gtk/x11menu.c:1751 msgid "Path" msgstr "パス" #: src/gtk/x11menu.c:1752 msgid "New Legend Path (+SHIFT: Fine +CONTROL: snap angle)" msgstr "パスの新規作成 (+SHIFT:微動 +CONTROL:角度をスナップ)" #: src/gtk/x11menu.c:1761 src/gtk/x11menu.c:1762 msgid "Rectangle" msgstr "矩形" #: src/gtk/x11menu.c:1763 msgid "" "New Legend Rectangle (+SHIFT: Fine +CONTROL: square integer ratio rectangle)" msgstr "矩形の新規作成 (+SHIFT:微動 +CONTROL:正方形または縦横が整数比の矩形)" #: src/gtk/x11menu.c:1772 src/gtk/x11menu.c:1773 msgid "Arc" msgstr "円" #: src/gtk/x11menu.c:1774 msgid "New Legend Arc (+SHIFT: Fine +CONTROL: circle or integer ratio ellipse)" msgstr "円の新規作成 (+SHIFT:微動 +CONTROL:真円または縦横が整数比の楕円)" #: src/gtk/x11menu.c:1785 msgid "New Legend Mark (+SHIFT: Fine)" msgstr "マークの新規作成 (+SHIFT:微動)" #: src/gtk/x11menu.c:1794 src/gtk/x11menu.c:1795 msgid "Text" msgstr "テキスト" #: src/gtk/x11menu.c:1796 msgid "New Legend Text (+SHIFT: Fine)" msgstr "テキストの新規作成 (+SHIFT:微動)" #: src/gtk/x11menu.c:1805 msgid "Gauss" msgstr "ガウス関数" #: src/gtk/x11menu.c:1806 msgid "Gaussian" msgstr "ガウス関数" #: src/gtk/x11menu.c:1807 msgid "New Legend Gaussian (+SHIFT: Fine +CONTROL: integer ratio)" msgstr "ガウス関数等の新規作成 (+SHIFT:微動 +CONTROL:縦横を整数比にする)" #: src/gtk/x11menu.c:1816 msgid "Frame axis" msgstr "フレームグラフ" #: src/gtk/x11menu.c:1817 msgid "Frame Graph" msgstr "フレームグラフ" #: src/gtk/x11menu.c:1818 msgid "New Frame Graph (+SHIFT: Fine +CONTROL: integer ratio)" msgstr "フレームグラフの新規作成 (+SHIFT:微動 +CONTROL:縦横を整数比にする)" #: src/gtk/x11menu.c:1827 msgid "Section axis" msgstr "方眼グラフ" #: src/gtk/x11menu.c:1828 msgid "Section Graph" msgstr "方眼グラフ" #: src/gtk/x11menu.c:1829 msgid "New Section Graph (+SHIFT: Fine +CONTROL: integer ratio)" msgstr "方眼グラフの新規作成 (+SHIFT:微動 +CONTROL:縦横を整数比にする)" #: src/gtk/x11menu.c:1838 msgid "Cross axis" msgstr "交差グラフ" #: src/gtk/x11menu.c:1840 msgid "New Cross Graph (+SHIFT: Fine +CONTROL: integer ratio)" msgstr "交差グラフの新規作成 (+SHIFT:微動 +CONTROL: 縦横を整数比にする)" #: src/gtk/x11menu.c:1849 msgid "Single axis" msgstr "単体軸" #: src/gtk/x11menu.c:1850 msgid "Single Axis" msgstr "単体軸" #: src/gtk/x11menu.c:1851 msgid "New Single Axis (+SHIFT: Fine +CONTROL: snap angle)" msgstr "単体軸の新規作成 (+SHIFT:微動 +CONTROL:角度をスナップ)" #: src/gtk/x11menu.c:1860 msgid "Trimming" msgstr "軸トリミング" #: src/gtk/x11menu.c:1861 msgid "Axis Trimming" msgstr "軸トリミング" #: src/gtk/x11menu.c:1862 msgid "Axis Trimming (+SHIFT: Fine)" msgstr "軸スケールのトリミング (+SHIFT:微動)" #: src/gtk/x11menu.c:1871 msgid "Evaluate" msgstr "データ評価" #: src/gtk/x11menu.c:1872 msgid "Evaluate Data" msgstr "データ評価" #: src/gtk/x11menu.c:1873 msgid "Evaluate Data Point" msgstr "データ点の評価" #: src/gtk/x11menu.c:1882 msgid "Zoom" msgstr "ビューアズーム" #: src/gtk/x11menu.c:1883 msgid "Viewer Zoom" msgstr "ビューアズーム" #: src/gtk/x11menu.c:1884 msgid "Viewer Zoom-In (+CONTROL: Zoom-Out +SHIFT: Centering)" msgstr "ビューアのズームイン (+CONTROL:ズームアウト +SHIFT:センタリング)" #: src/gtk/x11menu.c:4190 msgid "Error:" msgstr "エラー:" #: src/gtk/x11menu.c:4240 msgid "Question" msgstr "質問" #: src/gtk/x11menu.c:4297 #, c-format msgid "Executing `%.128s'." msgstr "実行中 `%.128s'." #: src/gtk/x11merge.c:53 msgid "top" msgstr "上" #: src/gtk/x11merge.c:54 src/oaxis.c:73 src/oaxis.c:87 src/oaxis.c:100 msgid "left" msgstr "左" #: src/gtk/x11merge.c:55 msgid "zoom" msgstr "ズーム" #: src/gtk/x11merge.c:124 #, c-format msgid "Merge %d" msgstr "合成 %d" #: src/gtk/x11merge.c:140 msgid "_Top Margin:" msgstr "上マージン(_T):" #: src/gtk/x11merge.c:144 msgid "_Left Margin:" msgstr "左マージン(_L):" #: src/gtk/x11merge.c:218 msgid "Add Merge file" msgstr "合成ファイルの追加" #: src/gtk/x11opt.c:70 msgid "_Geometry" msgstr "ウィンドウのサイズと位置(_G)" #: src/gtk/x11opt.c:74 msgid "_Child Geometry" msgstr "子ウィンドウのサイズと位置(_C)" #: src/gtk/x11opt.c:82 msgid "_External Viewer" msgstr "外部ビューアー設定(_E)" #: src/gtk/x11opt.c:90 msgid "_External Driver" msgstr "外部ドライバ設定(_E)" #: src/gtk/x11opt.c:94 msgid "_Add-in Script" msgstr "アドイン設定(_A)" #: src/gtk/x11opt.c:287 msgid "Add-in Script" msgstr "アドインスクリプト" #: src/gtk/x11opt.c:312 msgid "_Add-in:" msgstr "アドイン(_A)" #: src/gtk/x11opt.c:317 src/gtk/x11opt.c:553 msgid "_Name:" msgstr "名称(_N):" #: src/gtk/x11opt.c:321 msgid "_Script file:" msgstr "スクリプトファイル(_S):" #: src/gtk/x11opt.c:325 src/gtk/x11opt.c:561 src/gtk/x11print.c:161 msgid "_Option:" msgstr "オプション(_O):" #: src/gtk/x11opt.c:329 msgid "_Description:" msgstr "説明(_D):" #: src/gtk/x11opt.c:396 msgid "Please specify script name." msgstr "スクリプト名を設定してください." #: src/gtk/x11opt.c:400 msgid "Please specify script file name." msgstr "スクリプトファイル名を設定してください." #: src/gtk/x11opt.c:408 msgid "Please specify script description." msgstr "スクリプトの説明を設定してください." #: src/gtk/x11opt.c:476 msgid "description" msgstr "説明" #: src/gtk/x11opt.c:529 msgid "External Driver" msgstr "外部ドライバ" #: src/gtk/x11opt.c:557 src/gtk/x11print.c:156 msgid "_Driver:" msgstr "ドライバ(_D):" #: src/gtk/x11opt.c:565 msgid "_Extension:" msgstr "拡張子(_E):" #: src/gtk/x11opt.c:592 msgid "Please specify driver name." msgstr "ドライバを指定してください." #: src/gtk/x11opt.c:681 msgid "Driver" msgstr "ドライバ" #: src/gtk/x11opt.c:793 src/gtk/x11opt.c:807 msgid "Alternative font" msgstr "代替フォント" #: src/gtk/x11opt.c:908 msgid "Font name" msgstr "フォント" #: src/gtk/x11opt.c:921 msgid "_Alias:" msgstr "フォント別名(_A):" #: src/gtk/x11opt.c:981 msgid "Alternative fonts" msgstr "代替フォント" #: src/gtk/x11opt.c:1037 msgid "Please specify a new alias name." msgstr "フォント別名を指定してください." #: src/gtk/x11opt.c:1045 msgid "Alias name already exists." msgstr "フォント別名が既に存在します." #: src/gtk/x11opt.c:1181 msgid "alias" msgstr "別名" #: src/gtk/x11opt.c:1183 msgid "alternative fonts" msgstr "代替フォント" #: src/gtk/x11opt.c:1276 msgid "Select program" msgstr "プログラム選択" #: src/gtk/x11opt.c:1304 msgid "External programs" msgstr "外部プログラム" #: src/gtk/x11opt.c:1314 msgid "_Editor:" msgstr "エディター(_E):" #: src/gtk/x11opt.c:1318 msgid "_Help browser:" msgstr "ヘルプ・ブラウザ(_H):" #: src/gtk/x11opt.c:1322 msgid "_Web browser:" msgstr "ウェブ・ブラウザ(_W):" #: src/gtk/x11opt.c:1330 msgid "Save graph" msgstr "グラフの保存" #: src/gtk/x11opt.c:1345 msgid "include _Data file" msgstr "データファイルを含める(_D)" #: src/gtk/x11opt.c:1349 msgid "include _Merge file" msgstr "合成ファイルを含める(_M)" #: src/gtk/x11opt.c:1358 msgid "Load graph" msgstr "グラフの読込" #: src/gtk/x11opt.c:1366 msgid "_Expand include file" msgstr "データファイルの展開(_E)" #: src/gtk/x11opt.c:1371 msgid "_Expand directory:" msgstr "展開ディレクトリ(_E):" #: src/gtk/x11opt.c:1393 msgid "Size" msgstr "サイズ" #: src/gtk/x11opt.c:1402 msgid "_Size of completion history:" msgstr "補完履歴のサイズ(_S):" #: src/gtk/x11opt.c:1406 msgid "_Length of information view:" msgstr "information 表示の行数(_L):" #: src/gtk/x11opt.c:1410 msgid "_Length of data preview:" msgstr "データプレビューの行数(_L):" #: src/gtk/x11opt.c:1426 msgid "_Coordinate view:" msgstr "_Coordinate 表示:" #: src/gtk/x11opt.c:1430 msgid "_Information view:" msgstr "_Information 表示:" #: src/gtk/x11opt.c:1434 msgid "data _Preview:" msgstr "データプレビュー(_P):" #: src/gtk/x11opt.c:1448 msgid "_Check \"change current directory\"" msgstr "\"カレントディレクトリを移動\"をチェック(_C)" #: src/gtk/x11opt.c:1452 src/gtk/x11print.c:381 msgid "_Use opacity" msgstr "不透明度を使う(_U)" #: src/gtk/x11opt.c:1456 msgid "_Show select data dialog on exporting" msgstr "エクスポート時にデータ選択ダイアログを表示(_S) " #: src/gtk/x11opt.c:1647 msgid "use _External previewer" msgstr "外部プログラムを使用する(_E)" #: src/gtk/x11opt.c:1661 msgid "Window _Width:" msgstr "幅(_W):" #: src/gtk/x11opt.c:1665 msgid "Window _Height:" msgstr "高さ(_H):" #: src/gtk/x11opt.c:1787 msgid "_Grid:" msgstr "グリッド(_G):" #: src/gtk/x11opt.c:1797 msgid "_Line attribute of focus frame:" msgstr "フォーカスフレームの線種(_L):" #: src/gtk/x11opt.c:1805 msgid "_Antialias:" msgstr "アンチエイリアス(_A):" #: src/gtk/x11opt.c:1807 msgid "_Preserve line width and style" msgstr "線幅と線種を保持する(_S)" #: src/gtk/x11opt.c:1811 msgid "_Load files on redraw" msgstr "再描画時にデータファイル読み込み(_L)" #: src/gtk/x11opt.c:1817 msgid "_Maximum number of data on redraw:" msgstr "再描画時の最大データ数(_M):" #: src/gtk/x11opt.c:1937 msgid "Save as Ngraph.ngp" msgstr "Ngraph.ngp として保存" #: src/gtk/x11print.c:129 msgid "External Driver Output" msgstr "外部ドライバ出力" #: src/gtk/x11print.c:312 msgid "_PostScript Version:" msgstr "ポストスクリプトレベル(_P):" #: src/gtk/x11print.c:343 msgid "_SVG Version:" msgstr "_SVG バージョン:" #: src/gtk/x11print.c:377 msgid "_Convert texts to paths" msgstr "テキストをパスに変換(_C)" #: src/gtk/x11print.c:399 msgid "Cairo PS Output" msgstr "Cairo PS 出力" #: src/gtk/x11print.c:402 msgid "Cairo EPS Output" msgstr "Cairo EPS 出力" #: src/gtk/x11print.c:405 msgid "Cairo PNG Output" msgstr "Cairo PNG 出力" #: src/gtk/x11print.c:408 msgid "Cairo PDF Output" msgstr "Cairo PDF 出力" #: src/gtk/x11print.c:411 msgid "Cairo SVG Output" msgstr "Cairo SVG 出力" #: src/gtk/x11print.c:415 msgid "Cairo EMF Output" msgstr "Cairo EMF 出力" #: src/gtk/x11print.c:548 msgid "Printing." msgstr "印刷中" #: src/gtk/x11print.c:679 #, c-format msgid "Printing error: %s" msgstr "印刷エラー: %s" #: src/gtk/x11print.c:731 msgid "Spawning external driver." msgstr "外部ドライバに出力中" #: src/gtk/x11print.c:737 src/gtk/x11print.c:1011 src/gtk/x11print.c:1084 #: src/gtk/x11view.c:5642 msgid "Drawing." msgstr "描画中" #: src/gtk/x11print.c:804 msgid "Spawning external viewer." msgstr "外部ビューアに出力中" #: src/gtk/x11print.c:846 msgid "GRA file" msgstr "合成ファイルの保存" #: src/gtk/x11print.c:886 msgid "Making GRA file." msgstr "合成ファイル作成中" #: src/gtk/x11view.c:1275 src/gtk/x11view.c:1277 #, c-format msgid "Searching for data." msgstr "データ検索中" #: src/gtk/x11view.c:1382 #, c-format msgid "Evaluating." msgstr "データ評価中" #: src/gtk/x11view.c:1391 msgid "Evaluating" msgstr "データ評価中" #: src/gtk/x11view.c:2817 msgid "Data points are moved." msgstr "データは移動されました." #: src/gtk/x11view.c:4083 msgid "Moving data points is canceled." msgstr "データの移動はキャンセルされました." #: src/gtk/x11view.c:5636 msgid "Scaling" msgstr "軸スケール設定中" #: src/gtk/x11view.c:5643 msgid "Drawing" msgstr "描画中" #: src/gtk/gtk_widget.c:204 msgid "_Copy Settings" msgstr "設定のコピー(_C)" #: src/gtk/gtk_widget.c:680 msgid "Pick a Color" msgstr "色の選択" #: src/gtk/gtk_widget.c:1114 msgid "Stroke Color" msgstr "ストローク色" #: src/gtk/gtk_widget.c:1121 msgid "Fill Color" msgstr "塗りつぶし色" #: src/gtk/gtk_widget.c:1149 msgid "Axis baseline color" msgstr "軸基線の色" #: src/gtk/gtk_widget.c:1156 msgid "Axis gauge color" msgstr "目盛線の色" #: src/gtk/gtk_widget.c:1163 msgid "Axis numbering color" msgstr "目盛数字の色" #: src/gtk/gtk_subwin.c:59 msgid "Open" msgstr "開く" #: src/gtk/gtk_liststore.c:112 msgid "Bold" msgstr "太字" #: src/gtk/gtk_liststore.c:113 msgid "Italic" msgstr "斜体" #: src/gtk/gtk_liststore.c:223 msgid "Line style" msgstr "線種" #: src/math/math_error.c:15 msgid "syntax error, unexpected end of equation." msgstr "構文エラー, 予期しない数式の終わりです." #: src/math/math_error.c:16 msgid "syntax error, function definition cannot be nested." msgstr "構文エラー, 関数定義はネストできません." #: src/math/math_error.c:17 msgid "syntax error, unexpected operator." msgstr "構文エラー, 予期しない演算子です." #: src/math/math_error.c:18 msgid "syntax error, unexpected token." msgstr "構文エラー, 予期しないトークンです." #: src/math/math_error.c:19 msgid "syntax error, wrong number of arguments." msgstr "構文エラー, 引数の数が間違っています." #: src/math/math_error.c:20 msgid "syntax error, unexpected end of equation, expecting ')'." msgstr "構文エラー, 予期しない数式の終わりです. ')' がありません." #: src/math/math_error.c:21 msgid "syntax error, unexpected end of equation, expecting '}'." msgstr "構文エラー, 予期しない数式の終わりです. '}' がありません." #: src/math/math_error.c:22 msgid "syntax error, unexpected end of equation, expecting ']'." msgstr "構文エラー, 予期しない数式の終わりです. ']' がありません." #: src/math/math_error.c:23 msgid "syntax error, invalid function definition." msgstr "構文エラー, 不正な関数定義です." #: src/math/math_error.c:24 msgid "syntax error, constant cannot be defined in a function definition." msgstr "構文エラー, 関数定義内で定数の宣言は出来ません." #: src/math/math_error.c:25 msgid "error, invalid parameter." msgstr "数式エラー, 不正なパラメータです." #: src/math/math_error.c:26 msgid "" "error, a parameter cannot be used in a user function or a constant " "definition." msgstr "数式エラー, パラメータはユーザー関数中や定数宣言では使用できません." #: src/math/math_error.c:27 msgid "error, unknown function." msgstr "数式エラー, 未定義の関数です." #: src/math/math_error.c:28 msgid "error, cannot allocate enough memory." msgstr "エラー, 十分なメモリーを確保できませんでした." #: src/math/math_error.c:29 msgid "error, unknown error." msgstr "数式エラー, 未知のエラーです." #: src/math/math_error.c:30 msgid "" "error, the function cannot be used in a user function or a constant " "definition." msgstr "数式エラー, この関数はユーザー関数中や定数宣言では使用できません." #: src/math/math_error.c:31 msgid "error, the constant is already defined." msgstr "数式エラー, この定数は既に存在します." #: src/math/math_error.c:32 msgid "error, calculation error." msgstr "エラー, 計算エラー." #: src/math/math_error.c:84 src/math/math_error.c:92 src/math/math_error.c:110 #: src/math/math_error.c:118 src/math/math_error.c:126 #: src/math/math_error.c:134 src/math/math_error.c:142 #: src/math/math_error.c:150 src/math/math_error.c:158 #: src/math/math_error.c:166 src/math/math_error.c:174 #, c-format msgid "" "%s\n" " the error is found at: %s" msgstr "" "%s\n" " エラーの起きた場所: %s" #: src/odraw.c:57 msgid "relative" msgstr "相対パス" #: src/odraw.c:70 msgid "miter" msgstr "角結合" #: src/odraw.c:71 msgid "round" msgstr "丸結合" #: src/odraw.c:72 msgid "bevel" msgstr "斜結合" #: src/odraw.c:85 msgid "end" msgstr "終点" #: src/odraw.c:86 msgid "begin" msgstr "始点" #: src/odraw.c:87 src/oaxis.c:72 msgid "both" msgstr "両方" #: src/odraw.c:92 msgid "spline" msgstr "スプライン" #: src/odraw.c:93 msgid "spline_close" msgstr "閉スプライン" #: src/odraw.c:94 msgid "bspline" msgstr "Bスプライン" #: src/odraw.c:95 msgid "bspline_close" msgstr "閉Bスプライン" #: src/oaxis.c:63 msgid "linear" msgstr "線形" #: src/oaxis.c:64 src/ofit.c:88 msgid "log" msgstr "対数" #: src/oaxis.c:65 msgid "inverse" msgstr "逆数" #: src/oaxis.c:66 msgid "MJD" msgstr "MJD" #: src/oaxis.c:74 src/oaxis.c:88 src/oaxis.c:101 msgid "right" msgstr "右" #: src/oaxis.c:99 msgid "center" msgstr "中央" #: src/oaxis.c:102 msgid "point" msgstr "小数点" #: src/oaxis.c:114 msgid "horizontal" msgstr "水平" #: src/oaxis.c:115 msgid "parallel1" msgstr "軸と平行1" #: src/oaxis.c:116 msgid "parallel2" msgstr "軸と平行2" #: src/oaxis.c:117 msgid "normal1" msgstr "軸と直交1" #: src/oaxis.c:118 msgid "normal2" msgstr "軸と直交2" #: src/oaxis.c:119 msgid "oblique1" msgstr "軸と斜交1" #: src/oaxis.c:120 msgid "oblique2" msgstr "軸と斜交2" #: src/ofit.c:85 msgid "poly" msgstr "多項式" #: src/ofit.c:86 msgid "pow" msgstr "べき関数" #: src/ofit.c:87 msgid "exp" msgstr "指数関数" #: src/ofit.c:89 msgid "user" msgstr "ユーザ定義" #: src/ofile.c:163 src/opath.c:81 msgid "line" msgstr "直線" #: src/ofile.c:164 msgid "polygon" msgstr "多角形" #: src/ofile.c:165 msgid "polygon_solid_fill" msgstr "実多角形" #: src/ofile.c:166 src/opath.c:82 msgid "curve" msgstr "曲線" #: src/ofile.c:167 msgid "diagonal" msgstr "対角線" #: src/ofile.c:168 msgid "arrow" msgstr "矢印" #: src/ofile.c:170 msgid "rectangle_fill" msgstr "塗りつぶし矩形" #: src/ofile.c:171 msgid "rectangle_solid_fill" msgstr "実矩形" #: src/ofile.c:172 msgid "errorbar_x" msgstr "横誤差棒" #: src/ofile.c:173 msgid "errorbar_y" msgstr "縦誤差棒" #: src/ofile.c:174 msgid "staircase_x" msgstr "縦階段" #: src/ofile.c:175 msgid "staircase_y" msgstr "横階段" #: src/ofile.c:176 msgid "bar_x" msgstr "空横棒" #: src/ofile.c:177 msgid "bar_y" msgstr "空縦棒" #: src/ofile.c:178 msgid "bar_fill_x" msgstr "塗りつぶし横棒" #: src/ofile.c:179 msgid "bar_fill_y" msgstr "塗りつぶし縦棒" #: src/ofile.c:180 msgid "bar_solid_fill_x" msgstr "実横棒" #: src/ofile.c:181 msgid "bar_solid_fill_y" msgstr "実縦棒" #: src/ogra.c:436 #, c-format msgid "drawing %s (%.1f%%)" msgstr "%s 描画中 (%.1f%%)" #: src/opath.c:70 msgid "even_odd_rule" msgstr "偶奇" #: src/opath.c:71 msgid "winding_rule" msgstr "ワインディング" #~ msgid "_Show" #~ msgstr "表示(_S)" #~ msgid "_Fit" #~ msgstr "フィット(_F)" #~ msgid "Stroke color" #~ msgstr "ストローク色" #~ msgid "Fill color" #~ msgstr "塗りつぶし色" #, fuzzy #~ msgid "property" #~ msgstr "オブジェクト/プロパティ" #~ msgid "%s%stype:%-2d" #~ msgstr "%s%sタイプ:%-2d" #~ msgid "type:%-2d" #~ msgstr "タイプ:%-2d" #~ msgid "points:%-3d %s%s%s%s" #~ msgstr "点:%-3d %s%s%s%s" #~ msgid "style:" #~ msgstr "線種:" #~ msgid "custom" #~ msgstr "任意" #~ msgid "arrow:" #~ msgstr "矢印:" #~ msgid "fill" #~ msgstr "塗りつぶし" #~ msgid "w:%.2f h:%.2f%s%s%s" #~ msgstr "幅:%.2f 高さ:%.2f%s%s%s" #~ msgid " style:" #~ msgstr " 線種:" #~ msgid " fill" #~ msgstr " 塗りつぶし" #~ msgid "lw/size" #~ msgstr "線幅/サイズ" #~ msgid "_Addin:" #~ msgstr "アドイン(_A)" #~ msgid "Data open" #~ msgstr "データを開く" #~ msgid "Merge open" #~ msgstr "合成ファイルを開く" #~ msgid "_Open" #~ msgstr "開く(_O)" #~ msgid "Open Data" #~ msgstr "データファイルを開く" #~ msgid "Open Data file" #~ msgstr "データファイルを開く" #~ msgid "_Save file history" #~ msgstr "終了時にファイル履歴を保存(_S)" #~ msgid "Data Window" #~ msgstr "新規作成" #, fuzzy #~ msgid "Axis Window" #~ msgstr "Axis Windowをアクティブにする" #, fuzzy #~ msgid "Legend Window" #~ msgstr "Legend Windowをアクティブにする" #, fuzzy #~ msgid "Merge Window" #~ msgstr "Merge Windowをアクティブにする" #, fuzzy #~ msgid "Coordinate Window" #~ msgstr "_Coordinate window:" #, fuzzy #~ msgid "Information Window" #~ msgstr "_Information window:" #~ msgid "Merge" #~ msgstr "合成" #~ msgid "Coordinate" #~ msgstr "座標" #~ msgid "Information" #~ msgstr "情報" #~ msgid "Load" #~ msgstr "NGPファイル読込" #~ msgid "Save" #~ msgstr "保存" #~ msgid "Clear" #~ msgstr "スケールクリア" #~ msgid "Math" #~ msgstr "変換式" #~ msgid "Undo" #~ msgstr "Undo" #~ msgid "external _Driver" #~ msgstr "外部ドライバ(_D)" #~ msgid "pa_Ge" #~ msgstr "用紙(_G)" #~ msgid "External _Driver" #~ msgstr "外部ドライバ(_D)" #~ msgid "_90 degree clockwise" #~ msgstr "_90° 時計回り" #~ msgid "9_0 degree counter-clockwise" #~ msgstr "9_0° 反時計回り" #~ msgid "_DPI:" #~ msgstr "_DPI:" #~ msgid "_Opacity:" #~ msgstr "不透明度(_O):" #~ msgid "_Greece" #~ msgstr "ギリシャ文字(_G)" #~ msgid "_Mathematics" #~ msgstr "数学(_M)" #~ msgid "_Physics" #~ msgstr "物理(_P)" #~ msgid "_New alias:" #~ msgstr "新規別名(_N):" #~ msgid "_Greek Symbol" #~ msgstr "全角ギリシア -> シンボル(_G)" #~ msgid "style" #~ msgstr "スタイル" #~ msgid "_Jfont:" #~ msgstr "邦文フォント(_J):" #~ msgid "GreekSymbol" #~ msgstr "全角ギリシア -> シンボル(_G)" #~ msgid "Save NGP file " #~ msgstr "NGPファイルへ保存" #~ msgid "_Fill:" #~ msgstr "塗りつぶし(_F):" #~ msgid "empty" #~ msgstr "なし" #~ msgid "_Frame" #~ msgstr "フレーム(_F)" #~ msgid " frame" #~ msgstr " フレーム" #~ msgid "Line" #~ msgstr "直線" #~ msgid "arrow:%s" #~ msgstr "矢印:%s" #~ msgid "interpolation:%s" #~ msgstr "補完法:%s" #~ msgid "fill:%s" #~ msgstr "塗りつぶし:%s" #~ msgid "legend curve" #~ msgstr "曲線" #~ msgid "legend polygon" #~ msgstr "多角形" #~ msgid "Legend curve %d" #~ msgstr "曲線 %d" #~ msgid "Legend polygon %d" #~ msgstr "多角形 %d" #~ msgid "Curve" #~ msgstr "曲線" #~ msgid "New Legend Curve (+SHIFT: Fine +CONTROL: snap angle)" #~ msgstr "曲線の新規作成 (+SHIFT:微動 +CONTROL:角度をスナップ)" #~ msgid "Polygon" #~ msgstr "多角形" #~ msgid "New Legend Polygon (+SHIFT: Fine +CONTROL: snap angle)" #~ msgstr "多角形の新規作成 (+SHIFT:微動 +CONTROL:角度をスナップ)" #~ msgid "_Line" #~ msgstr "直線(_L)" #~ msgid "_Curve" #~ msgstr "曲線(_C)" #~ msgid "_Polygon" #~ msgstr "多角形(_P)" #~ msgid "slant1" #~ msgstr "軸と斜交1" #~ msgid "slant2" #~ msgstr "軸と斜交2" #~ msgid "Ex. Viewer" #~ msgstr "外部ビューア" #~ msgid "Open External Viewer" #~ msgstr "外部ビューア" #~ msgid "_Output" #~ msgstr "出力(_O)" #~ msgid "external _Viewer" #~ msgstr "外部ビューア(_V)" #~ msgid "data _File" #~ msgstr "データファイル(_F)" #~ msgid "normal" #~ msgstr "水平" #~ msgid "_Browser:" #~ msgstr "ブラウザ(_B):" #~ msgid "Editor" #~ msgstr "エディター" #~ msgid "_Copy all" #~ msgstr "全てコピー(_C)" #~ msgid "Couldn't convert filename from UTF-8." #~ msgstr "UTF8 文字列からファイル名に変換できません." #~ msgid "Couldn't convert filename to UTF-8." #~ msgstr "ファイル名から UTF8 文字列に変換できません." #~ msgid "_Use rectangle for draft" #~ msgstr "下書き時に矩形を使用(_U)" #~ msgid "_Addin script" #~ msgstr "アドインスクリプト(_A)" #~ msgid "data move" #~ msgstr "移動" #~ msgid "data mask" #~ msgstr "マスク" #~ msgid "data load" #~ msgstr "読み込み" #~ msgid "data math" #~ msgstr "数式変換" #~ msgid "_Ifs:" #~ msgstr "区切文字(_I):" #~ msgid "Axis Baseine" #~ msgstr "軸基線" #~ msgid "Axis Position" #~ msgstr "位置" #~ msgid "Axis Font" #~ msgstr "フォント" #~ msgid "_Baseline ..." #~ msgstr "軸基線(_B)..." #~ msgid "_Gauge ..." #~ msgstr "目盛線(_G)..." #~ msgid "_Numbering ..." #~ msgstr "目盛数字(_N)..." #~ msgid "_Font ..." #~ msgstr "フォント(_F)..." #~ msgid "Invalid character in the filename" #~ msgstr "不正な文字を含むファイル名" #~ msgid "type:%-2d size:%-5.2f" #~ msgstr "タイプ:%-2d サイズ:%-5.2f" #~ msgid "lw/pt" #~ msgstr "線幅/ポイント" #~ msgid "type:%-2d %s size:%-5.2f" #~ msgstr "タイプ:%-2d %s サイズ:%-5.2f" #~ msgid "object" #~ msgstr "オブジェクト" #~ msgid "Overwrite existing setting?" #~ msgstr "既存の設定に上書きしますか?" #~ msgid "Delete existing setting?" #~ msgstr "既存の設定を削除しますか?" #~ msgid "Fit setting" #~ msgstr "フィット設定" #~ msgid "vertical" #~ msgstr "垂直" #~ msgid "" #~ "Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: " #~ "Fine)" #~ msgstr "軸の選択 (+SHIFT:複数選択 / +CONTROL:水平/垂直移動 +SHIFT:微動)" #, fuzzy #~ msgid "_Font of file preview:" #~ msgstr "データプレビューの行数(_L):" #~ msgid "" #~ "A file named `%s'already exists.\n" #~ "Do you want to replace it?" #~ msgstr "" #~ "'%s' というファイルは既に存在しています。\n" #~ "上書きしてもよろしいですか?" #, fuzzy #~ msgid "data file" #~ msgstr "データの保存" #~ msgid "Flip _Vertically" #~ msgstr "垂直反転(_V)" #~ msgid "_Window" #~ msgstr "ウィンドウ(_W)" #~ msgid "_Show cross" #~ msgstr "クロスゲージ表示(_S)" #~ msgid "I/O error: Write" #~ msgstr "I/O エラー: 書き込み" #~ msgid "_Hide" #~ msgstr "非表示(_H)" #~ msgid "_Auto redraw" #~ msgstr "自動再描画(_A)" #~ msgid "addin" #~ msgstr "アドイン" #~ msgid "Script" #~ msgstr "スクリプト" #~ msgid "Addin" #~ msgstr "アドイン" #~ msgid "prefscript" #~ msgstr "スクリプト" #~ msgid "setdriver" #~ msgstr "ドライバ" #~ msgid "prefdriver" #~ msgstr "ドライバ" #~ msgid "preffont" #~ msgstr "フォント" #~ msgid "misc" #~ msgstr "各種設定" #~ msgid "extviewer" #~ msgstr "外部ビューア" #~ msgid "viewer" #~ msgstr "ビューア" #~ msgid "_JFont" #~ msgstr "英文フォント(_F):" #~ msgid "Color selection" #~ msgstr "色の選択" #~ msgid "Printing" #~ msgstr "印刷中" #~ msgid "New Frame Graph (+SHIFT: Fine)" #~ msgstr "フレームグラフの新規作成 (+SHIFT:微動)" #~ msgid "New Section Graph (+SHIFT: Fine)" #~ msgstr "方眼グラフの新規作成 (+SHIFT:微動)" #~ msgid "New Cross Graph (+SHIFT: Fine)" #~ msgstr "交差グラフの新規作成 (+SHIFT:微動)" #~ msgid "New Single Axis (+SHIFT: Fine)" #~ msgstr "単体軸の新規作成 (+SHIFT:微動)" #~ msgid "New Legend Line (+SHIFT: Fine)" #~ msgstr "直線の新規作成 (+SHIFT:微動)" #~ msgid "New Legend Curve (+SHIFT: Fine)" #~ msgstr "曲線の新規作成 (+SHIFT:微動)" #~ msgid "New Legend Arc (+SHIFT: Fine)" #~ msgstr "円の新規作成 (+SHIFT:微動)" #~ msgid "Pointer (+SHIFT: Multi select)" #~ msgstr "選択 (+SHIFT:複数選択)" #~ msgid "Legend Pointer (+SHIFT: Multi select)" #~ msgstr "Legendの選択 (+SHIFT:複数選択)" #~ msgid "Axis Pointer (+SHIFT: Multi select)" #~ msgstr "軸の選択 (+SHIFT:複数選択)" #~ msgid "Move" #~ msgstr "移動(_M)" #~ msgid "Move object" #~ msgstr "オブジェクトの移動" #~ msgid "Move object (+CONTROL: Horizontal/Vertical +SHIFT: Fine)" #~ msgstr "オブジェクトの移動 (+CONTROL:水平/垂直移動 +SHIFT:微動)" #~ msgid "_Print:" #~ msgstr "スプーラ(_P):" #~ msgid "Spawning external driver" #~ msgstr "外部ドライバに出力中" #~ msgid "Spawning external viewer" #~ msgstr "外部ビューアに出力中" #~ msgid "Making GRA file" #~ msgstr "合成ファイル作成中" #~ msgid "Interrupt" #~ msgstr "中止" #~ msgid "Interrupt Drawing, etc." #~ msgstr "描画の中止" #~ msgid "_Clear" #~ msgstr "クリア(_C)" #~ msgid "_Store in memory" #~ msgstr "メモリに保存(_S)" ngraph-gtk-6.06.13/po/remove-potcdate.sin0000644000175000017500000000066012241111712015073 00000000000000# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } ngraph-gtk-6.06.13/po/stamp-po0000644000175000017500000000001212241113272012737 00000000000000timestamp ngraph-gtk-6.06.13/po/quot.sed0000644000175000017500000000023112241111712012741 00000000000000s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g ngraph-gtk-6.06.13/po/insert-header.sin0000644000175000017500000000124012241111712014522 00000000000000# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } ngraph-gtk-6.06.13/po/Makevars0000644000175000017500000000341612241111712012760 00000000000000# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Ito Hiroyuki # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS =ZXB01226@nifty.com # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = ngraph-gtk-6.06.13/po/ngraph-gtk.pot0000644000175000017500000012735112241113272014062 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Ito Hiroyuki # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: ngraph-gtk 6.06.13\n" "Report-Msgid-Bugs-To: ZXB01226@nifty.com\n" "POT-Creation-Date: 2013-11-14 18:24+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtk/ox11menu.c:2033 msgid "Unsaved Graph" msgstr "" #: src/gtk/ox11dlg.c:578 msgid "Open file" msgstr "" #: src/gtk/ox11dlg.c:626 msgid "Open files" msgstr "" #: src/gtk/ox11dlg.c:674 msgid "Save file" msgstr "" #: src/gtk/ogra2cairo.c:45 src/gtk/x11axis.c:1148 src/gtk/x11axis.c:2283 #: src/odraw.c:84 src/oaxis.c:71 src/oaxis.c:86 msgid "none" msgstr "" #: src/gtk/ogra2cairo.c:46 msgid "default" msgstr "" #: src/gtk/ogra2cairo.c:47 msgid "gray" msgstr "" #: src/gtk/x11axis.c:57 src/gtk/x11opt.c:474 src/gtk/x11opt.c:1182 msgid "name" msgstr "" #: src/gtk/x11axis.c:58 msgid "min" msgstr "" #: src/gtk/x11axis.c:59 msgid "max" msgstr "" #: src/gtk/x11axis.c:60 msgid "inc" msgstr "" #: src/gtk/x11axis.c:61 src/gtk/x11file.c:74 msgid "type" msgstr "" #: src/gtk/x11axis.c:64 src/gtk/x11axis.c:170 msgid "dir" msgstr "" #: src/gtk/x11axis.c:65 msgid "len" msgstr "" #: src/gtk/x11axis.c:89 src/gtk/x11file.c:118 src/gtk/x11lgnd.c:213 #: src/gtk/x11menu.c:627 src/gtk/x11merge.c:69 msgid "_Duplicate" msgstr "" #: src/gtk/x11axis.c:92 src/gtk/x11lgnd.c:217 msgid "_Focus" msgstr "" #: src/gtk/x11axis.c:116 msgid "" "%a\tThe abbreviated weekday name.\n" "%A\tThe full weekday name.\n" "%b\tThe abbreviated month name.\n" "%B\tThe full month name.\n" "%c\tEquivalent to %a %b %e %T %Y.\n" "%C\tThe century number (year/100).\n" "%d\tThe day of the month (01 to 31).\n" "%e\tThe day of the month (1 to 31).\n" "%F\tEquivalent to %Y-%m-%d.\n" "%H\tThe hour (00 to 23).\n" "%I\tThe hour (01 to 12).\n" "%j\tThe day of the year (001 to 366).\n" "%k\tThe hour (0 to 23).\n" "%l\tThe hour (1 to 12).\n" "%m\tThe month (01 to 12).\n" "%M\tThe minute (00 to 59).\n" "%n\tA newline character.\n" "%p\tEither \"AM\" or \"PM\".\n" "%P\tEither \"am\" or \"pm\".\n" "%r\tEquivalent to %I:%M:%S %p.\n" "%R\tEquivalent to %H:%M.\n" "%S\tThe second (00 to 60).\n" "%T\tEquivalent to %H:%M:%S.\n" "%u\tThe day of the week, Monday being 1 (1 to 7).\n" "%w\tThe day of the week, Sunday being 0 (0 to 6).\n" "%y\tThe year without a century (00 to 99).\n" "%Y\tThe year including the century.\n" "%+\tEquivalent to %a %b %e %T GMT %Y.\n" "%%\tA literal '%' character." msgstr "" #: src/gtk/x11axis.c:317 #, c-format msgid "_Style %d:" msgstr "" #: src/gtk/x11axis.c:322 src/gtk/x11axis.c:1728 #, c-format msgid "_Width %d:" msgstr "" #: src/gtk/x11axis.c:337 #, c-format msgid "Grid %d" msgstr "" #: src/gtk/x11axis.c:356 msgid "Axis (_X):" msgstr "" #: src/gtk/x11axis.c:360 msgid "draw _X grid" msgstr "" #: src/gtk/x11axis.c:365 msgid "Axis (_Y):" msgstr "" #: src/gtk/x11axis.c:369 msgid "draw _Y grid" msgstr "" #: src/gtk/x11axis.c:373 src/gtk/x11menu.c:1728 msgid "Axis" msgstr "" #: src/gtk/x11axis.c:386 src/gtk/x11axis.c:1510 src/gtk/x11axis.c:1724 #: src/gtk/x11axis.c:2215 src/gtk/x11lgnd.c:1077 src/gtk/x11lgnd.c:1097 #: src/gtk/x11lgnd.c:1107 src/gtk/x11lgndx.c:456 msgid "_Color:" msgstr "" #: src/gtk/x11axis.c:389 msgid "_Background" msgstr "" #: src/gtk/x11axis.c:395 src/gtk/x11opt.c:1791 msgid "_Background Color:" msgstr "" #: src/gtk/x11axis.c:398 src/gtk/x11axis.c:3303 src/gtk/x11axis.c:3328 #: src/gtk/x11axis.c:3361 src/gtk/x11lgnd.c:3258 src/gtk/x11lgnd.c:3271 #: src/gtk/x11lgnd.c:3706 src/gtk/gtk_widget.c:1128 msgid "Color" msgstr "" #: src/gtk/x11axis.c:416 src/gtk/x11axis.c:1739 msgid "Style" msgstr "" #: src/gtk/x11axis.c:654 src/gtk/x11axis.c:913 msgid "Graph _Width:" msgstr "" #: src/gtk/x11axis.c:658 src/gtk/x11axis.c:917 msgid "Graph _Height:" msgstr "" #: src/gtk/x11axis.c:675 src/gtk/x11axis.c:933 msgid "_X axis" msgstr "" #: src/gtk/x11axis.c:693 src/gtk/x11axis.c:951 msgid "_Y axis" msgstr "" #: src/gtk/x11axis.c:711 msgid "_U axis" msgstr "" #: src/gtk/x11axis.c:729 msgid "_R axis" msgstr "" #: src/gtk/x11axis.c:747 src/gtk/x11menu.c:1304 msgid "_Grid" msgstr "" #: src/gtk/x11axis.c:1052 src/gtk/x11merge.c:148 msgid "_Zoom:" msgstr "" #: src/gtk/x11axis.c:1329 src/gtk/x11axis.c:1698 src/gtk/x11file.c:1548 msgid "_Min:" msgstr "" #: src/gtk/x11axis.c:1333 src/gtk/x11axis.c:1703 src/gtk/x11file.c:1552 msgid "_Max:" msgstr "" #: src/gtk/x11axis.c:1337 msgid "_Inc:" msgstr "" #: src/gtk/x11axis.c:1351 msgid "_File" msgstr "" #: src/gtk/x11axis.c:1359 msgid "_Scale:" msgstr "" #: src/gtk/x11axis.c:1363 src/gtk/x11file.c:1556 src/gtk/x11print.c:258 msgid "_Div:" msgstr "" #: src/gtk/x11axis.c:1367 msgid "_Ref:" msgstr "" #: src/gtk/x11axis.c:1373 msgid "_Auto scale margin:" msgstr "" #: src/gtk/x11axis.c:1376 src/gtk/x11axis.c:3376 msgid "Scale" msgstr "" #: src/gtk/x11axis.c:1496 msgid "Draw _Baseline" msgstr "" #: src/gtk/x11axis.c:1502 src/gtk/x11file.c:3095 src/gtk/x11lgnd.c:1047 #: src/gtk/x11lgndx.c:440 msgid "Line _Style:" msgstr "" #: src/gtk/x11axis.c:1506 src/gtk/x11file.c:3099 src/gtk/x11lgndx.c:444 msgid "_Line Width:" msgstr "" #: src/gtk/x11axis.c:1513 src/gtk/x11axis.c:3285 msgid "Baseline" msgstr "" #: src/gtk/x11axis.c:1531 src/gtk/x11axis.c:1558 msgid "_Position:" msgstr "" #: src/gtk/x11axis.c:1536 msgid "_Arrow length:" msgstr "" #: src/gtk/x11axis.c:1541 msgid "_Arrow width:" msgstr "" #: src/gtk/x11axis.c:1544 src/gtk/x11axis.c:3297 msgid "Arrow" msgstr "" #: src/gtk/x11axis.c:1562 msgid "_Wave length:" msgstr "" #: src/gtk/x11axis.c:1566 msgid "_Wave width:" msgstr "" #: src/gtk/x11axis.c:1569 src/gtk/x11axis.c:3300 msgid "Wave" msgstr "" #: src/gtk/x11axis.c:1693 msgid "_Gauge:" msgstr "" #: src/gtk/x11axis.c:1706 src/gtk/x11axis.c:1984 msgid "Range" msgstr "" #: src/gtk/x11axis.c:1720 msgid "_Style:" msgstr "" #: src/gtk/x11axis.c:1733 #, c-format msgid "_Length %d:" msgstr "" #: src/gtk/x11axis.c:1969 msgid "_Numbering:" msgstr "" #: src/gtk/x11axis.c:1973 msgid "_Begin:" msgstr "" #: src/gtk/x11axis.c:1977 msgid "_Step:" msgstr "" #: src/gtk/x11axis.c:1981 msgid "_Num:" msgstr "" #: src/gtk/x11axis.c:1998 msgid "_Align:" msgstr "" #: src/gtk/x11axis.c:2002 src/gtk/x11axis.c:2346 src/gtk/x11lgnd.c:1845 msgid "_Direction:" msgstr "" #: src/gtk/x11axis.c:2007 msgid "shift (_P):" msgstr "" #: src/gtk/x11axis.c:2011 msgid "shift (_N):" msgstr "" #: src/gtk/x11axis.c:2014 src/gtk/x11axis.c:2364 src/gtk/x11axis.c:3324 #: src/gtk/x11axis.c:3345 msgid "Position" msgstr "" #: src/gtk/x11axis.c:2030 msgid "_Fraction:" msgstr "" #: src/gtk/x11axis.c:2034 msgid "_Head:" msgstr "" #: src/gtk/x11axis.c:2038 msgid "_Tail:" msgstr "" #: src/gtk/x11axis.c:2043 msgid "_Date/time format:" msgstr "" #: src/gtk/x11axis.c:2047 msgid "_Auto normalization:" msgstr "" #: src/gtk/x11axis.c:2050 msgid "_Log power" msgstr "" #: src/gtk/x11axis.c:2054 msgid "_Add plus" msgstr "" #: src/gtk/x11axis.c:2058 msgid "no _Zero" msgstr "" #: src/gtk/x11axis.c:2062 msgid "Format" msgstr "" #: src/gtk/x11axis.c:2181 msgid "_Point:" msgstr "" #: src/gtk/x11axis.c:2185 src/gtk/x11lgnd.c:1812 msgid "_Space:" msgstr "" #: src/gtk/x11axis.c:2189 msgid "_Script size:" msgstr "" #: src/gtk/x11axis.c:2193 src/gtk/x11lgnd.c:1821 src/gtk/x11opt.c:927 msgid "_Font:" msgstr "" #: src/gtk/x11axis.c:2218 src/gtk/x11axis.c:3354 src/gtk/x11dialg.c:238 #: src/gtk/x11lgnd.c:3704 src/gtk/x11opt.c:1417 msgid "Font" msgstr "" #: src/gtk/x11axis.c:2342 msgid "_Length:" msgstr "" #: src/gtk/x11axis.c:2356 msgid "_Adjust:" msgstr "" #: src/gtk/x11axis.c:2360 msgid "Adjust _Position:" msgstr "" #: src/gtk/x11axis.c:2390 #, c-format msgid "Axis %d %s" msgstr "" #: src/gtk/x11axis.c:2399 msgid "_Scale" msgstr "" #: src/gtk/x11axis.c:2403 msgid "_Baseline" msgstr "" #: src/gtk/x11axis.c:2407 msgid "_Gauge" msgstr "" #: src/gtk/x11axis.c:2411 msgid "_Numbering" msgstr "" #: src/gtk/x11axis.c:2415 msgid "_Font" msgstr "" #: src/gtk/x11axis.c:2419 msgid "_Position" msgstr "" #: src/gtk/x11axis.c:3293 src/gtk/x11axis.c:3305 src/gtk/x11lgnd.c:3263 #: src/gtk/x11lgnd.c:3277 src/gtk/x11menu.c:941 src/gtk/x11menu.c:955 msgid "Draw" msgstr "" #: src/gtk/x11axis.c:3317 msgid "Gauge" msgstr "" #: src/gtk/x11axis.c:3338 msgid "Numbering" msgstr "" #: src/gtk/x11axis.c:3348 msgid "Align" msgstr "" #: src/gtk/x11axis.c:3351 msgid "Direction" msgstr "" #: src/gtk/x11axis.c:3363 msgid "Log power" msgstr "" #: src/gtk/x11axis.c:3364 msgid "No zero" msgstr "" #: src/gtk/x11commn.c:980 src/gtk/x11menu.c:346 msgid "Save NGP file" msgstr "" #: src/gtk/x11commn.c:1004 src/gtk/x11opt.c:1943 #, c-format msgid "Saving `%.128s'." msgstr "" #: src/gtk/x11commn.c:1190 src/gtk/x11commn.c:1272 #, c-format msgid "Loading `%.128s'." msgstr "" #: src/gtk/x11commn.c:1389 msgid "" "This graph is modified.\n" "Save this graph?" msgstr "" #: src/gtk/x11commn.c:1390 msgid "Confirm" msgstr "" #: src/gtk/x11commn.c:1570 msgid "Ngraph.ini is not found." msgstr "" #: src/gtk/x11commn.c:1573 msgid "Ngraph.ini is write protected." msgstr "" #: src/gtk/x11commn.c:1588 #, c-format msgid "Install `Ngraph.ini' to %s ?" msgstr "" #: src/gtk/x11commn.c:1592 msgid "Ngraph.ini could not be copied." msgstr "" #: src/gtk/x11commn.c:1732 msgid "error" msgstr "" #: src/gtk/x11dialg.c:48 src/gtk/x11opt.c:1795 msgid "solid" msgstr "" #: src/gtk/x11dialg.c:49 src/gtk/x11opt.c:1796 msgid "dot" msgstr "" #: src/gtk/x11dialg.c:50 msgid "short dash" msgstr "" #: src/gtk/x11dialg.c:51 msgid "dash" msgstr "" #: src/gtk/x11dialg.c:52 msgid "dot dash" msgstr "" #: src/gtk/x11dialg.c:53 msgid "2-dot dash" msgstr "" #: src/gtk/x11dialg.c:54 msgid "dot 2-dash" msgstr "" #: src/gtk/x11dialg.c:60 msgid "auto" msgstr "" #: src/gtk/x11dialg.c:121 src/gtk/x11menu.c:2765 src/gtk/x11menu.c:2768 msgid "data" msgstr "" #: src/gtk/x11dialg.c:124 src/gtk/x11dialg.c:130 src/gtk/x11dialg.c:184 msgid "mark selection" msgstr "" #: src/gtk/x11dialg.c:127 msgid "data default" msgstr "" #: src/gtk/x11dialg.c:133 msgid "evaluation" msgstr "" #: src/gtk/x11dialg.c:136 src/gtk/x11file.c:466 msgid "math" msgstr "" #: src/gtk/x11dialg.c:139 msgid "math text" msgstr "" #: src/gtk/x11dialg.c:142 src/ofile.c:182 msgid "fit" msgstr "" #: src/gtk/x11dialg.c:145 msgid "fit load" msgstr "" #: src/gtk/x11dialg.c:149 msgid "fit save" msgstr "" #: src/gtk/x11dialg.c:152 msgid "Frame/Section Graph" msgstr "" #: src/gtk/x11dialg.c:155 src/gtk/x11menu.c:1839 msgid "Cross Graph" msgstr "" #: src/gtk/x11dialg.c:158 msgid "axis" msgstr "" #: src/gtk/x11dialg.c:161 msgid "grid" msgstr "" #: src/gtk/x11dialg.c:164 msgid "Scale Zoom" msgstr "" #: src/gtk/x11dialg.c:168 msgid "merge" msgstr "" #: src/gtk/x11dialg.c:172 msgid "legend line" msgstr "" #: src/gtk/x11dialg.c:175 msgid "legend rectangle" msgstr "" #: src/gtk/x11dialg.c:178 msgid "legend arc" msgstr "" #: src/gtk/x11dialg.c:181 msgid "legend mark" msgstr "" #: src/gtk/x11dialg.c:187 msgid "legend text" msgstr "" #: src/gtk/x11dialg.c:190 msgid "textdefault" msgstr "" #: src/gtk/x11dialg.c:193 msgid "legend gauss" msgstr "" #: src/gtk/x11dialg.c:196 msgid "page" msgstr "" #: src/gtk/x11dialg.c:199 msgid "drawobj" msgstr "" #: src/gtk/x11dialg.c:202 src/gtk/x11graph.c:871 msgid "directory" msgstr "" #: src/gtk/x11dialg.c:205 msgid "load" msgstr "" #: src/gtk/x11dialg.c:208 msgid "loadprm" msgstr "" #: src/gtk/x11dialg.c:211 msgid "save" msgstr "" #: src/gtk/x11dialg.c:214 msgid "driver" msgstr "" #: src/gtk/x11dialg.c:217 msgid "print" msgstr "" #: src/gtk/x11dialg.c:220 msgid "output data" msgstr "" #: src/gtk/x11dialg.c:223 msgid "save default" msgstr "" #: src/gtk/x11dialg.c:226 msgid "Add-in script" msgstr "" #: src/gtk/x11dialg.c:229 msgid "Add-in script setup" msgstr "" #: src/gtk/x11dialg.c:232 msgid "External driver" msgstr "" #: src/gtk/x11dialg.c:235 msgid "External driver setup" msgstr "" #: src/gtk/x11dialg.c:241 src/gtk/x11opt.c:1440 msgid "Miscellaneous" msgstr "" #: src/gtk/x11dialg.c:244 msgid "External viewer" msgstr "" #: src/gtk/x11dialg.c:247 msgid "Viewer" msgstr "" #: src/gtk/x11dialg.c:250 msgid "multi select" msgstr "" #: src/gtk/x11dialg.c:253 msgid "single select" msgstr "" #: src/gtk/x11dialg.c:256 msgid "output image" msgstr "" #: src/gtk/x11dialg.c:332 msgid "_All" msgstr "" #: src/gtk/x11file.c:69 src/gtk/x11merge.c:52 src/gtk/x11opt.c:475 msgid "file" msgstr "" #: src/gtk/x11file.c:72 msgid "ax" msgstr "" #: src/gtk/x11file.c:73 msgid "ay" msgstr "" #: src/gtk/x11file.c:75 src/gtk/x11lgnd.c:153 msgid "size" msgstr "" #: src/gtk/x11file.c:76 src/gtk/x11lgnd.c:72 src/gtk/x11lgnd.c:127 msgid "width" msgstr "" #: src/gtk/x11file.c:77 msgid "skip" msgstr "" #: src/gtk/x11file.c:78 msgid "step" msgstr "" #: src/gtk/x11file.c:79 msgid "final" msgstr "" #: src/gtk/x11file.c:80 msgid "num" msgstr "" #: src/gtk/x11file.c:119 msgid "duplicate _Behind" msgstr "" #: src/gtk/x11file.c:122 src/gtk/x11file.c:1591 src/gtk/x11menu.c:940 #: src/gtk/x11menu.c:954 msgid "_Draw" msgstr "" #: src/gtk/x11file.c:155 msgid "_Math X:" msgstr "" #: src/gtk/x11file.c:155 msgid "_Math Y:" msgstr "" #: src/gtk/x11file.c:165 msgid "_Math:" msgstr "" #: src/gtk/x11file.c:474 msgid "_X math" msgstr "" #: src/gtk/x11file.c:475 msgid "_Y math" msgstr "" #: src/gtk/x11file.c:631 msgid "_Profile:" msgstr "" #: src/gtk/x11file.c:668 msgid "Please specify the profile." msgstr "" #: src/gtk/x11file.c:774 msgid "Setting file not found." msgstr "" #: src/gtk/x11file.c:813 msgid "No settings." msgstr "" #: src/gtk/x11file.c:834 msgid "Overwrite existing profile?" msgstr "" #: src/gtk/x11file.c:921 #, c-format msgid "Delete the profile '%s'?" msgstr "" #: src/gtk/x11file.c:932 #, c-format msgid "The profile '%s' is not exist." msgstr "" #: src/gtk/x11file.c:1015 #, c-format msgid "The profile '%s' is saved." msgstr "" #: src/gtk/x11file.c:1020 #, c-format msgid "The profile '%s' is deleted." msgstr "" #: src/gtk/x11file.c:1200 msgid "Fitting Results" msgstr "" #: src/gtk/x11file.c:1388 msgid "_Formula:" msgstr "" #: src/gtk/x11file.c:1394 msgid "_Converge (%):" msgstr "" #: src/gtk/x11file.c:1397 msgid "_Derivatives" msgstr "" #: src/gtk/x11file.c:1440 msgid "User definition" msgstr "" #: src/gtk/x11file.c:1455 #, c-format msgid "Fit %d" msgstr "" #: src/gtk/x11file.c:1476 src/gtk/x11file.c:3058 src/gtk/x11lgnd.c:1301 msgid "_Type:" msgstr "" #: src/gtk/x11file.c:1485 msgid "_Dim:" msgstr "" #: src/gtk/x11file.c:1506 msgid "_Weight:" msgstr "" #: src/gtk/x11file.c:1518 msgid "_Through" msgstr "" #: src/gtk/x11file.c:1537 msgid "Action" msgstr "" #: src/gtk/x11file.c:1559 msgid "_Interpolation" msgstr "" #: src/gtk/x11file.c:1570 msgid "Draw X range" msgstr "" #: src/gtk/x11file.c:1582 src/gtk/x11file.c:3219 msgid "_Load" msgstr "" #: src/gtk/x11file.c:1595 msgid "_Result" msgstr "" #: src/gtk/x11file.c:1786 src/gtk/x11file.c:2024 src/gtk/x11view.c:959 msgid "Line No." msgstr "" #: src/gtk/x11file.c:1811 src/gtk/x11file.c:2037 msgid "_Line:" msgstr "" #: src/gtk/x11file.c:2189 msgid "_Head skip:" msgstr "" #: src/gtk/x11file.c:2193 msgid "_Read step:" msgstr "" #: src/gtk/x11file.c:2197 msgid "_Final line:" msgstr "" #: src/gtk/x11file.c:2201 msgid "_Remark:" msgstr "" #: src/gtk/x11file.c:2205 msgid "_IFS:" msgstr "" #: src/gtk/x11file.c:2208 msgid "_CSV" msgstr "" #: src/gtk/x11file.c:2344 msgid "_X smooth:" msgstr "" #: src/gtk/x11file.c:2348 msgid "_Y smooth:" msgstr "" #: src/gtk/x11file.c:2352 msgid "_X math:" msgstr "" #: src/gtk/x11file.c:2356 msgid "_Y math:" msgstr "" #: src/gtk/x11file.c:2613 src/gtk/x11file.c:3756 src/gtk/x11file.c:5220 #, c-format msgid "Create" msgstr "" #: src/gtk/x11file.c:3063 src/gtk/x11lgnd.c:1764 msgid "_Mark:" msgstr "" #: src/gtk/x11file.c:3068 msgid "_Curve:" msgstr "" #: src/gtk/x11file.c:3076 msgid "_Color 1:" msgstr "" #: src/gtk/x11file.c:3080 msgid "_Color 2:" msgstr "" #: src/gtk/x11file.c:3103 src/gtk/x11lgnd.c:1769 msgid "_Size:" msgstr "" #: src/gtk/x11file.c:3107 src/gtk/x11lgnd.c:1057 src/gtk/x11lgndx.c:448 msgid "_Miter:" msgstr "" #: src/gtk/x11file.c:3111 src/gtk/x11lgnd.c:1067 src/gtk/x11lgndx.c:452 msgid "_Join:" msgstr "" #: src/gtk/x11file.c:3114 msgid "_Clip" msgstr "" #: src/gtk/x11file.c:3153 msgid "_X column:" msgstr "" #: src/gtk/x11file.c:3158 msgid "_X axis:" msgstr "" #: src/gtk/x11file.c:3172 msgid "_Y column:" msgstr "" #: src/gtk/x11file.c:3177 msgid "_Y axis:" msgstr "" #: src/gtk/x11file.c:3211 msgid "_Plot" msgstr "" #: src/gtk/x11file.c:3215 msgid "_Math" msgstr "" #: src/gtk/x11file.c:3250 msgid "This file contain invalid UTF-8 strings." msgstr "" #: src/gtk/x11file.c:3685 #, c-format msgid "Data %d" msgstr "" #: src/gtk/x11file.c:3689 msgid "_Apply all" msgstr "" #: src/gtk/x11file.c:3698 src/gtk/x11merge.c:136 src/gtk/x11print.c:165 msgid "_File:" msgstr "" #: src/gtk/x11file.c:3701 msgid "_Load settings" msgstr "" #: src/gtk/x11file.c:3706 src/gtk/x11menu.c:207 msgid "_Edit" msgstr "" #: src/gtk/x11file.c:3717 src/gtk/x11view.c:969 msgid "_Mask" msgstr "" #: src/gtk/x11file.c:3721 src/gtk/x11view.c:970 msgid "_Move" msgstr "" #: src/gtk/x11file.c:3728 msgid "_Table" msgstr "" #: src/gtk/x11file.c:3737 msgid "_Plain" msgstr "" #: src/gtk/x11file.c:3757 msgid "_Fit:" msgstr "" #: src/gtk/x11file.c:4046 msgid "Data new" msgstr "" #: src/gtk/x11file.c:4090 src/gtk/x11menu.c:1104 msgid "Add Data file" msgstr "" #: src/gtk/x11file.c:5075 msgid "Data file" msgstr "" #: src/gtk/x11file.c:5081 msgid "Making data file" msgstr "" #: src/gtk/x11file.c:5082 msgid "Making data file." msgstr "" #: src/gtk/x11file.c:5271 src/gtk/x11lgnd.c:3255 msgid "Join" msgstr "" #: src/gtk/x11file.c:5276 src/gtk/x11lgnd.c:3231 src/gtk/gtk_widget.c:1135 msgid "Color 1" msgstr "" #: src/gtk/x11file.c:5283 src/gtk/x11lgnd.c:3232 src/gtk/gtk_widget.c:1142 msgid "Color 2" msgstr "" #: src/gtk/x11file.c:5291 msgid "Clip" msgstr "" #: src/gtk/x11file.c:5303 msgid "Type" msgstr "" #: src/gtk/x11graph.c:59 src/odraw.c:55 msgid "unchange" msgstr "" #: src/gtk/x11graph.c:60 src/odraw.c:56 msgid "full" msgstr "" #: src/gtk/x11graph.c:61 src/odraw.c:58 msgid "base" msgstr "" #: src/gtk/x11graph.c:73 msgid "Custom" msgstr "" #: src/gtk/x11graph.c:82 msgid "Letter P (215.90x279.40)" msgstr "" #: src/gtk/x11graph.c:83 msgid "Letter L (279.40x215.90)" msgstr "" #: src/gtk/x11graph.c:84 msgid "Legal P (215.90x355.60)" msgstr "" #: src/gtk/x11graph.c:85 msgid "Legal L (355.60x215.90)" msgstr "" #: src/gtk/x11graph.c:179 msgid "paper _Width:" msgstr "" #: src/gtk/x11graph.c:184 msgid "paper _Height:" msgstr "" #: src/gtk/x11graph.c:188 msgid "_Paper:" msgstr "" #: src/gtk/x11graph.c:197 msgid "_Left margin:" msgstr "" #: src/gtk/x11graph.c:202 msgid "_Top margin:" msgstr "" #: src/gtk/x11graph.c:206 msgid "paper _Zoom:" msgstr "" #: src/gtk/x11graph.c:666 msgid "Object" msgstr "" #: src/gtk/x11graph.c:683 src/gtk/x11menu.c:484 msgid "_Draw order" msgstr "" #: src/gtk/x11graph.c:713 msgid "_Insert" msgstr "" #: src/gtk/x11graph.c:765 msgid "_Objects" msgstr "" #: src/gtk/x11graph.c:873 msgid "_Select Dir:" msgstr "" #: src/gtk/x11graph.c:875 msgid "Current Dir:" msgstr "" #: src/gtk/x11graph.c:954 msgid "_Expand included file" msgstr "" #: src/gtk/x11graph.c:959 msgid "_Dir:" msgstr "" #: src/gtk/x11graph.c:963 src/gtk/x11graph.c:1070 src/gtk/x11opt.c:1339 #: src/gtk/x11opt.c:1375 msgid "_Path:" msgstr "" #: src/gtk/x11graph.c:1017 msgid "_Ignore file path" msgstr "" #: src/gtk/x11graph.c:1076 msgid "_Include data file" msgstr "" #: src/gtk/x11graph.c:1080 msgid "_Include merge file" msgstr "" #: src/gtk/x11graph.c:1170 src/gtk/x11menu.c:322 msgid "Load NGP file" msgstr "" #: src/gtk/x11graph.c:1367 msgid "" "Ngraph is the program to create scientific 2-dimensional graphs for " "researchers and engineers." msgstr "" #: src/gtk/x11gui.c:272 msgid "Error" msgstr "" #: src/gtk/x11gui.c:817 src/gtk/x11gui.c:995 msgid "All" msgstr "" #: src/gtk/x11gui.c:918 src/gtk/x11opt.c:1936 #, c-format msgid "" "`%s'\n" "\n" "Overwrite existing file?" msgstr "" #: src/gtk/x11gui.c:972 msgid "_Change current directory" msgstr "" #: src/gtk/x11gui.c:983 #, c-format msgid "%s file (*.%s)" msgstr "" #: src/gtk/x11lgnd.c:69 src/gtk/x11lgnd.c:94 msgid "color" msgstr "" #: src/gtk/x11lgnd.c:73 msgid "points" msgstr "" #: src/gtk/x11lgnd.c:98 msgid "height" msgstr "" #: src/gtk/x11lgnd.c:99 msgid "line width" msgstr "" #: src/gtk/x11lgnd.c:124 msgid "angle1" msgstr "" #: src/gtk/x11lgnd.c:125 msgid "angle2" msgstr "" #: src/gtk/x11lgnd.c:126 msgid "pieslice" msgstr "" #: src/gtk/x11lgnd.c:174 msgid "font" msgstr "" #: src/gtk/x11lgnd.c:177 msgid "pt" msgstr "" #: src/gtk/x11lgnd.c:178 msgid "direction" msgstr "" #: src/gtk/x11lgnd.c:326 #, c-format msgid "X:%.2f Y:%.2f %s%stype:%-2d" msgstr "" #: src/gtk/x11lgnd.c:824 msgid "_Line width:" msgstr "" #: src/gtk/x11lgnd.c:996 msgid "_Points:" msgstr "" #: src/gtk/x11lgnd.c:1087 msgid "_Color2:" msgstr "" #: src/gtk/x11lgnd.c:1257 #, c-format msgid "Legend line %d" msgstr "" #: src/gtk/x11lgnd.c:1307 msgid "_Interpolation:" msgstr "" #: src/gtk/x11lgnd.c:1319 src/gtk/x11lgnd.c:1637 msgid "_Close path" msgstr "" #: src/gtk/x11lgnd.c:1325 msgid "_Arrow:" msgstr "" #: src/gtk/x11lgnd.c:1377 src/gtk/x11lgnd.c:1500 src/gtk/x11lgnd.c:1647 msgid "_Stroke" msgstr "" #: src/gtk/x11lgnd.c:1396 msgid "fill _Rule:" msgstr "" #: src/gtk/x11lgnd.c:1400 src/gtk/x11lgnd.c:1519 src/gtk/x11lgnd.c:1667 msgid "_Fill" msgstr "" #: src/gtk/x11lgnd.c:1442 #, c-format msgid "Legend rectangle %d" msgstr "" #: src/gtk/x11lgnd.c:1472 msgid "_Width:" msgstr "" #: src/gtk/x11lgnd.c:1476 msgid "_Height:" msgstr "" #: src/gtk/x11lgnd.c:1561 #, c-format msgid "Legend arc %d" msgstr "" #: src/gtk/x11lgnd.c:1611 msgid "_Angle1:" msgstr "" #: src/gtk/x11lgnd.c:1615 msgid "_Angle2:" msgstr "" #: src/gtk/x11lgnd.c:1618 msgid "_Pieslice" msgstr "" #: src/gtk/x11lgnd.c:1719 #, c-format msgid "Legend mark %d" msgstr "" #: src/gtk/x11lgnd.c:1808 msgid "_Pt:" msgstr "" #: src/gtk/x11lgnd.c:1817 msgid "_Script:" msgstr "" #: src/gtk/x11lgnd.c:1848 msgid "_Raw" msgstr "" #: src/gtk/x11lgnd.c:1979 #, c-format msgid "Legend text %d" msgstr "" #: src/gtk/x11lgnd.c:2021 msgid "_Text:" msgstr "" #: src/gtk/x11lgnd.c:3227 src/gtk/x11menu.c:1783 src/gtk/x11menu.c:1784 msgid "Mark" msgstr "" #: src/gtk/x11lgnd.c:3249 src/gtk/x11lgnd.c:3251 msgid "Stroke" msgstr "" #: src/gtk/x11lgnd.c:3260 msgid "Close path" msgstr "" #: src/gtk/x11lgnd.c:3267 src/gtk/x11lgnd.c:3269 msgid "Fill" msgstr "" #: src/gtk/x11lgnd.c:3273 msgid "Fill rule" msgstr "" #: src/gtk/x11lgnd.c:3757 msgid "path" msgstr "" #: src/gtk/x11lgnd.c:3758 src/ofile.c:169 msgid "rectangle" msgstr "" #: src/gtk/x11lgnd.c:3759 msgid "arc" msgstr "" #: src/gtk/x11lgnd.c:3760 src/ofile.c:162 msgid "mark" msgstr "" #: src/gtk/x11lgnd.c:3761 msgid "text" msgstr "" #: src/gtk/x11lgndx.c:392 #, c-format msgid "Legend Gaussian/Lorentzian/Parabola/Sin %d" msgstr "" #: src/gtk/x11lgndx.c:404 msgid "_Sin" msgstr "" #: src/gtk/x11lgndx.c:408 msgid "_Parabola" msgstr "" #: src/gtk/x11lgndx.c:412 msgid "_Lorentz" msgstr "" #: src/gtk/x11lgndx.c:416 msgid "_Gauss" msgstr "" #: src/gtk/x11lgndx.c:465 msgid "_Division:" msgstr "" #: src/gtk/x11lgndx.c:496 msgid "Direction:" msgstr "" #: src/gtk/x11menu.c:158 msgid "_Graph" msgstr "" #: src/gtk/x11menu.c:167 msgid "_New graph" msgstr "" #: src/gtk/x11menu.c:179 msgid "_Export image" msgstr "" #: src/gtk/x11menu.c:191 src/gtk/x11menu.c:199 msgid "_Add-in" msgstr "" #: src/gtk/x11menu.c:215 msgid "_View" msgstr "" #: src/gtk/x11menu.c:223 msgid "_Data" msgstr "" #: src/gtk/x11menu.c:232 msgid "_Axis" msgstr "" #: src/gtk/x11menu.c:240 msgid "_Legend" msgstr "" #: src/gtk/x11menu.c:248 msgid "_Merge" msgstr "" #: src/gtk/x11menu.c:256 msgid "_Preference" msgstr "" #: src/gtk/x11menu.c:264 msgid "_Help" msgstr "" #: src/gtk/x11menu.c:272 src/gtk/x11menu.c:1193 msgid "_Frame graph" msgstr "" #: src/gtk/x11menu.c:273 msgid "Create frame graph" msgstr "" #: src/gtk/x11menu.c:284 src/gtk/x11menu.c:1205 msgid "_Section graph" msgstr "" #: src/gtk/x11menu.c:285 msgid "Create section graph" msgstr "" #: src/gtk/x11menu.c:296 src/gtk/x11menu.c:1217 msgid "_Cross graph" msgstr "" #: src/gtk/x11menu.c:297 msgid "Create cross graph" msgstr "" #: src/gtk/x11menu.c:308 msgid "_All clear" msgstr "" #: src/gtk/x11menu.c:309 msgid "Clear graph" msgstr "" #: src/gtk/x11menu.c:320 msgid "_Load graph" msgstr "" #: src/gtk/x11menu.c:321 msgid "Load NGP" msgstr "" #: src/gtk/x11menu.c:334 msgid "_Recent graphs" msgstr "" #: src/gtk/x11menu.c:345 src/gtk/x11menu.c:359 msgid "Save NGP" msgstr "" #: src/gtk/x11menu.c:372 msgid "_GRA file" msgstr "" #: src/gtk/x11menu.c:373 msgid "Export as GRA file" msgstr "" #: src/gtk/x11menu.c:384 msgid "_PS file" msgstr "" #: src/gtk/x11menu.c:385 msgid "Export as PostScript file" msgstr "" #: src/gtk/x11menu.c:396 msgid "_EPS file" msgstr "" #: src/gtk/x11menu.c:397 msgid "Export as Encapsulate PostScript file" msgstr "" #: src/gtk/x11menu.c:408 msgid "P_DF file" msgstr "" #: src/gtk/x11menu.c:409 msgid "Export as Portable Document Format" msgstr "" #: src/gtk/x11menu.c:420 msgid "_SVG file" msgstr "" #: src/gtk/x11menu.c:421 msgid "Export as Scalable Vector Graphics file" msgstr "" #: src/gtk/x11menu.c:432 msgid "P_NG file" msgstr "" #: src/gtk/x11menu.c:433 msgid "Export as Portable Network Graphics file" msgstr "" #: src/gtk/x11menu.c:445 src/gtk/x11menu.c:459 msgid "_EMF file" msgstr "" #: src/gtk/x11menu.c:446 src/gtk/x11menu.c:460 msgid "Export as Windows Enhanced Metafile" msgstr "" #: src/gtk/x11menu.c:471 msgid "_Clipboard (EMF)" msgstr "" #: src/gtk/x11menu.c:472 msgid "Copy to the clipboard as Windows Enhanced Metafile " msgstr "" #: src/gtk/x11menu.c:509 src/gtk/x11menu.c:510 msgid "Print preview" msgstr "" #: src/gtk/x11menu.c:521 src/gtk/x11menu.c:522 src/gtk/x11print.c:680 msgid "Print" msgstr "" #: src/gtk/x11menu.c:534 msgid "_Current directory" msgstr "" #: src/gtk/x11menu.c:546 msgid "_Ngraph shell" msgstr "" #: src/gtk/x11menu.c:640 msgid "draw _Order" msgstr "" #: src/gtk/x11menu.c:700 msgid "_Align" msgstr "" #: src/gtk/x11menu.c:708 msgid "_Left" msgstr "" #: src/gtk/x11menu.c:720 msgid "_Right" msgstr "" #: src/gtk/x11menu.c:732 msgid "_Vertical center" msgstr "" #: src/gtk/x11menu.c:744 msgid "_Top" msgstr "" #: src/gtk/x11menu.c:756 msgid "_Bottom" msgstr "" #: src/gtk/x11menu.c:768 msgid "_Horizontal center" msgstr "" #: src/gtk/x11menu.c:780 msgid "_Rotate" msgstr "" #: src/gtk/x11menu.c:788 msgid "rotate _90 degree clockwise" msgstr "" #: src/gtk/x11menu.c:800 msgid "rotate 9_0 degree counter-clockwise" msgstr "" #: src/gtk/x11menu.c:812 msgid "_Flip" msgstr "" #: src/gtk/x11menu.c:820 msgid "flip _Horizontally" msgstr "" #: src/gtk/x11menu.c:832 msgid "flip _Vertically" msgstr "" #: src/gtk/x11menu.c:844 src/gtk/x11menu.c:845 msgid "Single window mode" msgstr "" #: src/gtk/x11menu.c:846 msgid "Toggle single window mode" msgstr "" #: src/gtk/x11menu.c:858 msgid "Activate Data Window" msgstr "" #: src/gtk/x11menu.c:872 msgid "Activate Axis Window" msgstr "" #: src/gtk/x11menu.c:886 msgid "Activate Legend Window" msgstr "" #: src/gtk/x11menu.c:900 msgid "Activate Merge Window" msgstr "" #: src/gtk/x11menu.c:914 msgid "Activate Coordinate Window" msgstr "" #: src/gtk/x11menu.c:928 msgid "Activate Information Window" msgstr "" #: src/gtk/x11menu.c:942 src/gtk/x11menu.c:956 msgid "Draw on Viewer Window" msgstr "" #: src/gtk/x11menu.c:967 msgid "Clear Image" msgstr "" #: src/gtk/x11menu.c:968 msgid "Clear Viewer Window" msgstr "" #: src/gtk/x11menu.c:980 msgid "default _Window config" msgstr "" #: src/gtk/x11menu.c:992 msgid "_Clear information view" msgstr "" #: src/gtk/x11menu.c:1004 msgid "_Sidebar" msgstr "" #: src/gtk/x11menu.c:1016 msgid "_Statusbar" msgstr "" #: src/gtk/x11menu.c:1028 msgid "_Ruler" msgstr "" #: src/gtk/x11menu.c:1040 msgid "_Scrollbar" msgstr "" #: src/gtk/x11menu.c:1052 msgid "_Command toolbar" msgstr "" #: src/gtk/x11menu.c:1064 msgid "_Toolbox" msgstr "" #: src/gtk/x11menu.c:1076 msgid "cross _Gauge" msgstr "" #: src/gtk/x11menu.c:1090 msgid "_New" msgstr "" #: src/gtk/x11menu.c:1102 msgid "_Add" msgstr "" #: src/gtk/x11menu.c:1103 msgid "Add Data" msgstr "" #: src/gtk/x11menu.c:1116 msgid "_Recent data" msgstr "" #: src/gtk/x11menu.c:1162 msgid "_Save data" msgstr "" #: src/gtk/x11menu.c:1174 msgid "_Math Transformation" msgstr "" #: src/gtk/x11menu.c:1175 msgid "Math Transformation" msgstr "" #: src/gtk/x11menu.c:1176 msgid "Set Math Transformation" msgstr "" #: src/gtk/x11menu.c:1229 msgid "Single _Axis" msgstr "" #: src/gtk/x11menu.c:1265 msgid "Scale _Zoom" msgstr "" #: src/gtk/x11menu.c:1278 msgid "Scale _Clear" msgstr "" #: src/gtk/x11menu.c:1279 src/gtk/x11menu.c:1280 msgid "Clear Scale" msgstr "" #: src/gtk/x11menu.c:1292 msgid "Scale _Undo" msgstr "" #: src/gtk/x11menu.c:1293 msgid "Scale Undo" msgstr "" #: src/gtk/x11menu.c:1294 msgid "Undo Scale Settings" msgstr "" #: src/gtk/x11menu.c:1383 msgid "_Path" msgstr "" #: src/gtk/x11menu.c:1394 msgid "_Rectangle" msgstr "" #: src/gtk/x11menu.c:1405 msgid "_Arc" msgstr "" #: src/gtk/x11menu.c:1416 msgid "_Mark" msgstr "" #: src/gtk/x11menu.c:1427 msgid "_Text" msgstr "" #: src/gtk/x11menu.c:1559 src/gtk/x11opt.c:78 msgid "_Viewer" msgstr "" #: src/gtk/x11menu.c:1571 msgid "_External viewer" msgstr "" #: src/gtk/x11menu.c:1583 src/gtk/x11opt.c:86 msgid "_Font aliases" msgstr "" #: src/gtk/x11menu.c:1595 msgid "_Add-in script" msgstr "" #: src/gtk/x11menu.c:1607 src/gtk/x11opt.c:98 msgid "_Miscellaneous" msgstr "" #: src/gtk/x11menu.c:1619 msgid "save as default (_Settings)" msgstr "" #: src/gtk/x11menu.c:1631 msgid "save as default (_Graph)" msgstr "" #: src/gtk/x11menu.c:1643 msgid "_Data file default" msgstr "" #: src/gtk/x11menu.c:1655 msgid "_Legend text default" msgstr "" #: src/gtk/x11menu.c:1706 msgid "Point" msgstr "" #: src/gtk/x11menu.c:1707 msgid "Pointer" msgstr "" #: src/gtk/x11menu.c:1708 msgid "" "Legend and Axis Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/" "Vertical +SHIFT: Fine)" msgstr "" #: src/gtk/x11menu.c:1717 msgid "Legend" msgstr "" #: src/gtk/x11menu.c:1718 msgid "Legend Pointer" msgstr "" #: src/gtk/x11menu.c:1719 msgid "" "Legend Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: " "Fine)" msgstr "" #: src/gtk/x11menu.c:1729 msgid "Axis Pointer" msgstr "" #: src/gtk/x11menu.c:1730 msgid "" "Axis Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: " "Fine)" msgstr "" #: src/gtk/x11menu.c:1739 msgid "Data" msgstr "" #: src/gtk/x11menu.c:1740 src/gtk/x11menu.c:1741 msgid "Data Pointer" msgstr "" #: src/gtk/x11menu.c:1750 src/gtk/x11menu.c:1751 msgid "Path" msgstr "" #: src/gtk/x11menu.c:1752 msgid "New Legend Path (+SHIFT: Fine +CONTROL: snap angle)" msgstr "" #: src/gtk/x11menu.c:1761 src/gtk/x11menu.c:1762 msgid "Rectangle" msgstr "" #: src/gtk/x11menu.c:1763 msgid "" "New Legend Rectangle (+SHIFT: Fine +CONTROL: square integer ratio rectangle)" msgstr "" #: src/gtk/x11menu.c:1772 src/gtk/x11menu.c:1773 msgid "Arc" msgstr "" #: src/gtk/x11menu.c:1774 msgid "New Legend Arc (+SHIFT: Fine +CONTROL: circle or integer ratio ellipse)" msgstr "" #: src/gtk/x11menu.c:1785 msgid "New Legend Mark (+SHIFT: Fine)" msgstr "" #: src/gtk/x11menu.c:1794 src/gtk/x11menu.c:1795 msgid "Text" msgstr "" #: src/gtk/x11menu.c:1796 msgid "New Legend Text (+SHIFT: Fine)" msgstr "" #: src/gtk/x11menu.c:1805 msgid "Gauss" msgstr "" #: src/gtk/x11menu.c:1806 msgid "Gaussian" msgstr "" #: src/gtk/x11menu.c:1807 msgid "New Legend Gaussian (+SHIFT: Fine +CONTROL: integer ratio)" msgstr "" #: src/gtk/x11menu.c:1816 msgid "Frame axis" msgstr "" #: src/gtk/x11menu.c:1817 msgid "Frame Graph" msgstr "" #: src/gtk/x11menu.c:1818 msgid "New Frame Graph (+SHIFT: Fine +CONTROL: integer ratio)" msgstr "" #: src/gtk/x11menu.c:1827 msgid "Section axis" msgstr "" #: src/gtk/x11menu.c:1828 msgid "Section Graph" msgstr "" #: src/gtk/x11menu.c:1829 msgid "New Section Graph (+SHIFT: Fine +CONTROL: integer ratio)" msgstr "" #: src/gtk/x11menu.c:1838 msgid "Cross axis" msgstr "" #: src/gtk/x11menu.c:1840 msgid "New Cross Graph (+SHIFT: Fine +CONTROL: integer ratio)" msgstr "" #: src/gtk/x11menu.c:1849 msgid "Single axis" msgstr "" #: src/gtk/x11menu.c:1850 msgid "Single Axis" msgstr "" #: src/gtk/x11menu.c:1851 msgid "New Single Axis (+SHIFT: Fine +CONTROL: snap angle)" msgstr "" #: src/gtk/x11menu.c:1860 msgid "Trimming" msgstr "" #: src/gtk/x11menu.c:1861 msgid "Axis Trimming" msgstr "" #: src/gtk/x11menu.c:1862 msgid "Axis Trimming (+SHIFT: Fine)" msgstr "" #: src/gtk/x11menu.c:1871 msgid "Evaluate" msgstr "" #: src/gtk/x11menu.c:1872 msgid "Evaluate Data" msgstr "" #: src/gtk/x11menu.c:1873 msgid "Evaluate Data Point" msgstr "" #: src/gtk/x11menu.c:1882 msgid "Zoom" msgstr "" #: src/gtk/x11menu.c:1883 msgid "Viewer Zoom" msgstr "" #: src/gtk/x11menu.c:1884 msgid "Viewer Zoom-In (+CONTROL: Zoom-Out +SHIFT: Centering)" msgstr "" #: src/gtk/x11menu.c:4190 msgid "Error:" msgstr "" #: src/gtk/x11menu.c:4240 msgid "Question" msgstr "" #: src/gtk/x11menu.c:4297 #, c-format msgid "Executing `%.128s'." msgstr "" #: src/gtk/x11merge.c:53 msgid "top" msgstr "" #: src/gtk/x11merge.c:54 src/oaxis.c:73 src/oaxis.c:87 src/oaxis.c:100 msgid "left" msgstr "" #: src/gtk/x11merge.c:55 msgid "zoom" msgstr "" #: src/gtk/x11merge.c:124 #, c-format msgid "Merge %d" msgstr "" #: src/gtk/x11merge.c:140 msgid "_Top Margin:" msgstr "" #: src/gtk/x11merge.c:144 msgid "_Left Margin:" msgstr "" #: src/gtk/x11merge.c:218 msgid "Add Merge file" msgstr "" #: src/gtk/x11opt.c:70 msgid "_Geometry" msgstr "" #: src/gtk/x11opt.c:74 msgid "_Child Geometry" msgstr "" #: src/gtk/x11opt.c:82 msgid "_External Viewer" msgstr "" #: src/gtk/x11opt.c:90 msgid "_External Driver" msgstr "" #: src/gtk/x11opt.c:94 msgid "_Add-in Script" msgstr "" #: src/gtk/x11opt.c:287 msgid "Add-in Script" msgstr "" #: src/gtk/x11opt.c:312 msgid "_Add-in:" msgstr "" #: src/gtk/x11opt.c:317 src/gtk/x11opt.c:553 msgid "_Name:" msgstr "" #: src/gtk/x11opt.c:321 msgid "_Script file:" msgstr "" #: src/gtk/x11opt.c:325 src/gtk/x11opt.c:561 src/gtk/x11print.c:161 msgid "_Option:" msgstr "" #: src/gtk/x11opt.c:329 msgid "_Description:" msgstr "" #: src/gtk/x11opt.c:396 msgid "Please specify script name." msgstr "" #: src/gtk/x11opt.c:400 msgid "Please specify script file name." msgstr "" #: src/gtk/x11opt.c:408 msgid "Please specify script description." msgstr "" #: src/gtk/x11opt.c:476 msgid "description" msgstr "" #: src/gtk/x11opt.c:529 msgid "External Driver" msgstr "" #: src/gtk/x11opt.c:557 src/gtk/x11print.c:156 msgid "_Driver:" msgstr "" #: src/gtk/x11opt.c:565 msgid "_Extension:" msgstr "" #: src/gtk/x11opt.c:592 msgid "Please specify driver name." msgstr "" #: src/gtk/x11opt.c:681 msgid "Driver" msgstr "" #: src/gtk/x11opt.c:793 src/gtk/x11opt.c:807 msgid "Alternative font" msgstr "" #: src/gtk/x11opt.c:908 msgid "Font name" msgstr "" #: src/gtk/x11opt.c:921 msgid "_Alias:" msgstr "" #: src/gtk/x11opt.c:981 msgid "Alternative fonts" msgstr "" #: src/gtk/x11opt.c:1037 msgid "Please specify a new alias name." msgstr "" #: src/gtk/x11opt.c:1045 msgid "Alias name already exists." msgstr "" #: src/gtk/x11opt.c:1181 msgid "alias" msgstr "" #: src/gtk/x11opt.c:1183 msgid "alternative fonts" msgstr "" #: src/gtk/x11opt.c:1276 msgid "Select program" msgstr "" #: src/gtk/x11opt.c:1304 msgid "External programs" msgstr "" #: src/gtk/x11opt.c:1314 msgid "_Editor:" msgstr "" #: src/gtk/x11opt.c:1318 msgid "_Help browser:" msgstr "" #: src/gtk/x11opt.c:1322 msgid "_Web browser:" msgstr "" #: src/gtk/x11opt.c:1330 msgid "Save graph" msgstr "" #: src/gtk/x11opt.c:1345 msgid "include _Data file" msgstr "" #: src/gtk/x11opt.c:1349 msgid "include _Merge file" msgstr "" #: src/gtk/x11opt.c:1358 msgid "Load graph" msgstr "" #: src/gtk/x11opt.c:1366 msgid "_Expand include file" msgstr "" #: src/gtk/x11opt.c:1371 msgid "_Expand directory:" msgstr "" #: src/gtk/x11opt.c:1393 msgid "Size" msgstr "" #: src/gtk/x11opt.c:1402 msgid "_Size of completion history:" msgstr "" #: src/gtk/x11opt.c:1406 msgid "_Length of information view:" msgstr "" #: src/gtk/x11opt.c:1410 msgid "_Length of data preview:" msgstr "" #: src/gtk/x11opt.c:1426 msgid "_Coordinate view:" msgstr "" #: src/gtk/x11opt.c:1430 msgid "_Information view:" msgstr "" #: src/gtk/x11opt.c:1434 msgid "data _Preview:" msgstr "" #: src/gtk/x11opt.c:1448 msgid "_Check \"change current directory\"" msgstr "" #: src/gtk/x11opt.c:1452 src/gtk/x11print.c:381 msgid "_Use opacity" msgstr "" #: src/gtk/x11opt.c:1456 msgid "_Show select data dialog on exporting" msgstr "" #: src/gtk/x11opt.c:1647 msgid "use _External previewer" msgstr "" #: src/gtk/x11opt.c:1661 msgid "Window _Width:" msgstr "" #: src/gtk/x11opt.c:1665 msgid "Window _Height:" msgstr "" #: src/gtk/x11opt.c:1787 msgid "_Grid:" msgstr "" #: src/gtk/x11opt.c:1797 msgid "_Line attribute of focus frame:" msgstr "" #: src/gtk/x11opt.c:1805 msgid "_Antialias:" msgstr "" #: src/gtk/x11opt.c:1807 msgid "_Preserve line width and style" msgstr "" #: src/gtk/x11opt.c:1811 msgid "_Load files on redraw" msgstr "" #: src/gtk/x11opt.c:1817 msgid "_Maximum number of data on redraw:" msgstr "" #: src/gtk/x11opt.c:1937 msgid "Save as Ngraph.ngp" msgstr "" #: src/gtk/x11print.c:129 msgid "External Driver Output" msgstr "" #: src/gtk/x11print.c:312 msgid "_PostScript Version:" msgstr "" #: src/gtk/x11print.c:343 msgid "_SVG Version:" msgstr "" #: src/gtk/x11print.c:377 msgid "_Convert texts to paths" msgstr "" #: src/gtk/x11print.c:399 msgid "Cairo PS Output" msgstr "" #: src/gtk/x11print.c:402 msgid "Cairo EPS Output" msgstr "" #: src/gtk/x11print.c:405 msgid "Cairo PNG Output" msgstr "" #: src/gtk/x11print.c:408 msgid "Cairo PDF Output" msgstr "" #: src/gtk/x11print.c:411 msgid "Cairo SVG Output" msgstr "" #: src/gtk/x11print.c:415 msgid "Cairo EMF Output" msgstr "" #: src/gtk/x11print.c:548 msgid "Printing." msgstr "" #: src/gtk/x11print.c:679 #, c-format msgid "Printing error: %s" msgstr "" #: src/gtk/x11print.c:731 msgid "Spawning external driver." msgstr "" #: src/gtk/x11print.c:737 src/gtk/x11print.c:1011 src/gtk/x11print.c:1084 #: src/gtk/x11view.c:5642 msgid "Drawing." msgstr "" #: src/gtk/x11print.c:804 msgid "Spawning external viewer." msgstr "" #: src/gtk/x11print.c:846 msgid "GRA file" msgstr "" #: src/gtk/x11print.c:886 msgid "Making GRA file." msgstr "" #: src/gtk/x11view.c:1275 src/gtk/x11view.c:1277 #, c-format msgid "Searching for data." msgstr "" #: src/gtk/x11view.c:1382 #, c-format msgid "Evaluating." msgstr "" #: src/gtk/x11view.c:1391 msgid "Evaluating" msgstr "" #: src/gtk/x11view.c:2817 msgid "Data points are moved." msgstr "" #: src/gtk/x11view.c:4083 msgid "Moving data points is canceled." msgstr "" #: src/gtk/x11view.c:5636 msgid "Scaling" msgstr "" #: src/gtk/x11view.c:5643 msgid "Drawing" msgstr "" #: src/gtk/gtk_widget.c:204 msgid "_Copy Settings" msgstr "" #: src/gtk/gtk_widget.c:680 msgid "Pick a Color" msgstr "" #: src/gtk/gtk_widget.c:1114 msgid "Stroke Color" msgstr "" #: src/gtk/gtk_widget.c:1121 msgid "Fill Color" msgstr "" #: src/gtk/gtk_widget.c:1149 msgid "Axis baseline color" msgstr "" #: src/gtk/gtk_widget.c:1156 msgid "Axis gauge color" msgstr "" #: src/gtk/gtk_widget.c:1163 msgid "Axis numbering color" msgstr "" #: src/gtk/gtk_subwin.c:59 msgid "Open" msgstr "" #: src/gtk/gtk_liststore.c:112 msgid "Bold" msgstr "" #: src/gtk/gtk_liststore.c:113 msgid "Italic" msgstr "" #: src/gtk/gtk_liststore.c:223 msgid "Line style" msgstr "" #: src/math/math_error.c:15 msgid "syntax error, unexpected end of equation." msgstr "" #: src/math/math_error.c:16 msgid "syntax error, function definition cannot be nested." msgstr "" #: src/math/math_error.c:17 msgid "syntax error, unexpected operator." msgstr "" #: src/math/math_error.c:18 msgid "syntax error, unexpected token." msgstr "" #: src/math/math_error.c:19 msgid "syntax error, wrong number of arguments." msgstr "" #: src/math/math_error.c:20 msgid "syntax error, unexpected end of equation, expecting ')'." msgstr "" #: src/math/math_error.c:21 msgid "syntax error, unexpected end of equation, expecting '}'." msgstr "" #: src/math/math_error.c:22 msgid "syntax error, unexpected end of equation, expecting ']'." msgstr "" #: src/math/math_error.c:23 msgid "syntax error, invalid function definition." msgstr "" #: src/math/math_error.c:24 msgid "syntax error, constant cannot be defined in a function definition." msgstr "" #: src/math/math_error.c:25 msgid "error, invalid parameter." msgstr "" #: src/math/math_error.c:26 msgid "" "error, a parameter cannot be used in a user function or a constant " "definition." msgstr "" #: src/math/math_error.c:27 msgid "error, unknown function." msgstr "" #: src/math/math_error.c:28 msgid "error, cannot allocate enough memory." msgstr "" #: src/math/math_error.c:29 msgid "error, unknown error." msgstr "" #: src/math/math_error.c:30 msgid "" "error, the function cannot be used in a user function or a constant " "definition." msgstr "" #: src/math/math_error.c:31 msgid "error, the constant is already defined." msgstr "" #: src/math/math_error.c:32 msgid "error, calculation error." msgstr "" #: src/math/math_error.c:84 src/math/math_error.c:92 src/math/math_error.c:110 #: src/math/math_error.c:118 src/math/math_error.c:126 #: src/math/math_error.c:134 src/math/math_error.c:142 #: src/math/math_error.c:150 src/math/math_error.c:158 #: src/math/math_error.c:166 src/math/math_error.c:174 #, c-format msgid "" "%s\n" " the error is found at: %s" msgstr "" #: src/odraw.c:57 msgid "relative" msgstr "" #: src/odraw.c:70 msgid "miter" msgstr "" #: src/odraw.c:71 msgid "round" msgstr "" #: src/odraw.c:72 msgid "bevel" msgstr "" #: src/odraw.c:85 msgid "end" msgstr "" #: src/odraw.c:86 msgid "begin" msgstr "" #: src/odraw.c:87 src/oaxis.c:72 msgid "both" msgstr "" #: src/odraw.c:92 msgid "spline" msgstr "" #: src/odraw.c:93 msgid "spline_close" msgstr "" #: src/odraw.c:94 msgid "bspline" msgstr "" #: src/odraw.c:95 msgid "bspline_close" msgstr "" #: src/oaxis.c:63 msgid "linear" msgstr "" #: src/oaxis.c:64 src/ofit.c:88 msgid "log" msgstr "" #: src/oaxis.c:65 msgid "inverse" msgstr "" #: src/oaxis.c:66 msgid "MJD" msgstr "" #: src/oaxis.c:74 src/oaxis.c:88 src/oaxis.c:101 msgid "right" msgstr "" #: src/oaxis.c:99 msgid "center" msgstr "" #: src/oaxis.c:102 msgid "point" msgstr "" #: src/oaxis.c:114 msgid "horizontal" msgstr "" #: src/oaxis.c:115 msgid "parallel1" msgstr "" #: src/oaxis.c:116 msgid "parallel2" msgstr "" #: src/oaxis.c:117 msgid "normal1" msgstr "" #: src/oaxis.c:118 msgid "normal2" msgstr "" #: src/oaxis.c:119 msgid "oblique1" msgstr "" #: src/oaxis.c:120 msgid "oblique2" msgstr "" #: src/ofit.c:85 msgid "poly" msgstr "" #: src/ofit.c:86 msgid "pow" msgstr "" #: src/ofit.c:87 msgid "exp" msgstr "" #: src/ofit.c:89 msgid "user" msgstr "" #: src/ofile.c:163 src/opath.c:81 msgid "line" msgstr "" #: src/ofile.c:164 msgid "polygon" msgstr "" #: src/ofile.c:165 msgid "polygon_solid_fill" msgstr "" #: src/ofile.c:166 src/opath.c:82 msgid "curve" msgstr "" #: src/ofile.c:167 msgid "diagonal" msgstr "" #: src/ofile.c:168 msgid "arrow" msgstr "" #: src/ofile.c:170 msgid "rectangle_fill" msgstr "" #: src/ofile.c:171 msgid "rectangle_solid_fill" msgstr "" #: src/ofile.c:172 msgid "errorbar_x" msgstr "" #: src/ofile.c:173 msgid "errorbar_y" msgstr "" #: src/ofile.c:174 msgid "staircase_x" msgstr "" #: src/ofile.c:175 msgid "staircase_y" msgstr "" #: src/ofile.c:176 msgid "bar_x" msgstr "" #: src/ofile.c:177 msgid "bar_y" msgstr "" #: src/ofile.c:178 msgid "bar_fill_x" msgstr "" #: src/ofile.c:179 msgid "bar_fill_y" msgstr "" #: src/ofile.c:180 msgid "bar_solid_fill_x" msgstr "" #: src/ofile.c:181 msgid "bar_solid_fill_y" msgstr "" #: src/ogra.c:436 #, c-format msgid "drawing %s (%.1f%%)" msgstr "" #: src/opath.c:70 msgid "even_odd_rule" msgstr "" #: src/opath.c:71 msgid "winding_rule" msgstr "" ngraph-gtk-6.06.13/po/en@boldquot.header0000644000175000017500000000247112241111712014712 00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # ngraph-gtk-6.06.13/po/Makefile.in.in0000644000175000017500000004042312241364012013740 00000000000000# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.18.3 GETTEXT_MACRO_VERSION = 0.18 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SED = @SED@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) MSGFMT_ = @MSGFMT@ MSGFMT_no = @MSGFMT@ MSGFMT_yes = @MSGFMT_015@ MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: all-@USE_NLS@ all-yes: stamp-po all-no: # Ensure that the gettext macros and this Makefile.in.in are in sync. CHECK_MACRO_VERSION = \ test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ exit 1; \ } # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot @$(CHECK_MACRO_VERSION) test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. # The determination of whether the package xyz is a GNU one is based on the # heuristic whether some file in the top level directory mentions "GNU xyz". # If GNU 'find' is available, we avoid grepping through monster files. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \ LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \ else \ LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \ fi; \ } | grep -v 'libtool:' >/dev/null; then \ package_gnu='GNU '; \ else \ package_gnu=''; \ fi; \ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ *) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --package-name="$${package_gnu}@PACKAGE@" \ --package-version='@VERSION@' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ esac test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) \ && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ esac; \ }; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ esac; \ }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: # Recreate Makefile by invoking config.status. Explicitly invoke the shell, # because execution permission bits may not work on the current file system. # Use @SHELL@, which is the shell determined by autoconf for the use by its # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && @SHELL@ ./config.status $(subdir)/$@.in po-directories force: # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/po/Rules-quot0000644000175000017500000000341112241364012013265 00000000000000# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header ngraph-gtk-6.06.13/po/ChangeLog0000644000175000017500000000106112241111712013030 000000000000002013-02-21 Ito Hiroyuki * POTFILES.in: add "src/gtk/gtk_liststore.c". 2008-05-27 gettextize * Makefile.in.in: New file, from gettext-0.17. * Rules-quot: New file, from gettext-0.17. * boldquot.sed: New file, from gettext-0.17. * en@boldquot.header: New file, from gettext-0.17. * en@quot.header: New file, from gettext-0.17. * insert-header.sin: New file, from gettext-0.17. * quot.sed: New file, from gettext-0.17. * remove-potcdate.sin: New file, from gettext-0.17. * POTFILES.in: New file. ngraph-gtk-6.06.13/po/POTFILES.in0000644000175000017500000000100112241111712013025 00000000000000# List of source files which contain translatable strings. src/gtk/ox11menu.c src/gtk/ox11dlg.c src/gtk/ogra2cairo.c src/gtk/x11axis.c src/gtk/x11commn.c src/gtk/x11dialg.c src/gtk/x11file.c src/gtk/x11graph.c src/gtk/x11gui.c src/gtk/x11lgnd.c src/gtk/x11lgndx.c src/gtk/x11menu.c src/gtk/x11merge.c src/gtk/x11opt.c src/gtk/x11print.c src/gtk/x11view.c src/gtk/gtk_widget.c src/gtk/gtk_subwin.c src/gtk/gtk_liststore.c src/math/math_error.c src/odraw.c src/oaxis.c src/ofit.c src/ofile.c src/ogra.c src/opath.c ngraph-gtk-6.06.13/po/boldquot.sed0000644000175000017500000000033112241111712013603 00000000000000s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g s/“/“/g s/”/”/g s/‘/‘/g s/’/’/g ngraph-gtk-6.06.13/po/en@quot.header0000644000175000017500000000226312241111712014050 00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # ngraph-gtk-6.06.13/po/ja.gmo0000644000175000017500000011571612241364777012416 00000000000000m)6o6A:`: o:z:::::::; ;&; 5; C;Q;e;w;;;;;;;; ; ; ; ;P; M<[<x<<<<<<<<<== %= 1=== Q=]= b=m=s={==3===== > > >%>,>1> 9> F>P>Y>p> > >> >>>>>>>>> ?? %? 0?IKIZIrI I I IIIIII JJJJ7JVJ(qJ(JJJJJ J KK $K50KfKkK{KKKK KKKKKKKKL L LL"L +L 7LBLGL VLdLlLLL LL LLLLL!LM%M=MCM TM `M jMtM}MMMMMM MMMN NN 2N ?NMNSN YNeN kNvN |NN N N NNNNNN N OO(O9OJOPOWO ]OjOpOvO}O OO O O O OOOO OOOO OP PPP)PU FUSUdUjU rU U UU UUUU UUU UUU V VV V'V.VMVSVeVlVsVwV}VVVV V VVVVVVVVVV VVW WWW"W'W 6WCWKW bWnWwW {W WW WW W W WWWWWXXN X[X%uXX'XOX-YCY \Y gY rY }YYY YYYYYYYYYYYY YZ ZZ1Z9Z >Z IZ VZ bZnZ ZZZ ZZZZZZZZ ZZZZZ ZZ[ [[[["[+[ 4[ @[M[R[ a[ o[ |[ [[[[[[[[[[[ [[[\\#\9\U\[\`\y\ \ \ \ \ \\\\\ \ \ ]]B]3W]*]8]8]8(^)a^"^^(^^ ^_ ___2_7_ =_J_lO_`$_dd dd&d,d&e-*e(Xe'eeeeeff*f+ F Tar\ !(/48=S i s }  Џ !<^(n Ґِ 0F _l cB0T6`**H s   ͓ ד' 8 ER hu|%"Ӕڔޔ  !(/6=T [e u  •֕ ݕ  "2KRds   ǖ і ޖ   &37S lv-}0ܗ + 5 B LY`p E9-$QRQQ9H036 '+S Wa(q ě;&W)gRZUb\4q7Row9zQEs=UjT'2,@.uz Q_RS6;/8xyAbH7{aW!t9,xJs|o~JeZT}Nw'}x lOY:,%Pw3  ESytNE>q&@c{r"ra(t:ho^Q LG d(j*3vZ`U*"lfh>B%&+MIc :LeAa$ kp{g-;V"2iOX+0q`(+Xzi v1 d \[mBu<k#fv-3. F9NT)<|SM|5D0B~A_DiG$KM!HX V#YfyYmh56Gu?cIK]1Fp'8 n_}5]J ?/\>=67jP%L.pd$@r OF4gbkH0^=Cs[m/4V2C#<-][?n*I8D^ )`PWC1en ~!lK%a The abbreviated weekday name. %A The full weekday name. %b The abbreviated month name. %B The full month name. %c Equivalent to %a %b %e %T %Y. %C The century number (year/100). %d The day of the month (01 to 31). %e The day of the month (1 to 31). %F Equivalent to %Y-%m-%d. %H The hour (00 to 23). %I The hour (01 to 12). %j The day of the year (001 to 366). %k The hour (0 to 23). %l The hour (1 to 12). %m The month (01 to 12). %M The minute (00 to 59). %n A newline character. %p Either "AM" or "PM". %P Either "am" or "pm". %r Equivalent to %I:%M:%S %p. %R Equivalent to %H:%M. %S The second (00 to 60). %T Equivalent to %H:%M:%S. %u The day of the week, Monday being 1 (1 to 7). %w The day of the week, Sunday being 0 (0 to 6). %y The year without a century (00 to 99). %Y The year including the century. %+ Equivalent to %a %b %e %T GMT %Y. %% A literal '%' character.%s the error is found at: %s%s file (*.%s)2-dot dashActionActivate Axis WindowActivate Coordinate WindowActivate Data WindowActivate Information WindowActivate Legend WindowActivate Merge WindowAdd DataAdd Data fileAdd Merge fileAdd-in ScriptAdd-in scriptAdd-in script setupAdjust _Position:Alias name already exists.AlignAllAlternative fontAlternative fontsArcArrowAxisAxis %d %sAxis (_X):Axis (_Y):Axis PointerAxis Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: Fine)Axis TrimmingAxis Trimming (+SHIFT: Fine)Axis baseline colorAxis gauge colorAxis numbering colorBaselineBoldCairo EMF OutputCairo EPS OutputCairo PDF OutputCairo PNG OutputCairo PS OutputCairo SVG OutputClear ImageClear ScaleClear Viewer WindowClear graphClipClose pathColorColor 1Color 2ConfirmCopy to the clipboard as Windows Enhanced Metafile CreateCreate cross graphCreate frame graphCreate section graphCross GraphCross axisCurrent Dir:CustomDataData %dData PointerData fileData newData points are moved.Delete the profile '%s'?DirectionDirection:DrawDraw X rangeDraw _BaselineDraw on Viewer WindowDrawingDrawing.DriverErrorError:EvaluateEvaluate DataEvaluate Data PointEvaluatingEvaluating.Executing `%.128s'.Export as Encapsulate PostScript fileExport as GRA fileExport as Portable Document FormatExport as Portable Network Graphics fileExport as PostScript fileExport as Scalable Vector Graphics fileExport as Windows Enhanced MetafileExternal DriverExternal Driver OutputExternal driverExternal driver setupExternal programsExternal viewerFillFill ColorFill ruleFit %dFitting ResultsFontFont nameFormatFrame GraphFrame axisFrame/Section GraphGRA fileGaugeGaussGaussianGraph _Height:Graph _Width:Grid %dInstall `Ngraph.ini' to %s ?ItalicJoinLegal L (355.60x215.90)Legal P (215.90x355.60)LegendLegend Gaussian/Lorentzian/Parabola/Sin %dLegend PointerLegend Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: Fine)Legend and Axis Pointer (+SHIFT: Multi select / +CONTROL: Horizontal/Vertical +SHIFT: Fine)Legend arc %dLegend line %dLegend mark %dLegend rectangle %dLegend text %dLetter L (279.40x215.90)Letter P (215.90x279.40)Line No.Line _Style:Line styleLoad NGPLoad NGP fileLoad graphLoading `%.128s'.Log powerMJDMaking GRA file.Making data fileMaking data file.MarkMath TransformationMerge %dMiscellaneousMoving data points is canceled.New Cross Graph (+SHIFT: Fine +CONTROL: integer ratio)New Frame Graph (+SHIFT: Fine +CONTROL: integer ratio)New Legend Arc (+SHIFT: Fine +CONTROL: circle or integer ratio ellipse)New Legend Gaussian (+SHIFT: Fine +CONTROL: integer ratio)New Legend Mark (+SHIFT: Fine)New Legend Path (+SHIFT: Fine +CONTROL: snap angle)New Legend Rectangle (+SHIFT: Fine +CONTROL: square integer ratio rectangle)New Legend Text (+SHIFT: Fine)New Section Graph (+SHIFT: Fine +CONTROL: integer ratio)New Single Axis (+SHIFT: Fine +CONTROL: snap angle)Ngraph is the program to create scientific 2-dimensional graphs for researchers and engineers.Ngraph.ini could not be copied.Ngraph.ini is not found.Ngraph.ini is write protected.No settings.No zeroNumberingObjectOpenOpen fileOpen filesOverwrite existing profile?P_DF fileP_NG filePathPick a ColorPlease specify a new alias name.Please specify driver name.Please specify script description.Please specify script file name.Please specify script name.Please specify the profile.PointPointerPositionPrintPrint previewPrinting error: %sPrinting.QuestionRangeRectangleSave NGPSave NGP fileSave as Ngraph.ngpSave fileSave graphSaving `%.128s'.ScaleScale UndoScale ZoomScale _ClearScale _UndoScale _ZoomScalingSearching for data.Section GraphSection axisSelect programSet Math TransformationSetting file not found.Single AxisSingle _AxisSingle axisSingle window modeSizeSpawning external driver.Spawning external viewer.StrokeStroke ColorStyleTextThe profile '%s' is deleted.The profile '%s' is not exist.The profile '%s' is saved.This file contain invalid UTF-8 strings.This graph is modified. Save this graph?Toggle single window modeTrimmingTypeUndo Scale SettingsUnsaved GraphUser definitionViewerViewer ZoomViewer Zoom-In (+CONTROL: Zoom-Out +SHIFT: Centering)WaveWindow _Height:Window _Width:X:%.2f Y:%.2f %s%stype:%-2dZoom_Add_Add plus_Add-in_Add-in Script_Add-in script_Add-in:_Adjust:_Alias:_Align_Align:_All_All clear_Angle1:_Angle2:_Antialias:_Apply all_Arc_Arrow length:_Arrow width:_Arrow:_Auto normalization:_Auto scale margin:_Axis_Background_Background Color:_Baseline_Begin:_Bottom_CSV_Change current directory_Check "change current directory"_Child Geometry_Clear information view_Clip_Clipboard (EMF)_Close path_Color 1:_Color 2:_Color2:_Color:_Command toolbar_Converge (%):_Convert texts to paths_Coordinate view:_Copy Settings_Cross graph_Current directory_Curve:_Data_Data file default_Date/time format:_Derivatives_Description:_Dim:_Dir:_Direction:_Div:_Division:_Draw_Draw order_Driver:_Duplicate_EMF file_EPS file_Edit_Editor:_Expand directory:_Expand include file_Expand included file_Export image_Extension:_External Driver_External Viewer_External viewer_File_File:_Fill_Final line:_Fit:_Flip_Focus_Font_Font aliases_Font:_Formula:_Fraction:_Frame graph_GRA file_Gauge_Gauge:_Gauss_Geometry_Graph_Grid_Grid:_Head skip:_Head:_Height:_Help_Help browser:_Horizontal center_IFS:_Ignore file path_Inc:_Include data file_Include merge file_Information view:_Insert_Interpolation_Interpolation:_Join:_Left_Left Margin:_Left margin:_Legend_Legend text default_Length %d:_Length of data preview:_Length of information view:_Length:_Line Width:_Line attribute of focus frame:_Line width:_Line:_Load_Load files on redraw_Load graph_Load settings_Log power_Lorentz_Mark_Mark:_Mask_Math_Math Transformation_Math X:_Math Y:_Math:_Max:_Maximum number of data on redraw:_Merge_Min:_Miscellaneous_Miter:_Move_Name:_New_New graph_Ngraph shell_Num:_Numbering_Numbering:_Objects_Option:_PS file_Paper:_Parabola_Path_Path:_Pieslice_Plot_Point:_Points:_Position_Position:_PostScript Version:_Preference_Preserve line width and style_Profile:_Pt:_R axis_Raw_Read step:_Recent data_Recent graphs_Rectangle_Ref:_Remark:_Result_Right_Rotate_Ruler_SVG Version:_SVG file_Save data_Scale_Scale:_Script file:_Script size:_Script:_Scrollbar_Section graph_Select Dir:_Show select data dialog on exporting_Sidebar_Sin_Size of completion history:_Size:_Space:_Statusbar_Step:_Stroke_Style %d:_Style:_Table_Tail:_Text_Text:_Through_Toolbox_Top_Top Margin:_Top margin:_Type:_U axis_Use opacity_Vertical center_View_Viewer_Wave length:_Wave width:_Web browser:_Weight:_Width %d:_Width:_X axis_X axis:_X column:_X math_X math:_X smooth:_Y axis_Y axis:_Y column:_Y math_Y math:_Y smooth:_Zoom:`%s' Overwrite existing file?aliasalternative fontsangle1angle2arcarrowautoaxaxisaybar_fill_xbar_fill_ybar_solid_fill_xbar_solid_fill_ybar_xbar_ybasebeginbevelbothbsplinebspline_closecentercolorcross _Gaugecurvedashdatadata _Preview:data defaultdefaultdefault _Window configdescriptiondiagonaldirdirectiondirectorydotdot 2-dashdot dashdraw _Orderdraw _X griddraw _Y griddrawing %s (%.1f%%)drawobjdriverduplicate _Behindenderrorerror, a parameter cannot be used in a user function or a constant definition.error, calculation error.error, cannot allocate enough memory.error, invalid parameter.error, the constant is already defined.error, the function cannot be used in a user function or a constant definition.error, unknown error.error, unknown function.errorbar_xerrorbar_yevaluationeven_odd_ruleexpfilefill _Rule:finalfitfit loadfit saveflip _Horizontallyflip _Verticallyfontfullgraygridheighthorizontalincinclude _Data fileinclude _Merge fileinverseleftlegend arclegend gausslegend linelegend marklegend rectanglelegend textlenlineline widthlinearloadloadprmlogmarkmark selectionmathmath textmaxmergeminmitermulti selectnameno _Zerononenormal1normal2numoblique1oblique2output dataoutput imagepagepaper _Height:paper _Width:paper _Zoom:parallel1parallel2pathpieslicepointpointspolypolygonpolygon_solid_fillpowprintptrectanglerectangle_fillrectangle_solid_fillrelativerightrotate 9_0 degree counter-clockwiserotate _90 degree clockwiseroundsavesave as default (_Graph)save as default (_Settings)save defaultshift (_N):shift (_P):short dashsingle selectsizeskipsolidsplinespline_closestaircase_xstaircase_ystepsyntax error, constant cannot be defined in a function definition.syntax error, function definition cannot be nested.syntax error, invalid function definition.syntax error, unexpected end of equation, expecting ')'.syntax error, unexpected end of equation, expecting ']'.syntax error, unexpected end of equation, expecting '}'.syntax error, unexpected end of equation.syntax error, unexpected operator.syntax error, unexpected token.syntax error, wrong number of arguments.texttextdefaulttoptypeunchangeuse _External previeweruserwidthwinding_rulezoomProject-Id-Version: Ngraph-gtk 6.03.48 Report-Msgid-Bugs-To: ZXB01226@nifty.com POT-Creation-Date: 2013-11-14 18:24+0900 PO-Revision-Date: 2013-07-17 11:18+0900 Last-Translator: Ito Hiroyuki Language-Team: Ito Hiroyuki Language: ja MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %a 曜日の省略名. %A 曜日. %b 月の省略名. %B 月の完全な名前. %c %a %b %e %T %Y と同等. %C 世紀 (西暦年の上 2 桁). %d 月内通算日 (01 から 31). %e 月内通算日 (1 から 31). %F %Y-%m-%d と同等. %H 24 時間表記での時 (00 から 23). %I 14 時間表記での時 (01 から 12). %j 年の初めから通算の日数 (001 から 366). %k 24 時間表記での時 (0 から 23). %l 12 時間表記での時 (1 から 12). %m 月 (01 から 12). %M 分 (00 から 59). %n 改行. %p "AM" または "PM". %P "am" または "pm". %r %I:%M:%S %p と同等. %R %H:%M と同等. %S 秒 (00 から 60). %T %H:%M:%S と同等. %u 週の何番目の日か。月曜日を 1 とする (1 から 7). %w 週の何番目の日か。日曜日を 0 とする (0 から 6). %y 西暦の下2桁 (世紀部分を含まない年) (00 から 99). %Y 西暦年. %+ %a %b %e %T GMT %Y と同等. %% '%' 文字.%s エラーの起きた場所: %s%s ファイル (*.%s)二点鎖線動作Axis WindowをアクティブにするCoordinate WindowをアクティブにするData WindowをアクティブにするInformation WindowをアクティブにするLegend WindowをアクティブにするMerge Windowをアクティブにするデータ追加データの追加合成ファイルの追加アドインスクリプトスクリプト設定スクリプト交差位置(_P):フォント別名が既に存在します.位置合わせ全てのファイル代替フォント代替フォント円矢印軸軸 %d %s_X 軸:_Y 軸:軸選択軸の選択 (+SHIFT:複数選択 / +CONTROL:水平/垂直移動 +SHIFT:微動)軸トリミング軸スケールのトリミング (+SHIFT:微動)軸基線の色目盛線の色目盛数字の色軸基線太字Cairo EMF 出力Cairo EPS 出力Cairo PDF 出力Cairo PNG 出力Cairo PS 出力Cairo SVG 出力クリアスケールのクリアビューアのクリアグラフのクリアクリップパスを閉じる色色 1色 2確認EMF としてクリップボードにコピー作成交差グラフを作成フレームグラフを作成方眼グラフを作成交差グラフ交差グラフ現在のディレクトリ:任意データ選択データ %dデータの選択データの保存新規作成データは移動されました.プロファイル '%s' を削除しますか?方向方向:描画X 描画範囲軸基線描画(_B)ビューアに描画描画中描画中ドライバエラーエラー:データ評価データ評価データ点の評価データ評価中データ評価中実行中 `%.128s'.EPS ファイルにエクスポート合成ファイルの保存PDF ファイルにエクスポートPNG ファイルにエクスポートPostScript ファイルにエクスポートSVG ファイルにエクスポートEMF にエクスポート外部ドライバ外部ドライバ出力外部ドライバ設定外部ドライバ外部プログラム外部ビューア塗りつぶし塗りつぶし色ルールフィット %dフィット結果フォントフォントフォーマットフレームグラフフレームグラフ方眼グラフ合成ファイルの保存目盛線ガウス関数ガウス関数高さ(_H):幅(_W):グリッド %d%s に 'Ngraph.ini' をインストールしますか?斜体ジョインリーガル L (355.60x215.90)リーガル P (215.90x355.60)レジェンドガウス関数/ローレンツ関数/双曲線/三角関数 %dLegend選択Legend の選択 (+SHIFT:複数選択 / +CONTROL:水平/垂直移動 +SHIFT:微動)Legend, 軸の選択 (+SHIFT:複数選択 / +CONTROL:水平/垂直移動 +SHIFT:微動)円 %d直線 %dマーク %d矩形 %dテキスト %dレター L (279.40x215.90)レター P (215.90x279.40)行線種(_S):線種NGPファイルの読み込みNGPファイルを開くグラフの読込読込中 `%.128s'.ベキ形式(ログ)MJD合成ファイル作成中データファイル作成中データファイル作成中マーク変換式の一括入力合成 %dその他データの移動はキャンセルされました.交差グラフの新規作成 (+SHIFT:微動 +CONTROL: 縦横を整数比にする)フレームグラフの新規作成 (+SHIFT:微動 +CONTROL:縦横を整数比にする)円の新規作成 (+SHIFT:微動 +CONTROL:真円または縦横が整数比の楕円)ガウス関数等の新規作成 (+SHIFT:微動 +CONTROL:縦横を整数比にする)マークの新規作成 (+SHIFT:微動)パスの新規作成 (+SHIFT:微動 +CONTROL:角度をスナップ)矩形の新規作成 (+SHIFT:微動 +CONTROL:正方形または縦横が整数比の矩形)テキストの新規作成 (+SHIFT:微動)方眼グラフの新規作成 (+SHIFT:微動 +CONTROL:縦横を整数比にする)単体軸の新規作成 (+SHIFT:微動 +CONTROL:角度をスナップ)Ngraph は理工系学生、研究者、技術者のために作られた2次元グラフ作成プログラムです。Ngraph.ini をコピーできませんでした.Ngraph.ini が見つかりません.Ngraph.ini に書き込めませんでした.設定がありません.ゼロ非表示目盛数字オブジェクト開くファイルを開くファイルを開く既存のプロファイルに上書きしますか?P_DF ファイルP_NG ファイルパス色の選択フォント別名を指定してください.ドライバを指定してください.スクリプトの説明を設定してください.スクリプトファイル名を設定してください.スクリプト名を設定してください.プロファイルを設定してください.選択選択位置印刷印刷プレビュー印刷エラー: %s印刷中質問範囲矩形NGPファイル保存NGPファイルの保存Ngraph.ngp として保存別名で保存グラフの保存保存中 `%.128s'.スケールスケールundoスケールズームスケールクリア(_C)スケールアンドゥ(_U)スケールズーム(_Z)軸スケール設定中データ検索中方眼グラフ方眼グラフプログラム選択変換式の一括入力設定ファイルが見つかりません.単体軸単一軸(_A)単体軸シングルウィンドウモードサイズ外部ドライバに出力中外部ビューアに出力中ストロークストローク色スタイルテキストプロファイル '%s' は削除されました.プロファイル '%s' は存在しません.プロファイル '%s' は保存されました.ファイルに不正な UTF-8 文字列が含まれています.このグラフは変更されています. 保存しますか?シングルウィンドウモード表示の切り替え軸トリミングタイプスケール設定のundo新規グラフユーザ定義ビューアビューアズームビューアのズームイン (+CONTROL:ズームアウト +SHIFT:センタリング)波型高さ(_H):幅(_W):X:%.2f Y:%.2f %s%sタイプ:%-2dビューアズーム追加(_A)+追加(_A)アドイン(_A)アドイン設定(_A)アドイン設定(_A)アドイン(_A)交差軸(_A):フォント別名(_A):位置合わせ(_A)位置合わせ(_A):全て(_A)全てクリア(_A)開始角(_A):円弧角(_A):アンチエイリアス(_A):全てに適用(_A)円(_A)長さ(_A):幅(_A):矢印(_A):自動スケール(_A):オートスケール余白(_A):軸(_A)背景色(_B)背景色(_B):軸基線(_B)開始点(_B):下端揃え(_B)CSV形式カレントディレクトリを移動(_C)"カレントディレクトリを移動"をチェック(_C)子ウィンドウのサイズと位置(_C)Information 表示をクリア(_C)クリップ(_C)クリップボード (EMF) (_C) パスを閉じる(_C)色 1(_C):色 2(_C):色2(_C):色(_C):コマンドツールバー(_C)収束(%) (_C):テキストをパスに変換(_C)_Coordinate 表示:設定のコピー(_C)交差グラフ(_C)現在のディレクトリ(_C)曲線(_C):データ(_D)データファイル初期状態(_D)日時書式(_D):微分式指定(_D)説明(_D):多項式次元(_D):ディレクトリ(_D):方向(_D):分割数(_D):分割数(_D):描画(_D)描画順(_D)ドライバ(_D):複製(_D)E_MF ファイル_EPS ファイル編集(_E)エディター(_E):展開ディレクトリ(_E):データファイルの展開(_E)データファイルの展開(データ込 NGP ファイル) (_E)画像にエクスポート(_E)拡張子(_E):外部ドライバ設定(_E)外部ビューアー設定(_E)外部ビューア(_E)ファイル(_F)ファイル名(_F):塗りつぶし(_F)最終行(_F):フィット(_F):反転(_F)フォーカス(_F)フォント(_F)フォント別名(_F)フォント(_F):フィット式(_F):小数部桁数(_F):フレームグラフ(_F)_GRA ファイル目盛線(_G)位置(_G):ガウス関数(_G)ウィンドウのサイズと位置(_G)グラフ(_G)グリッド(_G)グリッド(_G):先頭スキップ行(_H):先頭(_H):高さ(_H):ヘルプ(_H)ヘルプ・ブラウザ(_H):中央揃え(縦)(_H)区切文字(_I):パス情報無視(_I)増分(_I):データファイルを含める(_I)合成ファイルを含める(_I)_Information 表示:挿入(_I)補完(_I)補完法(_I):ジョイン(_J):左揃え(_L)左マージン(_L):左マージン(_L):レジェンド(_L)レジェンドテキスト初期状態(_T)長さ %d(_L):データプレビューの行数(_L):information 表示の行数(_L):長さ(_L):線幅(_W):フォーカスフレームの線種(_L):線幅(_W):新規行(_L):読込(_L)再描画時にデータファイル読み込み(_L)開く(_L)ファイルから設定読込(_L)ベキ形式(ログ)(_L)ローレンツ関数(_L)マーク(_M)マーク(_M):マスク(_M)変換数式(_M)変換式の一括入力(_M)X 変換式(_M):Y 変換式(_M):式(_M):最大値(_M):再描画時の最大データ数(_M):合成(_M)最小値(_M):その他(_M)マイター(_M):移動(_M)名称(_N):新規作成(_N)新規作成(_N)Ngraphシェル(_N)個数(_N):目盛数字(_N)位置(_N):オブジェクト(_O)オプション(_O):_PS ファイル用紙(_P):双曲線(_P)パス(_P)パス情報(_P):扇型(_P)プロット(_P)ポイント(_P):座標(_P):位置(_P)位置(_P):ポストスクリプトレベル(_P):設定(_P)線幅と線種を保持する(_S)プロフィール(_P):ポイント(_P):_R 軸_Raw読込ステップ行(_S):最近使用したデータ(_R)最近使用したグラフ(_R)矩形(_R)参照軸(_R):コメント行(_R):フィット結果(_R)右揃え(_R)回転(_R)ルーラー(_R)_SVG バージョン:_SVG ファイルデータの保存(_S)スケール(_S)スケール法(_S):スクリプトファイル(_S):スクリプトサイズ(_S):スクリプトサイズ(_S):スクロールバー(_S)方眼グラフ(_S)ディレクトリ選択(_S):エクスポート時にデータ選択ダイアログを表示(_S) サイドバー(_S)三角関数(_S)補完履歴のサイズ(_S):サイズ(_S):文字間(_S):ステータスバー(_S)間隔(_S):ストローク(_S)線種 %d(_S):線種(_S):表(_T) 後続(_T):テキスト(_T)テキスト(_T):通過点(_T)ツールボックス(_T)上端揃え(_T)上マージン(_T):上マージン(_T):タイプ(_T):_U 軸不透明度を使う(_U)中央揃え(横)(_V)表示(_V)ビューア(_V)長さ(_W):線幅(_W):ウェブ・ブラウザ(_W):重み付け(_W):線幅 %d(_W):幅(_W):_X 軸_X 軸:_X カラム:_X 変換式_X 変換数式:_X 隣接平均:_Y 軸_Y 軸:_Y カラム:_Y 変換式_Y 変換数式:_Y 隣接平均:ズーム(_Z):'%s' というファイルは既に存在します. 上書きしてもよろしいですか?別名代替フォント開始角円弧角円矢印自動x軸軸y軸塗りつぶし横棒塗りつぶし縦棒実横棒実縦棒空横棒空縦棒ファイル名のみ始点斜結合両方Bスプライン閉Bスプライン中央色クロスゲージ(_G)曲線鎖線データデータプレビュー(_P):データファイル初期状態デフォルト初期状態のウィンドウ配置(_W)説明対角線方向方向現在のディレクトリ点線一点二鎖線一点鎖線描画順(_O)_X グリッド描画_Y グリッド描画%s 描画中 (%.1f%%)描画オブジェクトドライバ直後に複製(_B)終点エラー数式エラー, パラメータはユーザー関数中や定数宣言では使用できません.エラー, 計算エラー.エラー, 十分なメモリーを確保できませんでした.数式エラー, 不正なパラメータです.数式エラー, この定数は既に存在します.数式エラー, この関数はユーザー関数中や定数宣言では使用できません.数式エラー, 未知のエラーです.数式エラー, 未定義の関数です.横誤差棒縦誤差棒データ評価偶奇指数関数ファイルルール(_R):最終行フィットフィット設定読込フィット設定保存水平反転(_H)垂直反転(_V)フォントフルパスグレイスケールグリッド高さ水平増分データファイルを含める(_D)合成ファイルを含める(_M)逆数左円ガウス関数等直線マーク矩形テキスト長さ直線線幅線形読込PRM ファイル読込対数マークマーク選択変換数式数式入力最大合成最小角結合複数選択名前ゼロ非表示(_Z)なし軸と直交1軸と直交2データ数軸と斜交1軸と斜交2データ出力画像ファイル出力用紙用紙高さ(_H):用紙幅(_W):拡大率(_Z):軸と平行1軸と平行2パス扇型小数点点数多項式多角形実多角形べき関数印刷ポイント矩形塗りつぶし矩形実矩形相対パス右9_0° 反時計回り回転_90° 時計回り回転丸結合保存初期状態としてセーブ(グラフ)(_G)初期状態としてセーブ(各種設定)(_S)初期状態としてセーブ垂直シフト量(_N):並行シフト量(_P):短鎖線単一選択サイズスキップ実線スプライン閉スプライン縦階段横階段ステップ構文エラー, 関数定義内で定数の宣言は出来ません.構文エラー, 関数定義はネストできません.構文エラー, 不正な関数定義です.構文エラー, 予期しない数式の終わりです. ')' がありません.構文エラー, 予期しない数式の終わりです. ']' がありません.構文エラー, 予期しない数式の終わりです. '}' がありません.構文エラー, 予期しない数式の終わりです.構文エラー, 予期しない演算子です.構文エラー, 予期しないトークンです.構文エラー, 引数の数が間違っています.テキストレジェンドテキスト初期状態上タイプ変更しない外部プログラムを使用する(_E)ユーザ定義幅ワインディングズームngraph-gtk-6.06.13/ABOUT-NLS0000644000175000017500000026713312241364012012110 000000000000001 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. 1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. Installers may use special options at configuration time for changing the default behaviour. The command: ./configure --disable-nls will _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl' library and will decide to use it. If not, you may have to to use the `--with-libintl-prefix' option to tell `configure' where to look for it. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.2 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. If you happen to have the `LC_ALL' or some other `LC_xxx' environment variables set, you should unset them before setting `LANG', otherwise the setting of `LANG' will not have the desired effect. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `coordinator@translationproject.org' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skills are praised more than programming skills, here. 1.4 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of June 2010. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca +--------------------------------------------------+ a2ps | [] [] | aegis | | ant-phone | | anubis | | aspell | [] [] | bash | | bfd | | bibshelf | [] | binutils | | bison | | bison-runtime | [] | bluez-pin | [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] [] | cpio | | cppi | | cpplib | [] | cryptsetup | | dfarc | | dialog | [] [] | dico | | diffutils | [] | dink | | doodle | | e2fsprogs | [] | enscript | [] | exif | | fetchmail | [] | findutils | [] | flex | [] | freedink | | gas | | gawk | [] [] | gcal | [] | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] [] | gettext-tools | [] [] | gip | [] | gjay | | gliv | [] | glunarclock | [] [] | gnubiff | | gnucash | [] | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | | gold | | gpe-aerial | | gpe-beam | | gpe-bluetooth | | gpe-calendar | | gpe-clock | [] | gpe-conf | | gpe-contacts | | gpe-edit | | gpe-filemanager | | gpe-go | | gpe-login | | gpe-ownerinfo | [] | gpe-package | | gpe-sketchbook | | gpe-su | [] | gpe-taskmanager | [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | [] [] | gsasl | | gss | | gst-plugins-bad | [] | gst-plugins-base | [] | gst-plugins-good | [] | gst-plugins-ugly | [] | gstreamer | [] [] [] | gtick | | gtkam | [] | gtkorphan | [] | gtkspell | [] [] [] | gutenprint | | hello | [] | help2man | | hylafax | | idutils | | indent | [] [] | iso_15924 | | iso_3166 | [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | | iso_639 | [] [] [] [] | iso_639_3 | | jwhois | | kbd | | keytouch | [] | keytouch-editor | | keytouch-keyboa... | [] | klavaro | [] | latrine | | ld | [] | leafpad | [] [] | libc | [] [] | libexif | () | libextractor | | libgnutls | | libgpewidget | | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | [] | libidn | | lifelines | | liferea | [] [] | lilypond | | linkdr | [] | lordsawar | | lprng | | lynx | [] | m4 | | mailfromd | | mailutils | | make | | man-db | | man-db-manpages | | minicom | | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | | psmisc | | pspp | [] | pwdutils | | radius | [] | recode | [] [] | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] [] | sed | [] [] | sharutils | [] [] | shishi | | skencil | | solfege | | solfege-manual | | soundtracker | | sp | | sysstat | | tar | [] | texinfo | | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] [] | wyslij-po | | xchat | [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] | +--------------------------------------------------+ af am an ar as ast az be be@latin bg bn_IN bs ca 6 0 1 2 3 19 1 10 3 28 3 1 38 crh cs da de el en en_GB en_ZA eo es et eu fa +-------------------------------------------------+ a2ps | [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] () | anubis | [] [] | aspell | [] [] [] [] [] | bash | [] [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] | bison | [] [] | bison-runtime | [] [] [] [] | bluez-pin | [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] [] [] | cflow | [] [] | clisp | [] [] [] [] | coreutils | [] [] [] [] | cpio | | cppi | | cpplib | [] [] [] | cryptsetup | [] | dfarc | [] [] [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] | dink | [] [] [] | doodle | [] | e2fsprogs | [] [] [] | enscript | [] [] [] | exif | () [] [] | fetchmail | [] [] () [] [] [] | findutils | [] [] [] | flex | [] [] | freedink | [] [] [] | gas | [] | gawk | [] [] [] | gcal | [] | gcc | [] [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] [] | gip | [] [] [] [] | gjay | [] | gliv | [] [] [] | glunarclock | [] [] | gnubiff | () | gnucash | [] () () () () | gnuedu | [] [] | gnulib | [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] | gpe-aerial | [] [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] | gpe-conf | [] [] [] | gpe-contacts | [] [] [] | gpe-edit | [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] | gpe-taskmanager | [] [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] () [] [] [] | gprof | [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] | grub | [] [] | gsasl | [] | gss | | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] () [] | gtkam | [] [] () [] [] | gtkorphan | [] [] [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | [] [] [] | hello | [] [] [] [] | help2man | [] | hylafax | [] [] | idutils | [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] [] [] [] () [] [] [] () | iso_3166_2 | () | iso_4217 | [] [] [] () [] [] | iso_639 | [] [] [] [] () [] [] | iso_639_3 | [] | jwhois | [] | kbd | [] [] [] [] [] | keytouch | [] [] | keytouch-editor | [] [] | keytouch-keyboa... | [] | klavaro | [] [] [] [] | latrine | [] () | ld | [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | [] [] | libgphoto2 | [] () | libgphoto2_port | [] () [] | libgsasl | | libiconv | [] [] [] [] [] | libidn | [] [] [] | lifelines | [] () | liferea | [] [] [] [] [] | lilypond | [] [] [] | linkdr | [] [] [] | lordsawar | [] | lprng | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailfromd | | mailutils | [] | make | [] [] [] | man-db | | man-db-manpages | | minicom | [] [] [] [] | mkisofs | | myserver | | nano | [] [] [] | opcodes | [] [] | parted | [] [] | pies | | popt | [] [] [] [] [] | psmisc | [] [] [] | pspp | [] | pwdutils | [] | radius | [] | recode | [] [] [] [] [] [] | rosegarden | () () () | rpm | [] [] [] | rush | | sarg | | screem | | scrollkeeper | [] [] [] [] [] | sed | [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | | skencil | [] () [] | solfege | [] [] [] | solfege-manual | [] [] | soundtracker | [] [] [] | sp | [] | sysstat | [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] | tin | [] [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] | vice | () () | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] | wyslij-po | | xchat | [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] | +-------------------------------------------------+ crh cs da de el en en_GB en_ZA eo es et eu fa 5 64 105 117 18 1 8 0 28 89 18 19 0 fi fr ga gl gu he hi hr hu hy id is it ja ka kn +----------------------------------------------------+ a2ps | [] [] [] [] | aegis | [] [] | ant-phone | [] [] | anubis | [] [] [] [] | aspell | [] [] [] [] | bash | [] [] [] [] | bfd | [] [] [] | bibshelf | [] [] [] [] [] | binutils | [] [] [] | bison | [] [] [] [] | bison-runtime | [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] | cflow | [] [] [] | clisp | [] | coreutils | [] [] [] [] [] | cpio | [] [] [] [] | cppi | [] [] | cpplib | [] [] [] | cryptsetup | [] [] [] | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] [] [] [] | dink | [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] | freedink | [] [] [] | gas | [] [] | gawk | [] [] [] [] () [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] | gip | [] [] [] [] [] [] | gjay | [] | gliv | [] () | glunarclock | [] [] [] [] | gnubiff | () [] () | gnucash | () () () () () [] | gnuedu | [] [] | gnulib | [] [] [] [] [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] [] | gpe-aerial | [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] [] [] | gpe-calendar | [] [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] [] [] | gpe-contacts | [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] [] | gpe-go | [] [] [] [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] [] [] [] [] | gprof | [] [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] [] | grub | [] [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] | gtkorphan | [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] | gutenprint | [] [] [] [] | hello | [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] [] | indent | [] [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | () [] [] [] | iso_4217 | [] () [] [] [] [] | iso_639 | [] () [] [] [] [] [] [] [] | iso_639_3 | () [] [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] [] [] [] [] [] | keytouch-editor | [] [] [] [] [] | keytouch-keyboa... | [] [] [] [] [] | klavaro | [] [] | latrine | [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] () | libc | [] [] [] [] [] | libexif | [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] [] | libidn | [] [] [] [] | lifelines | () | liferea | [] [] [] [] | lilypond | [] [] | linkdr | [] [] [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] [] [] | m4 | [] [] [] [] [] [] | mailfromd | | mailutils | [] [] | make | [] [] [] [] [] [] [] [] [] | man-db | [] [] | man-db-manpages | [] | minicom | [] [] [] [] [] | mkisofs | [] [] [] [] | myserver | | nano | [] [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] [] | pies | | popt | [] [] [] [] [] [] [] [] [] | psmisc | [] [] [] | pspp | | pwdutils | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () () () () | rpm | [] [] | rush | | sarg | [] | screem | [] [] | scrollkeeper | [] [] [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] | shishi | [] | skencil | [] | solfege | [] [] [] [] | solfege-manual | [] [] | soundtracker | [] [] | sp | [] () | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux-ng | [] [] [] [] [] [] | vice | () () () | vmm | [] | vorbis-tools | [] | wastesedge | () () | wdiff | [] | wget | [] [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] | +----------------------------------------------------+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne +-----------------------------------------------+ a2ps | [] | aegis | | ant-phone | | anubis | [] [] | aspell | [] | bash | | bfd | | bibshelf | [] [] | binutils | | bison | [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] | cpio | | cppi | | cpplib | | cryptsetup | | dfarc | [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] | dink | | doodle | | e2fsprogs | | enscript | | exif | [] | fetchmail | | findutils | | flex | | freedink | [] | gas | | gawk | | gcal | | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] | gettext-tools | [] | gip | [] [] | gjay | | gliv | | glunarclock | [] | gnubiff | | gnucash | () () () () | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | [] | gold | | gpe-aerial | [] | gpe-beam | [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] | gpe-contacts | [] [] | gpe-edit | [] | gpe-filemanager | [] [] | gpe-go | [] [] [] | gpe-login | [] | gpe-ownerinfo | [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] | gpe-timesheet | [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | | gsasl | | gss | | gst-plugins-bad | [] [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | | gtick | | gtkam | [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | | hello | [] [] [] | help2man | | hylafax | | idutils | | indent | | iso_15924 | [] [] | iso_3166 | [] [] () [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] [] | iso_639 | [] [] | iso_639_3 | [] | jwhois | [] | kbd | | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | klavaro | [] | latrine | [] | ld | | leafpad | [] [] [] | libc | [] | libexif | | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | | libidn | | lifelines | | liferea | | lilypond | | linkdr | | lordsawar | | lprng | | lynx | | m4 | | mailfromd | | mailutils | | make | [] | man-db | | man-db-manpages | | minicom | [] | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | [] [] [] | psmisc | | pspp | | pwdutils | | radius | | recode | | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] | sed | | sharutils | | shishi | | skencil | | solfege | [] | solfege-manual | | soundtracker | | sp | | sysstat | [] | tar | [] | texinfo | [] | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] | wyslij-po | | xchat | [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +-----------------------------------------------+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr +---------------------------------------------------+ a2ps | [] [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] [] | anubis | [] [] [] | aspell | [] [] [] [] [] | bash | [] [] | bfd | [] | bibshelf | [] [] | binutils | [] [] | bison | [] [] [] | bison-runtime | [] [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] () | buzztard | [] [] | cflow | [] | clisp | [] [] | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cppi | [] | cpplib | [] | cryptsetup | [] | dfarc | [] | dialog | [] [] [] [] | dico | [] | diffutils | [] [] [] [] [] [] | dink | () | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | exif | [] [] [] () [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] [] | freedink | [] [] | gas | | gawk | [] [] [] [] | gcal | | gcc | [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] | gip | [] [] [] [] [] | gjay | | gliv | [] [] [] [] [] [] | glunarclock | [] [] [] [] [] | gnubiff | [] () | gnucash | [] () () () | gnuedu | [] | gnulib | [] [] [] [] | gnunet | | gnunet-gtk | | gnutls | [] [] | gold | | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] [] | gpe-contacts | [] [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] [] | gphoto2 | [] [] [] [] [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] | gramadoir | [] [] | grep | [] [] [] [] | grub | [] [] [] | gsasl | [] [] [] [] | gss | [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] [] [] | gutenprint | [] [] | hello | [] [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] [] [] [] | iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | iso_3166_2 | [] [] [] | iso_4217 | [] [] [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] [] [] | keytouch-editor | [] [] [] | keytouch-keyboa... | [] [] [] | klavaro | [] [] | latrine | [] [] | ld | | leafpad | [] [] [] [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] | libgphoto2_port | [] [] [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] | libidn | [] [] | lifelines | [] [] | liferea | [] [] [] [] [] () () [] | lilypond | [] | linkdr | [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] | make | [] [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] [] | minicom | [] [] [] [] | mkisofs | [] [] [] | myserver | | nano | [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | pies | [] | popt | [] [] [] [] | psmisc | [] [] [] | pspp | [] [] | pwdutils | [] | radius | [] [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () | rpm | [] [] [] | rush | [] [] | sarg | | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | skencil | [] [] | solfege | [] [] [] [] | solfege-manual | [] [] [] | soundtracker | [] | sp | | sysstat | [] [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] [] | vice | [] | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +---------------------------------------------------+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ a2ps | [] [] [] [] [] | 27 aegis | [] | 9 ant-phone | [] [] [] [] | 9 anubis | [] [] [] [] | 15 aspell | [] [] [] | 20 bash | [] [] [] | 12 bfd | [] | 6 bibshelf | [] [] [] | 16 binutils | [] [] | 8 bison | [] [] | 12 bison-runtime | [] [] [] [] [] [] | 29 bluez-pin | [] [] [] [] [] [] [] [] | 37 bombono-dvd | [] | 4 buzztard | [] | 7 cflow | [] [] [] | 9 clisp | | 10 coreutils | [] [] [] [] | 22 cpio | [] [] [] [] [] [] | 13 cppi | [] [] | 5 cpplib | [] [] [] [] [] [] | 14 cryptsetup | [] [] | 7 dfarc | [] | 9 dialog | [] [] [] [] [] [] [] | 30 dico | [] | 2 diffutils | [] [] [] [] [] [] | 30 dink | | 4 doodle | [] [] | 7 e2fsprogs | [] [] [] | 11 enscript | [] [] [] [] | 17 exif | [] [] [] | 16 fetchmail | [] [] [] | 17 findutils | [] [] [] [] [] | 20 flex | [] [] [] [] | 15 freedink | [] | 10 gas | [] | 4 gawk | [] [] [] [] | 18 gcal | [] [] | 5 gcc | [] [] [] | 7 gettext-examples | [] [] [] [] [] [] [] | 34 gettext-runtime | [] [] [] [] [] [] [] | 29 gettext-tools | [] [] [] [] [] [] | 22 gip | [] [] [] [] | 22 gjay | [] | 3 gliv | [] [] [] | 14 glunarclock | [] [] [] [] [] | 19 gnubiff | [] [] | 4 gnucash | () [] () [] () | 10 gnuedu | [] [] | 7 gnulib | [] [] [] [] | 16 gnunet | [] | 1 gnunet-gtk | [] [] [] | 5 gnutls | [] [] [] | 10 gold | [] | 4 gpe-aerial | [] [] [] | 18 gpe-beam | [] [] [] | 19 gpe-bluetooth | [] [] [] | 13 gpe-calendar | [] [] [] [] | 12 gpe-clock | [] [] [] [] [] | 28 gpe-conf | [] [] [] [] | 20 gpe-contacts | [] [] [] | 17 gpe-edit | [] [] [] | 12 gpe-filemanager | [] [] [] [] | 16 gpe-go | [] [] [] [] [] | 25 gpe-login | [] [] [] | 11 gpe-ownerinfo | [] [] [] [] [] | 25 gpe-package | [] [] [] | 13 gpe-sketchbook | [] [] [] | 20 gpe-su | [] [] [] [] [] | 30 gpe-taskmanager | [] [] [] [] [] | 29 gpe-timesheet | [] [] [] [] [] | 25 gpe-today | [] [] [] [] [] [] | 30 gpe-todo | [] [] [] [] | 17 gphoto2 | [] [] [] [] [] | 24 gprof | [] [] [] | 15 gpsdrive | [] [] [] | 11 gramadoir | [] [] [] | 11 grep | [] [] [] | 10 grub | [] [] [] | 14 gsasl | [] [] [] [] | 14 gss | [] [] [] | 11 gst-plugins-bad | [] [] [] [] | 26 gst-plugins-base | [] [] [] [] [] | 24 gst-plugins-good | [] [] [] [] | 24 gst-plugins-ugly | [] [] [] [] [] | 29 gstreamer | [] [] [] [] | 22 gtick | [] [] [] | 13 gtkam | [] [] [] | 20 gtkorphan | [] [] [] | 14 gtkspell | [] [] [] [] [] [] [] [] [] | 45 gutenprint | [] | 10 hello | [] [] [] [] [] [] | 21 help2man | [] [] | 7 hylafax | [] | 5 idutils | [] [] [] [] | 17 indent | [] [] [] [] [] [] | 30 iso_15924 | () [] () [] [] | 16 iso_3166 | [] [] () [] [] () [] [] [] () | 53 iso_3166_2 | () [] () [] | 9 iso_4217 | [] () [] [] () [] [] | 26 iso_639 | [] [] [] () [] () [] [] [] [] | 38 iso_639_3 | [] () | 8 jwhois | [] [] [] [] [] | 16 kbd | [] [] [] [] [] | 15 keytouch | [] [] [] | 16 keytouch-editor | [] [] [] | 14 keytouch-keyboa... | [] [] [] | 14 klavaro | [] | 11 latrine | [] [] [] | 10 ld | [] [] [] [] | 11 leafpad | [] [] [] [] [] [] | 33 libc | [] [] [] [] [] | 21 libexif | [] () | 7 libextractor | [] | 1 libgnutls | [] [] [] | 9 libgpewidget | [] [] [] | 14 libgpg-error | [] [] [] | 9 libgphoto2 | [] [] | 8 libgphoto2_port | [] [] [] [] | 14 libgsasl | [] [] [] | 13 libiconv | [] [] [] [] | 21 libidn | () [] [] | 11 lifelines | [] | 4 liferea | [] [] [] | 21 lilypond | [] | 7 linkdr | [] [] [] [] [] | 17 lordsawar | | 1 lprng | [] | 3 lynx | [] [] [] [] | 17 m4 | [] [] [] [] | 19 mailfromd | [] [] | 3 mailutils | [] | 5 make | [] [] [] [] | 21 man-db | [] [] [] | 8 man-db-manpages | | 4 minicom | [] [] | 16 mkisofs | [] [] | 9 myserver | | 0 nano | [] [] [] [] | 21 opcodes | [] [] [] | 11 parted | [] [] [] [] [] | 15 pies | [] [] | 3 popt | [] [] [] [] [] [] | 27 psmisc | [] [] | 11 pspp | | 4 pwdutils | [] [] | 6 radius | [] [] | 9 recode | [] [] [] [] | 28 rosegarden | () | 0 rpm | [] [] [] | 11 rush | [] [] | 4 sarg | | 1 screem | [] | 3 scrollkeeper | [] [] [] [] [] | 27 sed | [] [] [] [] [] | 30 sharutils | [] [] [] [] [] | 22 shishi | [] | 3 skencil | [] [] | 7 solfege | [] [] [] [] | 16 solfege-manual | [] | 8 soundtracker | [] [] [] | 9 sp | [] | 3 sysstat | [] [] | 15 tar | [] [] [] [] [] [] | 23 texinfo | [] [] [] [] [] | 17 tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux-ng | [] [] [] [] | 20 vice | () () | 1 vmm | [] | 4 vorbis-tools | [] | 6 wastesedge | | 2 wdiff | [] [] | 7 wget | [] [] [] [] [] | 26 wyslij-po | [] [] | 8 xchat | [] [] [] [] [] [] | 36 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If June 2010 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://translationproject.org/extra/matrix.html'. 1.5 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `coordinator@translationproject.org' to make the `.pot' files available to the translation teams. ngraph-gtk-6.06.13/driver/0000755000175000017500000000000012241600064012220 500000000000000ngraph-gtk-6.06.13/driver/Makefile.in0000644000175000017500000004273212241364551014225 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = driver DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(ngraphconfdir)" SCRIPTS = $(bin_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(ngraphconf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ngraphconfdir = $(sysconfdir)/$(PACKAGE) ngraphconf_DATA = # gra2ps.ini Ngraph.ps gra2wmf.ini EXTRA_DIST = dir_defs.h.in ngp2.in ${ngraphconf_DATA} #bin_PROGRAMS = gra2ps gra2wmf bin_SCRIPTS = ngp2 # gra2ps_SOURCES = gra2ps.c # nodist_gra2ps_SOURCES = dir_defs.h # gra2ps_LDADD = $(GLIB_LIBS) # gra2ps_CFLAGS = $(GLIB_CFLAGS) # gra2wmf_SOURCES = gra2wmf.c wmfapi.c wmfapi.h # nodist_gra2wmf_SOURCES = dir_defs.h # gra2wmf_LDADD = $(GLIB_LIBS) # gra2wmf_CFLAGS = $(GLIB_CFLAGS) #BUILT_SOURCES = dir_defs.h CLEANFILES = ngp2 dir_defs.h all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu driver/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu driver/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-ngraphconfDATA: $(ngraphconf_DATA) @$(NORMAL_INSTALL) @list='$(ngraphconf_DATA)'; test -n "$(ngraphconfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(ngraphconfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(ngraphconfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(ngraphconfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(ngraphconfdir)" || exit $$?; \ done uninstall-ngraphconfDATA: @$(NORMAL_UNINSTALL) @list='$(ngraphconf_DATA)'; test -n "$(ngraphconfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(ngraphconfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) $(DATA) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(ngraphconfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-ngraphconfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binSCRIPTS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binSCRIPTS uninstall-ngraphconfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-binSCRIPTS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-ngraphconfDATA install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-binSCRIPTS uninstall-ngraphconfDATA # dir_defs.h: dir_defs.h.in Makefile # sh ../pathconv.sh "$(docdir)" "$(pkgdatadir)" "$(ngraphconfdir)" dir_defs.h.in ngp2: ngp2.in Makefile sh ../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" ngp2.in # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/driver/Makefile.am0000644000175000017500000000146512241111710014175 00000000000000ngraphconfdir = $(sysconfdir)/$(PACKAGE) ngraphconf_DATA = # gra2ps.ini Ngraph.ps gra2wmf.ini EXTRA_DIST = dir_defs.h.in ngp2.in ${ngraphconf_DATA} #bin_PROGRAMS = gra2ps gra2wmf bin_SCRIPTS = ngp2 # dir_defs.h: dir_defs.h.in Makefile # sh ../pathconv.sh "$(docdir)" "$(pkgdatadir)" "$(ngraphconfdir)" dir_defs.h.in ngp2: ngp2.in Makefile sh ../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" ngp2.in # gra2ps_SOURCES = gra2ps.c # nodist_gra2ps_SOURCES = dir_defs.h # gra2ps_LDADD = $(GLIB_LIBS) # gra2ps_CFLAGS = $(GLIB_CFLAGS) # gra2wmf_SOURCES = gra2wmf.c wmfapi.c wmfapi.h # nodist_gra2wmf_SOURCES = dir_defs.h # gra2wmf_LDADD = $(GLIB_LIBS) # gra2wmf_CFLAGS = $(GLIB_CFLAGS) #BUILT_SOURCES = dir_defs.h CLEANFILES = ngp2 dir_defs.h ngraph-gtk-6.06.13/driver/dir_defs.h.in0000644000175000017500000000016312241111710014470 00000000000000#define DOCDIR "DOCDIRDEF" #define DATADIR "LIBDIRDEF" #define CONFDIR "CONFDIRDEF" #define HOME_DIR ".Ngraph" ngraph-gtk-6.06.13/driver/ngp2.in0000644000175000017500000001061312241111710013332 00000000000000#! BINDIRDEF/ngraph -i # $Id: ngp2.in,v 1.15 2010-02-18 06:38:49 hito Exp $ IGN_PATH=0 AUTO_SCALE=0 OPTION="-gra" CHDIR=0 PWD=`pwd` NULL_DEVICE=/dev/null DPI=86 clear_viewer() { for i in `derive -instance draw fit` do del ${i}:0-! done if exist -q gra:viewer then del gra:viewer fi } save_image() { new gra2cairofile name=OUTPUT new gra name=OUTPUT gra2cairofile:OUTPUT:format=$1 gra2cairofile:OUTPUT:file=$2 gra2cairofile:OUTPUT:dpi=$DPI gra:OUTPUT:device=gra2cairofile:OUTPUT if exist -q gra:viewer then cpy gra:viewer,OUTPUT draw_obj left_margin top_margin zoom paper_width paper_height fi if exist -q fit:0 then fit:0-!:display=false fi gra:OUTPUT:open gra:OUTPUT:draw gra:OUTPUT:close del gra:OUTPUT del gra2cairofile:OUTPUT } save_gra() { if [ -n "$1" ] then new gra2cairofile file=$NULL_DEVICE new gra name=DUMMY gra:DUMMY:device=gra2cairofile:0 gra:DUMMY:open new gra2file name=OUTPUT file="$1" new gra name=OUTPUT if exist -q gra:viewer then cpy gra:viewer,OUTPUT draw_obj left_margin top_margin zoom paper_width paper_height fi if exist -q fit:0 then fit:0-!:display=false fi gra:OUTPUT:device=gra2file:OUTPUT gra:OUTPUT:open gra:OUTPUT:draw gra:OUTPUT:close del gra:OUTPUT del gra2file:OUTPUT gra:DUMMY:close del gra:DUMMY del gra2cairofile fi } show_usage() { echo "ngp2 version 1.10" echo "usage: ngp2 [option] ngpfile ..." echo echo " -I ignore path" echo " -a auto scale" echo " -A clear scale and auto scale" echo " -c change directory" echo " -d dpi set dot per inch" echo echo " -ps, -ps3 output PostScript level 3" echo " -ps2 output PostScript level 2" echo " -eps, -eps3 output Encapsulated PostScript level 3" echo " -eps2 output Encapsulated PostScript level 2" echo " -pdf output Portable Document Format" echo " -svg, -svg1.1 output Scalable Vector Graphics version 1.1" echo " -svg1.2 output Scalable Vector Graphics version 1.2" echo " -png output Portable Network Graphics" echo " -h, --help show this usage" echo del system } set +e new menu while true do case "$1" in -I) IGN_PATH=1 shift ;; -a) AUTO_SCALE=1 shift ;; -A) AUTO_SCALE=2 shift ;; -c) CHDIR=1 shift ;; -d) shift DPI=$1 shift ;; -h|--help) show_usage ;; -*) OPTION="$1" shift ;; *) break ;; esac done NGP_FILES=$@ if [ -z "$NGP_FILES" ] then show_usage fi for NGP_FILE in $NGP_FILES do clear_viewer if [ -f "$NGP_FILE" ] then NGP_NAME=`basename "$NGP_FILE" .ngp` PATH_NAME=`dirname $NGP_FILE` if exist -q menu:0 then menu::fullpath_ngp="$NGP_FILE" fi case "$OPTION" in -) ;; *) echo "Drawing ${NGP_FILE}." ;; esac new shell shell::shell "$NGP_FILE" del shell if [ $IGN_PATH -ne 0 ] then for i in `object file -instances` do put file:$i file=`get file:$i -field basename` done fi if [ $CHDIR -ne 0 ] then cd $PATH_NAME fi if exist -q axis:0 then if exist -q file:0 then case "$AUTO_SCALE" in 2) axis:0-!:clear axis:0-!:auto_scale:'file:0-!' ;; 1) axis:0-!:auto_scale:'file:0-!' ;; esac fi fi TMPFILE=${system:0:temp_file} case "$OPTION" in #====================================================================== # options # # $TMPFILE : temporary file (automatically deleted). # $NGP_NAME : base name of ngp file. -ps|-ps3) save_image "ps3" $NGP_NAME.ps ;; -ps2) save_image "ps2" $NGP_NAME.ps ;; -eps|-eps3) save_image "eps3" $NGP_NAME.eps ;; -eps2) save_image "eps2" $NGP_NAME.eps ;; -pdf) save_image "pdf" $NGP_NAME.pdf ;; -svg|svg1.1) save_image "svg1.1" $NGP_NAME.svg ;; -svg1.2) save_image "svg1.2" $NGP_NAME.svg ;; -png) save_image "png" $NGP_NAME.png ;; -) save_gra $TMPFILE cat $TMPFILE ;; *) save_gra "$NGP_NAME.gra" ;; #====================================================================== esac system:0:unlink_temp_file if [ $CHDIR -ne 0 ] then cd $PWD fi fi done echo if exist -q menu:0 then del menu:0 fi del system:0 exit ngraph-gtk-6.06.13/mingw/0000755000175000017500000000000012241600065012047 500000000000000ngraph-gtk-6.06.13/mingw/gtkrc0000644000175000017500000000351212241111713013022 00000000000000# gtk-icon-sizes = "gtk-menu=13,13:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32" # gtk-toolbar-icon-size = small-toolbar # disable images in buttons. I have only seen ugly delphi apps use this feature. gtk-button-images = 0 # enable/disable images in menus. most "stock" microsoft apps do not use these, except sparingly. # the office apps use them heavily, though. gtk-menu-images = 1 # use the win32 button ordering instead of the GNOME HIG one, where applicable gtk-alternative-button-order = 1 # use the win32 sort indicators direction, as in Explorer gtk-alternative-sort-arrows = 1 # Windows users do not expect the PC Speaker beeping at them when they backspace in an empty textview and stuff like that gtk-error-bell = 0 style "msw-default" { GtkWidget::interior-focus = 1 GtkOptionMenu::indicator-size = { 9, 5 } GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 } GtkSpinButton::shadow-type = in # Owen and I disagree that these should be themable #GtkUIManager::add-tearoffs = 0 #GtkComboBox::add-tearoffs = 0 GtkComboBox::appears-as-list = 1 GtkComboBox::focus-on-click = 0 GtkComboBox::add_tearoffs = 0 GtkTreeView::allow-rules = 1 GtkTreeView::expander-size = 12 GtkExpander::expander-size = 12 GtkScrolledWindow::scrollbar_spacing = 1 GtkSeparatorMenuItem::horizontal-padding = 2 engine "wimp" { } } class "*" style "msw-default" binding "ms-windows-tree-view" { bind "Right" { "expand-collapse-cursor-row" (1,1,0) } bind "Left" { "expand-collapse-cursor-row" (1,0,0) } } class "GtkTreeView" binding "ms-windows-tree-view" style "msw-combobox-thickness" = "msw-default" { xthickness = 0 ythickness = 0 GtkComboBox::appears-as-list = 0 } widget_class "*TreeView*ComboBox*" style "msw-combobox-thickness" widget_class "*ComboBox*GtkFrame*" style "msw-combobox-thickness" ngraph-gtk-6.06.13/mingw/windows_make.sed0000644000175000017500000000043712241111713015154 00000000000000s!$(libexecdir)/ngraph-gtk!$(bindir)! s!$(libdir)/ngraph-gtk!$(bindir)! s!$(datadir)/ngraph-gtk!$(datadir)! s!${datarootdir}/doc/${PACKAGE_TARNAME}!${prefix}/doc! s!$(sysconfdir)/$(PACKAGE)!$(sysconfdir)! s!$(datadir)/pixmaps/$(PACKAGE)!$(datadir)/pixmaps! s!^LIBS =!LIBS = -lwinspool ! ngraph-gtk-6.06.13/mingw/windows_demo.sed0000644000175000017500000000001712241111713015155 00000000000000s!DOCDIRDEF/!! ngraph-gtk-6.06.13/mingw/Makefile.in0000644000175000017500000003173612241364551014055 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = mingw DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = gtkrc pango.aliases windows.sh windows_demo.sed \ windows_make.sed windows_resource.rc ngraph.ico associate.bat \ echo.nsc libruby.def all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mingw/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu mingw/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/mingw/pango.aliases0000644000175000017500000000122312241111713014431 00000000000000courier = "courier new" tahoma = "tahoma,ms pgothic,browallia new,mingliu,simhei,gulimche,kartika,latha,mangal,raavi,Sylfaen,Microsoft Sans Serif " sans = "arial,ms pgothic,browallia new,mingliu,simhei,gulimche,kartika,latha,mangal,raavi,Sylfaen,Microsoft Sans Serif" serif = "times new roman,ms pmincho,angsana new,mingliu,simsun,gulimche,kartika,latha,mangal,raavi,Sylfaen,Microsoft Sans Serif" mono = "courier new,ms gothic,courier monothai,mingliu,simsun,gulimche,kartika,latha,mangal,raavi,Sylfaen,Microsoft Sans Serif" monospace = "courier new,ms gothic,courier monothai,mingliu,simsun,gulimche,kartika,latha,mangal,raavi,Sylfaen,Microsoft Sans Serif" ngraph-gtk-6.06.13/mingw/echo.nsc0000644000175000017500000000013312241111713013404 00000000000000new dialog dialog::message "Ngraph-gtk (${system::version}): "$1 del dialog del system ngraph-gtk-6.06.13/mingw/Makefile.am0000644000175000017500000000022712241111713014021 00000000000000EXTRA_DIST = gtkrc pango.aliases windows.sh windows_demo.sed \ windows_make.sed windows_resource.rc ngraph.ico associate.bat \ echo.nsc libruby.def ngraph-gtk-6.06.13/mingw/windows.sh0000644000175000017500000000527212241343675014036 00000000000000#! /bin/sh TMPFILE=ngraph_tmp PKG_DIR=$HOMEDRIVE/ngraph-gtk WIN_PATH=mingw HAVE_RUBY="0" DEFS="-D _USE_32BIT_TIME_T -D GDK_VERSION_MIN_REQUIRED=${GDK_VERSION} -D GLIB_VERSION_MIN_REQUIRED=${GLIB_VERSION} -D_FORTIFY_SOURCE -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DG_DISABLE_SINGLE_INCLUDES=1 -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES=1 -DGSL_DISABLE_DEPRECATED=1" CCOPT="-march=i686 -Wall -Wextra -Wpointer-arith -Wstrict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -Wdeprecated-declarations -g" if which ruby then RUBY_EXE=`which ruby` RUBY_BIN=`dirname "$RUBY_EXE"` RUBY_LIB=`dirname "$RUBY_BIN"`/lib RUBY_DLL=${RUBY_LIB}/libmsvcrt-ruby200.dll.a if [ -f $RUBY_DLL ] then HAVE_RUBY=1 sed 's/noinst/lib/' src/Makefile.am > $TMPFILE mv $TMPFILE src/Makefile.am aclocal -I m4 && automake && autoconf fi fi (cd $WIN_PATH; windres -o ../src/windows_resource.o windows_resource.rc) CFLAGS="$DEFS $CCOPT" ./configure --prefix=$PKG_DIR --libexecdir=$PKG_DIR/lib for makefile in `find -name Makefile` do sed -f $WIN_PATH/windows_make.sed $makefile > $TMPFILE mv $TMPFILE $makefile done sed 's/ngraph_LDADD =/ngraph_LDADD = windows_resource.o/' src/Makefile > $TMPFILE mv $TMPFILE src/Makefile for demo in demo/*.ngp.in do sed -f $WIN_PATH/windows_demo.sed $demo > $TMPFILE mv $TMPFILE $demo done make if [ $HAVE_RUBY = "1" ] then sed 's/allow_undefined_flag="unsupported"/allow_undefined_flag="supported"/' libtool > $TMPFILE mv $TMPFILE libtool rm src/libngraph.la make fi (cd initfile; cp Ngraph.ini.win Ngraph.ini; cp NgraphUI.xml.win NgraphUI.xml) make install mkdir -p $PKG_DIR/share/icons $PKG_DIR/lib/plugins rm $PKG_DIR/bin/terminal.exe cp /mingw/bin/*.dll $PKG_DIR/bin cp -r /mingw/share/locale $PKG_DIR/share cp -r /mingw/share/themes $PKG_DIR/share cp -r /mingw/etc/gtk-2.0 $PKG_DIR/etc cp -r /mingw/etc/pango $PKG_DIR/etc cp -r /mingw/lib/gtk-2.0 $PKG_DIR/lib HICOLOR_ICONS="/mingw/share/icons/hicolor" if [ -d "$HICOLOR_ICONS" ] then cp -r "$HICOLOR_ICONS" $PKG_DIR/share/icons fi cp $WIN_PATH/gtkrc $PKG_DIR/share/themes/MS-Windows/gtk-2.0 cp $WIN_PATH/gtkrc $PKG_DIR/share/themes/Raleigh/gtk-2.0 cp $WIN_PATH/pango.aliases $PKG_DIR/etc/pango cp $WIN_PATH/ngraph.ico $PKG_DIR/share/icons cp $WIN_PATH/associate.bat $PKG_DIR cp $WIN_PATH/echo.nsc $PKG_DIR if [ $HAVE_RUBY = "1" ] then dllwrap -def mingw/libruby.def --target i386-mingw32 -o libruby.dll plugins/.libs/libruby.a src/.libs/libngraph.dll.a "$RUBY_DLL" cp libruby.dll $PKG_DIR/lib/plugins rm -rf $PKG_DIR/bin/plugins fi ngraph-gtk-6.06.13/mingw/associate.bat0000644000175000017500000000021512241111713014425 00000000000000@echo off ASSOC .ngp=NgraphGraph FTYPE NgraphGraph="%CD%\bin\ngraph.exe" "%%1" %%* bin\ngraph.exe -i echo.nsc "Instalation is finished." ngraph-gtk-6.06.13/mingw/ngraph.ico0000644000175000017500000004107612241111713013747 00000000000000@@ (B(@ @  } uapp 0pp???ngraph-gtk-6.06.13/mingw/windows_resource.rc0000644000175000017500000000114612241112113015710 00000000000000101 ICON "ngraph.ico" 1 VERSIONINFO FILEVERSION 6,6,13,0 PRODUCTVERSION 6,6,13,0 BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "CompanyName", "" VALUE "FileDescription", "Ngraph-gtk" VALUE "FileVersion", "6,6,13,0" VALUE "InternalName", "ngraph" VALUE "LegalCopyright", "Copyright (C) 2003 Satoshi ISHIZAKA" VALUE "OriginalFilename", "ngraph.exe" VALUE "ProductName", "Ngraph-gtk" VALUE "ProductVersion", "6,6,13,0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 1252 END END ngraph-gtk-6.06.13/mingw/libruby.def0000644000175000017500000000007012241111713014111 00000000000000EXPORTS ngraph_plugin_open_ruby ngraph_plugin_exec_ruby ngraph-gtk-6.06.13/demo/0000755000175000017500000000000012241600065011652 500000000000000ngraph-gtk-6.06.13/demo/demo5a.ngp0000644000175000017500000000175212241111703013453 00000000000000#! ngraph # new text text::x=3000 text::y=6500 text::font="Sans-serif" text::style=3 text::text="Demo #5A: ARROW" # new path type=line put path points="4000 7000 4000 12000" put path width=500 put path arrow=both put path arrow_length=36213 put path arrow_width=30000 # new path type=line put path points="7000 7000 15000 12000" put path style="600 300 200 300" put path arrow_length=36213 put path arrow_width=30000 put path width=500 put path arrow=begin # new path type=line put path points="7000 12000 15000 7000" put path style="600 300 200 300" put path arrow_length=36213 put path arrow_width=30000 put path width=500 put path arrow=end # for i in `seq 4 2 18` do new path type=line put path points="10000 18000 ${i}000 12500" put path width=${i}0 put path arrow=end done # for i in `seq 4 2 18` do new path type=line put path arrow_length=80000 put path arrow_width=160000 put path points="10000 18000 ${i}000 23500" put path width=${i}0 put path arrow=end done # new gra ngraph-gtk-6.06.13/demo/demo4.ngp.in0000644000175000017500000005606012241111703013720 00000000000000#! ngraph new axisgrid axisgrid::hidden=false axisgrid::R=0 axisgrid::G=0 axisgrid::B=0 axisgrid::clip=true axisgrid::redraw_flag=true axisgrid::axis_x='axis:0' axisgrid::axis_y='axis:1' axisgrid::width1=0 axisgrid::style1='150 150' axisgrid::width2=0 axisgrid::style2= axisgrid::width3=40 axisgrid::style3='450 150 150 150' axisgrid::grid_x=false axisgrid::grid_y=true axisgrid::background=true axisgrid::BR=128 axisgrid::BG=255 axisgrid::BB=255 new axisgrid axisgrid::hidden=false axisgrid::R=0 axisgrid::G=0 axisgrid::B=0 axisgrid::clip=true axisgrid::redraw_flag=true axisgrid::axis_x='axis:4' axisgrid::axis_y='axis:5' axisgrid::width1=0 axisgrid::style1='150 150' axisgrid::width2=0 axisgrid::style2= axisgrid::width3=40 axisgrid::style3='450 150 150 150' axisgrid::grid_x=false axisgrid::grid_y=true axisgrid::background=true axisgrid::BR=128 axisgrid::BG=255 axisgrid::BB=255 new axis name:frameX axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=5.000000000000000e+00 axis::inc=1.000000000000000e+00 axis::div=0 axis::type=linear axis::x=5000 axis::y=10500 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=right axis::num_begin=0 axis::num_step=1 axis::num_num=0 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2400 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameY axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=-2.200000000000000e+00 axis::max=4.200000000000000e+00 axis::inc=1.000000000000000e+00 axis::div=0 axis::type=linear axis::x=5000 axis::y=10500 axis::direction=9000 axis::baseline=true axis::length=7000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%+g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2400 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=right axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameU axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=5000 axis::y=3500 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:0' axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=300 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameR axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=19000 axis::y=10500 axis::direction=9000 axis::baseline=true axis::length=7000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:1' axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=300 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::grouping 1 0 1 2 3 new axis name:frameX_a axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=5.000000000000000e+00 axis::inc=1.000000000000000e+00 axis::div=0 axis::type=linear axis::x=5000 axis::y=18000 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=right axis::num_begin=0 axis::num_step=1 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2400 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameY_a axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=-1.200000000000000e+00 axis::max=1.200000000000000e+00 axis::inc=1.000000000000000e+00 axis::div=0 axis::type=linear axis::x=5000 axis::y=18000 axis::direction=9000 axis::baseline=true axis::length=7000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2400 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=right axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameU_a axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=5000 axis::y=11000 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:4' axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameR_a axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=19000 axis::y=18000 axis::direction=9000 axis::baseline=true axis::length=7000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:5' axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=left axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::grouping 1 4 5 6 7 new file file::hidden=false file::R=255 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='GAMMA(X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo4.dat' new file file::hidden=false file::R=0 file::G=0 file::B=255 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='EI(X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo4.dat' new file file::hidden=false file::R=0 file::G=0 file::B=255 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='EI(-X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo4.dat' new file file::hidden=false file::R=0 file::G=128 file::B=128 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='1-ERFC(X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo4.dat' new file file::hidden=false file::R=255 file::G=0 file::B=128 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='JN(0,X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:4' file::axis_y='axis:5' file::file='DOCDIRDEF/demo4.dat' new file file::hidden=false file::R=255 file::G=0 file::B=128 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='JN(1,X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:4' file::axis_y='axis:5' file::file='DOCDIRDEF/demo4.dat' new file file::hidden=false file::R=255 file::G=0 file::B=128 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='JN(2,X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:4' file::axis_y='axis:5' file::file='DOCDIRDEF/demo4.dat' new file file::hidden=false file::R=0 file::G=128 file::B=255 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='YN(0,X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style='200 50 100 50 100 50' file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:4' file::axis_y='axis:5' file::file='DOCDIRDEF/demo4.dat' new file file::hidden=false file::R=0 file::G=128 file::B=255 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='YN(1,X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style='200 50 100 50 100 50' file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:4' file::axis_y='axis:5' file::file='DOCDIRDEF/demo4.dat' new file file::hidden=false file::R=0 file::G=128 file::B=255 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y='YN(2,X)' file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style='200 50 100 50 100 50' file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=2 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:4' file::axis_y='axis:5' file::file='DOCDIRDEF/demo4.dat' new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Demo #4: MULTI GRAPH' text::x=3500 text::y=2842 text::pt=2000 text::font='Sans-serif' text::style=1 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='X-Axis' text::x=11289 text::y=19500 text::pt=2400 text::font='Sans-serif' text::style=3 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Y-Axis' text::x=3263 text::y=12026 text::pt=2400 text::font='Sans-serif' text::style=3 text::space=0 text::direction=9000 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Γ(x)' text::x=14684 text::y=5553 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Ei(x)' text::x=8789 text::y=5553 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Ei(-x)' text::x=7053 text::y=8947 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='erf(x)' text::x=17184 text::y=6763 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Special function' text::x=13842 text::y=10026 text::pt=2000 text::font='Serif' text::style=3 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='J_0' text::x=6500 text::y=11600 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='J_1' text::x=7200 text::y=13000 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='J_2' text::x=7000 text::y=14100 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Y_0' text::x=5800 text::y=15500 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Y_1' text::x=8600 text::y=15500 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Y_2' text::x=10900 text::y=15700 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Bessel function' text::x=14000 text::y=17600 text::pt=2000 text::font='Serif' text::style=3 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new gra name:viewer gra::left_margin=0 gra::top_margin=4000 gra::zoom=10000 gra::paper_width=21000 gra::paper_height=29700 gra::draw_obj= ngraph-gtk-6.06.13/demo/demo5d.ngp0000644000175000017500000000121212241111703013445 00000000000000#! ngraph # new text text::x=3000 text::y=6500 text::font="Sans-serif" text::style=1 text::text="Demo #5D: CURVE" # STYLE="" drawcurve() { for i in `seq 0 10` do new path type=curve put path points:"3000 2000 10000 2000 15000 11000 20000 6000 \ 15000 1000 10000 10000 3000 10000" put path R:$R G:$G B:$B put path interpolation:$INTP put path style:"$STYLE" put path width:20 exe path move:"0 7000+${i}*500" done } # R=0 G=256 B=256 INTP=spline drawcurve R=0 G=128 B=256 INTP=spline_close drawcurve STYLE="300 50 50 50" R=0 G=64 B=256 INTP=bspline drawcurve R=0 G=0 B=256 INTP=bspline_close drawcurve # new gra ngraph-gtk-6.06.13/demo/demo1.ngp.in0000644000175000017500000002306312241111703013712 00000000000000#! ngraph new axis name:frameX axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=-5.200000000000000e-01 axis::max=1.520000000000000e+00 axis::inc=1.000000000000000e+00 axis::div=0 axis::type=linear axis::x=5000 axis::y=22000 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=right axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=300 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameY axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=-5.200000000000000e-01 axis::max=1.520000000000000e+00 axis::inc=1.000000000000000e+00 axis::div=0 axis::type=linear axis::x=5000 axis::y=22000 axis::direction=9000 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=right axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=300 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameU axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=5000 axis::y=8000 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:0' axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameR axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=19000 axis::y=22000 axis::direction=9000 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:1' axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=left axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::grouping 1 0 1 2 3 new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=mark file::interpolation=spline file::fit= file::math_x='HSB(1-%03/1.6,1,1)=x' file::math_y= file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=10 file::mark_size=250 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo1.dat' new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=mark file::interpolation=spline file::fit= file::math_x='COLOR(0,255*%03/1.6)=COLOR(1,255*%03/1.6)=COLOR(2,255*%03/1.6)=x' file::math_y='y+1' file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=10 file::mark_size=250 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo1.dat' new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=mark file::interpolation=spline file::fit= file::math_x='MARKSIZE(%03*300)=x+1' file::math_y= file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=250 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo1.dat' new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=mark file::interpolation=spline file::fit= file::math_x='RGB(%03/1.6,1-%03/1.6,1)=x+1' file::math_y='y+1' file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=10 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo1.dat' new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='x axis (lattice constant)' text::x=8790 text::y=23500 text::pt=2000 text::font='Sans-serif' text::style=3 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='y axis (lattice constant)' text::x=3783 text::y=18057 text::pt=2000 text::font='Sans-serif' text::style=3 text::space=0 text::direction=9000 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Demo #1:' text::x=1900 text::y=6100 text::pt=2000 text::font='Sans-serif' text::style=1 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='COLOR(), RGB(), HSB() and MARKSIZE() FUNCTION' text::x=1900 text::y=7300 text::pt=2000 text::font='Sans-serif' text::style=1 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new gra name:viewer gra::left_margin=0 gra::top_margin=0 gra::zoom=10000 gra::paper_width=21000 gra::paper_height=29700 gra::draw_obj= ngraph-gtk-6.06.13/demo/Makefile.in0000644000175000017500000004126712241364550013657 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = demo DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_demo_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(demodir)" "$(DESTDIR)$(demodir)" DATA = $(dist_demo_DATA) $(nodist_demo_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ demodir = $(pkgdatadir)/demo dist_demo_DATA = demo1.dat demo2.dat demo3.dat demo4.dat demo6.dat \ demo5a.ngp demo5b.ngp demo5c.ngp demo5d.ngp demo5e.ngp nodist_demo_DATA = demo.ngp demo1.ngp demo2.ngp demo3.ngp demo4.ngp \ demo6.ngp EXTRA_DIST = demo.ngp.in demo1.ngp.in demo2.ngp.in demo3.ngp.in \ demo4.ngp.in demo6.ngp.in SUFFIXES = .ngp.in .ngp CLEANFILES = demo.ngp demo1.ngp demo2.ngp demo3.ngp demo4.ngp demo6.ngp all: all-am .SUFFIXES: .SUFFIXES: .ngp.in .ngp $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu demo/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu demo/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_demoDATA: $(dist_demo_DATA) @$(NORMAL_INSTALL) @list='$(dist_demo_DATA)'; test -n "$(demodir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(demodir)'"; \ $(MKDIR_P) "$(DESTDIR)$(demodir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(demodir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(demodir)" || exit $$?; \ done uninstall-dist_demoDATA: @$(NORMAL_UNINSTALL) @list='$(dist_demo_DATA)'; test -n "$(demodir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(demodir)'; $(am__uninstall_files_from_dir) install-nodist_demoDATA: $(nodist_demo_DATA) @$(NORMAL_INSTALL) @list='$(nodist_demo_DATA)'; test -n "$(demodir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(demodir)'"; \ $(MKDIR_P) "$(DESTDIR)$(demodir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(demodir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(demodir)" || exit $$?; \ done uninstall-nodist_demoDATA: @$(NORMAL_UNINSTALL) @list='$(nodist_demo_DATA)'; test -n "$(demodir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(demodir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(demodir)" "$(DESTDIR)$(demodir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_demoDATA install-nodist_demoDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_demoDATA uninstall-nodist_demoDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_demoDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-nodist_demoDATA \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am uninstall-dist_demoDATA \ uninstall-nodist_demoDATA demo.ngp: Makefile demo1.ngp: Makefile demo2.ngp: Makefile demo3.ngp: Makefile demo4.ngp: Makefile demo6.ngp: Makefile .ngp.in.ngp: sh ../pathconv.sh "$(demodir)" "$(demodir)" "$(demodir)" "$(demodir)" "$(demodir)" "$(demodir)" "$(demodir)" $< # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/demo/demo3.ngp.in0000644000175000017500000003336412241111703013721 00000000000000#! ngraph new axis name:frameX axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=6.000000000000000e+00 axis::inc=1.000000000000000e+00 axis::div=0 axis::type=linear axis::x=4500 axis::y=20500 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=right axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=true axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameY axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=7.000000000000000e-01 axis::max=1.100000000000000e+00 axis::inc=1.000000000000000e-01 axis::div=5 axis::type=linear axis::x=4500 axis::y=17500 axis::direction=9000 axis::baseline=true axis::length=8000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=begin axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=right axis::gauge_min=7.100000000000000e-01 axis::gauge_max=2.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=right axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameU axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=4500 axis::y=9500 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:0' axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:frameR axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=18500 axis::y=17500 axis::direction=9000 axis::baseline=true axis::length=8000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=begin axis::wave_length=300 axis::wave_width=40 axis::reference='axis:1' axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=left axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:single_a axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=1.500000000000000e-01 axis::inc=1.000000000000000e-01 axis::div=5 axis::type=linear axis::x=4500 axis::y=20500 axis::direction=9000 axis::baseline=true axis::length=2500 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=end axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=right axis::gauge_min=-1.000000000000000e+00 axis::gauge_max=1.400000000000000e-01 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=true axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:single_b axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=18500 axis::y=20500 axis::direction=9000 axis::baseline=true axis::length=2500 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=end axis::wave_length=300 axis::wave_width=40 axis::reference='axis:4' axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=2 file::y=3 file::type=line file::interpolation=bspline file::fit= file::math_x= file::math_y= file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=100 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo3.dat' new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=2 file::y=3 file::type=mark file::interpolation=spline file::fit= file::math_x= file::math_y= file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=30 file::mark_size=400 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::file='DOCDIRDEF/demo3.dat' new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=2 file::y=3 file::type=line file::interpolation=spline file::fit= file::math_x= file::math_y= file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=100 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:4' file::file='DOCDIRDEF/demo3.dat' new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=2 file::y=3 file::type=mark file::interpolation=spline file::fit= file::math_x= file::math_y= file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=30 file::mark_size=400 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:4' file::file='DOCDIRDEF/demo3.dat' new path path::type=line path::hidden=false path::R=0 path::G=0 path::B=0 path::clip=true path::redraw_flag=true path::points='4500 10500 6000 10500' path::width=80 path::style= path::join=miter path::miter_limit=1000 path::arrow=begin path::arrow_length=44100 path::arrow_width=28000 new rectangle rectangle::hidden=false rectangle::fill_R=0 rectangle::fill_G=0 rectangle::fill_B=0 rectangle::fill_A=64 rectangle::clip=true rectangle::redraw_flag=true rectangle::x1=11000 rectangle::y1=14200 rectangle::x2=18200 rectangle::y2=19900 rectangle::fill=true rectangle::stroke=false rectangle::stroke_R=0 rectangle::stroke_G=0 rectangle::stroke_B=0 rectangle::width=40 rectangle::style= new rectangle rectangle::hidden=false rectangle::fill_R=128 rectangle::fill_G=255 rectangle::fill_B=255 rectangle::clip=true rectangle::redraw_flag=true rectangle::x1=10700 rectangle::y1=13900 rectangle::x2=17900 rectangle::y2=19600 rectangle::fill=true rectangle::stroke=true rectangle::stroke_R=0 rectangle::stroke_G=0 rectangle::stroke_B=0 rectangle::width=40 rectangle::style= new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='0' text::x=4000 text::y=21000 text::pt=2000 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='%{file:0:column:1 0}\n%{file:0:column:2 0}\n%{file:0:column:3 0}\n%{file:0:column:4 0}\n%{file:0:column:5 0}\n%{file:0:column:6 0}\n%{file:0:column:7 0}' text::x=11000 text::y=14900 text::pt=2000 text::font='Monospace' text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Demo #3: AXIS DIVISION' text::x=2500 text::y=7500 text::pt=2000 text::font='Sans-serif' text::style=1 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Sample length (μm)' text::x=9000 text::y=22000 text::pt=2000 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Resistance (KΩ)' text::x=3000 text::y=17000 text::pt=2000 text::font='Sans-serif' text::style=0 text::space=0 text::direction=9000 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='critical value' text::x=6100 text::y=10700 text::pt=2000 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new gra name:viewer gra::left_margin=0 gra::top_margin=0 gra::zoom=10000 gra::paper_width=21000 gra::paper_height=29700 gra::draw_obj='rectangle axisgrid axis file merge legend arc path mark text' ngraph-gtk-6.06.13/demo/demo2.ngp.in0000644000175000017500000003545012241111703013716 00000000000000#! ngraph #%creator: Ngraph for GTK+ #%version: 6.03.48.gtk-23 new axis name:cX1 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=-2.500000000000000e+00 axis::max=3.200000000000000e+00 axis::inc=1.000000000000000e+00 axis::div=0 axis::type=linear axis::x=4000 axis::y=16510 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis='axis:1' axis::adjust_position=0 axis::arrow=end axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=both axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=150 axis::gauge_width1=40 axis::gauge_length2=300 axis::gauge_width2=40 axis::gauge_length3=400 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=right axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2400 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=true axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=350 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis name:cY1 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=-5.000000000000000e+00 axis::max=4.200000000000000e+01 axis::inc=1.000000000000000e+01 axis::div=0 axis::type=linear axis::x=10140 axis::y=18000 axis::direction=9000 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis='axis:0' axis::adjust_position=0 axis::arrow=end axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=both axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=150 axis::gauge_width1=40 axis::gauge_length2=300 axis::gauge_width2=40 axis::gauge_length3=400 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2400 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=right axis::num_no_zero=true axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=350 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::grouping 3 0 1 new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=mark file::interpolation=spline file::fit= file::math_x= file::math_y= file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::csv=false file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::data_clip=true file::file='DOCDIRDEF/demo2.dat' new file file::hidden=false file::R=0 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=errorbar_y file::interpolation=spline file::fit= file::math_x= file::math_y= file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::csv=false file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::data_clip=true file::file='DOCDIRDEF/demo2.dat' new fit fit::profile= fit::type=user fit::min=0.000000000000000e+00 fit::max=0.000000000000000e+00 fit::div=500 fit::interpolation=false fit::through_point=false fit::point_x=0.000000000000000e+00 fit::point_y=0.000000000000000e+00 fit::equation='3.334342264725757e+01*EXP(-(((X--1.323840682693712e+00)*1.167633670539841e+00)^2))+7.533588819881534e+00*EXP(-(((X-1.423928452598031e+00)*1.482809609014573e+00)^2))+-1.391372284014659e+00' fit::poly_dimension=5 fit::weight_func= fit::user_func='%01*EXP(-(((X-%02)*%03)^2))+%04*EXP(-(((X-%05)*%06)^2))+%00' fit::derivative=true fit::derivative0='1' fit::derivative1='EXP(-(((X-%02)*%03)^2))' fit::derivative2='2*(X-%02)*%03^2*%01*EXP(-(((X-%02)*%03)^2))' fit::derivative3='-2*%03*(X-%02)^2*%01*EXP(-(((X-%02)*%03)^2))' fit::derivative4='EXP(-(((X-%05)*%06)^2))' fit::derivative5='2*(X-%05)*%06^2*%04*EXP(-(((X-%05)*%06)^2))' fit::derivative6='-2*%06*(X-%05)^2*%04*EXP(-(((X-%05)*%06)^2))' fit::derivative7= fit::derivative8= fit::derivative9= fit::converge=1.000000000000000e+00 fit::parameter0=0.000000000000000e+00 fit::parameter1=3.000000000000000e+01 fit::parameter2=-1.000000000000000e+00 fit::parameter3=1.000000000000000e+00 fit::parameter4=5.000000000000000e+00 fit::parameter5=1.500000000000000e+00 fit::parameter6=1.000000000000000e+00 fit::parameter7=0.000000000000000e+00 fit::parameter8=0.000000000000000e+00 fit::parameter9=0.000000000000000e+00 fit::display=true new file file::hidden=false file::R=255 file::G=0 file::B=0 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=fit file::interpolation=spline file::math_x= file::math_y= file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::csv=false file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::data_clip=true file::file='DOCDIRDEF/demo2.dat' file::fit='fit:^'${fit::oid} new fit fit::profile= fit::type=user fit::min=0.000000000000000e+00 fit::max=0.000000000000000e+00 fit::div=500 fit::interpolation=false fit::through_point=false fit::point_x=0.000000000000000e+00 fit::point_y=0.000000000000000e+00 fit::equation='3.228016431016133e+01*EXP(-(((X--1.324333233615322e+00)*1.229080100751821e+00)^2))+6.052084367385491e+00*EXP(-(((X-1.465076470890410e+00)*1.601264690141752e+00)^2))+-5.392649863737123e-02' fit::poly_dimension=5 fit::weight_func= fit::user_func='%01*EXP(-(((X-%02)*%03)^2))+%04*EXP(-(((X-%05)*%06)^2))+%00' fit::derivative=true fit::derivative0='1' fit::derivative1='EXP(-(((X-%02)*%03)^2))' fit::derivative2='2*(X-%02)*%03^2*%01*EXP(-(((X-%02)*%03)^2))' fit::derivative3='-2*%03*(X-%02)^2*%01*EXP(-(((X-%02)*%03)^2))' fit::derivative4='EXP(-(((X-%05)*%06)^2))' fit::derivative5='2*(X-%05)*%06^2*%04*EXP(-(((X-%05)*%06)^2))' fit::derivative6='-2*%06*(X-%05)^2*%04*EXP(-(((X-%05)*%06)^2))' fit::derivative7= fit::derivative8= fit::derivative9= fit::converge=1.000000000000000e+00 fit::parameter0=0.000000000000000e+00 fit::parameter1=3.000000000000000e+01 fit::parameter2=-1.000000000000000e+00 fit::parameter3=1.000000000000000e+00 fit::parameter4=5.000000000000000e+00 fit::parameter5=1.500000000000000e+00 fit::parameter6=1.000000000000000e+00 fit::parameter7=0.000000000000000e+00 fit::parameter8=0.000000000000000e+00 fit::parameter9=0.000000000000000e+00 fit::display=true new file file::hidden=false file::R=0 file::G=0 file::B=255 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=fit file::interpolation=spline file::math_x= file::math_y= file::func_f='X' file::func_g='Y' file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=miter file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::remark='#%'\''' file::ifs=' , ()' file::csv=false file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask='36 37 39' file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::data_clip=true file::file='DOCDIRDEF/demo2.dat' file::fit='fit:^'${fit::oid} new rectangle rectangle::hidden=false rectangle::fill_R=255 rectangle::fill_G=255 rectangle::fill_B=128 rectangle::clip=true rectangle::redraw_flag=true rectangle::x1=13718 rectangle::y1=4859 rectangle::x2=20575 rectangle::y2=7093 rectangle::fill=true rectangle::stroke=true rectangle::stroke_R=0 rectangle::stroke_G=0 rectangle::stroke_B=0 rectangle::width=40 rectangle::style= new rectangle rectangle::hidden=false rectangle::fill_R=255 rectangle::fill_G=255 rectangle::fill_B=128 rectangle::clip=true rectangle::redraw_flag=true rectangle::x1=13718 rectangle::y1=9859 rectangle::x2=20590 rectangle::y2=12093 rectangle::fill=true rectangle::stroke=true rectangle::stroke_R=0 rectangle::stroke_G=0 rectangle::stroke_B=0 rectangle::width=40 rectangle::style= new path path::type=line path::hidden=false path::R=255 path::G=0 path::B=0 path::clip=true path::redraw_flag=true path::points='10947 4274 13053 4274' path::width=40 path::style= path::join=miter path::miter_limit=1000 path::arrow=none path::arrow_length=72420 path::arrow_width=60000 new path path::type=line path::hidden=false path::R=0 path::G=0 path::B=255 path::clip=true path::redraw_flag=true path::points='10947 8674 13053 8674' path::width=40 path::style= path::join=miter path::miter_limit=1000 path::arrow=none path::arrow_length=72420 path::arrow_width=60000 new path path::type=line path::hidden=false path::R=0 path::G=0 path::B=0 path::clip=true path::redraw_flag=true path::points='13300 19300 15621 17844' path::width=40 path::style= path::join=miter path::miter_limit=1000 path::arrow=end path::arrow_length=72420 path::arrow_width=60000 new path path::type=line path::hidden=false path::R=0 path::G=0 path::B=0 path::clip=true path::redraw_flag=true path::points='8086 5622 7173 6309' path::width=40 path::style= path::join=miter path::miter_limit=1000 path::arrow=end path::arrow_length=72426 path::arrow_width=60000 new arc arc::hidden=false arc::R=0 arc::G=0 arc::B=0 arc::clip=true arc::redraw_flag=true arc::x=16441 arc::y=17573 arc::rx=1000 arc::ry=500 arc::angle1=0 arc::angle2=36000 arc::fill=false arc::pieslice=true arc::width=30 arc::style= new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Demo #2: LEAST SQUARE FIT' text::x=4000 text::y=2842 text::pt=2000 text::font='Sans-serif' text::style=1 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Double Gaussian Fit' text::x=13474 text::y=4537 text::pt=1800 text::font='Sans-serif' text::style=3 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='0' text::x=9500 text::y=17400 text::pt=2400 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Double Gaussian Fit\n(masked)' text::x=13474 text::y=8937 text::pt=1800 text::font='Sans-serif' text::style=3 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='masked data' text::x=9815 text::y=19527 text::pt=1600 text::font='Sans-serif' text::style=3 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='peak-1: (%pf{%+#.4g %{file:2:fit_prm:2}}, %pf{%+#.4g %{file:2:fit_calc %{file:2:fit_prm:2}}})' text::x=14000 text::y=6164 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='peak-2: (%pf{%+#.4g %{file:2:fit_prm:5}}, %pf{%+#.4g %{file:2:fit_calc %{file:2:fit_prm:5}}})' text::x=14000 text::y=6840 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='peak-1: (%pf{%+#.4g %{file:3:fit_prm:2}}, %pf{%+#.4g %{file:3:fit_calc %{file:3:fit_prm:2}}})' text::x=14000 text::y=11164 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='peak-2: (%pf{%+#.4g %{file:3:fit_prm:5}}, %pf{%+#.4g %{file:3:fit_calc %{file:3:fit_prm:5}}})' text::x=14000 text::y=11840 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='# %{file:2:dnum}' text::x=14000 text::y=5564 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='# %{file:3:dnum} (%pf{%d %[%{file:2:dnum}-%{file:3:dnum}]} masked)' text::x=14000 text::y=10564 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='%pf{%.4g %{file:0:dy 7}}' text::x=8157 text::y=5812 text::pt=1600 text::font='Sans-serif' text::style=0 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new gra name:viewer gra::left_margin=0 gra::top_margin=4000 gra::zoom=10000 gra::paper_width=21000 gra::paper_height=29700 gra::draw_obj= ngraph-gtk-6.06.13/demo/demo1.dat0000644000175000017500000014377412241111703013305 00000000000000 -0.49 -0.49 0.10 -0.49 -0.46 0.12 -0.49 -0.44 0.19 -0.49 -0.41 0.32 -0.49 -0.39 0.47 -0.49 -0.36 0.52 -0.49 -0.34 0.41 -0.49 -0.31 0.21 -0.49 -0.29 0.95E-01 -0.49 -0.26 0.22 -0.49 -0.24 0.56 -0.49 -0.21 0.92 -0.49 -0.19 1.1 -0.49 -0.16 0.89 -0.49 -0.14 0.56 -0.49 -0.11 0.29 -0.49 -0.87E-01 0.25 -0.49 -0.63E-01 0.41 -0.49 -0.37E-01 0.66 -0.49 -0.13E-01 0.83 -0.49 0.13E-01 0.83 -0.49 0.38E-01 0.66 -0.49 0.63E-01 0.41 -0.49 0.88E-01 0.25 -0.49 0.11 0.29 -0.49 0.14 0.56 -0.49 0.16 0.89 -0.49 0.19 1.1 -0.49 0.21 0.92 -0.49 0.24 0.56 -0.49 0.26 0.22 -0.49 0.29 0.95E-01 -0.49 0.31 0.21 -0.49 0.34 0.41 -0.49 0.36 0.52 -0.49 0.39 0.47 -0.49 0.41 0.32 -0.49 0.44 0.19 -0.49 0.46 0.12 -0.49 0.49 0.10 -0.46 -0.49 0.12 -0.46 -0.46 0.31 -0.46 -0.44 0.59 -0.46 -0.41 0.81 -0.46 -0.39 0.88 -0.46 -0.36 0.75 -0.46 -0.34 0.48 -0.46 -0.31 0.20 -0.46 -0.29 0.53E-01 -0.46 -0.26 0.12 -0.46 -0.24 0.34 -0.46 -0.21 0.56 -0.46 -0.19 0.66 -0.46 -0.16 0.63 -0.46 -0.14 0.55 -0.46 -0.11 0.52 -0.46 -0.87E-01 0.55 -0.46 -0.63E-01 0.57 -0.46 -0.37E-01 0.55 -0.46 -0.13E-01 0.52 -0.46 0.13E-01 0.52 -0.46 0.38E-01 0.55 -0.46 0.63E-01 0.57 -0.46 0.88E-01 0.55 -0.46 0.11 0.52 -0.46 0.14 0.55 -0.46 0.16 0.63 -0.46 0.19 0.66 -0.46 0.21 0.56 -0.46 0.24 0.34 -0.46 0.26 0.12 -0.46 0.29 0.53E-01 -0.46 0.31 0.20 -0.46 0.34 0.48 -0.46 0.36 0.75 -0.46 0.39 0.88 -0.46 0.41 0.81 -0.46 0.44 0.59 -0.46 0.46 0.31 -0.46 0.49 0.12 -0.44 -0.49 0.19 -0.44 -0.46 0.59 -0.44 -0.44 1.1 -0.44 -0.41 1.4 -0.44 -0.39 1.3 -0.44 -0.36 0.92 -0.44 -0.34 0.48 -0.44 -0.31 0.16 -0.44 -0.29 0.57E-01 -0.44 -0.26 0.10 -0.44 -0.24 0.18 -0.44 -0.21 0.21 -0.44 -0.19 0.24 -0.44 -0.16 0.34 -0.44 -0.14 0.59 -0.44 -0.11 0.87 -0.44 -0.87E-01 1.0 -0.44 -0.63E-01 0.85 -0.44 -0.37E-01 0.50 -0.44 -0.13E-01 0.21 -0.44 0.13E-01 0.21 -0.44 0.38E-01 0.50 -0.44 0.63E-01 0.85 -0.44 0.88E-01 1.0 -0.44 0.11 0.87 -0.44 0.14 0.59 -0.44 0.16 0.34 -0.44 0.19 0.24 -0.44 0.21 0.21 -0.44 0.24 0.18 -0.44 0.26 0.10 -0.44 0.29 0.57E-01 -0.44 0.31 0.16 -0.44 0.34 0.48 -0.44 0.36 0.92 -0.44 0.39 1.3 -0.44 0.41 1.4 -0.44 0.44 1.1 -0.44 0.46 0.59 -0.44 0.49 0.19 -0.41 -0.49 0.32 -0.41 -0.46 0.81 -0.41 -0.44 1.4 -0.41 -0.41 1.6 -0.41 -0.39 1.4 -0.41 -0.36 0.81 -0.41 -0.34 0.33 -0.41 -0.31 0.14 -0.41 -0.29 0.21 -0.41 -0.26 0.33 -0.41 -0.24 0.34 -0.41 -0.21 0.22 -0.41 -0.19 0.11 -0.41 -0.16 0.24 -0.41 -0.14 0.65 -0.41 -0.11 1.1 -0.41 -0.87E-01 1.3 -0.41 -0.63E-01 1.1 -0.41 -0.37E-01 0.61 -0.41 -0.13E-01 0.18 -0.41 0.13E-01 0.18 -0.41 0.38E-01 0.61 -0.41 0.63E-01 1.1 -0.41 0.88E-01 1.3 -0.41 0.11 1.1 -0.41 0.14 0.65 -0.41 0.16 0.24 -0.41 0.19 0.11 -0.41 0.21 0.22 -0.41 0.24 0.34 -0.41 0.26 0.33 -0.41 0.29 0.21 -0.41 0.31 0.14 -0.41 0.34 0.33 -0.41 0.36 0.81 -0.41 0.39 1.4 -0.41 0.41 1.6 -0.41 0.44 1.4 -0.41 0.46 0.81 -0.41 0.49 0.32 -0.39 -0.49 0.47 -0.39 -0.46 0.88 -0.39 -0.44 1.3 -0.39 -0.41 1.4 -0.39 -0.39 0.98 -0.39 -0.36 0.45 -0.39 -0.34 0.14 -0.39 -0.31 0.20 -0.39 -0.29 0.50 -0.39 -0.26 0.76 -0.39 -0.24 0.78 -0.39 -0.21 0.56 -0.39 -0.19 0.31 -0.39 -0.16 0.31 -0.39 -0.14 0.63 -0.39 -0.11 1.1 -0.39 -0.87E-01 1.3 -0.39 -0.63E-01 1.2 -0.39 -0.37E-01 0.73 -0.39 -0.13E-01 0.35 -0.39 0.13E-01 0.35 -0.39 0.38E-01 0.73 -0.39 0.63E-01 1.2 -0.39 0.88E-01 1.3 -0.39 0.11 1.1 -0.39 0.14 0.63 -0.39 0.16 0.31 -0.39 0.19 0.31 -0.39 0.21 0.56 -0.39 0.24 0.78 -0.39 0.26 0.76 -0.39 0.29 0.50 -0.39 0.31 0.20 -0.39 0.34 0.14 -0.39 0.36 0.45 -0.39 0.39 0.98 -0.39 0.41 1.4 -0.39 0.44 1.3 -0.39 0.46 0.88 -0.39 0.49 0.47 -0.36 -0.49 0.52 -0.36 -0.46 0.75 -0.36 -0.44 0.92 -0.36 -0.41 0.81 -0.36 -0.39 0.45 -0.36 -0.36 0.11 -0.36 -0.34 0.66E-01 -0.36 -0.31 0.34 -0.36 -0.29 0.77 -0.36 -0.26 1.1 -0.36 -0.24 1.1 -0.36 -0.21 0.90 -0.36 -0.19 0.56 -0.36 -0.16 0.38 -0.36 -0.14 0.48 -0.36 -0.11 0.77 -0.36 -0.87E-01 0.99 -0.36 -0.63E-01 0.95 -0.36 -0.37E-01 0.69 -0.36 -0.13E-01 0.45 -0.36 0.13E-01 0.45 -0.36 0.38E-01 0.69 -0.36 0.63E-01 0.95 -0.36 0.88E-01 0.99 -0.36 0.11 0.77 -0.36 0.14 0.48 -0.36 0.16 0.38 -0.36 0.19 0.56 -0.36 0.21 0.90 -0.36 0.24 1.1 -0.36 0.26 1.1 -0.36 0.29 0.77 -0.36 0.31 0.34 -0.36 0.34 0.66E-01 -0.36 0.36 0.11 -0.36 0.39 0.45 -0.36 0.41 0.81 -0.36 0.44 0.92 -0.36 0.46 0.75 -0.36 0.49 0.52 -0.34 -0.49 0.41 -0.34 -0.46 0.48 -0.34 -0.44 0.48 -0.34 -0.41 0.33 -0.34 -0.39 0.14 -0.34 -0.36 0.66E-01 -0.34 -0.34 0.21 -0.34 -0.31 0.51 -0.34 -0.29 0.84 -0.34 -0.26 1.1 -0.34 -0.24 1.1 -0.34 -0.21 0.93 -0.34 -0.19 0.63 -0.34 -0.16 0.36 -0.34 -0.14 0.28 -0.34 -0.11 0.37 -0.34 -0.87E-01 0.51 -0.34 -0.63E-01 0.54 -0.34 -0.37E-01 0.47 -0.34 -0.13E-01 0.38 -0.34 0.13E-01 0.38 -0.34 0.38E-01 0.47 -0.34 0.63E-01 0.54 -0.34 0.88E-01 0.51 -0.34 0.11 0.37 -0.34 0.14 0.28 -0.34 0.16 0.36 -0.34 0.19 0.63 -0.34 0.21 0.93 -0.34 0.24 1.1 -0.34 0.26 1.1 -0.34 0.29 0.84 -0.34 0.31 0.51 -0.34 0.34 0.21 -0.34 0.36 0.66E-01 -0.34 0.39 0.14 -0.34 0.41 0.33 -0.34 0.44 0.48 -0.34 0.46 0.48 -0.34 0.49 0.41 -0.31 -0.49 0.21 -0.31 -0.46 0.20 -0.31 -0.44 0.16 -0.31 -0.41 0.14 -0.31 -0.39 0.20 -0.31 -0.36 0.34 -0.31 -0.34 0.51 -0.31 -0.31 0.62 -0.31 -0.29 0.67 -0.31 -0.26 0.72 -0.31 -0.24 0.75 -0.31 -0.21 0.70 -0.31 -0.19 0.55 -0.31 -0.16 0.35 -0.31 -0.14 0.21 -0.31 -0.11 0.16 -0.31 -0.87E-01 0.20 -0.31 -0.63E-01 0.23 -0.31 -0.37E-01 0.24 -0.31 -0.13E-01 0.22 -0.31 0.13E-01 0.22 -0.31 0.38E-01 0.24 -0.31 0.63E-01 0.23 -0.31 0.88E-01 0.20 -0.31 0.11 0.16 -0.31 0.14 0.21 -0.31 0.16 0.35 -0.31 0.19 0.55 -0.31 0.21 0.70 -0.31 0.24 0.75 -0.31 0.26 0.72 -0.31 0.29 0.67 -0.31 0.31 0.62 -0.31 0.34 0.51 -0.31 0.36 0.34 -0.31 0.39 0.20 -0.31 0.41 0.14 -0.31 0.44 0.16 -0.31 0.46 0.20 -0.31 0.49 0.21 -0.29 -0.49 0.95E-01 -0.29 -0.46 0.53E-01 -0.29 -0.44 0.57E-01 -0.29 -0.41 0.21 -0.29 -0.39 0.50 -0.29 -0.36 0.77 -0.29 -0.34 0.84 -0.29 -0.31 0.67 -0.29 -0.29 0.43 -0.29 -0.26 0.30 -0.29 -0.24 0.35 -0.29 -0.21 0.48 -0.29 -0.19 0.54 -0.29 -0.16 0.48 -0.29 -0.14 0.36 -0.29 -0.11 0.25 -0.29 -0.87E-01 0.19 -0.29 -0.63E-01 0.16 -0.29 -0.37E-01 0.15 -0.29 -0.13E-01 0.15 -0.29 0.13E-01 0.15 -0.29 0.38E-01 0.15 -0.29 0.63E-01 0.16 -0.29 0.88E-01 0.19 -0.29 0.11 0.25 -0.29 0.14 0.36 -0.29 0.16 0.48 -0.29 0.19 0.54 -0.29 0.21 0.48 -0.29 0.24 0.35 -0.29 0.26 0.30 -0.29 0.29 0.43 -0.29 0.31 0.67 -0.29 0.34 0.84 -0.29 0.36 0.77 -0.29 0.39 0.50 -0.29 0.41 0.21 -0.29 0.44 0.57E-01 -0.29 0.46 0.53E-01 -0.29 0.49 0.95E-01 -0.26 -0.49 0.22 -0.26 -0.46 0.12 -0.26 -0.44 0.10 -0.26 -0.41 0.33 -0.26 -0.39 0.76 -0.26 -0.36 1.1 -0.26 -0.34 1.1 -0.26 -0.31 0.72 -0.26 -0.29 0.30 -0.26 -0.26 0.11 -0.26 -0.24 0.23 -0.26 -0.21 0.50 -0.26 -0.19 0.71 -0.26 -0.16 0.76 -0.26 -0.14 0.67 -0.26 -0.11 0.52 -0.26 -0.87E-01 0.39 -0.26 -0.63E-01 0.29 -0.26 -0.37E-01 0.23 -0.26 -0.13E-01 0.20 -0.26 0.13E-01 0.20 -0.26 0.38E-01 0.23 -0.26 0.63E-01 0.29 -0.26 0.88E-01 0.39 -0.26 0.11 0.52 -0.26 0.14 0.67 -0.26 0.16 0.76 -0.26 0.19 0.71 -0.26 0.21 0.50 -0.26 0.24 0.23 -0.26 0.26 0.11 -0.26 0.29 0.30 -0.26 0.31 0.72 -0.26 0.34 1.1 -0.26 0.36 1.1 -0.26 0.39 0.76 -0.26 0.41 0.33 -0.26 0.44 0.10 -0.26 0.46 0.12 -0.26 0.49 0.22 -0.24 -0.49 0.56 -0.24 -0.46 0.34 -0.24 -0.44 0.18 -0.24 -0.41 0.34 -0.24 -0.39 0.78 -0.24 -0.36 1.1 -0.24 -0.34 1.1 -0.24 -0.31 0.75 -0.24 -0.29 0.35 -0.24 -0.26 0.23 -0.24 -0.24 0.43 -0.24 -0.21 0.77 -0.24 -0.19 1.0 -0.24 -0.16 1.1 -0.24 -0.14 0.99 -0.24 -0.11 0.80 -0.24 -0.87E-01 0.61 -0.24 -0.63E-01 0.45 -0.24 -0.37E-01 0.35 -0.24 -0.13E-01 0.30 -0.24 0.13E-01 0.30 -0.24 0.38E-01 0.35 -0.24 0.63E-01 0.45 -0.24 0.88E-01 0.61 -0.24 0.11 0.80 -0.24 0.14 0.99 -0.24 0.16 1.1 -0.24 0.19 1.0 -0.24 0.21 0.77 -0.24 0.24 0.43 -0.24 0.26 0.23 -0.24 0.29 0.35 -0.24 0.31 0.75 -0.24 0.34 1.1 -0.24 0.36 1.1 -0.24 0.39 0.78 -0.24 0.41 0.34 -0.24 0.44 0.18 -0.24 0.46 0.34 -0.24 0.49 0.56 -0.21 -0.49 0.92 -0.21 -0.46 0.56 -0.21 -0.44 0.21 -0.21 -0.41 0.22 -0.21 -0.39 0.56 -0.21 -0.36 0.90 -0.21 -0.34 0.93 -0.21 -0.31 0.70 -0.21 -0.29 0.48 -0.21 -0.26 0.50 -0.21 -0.24 0.77 -0.21 -0.21 1.1 -0.21 -0.19 1.3 -0.21 -0.16 1.3 -0.21 -0.14 1.2 -0.21 -0.11 0.95 -0.21 -0.87E-01 0.72 -0.21 -0.63E-01 0.54 -0.21 -0.37E-01 0.42 -0.21 -0.13E-01 0.37 -0.21 0.13E-01 0.37 -0.21 0.38E-01 0.42 -0.21 0.63E-01 0.54 -0.21 0.88E-01 0.72 -0.21 0.11 0.95 -0.21 0.14 1.2 -0.21 0.16 1.3 -0.21 0.19 1.3 -0.21 0.21 1.1 -0.21 0.24 0.77 -0.21 0.26 0.50 -0.21 0.29 0.48 -0.21 0.31 0.70 -0.21 0.34 0.93 -0.21 0.36 0.90 -0.21 0.39 0.56 -0.21 0.41 0.22 -0.21 0.44 0.21 -0.21 0.46 0.56 -0.21 0.49 0.92 -0.19 -0.49 1.1 -0.19 -0.46 0.66 -0.19 -0.44 0.24 -0.19 -0.41 0.11 -0.19 -0.39 0.31 -0.19 -0.36 0.56 -0.19 -0.34 0.63 -0.19 -0.31 0.55 -0.19 -0.29 0.54 -0.19 -0.26 0.71 -0.19 -0.24 1.0 -0.19 -0.21 1.3 -0.19 -0.19 1.4 -0.19 -0.16 1.4 -0.19 -0.14 1.2 -0.19 -0.11 0.94 -0.19 -0.87E-01 0.71 -0.19 -0.63E-01 0.54 -0.19 -0.37E-01 0.42 -0.19 -0.13E-01 0.36 -0.19 0.13E-01 0.36 -0.19 0.38E-01 0.42 -0.19 0.63E-01 0.54 -0.19 0.88E-01 0.71 -0.19 0.11 0.94 -0.19 0.14 1.2 -0.19 0.16 1.4 -0.19 0.19 1.4 -0.19 0.21 1.3 -0.19 0.24 1.0 -0.19 0.26 0.71 -0.19 0.29 0.54 -0.19 0.31 0.55 -0.19 0.34 0.63 -0.19 0.36 0.56 -0.19 0.39 0.31 -0.19 0.41 0.11 -0.19 0.44 0.24 -0.19 0.46 0.66 -0.19 0.49 1.1 -0.16 -0.49 0.89 -0.16 -0.46 0.63 -0.16 -0.44 0.34 -0.16 -0.41 0.24 -0.16 -0.39 0.31 -0.16 -0.36 0.38 -0.16 -0.34 0.36 -0.16 -0.31 0.35 -0.16 -0.29 0.48 -0.16 -0.26 0.76 -0.16 -0.24 1.1 -0.16 -0.21 1.3 -0.16 -0.19 1.4 -0.16 -0.16 1.3 -0.16 -0.14 1.1 -0.16 -0.11 0.82 -0.16 -0.87E-01 0.62 -0.16 -0.63E-01 0.46 -0.16 -0.37E-01 0.36 -0.16 -0.13E-01 0.31 -0.16 0.13E-01 0.31 -0.16 0.38E-01 0.36 -0.16 0.63E-01 0.46 -0.16 0.88E-01 0.62 -0.16 0.11 0.82 -0.16 0.14 1.1 -0.16 0.16 1.3 -0.16 0.19 1.4 -0.16 0.21 1.3 -0.16 0.24 1.1 -0.16 0.26 0.76 -0.16 0.29 0.48 -0.16 0.31 0.35 -0.16 0.34 0.36 -0.16 0.36 0.38 -0.16 0.39 0.31 -0.16 0.41 0.24 -0.16 0.44 0.34 -0.16 0.46 0.63 -0.16 0.49 0.89 -0.14 -0.49 0.56 -0.14 -0.46 0.55 -0.14 -0.44 0.59 -0.14 -0.41 0.65 -0.14 -0.39 0.63 -0.14 -0.36 0.48 -0.14 -0.34 0.28 -0.14 -0.31 0.21 -0.14 -0.29 0.36 -0.14 -0.26 0.67 -0.14 -0.24 0.99 -0.14 -0.21 1.2 -0.14 -0.19 1.2 -0.14 -0.16 1.1 -0.14 -0.14 0.86 -0.14 -0.11 0.66 -0.14 -0.87E-01 0.49 -0.14 -0.63E-01 0.36 -0.14 -0.37E-01 0.28 -0.14 -0.13E-01 0.24 -0.14 0.13E-01 0.24 -0.14 0.38E-01 0.28 -0.14 0.63E-01 0.36 -0.14 0.88E-01 0.49 -0.14 0.11 0.66 -0.14 0.14 0.86 -0.14 0.16 1.1 -0.14 0.19 1.2 -0.14 0.21 1.2 -0.14 0.24 0.99 -0.14 0.26 0.67 -0.14 0.29 0.36 -0.14 0.31 0.21 -0.14 0.34 0.28 -0.14 0.36 0.48 -0.14 0.39 0.63 -0.14 0.41 0.65 -0.14 0.44 0.59 -0.14 0.46 0.55 -0.14 0.49 0.56 -0.11 -0.49 0.29 -0.11 -0.46 0.52 -0.11 -0.44 0.87 -0.11 -0.41 1.1 -0.11 -0.39 1.1 -0.11 -0.36 0.77 -0.11 -0.34 0.37 -0.11 -0.31 0.16 -0.11 -0.29 0.25 -0.11 -0.26 0.52 -0.11 -0.24 0.80 -0.11 -0.21 0.95 -0.11 -0.19 0.94 -0.11 -0.16 0.82 -0.11 -0.14 0.66 -0.11 -0.11 0.51 -0.11 -0.87E-01 0.37 -0.11 -0.63E-01 0.27 -0.11 -0.37E-01 0.20 -0.11 -0.13E-01 0.17 -0.11 0.13E-01 0.17 -0.11 0.38E-01 0.20 -0.11 0.63E-01 0.27 -0.11 0.88E-01 0.37 -0.11 0.11 0.51 -0.11 0.14 0.66 -0.11 0.16 0.82 -0.11 0.19 0.94 -0.11 0.21 0.95 -0.11 0.24 0.80 -0.11 0.26 0.52 -0.11 0.29 0.25 -0.11 0.31 0.16 -0.11 0.34 0.37 -0.11 0.36 0.77 -0.11 0.39 1.1 -0.11 0.41 1.1 -0.11 0.44 0.87 -0.11 0.46 0.52 -0.11 0.49 0.29 -0.87E-01 -0.49 0.25 -0.87E-01 -0.46 0.55 -0.87E-01 -0.44 1.0 -0.87E-01 -0.41 1.3 -0.87E-01 -0.39 1.3 -0.87E-01 -0.36 0.99 -0.87E-01 -0.34 0.51 -0.87E-01 -0.31 0.20 -0.87E-01 -0.29 0.19 -0.87E-01 -0.26 0.39 -0.87E-01 -0.24 0.61 -0.87E-01 -0.21 0.72 -0.87E-01 -0.19 0.71 -0.87E-01 -0.16 0.62 -0.87E-01 -0.14 0.49 -0.87E-01 -0.11 0.37 -0.87E-01 -0.87E-01 0.27 -0.87E-01 -0.63E-01 0.19 -0.87E-01 -0.37E-01 0.14 -0.87E-01 -0.13E-01 0.12 -0.87E-01 0.13E-01 0.12 -0.87E-01 0.38E-01 0.14 -0.87E-01 0.63E-01 0.19 -0.87E-01 0.88E-01 0.27 -0.87E-01 0.11 0.37 -0.87E-01 0.14 0.49 -0.87E-01 0.16 0.62 -0.87E-01 0.19 0.71 -0.87E-01 0.21 0.72 -0.87E-01 0.24 0.61 -0.87E-01 0.26 0.39 -0.87E-01 0.29 0.19 -0.87E-01 0.31 0.20 -0.87E-01 0.34 0.51 -0.87E-01 0.36 0.99 -0.87E-01 0.39 1.3 -0.87E-01 0.41 1.3 -0.87E-01 0.44 1.0 -0.87E-01 0.46 0.55 -0.87E-01 0.49 0.25 -0.63E-01 -0.49 0.41 -0.63E-01 -0.46 0.57 -0.63E-01 -0.44 0.85 -0.63E-01 -0.41 1.1 -0.63E-01 -0.39 1.2 -0.63E-01 -0.36 0.95 -0.63E-01 -0.34 0.54 -0.63E-01 -0.31 0.23 -0.63E-01 -0.29 0.16 -0.63E-01 -0.26 0.29 -0.63E-01 -0.24 0.45 -0.63E-01 -0.21 0.54 -0.63E-01 -0.19 0.54 -0.63E-01 -0.16 0.46 -0.63E-01 -0.14 0.36 -0.63E-01 -0.11 0.27 -0.63E-01 -0.87E-01 0.19 -0.63E-01 -0.63E-01 0.13 -0.63E-01 -0.37E-01 0.97E-01 -0.63E-01 -0.13E-01 0.79E-01 -0.63E-01 0.13E-01 0.79E-01 -0.63E-01 0.38E-01 0.97E-01 -0.63E-01 0.63E-01 0.13 -0.63E-01 0.88E-01 0.19 -0.63E-01 0.11 0.27 -0.63E-01 0.14 0.36 -0.63E-01 0.16 0.46 -0.63E-01 0.19 0.54 -0.63E-01 0.21 0.54 -0.63E-01 0.24 0.45 -0.63E-01 0.26 0.29 -0.63E-01 0.29 0.16 -0.63E-01 0.31 0.23 -0.63E-01 0.34 0.54 -0.63E-01 0.36 0.95 -0.63E-01 0.39 1.2 -0.63E-01 0.41 1.1 -0.63E-01 0.44 0.85 -0.63E-01 0.46 0.57 -0.63E-01 0.49 0.41 -0.37E-01 -0.49 0.66 -0.37E-01 -0.46 0.55 -0.37E-01 -0.44 0.50 -0.37E-01 -0.41 0.61 -0.37E-01 -0.39 0.73 -0.37E-01 -0.36 0.69 -0.37E-01 -0.34 0.47 -0.37E-01 -0.31 0.24 -0.37E-01 -0.29 0.15 -0.37E-01 -0.26 0.23 -0.37E-01 -0.24 0.35 -0.37E-01 -0.21 0.42 -0.37E-01 -0.19 0.42 -0.37E-01 -0.16 0.36 -0.37E-01 -0.14 0.28 -0.37E-01 -0.11 0.20 -0.37E-01 -0.87E-01 0.14 -0.37E-01 -0.63E-01 0.97E-01 -0.37E-01 -0.37E-01 0.69E-01 -0.37E-01 -0.13E-01 0.56E-01 -0.37E-01 0.13E-01 0.56E-01 -0.37E-01 0.38E-01 0.69E-01 -0.37E-01 0.63E-01 0.97E-01 -0.37E-01 0.88E-01 0.14 -0.37E-01 0.11 0.20 -0.37E-01 0.14 0.28 -0.37E-01 0.16 0.36 -0.37E-01 0.19 0.42 -0.37E-01 0.21 0.42 -0.37E-01 0.24 0.35 -0.37E-01 0.26 0.23 -0.37E-01 0.29 0.15 -0.37E-01 0.31 0.24 -0.37E-01 0.34 0.47 -0.37E-01 0.36 0.69 -0.37E-01 0.39 0.73 -0.37E-01 0.41 0.61 -0.37E-01 0.44 0.50 -0.37E-01 0.46 0.55 -0.37E-01 0.49 0.66 -0.13E-01 -0.49 0.83 -0.13E-01 -0.46 0.52 -0.13E-01 -0.44 0.21 -0.13E-01 -0.41 0.18 -0.13E-01 -0.39 0.35 -0.13E-01 -0.36 0.45 -0.13E-01 -0.34 0.38 -0.13E-01 -0.31 0.22 -0.13E-01 -0.29 0.15 -0.13E-01 -0.26 0.20 -0.13E-01 -0.24 0.30 -0.13E-01 -0.21 0.37 -0.13E-01 -0.19 0.36 -0.13E-01 -0.16 0.31 -0.13E-01 -0.14 0.24 -0.13E-01 -0.11 0.17 -0.13E-01 -0.87E-01 0.12 -0.13E-01 -0.63E-01 0.79E-01 -0.13E-01 -0.37E-01 0.56E-01 -0.13E-01 -0.13E-01 0.46E-01 -0.13E-01 0.13E-01 0.46E-01 -0.13E-01 0.38E-01 0.56E-01 -0.13E-01 0.63E-01 0.79E-01 -0.13E-01 0.88E-01 0.12 -0.13E-01 0.11 0.17 -0.13E-01 0.14 0.24 -0.13E-01 0.16 0.31 -0.13E-01 0.19 0.36 -0.13E-01 0.21 0.37 -0.13E-01 0.24 0.30 -0.13E-01 0.26 0.20 -0.13E-01 0.29 0.15 -0.13E-01 0.31 0.22 -0.13E-01 0.34 0.38 -0.13E-01 0.36 0.45 -0.13E-01 0.39 0.35 -0.13E-01 0.41 0.18 -0.13E-01 0.44 0.21 -0.13E-01 0.46 0.52 -0.13E-01 0.49 0.83 0.13E-01 -0.49 0.83 0.13E-01 -0.46 0.52 0.13E-01 -0.44 0.21 0.13E-01 -0.41 0.18 0.13E-01 -0.39 0.35 0.13E-01 -0.36 0.45 0.13E-01 -0.34 0.38 0.13E-01 -0.31 0.22 0.13E-01 -0.29 0.15 0.13E-01 -0.26 0.20 0.13E-01 -0.24 0.30 0.13E-01 -0.21 0.37 0.13E-01 -0.19 0.36 0.13E-01 -0.16 0.31 0.13E-01 -0.14 0.24 0.13E-01 -0.11 0.17 0.13E-01 -0.87E-01 0.12 0.13E-01 -0.63E-01 0.79E-01 0.13E-01 -0.37E-01 0.56E-01 0.13E-01 -0.13E-01 0.46E-01 0.13E-01 0.13E-01 0.46E-01 0.13E-01 0.38E-01 0.56E-01 0.13E-01 0.63E-01 0.79E-01 0.13E-01 0.88E-01 0.12 0.13E-01 0.11 0.17 0.13E-01 0.14 0.24 0.13E-01 0.16 0.31 0.13E-01 0.19 0.36 0.13E-01 0.21 0.37 0.13E-01 0.24 0.30 0.13E-01 0.26 0.20 0.13E-01 0.29 0.15 0.13E-01 0.31 0.22 0.13E-01 0.34 0.38 0.13E-01 0.36 0.45 0.13E-01 0.39 0.35 0.13E-01 0.41 0.18 0.13E-01 0.44 0.21 0.13E-01 0.46 0.52 0.13E-01 0.49 0.83 0.38E-01 -0.49 0.66 0.38E-01 -0.46 0.55 0.38E-01 -0.44 0.50 0.38E-01 -0.41 0.61 0.38E-01 -0.39 0.73 0.38E-01 -0.36 0.69 0.38E-01 -0.34 0.47 0.38E-01 -0.31 0.24 0.38E-01 -0.29 0.15 0.38E-01 -0.26 0.23 0.38E-01 -0.24 0.35 0.38E-01 -0.21 0.42 0.38E-01 -0.19 0.42 0.38E-01 -0.16 0.36 0.38E-01 -0.14 0.28 0.38E-01 -0.11 0.20 0.38E-01 -0.87E-01 0.14 0.38E-01 -0.63E-01 0.97E-01 0.38E-01 -0.37E-01 0.69E-01 0.38E-01 -0.13E-01 0.56E-01 0.38E-01 0.13E-01 0.56E-01 0.38E-01 0.38E-01 0.69E-01 0.38E-01 0.63E-01 0.97E-01 0.38E-01 0.88E-01 0.14 0.38E-01 0.11 0.20 0.38E-01 0.14 0.28 0.38E-01 0.16 0.36 0.38E-01 0.19 0.42 0.38E-01 0.21 0.42 0.38E-01 0.24 0.35 0.38E-01 0.26 0.23 0.38E-01 0.29 0.15 0.38E-01 0.31 0.24 0.38E-01 0.34 0.47 0.38E-01 0.36 0.69 0.38E-01 0.39 0.73 0.38E-01 0.41 0.61 0.38E-01 0.44 0.50 0.38E-01 0.46 0.55 0.38E-01 0.49 0.66 0.63E-01 -0.49 0.41 0.63E-01 -0.46 0.57 0.63E-01 -0.44 0.85 0.63E-01 -0.41 1.1 0.63E-01 -0.39 1.2 0.63E-01 -0.36 0.95 0.63E-01 -0.34 0.54 0.63E-01 -0.31 0.23 0.63E-01 -0.29 0.16 0.63E-01 -0.26 0.29 0.63E-01 -0.24 0.45 0.63E-01 -0.21 0.54 0.63E-01 -0.19 0.54 0.63E-01 -0.16 0.46 0.63E-01 -0.14 0.36 0.63E-01 -0.11 0.27 0.63E-01 -0.87E-01 0.19 0.63E-01 -0.63E-01 0.13 0.63E-01 -0.37E-01 0.97E-01 0.63E-01 -0.13E-01 0.79E-01 0.63E-01 0.13E-01 0.79E-01 0.63E-01 0.38E-01 0.97E-01 0.63E-01 0.63E-01 0.13 0.63E-01 0.88E-01 0.19 0.63E-01 0.11 0.27 0.63E-01 0.14 0.36 0.63E-01 0.16 0.46 0.63E-01 0.19 0.54 0.63E-01 0.21 0.54 0.63E-01 0.24 0.45 0.63E-01 0.26 0.29 0.63E-01 0.29 0.16 0.63E-01 0.31 0.23 0.63E-01 0.34 0.54 0.63E-01 0.36 0.95 0.63E-01 0.39 1.2 0.63E-01 0.41 1.1 0.63E-01 0.44 0.85 0.63E-01 0.46 0.57 0.63E-01 0.49 0.41 0.88E-01 -0.49 0.25 0.88E-01 -0.46 0.55 0.88E-01 -0.44 1.0 0.88E-01 -0.41 1.3 0.88E-01 -0.39 1.3 0.88E-01 -0.36 0.99 0.88E-01 -0.34 0.51 0.88E-01 -0.31 0.20 0.88E-01 -0.29 0.19 0.88E-01 -0.26 0.39 0.88E-01 -0.24 0.61 0.88E-01 -0.21 0.72 0.88E-01 -0.19 0.71 0.88E-01 -0.16 0.62 0.88E-01 -0.14 0.49 0.88E-01 -0.11 0.37 0.88E-01 -0.87E-01 0.27 0.88E-01 -0.63E-01 0.19 0.88E-01 -0.37E-01 0.14 0.88E-01 -0.13E-01 0.12 0.88E-01 0.13E-01 0.12 0.88E-01 0.38E-01 0.14 0.88E-01 0.63E-01 0.19 0.88E-01 0.88E-01 0.27 0.88E-01 0.11 0.37 0.88E-01 0.14 0.49 0.88E-01 0.16 0.62 0.88E-01 0.19 0.71 0.88E-01 0.21 0.72 0.88E-01 0.24 0.61 0.88E-01 0.26 0.39 0.88E-01 0.29 0.19 0.88E-01 0.31 0.20 0.88E-01 0.34 0.51 0.88E-01 0.36 0.99 0.88E-01 0.39 1.3 0.88E-01 0.41 1.3 0.88E-01 0.44 1.0 0.88E-01 0.46 0.55 0.88E-01 0.49 0.25 0.11 -0.49 0.29 0.11 -0.46 0.52 0.11 -0.44 0.87 0.11 -0.41 1.1 0.11 -0.39 1.1 0.11 -0.36 0.77 0.11 -0.34 0.37 0.11 -0.31 0.16 0.11 -0.29 0.25 0.11 -0.26 0.52 0.11 -0.24 0.80 0.11 -0.21 0.95 0.11 -0.19 0.94 0.11 -0.16 0.82 0.11 -0.14 0.66 0.11 -0.11 0.51 0.11 -0.87E-01 0.37 0.11 -0.63E-01 0.27 0.11 -0.37E-01 0.20 0.11 -0.13E-01 0.17 0.11 0.13E-01 0.17 0.11 0.38E-01 0.20 0.11 0.63E-01 0.27 0.11 0.88E-01 0.37 0.11 0.11 0.51 0.11 0.14 0.66 0.11 0.16 0.82 0.11 0.19 0.94 0.11 0.21 0.95 0.11 0.24 0.80 0.11 0.26 0.52 0.11 0.29 0.25 0.11 0.31 0.16 0.11 0.34 0.37 0.11 0.36 0.77 0.11 0.39 1.1 0.11 0.41 1.1 0.11 0.44 0.87 0.11 0.46 0.52 0.11 0.49 0.29 0.14 -0.49 0.56 0.14 -0.46 0.55 0.14 -0.44 0.59 0.14 -0.41 0.65 0.14 -0.39 0.63 0.14 -0.36 0.48 0.14 -0.34 0.28 0.14 -0.31 0.21 0.14 -0.29 0.36 0.14 -0.26 0.67 0.14 -0.24 0.99 0.14 -0.21 1.2 0.14 -0.19 1.2 0.14 -0.16 1.1 0.14 -0.14 0.86 0.14 -0.11 0.66 0.14 -0.87E-01 0.49 0.14 -0.63E-01 0.36 0.14 -0.37E-01 0.28 0.14 -0.13E-01 0.24 0.14 0.13E-01 0.24 0.14 0.38E-01 0.28 0.14 0.63E-01 0.36 0.14 0.88E-01 0.49 0.14 0.11 0.66 0.14 0.14 0.86 0.14 0.16 1.1 0.14 0.19 1.2 0.14 0.21 1.2 0.14 0.24 0.99 0.14 0.26 0.67 0.14 0.29 0.36 0.14 0.31 0.21 0.14 0.34 0.28 0.14 0.36 0.48 0.14 0.39 0.63 0.14 0.41 0.65 0.14 0.44 0.59 0.14 0.46 0.55 0.14 0.49 0.56 0.16 -0.49 0.89 0.16 -0.46 0.63 0.16 -0.44 0.34 0.16 -0.41 0.24 0.16 -0.39 0.31 0.16 -0.36 0.38 0.16 -0.34 0.36 0.16 -0.31 0.35 0.16 -0.29 0.48 0.16 -0.26 0.76 0.16 -0.24 1.1 0.16 -0.21 1.3 0.16 -0.19 1.4 0.16 -0.16 1.3 0.16 -0.14 1.1 0.16 -0.11 0.82 0.16 -0.87E-01 0.62 0.16 -0.63E-01 0.46 0.16 -0.37E-01 0.36 0.16 -0.13E-01 0.31 0.16 0.13E-01 0.31 0.16 0.38E-01 0.36 0.16 0.63E-01 0.46 0.16 0.88E-01 0.62 0.16 0.11 0.82 0.16 0.14 1.1 0.16 0.16 1.3 0.16 0.19 1.4 0.16 0.21 1.3 0.16 0.24 1.1 0.16 0.26 0.76 0.16 0.29 0.48 0.16 0.31 0.35 0.16 0.34 0.36 0.16 0.36 0.38 0.16 0.39 0.31 0.16 0.41 0.24 0.16 0.44 0.34 0.16 0.46 0.63 0.16 0.49 0.89 0.19 -0.49 1.1 0.19 -0.46 0.66 0.19 -0.44 0.24 0.19 -0.41 0.11 0.19 -0.39 0.31 0.19 -0.36 0.56 0.19 -0.34 0.63 0.19 -0.31 0.55 0.19 -0.29 0.54 0.19 -0.26 0.71 0.19 -0.24 1.0 0.19 -0.21 1.3 0.19 -0.19 1.4 0.19 -0.16 1.4 0.19 -0.14 1.2 0.19 -0.11 0.94 0.19 -0.87E-01 0.71 0.19 -0.63E-01 0.54 0.19 -0.37E-01 0.42 0.19 -0.13E-01 0.36 0.19 0.13E-01 0.36 0.19 0.38E-01 0.42 0.19 0.63E-01 0.54 0.19 0.88E-01 0.71 0.19 0.11 0.94 0.19 0.14 1.2 0.19 0.16 1.4 0.19 0.19 1.4 0.19 0.21 1.3 0.19 0.24 1.0 0.19 0.26 0.71 0.19 0.29 0.54 0.19 0.31 0.55 0.19 0.34 0.63 0.19 0.36 0.56 0.19 0.39 0.31 0.19 0.41 0.11 0.19 0.44 0.24 0.19 0.46 0.66 0.19 0.49 1.1 0.21 -0.49 0.92 0.21 -0.46 0.56 0.21 -0.44 0.21 0.21 -0.41 0.22 0.21 -0.39 0.56 0.21 -0.36 0.90 0.21 -0.34 0.93 0.21 -0.31 0.70 0.21 -0.29 0.48 0.21 -0.26 0.50 0.21 -0.24 0.77 0.21 -0.21 1.1 0.21 -0.19 1.3 0.21 -0.16 1.3 0.21 -0.14 1.2 0.21 -0.11 0.95 0.21 -0.87E-01 0.72 0.21 -0.63E-01 0.54 0.21 -0.37E-01 0.42 0.21 -0.13E-01 0.37 0.21 0.13E-01 0.37 0.21 0.38E-01 0.42 0.21 0.63E-01 0.54 0.21 0.88E-01 0.72 0.21 0.11 0.95 0.21 0.14 1.2 0.21 0.16 1.3 0.21 0.19 1.3 0.21 0.21 1.1 0.21 0.24 0.77 0.21 0.26 0.50 0.21 0.29 0.48 0.21 0.31 0.70 0.21 0.34 0.93 0.21 0.36 0.90 0.21 0.39 0.56 0.21 0.41 0.22 0.21 0.44 0.21 0.21 0.46 0.56 0.21 0.49 0.92 0.24 -0.49 0.56 0.24 -0.46 0.34 0.24 -0.44 0.18 0.24 -0.41 0.34 0.24 -0.39 0.78 0.24 -0.36 1.1 0.24 -0.34 1.1 0.24 -0.31 0.75 0.24 -0.29 0.35 0.24 -0.26 0.23 0.24 -0.24 0.43 0.24 -0.21 0.77 0.24 -0.19 1.0 0.24 -0.16 1.1 0.24 -0.14 0.99 0.24 -0.11 0.80 0.24 -0.87E-01 0.61 0.24 -0.63E-01 0.45 0.24 -0.37E-01 0.35 0.24 -0.13E-01 0.30 0.24 0.13E-01 0.30 0.24 0.38E-01 0.35 0.24 0.63E-01 0.45 0.24 0.88E-01 0.61 0.24 0.11 0.80 0.24 0.14 0.99 0.24 0.16 1.1 0.24 0.19 1.0 0.24 0.21 0.77 0.24 0.24 0.43 0.24 0.26 0.23 0.24 0.29 0.35 0.24 0.31 0.75 0.24 0.34 1.1 0.24 0.36 1.1 0.24 0.39 0.78 0.24 0.41 0.34 0.24 0.44 0.18 0.24 0.46 0.34 0.24 0.49 0.56 0.26 -0.49 0.22 0.26 -0.46 0.12 0.26 -0.44 0.10 0.26 -0.41 0.33 0.26 -0.39 0.76 0.26 -0.36 1.1 0.26 -0.34 1.1 0.26 -0.31 0.72 0.26 -0.29 0.30 0.26 -0.26 0.11 0.26 -0.24 0.23 0.26 -0.21 0.50 0.26 -0.19 0.71 0.26 -0.16 0.76 0.26 -0.14 0.67 0.26 -0.11 0.52 0.26 -0.87E-01 0.39 0.26 -0.63E-01 0.29 0.26 -0.37E-01 0.23 0.26 -0.13E-01 0.20 0.26 0.13E-01 0.20 0.26 0.38E-01 0.23 0.26 0.63E-01 0.29 0.26 0.88E-01 0.39 0.26 0.11 0.52 0.26 0.14 0.67 0.26 0.16 0.76 0.26 0.19 0.71 0.26 0.21 0.50 0.26 0.24 0.23 0.26 0.26 0.11 0.26 0.29 0.30 0.26 0.31 0.72 0.26 0.34 1.1 0.26 0.36 1.1 0.26 0.39 0.76 0.26 0.41 0.33 0.26 0.44 0.10 0.26 0.46 0.12 0.26 0.49 0.22 0.29 -0.49 0.95E-01 0.29 -0.46 0.53E-01 0.29 -0.44 0.57E-01 0.29 -0.41 0.21 0.29 -0.39 0.50 0.29 -0.36 0.77 0.29 -0.34 0.84 0.29 -0.31 0.67 0.29 -0.29 0.43 0.29 -0.26 0.30 0.29 -0.24 0.35 0.29 -0.21 0.48 0.29 -0.19 0.54 0.29 -0.16 0.48 0.29 -0.14 0.36 0.29 -0.11 0.25 0.29 -0.87E-01 0.19 0.29 -0.63E-01 0.16 0.29 -0.37E-01 0.15 0.29 -0.13E-01 0.15 0.29 0.13E-01 0.15 0.29 0.38E-01 0.15 0.29 0.63E-01 0.16 0.29 0.88E-01 0.19 0.29 0.11 0.25 0.29 0.14 0.36 0.29 0.16 0.48 0.29 0.19 0.54 0.29 0.21 0.48 0.29 0.24 0.35 0.29 0.26 0.30 0.29 0.29 0.43 0.29 0.31 0.67 0.29 0.34 0.84 0.29 0.36 0.77 0.29 0.39 0.50 0.29 0.41 0.21 0.29 0.44 0.57E-01 0.29 0.46 0.53E-01 0.29 0.49 0.95E-01 0.31 -0.49 0.21 0.31 -0.46 0.20 0.31 -0.44 0.16 0.31 -0.41 0.14 0.31 -0.39 0.20 0.31 -0.36 0.34 0.31 -0.34 0.51 0.31 -0.31 0.62 0.31 -0.29 0.67 0.31 -0.26 0.72 0.31 -0.24 0.75 0.31 -0.21 0.70 0.31 -0.19 0.55 0.31 -0.16 0.35 0.31 -0.14 0.21 0.31 -0.11 0.16 0.31 -0.87E-01 0.20 0.31 -0.63E-01 0.23 0.31 -0.37E-01 0.24 0.31 -0.13E-01 0.22 0.31 0.13E-01 0.22 0.31 0.38E-01 0.24 0.31 0.63E-01 0.23 0.31 0.88E-01 0.20 0.31 0.11 0.16 0.31 0.14 0.21 0.31 0.16 0.35 0.31 0.19 0.55 0.31 0.21 0.70 0.31 0.24 0.75 0.31 0.26 0.72 0.31 0.29 0.67 0.31 0.31 0.62 0.31 0.34 0.51 0.31 0.36 0.34 0.31 0.39 0.20 0.31 0.41 0.14 0.31 0.44 0.16 0.31 0.46 0.20 0.31 0.49 0.21 0.34 -0.49 0.41 0.34 -0.46 0.48 0.34 -0.44 0.48 0.34 -0.41 0.33 0.34 -0.39 0.14 0.34 -0.36 0.66E-01 0.34 -0.34 0.21 0.34 -0.31 0.51 0.34 -0.29 0.84 0.34 -0.26 1.1 0.34 -0.24 1.1 0.34 -0.21 0.93 0.34 -0.19 0.63 0.34 -0.16 0.36 0.34 -0.14 0.28 0.34 -0.11 0.37 0.34 -0.87E-01 0.51 0.34 -0.63E-01 0.54 0.34 -0.37E-01 0.47 0.34 -0.13E-01 0.38 0.34 0.13E-01 0.38 0.34 0.38E-01 0.47 0.34 0.63E-01 0.54 0.34 0.88E-01 0.51 0.34 0.11 0.37 0.34 0.14 0.28 0.34 0.16 0.36 0.34 0.19 0.63 0.34 0.21 0.93 0.34 0.24 1.1 0.34 0.26 1.1 0.34 0.29 0.84 0.34 0.31 0.51 0.34 0.34 0.21 0.34 0.36 0.66E-01 0.34 0.39 0.14 0.34 0.41 0.33 0.34 0.44 0.48 0.34 0.46 0.48 0.34 0.49 0.41 0.36 -0.49 0.52 0.36 -0.46 0.75 0.36 -0.44 0.92 0.36 -0.41 0.81 0.36 -0.39 0.45 0.36 -0.36 0.11 0.36 -0.34 0.66E-01 0.36 -0.31 0.34 0.36 -0.29 0.77 0.36 -0.26 1.1 0.36 -0.24 1.1 0.36 -0.21 0.90 0.36 -0.19 0.56 0.36 -0.16 0.38 0.36 -0.14 0.48 0.36 -0.11 0.77 0.36 -0.87E-01 0.99 0.36 -0.63E-01 0.95 0.36 -0.37E-01 0.69 0.36 -0.13E-01 0.45 0.36 0.13E-01 0.45 0.36 0.38E-01 0.69 0.36 0.63E-01 0.95 0.36 0.88E-01 0.99 0.36 0.11 0.77 0.36 0.14 0.48 0.36 0.16 0.38 0.36 0.19 0.56 0.36 0.21 0.90 0.36 0.24 1.1 0.36 0.26 1.1 0.36 0.29 0.77 0.36 0.31 0.34 0.36 0.34 0.66E-01 0.36 0.36 0.11 0.36 0.39 0.45 0.36 0.41 0.81 0.36 0.44 0.92 0.36 0.46 0.75 0.36 0.49 0.52 0.39 -0.49 0.47 0.39 -0.46 0.88 0.39 -0.44 1.3 0.39 -0.41 1.4 0.39 -0.39 0.98 0.39 -0.36 0.45 0.39 -0.34 0.14 0.39 -0.31 0.20 0.39 -0.29 0.50 0.39 -0.26 0.76 0.39 -0.24 0.78 0.39 -0.21 0.56 0.39 -0.19 0.31 0.39 -0.16 0.31 0.39 -0.14 0.63 0.39 -0.11 1.1 0.39 -0.87E-01 1.3 0.39 -0.63E-01 1.2 0.39 -0.37E-01 0.73 0.39 -0.13E-01 0.35 0.39 0.13E-01 0.35 0.39 0.38E-01 0.73 0.39 0.63E-01 1.2 0.39 0.88E-01 1.3 0.39 0.11 1.1 0.39 0.14 0.63 0.39 0.16 0.31 0.39 0.19 0.31 0.39 0.21 0.56 0.39 0.24 0.78 0.39 0.26 0.76 0.39 0.29 0.50 0.39 0.31 0.20 0.39 0.34 0.14 0.39 0.36 0.45 0.39 0.39 0.98 0.39 0.41 1.4 0.39 0.44 1.3 0.39 0.46 0.88 0.39 0.49 0.47 0.41 -0.49 0.32 0.41 -0.46 0.81 0.41 -0.44 1.4 0.41 -0.41 1.6 0.41 -0.39 1.4 0.41 -0.36 0.81 0.41 -0.34 0.33 0.41 -0.31 0.14 0.41 -0.29 0.21 0.41 -0.26 0.33 0.41 -0.24 0.34 0.41 -0.21 0.22 0.41 -0.19 0.11 0.41 -0.16 0.24 0.41 -0.14 0.65 0.41 -0.11 1.1 0.41 -0.87E-01 1.3 0.41 -0.63E-01 1.1 0.41 -0.37E-01 0.61 0.41 -0.13E-01 0.18 0.41 0.13E-01 0.18 0.41 0.38E-01 0.61 0.41 0.63E-01 1.1 0.41 0.88E-01 1.3 0.41 0.11 1.1 0.41 0.14 0.65 0.41 0.16 0.24 0.41 0.19 0.11 0.41 0.21 0.22 0.41 0.24 0.34 0.41 0.26 0.33 0.41 0.29 0.21 0.41 0.31 0.14 0.41 0.34 0.33 0.41 0.36 0.81 0.41 0.39 1.4 0.41 0.41 1.6 0.41 0.44 1.4 0.41 0.46 0.81 0.41 0.49 0.32 0.44 -0.49 0.19 0.44 -0.46 0.59 0.44 -0.44 1.1 0.44 -0.41 1.4 0.44 -0.39 1.3 0.44 -0.36 0.92 0.44 -0.34 0.48 0.44 -0.31 0.16 0.44 -0.29 0.57E-01 0.44 -0.26 0.10 0.44 -0.24 0.18 0.44 -0.21 0.21 0.44 -0.19 0.24 0.44 -0.16 0.34 0.44 -0.14 0.59 0.44 -0.11 0.87 0.44 -0.87E-01 1.0 0.44 -0.63E-01 0.85 0.44 -0.37E-01 0.50 0.44 -0.13E-01 0.21 0.44 0.13E-01 0.21 0.44 0.38E-01 0.50 0.44 0.63E-01 0.85 0.44 0.88E-01 1.0 0.44 0.11 0.87 0.44 0.14 0.59 0.44 0.16 0.34 0.44 0.19 0.24 0.44 0.21 0.21 0.44 0.24 0.18 0.44 0.26 0.10 0.44 0.29 0.57E-01 0.44 0.31 0.16 0.44 0.34 0.48 0.44 0.36 0.92 0.44 0.39 1.3 0.44 0.41 1.4 0.44 0.44 1.1 0.44 0.46 0.59 0.44 0.49 0.19 0.46 -0.49 0.12 0.46 -0.46 0.31 0.46 -0.44 0.59 0.46 -0.41 0.81 0.46 -0.39 0.88 0.46 -0.36 0.75 0.46 -0.34 0.48 0.46 -0.31 0.20 0.46 -0.29 0.53E-01 0.46 -0.26 0.12 0.46 -0.24 0.34 0.46 -0.21 0.56 0.46 -0.19 0.66 0.46 -0.16 0.63 0.46 -0.14 0.55 0.46 -0.11 0.52 0.46 -0.87E-01 0.55 0.46 -0.63E-01 0.57 0.46 -0.37E-01 0.55 0.46 -0.13E-01 0.52 0.46 0.13E-01 0.52 0.46 0.38E-01 0.55 0.46 0.63E-01 0.57 0.46 0.88E-01 0.55 0.46 0.11 0.52 0.46 0.14 0.55 0.46 0.16 0.63 0.46 0.19 0.66 0.46 0.21 0.56 0.46 0.24 0.34 0.46 0.26 0.12 0.46 0.29 0.53E-01 0.46 0.31 0.20 0.46 0.34 0.48 0.46 0.36 0.75 0.46 0.39 0.88 0.46 0.41 0.81 0.46 0.44 0.59 0.46 0.46 0.31 0.46 0.49 0.12 0.49 -0.49 0.10 0.49 -0.46 0.12 0.49 -0.44 0.19 0.49 -0.41 0.32 0.49 -0.39 0.47 0.49 -0.36 0.52 0.49 -0.34 0.41 0.49 -0.31 0.21 0.49 -0.29 0.95E-01 0.49 -0.26 0.22 0.49 -0.24 0.56 0.49 -0.21 0.92 0.49 -0.19 1.1 0.49 -0.16 0.89 0.49 -0.14 0.56 0.49 -0.11 0.29 0.49 -0.87E-01 0.25 0.49 -0.63E-01 0.41 0.49 -0.37E-01 0.66 0.49 -0.13E-01 0.83 0.49 0.13E-01 0.83 0.49 0.38E-01 0.66 0.49 0.63E-01 0.41 0.49 0.88E-01 0.25 0.49 0.11 0.29 0.49 0.14 0.56 0.49 0.16 0.89 0.49 0.19 1.1 0.49 0.21 0.92 0.49 0.24 0.56 0.49 0.26 0.22 0.49 0.29 0.95E-01 0.49 0.31 0.21 0.49 0.34 0.41 0.49 0.36 0.52 0.49 0.39 0.47 0.49 0.41 0.32 0.49 0.44 0.19 0.49 0.46 0.12 0.49 0.49 0.10 ngraph-gtk-6.06.13/demo/Makefile.am0000644000175000017500000000124312241111703013622 00000000000000demodir = $(pkgdatadir)/demo dist_demo_DATA = demo1.dat demo2.dat demo3.dat demo4.dat demo6.dat \ demo5a.ngp demo5b.ngp demo5c.ngp demo5d.ngp demo5e.ngp nodist_demo_DATA = demo.ngp demo1.ngp demo2.ngp demo3.ngp demo4.ngp \ demo6.ngp EXTRA_DIST = demo.ngp.in demo1.ngp.in demo2.ngp.in demo3.ngp.in \ demo4.ngp.in demo6.ngp.in demo.ngp: Makefile demo1.ngp: Makefile demo2.ngp: Makefile demo3.ngp: Makefile demo4.ngp: Makefile demo6.ngp: Makefile SUFFIXES = .ngp.in .ngp .ngp.in.ngp: sh ../pathconv.sh "$(demodir)" "$(demodir)" "$(demodir)" "$(demodir)" "$(demodir)" "$(demodir)" "$(demodir)" $< CLEANFILES = demo.ngp demo1.ngp demo2.ngp demo3.ngp demo4.ngp demo6.ngp ngraph-gtk-6.06.13/demo/demo5e.ngp0000644000175000017500000000174612241111703013462 00000000000000#! ngraph # new text text::x=3000 text::y=6500 text::font="Sans-serif" text::style=1 text::text="Demo #5E: AXIS" # for i in `seq 0 3000 15000` do new axis name:axis${i} axis::min=0.0 axis::max=0.145 axis::inc=0.01 axis::type=linear axis::x=11000 axis::y=15000 axis::direction=$i axis::length=8000 axis::gauge=both axis::num=left axis::num_align=center axis::num_direction=normal axis::num_shift_n=300 axis::num_log_pow=TRUE axis::num_format="%g" axis::num_no_zero=true axis::num_pt=1200 axis::arrow=end done # for i in `seq 18000 3000 33000` do new axis name:axis${i} axis::min=0.0 axis::max=0.145 axis::inc=0.01 axis::type=linear axis::x=11000 axis::y=15000 axis::direction=$i axis::length=8000 axis::gauge=both axis::num=left axis::num_align=center axis::num_direction=parallel2 axis::num_shift_n=300 axis::num_log_pow=TRUE axis::num_format="%g" axis::num_no_zero=true axis::num_pt=1200 axis::arrow=end done # new gra ngraph-gtk-6.06.13/demo/demo5c.ngp0000644000175000017500000000376012241111703013456 00000000000000#! ngraph # new text text::x=3000 text::y=6500 text::font="Sans-serif" text::style=1 text::text="Demo #5C: TEXT" # for i in `seq 0 4500 31500` do new text text::x=11000 text::y=13500 text::pt=6000 text::font=Sans-serif text::style=3 text::direction=$i text::R=0xff text::G=0xcf text::B=0xff text::A=0x7f text::text=" "${system::name} done # Y=8000 for i in "Hello, world!" \ "Здравей, свят!" \ "Hola, món!" \ "Hej verden!" \ "Hallo, Welt!" \ "Γεια σου, κόσμε!" \ "Saluton, mondo!" \ "¡Hola mundo!" \ "Tere kõik!" \ "Kaixo, mundu!" \ "سلام بر همه!" \ "Terve maailma!" \ "Bonjour, le monde!" \ "Dia duit, a dhomhain!" \ "¡Ola, mundo!" do new text text::x=500 text::y=${Y} text::pt=2000 text::font=Serif text::direction=0 text::text="${i}" Y=`iexpr $Y+800` done Y=8000 for i in "!םלועה לכל םולש" \ "Pozdrav, svijete!" \ "Szia Világ!" \ "Halo, dunia!" \ "Salve, mondo!" \ "世界よ、こんにちは!" \ "სალამი მსოფლიოს!" \ "안녕하세요, 여러분!" \ "Sveika, pasaule!" \ "Hello, Duniaku!" \ "Hei, verden!" \ "Hallo, wereld!" \ "Hei, verda!" \ "Witaj świecie!" \ "Olá, mundo!" do new text text::x=7500 text::y=${Y} text::pt=2000 text::font=Serif text::direction=0 text::text="${i}" Y=`iexpr $Y+800` done Y=8000 for i in "Bom dia, mundo!" \ "Chau, muond!" \ "Hello, world!" \ "Здравствуй, мир!" \ "Ahoj, svet!" \ "Zdravo, svet!" \ "Поздрав свима!" \ "Hej, världen!" \ "สวัสดี, ชาวโลก!" \ "Merhaba, dünya!" \ "Привіт світ!" \ "Chào thế giới !" \ "世界你好!" \ "哈囉,大家好!" do new text text::x=15500 text::y=${Y} text::pt=2000 text::font=Serif text::direction=0 text::text="${i}" Y=`iexpr $Y+800` done # new text R:255 G:0 B:0 text::x=3000 text::y=22000 text::pt=4000 text::font=Serif text::style=3 text::direction=0 text::text="date: %{system::date:0}\ntime: %{system::time:0}" # new gra ngraph-gtk-6.06.13/demo/demo.ngp.in0000644000175000017500000000266512241111703013636 00000000000000#! ngraph set +e ID=${gra:viewer:id} new sarray name="FILE" for demo in demo1 demo2 demo3 demo4 demo5a demo5b demo5c demo5d demo5e demo6 do sarray::add $demo done new sarray name="CAPTION" sarray::add "Demo #_1: COLOR(), RGB(), HSB() and MARKSIZE() FUNCTION" sarray::add "Demo #_2: LEAST SQUARE FIT" sarray::add "Demo #_3: AXIS DIVISION" sarray::add "Demo #_4: MULTI GRAPH" sarray::add "Demo #5_A: ARROW" sarray::add "Demo #5_B: MARK" sarray::add "Demo #5_C: TEXT" sarray::add "Demo #5_D: CURVE" sarray::add "Demo #5_E: AXIS" sarray::add "Demo #_6: POLYGON PLOT" sarray::add "_Quit demo" caption="'${sarray::join="' '"}'" caption_num="${sarray:CAPTION:num}" del sarray:CAPTION new dialog dialog::title="demo" dialog::caption="select demonstration" dialog::select="0" while true do FILE_INDEX=`get dialog: -field radio:"$caption"` if [ -z "$FILE_INDEX" ] then break fi if [ "$FILE_INDEX" -ge ${sarray:FILE:num} ] then break fi demo=`get sarray:FILE -field get:$FILE_INDEX` for drawrable in `derive -instance draw` do del ${drawrable}:0-! done gra:$ID:clear . DOCDIRDEF/${demo}.ngp ID2=${gra::id} if [ $ID != $ID2 ] then gra:$ID:close for field in top_margin left_margin zoom draw_obj do cpy gra:$ID2,$ID $field done gra:$ID:open del gra:$ID2 fi menu::draw dialog::select=`iexpr "($FILE_INDEX + 1) \\ $caption_num"` done del dialog del sarray:FILE set -e ngraph-gtk-6.06.13/demo/demo3.dat0000644000175000017500000000016512241111703013271 00000000000000Samp.1 0.5 0.05 Samp.2 2.1 0.9 Samp.3 2.9 1.0 Samp.4 4.5 1.01 Samp.5 5.0 1.02 Samp.6 5.5 1.03 Samp.7 5.8 1.04 ngraph-gtk-6.06.13/demo/demo4.dat0000644000175000017500000001162712241111703013277 00000000000000-mxX -myGAMMA(X) -x2 -y1 %CALC.ADI 0.00000000000000E+0000 5.00000000000000E+0000 5.00000000000000E+0000 100 0 1 5.00000000000000E-0002, 5.00000000000000E-0002 1.00000000000000E-0001, 1.00000000000000E-0001 1.50000000000000E-0001, 1.50000000000000E-0001 2.00000000000000E-0001, 2.00000000000000E-0001 2.50000000000000E-0001, 2.50000000000000E-0001 3.00000000000000E-0001, 3.00000000000000E-0001 3.50000000000000E-0001, 3.50000000000000E-0001 4.00000000000000E-0001, 4.00000000000000E-0001 4.50000000000000E-0001, 4.50000000000000E-0001 5.00000000000000E-0001, 5.00000000000000E-0001 5.50000000000000E-0001, 5.50000000000000E-0001 6.00000000000000E-0001, 6.00000000000000E-0001 6.50000000000000E-0001, 6.50000000000000E-0001 7.00000000000000E-0001, 7.00000000000000E-0001 7.50000000000000E-0001, 7.50000000000000E-0001 8.00000000000000E-0001, 8.00000000000000E-0001 8.50000000000000E-0001, 8.50000000000000E-0001 9.00000000000000E-0001, 9.00000000000000E-0001 9.50000000000000E-0001, 9.50000000000000E-0001 1.00000000000000E+0000, 1.00000000000000E+0000 1.05000000000000E+0000, 1.05000000000000E+0000 1.10000000000000E+0000, 1.10000000000000E+0000 1.15000000000000E+0000, 1.15000000000000E+0000 1.20000000000000E+0000, 1.20000000000000E+0000 1.25000000000000E+0000, 1.25000000000000E+0000 1.30000000000000E+0000, 1.30000000000000E+0000 1.35000000000000E+0000, 1.35000000000000E+0000 1.40000000000000E+0000, 1.40000000000000E+0000 1.45000000000000E+0000, 1.45000000000000E+0000 1.50000000000000E+0000, 1.50000000000000E+0000 1.55000000000000E+0000, 1.55000000000000E+0000 1.60000000000000E+0000, 1.60000000000000E+0000 1.65000000000000E+0000, 1.65000000000000E+0000 1.70000000000000E+0000, 1.70000000000000E+0000 1.75000000000000E+0000, 1.75000000000000E+0000 1.80000000000000E+0000, 1.80000000000000E+0000 1.85000000000000E+0000, 1.85000000000000E+0000 1.90000000000000E+0000, 1.90000000000000E+0000 1.95000000000000E+0000, 1.95000000000000E+0000 2.00000000000000E+0000, 2.00000000000000E+0000 2.05000000000000E+0000, 2.05000000000000E+0000 2.10000000000000E+0000, 2.10000000000000E+0000 2.15000000000000E+0000, 2.15000000000000E+0000 2.20000000000000E+0000, 2.20000000000000E+0000 2.25000000000000E+0000, 2.25000000000000E+0000 2.30000000000000E+0000, 2.30000000000000E+0000 2.35000000000000E+0000, 2.35000000000000E+0000 2.40000000000000E+0000, 2.40000000000000E+0000 2.45000000000000E+0000, 2.45000000000000E+0000 2.50000000000000E+0000, 2.50000000000000E+0000 2.55000000000000E+0000, 2.55000000000000E+0000 2.60000000000000E+0000, 2.60000000000000E+0000 2.65000000000000E+0000, 2.65000000000000E+0000 2.70000000000000E+0000, 2.70000000000000E+0000 2.75000000000000E+0000, 2.75000000000000E+0000 2.80000000000000E+0000, 2.80000000000000E+0000 2.85000000000000E+0000, 2.85000000000000E+0000 2.90000000000000E+0000, 2.90000000000000E+0000 2.95000000000000E+0000, 2.95000000000000E+0000 3.00000000000000E+0000, 3.00000000000000E+0000 3.05000000000000E+0000, 3.05000000000000E+0000 3.10000000000000E+0000, 3.10000000000000E+0000 3.15000000000000E+0000, 3.15000000000000E+0000 3.20000000000000E+0000, 3.20000000000000E+0000 3.25000000000000E+0000, 3.25000000000000E+0000 3.30000000000000E+0000, 3.30000000000000E+0000 3.35000000000000E+0000, 3.35000000000000E+0000 3.40000000000000E+0000, 3.40000000000000E+0000 3.45000000000000E+0000, 3.45000000000000E+0000 3.50000000000000E+0000, 3.50000000000000E+0000 3.55000000000000E+0000, 3.55000000000000E+0000 3.60000000000000E+0000, 3.60000000000000E+0000 3.65000000000000E+0000, 3.65000000000000E+0000 3.70000000000000E+0000, 3.70000000000000E+0000 3.75000000000000E+0000, 3.75000000000000E+0000 3.80000000000000E+0000, 3.80000000000000E+0000 3.85000000000000E+0000, 3.85000000000000E+0000 3.90000000000000E+0000, 3.90000000000000E+0000 3.95000000000000E+0000, 3.95000000000000E+0000 4.00000000000000E+0000, 4.00000000000000E+0000 4.05000000000000E+0000, 4.05000000000000E+0000 4.10000000000000E+0000, 4.10000000000000E+0000 4.15000000000000E+0000, 4.15000000000000E+0000 4.20000000000000E+0000, 4.20000000000000E+0000 4.25000000000000E+0000, 4.25000000000000E+0000 4.30000000000000E+0000, 4.30000000000000E+0000 4.35000000000000E+0000, 4.35000000000000E+0000 4.40000000000000E+0000, 4.40000000000000E+0000 4.45000000000000E+0000, 4.45000000000000E+0000 4.50000000000000E+0000, 4.50000000000000E+0000 4.55000000000000E+0000, 4.55000000000000E+0000 4.60000000000000E+0000, 4.60000000000000E+0000 4.65000000000000E+0000, 4.65000000000000E+0000 4.70000000000000E+0000, 4.70000000000000E+0000 4.75000000000000E+0000, 4.75000000000000E+0000 4.80000000000000E+0000, 4.80000000000000E+0000 4.85000000000000E+0000, 4.85000000000000E+0000 4.90000000000000E+0000, 4.90000000000000E+0000 4.95000000000000E+0000, 4.95000000000000E+0000 5.00000000000000E+0000, 5.00000000000000E+0000 ngraph-gtk-6.06.13/demo/demo2.dat0000644000175000017500000000550012241111703013266 00000000000000-2.3750000000E+00 6.3853206635E+00 -5.3208610535E-01 5.1208610535E-01 -1.8750000000E+00 1.6853206635E+01 -5.6208610535E-01 5.6208610535E-01 -1.7500000000E+00 2.5078868867E+01 -1.8241024023E+00 1.8241024023E+00 -1.6250000000E+00 3.0353093393E+01 -1.7673212325E+00 1.7673212325E+00 -1.5000000000E+00 3.1408799923E+01 -9.3877496140E-01 9.3877496140E-01 -1.3750000000E+00 3.2429282847E+01 -1.1462057545E+00 1.1462057545E+00 -1.2500000000E+00 3.3987725690E+01 -2.4259917514E+00 2.4259917514E+00 -1.1250000000E+00 2.8208945768E+01 -6.2218833831E-01 6.2218833831E-01 -1.0000000000E+00 2.7270073024E+01 -1.6350365122E+00 1.6350365122E+00 -8.7500000000E-01 2.0984815797E+01 -2.1126470994E-01 2.1126470994E-01 -7.5000000000E-01 1.8000241324E+01 -5.4064800555E-01 5.4064800555E-01 -6.2500000000E-01 1.7279030306E+01 -1.9953043375E+00 1.9953043375E+00 -5.0000000000E-01 1.3373603736E+01 -1.7649268679E+00 1.7649268679E+00 -3.7500000000E-01 8.7321208054E+00 -1.0079518822E+00 1.0079518822E+00 -2.5000000000E-01 7.7763810440E+00 -1.8886788032E+00 1.8886788032E+00 -1.2500000000E-01 4.1519917478E+00 -1.2005228514E+00 1.2005228514E+00 0.0000000000E+00 1.6535825690E+00 -8.2679128449E-01 8.2679128449E-01 1.2500000000E-01 -1.1561405845E+00 -4.8379292712E-02 1.1379292712E+00 2.5000000000E-01 -1.5127512394E-02 -1.0075729626E+00 1.5075729626E+00 3.7500000000E-01 -2.0045571146E+00 -1.8493152573E-01 1.8493152573E+00 5.0000000000E-01 1.1148215260E+00 -1.7292857630E+00 1.7292857630E+00 6.2500000000E-01 2.2247068724E+00 -2.1169158141E+00 2.1169158141E+00 7.5000000000E-01 3.3490430529E+00 -2.3996191827E+00 2.3996191827E+00 8.7500000000E-01 1.7226515696E+00 -1.2371955358E+00 1.2371955358E+00 1.0000000000E+00 3.3536891581E+00 -1.6768445791E+00 1.6768445791E+00 1.1250000000E+00 3.5535274167E+00 -1.4162748167E+00 1.4162748167E+00 1.2500000000E+00 6.0451963649E+00 -2.3560942762E+00 2.3560942762E+00 1.3750000000E+00 4.9219230353E+00 -1.5772487491E+00 1.5772487491E+00 1.5000000000E+00 6.8925221867E+00 -2.4618860934E+00 2.4618860934E+00 1.6250000000E+00 6.3929323899E+00 -2.2472932213E+00 2.2472932213E+00 1.7500000000E+00 3.4379028028E+00 -9.4990843267E-01 9.4990843267E-01 1.8750000000E+00 3.4705525381E+00 -1.2882700434E+00 1.2882700434E+00 2.0000000000E+00 4.9368886871E+00 -2.4684443435E+00 2.4684443435E+00 2.1250000000E+00 4.1309615225E-01 -7.4583945796E-01 7.4583945796E-01 2.2500000000E+00 1.3865790900E+00 -1.8138950138E+00 1.8138950138E+00 2.3750000000E+00 -3.9947766964E+00 -1.7688228167E-01 3.7688228167E+00 2.5000000000E+00 -2.5849221658E+00 -8.1691391708E-01 3.1691391708E+00 2.6250000000E+00 2.6704813354E-02 -1.3252878315E+00 0.3252878315E+00 2.7500000000E+00 -3.3922680540E+00 -4.4693237927E-01 4.4693237927E+00 2.8750000000E+00 1.6707247891E+00 -0.2725114424E+00 0.2725114424E+00 ngraph-gtk-6.06.13/demo/demo6.dat0000644000175000017500000027525012241111703013305 00000000000000 40.0000 0.0000 1.000 42.8995 2.6990 1.000 45.4200 5.7379 1.000 47.3606 9.0345 1.000 48.5569 12.4673 1.000 48.8964 15.8874 1.000 48.3264 19.1338 1.000 46.8587 22.0500 1.000 44.5671 24.5010 1.000 41.5799 26.3874 1.000 38.0670 27.6573 1.000 34.2243 28.3128 1.000 30.2551 28.4114 1.000 26.3523 28.0624 1.000 22.6811 27.4168 1.000 19.3655 26.6543 1.000 16.4787 25.9663 1.000 14.0393 25.5374 1.000 12.0123 25.5275 1.000 10.3162 26.0558 1.000 8.8340 27.1882 1.000 7.4279 28.9297 1.000 5.9560 31.2224 1.000 4.2888 33.9491 1.000 2.3242 36.9427 1.000 -0.0000 40.0000 1.000 -2.6990 42.8995 1.000 -5.7379 45.4200 1.000 -9.0345 47.3606 1.000 -12.4673 48.5569 1.000 -15.8874 48.8964 1.000 -19.1338 48.3264 1.000 -22.0500 46.8587 1.000 -24.5010 44.5671 1.000 -26.3874 41.5799 1.000 -27.6573 38.0670 1.000 -28.3128 34.2243 1.000 -28.4114 30.2551 1.000 -28.0624 26.3523 1.000 -27.4168 22.6811 1.000 -26.6543 19.3655 1.000 -25.9663 16.4787 1.000 -25.5374 14.0393 1.000 -25.5275 12.0123 1.000 -26.0558 10.3162 1.000 -27.1882 8.8340 1.000 -28.9297 7.4279 1.000 -31.2224 5.9560 1.000 -33.9491 4.2888 1.000 -36.9427 2.3242 1.000 -40.0000 -0.0000 1.000 -42.8995 -2.6990 1.000 -45.4200 -5.7379 1.000 -47.3606 -9.0345 1.000 -48.5569 -12.4673 1.000 -48.8964 -15.8874 1.000 -48.3264 -19.1338 1.000 -46.8587 -22.0500 1.000 -44.5671 -24.5010 1.000 -41.5799 -26.3874 1.000 -38.0670 -27.6573 1.000 -34.2243 -28.3128 1.000 -30.2551 -28.4114 1.000 -26.3523 -28.0624 1.000 -22.6811 -27.4168 1.000 -19.3655 -26.6543 1.000 -16.4787 -25.9663 1.000 -14.0393 -25.5374 1.000 -12.0123 -25.5275 1.000 -10.3162 -26.0558 1.000 -8.8340 -27.1882 1.000 -7.4279 -28.9297 1.000 -5.9560 -31.2224 1.000 -4.2888 -33.9491 1.000 -2.3242 -36.9427 1.000 -0.0000 -40.0000 1.000 2.6990 -42.8995 1.000 5.7379 -45.4200 1.000 9.0345 -47.3606 1.000 12.4673 -48.5569 1.000 15.8874 -48.8964 1.000 19.1338 -48.3264 1.000 22.0500 -46.8587 1.000 24.5010 -44.5671 1.000 26.3874 -41.5799 1.000 27.6573 -38.0670 1.000 28.3128 -34.2243 1.000 28.4114 -30.2551 1.000 28.0624 -26.3523 1.000 27.4168 -22.6811 1.000 26.6543 -19.3655 1.000 25.9663 -16.4787 1.000 25.5374 -14.0393 1.000 25.5275 -12.0123 1.000 26.0558 -10.3162 1.000 27.1882 -8.8340 1.000 28.9297 -7.4279 1.000 31.2224 -5.9560 1.000 33.9491 -4.2888 1.000 36.9427 -2.3242 1.000 = = = 40.0017 0.1250 0.975 42.7913 2.8093 0.975 45.1560 5.8137 0.975 46.9072 9.0492 0.975 47.8961 12.3905 0.975 48.0269 15.6893 0.975 47.2639 18.7886 0.975 45.6343 21.5401 0.975 43.2248 23.8193 0.975 40.1722 25.5397 0.975 36.6509 26.6626 0.975 32.8563 27.2027 0.975 28.9867 27.2279 0.975 25.2259 26.8548 0.975 21.7273 26.2376 0.975 18.6009 25.5548 0.975 15.9059 24.9917 0.975 13.6478 24.7229 0.975 11.7808 24.8949 0.975 10.2156 25.6111 0.975 8.8315 26.9209 0.975 7.4909 28.8133 0.975 6.0561 31.2167 0.975 4.4048 34.0033 0.975 2.4450 36.9997 0.975 0.1250 40.0017 0.975 -2.5593 42.7913 0.975 -5.5637 45.1560 0.975 -8.7992 46.9072 0.975 -12.1405 47.8961 0.975 -15.4393 48.0269 0.975 -18.5386 47.2639 0.975 -21.2901 45.6343 0.975 -23.5693 43.2248 0.975 -25.2897 40.1722 0.975 -26.4126 36.6509 0.975 -26.9527 32.8563 0.975 -26.9779 28.9867 0.975 -26.6048 25.2259 0.975 -25.9876 21.7273 0.975 -25.3048 18.6009 0.975 -24.7417 15.9059 0.975 -24.4729 13.6478 0.975 -24.6449 11.7808 0.975 -25.3611 10.2156 0.975 -26.6709 8.8315 0.975 -28.5633 7.4909 0.975 -30.9667 6.0561 0.975 -33.7533 4.4048 0.975 -36.7497 2.4450 0.975 -39.7517 0.1250 0.975 -42.5413 -2.5593 0.975 -44.9060 -5.5637 0.975 -46.6572 -8.7992 0.975 -47.6461 -12.1405 0.975 -47.7769 -15.4393 0.975 -47.0139 -18.5386 0.975 -45.3843 -21.2901 0.975 -42.9748 -23.5693 0.975 -39.9222 -25.2897 0.975 -36.4009 -26.4126 0.975 -32.6063 -26.9527 0.975 -28.7367 -26.9779 0.975 -24.9759 -26.6048 0.975 -21.4773 -25.9876 0.975 -18.3509 -25.3048 0.975 -15.6559 -24.7417 0.975 -13.3978 -24.4729 0.975 -11.5308 -24.6449 0.975 -9.9656 -25.3611 0.975 -8.5815 -26.6709 0.975 -7.2409 -28.5633 0.975 -5.8061 -30.9667 0.975 -4.1548 -33.7533 0.975 -2.1950 -36.7497 0.975 0.1250 -39.7517 0.975 2.8093 -42.5413 0.975 5.8137 -44.9060 0.975 9.0492 -46.6572 0.975 12.3905 -47.6461 0.975 15.6893 -47.7769 0.975 18.7886 -47.0139 0.975 21.5401 -45.3843 0.975 23.8193 -42.9748 0.975 25.5397 -39.9222 0.975 26.6626 -36.4009 0.975 27.2027 -32.6063 0.975 27.2279 -28.7367 0.975 26.8548 -24.9759 0.975 26.2376 -21.4773 0.975 25.5548 -18.3509 0.975 24.9917 -15.6559 0.975 24.7229 -13.3978 0.975 24.8949 -11.5308 0.975 25.6111 -9.9656 0.975 26.9209 -8.5815 0.975 28.8133 -7.2409 0.975 31.2167 -5.8061 0.975 34.0033 -4.1548 0.975 36.9997 -2.1950 0.975 = = = 39.9536 0.2500 0.950 42.6195 2.9157 0.950 44.8190 5.8804 0.950 46.3763 9.0491 0.950 47.1586 12.2941 0.950 47.0864 15.4681 0.950 46.1407 18.4194 0.950 44.3631 21.0081 0.950 41.8516 23.1207 0.950 38.7508 24.6833 0.950 35.2378 25.6701 0.950 31.5063 26.1074 0.950 27.7486 26.0729 0.950 24.1387 25.6889 0.950 20.8175 25.1118 0.950 17.8814 24.5175 0.950 15.3758 24.0844 0.950 13.2937 23.9764 0.950 11.5793 24.3260 0.950 10.1368 25.2212 0.950 8.8426 26.6952 0.950 7.5604 28.7221 0.950 6.1573 31.2173 0.950 4.5192 34.0440 0.950 2.5636 37.0241 0.950 0.2500 39.9536 0.950 -2.4157 42.6195 0.950 -5.3804 44.8190 0.950 -8.5491 46.3763 0.950 -11.7941 47.1586 0.950 -14.9681 47.0864 0.950 -17.9194 46.1407 0.950 -20.5081 44.3631 0.950 -22.6207 41.8516 0.950 -24.1833 38.7508 0.950 -25.1701 35.2378 0.950 -25.6074 31.5063 0.950 -25.5729 27.7486 0.950 -25.1889 24.1387 0.950 -24.6118 20.8175 0.950 -24.0175 17.8814 0.950 -23.5844 15.3758 0.950 -23.4764 13.2937 0.950 -23.8260 11.5793 0.950 -24.7212 10.1368 0.950 -26.1952 8.8426 0.950 -28.2221 7.5604 0.950 -30.7173 6.1573 0.950 -33.5440 4.5192 0.950 -36.5241 2.5636 0.950 -39.4536 0.2500 0.950 -42.1195 -2.4157 0.950 -44.3190 -5.3804 0.950 -45.8763 -8.5491 0.950 -46.6586 -11.7941 0.950 -46.5864 -14.9681 0.950 -45.6407 -17.9194 0.950 -43.8631 -20.5081 0.950 -41.3516 -22.6207 0.950 -38.2508 -24.1833 0.950 -34.7378 -25.1701 0.950 -31.0063 -25.6074 0.950 -27.2486 -25.5729 0.950 -23.6387 -25.1889 0.950 -20.3175 -24.6118 0.950 -17.3814 -24.0175 0.950 -14.8758 -23.5844 0.950 -12.7937 -23.4764 0.950 -11.0793 -23.8260 0.950 -9.6368 -24.7212 0.950 -8.3426 -26.1952 0.950 -7.0604 -28.2221 0.950 -5.6573 -30.7173 0.950 -4.0192 -33.5440 0.950 -2.0636 -36.5241 0.950 0.2500 -39.4536 0.950 2.9157 -42.1195 0.950 5.8804 -44.3190 0.950 9.0491 -45.8763 0.950 12.2941 -46.6586 0.950 15.4681 -46.5864 0.950 18.4194 -45.6407 0.950 21.0081 -43.8631 0.950 23.1207 -41.3516 0.950 24.6833 -38.2508 0.950 25.6701 -34.7378 0.950 26.1074 -31.0063 0.950 26.0729 -27.2486 0.950 25.6889 -23.6387 0.950 25.1118 -20.3175 0.950 24.5175 -17.3814 0.950 24.0844 -14.8758 0.950 23.9764 -12.7937 0.950 24.3260 -11.0793 0.950 25.2212 -9.6368 0.950 26.6952 -8.3426 0.950 28.7221 -7.0604 0.950 31.2173 -5.6573 0.950 34.0440 -4.0192 0.950 37.0241 -2.0636 0.950 = = = 39.8515 0.3750 0.925 42.3815 3.0178 0.925 44.4079 5.9376 0.925 45.7687 9.0343 0.925 46.3466 12.1785 0.925 46.0789 15.2251 0.925 44.9618 18.0282 0.925 43.0507 20.4567 0.925 40.4538 22.4085 0.925 37.3216 23.8220 0.925 33.8331 24.6837 0.925 30.1789 25.0310 0.925 26.5444 24.9497 0.925 23.0930 24.5672 0.925 19.9530 24.0407 0.925 17.2071 23.5424 0.925 14.8875 23.2430 0.925 12.9753 23.2949 0.925 11.4058 23.8167 0.925 10.0775 24.8808 0.925 8.8651 26.5049 0.925 7.6345 28.6491 0.925 6.2585 31.2172 0.925 4.6310 34.0647 0.925 2.6799 37.0104 0.925 0.3750 39.8515 0.925 -2.2678 42.3815 0.925 -5.1876 44.4079 0.925 -8.2843 45.7687 0.925 -11.4285 46.3466 0.925 -14.4751 46.0789 0.925 -17.2782 44.9618 0.925 -19.7067 43.0507 0.925 -21.6585 40.4538 0.925 -23.0720 37.3216 0.925 -23.9337 33.8331 0.925 -24.2810 30.1789 0.925 -24.1997 26.5444 0.925 -23.8172 23.0930 0.925 -23.2907 19.9530 0.925 -22.7924 17.2071 0.925 -22.4930 14.8875 0.925 -22.5449 12.9753 0.925 -23.0667 11.4058 0.925 -24.1308 10.0775 0.925 -25.7549 8.8651 0.925 -27.8991 7.6345 0.925 -30.4672 6.2585 0.925 -33.3147 4.6310 0.925 -36.2604 2.6799 0.925 -39.1015 0.3750 0.925 -41.6315 -2.2678 0.925 -43.6579 -5.1876 0.925 -45.0187 -8.2843 0.925 -45.5966 -11.4285 0.925 -45.3289 -14.4751 0.925 -44.2118 -17.2782 0.925 -42.3007 -19.7067 0.925 -39.7038 -21.6585 0.925 -36.5716 -23.0720 0.925 -33.0831 -23.9337 0.925 -29.4289 -24.2810 0.925 -25.7944 -24.1997 0.925 -22.3430 -23.8172 0.925 -19.2030 -23.2907 0.925 -16.4571 -22.7924 0.925 -14.1375 -22.4930 0.925 -12.2253 -22.5449 0.925 -10.6558 -23.0667 0.925 -9.3275 -24.1308 0.925 -8.1151 -25.7549 0.925 -6.8845 -27.8991 0.925 -5.5085 -30.4672 0.925 -3.8810 -33.3147 0.925 -1.9299 -36.2604 0.925 0.3750 -39.1015 0.925 3.0178 -41.6315 0.925 5.9376 -43.6579 0.925 9.0343 -45.0187 0.925 12.1785 -45.5966 0.925 15.2251 -45.3289 0.925 18.0282 -44.2118 0.925 20.4567 -42.3007 0.925 22.4085 -39.7038 0.925 23.8220 -36.5716 0.925 24.6837 -33.0831 0.925 25.0310 -29.4289 0.925 24.9497 -25.7944 0.925 24.5672 -22.3430 0.925 24.0407 -19.2030 0.925 23.5424 -16.4571 0.925 23.2430 -14.1375 0.925 23.2949 -12.2253 0.925 23.8167 -10.6558 0.925 24.8808 -9.3275 0.925 26.5049 -8.1151 0.925 28.6491 -6.8845 0.925 31.2172 -5.5085 0.925 34.0647 -3.8810 0.925 37.0104 -1.9299 0.925 = = = 39.6916 0.5000 0.900 42.0750 3.1157 0.900 43.9223 5.9855 0.900 45.0855 9.0051 0.900 45.4632 12.0446 0.900 45.0084 14.9617 0.900 43.7324 17.6169 0.900 41.7030 19.8886 0.900 39.0371 21.6860 0.900 35.8904 22.9594 0.900 32.4420 23.7072 0.900 28.8785 23.9768 0.900 25.3773 23.8613 0.900 22.0909 23.4920 0.900 19.1347 23.0254 0.900 16.5779 22.6293 0.900 14.4399 22.4658 0.900 12.6910 22.6753 0.900 11.2582 23.3623 0.900 10.0356 24.5841 0.900 8.8971 26.3436 0.900 7.7117 28.5876 0.900 6.3582 31.2099 0.900 4.7396 34.0595 0.900 2.7935 36.9534 0.900 0.5000 39.6916 0.900 -2.1157 42.0750 0.900 -4.9855 43.9223 0.900 -8.0051 45.0855 0.900 -11.0446 45.4632 0.900 -13.9617 45.0084 0.900 -16.6169 43.7324 0.900 -18.8886 41.7030 0.900 -20.6860 39.0371 0.900 -21.9594 35.8904 0.900 -22.7072 32.4420 0.900 -22.9768 28.8785 0.900 -22.8613 25.3773 0.900 -22.4920 22.0909 0.900 -22.0254 19.1347 0.900 -21.6293 16.5779 0.900 -21.4658 14.4399 0.900 -21.6753 12.6910 0.900 -22.3623 11.2582 0.900 -23.5841 10.0356 0.900 -25.3436 8.8971 0.900 -27.5876 7.7117 0.900 -30.2099 6.3582 0.900 -33.0595 4.7396 0.900 -35.9534 2.7935 0.900 -38.6916 0.5000 0.900 -41.0750 -2.1157 0.900 -42.9223 -4.9855 0.900 -44.0855 -8.0051 0.900 -44.4632 -11.0446 0.900 -44.0084 -13.9617 0.900 -42.7324 -16.6169 0.900 -40.7030 -18.8886 0.900 -38.0371 -20.6860 0.900 -34.8904 -21.9594 0.900 -31.4420 -22.7072 0.900 -27.8785 -22.9768 0.900 -24.3773 -22.8613 0.900 -21.0909 -22.4920 0.900 -18.1347 -22.0254 0.900 -15.5779 -21.6293 0.900 -13.4399 -21.4658 0.900 -11.6910 -21.6753 0.900 -10.2582 -22.3623 0.900 -9.0356 -23.5841 0.900 -7.8971 -25.3436 0.900 -6.7117 -27.5876 0.900 -5.3582 -30.2099 0.900 -3.7396 -33.0595 0.900 -1.7935 -35.9534 0.900 0.5000 -38.6916 0.900 3.1157 -41.0750 0.900 5.9855 -42.9223 0.900 9.0051 -44.0855 0.900 12.0446 -44.4632 0.900 14.9617 -44.0084 0.900 17.6169 -42.7324 0.900 19.8886 -40.7030 0.900 21.6860 -38.0371 0.900 22.9594 -34.8904 0.900 23.7072 -31.4420 0.900 23.9768 -27.8785 0.900 23.8613 -24.3773 0.900 23.4920 -21.0909 0.900 23.0254 -18.1347 0.900 22.6293 -15.5779 0.900 22.4658 -13.4399 0.900 22.6753 -11.6910 0.900 23.3623 -10.2582 0.900 24.5841 -9.0356 0.900 26.3436 -7.8971 0.900 28.5876 -6.7117 0.900 31.2099 -5.3582 0.900 34.0595 -3.7396 0.900 36.9534 -1.7935 0.900 = = = 39.4709 0.6250 0.875 41.6986 3.2091 0.875 43.3624 6.0240 0.875 44.3287 8.9619 0.875 44.5116 11.8932 0.875 43.8796 14.6793 0.875 42.4580 17.1879 0.875 40.3258 19.3068 0.875 37.6077 20.9564 0.875 34.4629 22.0992 0.875 31.0695 22.7442 0.875 27.6091 22.9482 0.875 24.2502 22.8105 0.875 21.1340 22.4648 0.875 18.3629 22.0665 0.875 15.9931 21.7774 0.875 14.0316 21.7504 0.875 12.4386 22.1138 0.875 11.1341 22.9580 0.875 10.0087 24.3254 0.875 8.9364 26.2049 0.875 7.7901 28.5312 0.875 6.4554 31.1891 0.875 4.8441 34.0228 0.875 2.9040 36.8486 0.875 0.6250 39.4709 0.875 -1.9591 41.6986 0.875 -4.7740 43.3624 0.875 -7.7119 44.3287 0.875 -10.6432 44.5116 0.875 -13.4293 43.8796 0.875 -15.9379 42.4580 0.875 -18.0568 40.3258 0.875 -19.7064 37.6077 0.875 -20.8492 34.4629 0.875 -21.4942 31.0695 0.875 -21.6982 27.6091 0.875 -21.5605 24.2502 0.875 -21.2148 21.1340 0.875 -20.8165 18.3629 0.875 -20.5274 15.9931 0.875 -20.5004 14.0316 0.875 -20.8638 12.4386 0.875 -21.7080 11.1341 0.875 -23.0754 10.0087 0.875 -24.9549 8.9364 0.875 -27.2812 7.7901 0.875 -29.9391 6.4554 0.875 -32.7728 4.8441 0.875 -35.5986 2.9040 0.875 -38.2209 0.6250 0.875 -40.4486 -1.9591 0.875 -42.1124 -4.7740 0.875 -43.0787 -7.7119 0.875 -43.2616 -10.6432 0.875 -42.6296 -13.4293 0.875 -41.2080 -15.9379 0.875 -39.0758 -18.0568 0.875 -36.3577 -19.7064 0.875 -33.2129 -20.8492 0.875 -29.8195 -21.4942 0.875 -26.3591 -21.6982 0.875 -23.0002 -21.5605 0.875 -19.8840 -21.2148 0.875 -17.1129 -20.8165 0.875 -14.7431 -20.5274 0.875 -12.7816 -20.5004 0.875 -11.1886 -20.8638 0.875 -9.8841 -21.7080 0.875 -8.7587 -23.0754 0.875 -7.6864 -24.9549 0.875 -6.5401 -27.2812 0.875 -5.2054 -29.9391 0.875 -3.5941 -32.7728 0.875 -1.6540 -35.5986 0.875 0.6250 -38.2209 0.875 3.2091 -40.4486 0.875 6.0240 -42.1124 0.875 8.9619 -43.0787 0.875 11.8932 -43.2616 0.875 14.6793 -42.6296 0.875 17.1879 -41.2080 0.875 19.3068 -39.0758 0.875 20.9564 -36.3577 0.875 22.0992 -33.2129 0.875 22.7442 -29.8195 0.875 22.9482 -26.3591 0.875 22.8105 -23.0002 0.875 22.4648 -19.8840 0.875 22.0665 -17.1129 0.875 21.7774 -14.7431 0.875 21.7504 -12.7816 0.875 22.1138 -11.1886 0.875 22.9580 -9.8841 0.875 24.3254 -8.7587 0.875 26.2049 -7.6864 0.875 28.5312 -6.5401 0.875 31.1891 -5.2054 0.875 34.0228 -3.5941 0.875 36.8486 -1.6540 0.875 = = = 39.1866 0.7500 0.850 41.2513 3.2981 0.850 42.7289 6.0532 0.850 43.5006 8.9051 0.850 43.4956 11.7252 0.850 42.6973 14.3795 0.850 41.1442 16.7432 0.850 38.9251 18.7139 0.850 36.1715 20.2232 0.850 33.0445 21.2447 0.850 29.7203 21.7981 0.850 26.3742 21.9482 0.850 23.1654 21.7995 0.850 20.2235 21.4871 0.850 17.6378 21.1639 0.850 15.4518 20.9852 0.850 13.6608 21.0942 0.850 12.2160 21.6066 0.850 11.0312 22.5987 0.850 9.9944 24.0987 0.850 8.9810 26.0823 0.850 7.8681 28.4733 0.850 6.5489 31.1488 0.850 4.9440 33.9493 0.850 3.0113 36.6921 0.850 0.7500 39.1866 0.850 -1.7981 41.2513 0.850 -4.5532 42.7289 0.850 -7.4051 43.5006 0.850 -10.2252 43.4956 0.850 -12.8795 42.6973 0.850 -15.2432 41.1442 0.850 -17.2139 38.9251 0.850 -18.7232 36.1715 0.850 -19.7447 33.0445 0.850 -20.2981 29.7203 0.850 -20.4482 26.3742 0.850 -20.2995 23.1654 0.850 -19.9871 20.2235 0.850 -19.6639 17.6378 0.850 -19.4852 15.4518 0.850 -19.5942 13.6608 0.850 -20.1066 12.2160 0.850 -21.0987 11.0312 0.850 -22.5987 9.9944 0.850 -24.5823 8.9810 0.850 -26.9733 7.8681 0.850 -29.6488 6.5489 0.850 -32.4493 4.9440 0.850 -35.1921 3.0113 0.850 -37.6866 0.7500 0.850 -39.7513 -1.7981 0.850 -41.2289 -4.5532 0.850 -42.0006 -7.4051 0.850 -41.9956 -10.2252 0.850 -41.1973 -12.8795 0.850 -39.6442 -15.2432 0.850 -37.4251 -17.2139 0.850 -34.6715 -18.7232 0.850 -31.5445 -19.7447 0.850 -28.2203 -20.2981 0.850 -24.8742 -20.4482 0.850 -21.6654 -20.2995 0.850 -18.7235 -19.9871 0.850 -16.1378 -19.6639 0.850 -13.9518 -19.4852 0.850 -12.1608 -19.5942 0.850 -10.7160 -20.1066 0.850 -9.5312 -21.0987 0.850 -8.4944 -22.5987 0.850 -7.4810 -24.5823 0.850 -6.3681 -26.9733 0.850 -5.0489 -29.6488 0.850 -3.4440 -32.4493 0.850 -1.5113 -35.1921 0.850 0.7500 -37.6866 0.850 3.2981 -39.7513 0.850 6.0532 -41.2289 0.850 8.9051 -42.0006 0.850 11.7252 -41.9956 0.850 14.3795 -41.1973 0.850 16.7432 -39.6442 0.850 18.7139 -37.4251 0.850 20.2232 -34.6715 0.850 21.2447 -31.5445 0.850 21.7981 -28.2203 0.850 21.9482 -24.8742 0.850 21.7995 -21.6654 0.850 21.4871 -18.7235 0.850 21.1639 -16.1378 0.850 20.9852 -13.9518 0.850 21.0942 -12.1608 0.850 21.6066 -10.7160 0.850 22.5987 -9.5312 0.850 24.0987 -8.4944 0.850 26.0823 -7.4810 0.850 28.4733 -6.3681 0.850 31.1488 -5.0489 0.850 33.9493 -3.4440 0.850 36.6921 -1.5113 0.850 = = = 38.8370 0.8750 0.825 40.7328 3.3826 0.825 42.0232 6.0732 0.825 42.6040 8.8352 0.825 42.4194 11.5418 0.825 41.4668 14.0641 0.825 39.7967 16.2852 0.825 37.5071 18.1128 0.825 34.7343 19.4893 0.825 31.6405 20.3994 0.825 28.3986 20.8721 0.825 25.1770 20.9794 0.825 22.1250 20.8301 0.825 19.3601 20.5596 0.825 16.9590 20.3172 0.825 14.9526 20.2512 0.825 13.3257 20.4941 0.825 12.0208 21.1491 0.825 10.9469 22.2789 0.825 9.9904 23.8979 0.825 9.0287 25.9695 0.825 7.9442 28.4076 0.825 6.6375 31.0831 0.825 5.0387 33.8342 0.825 3.1151 36.4803 0.825 0.8750 38.8370 0.825 -1.6326 40.7328 0.825 -4.3232 42.0232 0.825 -7.0852 42.6040 0.825 -9.7918 42.4194 0.825 -12.3141 41.4668 0.825 -14.5352 39.7967 0.825 -16.3628 37.5071 0.825 -17.7393 34.7343 0.825 -18.6494 31.6405 0.825 -19.1221 28.3986 0.825 -19.2294 25.1770 0.825 -19.0801 22.1250 0.825 -18.8096 19.3601 0.825 -18.5672 16.9590 0.825 -18.5012 14.9526 0.825 -18.7441 13.3257 0.825 -19.3991 12.0208 0.825 -20.5289 10.9469 0.825 -22.1479 9.9904 0.825 -24.2195 9.0287 0.825 -26.6576 7.9442 0.825 -29.3331 6.6375 0.825 -32.0842 5.0387 0.825 -34.7303 3.1151 0.825 -37.0870 0.8750 0.825 -38.9828 -1.6326 0.825 -40.2732 -4.3232 0.825 -40.8540 -7.0852 0.825 -40.6694 -9.7918 0.825 -39.7168 -12.3141 0.825 -38.0467 -14.5352 0.825 -35.7571 -16.3628 0.825 -32.9843 -17.7393 0.825 -29.8905 -18.6494 0.825 -26.6486 -19.1221 0.825 -23.4270 -19.2294 0.825 -20.3750 -19.0801 0.825 -17.6101 -18.8096 0.825 -15.2090 -18.5672 0.825 -13.2026 -18.5012 0.825 -11.5757 -18.7441 0.825 -10.2708 -19.3991 0.825 -9.1969 -20.5289 0.825 -8.2404 -22.1479 0.825 -7.2787 -24.2195 0.825 -6.1942 -26.6576 0.825 -4.8875 -29.3331 0.825 -3.2887 -32.0842 0.825 -1.3651 -34.7303 0.825 0.8750 -37.0870 0.825 3.3826 -38.9828 0.825 6.0732 -40.2732 0.825 8.8352 -40.8540 0.825 11.5418 -40.6694 0.825 14.0641 -39.7168 0.825 16.2852 -38.0467 0.825 18.1128 -35.7571 0.825 19.4893 -32.9843 0.825 20.3994 -29.8905 0.825 20.8721 -26.6486 0.825 20.9794 -23.4270 0.825 20.8301 -20.3750 0.825 20.5596 -17.6101 0.825 20.3172 -15.2090 0.825 20.2512 -13.2026 0.825 20.4941 -11.5757 0.825 21.1491 -10.2708 0.825 22.2789 -9.1969 0.825 23.8979 -8.2404 0.825 25.9695 -7.2787 0.825 28.4076 -6.1942 0.825 31.0831 -4.8875 0.825 33.8342 -3.2887 0.825 36.4803 -1.3651 0.825 = = = 38.4206 1.0000 0.800 40.1433 3.4627 0.800 41.2472 6.0844 0.800 41.6424 8.7529 0.800 41.2875 11.3441 0.800 40.1935 13.7347 0.800 38.4216 15.8163 0.800 36.0776 17.5063 0.800 33.3017 18.7580 0.800 30.2557 19.5663 0.800 27.1085 19.9689 0.800 24.0205 20.0442 0.800 21.1306 19.9039 0.800 18.5443 19.6828 0.800 16.3258 19.5257 0.800 14.4941 19.5730 0.800 13.0239 19.9466 0.800 11.8505 20.7370 0.800 10.8787 21.9933 0.800 9.9943 23.7170 0.800 9.0776 25.8603 0.800 8.0167 28.3283 0.800 6.7203 30.9869 0.800 5.1276 33.6734 0.800 3.2152 36.2102 0.800 1.0000 38.4206 0.800 -1.4627 40.1433 0.800 -4.0844 41.2472 0.800 -6.7529 41.6424 0.800 -9.3441 41.2875 0.800 -11.7347 40.1935 0.800 -13.8163 38.4216 0.800 -15.5063 36.0776 0.800 -16.7580 33.3017 0.800 -17.5663 30.2557 0.800 -17.9689 27.1085 0.800 -18.0442 24.0205 0.800 -17.9039 21.1306 0.800 -17.6828 18.5443 0.800 -17.5257 16.3258 0.800 -17.5730 14.4941 0.800 -17.9466 13.0239 0.800 -18.7370 11.8505 0.800 -19.9933 10.8787 0.800 -21.7170 9.9943 0.800 -23.8603 9.0776 0.800 -26.3283 8.0167 0.800 -28.9869 6.7203 0.800 -31.6734 5.1276 0.800 -34.2102 3.2152 0.800 -36.4206 1.0000 0.800 -38.1433 -1.4627 0.800 -39.2472 -4.0844 0.800 -39.6424 -6.7529 0.800 -39.2875 -9.3441 0.800 -38.1935 -11.7347 0.800 -36.4216 -13.8163 0.800 -34.0776 -15.5063 0.800 -31.3017 -16.7580 0.800 -28.2557 -17.5663 0.800 -25.1085 -17.9689 0.800 -22.0205 -18.0442 0.800 -19.1306 -17.9039 0.800 -16.5443 -17.6828 0.800 -14.3258 -17.5257 0.800 -12.4941 -17.5730 0.800 -11.0239 -17.9466 0.800 -9.8505 -18.7370 0.800 -8.8787 -19.9933 0.800 -7.9943 -21.7170 0.800 -7.0776 -23.8603 0.800 -6.0167 -26.3283 0.800 -4.7203 -28.9869 0.800 -3.1276 -31.6734 0.800 -1.2152 -34.2102 0.800 1.0000 -36.4206 0.800 3.4627 -38.1433 0.800 6.0844 -39.2472 0.800 8.7529 -39.6424 0.800 11.3441 -39.2875 0.800 13.7347 -38.1935 0.800 15.8163 -36.4216 0.800 17.5063 -34.0776 0.800 18.7580 -31.3017 0.800 19.5663 -28.2557 0.800 19.9689 -25.1085 0.800 20.0442 -22.0205 0.800 19.9039 -19.1306 0.800 19.6828 -16.5443 0.800 19.5257 -14.3258 0.800 19.5730 -12.4941 0.800 19.9466 -11.0239 0.800 20.7370 -9.8505 0.800 21.9933 -8.8787 0.800 23.7170 -7.9943 0.800 25.8603 -7.0776 0.800 28.3283 -6.0167 0.800 30.9869 -4.7203 0.800 33.6734 -3.1276 0.800 36.2102 -1.2152 0.800 = = = 37.9365 1.1250 0.775 39.4838 3.5383 0.775 40.4033 6.0870 0.775 40.6195 8.6590 0.775 40.1049 11.1333 0.775 38.8830 13.3933 0.775 37.0247 15.3387 0.775 34.6425 16.8971 0.775 31.8791 18.0322 0.775 28.8949 18.7483 0.775 25.8534 19.0913 0.775 22.9069 19.1446 0.775 20.1834 19.0220 0.775 17.7761 18.8566 0.775 15.7372 18.7881 0.775 14.0743 18.9482 0.775 12.7531 19.4479 0.775 11.7024 20.3652 0.775 10.8238 21.7361 0.775 10.0037 23.5500 0.775 9.1257 25.7485 0.775 8.0843 28.2295 0.775 6.7963 30.8551 0.775 5.2102 33.4629 0.775 3.3116 35.8796 0.775 1.1250 37.9365 0.775 -1.2883 39.4838 0.775 -3.8370 40.4033 0.775 -6.4090 40.6195 0.775 -8.8833 40.1049 0.775 -11.1433 38.8830 0.775 -13.0887 37.0247 0.775 -14.6471 34.6425 0.775 -15.7822 31.8791 0.775 -16.4983 28.8949 0.775 -16.8413 25.8534 0.775 -16.8946 22.9069 0.775 -16.7720 20.1834 0.775 -16.6066 17.7761 0.775 -16.5381 15.7372 0.775 -16.6982 14.0743 0.775 -17.1979 12.7531 0.775 -18.1152 11.7024 0.775 -19.4861 10.8238 0.775 -21.3000 10.0037 0.775 -23.4985 9.1257 0.775 -25.9795 8.0843 0.775 -28.6051 6.7963 0.775 -31.2129 5.2102 0.775 -33.6296 3.3116 0.775 -35.6865 1.1250 0.775 -37.2338 -1.2883 0.775 -38.1533 -3.8370 0.775 -38.3695 -6.4090 0.775 -37.8549 -8.8833 0.775 -36.6330 -11.1433 0.775 -34.7747 -13.0887 0.775 -32.3925 -14.6471 0.775 -29.6291 -15.7822 0.775 -26.6449 -16.4983 0.775 -23.6034 -16.8413 0.775 -20.6569 -16.8946 0.775 -17.9334 -16.7720 0.775 -15.5261 -16.6066 0.775 -13.4872 -16.5381 0.775 -11.8243 -16.6982 0.775 -10.5031 -17.1979 0.775 -9.4524 -18.1152 0.775 -8.5738 -19.4861 0.775 -7.7537 -21.3000 0.775 -6.8757 -23.4985 0.775 -5.8343 -25.9795 0.775 -4.5463 -28.6051 0.775 -2.9602 -31.2129 0.775 -1.0616 -33.6296 0.775 1.1250 -35.6865 0.775 3.5383 -37.2338 0.775 6.0870 -38.1533 0.775 8.6590 -38.3695 0.775 11.1333 -37.8549 0.775 13.3933 -36.6330 0.775 15.3387 -34.7747 0.775 16.8971 -32.3925 0.775 18.0322 -29.6291 0.775 18.7483 -26.6449 0.775 19.0913 -23.6034 0.775 19.1446 -20.6569 0.775 19.0220 -17.9334 0.775 18.8566 -15.5261 0.775 18.7881 -13.4872 0.775 18.9482 -11.8243 0.775 19.4479 -10.5031 0.775 20.3652 -9.4524 0.775 21.7361 -8.5738 0.775 23.5500 -7.7537 0.775 25.7485 -6.8757 0.775 28.2295 -5.8343 0.775 30.8551 -4.5463 0.775 33.4629 -2.9602 0.775 35.8796 -1.0616 0.775 = = = 37.3847 1.2500 0.750 38.7555 3.6096 0.750 39.4944 6.0814 0.750 39.5395 8.5541 0.750 38.8768 10.9109 0.750 37.5410 13.0417 0.750 35.6121 14.8549 0.750 33.2076 16.2881 0.750 30.4717 17.3148 0.750 27.5623 17.9483 0.750 24.6367 18.2414 0.750 21.8383 18.2821 0.750 19.2839 18.1850 0.750 17.0550 18.0806 0.750 15.1917 18.1026 0.750 13.6912 18.3738 0.750 12.5107 18.9940 0.750 11.5737 20.0288 0.750 10.7798 21.5018 0.750 10.0161 23.3908 0.750 9.1710 25.6283 0.750 8.1454 28.1060 0.750 6.8647 30.6834 0.750 5.2862 33.1995 0.750 3.4040 35.4867 0.750 1.2500 37.3847 0.750 -1.1096 38.7555 0.750 -3.5814 39.4944 0.750 -6.0541 39.5395 0.750 -8.4109 38.8768 0.750 -10.5417 37.5410 0.750 -12.3549 35.6121 0.750 -13.7881 33.2076 0.750 -14.8148 30.4717 0.750 -15.4483 27.5623 0.750 -15.7414 24.6367 0.750 -15.7821 21.8383 0.750 -15.6850 19.2839 0.750 -15.5806 17.0550 0.750 -15.6026 15.1917 0.750 -15.8738 13.6912 0.750 -16.4940 12.5107 0.750 -17.5288 11.5737 0.750 -19.0018 10.7798 0.750 -20.8908 10.0161 0.750 -23.1283 9.1710 0.750 -25.6060 8.1454 0.750 -28.1834 6.8647 0.750 -30.6995 5.2862 0.750 -32.9867 3.4040 0.750 -34.8847 1.2500 0.750 -36.2555 -1.1096 0.750 -36.9944 -3.5814 0.750 -37.0395 -6.0541 0.750 -36.3768 -8.4109 0.750 -35.0410 -10.5417 0.750 -33.1121 -12.3549 0.750 -30.7076 -13.7881 0.750 -27.9717 -14.8148 0.750 -25.0623 -15.4483 0.750 -22.1367 -15.7414 0.750 -19.3383 -15.7821 0.750 -16.7839 -15.6850 0.750 -14.5550 -15.5806 0.750 -12.6917 -15.6026 0.750 -11.1912 -15.8738 0.750 -10.0107 -16.4940 0.750 -9.0737 -17.5288 0.750 -8.2798 -19.0018 0.750 -7.5161 -20.8908 0.750 -6.6710 -23.1283 0.750 -5.6454 -25.6060 0.750 -4.3647 -28.1834 0.750 -2.7862 -30.6995 0.750 -0.9040 -32.9867 0.750 1.2500 -34.8847 0.750 3.6096 -36.2555 0.750 6.0814 -36.9944 0.750 8.5541 -37.0395 0.750 10.9109 -36.3768 0.750 13.0417 -35.0410 0.750 14.8549 -33.1121 0.750 16.2881 -30.7076 0.750 17.3148 -27.9717 0.750 17.9483 -25.0623 0.750 18.2414 -22.1367 0.750 18.2821 -19.3383 0.750 18.1850 -16.7839 0.750 18.0806 -14.5550 0.750 18.1026 -12.6917 0.750 18.3738 -11.1912 0.750 18.9940 -10.0107 0.750 20.0288 -9.0737 0.750 21.5018 -8.2798 0.750 23.3908 -7.5161 0.750 25.6283 -6.6710 0.750 28.1060 -5.6454 0.750 30.6834 -4.3647 0.750 33.1995 -2.7862 0.750 35.4867 -0.9040 0.750 = = = 36.7656 1.3750 0.725 37.9606 3.6768 0.725 38.5238 6.0680 0.725 38.4069 8.4392 0.725 37.6084 10.6782 0.725 36.1735 12.6817 0.725 34.1897 14.3672 0.725 31.7785 15.6818 0.725 29.0844 16.6084 0.725 26.2617 17.1686 0.725 23.4611 17.4215 0.725 20.8161 17.4581 0.725 18.4327 17.3932 0.725 16.3802 17.3539 0.725 14.6876 17.4672 0.725 13.3423 17.8466 0.725 12.2940 18.5806 0.725 11.4617 19.7226 0.725 10.7437 21.2845 0.725 10.0294 23.2336 0.725 9.2118 25.4941 0.725 8.1990 27.9527 0.725 6.9247 30.4677 0.725 5.3551 32.8807 0.725 3.4924 35.0301 0.725 1.3750 36.7656 0.725 -0.9268 37.9606 0.725 -3.3180 38.5238 0.725 -5.6892 38.4069 0.725 -7.9282 37.6084 0.725 -9.9317 36.1735 0.725 -11.6172 34.1897 0.725 -12.9318 31.7785 0.725 -13.8584 29.0844 0.725 -14.4186 26.2617 0.725 -14.6715 23.4611 0.725 -14.7081 20.8161 0.725 -14.6432 18.4327 0.725 -14.6039 16.3802 0.725 -14.7172 14.6876 0.725 -15.0966 13.3423 0.725 -15.8306 12.2940 0.725 -16.9726 11.4617 0.725 -18.5345 10.7437 0.725 -20.4836 10.0294 0.725 -22.7441 9.2118 0.725 -25.2027 8.1990 0.725 -27.7177 6.9247 0.725 -30.1307 5.3551 0.725 -32.2801 3.4924 0.725 -34.0156 1.3750 0.725 -35.2106 -0.9268 0.725 -35.7738 -3.3180 0.725 -35.6569 -5.6892 0.725 -34.8584 -7.9282 0.725 -33.4235 -9.9317 0.725 -31.4397 -11.6172 0.725 -29.0285 -12.9318 0.725 -26.3344 -13.8584 0.725 -23.5117 -14.4186 0.725 -20.7111 -14.6715 0.725 -18.0661 -14.7081 0.725 -15.6827 -14.6432 0.725 -13.6302 -14.6039 0.725 -11.9376 -14.7172 0.725 -10.5923 -15.0966 0.725 -9.5440 -15.8306 0.725 -8.7117 -16.9726 0.725 -7.9937 -18.5345 0.725 -7.2794 -20.4836 0.725 -6.4618 -22.7441 0.725 -5.4490 -25.2027 0.725 -4.1747 -27.7177 0.725 -2.6051 -30.1307 0.725 -0.7424 -32.2801 0.725 1.3750 -34.0156 0.725 3.6768 -35.2106 0.725 6.0680 -35.7738 0.725 8.4392 -35.6569 0.725 10.6782 -34.8584 0.725 12.6817 -33.4235 0.725 14.3672 -31.4397 0.725 15.6818 -29.0285 0.725 16.6084 -26.3344 0.725 17.1686 -23.5117 0.725 17.4215 -20.7111 0.725 17.4581 -18.0661 0.725 17.3932 -15.6827 0.725 17.3539 -13.6302 0.725 17.4672 -11.9376 0.725 17.8466 -10.5923 0.725 18.5806 -9.5440 0.725 19.7226 -8.7117 0.725 21.2845 -7.9937 0.725 23.2336 -7.2794 0.725 25.4941 -6.4618 0.725 27.9527 -5.4490 0.725 30.4677 -4.1747 0.725 32.8807 -2.6051 0.725 35.0301 -0.7424 0.725 = = = 36.0799 1.5000 0.700 37.1014 3.7398 0.700 37.4954 6.0473 0.700 37.2267 8.3152 0.700 36.3054 10.4365 0.700 34.7863 12.3154 0.700 32.7632 13.8780 0.700 30.3604 15.0807 0.700 27.7217 15.9155 0.700 24.9968 16.4115 0.700 22.3288 16.6330 0.700 19.8415 16.6734 0.700 17.6294 16.6465 0.700 15.7506 16.6753 0.700 14.2230 16.8794 0.700 13.0250 17.3629 0.700 12.1000 18.2029 0.700 11.3633 19.4413 0.700 10.7130 21.0787 0.700 10.0412 23.0726 0.700 9.2462 25.3405 0.700 8.2437 27.7651 0.700 6.9757 30.2046 0.700 5.4167 32.5041 0.700 3.5768 34.5094 0.700 1.5000 36.0799 0.700 -0.7398 37.1014 0.700 -3.0473 37.4954 0.700 -5.3152 37.2267 0.700 -7.4365 36.3054 0.700 -9.3154 34.7863 0.700 -10.8780 32.7632 0.700 -12.0807 30.3604 0.700 -12.9155 27.7217 0.700 -13.4115 24.9968 0.700 -13.6330 22.3288 0.700 -13.6734 19.8415 0.700 -13.6465 17.6294 0.700 -13.6753 15.7506 0.700 -13.8794 14.2230 0.700 -14.3629 13.0250 0.700 -15.2029 12.1000 0.700 -16.4413 11.3633 0.700 -18.0787 10.7130 0.700 -20.0726 10.0412 0.700 -22.3405 9.2462 0.700 -24.7651 8.2437 0.700 -27.2046 6.9757 0.700 -29.5041 5.4167 0.700 -31.5094 3.5768 0.700 -33.0799 1.5000 0.700 -34.1014 -0.7398 0.700 -34.4954 -3.0473 0.700 -34.2267 -5.3152 0.700 -33.3054 -7.4365 0.700 -31.7863 -9.3154 0.700 -29.7632 -10.8780 0.700 -27.3604 -12.0807 0.700 -24.7217 -12.9155 0.700 -21.9968 -13.4115 0.700 -19.3288 -13.6330 0.700 -16.8415 -13.6734 0.700 -14.6294 -13.6465 0.700 -12.7506 -13.6753 0.700 -11.2230 -13.8794 0.700 -10.0250 -14.3629 0.700 -9.1000 -15.2029 0.700 -8.3633 -16.4413 0.700 -7.7130 -18.0787 0.700 -7.0412 -20.0726 0.700 -6.2462 -22.3405 0.700 -5.2437 -24.7651 0.700 -3.9757 -27.2046 0.700 -2.4167 -29.5041 0.700 -0.5768 -31.5094 0.700 1.5000 -33.0799 0.700 3.7398 -34.1014 0.700 6.0473 -34.4954 0.700 8.3152 -34.2267 0.700 10.4365 -33.3054 0.700 12.3154 -31.7863 0.700 13.8780 -29.7632 0.700 15.0807 -27.3604 0.700 15.9155 -24.7217 0.700 16.4115 -21.9968 0.700 16.6330 -19.3288 0.700 16.6734 -16.8415 0.700 16.6465 -14.6294 0.700 16.6753 -12.7506 0.700 16.8794 -11.2230 0.700 17.3629 -10.0250 0.700 18.2029 -9.1000 0.700 19.4413 -8.3633 0.700 21.0787 -7.7130 0.700 23.0726 -7.0412 0.700 25.3405 -6.2462 0.700 27.7651 -5.2437 0.700 30.2046 -3.9757 0.700 32.5041 -2.4167 0.700 34.5094 -0.5768 0.700 = = = 35.3294 1.6250 0.675 36.1808 3.7991 0.675 36.4134 6.0198 0.675 36.0039 8.1831 0.675 34.9736 10.1875 0.675 33.3853 11.9445 0.675 31.3383 13.3893 0.675 28.9586 14.4872 0.675 26.3879 15.2385 0.675 23.7707 15.6791 0.675 21.2419 15.8775 0.675 18.9151 15.9286 0.675 16.8737 15.9445 0.675 15.1645 16.0431 0.675 13.7954 16.3365 0.675 12.7367 16.9189 0.675 11.9258 17.8565 0.675 11.2758 19.1797 0.675 10.6851 20.8786 0.675 10.0493 22.9025 0.675 9.2728 25.1625 0.675 8.2786 27.5390 0.675 7.0170 29.8910 0.675 5.4709 32.0683 0.675 3.6571 33.9245 0.675 1.6250 35.3294 0.675 -0.5491 36.1808 0.675 -2.7698 36.4134 0.675 -4.9331 36.0039 0.675 -6.9375 34.9736 0.675 -8.6945 33.3853 0.675 -10.1393 31.3383 0.675 -11.2372 28.9586 0.675 -11.9885 26.3879 0.675 -12.4291 23.7707 0.675 -12.6275 21.2419 0.675 -12.6786 18.9151 0.675 -12.6945 16.8737 0.675 -12.7931 15.1645 0.675 -13.0865 13.7954 0.675 -13.6689 12.7367 0.675 -14.6065 11.9258 0.675 -15.9297 11.2758 0.675 -17.6286 10.6851 0.675 -19.6525 10.0493 0.675 -21.9125 9.2728 0.675 -24.2890 8.2786 0.675 -26.6410 7.0170 0.675 -28.8183 5.4709 0.675 -30.6745 3.6571 0.675 -32.0794 1.6250 0.675 -32.9308 -0.5491 0.675 -33.1634 -2.7698 0.675 -32.7539 -4.9331 0.675 -31.7236 -6.9375 0.675 -30.1353 -8.6945 0.675 -28.0883 -10.1393 0.675 -25.7086 -11.2372 0.675 -23.1379 -11.9885 0.675 -20.5207 -12.4291 0.675 -17.9919 -12.6275 0.675 -15.6651 -12.6786 0.675 -13.6237 -12.6945 0.675 -11.9145 -12.7931 0.675 -10.5454 -13.0865 0.675 -9.4867 -13.6689 0.675 -8.6758 -14.6065 0.675 -8.0258 -15.9297 0.675 -7.4351 -17.6286 0.675 -6.7993 -19.6525 0.675 -6.0228 -21.9125 0.675 -5.0286 -24.2890 0.675 -3.7670 -26.6410 0.675 -2.2209 -28.8183 0.675 -0.4071 -30.6745 0.675 1.6250 -32.0794 0.675 3.7991 -32.9308 0.675 6.0198 -33.1634 0.675 8.1831 -32.7539 0.675 10.1875 -31.7236 0.675 11.9445 -30.1353 0.675 13.3893 -28.0883 0.675 14.4872 -25.7086 0.675 15.2385 -23.1379 0.675 15.6791 -20.5207 0.675 15.8775 -17.9919 0.675 15.9286 -15.6651 0.675 15.9445 -13.6237 0.675 16.0431 -11.9145 0.675 16.3365 -10.5454 0.675 16.9189 -9.4867 0.675 17.8565 -8.6758 0.675 19.1797 -8.0258 0.675 20.8786 -7.4351 0.675 22.9025 -6.7993 0.675 25.1625 -6.0228 0.675 27.5390 -5.0286 0.675 29.8910 -3.7670 0.675 32.0683 -2.2209 0.675 33.9245 -0.4071 0.675 = = = 34.5159 1.7500 0.650 35.2024 3.8546 0.650 35.2822 5.9861 0.650 34.7439 8.0439 0.650 33.6185 9.9325 0.650 31.9764 11.5711 0.650 29.9206 12.9035 0.650 27.5778 13.9037 0.650 25.0868 14.5795 0.650 22.5860 14.9729 0.650 20.2017 15.1559 0.650 18.0371 15.2238 0.650 16.1645 15.2861 0.650 14.6202 15.4554 0.650 13.4024 15.8354 0.650 12.4742 16.5106 0.650 11.7683 17.5363 0.650 11.1960 18.9322 0.650 10.6573 20.6789 0.650 10.0517 22.7178 0.650 9.2899 24.9555 0.650 8.3026 27.2707 0.650 7.0483 29.5245 0.650 5.5174 31.5723 0.650 3.7334 33.2758 0.650 1.7500 34.5159 0.650 -0.3546 35.2024 0.650 -2.4861 35.2822 0.650 -4.5439 34.7439 0.650 -6.4325 33.6185 0.650 -8.0711 31.9764 0.650 -9.4035 29.9206 0.650 -10.4037 27.5778 0.650 -11.0795 25.0868 0.650 -11.4729 22.5860 0.650 -11.6559 20.2017 0.650 -11.7238 18.0371 0.650 -11.7861 16.1645 0.650 -11.9554 14.6202 0.650 -12.3354 13.4024 0.650 -13.0106 12.4742 0.650 -14.0363 11.7683 0.650 -15.4322 11.1960 0.650 -17.1789 10.6573 0.650 -19.2178 10.0517 0.650 -21.4555 9.2899 0.650 -23.7707 8.3026 0.650 -26.0245 7.0483 0.650 -28.0723 5.5174 0.650 -29.7758 3.7334 0.650 -31.0159 1.7500 0.650 -31.7024 -0.3546 0.650 -31.7822 -2.4861 0.650 -31.2439 -4.5439 0.650 -30.1185 -6.4325 0.650 -28.4764 -8.0711 0.650 -26.4206 -9.4035 0.650 -24.0778 -10.4037 0.650 -21.5868 -11.0795 0.650 -19.0860 -11.4729 0.650 -16.7017 -11.6559 0.650 -14.5371 -11.7238 0.650 -12.6645 -11.7861 0.650 -11.1202 -11.9554 0.650 -9.9024 -12.3354 0.650 -8.9742 -13.0106 0.650 -8.2683 -14.0363 0.650 -7.6960 -15.4322 0.650 -7.1573 -17.1789 0.650 -6.5517 -19.2178 0.650 -5.7899 -21.4555 0.650 -4.8026 -23.7707 0.650 -3.5483 -26.0245 0.650 -2.0174 -28.0723 0.650 -0.2334 -29.7758 0.650 1.7500 -31.0159 0.650 3.8546 -31.7024 0.650 5.9861 -31.7822 0.650 8.0439 -31.2439 0.650 9.9325 -30.1185 0.650 11.5711 -28.4764 0.650 12.9035 -26.4206 0.650 13.9037 -24.0778 0.650 14.5795 -21.5868 0.650 14.9729 -19.0860 0.650 15.1559 -16.7017 0.650 15.2238 -14.5371 0.650 15.2861 -12.6645 0.650 15.4554 -11.1202 0.650 15.8354 -9.9024 0.650 16.5106 -8.9742 0.650 17.5363 -8.2683 0.650 18.9322 -7.6960 0.650 20.6789 -7.1573 0.650 22.7178 -6.5517 0.650 24.9555 -5.7899 0.650 27.2707 -4.8026 0.650 29.5245 -3.5483 0.650 31.5723 -2.0174 0.650 33.2758 -0.2334 0.650 = = = 33.6420 1.8750 0.625 34.1698 3.9068 0.625 34.1067 5.9468 0.625 33.4522 7.8987 0.625 32.2462 9.6730 0.625 30.5652 11.1970 0.625 28.5153 12.4226 0.625 26.2226 13.3321 0.625 23.8219 13.9404 0.625 21.4450 14.2945 0.625 19.2091 14.4690 0.625 17.2072 14.5589 0.625 15.5006 14.6703 0.625 14.1154 14.9097 0.625 13.0412 15.3727 0.625 12.2345 16.1336 0.625 11.6243 17.2374 0.625 11.1212 18.6937 0.625 10.6271 20.4741 0.625 10.0464 22.5137 0.625 9.2962 24.7152 0.625 8.3150 26.9570 0.625 7.0691 29.1032 0.625 5.5563 31.0155 0.625 3.8058 32.5645 0.625 1.8750 33.6420 0.625 -0.1568 34.1698 0.625 -2.1968 34.1067 0.625 -4.1487 33.4522 0.625 -5.9230 32.2462 0.625 -7.4470 30.5652 0.625 -8.6726 28.5153 0.625 -9.5821 26.2226 0.625 -10.1904 23.8219 0.625 -10.5445 21.4450 0.625 -10.7190 19.2091 0.625 -10.8089 17.2072 0.625 -10.9203 15.5006 0.625 -11.1597 14.1154 0.625 -11.6227 13.0412 0.625 -12.3836 12.2345 0.625 -13.4874 11.6243 0.625 -14.9437 11.1212 0.625 -16.7241 10.6271 0.625 -18.7637 10.0464 0.625 -20.9652 9.2962 0.625 -23.2070 8.3150 0.625 -25.3532 7.0691 0.625 -27.2655 5.5563 0.625 -28.8145 3.8058 0.625 -29.8920 1.8750 0.625 -30.4198 -0.1568 0.625 -30.3567 -2.1968 0.625 -29.7022 -4.1487 0.625 -28.4962 -5.9230 0.625 -26.8152 -7.4470 0.625 -24.7653 -8.6726 0.625 -22.4726 -9.5821 0.625 -20.0719 -10.1904 0.625 -17.6950 -10.5445 0.625 -15.4591 -10.7190 0.625 -13.4572 -10.8089 0.625 -11.7506 -10.9203 0.625 -10.3654 -11.1597 0.625 -9.2912 -11.6227 0.625 -8.4845 -12.3836 0.625 -7.8743 -13.4874 0.625 -7.3712 -14.9437 0.625 -6.8771 -16.7241 0.625 -6.2964 -18.7637 0.625 -5.5462 -20.9652 0.625 -4.5650 -23.2070 0.625 -3.3191 -25.3532 0.625 -1.8063 -27.2655 0.625 -0.0558 -28.8145 0.625 1.8750 -29.8920 0.625 3.9068 -30.4198 0.625 5.9468 -30.3567 0.625 7.8987 -29.7022 0.625 9.6730 -28.4962 0.625 11.1970 -26.8152 0.625 12.4226 -24.7653 0.625 13.3321 -22.4726 0.625 13.9404 -20.0719 0.625 14.2945 -17.6950 0.625 14.4690 -15.4591 0.625 14.5589 -13.4572 0.625 14.6703 -11.7506 0.625 14.9097 -10.3654 0.625 15.3727 -9.2912 0.625 16.1336 -8.4845 0.625 17.2374 -7.8743 0.625 18.6937 -7.3712 0.625 20.4741 -6.8771 0.625 22.5137 -6.2964 0.625 24.7152 -5.5462 0.625 26.9570 -4.5650 0.625 29.1032 -3.3191 0.625 31.0155 -1.8063 0.625 32.5645 -0.0558 0.625 = = = 32.7107 2.0000 0.600 33.0872 3.9558 0.600 32.8920 5.9026 0.600 32.1345 7.7485 0.600 30.8624 9.4106 0.600 29.1574 10.8240 0.600 27.1274 11.9486 0.600 24.8969 12.7745 0.600 22.5962 13.3229 0.600 20.3495 13.6450 0.600 18.2649 13.8171 0.600 16.4248 13.9332 0.600 14.8803 14.0954 0.600 13.6477 14.4036 0.600 12.7088 14.9447 0.600 12.0143 15.7836 0.600 11.4907 16.9549 0.600 11.0483 18.4588 0.600 10.5921 20.2592 0.600 10.0316 22.2854 0.600 9.2905 24.4377 0.600 8.3150 26.5952 0.600 7.0791 28.6258 0.600 5.5875 30.3980 0.600 3.8744 31.7921 0.600 2.0000 32.7107 0.600 0.0442 33.0872 0.600 -1.9026 32.8920 0.600 -3.7485 32.1345 0.600 -5.4106 30.8624 0.600 -6.8240 29.1574 0.600 -7.9486 27.1274 0.600 -8.7745 24.8969 0.600 -9.3229 22.5962 0.600 -9.6450 20.3495 0.600 -9.8171 18.2649 0.600 -9.9332 16.4248 0.600 -10.0954 14.8803 0.600 -10.4036 13.6477 0.600 -10.9447 12.7088 0.600 -11.7836 12.0143 0.600 -12.9549 11.4907 0.600 -14.4588 11.0483 0.600 -16.2592 10.5921 0.600 -18.2854 10.0316 0.600 -20.4377 9.2905 0.600 -22.5952 8.3150 0.600 -24.6258 7.0791 0.600 -26.3980 5.5875 0.600 -27.7921 3.8744 0.600 -28.7107 2.0000 0.600 -29.0872 0.0442 0.600 -28.8920 -1.9026 0.600 -28.1345 -3.7485 0.600 -26.8624 -5.4106 0.600 -25.1574 -6.8240 0.600 -23.1274 -7.9486 0.600 -20.8969 -8.7745 0.600 -18.5962 -9.3229 0.600 -16.3495 -9.6450 0.600 -14.2649 -9.8171 0.600 -12.4248 -9.9332 0.600 -10.8803 -10.0954 0.600 -9.6477 -10.4036 0.600 -8.7088 -10.9447 0.600 -8.0143 -11.7836 0.600 -7.4907 -12.9549 0.600 -7.0483 -14.4588 0.600 -6.5921 -16.2592 0.600 -6.0316 -18.2854 0.600 -5.2905 -20.4377 0.600 -4.3150 -22.5952 0.600 -3.0791 -24.6258 0.600 -1.5875 -26.3980 0.600 0.1256 -27.7921 0.600 2.0000 -28.7107 0.600 3.9558 -29.0872 0.600 5.9026 -28.8920 0.600 7.7485 -28.1345 0.600 9.4106 -26.8624 0.600 10.8240 -25.1574 0.600 11.9486 -23.1274 0.600 12.7745 -20.8969 0.600 13.3229 -18.5962 0.600 13.6450 -16.3495 0.600 13.8171 -14.2649 0.600 13.9332 -12.4248 0.600 14.0954 -10.8803 0.600 14.4036 -9.6477 0.600 14.9447 -8.7088 0.600 15.7836 -8.0143 0.600 16.9549 -7.4907 0.600 18.4588 -7.0483 0.600 20.2592 -6.5921 0.600 22.2854 -6.0316 0.600 24.4377 -5.2905 0.600 26.5952 -4.3150 0.600 28.6258 -3.0791 0.600 30.3980 -1.5875 0.600 31.7921 0.1256 0.600 = = = 31.7253 2.1250 0.575 31.9592 4.0020 0.575 31.6433 5.8540 0.575 30.7963 7.5943 0.575 29.4728 9.1467 0.575 27.7584 10.4538 0.575 25.7616 11.4834 0.575 23.6046 12.2326 0.575 21.4122 12.7282 0.575 19.3008 13.0251 0.575 17.3689 13.2003 0.575 15.6888 13.3460 0.575 14.3015 13.5595 0.575 13.2144 13.9340 0.575 12.4020 14.5478 0.575 11.8105 15.4560 0.575 11.3643 16.6838 0.575 10.9747 18.2226 0.575 10.5501 20.0293 0.575 10.0055 22.0288 0.575 9.2715 24.1198 0.575 8.3021 26.1830 0.575 7.0783 28.0913 0.575 5.6111 29.7206 0.575 3.9392 30.9608 0.575 2.1250 31.7253 0.575 0.2480 31.9592 0.575 -1.6040 31.6433 0.575 -3.3443 30.7963 0.575 -4.8967 29.4728 0.575 -6.2038 27.7584 0.575 -7.2334 25.7616 0.575 -7.9826 23.6046 0.575 -8.4782 21.4122 0.575 -8.7751 19.3008 0.575 -8.9503 17.3689 0.575 -9.0960 15.6888 0.575 -9.3095 14.3015 0.575 -9.6840 13.2144 0.575 -10.2978 12.4020 0.575 -11.2060 11.8105 0.575 -12.4338 11.3643 0.575 -13.9726 10.9747 0.575 -15.7793 10.5501 0.575 -17.7788 10.0055 0.575 -19.8698 9.2715 0.575 -21.9330 8.3021 0.575 -23.8413 7.0783 0.575 -25.4706 5.6111 0.575 -26.7108 3.9392 0.575 -27.4753 2.1250 0.575 -27.7092 0.2480 0.575 -27.3933 -1.6040 0.575 -26.5463 -3.3443 0.575 -25.2228 -4.8967 0.575 -23.5084 -6.2038 0.575 -21.5116 -7.2334 0.575 -19.3546 -7.9826 0.575 -17.1622 -8.4782 0.575 -15.0508 -8.7751 0.575 -13.1189 -8.9503 0.575 -11.4388 -9.0960 0.575 -10.0515 -9.3095 0.575 -8.9644 -9.6840 0.575 -8.1520 -10.2978 0.575 -7.5605 -11.2060 0.575 -7.1143 -12.4338 0.575 -6.7247 -13.9726 0.575 -6.3001 -15.7793 0.575 -5.7555 -17.7788 0.575 -5.0215 -19.8698 0.575 -4.0521 -21.9330 0.575 -2.8283 -23.8413 0.575 -1.3611 -25.4706 0.575 0.3108 -26.7108 0.575 2.1250 -27.4753 0.575 4.0020 -27.7092 0.575 5.8540 -27.3933 0.575 7.5943 -26.5463 0.575 9.1467 -25.2228 0.575 10.4538 -23.5084 0.575 11.4834 -21.5116 0.575 12.2326 -19.3546 0.575 12.7282 -17.1622 0.575 13.0251 -15.0508 0.575 13.2003 -13.1189 0.575 13.3460 -11.4388 0.575 13.5595 -10.0515 0.575 13.9340 -8.9644 0.575 14.5478 -8.1520 0.575 15.4560 -7.5605 0.575 16.6838 -7.1143 0.575 18.2226 -6.7247 0.575 20.0293 -6.3001 0.575 22.0288 -5.7555 0.575 24.1198 -5.0215 0.575 26.1830 -4.0521 0.575 28.0913 -2.8283 0.575 29.7206 -1.3611 0.575 30.9608 0.3108 0.575 = = = 30.6898 2.2500 0.550 30.7905 4.0456 0.550 30.3661 5.8019 0.550 29.4435 7.4374 0.550 28.0831 8.8828 0.550 26.3733 10.0881 0.550 24.4223 11.0286 0.550 22.3491 11.7079 0.550 20.2721 12.1577 0.550 18.2997 12.4355 0.550 16.5208 12.6184 0.550 14.9978 12.7959 0.550 13.7620 13.0605 0.550 12.8125 13.4979 0.550 12.1175 14.1778 0.550 11.6196 15.1461 0.550 11.2419 16.4190 0.550 10.8976 17.9799 0.550 10.4988 19.7796 0.550 9.9665 21.7398 0.550 9.2385 23.7584 0.550 8.2758 25.7189 0.550 7.0666 27.4996 0.550 5.6273 28.9844 0.550 4.0005 30.0730 0.550 2.2500 30.6898 0.550 0.4544 30.7905 0.550 -1.3019 30.3661 0.550 -2.9374 29.4435 0.550 -4.3828 28.0831 0.550 -5.5881 26.3733 0.550 -6.5286 24.4223 0.550 -7.2079 22.3491 0.550 -7.6577 20.2721 0.550 -7.9355 18.2997 0.550 -8.1184 16.5208 0.550 -8.2959 14.9978 0.550 -8.5605 13.7620 0.550 -8.9979 12.8125 0.550 -9.6778 12.1175 0.550 -10.6461 11.6196 0.550 -11.9190 11.2419 0.550 -13.4799 10.8976 0.550 -15.2796 10.4988 0.550 -17.2398 9.9665 0.550 -19.2584 9.2385 0.550 -21.2189 8.2758 0.550 -22.9996 7.0666 0.550 -24.4844 5.6273 0.550 -25.5730 4.0005 0.550 -26.1898 2.2500 0.550 -26.2905 0.4544 0.550 -25.8661 -1.3019 0.550 -24.9435 -2.9374 0.550 -23.5831 -4.3828 0.550 -21.8733 -5.5881 0.550 -19.9223 -6.5286 0.550 -17.8491 -7.2079 0.550 -15.7721 -7.6577 0.550 -13.7997 -7.9355 0.550 -12.0208 -8.1184 0.550 -10.4978 -8.2959 0.550 -9.2620 -8.5605 0.550 -8.3125 -8.9979 0.550 -7.6175 -9.6778 0.550 -7.1196 -10.6461 0.550 -6.7419 -11.9190 0.550 -6.3976 -13.4799 0.550 -5.9988 -15.2796 0.550 -5.4665 -17.2398 0.550 -4.7385 -19.2584 0.550 -3.7758 -21.2189 0.550 -2.5666 -22.9996 0.550 -1.1273 -24.4844 0.550 0.4995 -25.5730 0.550 2.2500 -26.1898 0.550 4.0456 -26.2905 0.550 5.8019 -25.8661 0.550 7.4374 -24.9435 0.550 8.8828 -23.5831 0.550 10.0881 -21.8733 0.550 11.0286 -19.9223 0.550 11.7079 -17.8491 0.550 12.1577 -15.7721 0.550 12.4355 -13.7997 0.550 12.6184 -12.0208 0.550 12.7959 -10.4978 0.550 13.0605 -9.2620 0.550 13.4979 -8.3125 0.550 14.1778 -7.6175 0.550 15.1461 -7.1196 0.550 16.4190 -6.7419 0.550 17.9799 -6.3976 0.550 19.7796 -5.9988 0.550 21.7398 -5.4665 0.550 23.7584 -4.7385 0.550 25.7189 -3.7758 0.550 27.4996 -2.5666 0.550 28.9844 -1.1273 0.550 30.0730 0.4995 0.550 = = = 29.6082 2.3750 0.525 29.5862 4.0870 0.525 29.0660 5.7469 0.525 28.0818 7.2788 0.525 26.6987 8.6203 0.525 25.0069 9.7286 0.525 23.1135 10.5860 0.525 21.1330 11.2019 0.525 19.1775 11.6122 0.525 17.3467 11.8763 0.525 15.7199 12.0707 0.525 14.3499 12.2815 0.525 13.2590 12.5958 0.525 12.4387 13.0918 0.525 11.8520 13.8307 0.525 11.4382 14.8495 0.525 11.1206 16.1558 0.525 10.8143 17.7260 0.525 10.4363 19.5061 0.525 9.9134 21.4149 0.525 9.1906 23.3512 0.525 8.2359 25.2017 0.525 7.0440 26.8509 0.525 5.6363 28.1910 0.525 4.0584 29.1318 0.525 2.3750 29.6082 0.525 0.6630 29.5862 0.525 -0.9969 29.0660 0.525 -2.5288 28.0818 0.525 -3.8703 26.6987 0.525 -4.9786 25.0069 0.525 -5.8360 23.1135 0.525 -6.4519 21.1330 0.525 -6.8622 19.1775 0.525 -7.1263 17.3467 0.525 -7.3207 15.7199 0.525 -7.5315 14.3499 0.525 -7.8458 13.2590 0.525 -8.3418 12.4387 0.525 -9.0807 11.8520 0.525 -10.0995 11.4382 0.525 -11.4058 11.1206 0.525 -12.9760 10.8143 0.525 -14.7561 10.4363 0.525 -16.6649 9.9134 0.525 -18.6012 9.1906 0.525 -20.4517 8.2359 0.525 -22.1009 7.0440 0.525 -23.4410 5.6363 0.525 -24.3818 4.0584 0.525 -24.8582 2.3750 0.525 -24.8362 0.6630 0.525 -24.3160 -0.9969 0.525 -23.3318 -2.5288 0.525 -21.9487 -3.8703 0.525 -20.2569 -4.9786 0.525 -18.3635 -5.8360 0.525 -16.3830 -6.4519 0.525 -14.4275 -6.8622 0.525 -12.5967 -7.1263 0.525 -10.9699 -7.3207 0.525 -9.5999 -7.5315 0.525 -8.5090 -7.8458 0.525 -7.6887 -8.3418 0.525 -7.1020 -9.0807 0.525 -6.6882 -10.0995 0.525 -6.3706 -11.4058 0.525 -6.0643 -12.9760 0.525 -5.6863 -14.7561 0.525 -5.1634 -16.6649 0.525 -4.4406 -18.6012 0.525 -3.4859 -20.4517 0.525 -2.2940 -22.1009 0.525 -0.8863 -23.4410 0.525 0.6916 -24.3818 0.525 2.3750 -24.8582 0.525 4.0870 -24.8362 0.525 5.7469 -24.3160 0.525 7.2788 -23.3318 0.525 8.6203 -21.9487 0.525 9.7286 -20.2569 0.525 10.5860 -18.3635 0.525 11.2019 -16.3830 0.525 11.6122 -14.4275 0.525 11.8763 -12.5967 0.525 12.0707 -10.9699 0.525 12.2815 -9.5999 0.525 12.5958 -8.5090 0.525 13.0918 -7.6887 0.525 13.8307 -7.1020 0.525 14.8495 -6.6882 0.525 16.1558 -6.3706 0.525 17.7260 -6.0643 0.525 19.5061 -5.6863 0.525 21.4149 -5.1634 0.525 23.3512 -4.4406 0.525 25.2017 -3.4859 0.525 26.8509 -2.2940 0.525 28.1910 -0.8863 0.525 29.1318 0.6916 0.525 = = = 28.4850 2.5000 0.500 28.3514 4.1264 0.500 27.7485 5.6896 0.500 26.7167 7.1196 0.500 25.3249 8.3604 0.500 23.6640 9.3766 0.500 21.8388 10.1568 0.500 19.9590 10.7156 0.500 18.1296 11.0924 0.500 16.4416 11.3476 0.500 14.9650 11.5563 0.500 13.7430 11.8010 0.500 12.7897 12.1627 0.500 12.0898 12.7121 0.500 11.6018 13.5022 0.500 11.2630 14.5613 0.500 10.9971 15.8894 0.500 10.7224 17.4565 0.500 10.3606 19.2046 0.500 9.8449 21.0511 0.500 9.1271 22.8962 0.500 8.1822 24.6307 0.500 7.0107 26.1459 0.500 5.6384 27.3428 0.500 4.1132 28.1407 0.500 2.5000 28.4850 0.500 0.8736 28.3514 0.500 -0.6896 27.7485 0.500 -2.1196 26.7167 0.500 -3.3604 25.3249 0.500 -4.3766 23.6640 0.500 -5.1568 21.8388 0.500 -5.7156 19.9590 0.500 -6.0924 18.1296 0.500 -6.3476 16.4416 0.500 -6.5563 14.9650 0.500 -6.8010 13.7430 0.500 -7.1627 12.7897 0.500 -7.7121 12.0898 0.500 -8.5022 11.6018 0.500 -9.5613 11.2630 0.500 -10.8894 10.9971 0.500 -12.4565 10.7224 0.500 -14.2046 10.3606 0.500 -16.0511 9.8449 0.500 -17.8962 9.1271 0.500 -19.6307 8.1822 0.500 -21.1459 7.0107 0.500 -22.3428 5.6384 0.500 -23.1407 4.1132 0.500 -23.4850 2.5000 0.500 -23.3514 0.8736 0.500 -22.7485 -0.6896 0.500 -21.7167 -2.1196 0.500 -20.3249 -3.3604 0.500 -18.6640 -4.3766 0.500 -16.8388 -5.1568 0.500 -14.9590 -5.7156 0.500 -13.1296 -6.0924 0.500 -11.4416 -6.3476 0.500 -9.9650 -6.5563 0.500 -8.7430 -6.8010 0.500 -7.7897 -7.1627 0.500 -7.0898 -7.7121 0.500 -6.6018 -8.5022 0.500 -6.2630 -9.5613 0.500 -5.9971 -10.8894 0.500 -5.7224 -12.4565 0.500 -5.3606 -14.2046 0.500 -4.8449 -16.0511 0.500 -4.1271 -17.8962 0.500 -3.1822 -19.6307 0.500 -2.0107 -21.1459 0.500 -0.6384 -22.3428 0.500 0.8868 -23.1407 0.500 2.5000 -23.4850 0.500 4.1264 -23.3514 0.500 5.6896 -22.7485 0.500 7.1196 -21.7167 0.500 8.3604 -20.3249 0.500 9.3766 -18.6640 0.500 10.1568 -16.8388 0.500 10.7156 -14.9590 0.500 11.0924 -13.1296 0.500 11.3476 -11.4416 0.500 11.5563 -9.9650 0.500 11.8010 -8.7430 0.500 12.1627 -7.7897 0.500 12.7121 -7.0898 0.500 13.5022 -6.6018 0.500 14.5613 -6.2630 0.500 15.8894 -5.9971 0.500 17.4565 -5.7224 0.500 19.2046 -5.3606 0.500 21.0511 -4.8449 0.500 22.8962 -4.1271 0.500 24.6307 -3.1822 0.500 26.1459 -2.0107 0.500 27.3428 -0.6384 0.500 28.1407 0.8868 0.500 = = = 27.3249 2.6250 0.475 27.0915 4.1643 0.475 26.4192 5.6309 0.475 25.3538 6.9608 0.475 23.9667 8.1046 0.475 22.3486 9.0336 0.475 20.6013 9.7423 0.475 18.8290 10.2500 0.475 17.1291 10.5987 0.475 15.5840 10.8490 0.475 14.2543 11.0742 0.475 13.1745 11.3523 0.475 12.3509 11.7582 0.475 11.7623 12.3553 0.475 11.3635 13.1881 0.475 11.0907 14.2771 0.475 10.8688 15.6151 0.475 10.6196 17.1671 0.475 10.2701 18.8716 0.475 9.7599 20.6458 0.475 9.0477 22.3919 0.475 8.1147 24.0059 0.475 6.9669 25.3861 0.475 5.6338 26.4421 0.475 4.1651 27.1034 0.475 2.6250 27.3249 0.475 1.0857 27.0915 0.475 -0.3809 26.4192 0.475 -1.7108 25.3538 0.475 -2.8546 23.9667 0.475 -3.7836 22.3486 0.475 -4.4923 20.6013 0.475 -5.0000 18.8290 0.475 -5.3487 17.1291 0.475 -5.5990 15.5840 0.475 -5.8242 14.2543 0.475 -6.1023 13.1745 0.475 -6.5082 12.3509 0.475 -7.1053 11.7623 0.475 -7.9381 11.3635 0.475 -9.0271 11.0907 0.475 -10.3651 10.8688 0.475 -11.9171 10.6196 0.475 -13.6216 10.2701 0.475 -15.3958 9.7599 0.475 -17.1419 9.0477 0.475 -18.7559 8.1147 0.475 -20.1361 6.9669 0.475 -21.1921 5.6338 0.475 -21.8534 4.1651 0.475 -22.0749 2.6250 0.475 -21.8415 1.0857 0.475 -21.1692 -0.3809 0.475 -20.1038 -1.7108 0.475 -18.7167 -2.8546 0.475 -17.0986 -3.7836 0.475 -15.3513 -4.4923 0.475 -13.5790 -5.0000 0.475 -11.8791 -5.3487 0.475 -10.3340 -5.5990 0.475 -9.0043 -5.8242 0.475 -7.9245 -6.1023 0.475 -7.1009 -6.5082 0.475 -6.5123 -7.1053 0.475 -6.1135 -7.9381 0.475 -5.8407 -9.0271 0.475 -5.6188 -10.3651 0.475 -5.3696 -11.9171 0.475 -5.0201 -13.6216 0.475 -4.5099 -15.3958 0.475 -3.7977 -17.1419 0.475 -2.8647 -18.7559 0.475 -1.7169 -20.1361 0.475 -0.3838 -21.1921 0.475 1.0849 -21.8534 0.475 2.6250 -22.0749 0.475 4.1643 -21.8415 0.475 5.6309 -21.1692 0.475 6.9608 -20.1038 0.475 8.1046 -18.7167 0.475 9.0336 -17.0986 0.475 9.7423 -15.3513 0.475 10.2500 -13.5790 0.475 10.5987 -11.8791 0.475 10.8490 -10.3340 0.475 11.0742 -9.0043 0.475 11.3523 -7.9245 0.475 11.7582 -7.1009 0.475 12.3553 -6.5123 0.475 13.1881 -6.1135 0.475 14.2771 -5.8407 0.475 15.6151 -5.6188 0.475 17.1671 -5.3696 0.475 18.8716 -5.0201 0.475 20.6458 -4.5099 0.475 22.3919 -3.7977 0.475 24.0059 -2.8647 0.475 25.3861 -1.7169 0.475 26.4421 -0.3838 0.475 27.1034 1.0849 0.475 = = = 26.1331 2.7500 0.450 25.8121 4.2009 0.450 25.0839 5.5714 0.450 23.9985 6.8034 0.450 22.6289 7.8540 0.450 21.0646 8.7008 0.450 19.4038 9.3437 0.450 17.7445 9.8059 0.450 16.1763 10.1311 0.450 14.7728 10.3799 0.450 13.5859 10.6227 0.450 12.6416 10.9330 0.450 11.9393 11.3793 0.450 11.4526 12.0173 0.450 11.1335 12.8840 0.450 10.9179 13.9922 0.450 10.7327 15.3287 0.450 10.5036 16.8538 0.450 10.1632 18.5039 0.450 9.6576 20.1967 0.450 8.9519 21.8375 0.450 8.0335 23.3277 0.450 6.9130 24.5730 0.450 5.6230 25.4923 0.450 4.2143 26.0242 0.450 2.7500 26.1331 0.450 1.2991 25.8121 0.450 -0.0714 25.0839 0.450 -1.3034 23.9985 0.450 -2.3540 22.6289 0.450 -3.2008 21.0646 0.450 -3.8437 19.4038 0.450 -4.3059 17.7445 0.450 -4.6311 16.1763 0.450 -4.8799 14.7728 0.450 -5.1227 13.5859 0.450 -5.4330 12.6416 0.450 -5.8793 11.9393 0.450 -6.5173 11.4526 0.450 -7.3840 11.1335 0.450 -8.4922 10.9179 0.450 -9.8287 10.7327 0.450 -11.3538 10.5036 0.450 -13.0039 10.1632 0.450 -14.6967 9.6576 0.450 -16.3375 8.9519 0.450 -17.8277 8.0335 0.450 -19.0730 6.9130 0.450 -19.9923 5.6230 0.450 -20.5242 4.2143 0.450 -20.6331 2.7500 0.450 -20.3121 1.2991 0.450 -19.5839 -0.0714 0.450 -18.4985 -1.3034 0.450 -17.1289 -2.3540 0.450 -15.5646 -3.2008 0.450 -13.9038 -3.8437 0.450 -12.2445 -4.3059 0.450 -10.6763 -4.6311 0.450 -9.2728 -4.8799 0.450 -8.0859 -5.1227 0.450 -7.1416 -5.4330 0.450 -6.4393 -5.8793 0.450 -5.9526 -6.5173 0.450 -5.6335 -7.3840 0.450 -5.4179 -8.4922 0.450 -5.2327 -9.8287 0.450 -5.0036 -11.3538 0.450 -4.6632 -13.0039 0.450 -4.1576 -14.6967 0.450 -3.4519 -16.3375 0.450 -2.5335 -17.8277 0.450 -1.4130 -19.0730 0.450 -0.1230 -19.9923 0.450 1.2857 -20.5242 0.450 2.7500 -20.6331 0.450 4.2009 -20.3121 0.450 5.5714 -19.5839 0.450 6.8034 -18.4985 0.450 7.8540 -17.1289 0.450 8.7008 -15.5646 0.450 9.3437 -13.9038 0.450 9.8059 -12.2445 0.450 10.1311 -10.6763 0.450 10.3799 -9.2728 0.450 10.6227 -8.0859 0.450 10.9330 -7.1416 0.450 11.3793 -6.4393 0.450 12.0173 -5.9526 0.450 12.8840 -5.6335 0.450 13.9922 -5.4179 0.450 15.3287 -5.2327 0.450 16.8538 -5.0036 0.450 18.5039 -4.6632 0.450 20.1967 -4.1576 0.450 21.8375 -3.4519 0.450 23.3277 -2.5335 0.450 24.5730 -1.4130 0.450 25.4923 -0.1230 0.450 26.0242 1.2857 0.450 = = = 24.9145 2.8750 0.425 24.5186 4.2367 0.425 23.7479 5.5119 0.425 22.6557 6.6484 0.425 21.3158 7.6098 0.425 19.8155 8.3793 0.425 18.2485 8.9618 0.425 16.7064 9.3836 0.425 15.2708 9.6897 0.425 14.0067 9.9394 0.425 12.9574 10.2003 0.425 12.1412 10.5407 0.425 11.5512 11.0225 0.425 11.1569 11.6944 0.425 10.9083 12.5856 0.425 10.7416 13.7024 0.425 10.5862 15.0260 0.425 10.3726 16.5130 0.425 10.0388 18.0988 0.425 9.5374 19.7023 0.425 8.8397 21.2326 0.425 7.9387 22.5970 0.425 6.8493 23.7092 0.425 5.6065 24.4967 0.425 4.2612 24.9074 0.425 2.8750 24.9145 0.425 1.5133 24.5186 0.425 0.2381 23.7479 0.425 -0.8984 22.6557 0.425 -1.8598 21.3158 0.425 -2.6293 19.8155 0.425 -3.2118 18.2485 0.425 -3.6336 16.7064 0.425 -3.9397 15.2708 0.425 -4.1894 14.0067 0.425 -4.4503 12.9574 0.425 -4.7907 12.1412 0.425 -5.2725 11.5512 0.425 -5.9444 11.1569 0.425 -6.8356 10.9083 0.425 -7.9524 10.7416 0.425 -9.2760 10.5862 0.425 -10.7630 10.3726 0.425 -12.3488 10.0388 0.425 -13.9523 9.5374 0.425 -15.4826 8.8397 0.425 -16.8470 7.9387 0.425 -17.9592 6.8493 0.425 -18.7467 5.6065 0.425 -19.1574 4.2612 0.425 -19.1645 2.8750 0.425 -18.7686 1.5133 0.425 -17.9979 0.2381 0.425 -16.9057 -0.8984 0.425 -15.5658 -1.8598 0.425 -14.0655 -2.6293 0.425 -12.4985 -3.2118 0.425 -10.9564 -3.6336 0.425 -9.5208 -3.9397 0.425 -8.2567 -4.1894 0.425 -7.2074 -4.4503 0.425 -6.3912 -4.7907 0.425 -5.8012 -5.2725 0.425 -5.4069 -5.9444 0.425 -5.1583 -6.8356 0.425 -4.9916 -7.9524 0.425 -4.8362 -9.2760 0.425 -4.6226 -10.7630 0.425 -4.2888 -12.3488 0.425 -3.7874 -13.9523 0.425 -3.0897 -15.4826 0.425 -2.1887 -16.8470 0.425 -1.0993 -17.9592 0.425 0.1435 -18.7467 0.425 1.4888 -19.1574 0.425 2.8750 -19.1645 0.425 4.2367 -18.7686 0.425 5.5119 -17.9979 0.425 6.6484 -16.9057 0.425 7.6098 -15.5658 0.425 8.3793 -14.0655 0.425 8.9618 -12.4985 0.425 9.3836 -10.9564 0.425 9.6897 -9.5208 0.425 9.9394 -8.2567 0.425 10.2003 -7.2074 0.425 10.5407 -6.3912 0.425 11.0225 -5.8012 0.425 11.6944 -5.4069 0.425 12.5856 -5.1583 0.425 13.7024 -4.9916 0.425 15.0260 -4.8362 0.425 16.5130 -4.6226 0.425 18.0988 -4.2888 0.425 19.7023 -3.7874 0.425 21.2326 -3.0897 0.425 22.5970 -2.1887 0.425 23.7092 -1.0993 0.425 24.4967 0.1435 0.425 24.9074 1.4888 0.425 = = = 23.6745 3.0000 0.400 23.2164 4.2719 0.400 22.4166 5.4529 0.400 21.3305 6.4967 0.400 20.0315 7.3729 0.400 18.6043 8.0701 0.400 17.1373 8.5974 0.400 15.7154 8.9834 0.400 14.4121 9.2738 0.400 13.2840 9.5264 0.400 12.3662 9.8049 0.400 11.6701 10.1725 0.400 11.1832 10.6845 0.400 10.8717 11.3825 0.400 10.6843 12.2887 0.400 10.5585 13.4034 0.400 10.4269 14.7030 0.400 10.2246 16.1415 0.400 9.8956 17.6540 0.400 9.3987 19.1613 0.400 8.7112 20.5771 0.400 7.8309 21.8152 0.400 6.7765 22.7971 0.400 5.5846 23.4590 0.400 4.3060 23.7578 0.400 3.0000 23.6745 0.400 1.7281 23.2164 0.400 0.5471 22.4166 0.400 -0.4967 21.3305 0.400 -1.3729 20.0315 0.400 -2.0701 18.6043 0.400 -2.5974 17.1373 0.400 -2.9834 15.7154 0.400 -3.2738 14.4121 0.400 -3.5264 13.2840 0.400 -3.8049 12.3662 0.400 -4.1725 11.6701 0.400 -4.6845 11.1832 0.400 -5.3825 10.8717 0.400 -6.2887 10.6843 0.400 -7.4034 10.5585 0.400 -8.7030 10.4269 0.400 -10.1415 10.2246 0.400 -11.6540 9.8956 0.400 -13.1613 9.3987 0.400 -14.5771 8.7112 0.400 -15.8152 7.8309 0.400 -16.7971 6.7765 0.400 -17.4590 5.5846 0.400 -17.7578 4.3060 0.400 -17.6745 3.0000 0.400 -17.2164 1.7281 0.400 -16.4166 0.5471 0.400 -15.3305 -0.4967 0.400 -14.0315 -1.3729 0.400 -12.6043 -2.0701 0.400 -11.1373 -2.5974 0.400 -9.7154 -2.9834 0.400 -8.4121 -3.2738 0.400 -7.2840 -3.5264 0.400 -6.3662 -3.8049 0.400 -5.6701 -4.1725 0.400 -5.1832 -4.6845 0.400 -4.8717 -5.3825 0.400 -4.6843 -6.2887 0.400 -4.5585 -7.4034 0.400 -4.4269 -8.7030 0.400 -4.2246 -10.1415 0.400 -3.8956 -11.6540 0.400 -3.3987 -13.1613 0.400 -2.7112 -14.5771 0.400 -1.8309 -15.8152 0.400 -0.7765 -16.7971 0.400 0.4154 -17.4590 0.400 1.6940 -17.7578 0.400 3.0000 -17.6745 0.400 4.2719 -17.2164 0.400 5.4529 -16.4166 0.400 6.4967 -15.3305 0.400 7.3729 -14.0315 0.400 8.0701 -12.6043 0.400 8.5974 -11.1373 0.400 8.9834 -9.7154 0.400 9.2738 -8.4121 0.400 9.5264 -7.2840 0.400 9.8049 -6.3662 0.400 10.1725 -5.6701 0.400 10.6845 -5.1832 0.400 11.3825 -4.8717 0.400 12.2887 -4.6843 0.400 13.4034 -4.5585 0.400 14.7030 -4.4269 0.400 16.1415 -4.2246 0.400 17.6540 -3.8956 0.400 19.1613 -3.3987 0.400 20.5771 -2.7112 0.400 21.8152 -1.8309 0.400 22.7971 -0.7765 0.400 23.4590 0.4154 0.400 23.7578 1.6940 0.400 = = = 22.4184 3.1250 0.375 21.9111 4.3069 0.375 21.0951 5.3952 0.375 20.0273 6.3493 0.375 18.7797 7.1444 0.375 17.4335 7.7741 0.375 16.0715 8.2509 0.375 14.7715 8.6054 0.375 13.5989 8.8831 0.375 12.6023 9.1395 0.375 11.8092 9.4345 0.375 11.2246 9.8255 0.375 10.8313 10.3617 0.375 10.5930 11.0776 0.375 10.4581 11.9892 0.375 10.3658 13.0912 0.375 10.2525 14.3561 0.375 10.0582 15.7364 0.375 9.7329 17.1675 0.375 9.2413 18.5731 0.375 8.5664 19.8718 0.375 7.7105 20.9843 0.375 6.6951 21.8400 0.375 5.5579 22.3836 0.375 4.3490 22.5802 0.375 3.1250 22.4184 0.375 1.9431 21.9111 0.375 0.8548 21.0951 0.375 -0.0993 20.0273 0.375 -0.8944 18.7797 0.375 -1.5241 17.4335 0.375 -2.0009 16.0715 0.375 -2.3554 14.7715 0.375 -2.6331 13.5989 0.375 -2.8895 12.6023 0.375 -3.1845 11.8092 0.375 -3.5755 11.2246 0.375 -4.1117 10.8313 0.375 -4.8276 10.5930 0.375 -5.7392 10.4581 0.375 -6.8412 10.3658 0.375 -8.1061 10.2525 0.375 -9.4864 10.0582 0.375 -10.9175 9.7329 0.375 -12.3231 9.2413 0.375 -13.6218 8.5664 0.375 -14.7343 7.7105 0.375 -15.5900 6.6951 0.375 -16.1336 5.5579 0.375 -16.3302 4.3490 0.375 -16.1684 3.1250 0.375 -15.6611 1.9431 0.375 -14.8451 0.8548 0.375 -13.7773 -0.0993 0.375 -12.5297 -0.8944 0.375 -11.1835 -1.5241 0.375 -9.8215 -2.0009 0.375 -8.5215 -2.3554 0.375 -7.3489 -2.6331 0.375 -6.3523 -2.8895 0.375 -5.5592 -3.1845 0.375 -4.9746 -3.5755 0.375 -4.5813 -4.1117 0.375 -4.3430 -4.8276 0.375 -4.2081 -5.7392 0.375 -4.1158 -6.8412 0.375 -4.0025 -8.1061 0.375 -3.8082 -9.4864 0.375 -3.4829 -10.9175 0.375 -2.9913 -12.3231 0.375 -2.3164 -13.6218 0.375 -1.4605 -14.7343 0.375 -0.4451 -15.5900 0.375 0.6921 -16.1336 0.375 1.9010 -16.3302 0.375 3.1250 -16.1684 0.375 4.3069 -15.6611 0.375 5.3952 -14.8451 0.375 6.3493 -13.7773 0.375 7.1444 -12.5297 0.375 7.7741 -11.1835 0.375 8.2509 -9.8215 0.375 8.6054 -8.5215 0.375 8.8831 -7.3489 0.375 9.1395 -6.3523 0.375 9.4345 -5.5592 0.375 9.8255 -4.9746 0.375 10.3617 -4.5813 0.375 11.0776 -4.3430 0.375 11.9892 -4.2081 0.375 13.0912 -4.1158 0.375 14.3561 -4.0025 0.375 15.7364 -3.8082 0.375 17.1675 -3.4829 0.375 18.5731 -2.9913 0.375 19.8718 -2.3164 0.375 20.9843 -1.4605 0.375 21.8400 -0.4451 0.375 22.3836 0.6921 0.375 22.5802 1.9010 0.375 = = = 21.1516 3.2500 0.350 20.6081 4.3421 0.350 19.7886 5.3393 0.350 18.7504 6.2069 0.350 17.5636 6.9251 0.350 16.3052 7.4919 0.350 15.0519 7.9227 0.350 13.8742 8.2494 0.350 12.8298 8.5165 0.350 11.9593 8.7771 0.350 11.2833 9.0865 0.350 10.8010 9.4968 0.350 10.4918 10.0505 0.350 10.3173 10.7759 0.350 10.2264 11.6830 0.350 10.1608 12.7619 0.350 10.0609 13.9822 0.350 9.8720 15.2953 0.350 9.5499 16.6379 0.350 9.0651 17.9374 0.350 8.4057 19.1177 0.350 7.5780 20.1066 0.350 6.6057 20.8413 0.350 5.5271 21.2748 0.350 4.3906 21.3799 0.350 3.2500 21.1516 0.350 2.1579 20.6081 0.350 1.1607 19.7886 0.350 0.2931 18.7504 0.350 -0.4251 17.5636 0.350 -0.9919 16.3052 0.350 -1.4227 15.0519 0.350 -1.7494 13.8742 0.350 -2.0165 12.8298 0.350 -2.2771 11.9593 0.350 -2.5865 11.2833 0.350 -2.9968 10.8010 0.350 -3.5505 10.4918 0.350 -4.2759 10.3173 0.350 -5.1830 10.2264 0.350 -6.2619 10.1608 0.350 -7.4822 10.0609 0.350 -8.7953 9.8720 0.350 -10.1379 9.5499 0.350 -11.4374 9.0651 0.350 -12.6177 8.4057 0.350 -13.6066 7.5780 0.350 -14.3413 6.6057 0.350 -14.7748 5.5271 0.350 -14.8799 4.3906 0.350 -14.6516 3.2500 0.350 -14.1081 2.1579 0.350 -13.2886 1.1607 0.350 -12.2504 0.2931 0.350 -11.0636 -0.4251 0.350 -9.8052 -0.9919 0.350 -8.5519 -1.4227 0.350 -7.3742 -1.7494 0.350 -6.3298 -2.0165 0.350 -5.4593 -2.2771 0.350 -4.7833 -2.5865 0.350 -4.3010 -2.9968 0.350 -3.9918 -3.5505 0.350 -3.8173 -4.2759 0.350 -3.7264 -5.1830 0.350 -3.6608 -6.2619 0.350 -3.5609 -7.4822 0.350 -3.3720 -8.7953 0.350 -3.0499 -10.1379 0.350 -2.5651 -11.4374 0.350 -1.9057 -12.6177 0.350 -1.0780 -13.6066 0.350 -0.1057 -14.3413 0.350 0.9729 -14.7748 0.350 2.1094 -14.8799 0.350 3.2500 -14.6516 0.350 4.3421 -14.1081 0.350 5.3393 -13.2886 0.350 6.2069 -12.2504 0.350 6.9251 -11.0636 0.350 7.4919 -9.8052 0.350 7.9227 -8.5519 0.350 8.2494 -7.3742 0.350 8.5165 -6.3298 0.350 8.7771 -5.4593 0.350 9.0865 -4.7833 0.350 9.4968 -4.3010 0.350 10.0505 -3.9918 0.350 10.7759 -3.8173 0.350 11.6830 -3.7264 0.350 12.7619 -3.6608 0.350 13.9822 -3.5609 0.350 15.2953 -3.3720 0.350 16.6379 -3.0499 0.350 17.9374 -2.5651 0.350 19.1177 -1.9057 0.350 20.1066 -1.0780 0.350 20.8413 -0.1057 0.350 21.2748 0.9729 0.350 21.3799 2.1094 0.350 = = = 19.8796 3.3750 0.325 19.3124 4.3777 0.325 18.5015 5.2859 0.325 17.5036 6.0702 0.325 16.3861 6.7157 0.325 15.2210 7.2240 0.325 14.0789 7.6130 0.325 13.0227 7.9149 0.325 12.1026 8.1731 0.325 11.3519 8.4373 0.325 10.7848 8.7585 0.325 10.3956 9.1830 0.325 10.1607 9.7472 0.325 10.0408 10.4733 0.325 9.9860 11.3663 0.325 9.9409 12.4121 0.325 9.8502 13.5783 0.325 9.6648 14.8161 0.325 9.3462 16.0644 0.325 8.8703 17.2545 0.325 8.2298 18.3164 0.325 7.4343 19.1848 0.325 6.5092 19.8048 0.325 5.4926 20.1372 0.325 4.4311 20.1618 0.325 3.3750 19.8796 0.325 2.3723 19.3124 0.325 1.4641 18.5015 0.325 0.6798 17.5036 0.325 0.0343 16.3861 0.325 -0.4740 15.2210 0.325 -0.8630 14.0789 0.325 -1.1649 13.0227 0.325 -1.4231 12.1026 0.325 -1.6873 11.3519 0.325 -2.0085 10.7848 0.325 -2.4330 10.3956 0.325 -2.9972 10.1607 0.325 -3.7233 10.0408 0.325 -4.6163 9.9860 0.325 -5.6621 9.9409 0.325 -6.8283 9.8502 0.325 -8.0661 9.6648 0.325 -9.3144 9.3462 0.325 -10.5045 8.8703 0.325 -11.5664 8.2298 0.325 -12.4348 7.4343 0.325 -13.0548 6.5092 0.325 -13.3872 5.4926 0.325 -13.4118 4.4311 0.325 -13.1296 3.3750 0.325 -12.5624 2.3723 0.325 -11.7515 1.4641 0.325 -10.7536 0.6798 0.325 -9.6361 0.0343 0.325 -8.4710 -0.4740 0.325 -7.3289 -0.8630 0.325 -6.2727 -1.1649 0.325 -5.3526 -1.4231 0.325 -4.6019 -1.6873 0.325 -4.0348 -2.0085 0.325 -3.6456 -2.4330 0.325 -3.4107 -2.9972 0.325 -3.2908 -3.7233 0.325 -3.2360 -4.6163 0.325 -3.1909 -5.6621 0.325 -3.1002 -6.8283 0.325 -2.9148 -8.0661 0.325 -2.5962 -9.3144 0.325 -2.1203 -10.5045 0.325 -1.4798 -11.5664 0.325 -0.6843 -12.4348 0.325 0.2408 -13.0548 0.325 1.2574 -13.3872 0.325 2.3189 -13.4118 0.325 3.3750 -13.1296 0.325 4.3777 -12.5624 0.325 5.2859 -11.7515 0.325 6.0702 -10.7536 0.325 6.7157 -9.6361 0.325 7.2240 -8.4710 0.325 7.6130 -7.3289 0.325 7.9149 -6.2727 0.325 8.1731 -5.3526 0.325 8.4373 -4.6019 0.325 8.7585 -4.0348 0.325 9.1830 -3.6456 0.325 9.7472 -3.4107 0.325 10.4733 -3.2908 0.325 11.3663 -3.2360 0.325 12.4121 -3.1909 0.325 13.5783 -3.1002 0.325 14.8161 -2.9148 0.325 16.0644 -2.5962 0.325 17.2545 -2.1203 0.325 18.3164 -1.4798 0.325 19.1848 -0.6843 0.325 19.8048 0.2408 0.325 20.1372 1.2574 0.325 20.1618 2.3189 0.325 = = = 18.6076 3.5000 0.300 18.0292 4.4141 0.300 17.2384 5.2356 0.300 16.2905 5.9399 0.300 15.2495 6.5168 0.300 14.1821 6.9708 0.300 13.1523 7.3216 0.300 12.2157 7.6013 0.300 11.4151 7.8514 0.300 10.7771 8.1182 0.300 10.3100 8.4478 0.300 10.0044 8.8809 0.300 9.8341 9.4481 0.300 9.7600 10.1662 0.300 9.7338 11.0354 0.300 9.7036 12.0385 0.300 9.6189 13.1418 0.300 9.4359 14.2973 0.300 9.1215 15.4464 0.300 8.6571 16.5252 0.300 8.0391 17.4699 0.300 7.2800 18.2221 0.300 6.4062 18.7347 0.300 5.4550 18.9757 0.300 4.4709 18.9314 0.300 3.5000 18.6076 0.300 2.5859 18.0292 0.300 1.7644 17.2384 0.300 1.0601 16.2905 0.300 0.4832 15.2495 0.300 0.0292 14.1821 0.300 -0.3216 13.1523 0.300 -0.6013 12.2157 0.300 -0.8514 11.4151 0.300 -1.1182 10.7771 0.300 -1.4478 10.3100 0.300 -1.8809 10.0044 0.300 -2.4481 9.8341 0.300 -3.1662 9.7600 0.300 -4.0354 9.7338 0.300 -5.0385 9.7036 0.300 -6.1418 9.6189 0.300 -7.2973 9.4359 0.300 -8.4464 9.1215 0.300 -9.5252 8.6571 0.300 -10.4699 8.0391 0.300 -11.2221 7.2800 0.300 -11.7347 6.4062 0.300 -11.9757 5.4550 0.300 -11.9314 4.4709 0.300 -11.6076 3.5000 0.300 -11.0292 2.5859 0.300 -10.2384 1.7644 0.300 -9.2905 1.0601 0.300 -8.2495 0.4832 0.300 -7.1821 0.0292 0.300 -6.1523 -0.3216 0.300 -5.2157 -0.6013 0.300 -4.4151 -0.8514 0.300 -3.7771 -1.1182 0.300 -3.3100 -1.4478 0.300 -3.0044 -1.8809 0.300 -2.8341 -2.4481 0.300 -2.7600 -3.1662 0.300 -2.7338 -4.0354 0.300 -2.7036 -5.0385 0.300 -2.6189 -6.1418 0.300 -2.4359 -7.2973 0.300 -2.1215 -8.4464 0.300 -1.6571 -9.5252 0.300 -1.0391 -10.4699 0.300 -0.2800 -11.2221 0.300 0.5938 -11.7347 0.300 1.5450 -11.9757 0.300 2.5291 -11.9314 0.300 3.5000 -11.6076 0.300 4.4141 -11.0292 0.300 5.2356 -10.2384 0.300 5.9399 -9.2905 0.300 6.5168 -8.2495 0.300 6.9708 -7.1821 0.300 7.3216 -6.1523 0.300 7.6013 -5.2157 0.300 7.8514 -4.4151 0.300 8.1182 -3.7771 0.300 8.4478 -3.3100 0.300 8.8809 -3.0044 0.300 9.4481 -2.8341 0.300 10.1662 -2.7600 0.300 11.0354 -2.7338 0.300 12.0385 -2.7036 0.300 13.1418 -2.6189 0.300 14.2973 -2.4359 0.300 15.4464 -2.1215 0.300 16.5252 -1.6571 0.300 17.4699 -1.0391 0.300 18.2221 -0.2800 0.300 18.7347 0.5938 0.300 18.9757 1.5450 0.300 18.9314 2.5291 0.300 = = = 17.3408 3.6250 0.275 16.7632 4.4516 0.275 16.0033 5.1887 0.275 15.1142 5.8167 0.275 14.1557 6.3288 0.275 13.1890 6.7325 0.275 12.2714 7.0484 0.275 11.4514 7.3078 0.275 10.7646 7.5500 0.275 10.2314 7.8175 0.275 9.8552 8.1515 0.275 9.6233 8.5872 0.275 9.5083 9.1498 0.275 9.4715 9.8509 0.275 9.4671 10.6868 0.275 9.4469 11.6382 0.275 9.3655 12.6707 0.275 9.1844 13.7376 0.275 8.8760 14.7839 0.275 8.4259 15.7508 0.275 7.8345 16.5805 0.275 7.1161 17.2220 0.275 6.2976 17.6354 0.275 5.4151 17.7954 0.275 4.5101 17.6938 0.275 3.6250 17.3408 0.275 2.7984 16.7632 0.275 2.0613 16.0033 0.275 1.4333 15.1142 0.275 0.9212 14.1557 0.275 0.5175 13.1890 0.275 0.2016 12.2714 0.275 -0.0578 11.4514 0.275 -0.3000 10.7646 0.275 -0.5675 10.2314 0.275 -0.9015 9.8552 0.275 -1.3372 9.6233 0.275 -1.8998 9.5083 0.275 -2.6009 9.4715 0.275 -3.4368 9.4671 0.275 -4.3882 9.4469 0.275 -5.4207 9.3655 0.275 -6.4876 9.1844 0.275 -7.5339 8.8760 0.275 -8.5008 8.4259 0.275 -9.3305 7.8345 0.275 -9.9720 7.1161 0.275 -10.3854 6.2976 0.275 -10.5454 5.4151 0.275 -10.4438 4.5101 0.275 -10.0908 3.6250 0.275 -9.5132 2.7984 0.275 -8.7533 2.0613 0.275 -7.8642 1.4333 0.275 -6.9057 0.9212 0.275 -5.9390 0.5175 0.275 -5.0214 0.2016 0.275 -4.2014 -0.0578 0.275 -3.5146 -0.3000 0.275 -2.9814 -0.5675 0.275 -2.6052 -0.9015 0.275 -2.3733 -1.3372 0.275 -2.2583 -1.8998 0.275 -2.2215 -2.6009 0.275 -2.2171 -3.4368 0.275 -2.1969 -4.3882 0.275 -2.1155 -5.4207 0.275 -1.9344 -6.4876 0.275 -1.6260 -7.5339 0.275 -1.1759 -8.5008 0.275 -0.5845 -9.3305 0.275 0.1339 -9.9720 0.275 0.9524 -10.3854 0.275 1.8349 -10.5454 0.275 2.7399 -10.4438 0.275 3.6250 -10.0908 0.275 4.4516 -9.5132 0.275 5.1887 -8.7533 0.275 5.8167 -7.8642 0.275 6.3288 -6.9057 0.275 6.7325 -5.9390 0.275 7.0484 -5.0214 0.275 7.3078 -4.2014 0.275 7.5500 -3.5146 0.275 7.8175 -2.9814 0.275 8.1515 -2.6052 0.275 8.5872 -2.3733 0.275 9.1498 -2.2583 0.275 9.8509 -2.2215 0.275 10.6868 -2.2171 0.275 11.6382 -2.1969 0.275 12.6707 -2.1155 0.275 13.7376 -1.9344 0.275 14.7839 -1.6260 0.275 15.7508 -1.1759 0.275 16.5805 -0.5845 0.275 17.2220 0.1339 0.275 17.6354 0.9524 0.275 17.7954 1.8349 0.275 17.6938 2.7399 0.275 = = = 16.0842 3.7500 0.250 15.5190 4.4904 0.250 14.7998 5.1459 0.250 13.9771 5.7009 0.250 13.1061 6.1522 0.250 12.2420 6.5092 0.250 11.4353 6.7928 0.250 10.7275 7.0334 0.250 10.1479 7.2673 0.250 9.7110 7.5330 0.250 9.4163 7.8668 0.250 9.2484 8.2986 0.250 9.1794 8.8485 0.250 9.1719 9.5237 0.250 9.1830 10.3174 0.250 9.1690 11.2085 0.250 9.0891 12.1630 0.250 8.9102 13.1364 0.250 8.6097 14.0775 0.250 8.1776 14.9328 0.250 7.6169 15.6511 0.250 6.9436 16.1884 0.250 6.1844 16.5115 0.250 5.3735 16.6012 0.250 4.5493 16.4544 0.250 3.7500 16.0842 0.250 3.0096 15.5190 0.250 2.3541 14.7998 0.250 1.7991 13.9771 0.250 1.3478 13.1061 0.250 0.9908 12.2420 0.250 0.7072 11.4353 0.250 0.4666 10.7275 0.250 0.2327 10.1479 0.250 -0.0330 9.7110 0.250 -0.3668 9.4163 0.250 -0.7986 9.2484 0.250 -1.3485 9.1794 0.250 -2.0237 9.1719 0.250 -2.8174 9.1830 0.250 -3.7085 9.1690 0.250 -4.6630 9.0891 0.250 -5.6364 8.9102 0.250 -6.5775 8.6097 0.250 -7.4328 8.1776 0.250 -8.1511 7.6169 0.250 -8.6884 6.9436 0.250 -9.0115 6.1844 0.250 -9.1012 5.3735 0.250 -8.9544 4.5493 0.250 -8.5842 3.7500 0.250 -8.0190 3.0096 0.250 -7.2998 2.3541 0.250 -6.4771 1.7991 0.250 -5.6061 1.3478 0.250 -4.7420 0.9908 0.250 -3.9353 0.7072 0.250 -3.2275 0.4666 0.250 -2.6479 0.2327 0.250 -2.2110 -0.0330 0.250 -1.9163 -0.3668 0.250 -1.7484 -0.7986 0.250 -1.6794 -1.3485 0.250 -1.6719 -2.0237 0.250 -1.6830 -2.8174 0.250 -1.6690 -3.7085 0.250 -1.5891 -4.6630 0.250 -1.4102 -5.6364 0.250 -1.1097 -6.5775 0.250 -0.6776 -7.4328 0.250 -0.1169 -8.1511 0.250 0.5564 -8.6884 0.250 1.3156 -9.0115 0.250 2.1265 -9.1012 0.250 2.9507 -8.9544 0.250 3.7500 -8.5842 0.250 4.4904 -8.0190 0.250 5.1459 -7.2998 0.250 5.7009 -6.4771 0.250 6.1522 -5.6061 0.250 6.5092 -4.7420 0.250 6.7928 -3.9353 0.250 7.0334 -3.2275 0.250 7.2673 -2.6479 0.250 7.5330 -2.2110 0.250 7.8668 -1.9163 0.250 8.2986 -1.7484 0.250 8.8485 -1.6794 0.250 9.5237 -1.6719 0.250 10.3174 -1.6830 0.250 11.2085 -1.6690 0.250 12.1630 -1.5891 0.250 13.1364 -1.4102 0.250 14.0775 -1.1097 0.250 14.9328 -0.6776 0.250 15.6511 -0.1169 0.250 16.1884 0.5564 0.250 16.5115 1.3156 0.250 16.6012 2.1265 0.250 16.4544 2.9507 0.250 = = = 14.8428 3.8750 0.225 14.3006 4.5309 0.225 13.6312 5.1075 0.225 12.8815 5.5931 0.225 12.1016 5.9872 0.225 11.3407 6.3007 0.225 10.6424 6.5544 0.225 10.0417 6.7768 0.225 9.5617 7.0013 0.225 9.2122 7.2621 0.225 8.9891 7.5906 0.225 8.8755 8.0118 0.225 8.8437 8.5409 0.225 8.8581 9.1815 0.225 8.8794 9.9243 0.225 8.8680 10.7473 0.225 8.7886 11.6176 0.225 8.6130 12.4934 0.225 8.3232 13.3279 0.225 7.9128 14.0734 0.225 7.3874 14.6850 0.225 6.7636 15.1254 0.225 6.0674 15.3678 0.225 5.3307 15.3984 0.225 4.5887 15.2183 0.225 3.8750 14.8428 0.225 3.2191 14.3006 0.225 2.6425 13.6312 0.225 2.1569 12.8815 0.225 1.7628 12.1016 0.225 1.4493 11.3407 0.225 1.1956 10.6424 0.225 0.9732 10.0417 0.225 0.7487 9.5617 0.225 0.4879 9.2122 0.225 0.1594 8.9891 0.225 -0.2618 8.8755 0.225 -0.7909 8.8437 0.225 -1.4315 8.8581 0.225 -2.1743 8.8794 0.225 -2.9973 8.8680 0.225 -3.8676 8.7886 0.225 -4.7434 8.6130 0.225 -5.5779 8.3232 0.225 -6.3234 7.9128 0.225 -6.9350 7.3874 0.225 -7.3754 6.7636 0.225 -7.6178 6.0674 0.225 -7.6484 5.3307 0.225 -7.4683 4.5887 0.225 -7.0928 3.8750 0.225 -6.5506 3.2191 0.225 -5.8812 2.6425 0.225 -5.1315 2.1569 0.225 -4.3516 1.7628 0.225 -3.5907 1.4493 0.225 -2.8924 1.1956 0.225 -2.2917 0.9732 0.225 -1.8117 0.7487 0.225 -1.4622 0.4879 0.225 -1.2391 0.1594 0.225 -1.1255 -0.2618 0.225 -1.0937 -0.7909 0.225 -1.1081 -1.4315 0.225 -1.1294 -2.1743 0.225 -1.1180 -2.9973 0.225 -1.0386 -3.8676 0.225 -0.8630 -4.7434 0.225 -0.5732 -5.5779 0.225 -0.1628 -6.3234 0.225 0.3626 -6.9350 0.225 0.9864 -7.3754 0.225 1.6826 -7.6178 0.225 2.4193 -7.6484 0.225 3.1613 -7.4683 0.225 3.8750 -7.0928 0.225 4.5309 -6.5506 0.225 5.1075 -5.8812 0.225 5.5931 -5.1315 0.225 5.9872 -4.3516 0.225 6.3007 -3.5907 0.225 6.5544 -2.8924 0.225 6.7768 -2.2917 0.225 7.0013 -1.8117 0.225 7.2621 -1.4622 0.225 7.5906 -1.2391 0.225 8.0118 -1.1255 0.225 8.5409 -1.0937 0.225 9.1815 -1.1081 0.225 9.9243 -1.1294 0.225 10.7473 -1.1180 0.225 11.6176 -1.0386 0.225 12.4934 -0.8630 0.225 13.3279 -0.5732 0.225 14.0734 -0.1628 0.225 14.6850 0.3626 0.225 15.1254 0.9864 0.225 15.3678 1.6826 0.225 15.3984 2.4193 0.225 15.2183 3.1613 0.225 = = = 13.6211 4.0000 0.200 13.1120 4.5733 0.200 12.5004 5.0739 0.200 11.8291 5.4935 0.200 11.1427 5.8339 0.200 10.4841 6.1068 0.200 9.8906 6.3323 0.200 9.3908 6.5367 0.200 9.0024 6.7501 0.200 8.7308 7.0023 0.200 8.5695 7.3200 0.200 8.5008 7.7233 0.200 8.4976 8.2236 0.200 8.5272 8.8210 0.200 8.5539 9.5047 0.200 8.5428 10.2527 0.200 8.4636 11.0335 0.200 8.2929 11.8088 0.200 8.0171 12.5367 0.200 7.6327 13.1751 0.200 7.1471 13.6856 0.200 6.5771 14.0373 0.200 5.9475 14.2091 0.200 5.2876 14.1922 0.200 4.6286 13.9905 0.200 4.0000 13.6211 0.200 3.4267 13.1120 0.200 2.9261 12.5004 0.200 2.5065 11.8291 0.200 2.1661 11.1427 0.200 1.8932 10.4841 0.200 1.6677 9.8906 0.200 1.4633 9.3908 0.200 1.2499 9.0024 0.200 0.9977 8.7308 0.200 0.6800 8.5695 0.200 0.2767 8.5008 0.200 -0.2236 8.4976 0.200 -0.8210 8.5272 0.200 -1.5047 8.5539 0.200 -2.2527 8.5428 0.200 -3.0335 8.4636 0.200 -3.8088 8.2929 0.200 -4.5367 8.0171 0.200 -5.1751 7.6327 0.200 -5.6856 7.1471 0.200 -6.0373 6.5771 0.200 -6.2091 5.9475 0.200 -6.1922 5.2876 0.200 -5.9905 4.6286 0.200 -5.6211 4.0000 0.200 -5.1120 3.4267 0.200 -4.5004 2.9261 0.200 -3.8291 2.5065 0.200 -3.1427 2.1661 0.200 -2.4841 1.8932 0.200 -1.8906 1.6677 0.200 -1.3908 1.4633 0.200 -1.0024 1.2499 0.200 -0.7308 0.9977 0.200 -0.5695 0.6800 0.200 -0.5008 0.2767 0.200 -0.4976 -0.2236 0.200 -0.5272 -0.8210 0.200 -0.5539 -1.5047 0.200 -0.5428 -2.2527 0.200 -0.4636 -3.0335 0.200 -0.2929 -3.8088 0.200 -0.0171 -4.5367 0.200 0.3673 -5.1751 0.200 0.8529 -5.6856 0.200 1.4229 -6.0373 0.200 2.0525 -6.2091 0.200 2.7124 -6.1922 0.200 3.3714 -5.9905 0.200 4.0000 -5.6211 0.200 4.5733 -5.1120 0.200 5.0739 -4.5004 0.200 5.4935 -3.8291 0.200 5.8339 -3.1427 0.200 6.1068 -2.4841 0.200 6.3323 -1.8906 0.200 6.5367 -1.3908 0.200 6.7501 -1.0024 0.200 7.0023 -0.7308 0.200 7.3200 -0.5695 0.200 7.7233 -0.5008 0.200 8.2236 -0.4976 0.200 8.8210 -0.5272 0.200 9.5047 -0.5539 0.200 10.2527 -0.5428 0.200 11.0335 -0.4636 0.200 11.8088 -0.2929 0.200 12.5367 -0.0171 0.200 13.1751 0.3673 0.200 13.6856 0.8529 0.200 14.0373 1.4229 0.200 14.2091 2.0525 0.200 14.1922 2.7124 0.200 13.9905 3.3714 0.200 = = = 12.4235 4.1250 0.175 11.9567 4.6177 0.175 11.4098 5.0453 0.175 10.8210 5.4023 0.175 10.2292 5.6923 0.175 9.6711 5.9271 0.175 9.1777 6.1255 0.175 8.7717 6.3116 0.175 8.4660 6.5115 0.175 8.2627 6.7509 0.175 8.1534 7.0518 0.175 8.1202 7.4301 0.175 8.1379 7.8934 0.175 8.1766 8.4395 0.175 8.2047 9.0565 0.175 8.1923 9.7231 0.175 8.1137 10.4102 0.175 7.9504 11.0833 0.175 7.6921 11.7056 0.175 7.3383 12.2408 0.175 6.8972 12.6569 0.175 6.3854 12.9287 0.175 5.8257 13.0406 0.175 5.2446 12.9875 0.175 4.6693 12.7760 0.175 4.1250 12.4235 0.175 3.6323 11.9567 0.175 3.2047 11.4098 0.175 2.8477 10.8210 0.175 2.5577 10.2292 0.175 2.3229 9.6711 0.175 2.1245 9.1777 0.175 1.9384 8.7717 0.175 1.7385 8.4660 0.175 1.4991 8.2627 0.175 1.1982 8.1534 0.175 0.8199 8.1202 0.175 0.3566 8.1379 0.175 -0.1895 8.1766 0.175 -0.8065 8.2047 0.175 -1.4731 8.1923 0.175 -2.1602 8.1137 0.175 -2.8333 7.9504 0.175 -3.4556 7.6921 0.175 -3.9908 7.3383 0.175 -4.4069 6.8972 0.175 -4.6787 6.3854 0.175 -4.7906 5.8257 0.175 -4.7375 5.2446 0.175 -4.5260 4.6693 0.175 -4.1735 4.1250 0.175 -3.7067 3.6323 0.175 -3.1598 3.2047 0.175 -2.5710 2.8477 0.175 -1.9792 2.5577 0.175 -1.4211 2.3229 0.175 -0.9277 2.1245 0.175 -0.5217 1.9384 0.175 -0.2160 1.7385 0.175 -0.0127 1.4991 0.175 0.0966 1.1982 0.175 0.1298 0.8199 0.175 0.1121 0.3566 0.175 0.0734 -0.1895 0.175 0.0453 -0.8065 0.175 0.0577 -1.4731 0.175 0.1363 -2.1602 0.175 0.2996 -2.8333 0.175 0.5579 -3.4556 0.175 0.9117 -3.9908 0.175 1.3528 -4.4069 0.175 1.8646 -4.6787 0.175 2.4243 -4.7906 0.175 3.0054 -4.7375 0.175 3.5807 -4.5260 0.175 4.1250 -4.1735 0.175 4.6177 -3.7067 0.175 5.0453 -3.1598 0.175 5.4023 -2.5710 0.175 5.6923 -1.9792 0.175 5.9271 -1.4211 0.175 6.1255 -0.9277 0.175 6.3116 -0.5217 0.175 6.5115 -0.2160 0.175 6.7509 -0.0127 0.175 7.0518 0.0966 0.175 7.4301 0.1298 0.175 7.8934 0.1121 0.175 8.4395 0.0734 0.175 9.0565 0.0453 0.175 9.7231 0.0577 0.175 10.4102 0.1363 0.175 11.0833 0.2996 0.175 11.7056 0.5579 0.175 12.2408 0.9117 0.175 12.6569 1.3528 0.175 12.9287 1.8646 0.175 13.0406 2.4243 0.175 12.9875 3.0054 0.175 12.7760 3.5807 0.175 = = = 11.2538 4.2500 0.150 10.8377 4.6645 0.150 10.3613 5.0220 0.150 9.8579 5.3198 0.150 9.3606 5.5622 0.150 8.8999 5.7609 0.150 8.5008 5.9330 0.150 8.1808 6.0997 0.150 7.9486 6.2833 0.150 7.8037 6.5052 0.150 7.7366 6.7832 0.150 7.7301 7.1290 0.150 7.7613 7.5473 0.150 7.8037 8.0343 0.150 7.8302 8.5777 0.150 7.8156 9.1576 0.150 7.7390 9.7477 0.150 7.5859 10.3180 0.150 7.3495 10.8367 0.150 7.0309 11.2737 0.150 6.6391 11.6028 0.150 6.1896 11.8044 0.150 5.7031 11.8672 0.150 5.2025 11.7895 0.150 4.7111 11.5794 0.150 4.2500 11.2538 0.150 3.8355 10.8377 0.150 3.4780 10.3613 0.150 3.1802 9.8579 0.150 2.9378 9.3606 0.150 2.7391 8.8999 0.150 2.5670 8.5008 0.150 2.4003 8.1808 0.150 2.2167 7.9486 0.150 1.9948 7.8037 0.150 1.7168 7.7366 0.150 1.3710 7.7301 0.150 0.9527 7.7613 0.150 0.4657 7.8037 0.150 -0.0777 7.8302 0.150 -0.6576 7.8156 0.150 -1.2477 7.7390 0.150 -1.8180 7.5859 0.150 -2.3367 7.3495 0.150 -2.7737 7.0309 0.150 -3.1028 6.6391 0.150 -3.3044 6.1896 0.150 -3.3672 5.7031 0.150 -3.2895 5.2025 0.150 -3.0794 4.7111 0.150 -2.7538 4.2500 0.150 -2.3377 3.8355 0.150 -1.8613 3.4780 0.150 -1.3579 3.1802 0.150 -0.8606 2.9378 0.150 -0.3999 2.7391 0.150 -0.0008 2.5670 0.150 0.3192 2.4003 0.150 0.5514 2.2167 0.150 0.6963 1.9948 0.150 0.7634 1.7168 0.150 0.7699 1.3710 0.150 0.7387 0.9527 0.150 0.6963 0.4657 0.150 0.6698 -0.0777 0.150 0.6844 -0.6576 0.150 0.7610 -1.2477 0.150 0.9141 -1.8180 0.150 1.1505 -2.3367 0.150 1.4691 -2.7737 0.150 1.8609 -3.1028 0.150 2.3104 -3.3044 0.150 2.7969 -3.3672 0.150 3.2975 -3.2895 0.150 3.7889 -3.0794 0.150 4.2500 -2.7538 0.150 4.6645 -2.3377 0.150 5.0220 -1.8613 0.150 5.3198 -1.3579 0.150 5.5622 -0.8606 0.150 5.7609 -0.3999 0.150 5.9330 -0.0008 0.150 6.0997 0.3192 0.150 6.2833 0.5514 0.150 6.5052 0.6963 0.150 6.7832 0.7634 0.150 7.1290 0.7699 0.150 7.5473 0.7387 0.150 8.0343 0.6963 0.150 8.5777 0.6698 0.150 9.1576 0.6844 0.150 9.7477 0.7610 0.150 10.3180 0.9141 0.150 10.8367 1.1505 0.150 11.2737 1.4691 0.150 11.6028 1.8609 0.150 11.8044 2.3104 0.150 11.8672 2.7969 0.150 11.7895 3.2975 0.150 11.5794 3.7889 0.150 = = = 10.1159 4.3750 0.125 9.7576 4.7136 0.125 9.3563 5.0043 0.125 8.9399 5.2458 0.125 8.5358 5.4433 0.125 8.1683 5.6075 0.125 7.8569 5.7536 0.125 7.6143 5.8993 0.125 7.4459 6.0633 0.125 7.3494 6.2626 0.125 7.3150 6.5110 0.125 7.3268 6.8170 0.125 7.3649 7.1827 0.125 7.4065 7.6032 0.125 7.4291 8.0667 0.125 7.4122 8.5554 0.125 7.3396 9.0464 0.125 7.2003 9.5143 0.125 6.9903 9.9327 0.125 6.7119 10.2774 0.125 6.3741 10.5277 0.125 5.9910 10.6691 0.125 5.5804 10.6940 0.125 5.1618 10.6031 0.125 4.7544 10.4050 0.125 4.3750 10.1159 0.125 4.0364 9.7576 0.125 3.7457 9.3563 0.125 3.5042 8.9399 0.125 3.3067 8.5358 0.125 3.1425 8.1683 0.125 2.9964 7.8569 0.125 2.8507 7.6143 0.125 2.6867 7.4459 0.125 2.4874 7.3494 0.125 2.2390 7.3150 0.125 1.9330 7.3268 0.125 1.5673 7.3649 0.125 1.1468 7.4065 0.125 0.6833 7.4291 0.125 0.1946 7.4122 0.125 -0.2964 7.3396 0.125 -0.7643 7.2003 0.125 -1.1827 6.9903 0.125 -1.5274 6.7119 0.125 -1.7777 6.3741 0.125 -1.9191 5.9910 0.125 -1.9440 5.5804 0.125 -1.8531 5.1618 0.125 -1.6550 4.7544 0.125 -1.3659 4.3750 0.125 -1.0076 4.0364 0.125 -0.6063 3.7457 0.125 -0.1899 3.5042 0.125 0.2142 3.3067 0.125 0.5817 3.1425 0.125 0.8931 2.9964 0.125 1.1357 2.8507 0.125 1.3041 2.6867 0.125 1.4006 2.4874 0.125 1.4350 2.2390 0.125 1.4232 1.9330 0.125 1.3851 1.5673 0.125 1.3435 1.1468 0.125 1.3209 0.6833 0.125 1.3378 0.1946 0.125 1.4104 -0.2964 0.125 1.5497 -0.7643 0.125 1.7597 -1.1827 0.125 2.0381 -1.5274 0.125 2.3759 -1.7777 0.125 2.7590 -1.9191 0.125 3.1696 -1.9440 0.125 3.5882 -1.8531 0.125 3.9956 -1.6550 0.125 4.3750 -1.3659 0.125 4.7136 -1.0076 0.125 5.0043 -0.6063 0.125 5.2458 -0.1899 0.125 5.4433 0.2142 0.125 5.6075 0.5817 0.125 5.7536 0.8931 0.125 5.8993 1.1357 0.125 6.0633 1.3041 0.125 6.2626 1.4006 0.125 6.5110 1.4350 0.125 6.8170 1.4232 0.125 7.1827 1.3851 0.125 7.6032 1.3435 0.125 8.0667 1.3209 0.125 8.5554 1.3378 0.125 9.0464 1.4104 0.125 9.5143 1.5497 0.125 9.9327 1.7597 0.125 10.2774 2.0381 0.125 10.5277 2.3759 0.125 10.6691 2.7590 0.125 10.6940 3.1696 0.125 10.6031 3.5882 0.125 10.4050 3.9956 0.125 = = = 9.0129 4.5000 0.100 8.7186 4.7654 0.100 8.3958 4.9922 0.100 8.0669 5.1804 0.100 7.7533 5.3353 0.100 7.4737 5.4662 0.100 7.2423 5.5858 0.100 7.0681 5.7085 0.100 6.9537 5.8489 0.100 6.8955 6.0202 0.100 6.8845 6.2324 0.100 6.9069 6.4912 0.100 6.9458 6.7968 0.100 6.9830 7.1441 0.100 7.0003 7.5224 0.100 6.9821 7.9163 0.100 6.9160 8.3071 0.100 6.7947 8.6741 0.100 6.6159 8.9966 0.100 6.3829 9.2558 0.100 6.1039 9.4362 0.100 5.7909 9.5277 0.100 5.4587 9.5259 0.100 5.1232 9.4329 0.100 4.7993 9.2571 0.100 4.5000 9.0129 0.100 4.2346 8.7186 0.100 4.0078 8.3958 0.100 3.8196 8.0669 0.100 3.6647 7.7533 0.100 3.5338 7.4737 0.100 3.4142 7.2423 0.100 3.2915 7.0681 0.100 3.1511 6.9537 0.100 2.9798 6.8955 0.100 2.7676 6.8845 0.100 2.5088 6.9069 0.100 2.2032 6.9458 0.100 1.8559 6.9830 0.100 1.4776 7.0003 0.100 1.0837 6.9821 0.100 0.6929 6.9160 0.100 0.3259 6.7947 0.100 0.0034 6.6159 0.100 -0.2558 6.3829 0.100 -0.4362 6.1039 0.100 -0.5277 5.7909 0.100 -0.5259 5.4587 0.100 -0.4329 5.1232 0.100 -0.2571 4.7993 0.100 -0.0129 4.5000 0.100 0.2814 4.2346 0.100 0.6042 4.0078 0.100 0.9331 3.8196 0.100 1.2467 3.6647 0.100 1.5263 3.5338 0.100 1.7577 3.4142 0.100 1.9319 3.2915 0.100 2.0463 3.1511 0.100 2.1045 2.9798 0.100 2.1155 2.7676 0.100 2.0931 2.5088 0.100 2.0542 2.2032 0.100 2.0170 1.8559 0.100 1.9997 1.4776 0.100 2.0179 1.0837 0.100 2.0840 0.6929 0.100 2.2053 0.3259 0.100 2.3841 0.0034 0.100 2.6171 -0.2558 0.100 2.8961 -0.4362 0.100 3.2091 -0.5277 0.100 3.5413 -0.5259 0.100 3.8768 -0.4329 0.100 4.2007 -0.2571 0.100 4.5000 -0.0129 0.100 4.7654 0.2814 0.100 4.9922 0.6042 0.100 5.1804 0.9331 0.100 5.3353 1.2467 0.100 5.4662 1.5263 0.100 5.5858 1.7577 0.100 5.7085 1.9319 0.100 5.8489 2.0463 0.100 6.0202 2.1045 0.100 6.2324 2.1155 0.100 6.4912 2.0931 0.100 6.7968 2.0542 0.100 7.1441 2.0170 0.100 7.5224 1.9997 0.100 7.9163 2.0179 0.100 8.3071 2.0840 0.100 8.6741 2.2053 0.100 8.9966 2.3841 0.100 9.2558 2.6171 0.100 9.4362 2.8961 0.100 9.5277 3.2091 0.100 9.5259 3.5413 0.100 9.4329 3.8768 0.100 9.2571 4.2007 0.100 = = = 7.9476 4.6250 0.075 7.7224 4.8199 0.075 7.4802 4.9857 0.075 7.2379 5.1234 0.075 7.0111 5.2376 0.075 6.8130 5.3359 0.075 6.6535 5.4281 0.075 6.5380 5.5252 0.075 6.4674 5.6378 0.075 6.4378 5.7754 0.075 6.4414 5.9447 0.075 6.4671 6.1489 0.075 6.5018 6.3875 0.075 6.5316 6.6554 0.075 6.5432 6.9438 0.075 6.5252 7.2404 0.075 6.4692 7.5310 0.075 6.3703 7.7998 0.075 6.2280 8.0316 0.075 6.0455 8.2128 0.075 5.8298 8.3329 0.075 5.5905 8.3853 0.075 5.3390 8.3678 0.075 5.0872 8.2834 0.075 4.8461 8.1395 0.075 4.6250 7.9476 0.075 4.4301 7.7224 0.075 4.2643 7.4802 0.075 4.1266 7.2379 0.075 4.0124 7.0111 0.075 3.9141 6.8130 0.075 3.8219 6.6535 0.075 3.7248 6.5380 0.075 3.6122 6.4674 0.075 3.4746 6.4378 0.075 3.3053 6.4414 0.075 3.1011 6.4671 0.075 2.8625 6.5018 0.075 2.5946 6.5316 0.075 2.3062 6.5432 0.075 2.0096 6.5252 0.075 1.7190 6.4692 0.075 1.4502 6.3703 0.075 1.2184 6.2280 0.075 1.0372 6.0455 0.075 0.9171 5.8298 0.075 0.8647 5.5905 0.075 0.8822 5.3390 0.075 0.9666 5.0872 0.075 1.1105 4.8461 0.075 1.3024 4.6250 0.075 1.5276 4.4301 0.075 1.7698 4.2643 0.075 2.0121 4.1266 0.075 2.2389 4.0124 0.075 2.4370 3.9141 0.075 2.5965 3.8219 0.075 2.7120 3.7248 0.075 2.7826 3.6122 0.075 2.8122 3.4746 0.075 2.8086 3.3053 0.075 2.7829 3.1011 0.075 2.7482 2.8625 0.075 2.7184 2.5946 0.075 2.7068 2.3062 0.075 2.7248 2.0096 0.075 2.7808 1.7190 0.075 2.8797 1.4502 0.075 3.0220 1.2184 0.075 3.2045 1.0372 0.075 3.4202 0.9171 0.075 3.6595 0.8647 0.075 3.9110 0.8822 0.075 4.1628 0.9666 0.075 4.4039 1.1105 0.075 4.6250 1.3024 0.075 4.8199 1.5276 0.075 4.9857 1.7698 0.075 5.1234 2.0121 0.075 5.2376 2.2389 0.075 5.3359 2.4370 0.075 5.4281 2.5965 0.075 5.5252 2.7120 0.075 5.6378 2.7826 0.075 5.7754 2.8122 0.075 5.9447 2.8086 0.075 6.1489 2.7829 0.075 6.3875 2.7482 0.075 6.6554 2.7184 0.075 6.9438 2.7068 0.075 7.2404 2.7248 0.075 7.5310 2.7808 0.075 7.7998 2.8797 0.075 8.0316 3.0220 0.075 8.2128 3.2045 0.075 8.3329 3.4202 0.075 8.3853 3.6595 0.075 8.3678 3.9110 0.075 8.2834 4.1628 0.075 8.1395 4.4039 0.075 = = = 6.9225 4.7500 0.050 6.7702 4.8771 0.050 6.6095 4.9849 0.050 6.4517 5.0746 0.050 6.3067 5.1497 0.050 6.1830 5.2156 0.050 6.0864 5.2791 0.050 6.0196 5.3474 0.050 5.9826 5.4276 0.050 5.9720 5.5255 0.050 5.9819 5.6450 0.050 6.0045 5.7878 0.050 6.0307 5.9526 0.050 6.0513 6.1357 0.050 6.0575 6.3305 0.050 6.0421 6.5284 0.050 6.0000 6.7197 0.050 5.9286 6.8939 0.050 5.8281 7.0412 0.050 5.7014 7.1529 0.050 5.5534 7.2226 0.050 5.3910 7.2467 0.050 5.2220 7.2245 0.050 5.0543 7.1589 0.050 4.8950 7.0554 0.050 4.7500 6.9225 0.050 4.6229 6.7702 0.050 4.5151 6.6095 0.050 4.4254 6.4517 0.050 4.3503 6.3067 0.050 4.2844 6.1830 0.050 4.2209 6.0864 0.050 4.1526 6.0196 0.050 4.0724 5.9826 0.050 3.9745 5.9720 0.050 3.8550 5.9819 0.050 3.7122 6.0045 0.050 3.5474 6.0307 0.050 3.3643 6.0513 0.050 3.1695 6.0575 0.050 2.9716 6.0421 0.050 2.7803 6.0000 0.050 2.6061 5.9286 0.050 2.4588 5.8281 0.050 2.3471 5.7014 0.050 2.2774 5.5534 0.050 2.2533 5.3910 0.050 2.2755 5.2220 0.050 2.3411 5.0543 0.050 2.4446 4.8950 0.050 2.5775 4.7500 0.050 2.7298 4.6229 0.050 2.8905 4.5151 0.050 3.0483 4.4254 0.050 3.1933 4.3503 0.050 3.3170 4.2844 0.050 3.4136 4.2209 0.050 3.4804 4.1526 0.050 3.5174 4.0724 0.050 3.5280 3.9745 0.050 3.5181 3.8550 0.050 3.4955 3.7122 0.050 3.4693 3.5474 0.050 3.4487 3.3643 0.050 3.4425 3.1695 0.050 3.4579 2.9716 0.050 3.5000 2.7803 0.050 3.5714 2.6061 0.050 3.6719 2.4588 0.050 3.7986 2.3471 0.050 3.9466 2.2774 0.050 4.1090 2.2533 0.050 4.2780 2.2755 0.050 4.4457 2.3411 0.050 4.6050 2.4446 0.050 4.7500 2.5775 0.050 4.8771 2.7298 0.050 4.9849 2.8905 0.050 5.0746 3.0483 0.050 5.1497 3.1933 0.050 5.2156 3.3170 0.050 5.2791 3.4136 0.050 5.3474 3.4804 0.050 5.4276 3.5174 0.050 5.5255 3.5280 0.050 5.6450 3.5181 0.050 5.7878 3.4955 0.050 5.9526 3.4693 0.050 6.1357 3.4487 0.050 6.3305 3.4425 0.050 6.5284 3.4579 0.050 6.7197 3.5000 0.050 6.8939 3.5714 0.050 7.0412 3.6719 0.050 7.1529 3.7986 0.050 7.2226 3.9466 0.050 7.2467 4.1090 0.050 7.2245 4.2780 0.050 7.1589 4.4457 0.050 7.0554 4.6050 0.050 = = = 5.9395 4.8750 0.025 5.8626 4.9371 0.025 5.7831 4.9897 0.025 5.7064 5.0336 0.025 5.6374 5.0708 0.025 5.5800 5.1041 0.025 5.5367 5.1370 0.025 5.5085 5.1731 0.025 5.4949 5.2158 0.025 5.4940 5.2678 0.025 5.5025 5.3309 0.025 5.5162 5.4055 0.025 5.5306 5.4906 0.025 5.5409 5.5841 0.025 5.5430 5.6824 0.025 5.5334 5.7811 0.025 5.5098 5.8752 0.025 5.4712 5.9596 0.025 5.4182 6.0293 0.025 5.3523 6.0804 0.025 5.2763 6.1100 0.025 5.1938 6.1167 0.025 5.1088 6.1005 0.025 5.0251 6.0632 0.025 4.9463 6.0081 0.025 4.8750 5.9395 0.025 4.8129 5.8626 0.025 4.7603 5.7831 0.025 4.7164 5.7064 0.025 4.6792 5.6374 0.025 4.6459 5.5800 0.025 4.6130 5.5367 0.025 4.5769 5.5085 0.025 4.5342 5.4949 0.025 4.4822 5.4940 0.025 4.4191 5.5025 0.025 4.3445 5.5162 0.025 4.2594 5.5306 0.025 4.1659 5.5409 0.025 4.0676 5.5430 0.025 3.9689 5.5334 0.025 3.8748 5.5098 0.025 3.7904 5.4712 0.025 3.7207 5.4182 0.025 3.6696 5.3523 0.025 3.6400 5.2763 0.025 3.6333 5.1938 0.025 3.6495 5.1088 0.025 3.6868 5.0251 0.025 3.7419 4.9463 0.025 3.8105 4.8750 0.025 3.8874 4.8129 0.025 3.9669 4.7603 0.025 4.0436 4.7164 0.025 4.1126 4.6792 0.025 4.1700 4.6459 0.025 4.2133 4.6130 0.025 4.2415 4.5769 0.025 4.2551 4.5342 0.025 4.2560 4.4822 0.025 4.2475 4.4191 0.025 4.2338 4.3445 0.025 4.2194 4.2594 0.025 4.2091 4.1659 0.025 4.2070 4.0676 0.025 4.2166 3.9689 0.025 4.2402 3.8748 0.025 4.2788 3.7904 0.025 4.3318 3.7207 0.025 4.3977 3.6696 0.025 4.4737 3.6400 0.025 4.5562 3.6333 0.025 4.6412 3.6495 0.025 4.7249 3.6868 0.025 4.8037 3.7419 0.025 4.8750 3.8105 0.025 4.9371 3.8874 0.025 4.9897 3.9669 0.025 5.0336 4.0436 0.025 5.0708 4.1126 0.025 5.1041 4.1700 0.025 5.1370 4.2133 0.025 5.1731 4.2415 0.025 5.2158 4.2551 0.025 5.2678 4.2560 0.025 5.3309 4.2475 0.025 5.4055 4.2338 0.025 5.4906 4.2194 0.025 5.5841 4.2091 0.025 5.6824 4.2070 0.025 5.7811 4.2166 0.025 5.8752 4.2402 0.025 5.9596 4.2788 0.025 6.0293 4.3318 0.025 6.0804 4.3977 0.025 6.1100 4.4737 0.025 6.1167 4.5562 0.025 6.1005 4.6412 0.025 6.0632 4.7249 0.025 6.0081 4.8037 0.025 ngraph-gtk-6.06.13/demo/demo5b.ngp0000644000175000017500000000060012241111703013443 00000000000000#! ngraph # new text text::x=3000 text::y=6500 text::font="Sans-serif" text::style=1 text::text="Demo #5B: MARK" # for i in `seq 0 8` do for j in `seq 0 9` do new mark x:"2500+${j}*1800" y:"8000+${i}*1800" put mark R:0 G:0 B:0 R2:0 G2:128 B2:128 put mark size:1600 put mark style: put mark width:100 put mark type:`iexpr $i\*10+$j` done done # new gra ngraph-gtk-6.06.13/demo/demo6.ngp.in0000644000175000017500000003440312241111703013717 00000000000000#!ngraph #%creator: Ngraph #%version: 6.06.04 new axis name:fX1 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::A=255 axis::clip=true axis::redraw_flag=true axis::min=-2.500000000000000e+01 axis::max=2.500000000000000e+01 axis::inc=1.000000000000000e+01 axis::div=0 axis::type=linear axis::x=2200 axis::y=22000 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::auto_scale_margin=500 axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::gauge_A=255 axis::num=right axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_font_style=0 axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=horizontal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::num_A=255 axis::num_date_format= new axis name:fY1 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::A=255 axis::clip=true axis::redraw_flag=true axis::min=-2.500000000000000e+01 axis::max=2.500000000000000e+01 axis::inc=1.000000000000000e+01 axis::div=0 axis::type=linear axis::x=2200 axis::y=22000 axis::direction=9000 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::auto_scale_margin=500 axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::gauge_A=255 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_font_style=0 axis::num_script_size=7000 axis::num_align=right axis::num_no_zero=false axis::num_direction=horizontal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::num_A=255 axis::num_date_format= new axis name:fU1 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::A=255 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=2200 axis::y=8000 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::auto_scale_margin=500 axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:0' axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::gauge_A=255 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_font_style=0 axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=horizontal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::num_A=255 axis::num_date_format= new axis name:fR1 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::A=255 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=16200 axis::y=22000 axis::direction=9000 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::auto_scale_margin=500 axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:1' axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::gauge_A=255 axis::num=right axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_font_style=0 axis::num_script_size=7000 axis::num_align=left axis::num_no_zero=false axis::num_direction=horizontal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::num_A=255 axis::num_date_format= axis::grouping 1 0 1 2 3 new axis name:fX2 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::A=255 axis::clip=true axis::redraw_flag=true axis::min=-1.000000000000000e+00 axis::max=1.000000000000000e+00 axis::inc=1.000000000000000e+00 axis::div=0 axis::type=linear axis::x=18000 axis::y=22000 axis::direction=0 axis::baseline=true axis::length=600 axis::width=40 axis::style= axis::auto_scale_margin=500 axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=none axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::gauge_A=255 axis::num=none axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_font_style=0 axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=horizontal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::num_A=255 axis::num_date_format= new axis name:fY2 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::A=255 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=18000 axis::y=22000 axis::direction=9000 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::auto_scale_margin=500 axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::gauge_A=255 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_font_style=0 axis::num_script_size=7000 axis::num_align=right axis::num_no_zero=false axis::num_direction=horizontal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::num_A=255 axis::num_date_format= new axis name:fU2 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::A=255 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=18000 axis::y=8000 axis::direction=0 axis::baseline=true axis::length=600 axis::width=40 axis::style= axis::auto_scale_margin=500 axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:4' axis::gauge=none axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::gauge_A=255 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_font_style=0 axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=horizontal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::num_A=255 axis::num_date_format= new axis name:fR2 axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::A=255 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=4.000000000000000e+03 axis::inc=1.000000000000000e+03 axis::div=0 axis::type=linear axis::x=18600 axis::y=22000 axis::direction=9000 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::auto_scale_margin=0 axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:5' axis::gauge=none axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::gauge_A=255 axis::num=right axis::num_begin=0 axis::num_step=1 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_font_style=0 axis::num_script_size=7000 axis::num_align=left axis::num_no_zero=false axis::num_direction=horizontal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::num_A=255 axis::num_date_format= axis::grouping 1 4 5 6 7 new file file::hidden=false file::R=0 file::G=0 file::B=0 file::A=255 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=polygon_solid_fill file::interpolation=spline file::fit= file::math_x= file::math_y='HSB(%03, 1, 1)=Y' file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=40 file::line_style= file::line_join=bevel file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::A2=255 file::remark='#' file::ifs=' , (' file::csv=false file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::data_clip=true file::file='DOCDIRDEF/demo6.dat' new file file::hidden=false file::R=0 file::G=0 file::B=0 file::A=255 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=1 file::y=2 file::type=polygon file::interpolation=spline file::fit= file::math_x= file::math_y= file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=10 file::line_style= file::line_join=bevel file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::A2=255 file::remark='#' file::ifs=' , (' file::csv=false file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:0' file::axis_y='axis:1' file::data_clip=true file::file='DOCDIRDEF/demo6.dat' new file file::hidden=false file::R=0 file::G=0 file::B=0 file::A=255 file::clip=true file::redraw_flag=true file::save_path=unchange file::x=0 file::y=0 file::type=line file::interpolation=spline file::fit= file::math_x='0' file::math_y='HSB((Y-1)/MAXY, 1, 1)=MAXY-Y' file::func_f= file::func_g= file::func_h= file::smooth_x=0 file::smooth_y=0 file::mark_type=0 file::mark_size=200 file::line_width=600 file::line_style= file::line_join=bevel file::line_miter_limit=1000 file::R2=255 file::G2=255 file::B2=255 file::A2=255 file::remark='#' file::ifs=' , (' file::csv=false file::head_skip=0 file::read_step=1 file::final_line=-1 file::mask= file::move_data= file::move_data_x= file::move_data_y= file::axis_x='axis:4' file::axis_y='axis:7' file::data_clip=true file::file='DOCDIRDEF/demo6.dat' new text text::hidden=false text::R=0 text::G=0 text::B=0 text::clip=true text::redraw_flag=true text::text='Demo #6: POLYGON PLOT' text::x=2500 text::y=6800 text::pt=2000 text::font='Sans-serif' text::style=1 text::space=0 text::direction=0 text::script_size=7000 text::raw=false new gra name:viewer gra::left_margin=0 gra::top_margin=0 gra::zoom=10000 gra::paper_width=21000 gra::paper_height=29700 gra::draw_obj='axisgrid file axis merge legend rectangle arc path mark text' ngraph-gtk-6.06.13/Makefile.am0000644000175000017500000000047312241111702012701 00000000000000ngraphconfdir = $(sysconfdir)/$(PACKAGE) EXTRA_DIST = config.rpath pathconv.sh doc_DATA = README AUTHORS ChangeLog NEWS COPYING SUBDIRS = po m4 src initfile driver addin demo doc zsh test mingw pixmap icons misc plugins ACLOCAL_AMFLAGS = -I m4 LIBTOOL_DEPS = @LIBTOOL_DEPS@ test_all: (cd test; $(MAKE) test) ngraph-gtk-6.06.13/m4/0000755000175000017500000000000012241600063011244 500000000000000ngraph-gtk-6.06.13/m4/xsize.m40000644000175000017500000000062612241111702012571 00000000000000# xsize.m4 serial 5 dnl Copyright (C) 2003-2004, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_XSIZE], [ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_CHECK_HEADERS([stdint.h]) ]) ngraph-gtk-6.06.13/m4/intlmacosx.m40000644000175000017500000000475312241111702013615 00000000000000# intlmacosx.m4 serial 5 (gettext-0.18.2) dnl Copyright (C) 2004-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Checks for special options needed on Mac OS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in Mac OS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], [gt_cv_func_CFPreferencesCopyAppValue], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[CFPreferencesCopyAppValue(NULL, NULL)]])], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in Mac OS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[CFLocaleCopyCurrent();]])], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) ngraph-gtk-6.06.13/m4/uintmax_t.m40000644000175000017500000000213112241111703013431 00000000000000# uintmax_t.m4 serial 12 dnl Copyright (C) 1997-2004, 2007-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. AC_PREREQ([2.13]) # Define uintmax_t to 'unsigned long' or 'unsigned long long' # if it is not already defined in or . AC_DEFUN([gl_AC_TYPE_UINTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) test $ac_cv_type_unsigned_long_long_int = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type], [Define to unsigned long or unsigned long long if and don't define.]) else AC_DEFINE([HAVE_UINTMAX_T], [1], [Define if you have the 'uintmax_t' type in or .]) fi ]) ngraph-gtk-6.06.13/m4/wchar_t.m40000644000175000017500000000146212241111702013055 00000000000000# wchar_t.m4 serial 4 (gettext-0.18.2) dnl Copyright (C) 2002-2003, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include wchar_t foo = (wchar_t)'\0';]], [[]])], [gt_cv_c_wchar_t=yes], [gt_cv_c_wchar_t=no])]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.]) fi ]) ngraph-gtk-6.06.13/m4/lib-ld.m40000644000175000017500000000714312241111702012573 00000000000000# lib-ld.m4 serial 6 dnl Copyright (C) 1996-2003, 2009-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid dnl collision with libtool.m4. dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 /dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL([acl_cv_path_LD], [if test -z "$LD"; then acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$acl_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 #include static void sigfpe_handler (int sig) { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (2); } ]])], [gt_cv_int_divbyzero_sigfpe=yes], [gt_cv_int_divbyzero_sigfpe=no], [ # Guess based on the CPU. changequote(,)dnl case "$host_cpu" in alpha* | i[34567]86 | x86_64 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac changequote([,])dnl ]) fi ]) case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value], [Define if integer division by zero raises signal SIGFPE.]) ]) ngraph-gtk-6.06.13/m4/Makefile.in0000644000175000017500000003242012241364551013243 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = m4 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = codeset.m4 gettext.m4 glibc2.m4 glibc21.m4 gsl.m4 \ gtk-2.0.m4 gtk-3.0.m4 iconv.m4 intdiv0.m4 intl.m4 intldir.m4 \ intlmacosx.m4 intmax.m4 inttypes-pri.m4 inttypes_h.m4 \ lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 libtool.m4 \ lock.m4 longlong.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 \ lt~obsolete.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4 \ size_max.m4 stdint_h.m4 uintmax_t.m4 visibility.m4 wchar_t.m4 \ wint_t.m4 xsize.m4 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu m4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/m4/codeset.m40000644000175000017500000000150012241111703013046 00000000000000# codeset.m4 serial 5 (gettext-0.18.2) dnl Copyright (C) 2000-2002, 2006, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[char* cs = nl_langinfo(CODESET); return !cs;]])], [am_cv_langinfo_codeset=yes], [am_cv_langinfo_codeset=no]) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE([HAVE_LANGINFO_CODESET], [1], [Define if you have and nl_langinfo(CODESET).]) fi ]) ngraph-gtk-6.06.13/m4/stdint_h.m40000644000175000017500000000174312241111702013244 00000000000000# stdint_h.m4 serial 9 dnl Copyright (C) 1997-2004, 2006, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_STDINT_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_STDINT_H], [ AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[uintmax_t i = (uintmax_t) -1; return !i;]])], [gl_cv_header_stdint_h=yes], [gl_cv_header_stdint_h=no])]) if test $gl_cv_header_stdint_h = yes; then AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) ngraph-gtk-6.06.13/m4/lib-prefix.m40000644000175000017500000002042212241111702013464 00000000000000# lib-prefix.m4 serial 7 (gettext-0.18) dnl Copyright (C) 2001-2005, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a variable acl_libdirstem, containing the basename of the libdir, either dnl "lib" or "lib64" or "lib/64", dnl - a variable acl_libdirstem2, as a secondary possible value for dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or dnl "lib/amd64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. dnl On glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine dnl the compiler's default mode by looking at the compiler's library search dnl path. If at least one of its elements ends in /lib64 or points to a dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. dnl Otherwise we use the default, namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], [AC_EGREP_CPP([sixtyfour bits], [ #ifdef _LP64 sixtyfour bits #endif ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) ]) if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" ]) ngraph-gtk-6.06.13/m4/ltoptions.m40000644000175000017500000003007312241364542013475 00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, # Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 7 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) ngraph-gtk-6.06.13/m4/gettext.m40000644000175000017500000003561512241111702013121 00000000000000# gettext.m4 serial 66 (gettext-0.18.2) dnl Copyright (C) 1995-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value '$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings ]])], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ]])], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ]])], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) ngraph-gtk-6.06.13/m4/lcmessage.m40000644000175000017500000000253312241111702013371 00000000000000# lcmessage.m4 serial 7 (gettext-0.18.2) dnl Copyright (C) 1995-2002, 2004-2005, 2008-2013 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995. # Check whether LC_MESSAGES is available in . AC_DEFUN([gt_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[return LC_MESSAGES]])], [gt_cv_val_LC_MESSAGES=yes], [gt_cv_val_LC_MESSAGES=no])]) if test $gt_cv_val_LC_MESSAGES = yes; then AC_DEFINE([HAVE_LC_MESSAGES], [1], [Define if your file defines LC_MESSAGES.]) fi ]) ngraph-gtk-6.06.13/m4/libtool.m40000644000175000017500000106000712241364542013107 00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 57 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # `#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test $lt_write_fail = 0 && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_REPLACE_SHELLFNS mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test "$lt_cv_ld_force_load" = "yes"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script which will find a shell with a builtin # printf (which we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case "$ECHO" in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified).], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([${with_sysroot}]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and in which our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi _LT_TAGVAR(link_all_deplibs, $1)=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS="$save_LDFLAGS"]) if test "$lt_cv_irix_exported_symbol" = yes; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ func_to_tool_file "$lt_outputfile"~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test "$pre_test_object_deps_done" = no; then case ${prev} in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" CFLAGS="$lt_save_CFLAGS" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) # ------------------------------------------------------ # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. m4_defun([_LT_PROG_FUNCTION_REPLACE], [dnl { sed -e '/^$1 ()$/,/^} # $1 /c\ $1 ()\ {\ m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: ]) # _LT_PROG_REPLACE_SHELLFNS # ------------------------- # Replace existing portable implementations of several shell functions with # equivalent extended shell implementations where those features are available.. m4_defun([_LT_PROG_REPLACE_SHELLFNS], [if test x"$xsi_shell" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"}]) _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl func_split_long_opt_name=${1%%=*} func_split_long_opt_arg=${1#*=}]) _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) fi if test x"$lt_shell_append" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl func_quote_for_eval "${2}" dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) fi ]) # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine which file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS ngraph-gtk-6.06.13/m4/intldir.m40000644000175000017500000000163312241111702013073 00000000000000# intldir.m4 serial 2 (gettext-0.18) dnl Copyright (C) 2006, 2009-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. AC_PREREQ([2.52]) dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory. AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], []) ngraph-gtk-6.06.13/m4/printf-posix.m40000644000175000017500000000305312241111702014066 00000000000000# printf-posix.m4 serial 6 (gettext-0.18.2) dnl Copyright (C) 2003, 2007, 2009-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the printf() function supports POSIX/XSI format strings with dnl positions. AC_DEFUN([gt_PRINTF_POSIX], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings], gt_cv_func_printf_posix, [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); }]])], [gt_cv_func_printf_posix=yes], [gt_cv_func_printf_posix=no], [ AC_EGREP_CPP([notposix], [ #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif ], [gt_cv_func_printf_posix="guessing no"], [gt_cv_func_printf_posix="guessing yes"]) ]) ]) case $gt_cv_func_printf_posix in *yes) AC_DEFINE([HAVE_POSIX_PRINTF], [1], [Define if your printf() function supports format strings with positions.]) ;; esac ]) ngraph-gtk-6.06.13/m4/glibc2.m40000644000175000017500000000147612241111702012575 00000000000000# glibc2.m4 serial 3 dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2013 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.0 or newer. # From Bruno Haible. AC_DEFUN([gt_GLIBC2], [ AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer], [ac_cv_gnu_library_2], [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) && !defined __UCLIBC__ Lucky GNU user #endif #endif ], [ac_cv_gnu_library_2=yes], [ac_cv_gnu_library_2=no]) ] ) AC_SUBST([GLIBC2]) GLIBC2="$ac_cv_gnu_library_2" ] ) ngraph-gtk-6.06.13/m4/wint_t.m40000644000175000017500000000203512241111702012727 00000000000000# wint_t.m4 serial 5 (gettext-0.18.2) dnl Copyright (C) 2003, 2007-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wint_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include wint_t foo = (wchar_t)'\0';]], [[]])], [gt_cv_c_wint_t=yes], [gt_cv_c_wint_t=no])]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.]) fi ]) ngraph-gtk-6.06.13/m4/ltsugar.m40000644000175000017500000001042412241364542013121 00000000000000# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) ngraph-gtk-6.06.13/m4/nls.m40000644000175000017500000000231512241111703012221 00000000000000# nls.m4 serial 5 (gettext-0.18) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) ngraph-gtk-6.06.13/m4/size_max.m40000644000175000017500000000577012241111702013253 00000000000000# size_max.m4 serial 10 dnl Copyright (C) 2003, 2005-2006, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gl_SIZE_MAX], [ AC_CHECK_HEADERS([stdint.h]) dnl First test whether the system already has SIZE_MAX. AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [ gl_cv_size_max= AC_EGREP_CPP([Found it], [ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif ], [gl_cv_size_max=yes]) if test -z "$gl_cv_size_max"; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. Try hard to find a definition that can dnl be used in a preprocessor #if, i.e. doesn't contain a cast. AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], [#include #include ], [size_t_bits_minus_1=]) AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], [#include ], [fits_in_uint=]) if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include extern size_t foo; extern unsigned long foo; ]], [[]])], [fits_in_uint=0]) fi dnl We cannot use 'expr' to simplify this expression, because 'expr' dnl works only with 'long' integers in the host environment, while we dnl might be cross-compiling from a 32-bit platform to a 64-bit platform. if test $fits_in_uint = 1; then gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" else gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" fi else dnl Shouldn't happen, but who knows... gl_cv_size_max='((size_t)~(size_t)0)' fi fi ]) if test "$gl_cv_size_max" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after dnl . Remember that the #undef in AH_VERBATIM gets replaced with dnl #define by AC_DEFINE_UNQUOTED. AH_VERBATIM([SIZE_MAX], [/* Define as the maximum value of type 'size_t', if the system doesn't define it. */ #ifndef SIZE_MAX # undef SIZE_MAX #endif]) ]) dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. dnl Remove this when we can assume autoconf >= 2.61. m4_ifdef([AC_COMPUTE_INT], [], [ AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) ]) ngraph-gtk-6.06.13/m4/Makefile.am0000644000175000017500000000070712241111702013221 00000000000000EXTRA_DIST = codeset.m4 gettext.m4 glibc2.m4 glibc21.m4 gsl.m4 \ gtk-2.0.m4 gtk-3.0.m4 iconv.m4 intdiv0.m4 intl.m4 intldir.m4 \ intlmacosx.m4 intmax.m4 inttypes-pri.m4 inttypes_h.m4 \ lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 libtool.m4 \ lock.m4 longlong.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 \ lt~obsolete.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4 \ size_max.m4 stdint_h.m4 uintmax_t.m4 visibility.m4 wchar_t.m4 \ wint_t.m4 xsize.m4ngraph-gtk-6.06.13/m4/inttypes_h.m40000644000175000017500000000177412241111703013623 00000000000000# inttypes_h.m4 serial 10 dnl Copyright (C) 1997-2004, 2006, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #include ]], [[uintmax_t i = (uintmax_t) -1; return !i;]])], [gl_cv_header_inttypes_h=yes], [gl_cv_header_inttypes_h=no])]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) ngraph-gtk-6.06.13/m4/gtk-3.0.m40000644000175000017500000001776712241111703012531 00000000000000# Configure paths for GTK+ # Owen Taylor 1997-2001 dnl AM_PATH_GTK_3_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, dnl pass to pkg-config dnl AC_DEFUN([AM_PATH_GTK_3_0], [dnl dnl Get the cflags and libraries from pkg-config dnl AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], , enable_gtktest=yes) pkg_config_args=gtk+-3.0 for module in . $4 do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test x$PKG_CONFIG != xno ; then if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=ifelse([$1], ,3.0.0,$1) AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" dnl dnl Now check if the installed GTK+ is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.gtktest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; fclose (fopen ("conf.gtktest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-3.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" AC_TRY_LINK([ #include #include ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) rm -f conf.gtktest ]) dnl GTK_CHECK_BACKEND(BACKEND-NAME [, MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl Tests for BACKEND-NAME in the GTK targets list dnl AC_DEFUN([GTK_CHECK_BACKEND], [ pkg_config_args=ifelse([$1],,gtk+-3.0, gtk+-$1-3.0) min_gtk_version=ifelse([$2],,3.0.0,$2) AC_PATH_PROG(PKG_CONFIG, [pkg-config], [AC_MSG_ERROR([No pkg-config found])]) if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args ; then target_found=yes else target_found=no fi if test "x$target_found" = "xno"; then ifelse([$4],,[AC_MSG_ERROR([Backend $backend not found.])],[$4]) else ifelse([$3],,[:],[$3]) fi ]) ngraph-gtk-6.06.13/m4/intmax.m40000644000175000017500000000214312241111702012723 00000000000000# intmax.m4 serial 6 (gettext-0.18.2) dnl Copyright (C) 2002-2005, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the system has the 'intmax_t' type, but don't attempt to dnl find a replacement if it is lacking. AC_DEFUN([gt_TYPE_INTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif ]], [[intmax_t x = -1; return !x;]])], [gt_cv_c_intmax_t=yes], [gt_cv_c_intmax_t=no])]) if test $gt_cv_c_intmax_t = yes; then AC_DEFINE([HAVE_INTMAX_T], [1], [Define if you have the 'intmax_t' type in or .]) fi ]) ngraph-gtk-6.06.13/m4/progtest.m40000644000175000017500000000604012241111702013272 00000000000000# progtest.m4 serial 7 (gettext-0.18.2) dnl Copyright (C) 1996-2003, 2005, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) fi AC_SUBST([$1])dnl ]) ngraph-gtk-6.06.13/m4/lib-link.m40000644000175000017500000010044312241111702013126 00000000000000# lib-link.m4 serial 26 (gettext-0.18.2) dnl Copyright (C) 2001-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.54]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[m4_translit([$1],[./+-], [____])]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[m4_translit([$1],[./+-], [____])]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_LINK_IFELSE( [AC_LANG_PROGRAM([[$3]], [[$4]])], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_libname_spec, dnl acl_library_names_spec, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl Autoconf >= 2.61 supports dots in --with options. pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH(P_A_C_K[-prefix], [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([P_A_C_K]) popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) ngraph-gtk-6.06.13/m4/lock.m40000644000175000017500000000266712241111703012367 00000000000000# lock.m4 serial 13 (gettext-0.18.2) dnl Copyright (C) 2005-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gl_LOCK], [ AC_REQUIRE([gl_THREADLIB]) if test "$gl_threads_api" = posix; then # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the # pthread_rwlock_* functions. AC_CHECK_TYPE([pthread_rwlock_t], [AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1], [Define if the POSIX multithreading library has read/write locks.])], [], [#include ]) # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. AC_COMPILE_IFELSE([ AC_LANG_PROGRAM( [[#include ]], [[ #if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." #else int x = (int)PTHREAD_MUTEX_RECURSIVE; return !x; #endif ]])], [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], [1], [Define if the defines PTHREAD_MUTEX_RECURSIVE.])]) fi gl_PREREQ_LOCK ]) # Prerequisites of lib/glthread/lock.c. AC_DEFUN([gl_PREREQ_LOCK], [:]) ngraph-gtk-6.06.13/m4/po.m40000644000175000017500000004504112241111702012045 00000000000000# po.m4 serial 21 (gettext-0.18.3) dnl Copyright (C) 1995-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.60]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl AC_REQUIRE([AC_PROG_SED])dnl AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" gt_tab=`printf '\t'` cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" tab=`printf '\t'` if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" < #include ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #include ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, dnl Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include int main () { int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 1; iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 2; iconv_close (cd_ascii_to_88591); } } /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ { iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304"; static char buf[2] = { (char)0xDE, (char)0xAD }; const char *inptr = input; size_t inbytesleft = 1; char *outptr = buf; size_t outbytesleft = 1; size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) result |= 4; iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) result |= 8; iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) result |= 16; return result; }]])], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], [ changequote(,)dnl case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac changequote([,])dnl ]) LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [m4_ifdef([gl_00GNULIB], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ]], [[]])], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) dnl Also substitute ICONV_CONST in the gnulib generated . m4_ifdef([gl_ICONV_H_DEFAULTS], [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) if test -n "$am_cv_proto_iconv_arg1"; then ICONV_CONST="const" fi ]) fi ]) ngraph-gtk-6.06.13/m4/ChangeLog0000644000175000017500000000266312241111702012742 000000000000002013-10-23 Ito Hiroyuki * gtk-3.0.m4: added. * gtk-2.0.m4: added. 2008-05-27 gettextize * gettext.m4: New file, from gettext-0.17. * iconv.m4: New file, from gettext-0.17. * lib-ld.m4: New file, from gettext-0.17. * lib-link.m4: New file, from gettext-0.17. * lib-prefix.m4: New file, from gettext-0.17. * nls.m4: New file, from gettext-0.17. * po.m4: New file, from gettext-0.17. * progtest.m4: New file, from gettext-0.17. * codeset.m4: New file, from gettext-0.17. * glibc2.m4: New file, from gettext-0.17. * glibc21.m4: New file, from gettext-0.17. * intdiv0.m4: New file, from gettext-0.17. * intl.m4: New file, from gettext-0.17. * intldir.m4: New file, from gettext-0.17. * intlmacosx.m4: New file, from gettext-0.17. * intmax.m4: New file, from gettext-0.17. * inttypes_h.m4: New file, from gettext-0.17. * inttypes-pri.m4: New file, from gettext-0.17. * lcmessage.m4: New file, from gettext-0.17. * lock.m4: New file, from gettext-0.17. * longlong.m4: New file, from gettext-0.17. * printf-posix.m4: New file, from gettext-0.17. * size_max.m4: New file, from gettext-0.17. * stdint_h.m4: New file, from gettext-0.17. * uintmax_t.m4: New file, from gettext-0.17. * visibility.m4: New file, from gettext-0.17. * wchar_t.m4: New file, from gettext-0.17. * wint_t.m4: New file, from gettext-0.17. * xsize.m4: New file, from gettext-0.17. * Makefile.am: New file. ngraph-gtk-6.06.13/m4/lt~obsolete.m40000644000175000017500000001375612241364542014025 00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) ngraph-gtk-6.06.13/m4/inttypes-pri.m40000644000175000017500000000234512241111702014076 00000000000000# inttypes-pri.m4 serial 7 (gettext-0.18.2) dnl Copyright (C) 1997-2002, 2006, 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.53]) # Define PRI_MACROS_BROKEN if exists and defines the PRI* # macros to non-string values. This is the case on AIX 4.3.3. AC_DEFUN([gt_INTTYPES_PRI], [ AC_CHECK_HEADERS([inttypes.h]) if test $ac_cv_header_inttypes_h = yes; then AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], [gt_cv_inttypes_pri_broken], [ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifdef PRId32 char *p = PRId32; #endif ]], [[]])], [gt_cv_inttypes_pri_broken=no], [gt_cv_inttypes_pri_broken=yes]) ]) fi if test "$gt_cv_inttypes_pri_broken" = yes; then AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1], [Define if exists and defines unusable PRI* macros.]) PRI_MACROS_BROKEN=1 else PRI_MACROS_BROKEN=0 fi AC_SUBST([PRI_MACROS_BROKEN]) ]) ngraph-gtk-6.06.13/m4/intl.m40000644000175000017500000002554412241111702012403 00000000000000# intl.m4 serial 24 (gettext-0.18.3) dnl Copyright (C) 1995-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2009. AC_PREREQ([2.60]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. AC_DEFUN([AM_INTL_SUBDIR], [ AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([gt_GLIBC2])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([gl_VISIBILITY])dnl AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl AC_REQUIRE([gt_TYPE_WCHAR_T])dnl AC_REQUIRE([gt_TYPE_WINT_T])dnl AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gt_TYPE_INTMAX_T]) AC_REQUIRE([gt_PRINTF_POSIX]) AC_REQUIRE([gl_GLIBC21])dnl AC_REQUIRE([gl_XSIZE])dnl AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl AC_REQUIRE([gt_INTL_MACOSX])dnl dnl Support for automake's --enable-silent-rules. case "$enable_silent_rules" in yes) INTL_DEFAULT_VERBOSITY=0;; no) INTL_DEFAULT_VERBOSITY=1;; *) INTL_DEFAULT_VERBOSITY=1;; esac AC_SUBST([INTL_DEFAULT_VERBOSITY]) AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_CHECK_HEADERS([features.h stddef.h stdlib.h string.h]) AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \ snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). AC_CHECK_DECLS([_snprintf, _snwprintf], , , [#include ]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). AC_CHECK_DECLS([getc_unlocked], , , [#include ]) case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac AC_SUBST([HAVE_POSIX_PRINTF]) if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi AC_SUBST([HAVE_ASPRINTF]) if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi AC_SUBST([HAVE_SNPRINTF]) if test "$ac_cv_func_newlocale" = yes; then HAVE_NEWLOCALE=1 else HAVE_NEWLOCALE=0 fi AC_SUBST([HAVE_NEWLOCALE]) if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi AC_SUBST([HAVE_WPRINTF]) AM_LANGINFO_CODESET gt_LC_MESSAGES dnl Compilation on mingw and Cygwin needs special Makefile rules, because dnl 1. when we install a shared library, we must arrange to export dnl auxiliary pointer variables for every exported variable, dnl 2. when we install a shared library and a static library simultaneously, dnl the include file specifies __declspec(dllimport) and therefore we dnl must arrange to define the auxiliary pointer variables for the dnl exported variables _also_ in the static library. if test "$enable_shared" = yes; then case "$host_os" in mingw* | cygwin*) is_woe32dll=yes ;; *) is_woe32dll=no ;; esac else is_woe32dll=no fi WOE32DLL=$is_woe32dll AC_SUBST([WOE32DLL]) dnl On mingw and Cygwin, we can activate special Makefile rules which add dnl version information to the shared libraries and executables. case "$host_os" in mingw* | cygwin*) is_woe32=yes ;; *) is_woe32=no ;; esac WOE32=$is_woe32 AC_SUBST([WOE32]) if test $WOE32 = yes; then dnl Check for a program that compiles Windows resource files. AC_CHECK_TOOL([WINDRES], [windres]) fi dnl Determine whether when creating a library, "-lc" should be passed to dnl libtool or not. On many platforms, it is required for the libtool option dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool dnl in the *.la files - makes it impossible to create multithreaded programs, dnl because libtool also reorders the -lc to come before the -pthread, and dnl this disables pthread_create() . case "$host_os" in hpux*) LTLIBC="" ;; *) LTLIBC="-lc" ;; esac AC_SUBST([LTLIBC]) dnl Rename some macros and functions used for locking. AH_BOTTOM([ #define __libc_lock_t gl_lock_t #define __libc_lock_define gl_lock_define #define __libc_lock_define_initialized gl_lock_define_initialized #define __libc_lock_init gl_lock_init #define __libc_lock_lock gl_lock_lock #define __libc_lock_unlock gl_lock_unlock #define __libc_lock_recursive_t gl_recursive_lock_t #define __libc_lock_define_recursive gl_recursive_lock_define #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized #define __libc_lock_init_recursive gl_recursive_lock_init #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use #define glthread_lock_init_func libintl_lock_init_func #define glthread_lock_lock_func libintl_lock_lock_func #define glthread_lock_unlock_func libintl_lock_unlock_func #define glthread_lock_destroy_func libintl_lock_destroy_func #define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded #define glthread_rwlock_init_func libintl_rwlock_init_func #define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded #define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func #define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded #define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func #define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded #define glthread_rwlock_unlock_func libintl_rwlock_unlock_func #define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded #define glthread_rwlock_destroy_func libintl_rwlock_destroy_func #define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded #define glthread_recursive_lock_init_func libintl_recursive_lock_init_func #define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded #define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func #define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded #define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func #define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded #define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func #define glthread_once_func libintl_once_func #define glthread_once_singlethreaded libintl_once_singlethreaded #define glthread_once_multithreaded libintl_once_multithreaded ]) ]) dnl Checks for the core files of the intl subdirectory: dnl dcigettext.c dnl eval-plural.h dnl explodename.c dnl finddomain.c dnl gettextP.h dnl gmo.h dnl hash-string.h hash-string.c dnl l10nflist.c dnl libgnuintl.h.in (except the *printf stuff) dnl loadinfo.h dnl loadmsgcat.c dnl localealias.c dnl log.c dnl plural-exp.h plural-exp.c dnl plural.y dnl Used by libglocale. AC_DEFUN([gt_INTL_SUBDIR_CORE], [ AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([gt_INTDIV0])dnl AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_LOCK])dnl AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }]], [[]])], [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1], [Define to 1 if the compiler understands __builtin_expect.])]) AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ argz_stringify argz_next __fsetlocking]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). AC_CHECK_DECLS([feof_unlocked, fgets_unlocked], , , [#include ]) AM_ICONV dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't dnl compile. dnl bison is only needed for the maintainer (who touches plural.y). But in dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put dnl the rule in general Makefile. Now, some people carelessly touch the dnl files or have a broken "make" program, hence the plural.c rule will dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not dnl present or too old. AC_CHECK_PROGS([INTLBISON], [bison]) if test -z "$INTLBISON"; then ac_verc_fail=yes else dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) changequote([,])dnl ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then INTLBISON=: fi ]) ngraph-gtk-6.06.13/m4/gtk-2.0.m40000644000175000017500000001656312241111702012520 00000000000000# Configure paths for GTK+ # Owen Taylor 1997-2001 dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, dnl pass to pkg-config dnl AC_DEFUN([AM_PATH_GTK_2_0], [dnl dnl Get the cflags and libraries from pkg-config dnl AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], , enable_gtktest=yes) pkg_config_args=gtk+-2.0 for module in . $4 do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=ifelse([$1], ,2.0.0,$1) AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" dnl dnl Now check if the installed GTK+ is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.gtktest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; fclose (fopen ("conf.gtktest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" AC_TRY_LINK([ #include #include ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) rm -f conf.gtktest ]) ngraph-gtk-6.06.13/m4/longlong.m40000644000175000017500000001120312241111703013240 00000000000000# longlong.m4 serial 17 dnl Copyright (C) 1999-2007, 2009-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_LONG_LONG_INT if 'long long int' works. # This fixes a bug in Autoconf 2.61, and can be faster # than what's in Autoconf 2.62 through 2.68. # Note: If the type 'long long int' exists but is only 32 bits large # (as on some very old compilers), HAVE_LONG_LONG_INT will not be # defined. In this case you can treat 'long long int' like 'long int'. AC_DEFUN([AC_TYPE_LONG_LONG_INT], [ AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], [ac_cv_type_long_long_int=yes if test "x${ac_cv_prog_cc_c99-no}" = xno; then ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int if test $ac_cv_type_long_long_int = yes; then dnl Catch a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. dnl If cross compiling, assume the bug is not important, since dnl nobody cross compiles for this platform as far as we know. AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[@%:@include @%:@ifndef LLONG_MAX @%:@ define HALF \ (1LL << (sizeof (long long int) * CHAR_BIT - 2)) @%:@ define LLONG_MAX (HALF - 1 + HALF) @%:@endif]], [[long long int n = 1; int i; for (i = 0; ; i++) { long long int m = n << i; if (m >> i != n) return 1; if (LLONG_MAX / 2 < m) break; } return 0;]])], [], [ac_cv_type_long_long_int=no], [:]) fi fi]) if test $ac_cv_type_long_long_int = yes; then AC_DEFINE([HAVE_LONG_LONG_INT], [1], [Define to 1 if the system has the type 'long long int'.]) fi ]) # Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. # This fixes a bug in Autoconf 2.61, and can be faster # than what's in Autoconf 2.62 through 2.68. # Note: If the type 'unsigned long long int' exists but is only 32 bits # large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT # will not be defined. In this case you can treat 'unsigned long long int' # like 'unsigned long int'. AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], [ AC_CACHE_CHECK([for unsigned long long int], [ac_cv_type_unsigned_long_long_int], [ac_cv_type_unsigned_long_long_int=yes if test "x${ac_cv_prog_cc_c99-no}" = xno; then AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [], [ac_cv_type_unsigned_long_long_int=no]) fi]) if test $ac_cv_type_unsigned_long_long_int = yes; then AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1], [Define to 1 if the system has the type 'unsigned long long int'.]) fi ]) # Expands to a C program that can be used to test for simultaneous support # of 'long long' and 'unsigned long long'. We don't want to say that # 'long long' is available if 'unsigned long long' is not, or vice versa, # because too many programs rely on the symmetry between signed and unsigned # integer types (excluding 'bool'). AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], [ AC_LANG_PROGRAM( [[/* For now, do not test the preprocessor; as of 2007 there are too many implementations with broken preprocessors. Perhaps this can be revisited in 2012. In the meantime, code should not expect #if to work with literals wider than 32 bits. */ /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63;]], [[/* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | (llmax / ll) | (llmax % ll) | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | (ullmax / ull) | (ullmax % ull));]]) ]) ngraph-gtk-6.06.13/m4/glibc21.m40000644000175000017500000000161312241111703012650 00000000000000# glibc21.m4 serial 5 dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2013 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.1 or newer, or uClibc. # From Bruno Haible. AC_DEFUN([gl_GLIBC21], [ AC_CACHE_CHECK([whether we are using the GNU C Library >= 2.1 or uClibc], [ac_cv_gnu_library_2_1], [AC_EGREP_CPP([Lucky], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif #ifdef __UCLIBC__ Lucky user #endif ], [ac_cv_gnu_library_2_1=yes], [ac_cv_gnu_library_2_1=no]) ] ) AC_SUBST([GLIBC21]) GLIBC21="$ac_cv_gnu_library_2_1" ] ) ngraph-gtk-6.06.13/m4/gsl.m40000644000175000017500000001174312241111703012217 00000000000000# Configure path for the GNU Scientific Library # Christopher R. Gabriel , April 2000 AC_DEFUN([AX_PATH_GSL], [ AC_ARG_WITH(gsl-prefix,[ --with-gsl-prefix=PFX Prefix where GSL is installed (optional)], gsl_prefix="$withval", gsl_prefix="") AC_ARG_WITH(gsl-exec-prefix,[ --with-gsl-exec-prefix=PFX Exec prefix where GSL is installed (optional)], gsl_exec_prefix="$withval", gsl_exec_prefix="") AC_ARG_ENABLE(gsltest, [ --disable-gsltest Do not try to compile and run a test GSL program], , enable_gsltest=yes) if test "x${GSL_CONFIG+set}" != xset ; then if test "x$gsl_prefix" != x ; then GSL_CONFIG="$gsl_prefix/bin/gsl-config" fi if test "x$gsl_exec_prefix" != x ; then GSL_CONFIG="$gsl_exec_prefix/bin/gsl-config" fi fi AC_PATH_PROG(GSL_CONFIG, gsl-config, no) min_gsl_version=ifelse([$1], ,0.2.5,$1) AC_MSG_CHECKING(for GSL - version >= $min_gsl_version) no_gsl="" if test "$GSL_CONFIG" = "no" ; then no_gsl=yes else GSL_CFLAGS=`$GSL_CONFIG --cflags` GSL_LIBS=`$GSL_CONFIG --libs` gsl_major_version=`$GSL_CONFIG --version | \ sed 's/^\([[0-9]]*\).*/\1/'` if test "x${gsl_major_version}" = "x" ; then gsl_major_version=0 fi gsl_minor_version=`$GSL_CONFIG --version | \ sed 's/^\([[0-9]]*\)\.\{0,1\}\([[0-9]]*\).*/\2/'` if test "x${gsl_minor_version}" = "x" ; then gsl_minor_version=0 fi gsl_micro_version=`$GSL_CONFIG --version | \ sed 's/^\([[0-9]]*\)\.\{0,1\}\([[0-9]]*\)\.\{0,1\}\([[0-9]]*\).*/\3/'` if test "x${gsl_micro_version}" = "x" ; then gsl_micro_version=0 fi if test "x$enable_gsltest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GSL_CFLAGS" LIBS="$LIBS $GSL_LIBS" rm -f conf.gsltest AC_TRY_RUN([ #include #include #include char* my_strdup (const char *str); char* my_strdup (const char *str) { char *new_str; if (str) { new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main (void) { int major = 0, minor = 0, micro = 0; int n; char *tmp_version; system ("touch conf.gsltest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_gsl_version"); n = sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) ; if (n != 2 && n != 3) { printf("%s, bad version string\n", "$min_gsl_version"); exit(1); } if (($gsl_major_version > major) || (($gsl_major_version == major) && ($gsl_minor_version > minor)) || (($gsl_major_version == major) && ($gsl_minor_version == minor) && ($gsl_micro_version >= micro))) { exit(0); } else { exit(1); } } ],, no_gsl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gsl" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$GSL_CONFIG" = "no" ; then echo "*** The gsl-config script installed by GSL could not be found" echo "*** If GSL was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GSL_CONFIG environment variable to the" echo "*** full path to gsl-config." else if test -f conf.gsltest ; then : else echo "*** Could not run GSL test program, checking why..." CFLAGS="$CFLAGS $GSL_CFLAGS" LIBS="$LIBS $GSL_LIBS" AC_TRY_LINK([ #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GSL or finding the wrong" echo "*** version of GSL. If it is not finding GSL, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GSL was incorrectly installed" echo "*** or that you have moved GSL since it was installed. In the latter case, you" echo "*** may want to edit the gsl-config script: $GSL_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi # GSL_CFLAGS="" # GSL_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GSL_CFLAGS) AC_SUBST(GSL_LIBS) rm -f conf.gsltest ]) AU_ALIAS([AM_PATH_GSL], [AX_PATH_GSL]) ngraph-gtk-6.06.13/m4/visibility.m40000644000175000017500000000642712241111703013624 00000000000000# visibility.m4 serial 5 (gettext-0.18.2) dnl Copyright (C) 2005, 2008, 2010-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Tests whether the compiler supports the command-line option dnl -fvisibility=hidden and the function and variable attributes dnl __attribute__((__visibility__("hidden"))) and dnl __attribute__((__visibility__("default"))). dnl Does *not* test for __visibility__("protected") - which has tricky dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on dnl Mac OS X. dnl Does *not* test for __visibility__("internal") - which has processor dnl dependent semantics. dnl Does *not* test for #pragma GCC visibility push(hidden) - which is dnl "really only recommended for legacy code". dnl Set the variable CFLAG_VISIBILITY. dnl Defines and sets the variable HAVE_VISIBILITY. AC_DEFUN([gl_VISIBILITY], [ AC_REQUIRE([AC_PROG_CC]) CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then dnl First, check whether -Werror can be added to the command line, or dnl whether it leads to an error because of some other option that the dnl user has put into $CC $CFLAGS $CPPFLAGS. AC_MSG_CHECKING([whether the -Werror option is usable]) AC_CACHE_VAL([gl_cv_cc_vis_werror], [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror" AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[]], [[]])], [gl_cv_cc_vis_werror=yes], [gl_cv_cc_vis_werror=no]) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_vis_werror]) dnl Now check whether visibility declarations are supported. AC_MSG_CHECKING([for simple visibility declarations]) AC_CACHE_VAL([gl_cv_cc_visibility], [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" dnl We use the option -Werror and a function dummyfunc, because on some dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning dnl "visibility attribute not supported in this configuration; ignored" dnl at the first function definition in every compilation unit, and we dnl don't want to use the option in this case. if test $gl_cv_cc_vis_werror = yes; then CFLAGS="$CFLAGS -Werror" fi AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void); void dummyfunc (void) {} ]], [[]])], [gl_cv_cc_visibility=yes], [gl_cv_cc_visibility=no]) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_visibility]) if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 fi fi AC_SUBST([CFLAG_VISIBILITY]) AC_SUBST([HAVE_VISIBILITY]) AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY], [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) ]) ngraph-gtk-6.06.13/configure.ac0000644000175000017500000000637012241364532013150 00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT(ngraph, 6.06.13, ZXB01226@nifty.com, ngraph-gtk) AC_CONFIG_SRCDIR(src/gtk/main.c) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE LT_INIT AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) GSL_REQUIRED_VERSION=0.2.5 GTK2_REQUIRED_VERSION=2.16.0 GTK3_REQUIRED_VERSION=3.0.0 GLIB_REQUIRED_VERSION=2.16.0 dnl Checks for programs. AC_PROG_CC AM_PROG_CC_C_O AC_PROG_INSTALL AC_PROG_SED AC_PROG_MKDIR_P AC_CHECK_PROG(RM, rm, yes, no) dnl Checks for gettext. ALL_LINGUAS="ja" AM_GNU_GETTEXT([external]) dnl Checks for libraries. AC_SEARCH_LIBS(sqrt, m, [ M_LIBS=-lm AC_SUBST(M_LIBS) ]) AC_CHECK_LIB([readline], [rl_completion_matches], [ AC_DEFINE([HAVE_LIBREADLINE], 1, [have readline library]) READLINE_LIBS=-lreadline AC_SUBST(READLINE_LIBS) ]) dnl Check for -rdynamic option NGRAPH_CC_TRY_LINK_FLAG([RDYNAMIC], [-rdynamic]) dnl Check for version script NGRAPH_CC_TRY_LINK_FLAG([VER_SCRIPT], [-Wl,--version-script,ngraph_export.map]) dnl Checks for ruby AC_CHECK_PROG(RUBY, ruby, yes, no) if test $RUBY = yes; then [ruby_incrudedir=`ruby -e 'puts(RbConfig::CONFIG["rubyhdrdir"])'`] AC_CHECK_FILE($ruby_incrudedir/ruby.h, [have_ruby_dev=yes]) fi AM_CONDITIONAL(HAVE_RUBY_DEV, test x$have_ruby_dev = xyes) AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION,, [AC_MSG_ERROR(Test for GLib failed.)], gobject gthread gmodule) dnl GLIB_LIBS_WITH_GTHREAD="$GLIB_LIBS" dnl AC_SUBST(GLIB_LIBS_WITH_GTHREAD) dnl AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION,, dnl [AC_MSG_ERROR(Test for GLib failed.)], dnl gobject) AM_PATH_GTK_3_0($GTK3_REQUIRED_VERSION,, [AM_PATH_GTK_2_0($GTK2_REQUIRED_VERSION,, [AC_MSG_ERROR(Test for GTK failed.)],)],) AM_PATH_GSL($GSL_REQUIRED_VERSION, AC_DEFINE([HAVE_LIBGSL], 1, [have GNU Scientific Library]),) AC_SUBST(PKG_CONFIG) # Checks for header files. AC_PATH_X AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h strings.h sys/ioctl.h sys/time.h unistd.h utime.h readline/readline.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T AC_TYPE_SIZE_T AC_STRUCT_TM # Checks for library functions. AC_FUNC_CLOSEDIR_VOID AC_FUNC_ERROR_AT_LINE AC_FUNC_FORK AC_FUNC_MALLOC AC_FUNC_ALLOCA AC_FUNC_MKTIME AC_FUNC_REALLOC AC_TYPE_SIGNAL AC_FUNC_STAT AC_FUNC_STRTOD AC_FUNC_UTIME_NULL AC_FUNC_VPRINTF AC_FUNC_MMAP AC_CHECK_FUNCS([sigaction sigsuspend alarm dup2 getcwd mkdir pow powl log10l fabsl floorl sqrt strchr strdup strerror strncasecmp strstr strtol utime isfinite finite nanosleep sleep]) AC_CONFIG_FILES([Makefile \ src/Makefile \ src/gtk/Makefile \ src/math/Makefile \ driver/Makefile \ addin/Makefile \ po/Makefile.in \ m4/Makefile \ demo/Makefile initfile/Makefile \ doc/Makefile \ doc/html/Makefile \ doc/html/img/Makefile \ doc/html/ja/Makefile \ doc/html/ja/tutorial/Makefile \ doc/html/ja/dialogs/Makefile \ zsh/Makefile test/Makefile plugins/Makefile mingw/Makefile \ pixmap/Makefile \ icons/Makefile \ icons/scalable/Makefile \ icons/scalable/apps/Makefile \ icons/scalable/mimetypes/Makefile \ misc/Makefile]) AM_CONFIG_HEADER([config.h]) AC_OUTPUT ngraph-gtk-6.06.13/zsh/0000755000175000017500000000000012241600065011532 500000000000000ngraph-gtk-6.06.13/zsh/Makefile.in0000644000175000017500000003616112241364552013536 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = zsh DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_zsh_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(zshdir)" DATA = $(dist_zsh_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ngraphconfdir = $(sysconfdir)/$(PACKAGE) zshdir = $(ngraphconfdir)/zsh dist_zsh_DATA = _ngraph _ngp2 # _gra2ps _gra2wmf all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu zsh/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu zsh/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_zshDATA: $(dist_zsh_DATA) @$(NORMAL_INSTALL) @list='$(dist_zsh_DATA)'; test -n "$(zshdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(zshdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(zshdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(zshdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(zshdir)" || exit $$?; \ done uninstall-dist_zshDATA: @$(NORMAL_UNINSTALL) @list='$(dist_zsh_DATA)'; test -n "$(zshdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(zshdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(zshdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_zshDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_zshDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_zshDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_zshDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/zsh/_ngraph0000644000175000017500000000505012241111702013006 00000000000000#compdef ngraph _arguments \ ':file:_files' \ '-L[load ngp file]:file:_files -g "*.ngp(-.)"' \ '-x[set data column of x axis]:integer' \ '-y[set data column of y axis]:integer' \ '-X[set X axis as x axis]' \ '-Y[set Y axis as y axis]' \ '-U[set U axis as x axis]' \ '-R[set R axis as y axis]' \ '-d[set type of data plot]:type of data plot:(mark line polygon curve \ diagonal arrow rectangle rectangle_fill rectangle_solid_fill \ errorbar_x errorbar_y staircase_x staircase_y bar_x bar_y \ bar_fill_x bar_fill_y bar_solid_fill_x bar_solid_fill_y fit)' \ '-m[set mark type (0 - 89)]:integer' \ '-o[set mark size]:integer' \ '-l[set line style]:string' \ '-w[set line width]:integer' \ '-cr[red element of plot color 1]:integer' \ '-cg[green element of plot color 1]:integer' \ '-cb[blue element of plot color 1]:integer' \ '-CR[red element of plot color 2]:integer' \ '-CG[green element of plot color 2]:integer' \ '-CB[blue element of plot color 2]:integer' \ '-s[set number of head skip]:lines' \ '-r[set number of read step]:lines' \ '-f[set number of finale line]:lines' \ '-vx[set number of neighbor average for x]:integer' \ '-vy[set number of neighbor average for y]:integer' \ '-mx[set math transformation for x]:string' \ '-my[set math transformation for y]:string' \ '-ex[set scale type of x axis]:type of axis:(linear log inverse MJD)' \ '-ey[set scale type of y axis]:type of axis:(linear log inverse MJD)' \ '-minx[set minimum of x axis]:double' \ '-maxx[set maximum of x axis]:double' \ '-incx[set increment of x axis]:double' \ '-miny[set minimum of y axis]:double' \ '-maxy[set maximum of y axis]:double' \ '-incy[set increment of y axis]:double' \ '-g[load settings from data file]' \ '-png[save as png file]:file:_files -g "*.ngp(-.)"' \ '-pdf[save as pdf file]:file:_files -g "*.ngp(-.)"' \ '-ps[save as ps file]:file:_files -g "*.ngp(-.)"' \ '-eps[save as eps file]:file:_files -g "*.ngp(-.)"' \ '-svg[save as svg file]:file:_files -g "*.ngp(-.)"' \ '-gra[save as gra file]:file:_files -g "*.ngp(-.)"' \ '-p[print graph]:file:_files -g "*.ngp(-.)"' \ '-dialog[show print dialog (with -p option)]' \ '-n[output ngp-file to stdout]' \ '-h[Show this help message]' \ '--help[Show this help message]' \ '-v[Show version of Ngraph]' \ '--version[Show version of Ngraph]' \ '-V[Show detail informations of Ngraph]' \ '--VERSION[Show detail informations of Ngraph]' ngraph-gtk-6.06.13/zsh/Makefile.am0000644000175000017500000000017212241111702013501 00000000000000ngraphconfdir = $(sysconfdir)/$(PACKAGE) zshdir = $(ngraphconfdir)/zsh dist_zsh_DATA = _ngraph _ngp2 # _gra2ps _gra2wmf ngraph-gtk-6.06.13/zsh/_ngp20000644000175000017500000000151412241111702012376 00000000000000#compdef ngp2 _arguments \ '*:file:_files -g "*.ngp(-.)"' \ '-I[ignore path]' \ '-a[auto scale]' \ '-A[clear scale and auto scale]' \ '-c[change directory]' \ '-ps[output PostScript level 3]' \ '-ps3[output PostScript level 3]' \ '-ps2[output PostScript level 2]' \ '-eps[output Encapsulated PostScript level 3]' \ '-eps3[output Encapsulated PostScript level 3]' \ '-eps2[output Encapsulated PostScript level 2]' \ '-wmf[output Windows meta file]' \ '-pdf[output Portable Document Format]' \ '-svg[output Scalable Vector Graphics version 1.1]' \ '-svg1.1[output Scalable Vector Graphics version 1.1]' \ '-svg1.2[output Scalable Vector Graphics version 1.2]' \ '-png[output Portable Network Graphics]' \ '-h[Show this help message]' \ '--help[Show this help message]' ngraph-gtk-6.06.13/config.guess0000755000175000017500000013036112241364550013200 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-06-10' # This file 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 3 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, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches with a ChangeLog entry to config-patches@gnu.org. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; or1k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ngraph-gtk-6.06.13/install-sh0000755000175000017500000003325512241364550012670 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ngraph-gtk-6.06.13/acinclude.m40000644000175000017500000000036412241111702013035 00000000000000dnl check compiler/ld flags AC_DEFUN([NGRAPH_CC_TRY_LINK_FLAG], [dnl _save_cflags="$CFLAGS" CFLAGS="$CFLAGS -Werror -rdynamic" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [$1="$2"], [$1=""]) CFLAGS="$_save_cflags" AC_SUBST($1) ]) ngraph-gtk-6.06.13/TODO0000644000175000017500000000206612241111702011335 00000000000000* ruby plugin 登録初期化スクリプト提供 * legend 配下のオブジェクトに hsb などのフィールドを追加する。 * GRA の T,0 コマンドで線を閉じるようにする。 * 数式変換に mod, fmod 関数を追加する。 * オブジェクト編集時に Viewer に即反映する。 * オブジェクト情報表示・設定 (name フィールド) ダイアログの追加 (ポップアップメニューから起動?) * fit 設定の保存時にグラフ更新フラグがセットされてしまう不具合の修正。 * コードの整理 * axis を cut & paste できないか? * EMF 出力の制限 1. 不透明度設定非対応 2. libreoffice が多角形塗りつぶしの WindingRule に非対応 3. libreoffice が点線に非対応 4. libreoffice で楕円の扇形または弓型輪郭の直線部分が表示されない 5. paint にペーストした時一部の文字が正常に表示されない 6. 文字が描画範囲からはみ出すことがあるので透明な矩形を描画している ngraph-gtk-6.06.13/initfile/0000755000175000017500000000000012241600064012530 500000000000000ngraph-gtk-6.06.13/initfile/NgraphUI.xml0000644000175000017500000003110412241111710014641 00000000000000 ngraph-gtk-6.06.13/initfile/Makefile.in0000644000175000017500000004367512241364551014544 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initfile DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_ngraphconf_DATA) \ $(dist_ngraphinit_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(ngraphconfdir)" \ "$(DESTDIR)$(ngraphinitdir)" "$(DESTDIR)$(ngraphconfdir)" DATA = $(dist_ngraphconf_DATA) $(dist_ngraphinit_DATA) \ $(nodist_ngraphconf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ngraphconfdir = $(sysconfdir)/$(PACKAGE) ngraphinitdir = $(sysconfdir)/$(PACKAGE)/init.d UI_FILE = NgraphUI.xml ACCEL_FILE = accel_map dist_ngraphinit_DATA = 10append_addins.nsc dist_ngraphconf_DATA = Ngraph.nsc Ngraph.ngp fit.ngp $(UI_FILE) $(ACCEL_FILE) nodist_ngraphconf_DATA = Ngraph.ini EXTRA_DIST = Ngraph.ini.in Ngraph.ini.win NgraphUI.xml.win save_ui_file.nsc CLEANFILES = Ngraph.ini all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu initfile/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu initfile/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_ngraphconfDATA: $(dist_ngraphconf_DATA) @$(NORMAL_INSTALL) @list='$(dist_ngraphconf_DATA)'; test -n "$(ngraphconfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(ngraphconfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(ngraphconfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(ngraphconfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(ngraphconfdir)" || exit $$?; \ done uninstall-dist_ngraphconfDATA: @$(NORMAL_UNINSTALL) @list='$(dist_ngraphconf_DATA)'; test -n "$(ngraphconfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(ngraphconfdir)'; $(am__uninstall_files_from_dir) install-dist_ngraphinitDATA: $(dist_ngraphinit_DATA) @$(NORMAL_INSTALL) @list='$(dist_ngraphinit_DATA)'; test -n "$(ngraphinitdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(ngraphinitdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(ngraphinitdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(ngraphinitdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(ngraphinitdir)" || exit $$?; \ done uninstall-dist_ngraphinitDATA: @$(NORMAL_UNINSTALL) @list='$(dist_ngraphinit_DATA)'; test -n "$(ngraphinitdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(ngraphinitdir)'; $(am__uninstall_files_from_dir) install-nodist_ngraphconfDATA: $(nodist_ngraphconf_DATA) @$(NORMAL_INSTALL) @list='$(nodist_ngraphconf_DATA)'; test -n "$(ngraphconfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(ngraphconfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(ngraphconfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(ngraphconfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(ngraphconfdir)" || exit $$?; \ done uninstall-nodist_ngraphconfDATA: @$(NORMAL_UNINSTALL) @list='$(nodist_ngraphconf_DATA)'; test -n "$(ngraphconfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(ngraphconfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(ngraphconfdir)" "$(DESTDIR)$(ngraphinitdir)" "$(DESTDIR)$(ngraphconfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_ngraphconfDATA \ install-dist_ngraphinitDATA install-nodist_ngraphconfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_ngraphconfDATA \ uninstall-dist_ngraphinitDATA uninstall-nodist_ngraphconfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_ngraphconfDATA install-dist_ngraphinitDATA \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-nodist_ngraphconfDATA install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_ngraphconfDATA \ uninstall-dist_ngraphinitDATA uninstall-nodist_ngraphconfDATA Ngraph.ini: Ngraph.ini.in Makefile sh ../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" Ngraph.ini.in update_ui_file: ../src/ngraph -i save_ui_file.nsc $(UI_FILE) $(ACCEL_FILE) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/initfile/Ngraph.ini.in0000644000175000017500000000501412241111710014770 00000000000000 [Ngraph] # terminal=gnome-terminal -x LIBDIRDEF/terminal # terminal=rxvt -e LIBDIRDEF/terminal terminal=xterm -e LIBDIRDEF/terminal alloc_console=0 history_size=1000 [x11menu] script_console=0 addin_console=0 status_bar=1 show_tip=1 scrollbar=1 command_toolbar=1 pointer_toolbar=1 cross_gauge=0 browser=xdg-open help_browser=yelp antialias=1 viewer_dpi=70 viewer_load_file_on_redraw=1 viewer_load_file_data_number=256 viewer_show_ruler=1 viewer_grid=200 data_head_lines=20 preserve_width=1 infowin_size=1000 background_color=ffffff change_directory=1 save_path=0 load_path=1 save_with_data=0 save_with_merge=0 expand_dir=./ expand=1 editor=gedit select_data_on_export=0 coordwin_font=Liberation Mono 12 infowin_font=Liberation Mono 10 file_preview_font=Liberation Mono 10 character_map=_Miscellaneous,☀☁☂☃☄★☆☐☑☒☚☛☜☝☞☟☠☹☺☻♠♡♢♣♤♥♦♧♨♩♪♫♬➩➪➫➬➭➮ character_map=_Physics,µ℃℉ℎℏÅℇ☢ character_map=_Mathematics,±×÷‰∀∂∃∄∇∈∉∋∌√∛∜∝∞∠∥∦∧∨∩∪∫∬∮≂≃≒≡≦≧≨≩≪≫ character_map=_Greece,ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωϕς menu_win=12,39,1000,680 file_win=-343,0,336,188,1 axis_win=-343,215,336,188,1 legend_win=-100000,-100000,-100000,-100000,0 merge_win=-100000,-100000,-100000,-100000,0 coordinate_win=-343,430,336,188,1 information_win=-100000,-100000,-100000,-100000,0 extwin_dpi=40 extwin_width=400 extwin_height=600 use_external_viewer=1 history_size=1000 palette=black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90 single_window_mode=1 [gra2cairo] font=Sans-serif,Liberation Sans font=Serif,Liberation Serif font=Monospace,Liberation Mono [axis] width=40 gauge_length1=100 gauge_width1=40 gauge_length2=200 gauge_width2=40 gauge_length3=300 gauge_width3=40 num_pt=2000 num_space=0 num_script_size=7000 num_format=%g num_font=Sans-serif num_font_style=0 [axis_fX] direction=0 gauge=2 num=2 num_align=0 [axis_fY] direction=9000 gauge=3 num=1 num_align=2 [axis_fU] direction=0 gauge=3 num=1 num_align=0 [axis_fR] direction=9000 gauge=2 num=2 num_align=1 [axis_sX] direction=0 gauge=0 num=2 num_align=0 [axis_sY] direction=9000 gauge=0 num=1 num_align=2 [axis_sU] direction=0 gauge=0 num=1 num_align=0 [axis_sR] direction=9000 gauge=0 num=2 num_align=1 [axis_cX] direction=0 gauge=1 num=2 num_align=0 [axis_cY] direction=9000 gauge=1 num=1 num_align=2 ngraph-gtk-6.06.13/initfile/10append_addins.nsc0000644000175000017500000000205612241111710016105 00000000000000if exist -q menu then new regexp name=ADDIN regexp:ADDIN:@='^#\s*Description:\s*(.+)' new regexp name=COMMENT regexp:COMMENT:@='^#' new io name=ADDIN io:ADDIN:mode="r" new sarray name=ADDIN sarray::delimiter="," for addin in "${system::home_dir}"/*.nsc "${system::data_dir}"/addin/*.nsc do if [ -f "$addin" ] then io:ADDIN:open "$addin" while l=`get io -field gets` do if regexp:COMMENT:match "$l" then if regexp:ADDIN:match "$l" then sarray:ADDIN:split "${regexp:ADDIN:get:'0 1'}" if [ ${sarray:ADDIN:num} -gt 3 ] then new sarray name=TMP sarray:TMP:push "${sarray:ADDIN:shift}" sarray:TMP:push "${sarray:ADDIN:shift}" sarray:TMP:push "${sarray:ADDIN:join:','}" cpy sarray:TMP,ADDIN @ del sarray:TMP fi sarray:ADDIN:unshift "$addin" menu::addin_list_append sarray:ADDIN fi else break fi done io:ADDIN:close fi done del regexp:ADDIN del regexp:COMMENT del io:ADDIN del sarray:ADDIN fi ngraph-gtk-6.06.13/initfile/Ngraph.ngp0000644000175000017500000001246112241111711014375 00000000000000new axis axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=3600 axis::y=22000 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=right axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=3600 axis::y=22000 axis::direction=9000 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference= axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=right axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=3600 axis::y=8000 axis::direction=0 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:0' axis::gauge=right axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=left axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=center axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 new axis axis::hidden=false axis::R=0 axis::G=0 axis::B=0 axis::clip=true axis::redraw_flag=true axis::min=0.000000000000000e+00 axis::max=0.000000000000000e+00 axis::inc=0.000000000000000e+00 axis::div=0 axis::type=linear axis::x=17600 axis::y=22000 axis::direction=9000 axis::baseline=true axis::length=14000 axis::width=40 axis::style= axis::adjust_axis= axis::adjust_position=0 axis::arrow=none axis::arrow_length=72426 axis::arrow_width=60000 axis::wave=none axis::wave_length=300 axis::wave_width=40 axis::reference='axis:1' axis::gauge=left axis::gauge_min=0.000000000000000e+00 axis::gauge_max=0.000000000000000e+00 axis::gauge_style= axis::gauge_length1=100 axis::gauge_width1=40 axis::gauge_length2=200 axis::gauge_width2=40 axis::gauge_length3=300 axis::gauge_width3=40 axis::gauge_R=0 axis::gauge_G=0 axis::gauge_B=0 axis::num=right axis::num_begin=0 axis::num_step=0 axis::num_num=-1 axis::num_auto_norm=5 axis::num_head= axis::num_format='%g' axis::num_tail= axis::num_log_pow=true axis::num_pt=2000 axis::num_space=0 axis::num_font='Sans-serif' axis::num_script_size=7000 axis::num_align=left axis::num_no_zero=false axis::num_direction=normal axis::num_shift_p=0 axis::num_shift_n=100 axis::num_R=0 axis::num_G=0 axis::num_B=0 axis::grouping 1 0 1 2 3 new gra name:viewer gra::left_margin=0 gra::top_margin=0 gra::zoom=10000 gra::paper_width=21000 gra::paper_height=29700 gra::draw_obj='axisgrid axis file merge rectangle arc path mark text' ngraph-gtk-6.06.13/initfile/Ngraph.ini.win0000644000175000017500000000571512241111710015167 00000000000000# the first line shoud be comment or blank because notepad.exe add BOM # on the top of the file and Ngraph cannnot understand BOM. [Ngraph] alloc_console=0 history_size=1000 [x11menu] script_console=0 addin_console=0 status_bar=1 show_tip=1 scrollbar=1 command_toolbar=1 pointer_toolbar=1 cross_gauge=0 browser=cmd /c start "" help_browser=cmd /c start "" antialias=1 viewer_dpi=70 viewer_load_file_on_redraw=1 viewer_load_file_data_number=256 viewer_show_ruler=1 viewer_grid=200 data_head_lines=20 preserve_width=1 infowin_size=1000 background_color=ffffff change_directory=1 save_path=0 load_path=1 save_with_data=0 save_with_merge=0 expand_dir=./ expand=1 editor=notepad select_data_on_export=0 coordwin_font=Courier New 12 infowin_font=Courier New 10 file_preview_font=Courier New 10 character_map=_Miscellaneous,☀☁☂☃☄★☆☐☑☒☚☛☜☝☞☟☠☹☺☻♠♡♢♣♤♥♦♧♨♩♪♫♬➩➪➫➬➭➮ character_map=_Physics,µ℃℉ℎℏÅℇ☢ character_map=_Mathematics,±×÷‰∀∂∃∄∇∈∉∋∌√∛∜∝∞∠∥∦∧∨∩∪∫∬∮≂≃≒≡≦≧≨≩≪≫ character_map=_Greece,ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψω menu_win=447,39,688,680 file_win=-343,0,336,188,1 axis_win=-343,215,336,188,1 legend_win=-100000,-100000,-100000,-100000,0 merge_win=-100000,-100000,-100000,-100000,0 coordinate_win=-343,430,336,188,1 information_win=-100000,-100000,-100000,-100000,0 extwin_dpi=40 extwin_width=400 extwin_height=600 use_external_viewer=0 history_size=1000 palette=black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90 single_window_mode=1 [gra2cairo] font=Sans-serif,arial,ms pgothic,browallia new,mingliu,simhei,gulimche,kartika,latha,mangal,raavi,Sylfaen,Microsoft Sans Serif font=Serif,times new roman,ms pmincho,angsana new,mingliu,simsun,batangche,kartika,latha,mangal,raavi,Sylfaen,Microsoft Sans Serif font=Monospace,courier new,ms gothic,courier monothai,mingliu,simsun,gulimche,kartika,latha,mangal,raavi,Sylfaen,Microsoft Sans Serif [axis] width=40 gauge_length1=100 gauge_width1=40 gauge_length2=200 gauge_width2=40 gauge_length3=300 gauge_width3=40 num_pt=2000 num_space=0 num_script_size=7000 num_format=%g num_font=Sans-serif num_font_style=0 [axis_fX] direction=0 gauge=2 num=2 num_align=0 [axis_fY] direction=9000 gauge=3 num=1 num_align=2 [axis_fU] direction=0 gauge=3 num=1 num_align=0 [axis_fR] direction=9000 gauge=2 num=2 num_align=1 [axis_sX] direction=0 gauge=0 num=2 num_align=0 [axis_sY] direction=9000 gauge=0 num=1 num_align=2 [axis_sU] direction=0 gauge=0 num=1 num_align=0 [axis_sR] direction=9000 gauge=0 num=2 num_align=1 [axis_cX] direction=0 gauge=1 num=2 num_align=0 [axis_cY] direction=9000 gauge=1 num=1 num_align=2 ngraph-gtk-6.06.13/initfile/Makefile.am0000644000175000017500000000121312241111710014474 00000000000000ngraphconfdir = $(sysconfdir)/$(PACKAGE) ngraphinitdir = $(sysconfdir)/$(PACKAGE)/init.d UI_FILE = NgraphUI.xml ACCEL_FILE = accel_map dist_ngraphinit_DATA = 10append_addins.nsc dist_ngraphconf_DATA = Ngraph.nsc Ngraph.ngp fit.ngp $(UI_FILE) $(ACCEL_FILE) nodist_ngraphconf_DATA = Ngraph.ini EXTRA_DIST = Ngraph.ini.in Ngraph.ini.win NgraphUI.xml.win save_ui_file.nsc Ngraph.ini: Ngraph.ini.in Makefile sh ../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" Ngraph.ini.in update_ui_file: ../src/ngraph -i save_ui_file.nsc $(UI_FILE) $(ACCEL_FILE) CLEANFILES = Ngraph.ini ngraph-gtk-6.06.13/initfile/save_ui_file.nsc0000644000175000017500000000177412241111710015613 00000000000000#! /usr/bin/ngraph UI_FILE=$1 MAP_FILE=$2 TMP_FILE=${system::temp_file} TMP_NGP=tmp.ngp new menu new regexp new sarray new io echo "get menu: -field get_ui" > $TMP_NGP menu::menu $TMP_NGP > $UI_FILE echo "get menu: -field get_accel_map" > $TMP_NGP menu::menu $TMP_NGP > $TMP_FILE echo -n > $MAP_FILE regexp::@="^; \(" io::open "$TMP_FILE" while true do s="${io::gets}" if io::eof then break fi if regexp::match "$s" then sarray::push "$s" else echo "$s" >> $MAP_FILE fi done io::close sarray::sort for i in ${sarray::seq} do get sarray -field get:$i >> $MAP_FILE done echo -n > $UI_FILE.win regexp::@='name="GraphExportPNG"' io::open "$UI_FILE" while true do s="${io::gets}" if io::eof then break fi echo "$s" >> $UI_FILE.win if regexp::match "$s" then echo ' ' >> $UI_FILE.win fi done io::close rm $TMP_NGP del io del sarray del regexp del menu del system ngraph-gtk-6.06.13/initfile/NgraphUI.xml.win0000644000175000017500000003137412241111710015446 00000000000000 ngraph-gtk-6.06.13/initfile/accel_map0000644000175000017500000001233412241111711014276 00000000000000; ngraph GtkAccelMap rc-file -*- scheme -*- ; this file is an automated accelerator map dump ; ; (gtk_accel_path "/Axis/Add/Cross graph" "") ; (gtk_accel_path "/Axis/Add/Frame graph" "") ; (gtk_accel_path "/Axis/Add/Section graph" "") ; (gtk_accel_path "/Axis/Add/Single axis" "") ; (gtk_accel_path "/Axis/Delete" "") ; (gtk_accel_path "/Axis/Grid/Add" "") ; (gtk_accel_path "/Axis/Grid/Delete" "") ; (gtk_accel_path "/Axis/Grid/Property" "") ; (gtk_accel_path "/Axis/Property" "") ; (gtk_accel_path "/Axis/Scale Clear" "c") ; (gtk_accel_path "/Axis/Scale Undo" "") ; (gtk_accel_path "/Axis/Scale Zoom" "") ; (gtk_accel_path "/Data/Add" "o") ; (gtk_accel_path "/Data/Close" "") ; (gtk_accel_path "/Data/Edit" "") ; (gtk_accel_path "/Data/Math" "") ; (gtk_accel_path "/Data/Property" "") ; (gtk_accel_path "/Data/Save data" "") ; (gtk_accel_path "/Edit/Align/Bottom" "") ; (gtk_accel_path "/Edit/Align/Horizontal center" "") ; (gtk_accel_path "/Edit/Align/Left" "") ; (gtk_accel_path "/Edit/Align/Right" "") ; (gtk_accel_path "/Edit/Align/Top" "") ; (gtk_accel_path "/Edit/Align/Vertical center" "") ; (gtk_accel_path "/Edit/Copy" "c") ; (gtk_accel_path "/Edit/Cut" "x") ; (gtk_accel_path "/Edit/Delete" "Delete") ; (gtk_accel_path "/Edit/FlipHorizontally" "") ; (gtk_accel_path "/Edit/FlipVertically" "") ; (gtk_accel_path "/Edit/Paste" "v") ; (gtk_accel_path "/Edit/RotateCCW" "") ; (gtk_accel_path "/Edit/RotateCW" "") ; (gtk_accel_path "/Edit/draw Order/Bottom" "End") ; (gtk_accel_path "/Edit/draw Order/Down" "") ; (gtk_accel_path "/Edit/draw Order/Top" "Home") ; (gtk_accel_path "/Edit/draw Order/Up" "") ; (gtk_accel_path "/Graph/Current directory" "") ; (gtk_accel_path "/Graph/Draw order" "") ; (gtk_accel_path "/Graph/Export image/EPS File" "") ; (gtk_accel_path "/Graph/Export image/GRA File" "") ; (gtk_accel_path "/Graph/Export image/PDF File" "") ; (gtk_accel_path "/Graph/Export image/PNG File" "") ; (gtk_accel_path "/Graph/Export image/PS File" "") ; (gtk_accel_path "/Graph/Export image/SVG File" "") ; (gtk_accel_path "/Graph/Load graph" "r") ; (gtk_accel_path "/Graph/New graph/All clear" "") ; (gtk_accel_path "/Graph/New graph/Cross graph" "") ; (gtk_accel_path "/Graph/New graph/Frame graph" "") ; (gtk_accel_path "/Graph/New graph/Section graph" "") ; (gtk_accel_path "/Graph/Ngraph shell" "") ; (gtk_accel_path "/Graph/Page" "") ; (gtk_accel_path "/Graph/Print preview" "") ; (gtk_accel_path "/Graph/Print" "p") ; (gtk_accel_path "/Graph/Quit" "q") ; (gtk_accel_path "/Graph/Save" "s") ; (gtk_accel_path "/Graph/SaveAs" "s") ; (gtk_accel_path "/Help/About" "") ; (gtk_accel_path "/Help/Help" "F1") ; (gtk_accel_path "/Legend/Arc/Delete" "") ; (gtk_accel_path "/Legend/Arc/Property" "") ; (gtk_accel_path "/Legend/Mark/Delete" "") ; (gtk_accel_path "/Legend/Mark/Property" "") ; (gtk_accel_path "/Legend/Path/Delete" "") ; (gtk_accel_path "/Legend/Path/Property" "") ; (gtk_accel_path "/Legend/Rectangle/Delete" "") ; (gtk_accel_path "/Legend/Rectangle/Property" "") ; (gtk_accel_path "/Legend/Text/Delete" "") ; (gtk_accel_path "/Legend/Text/Property" "") ; (gtk_accel_path "/Merge/Add" "") ; (gtk_accel_path "/Merge/Close" "") ; (gtk_accel_path "/Merge/Property" "") ; (gtk_accel_path "/Popup/Update" "Return") ; (gtk_accel_path "/Preference/Addin Script" "") ; (gtk_accel_path "/Preference/Data file default" "") ; (gtk_accel_path "/Preference/External Viewer" "") ; (gtk_accel_path "/Preference/Font aliases" "") ; (gtk_accel_path "/Preference/Legend text default" "") ; (gtk_accel_path "/Preference/Miscellaneous" "") ; (gtk_accel_path "/Preference/Viewer" "") ; (gtk_accel_path "/Preference/save as default (Graph)" "") ; (gtk_accel_path "/Preference/save as default (Settings)" "") ; (gtk_accel_path "/View/Axis Window" "F4") ; (gtk_accel_path "/View/Clear information window" "") ; (gtk_accel_path "/View/Clear" "e") ; (gtk_accel_path "/View/Command toolbar" "") ; (gtk_accel_path "/View/Coordinate Window" "F7") ; (gtk_accel_path "/View/Data Window" "F3") ; (gtk_accel_path "/View/Draw" "d") ; (gtk_accel_path "/View/Information Window" "F8") ; (gtk_accel_path "/View/Legend Window" "F5") ; (gtk_accel_path "/View/Merge Window" "F6") ; (gtk_accel_path "/View/Ruler" "") ; (gtk_accel_path "/View/Scrollbar" "") ; (gtk_accel_path "/View/Status bar" "") ; (gtk_accel_path "/View/Toolbox" "") ; (gtk_accel_path "/View/cross Gauge" "plus") ; (gtk_accel_path "/View/default Window config" "") ngraph-gtk-6.06.13/initfile/fit.ngp0000644000175000017500000001133112241111710013732 00000000000000new fit fit::profile='Gaussian' fit::type=user fit::min=0.000000000000000e+00 fit::max=0.000000000000000e+00 fit::div=500 fit::interpolation=false fit::through_point=false fit::point_x=0.000000000000000e+00 fit::point_y=0.000000000000000e+00 fit::equation= fit::poly_dimension=5 fit::weight_func= fit::user_func='%01*EXP(-(((X-%02)*%03)^2))+%00' fit::derivative=true fit::derivative0='1' fit::derivative1='EXP(-(((X-%02)*%03)^2))' fit::derivative2='2*(X-%02)*%03^2*%01*EXP(-(((X-%02)*%03)^2))' fit::derivative3='-2*%03*(X-%02)^2*%01*EXP(-(((X-%02)*%03)^2))' fit::derivative4= fit::derivative5= fit::derivative6= fit::derivative7= fit::derivative8= fit::derivative9= fit::converge=1.000000000000000e-05 fit::parameter0=0.000000000000000e+00 fit::parameter1=1.000000000000000e+00 fit::parameter2=0.000000000000000e+00 fit::parameter3=1.000000000000000e+00 fit::parameter4=0.000000000000000e+00 fit::parameter5=0.000000000000000e+00 fit::parameter6=0.000000000000000e+00 fit::parameter7=0.000000000000000e+00 fit::parameter8=0.000000000000000e+00 fit::parameter9=0.000000000000000e+00 fit::display=true new fit fit::profile='double-Gaussian' fit::type=user fit::min=0.000000000000000e+00 fit::max=0.000000000000000e+00 fit::div=500 fit::interpolation=false fit::through_point=false fit::point_x=0.000000000000000e+00 fit::point_y=0.000000000000000e+00 fit::equation= fit::poly_dimension=5 fit::weight_func= fit::user_func='%01*EXP(-(((X-%02)*%03)^2))+%04*EXP(-(((X-%05)*%06)^2))+%00' fit::derivative=true fit::derivative0='1' fit::derivative1='EXP(-(((X-%02)*%03)^2))' fit::derivative2='2*(X-%02)*%03^2*%01*EXP(-(((X-%02)*%03)^2))' fit::derivative3='-2*%03*(X-%02)^2*%01*EXP(-(((X-%02)*%03)^2))' fit::derivative4='EXP(-(((X-%05)*%06)^2))' fit::derivative5='2*(X-%05)*%06^2*%04*EXP(-(((X-%05)*%06)^2))' fit::derivative6='-2*%06*(X-%05)^2*%04*EXP(-(((X-%05)*%06)^2))' fit::derivative7= fit::derivative8= fit::derivative9= fit::converge=1.000000000000000e-05 fit::parameter0=0.000000000000000e+00 fit::parameter1=1.000000000000000e+00 fit::parameter2=-1.000000000000000e+00 fit::parameter3=1.000000000000000e+00 fit::parameter4=1.000000000000000e+00 fit::parameter5=1.000000000000000e+00 fit::parameter6=1.000000000000000e+00 fit::parameter7=0.000000000000000e+00 fit::parameter8=0.000000000000000e+00 fit::parameter9=0.000000000000000e+00 fit::display=true new fit fit::profile='Lorentzian' fit::type=user fit::min=0.000000000000000e+00 fit::max=0.000000000000000e+00 fit::div=500 fit::interpolation=false fit::through_point=false fit::point_x=0.000000000000000e+00 fit::point_y=0.000000000000000e+00 fit::equation= fit::poly_dimension=5 fit::weight_func= fit::user_func='%01/(((X-%02)*%03)^2+1)+%00' fit::derivative=true fit::derivative0='1' fit::derivative1='1/(((X-%02)*%03)^2+1)' fit::derivative2='2*(X-%02)*%03^2*%01/(((X-%02)*%03)^2+1)^2' fit::derivative3='-2*%03*(X-%02)^2*%01/(((X-%02)*%03)^2+1)^2' fit::derivative4= fit::derivative5= fit::derivative6= fit::derivative7= fit::derivative8= fit::derivative9= fit::converge=1.000000000000000e-05 fit::parameter0=0.000000000000000e+00 fit::parameter1=1.000000000000000e+00 fit::parameter2=0.000000000000000e+00 fit::parameter3=1.000000000000000e+00 fit::parameter4=0.000000000000000e+00 fit::parameter5=0.000000000000000e+00 fit::parameter6=0.000000000000000e+00 fit::parameter7=0.000000000000000e+00 fit::parameter8=0.000000000000000e+00 fit::parameter9=0.000000000000000e+00 fit::display=true new fit fit::profile='double-Lorentzian' fit::type=user fit::min=0.000000000000000e+00 fit::max=0.000000000000000e+00 fit::div=500 fit::interpolation=false fit::through_point=false fit::point_x=0.000000000000000e+00 fit::point_y=0.000000000000000e+00 fit::equation= fit::poly_dimension=5 fit::weight_func= fit::user_func='%01/(((X-%02)*%03)^2+1)+%04/(((X-%05)*%06)^2+1)+%00' fit::derivative=true fit::derivative0='1' fit::derivative1='1/(((X-%02)*%03)^2+1)' fit::derivative2='2*(X-%02)*%03^2*%01/(((X-%02)*%03)^2+1)^2' fit::derivative3='-2*%03*(X-%02)^2*%01/(((X-%02)*%03)^2+1)^2' fit::derivative4='1/(((X-%05)*%06)^2+1)' fit::derivative5='2*(X-%05)*%06^2*%04/(((X-%05)*%06)^2+1)^2' fit::derivative6='-2*%06*(X-%05)^2*%04/(((X-%05)*%06)^2+1)^2' fit::derivative7= fit::derivative8= fit::derivative9= fit::converge=1.000000000000000e-05 fit::parameter0=0.000000000000000e+00 fit::parameter1=1.000000000000000e+00 fit::parameter2=-1.000000000000000e+00 fit::parameter3=1.000000000000000e+00 fit::parameter4=1.000000000000000e+00 fit::parameter5=1.000000000000000e+00 fit::parameter6=1.000000000000000e+00 fit::parameter7=0.000000000000000e+00 fit::parameter8=0.000000000000000e+00 fit::parameter9=0.000000000000000e+00 fit::display=true ngraph-gtk-6.06.13/initfile/Ngraph.nsc0000644000175000017500000002314412241111710014373 00000000000000# Ngraph initialization script usage() { echo ${system::name} version ${system::version} echo ${system::copyright} echo 'Usage: ngraph [ options ] [ data | NGP | PRM ]' echo 'valid options:' echo ' -L ngp_file load ngp file' echo ' -x column -y column data column' echo ' -X -Y -U -R axis' echo ' -d type plot type' echo ' -m type mark type (0 - 89)' echo ' -o size mark size' echo ' -l style -w width line style and width' # echo ' -c R G B -C R G B plot color (1st and 2nd)' # obsolete echo ' -CR r -CG g -CB b 1st plot color' echo ' -cr r -cg g -cb b 2nd plot color' echo ' -s line head skip' echo ' -r step read step' echo ' -f line finale line' echo ' -vx num -vy num neighbor average' echo ' -mx math -my math math transformation' echo ' -ex type -ey type scale type' # echo ' -zx min max inc axis settings' # obsolete # echo ' -zy min max inc axis settings' # obsolete echo ' -minx minimum set minimum value of x axis' echo ' -maxx maximum set maximum value of x axis' echo ' -incx increment set increment value of x axis' echo ' -miny minimum set minimum value of y axis' echo ' -maxy maximum set maximum value of y axis' echo ' -incy increment set increment value of y axis' echo ' -g load settings from data file' echo ' -png ngp_file save png file' echo ' -pdf ngp_file save pdf file' echo ' -ps ngp_file save ps file' echo ' -eps ngp_file save eps file' echo ' -svg ngp_file save svg file' echo ' -gra ngp_file save gra file' echo ' -dialog show print dialog (with -p option)' echo ' -p ngp_file print graph' echo ' -n output ngp-file to stdout' echo ' -h, --help Show this help message' echo ' -v, --version Show version of Ngraph' echo ' -V, --VERSION Show detail information about Ngraph' del system:0 } check_file() { if [ -z "$1" ] then echo "${system::name}: missing file operand" del system:0 elif [ ! -f "$1" ] then echo "${system::name}: can't find the file $1." del system:0 fi } clear_viewer() { for i in `derive -instance draw` do del ${i}:0-! done if exist -q gra:viewer then del gra:viewer fi } copy_gra_settings() { if exist -q gra:viewer then cpy gra:viewer,$1 draw_obj left_margin top_margin zoom paper_width paper_height fi } save_image() { check_file "$1" clear_viewer . "$1" new gra2cairofile name=OUTPUT gra2cairofile::format=$2 gra2cairofile::file=$3 gra::device=gra2cairofile:OUTPUT gra::open gra::draw gra::close del gra del gra2cairofile } check_set() { if [ -n "$3" ] then VAL=$3 if [ -n "$4" ] then VAL=$4:$3 fi put $1: $2=$VAL unset VAL fi } load_graph() { check_file "$1" path=`dirname "$1"` if [ -d "$path" ] then cd "$path" fi name=`pwd`/`basename "$1"` if [ -n "$LOGIN_SHELL" ] then system:0:login_shell="$LOGIN_SHELL $name" else . "$name" fi unset path name } IGNOREEOF=0 if new menu then LOGIN_SHELL="menu:0:menu" system:0:login_shell="$LOGIN_SHELL" fi # if [ -f "${NGRAPHHOME}/Ngraph.ngp" ]; then . "${NGRAPHHOME}/Ngraph.ngp" elif [ -f "${NGRAPHCONF}/Ngraph.ngp" ]; then . "${NGRAPHCONF}/Ngraph.ngp" fi # LOADSETTINGS=0 SHOW_DIALOG=0 XAXIS=0 YAXIS=1 SAVE_NGP=0 NULL_DEVICE=/dev/null # while [ "$1" ] do case $1 in *.prm|*.PRM|*.ngp|*.NGP) load_graph "$1" break ;; *.gra|*.GRA) for drawable in `derive -instance draw` do if [ $drawable != "merge" ] then del $drawable:0-! fi done new merge file:"$1" ;; -L) shift load_graph "$1" break ;; -x) shift XCOLUMN="$1" ;; -y) shift YCOLUMN="$1" ;; -X) XAXIS=0 ;; -Y) YAXIS=1 ;; -U) XAXIS=2 ;; -R) YAXIS=3 ;; -d) shift PLOTTYPE="$1" ;; -m) shift MARKTYPE="$1" ;; -o) shift MARKSIZE="$1" ;; -l) shift LINESTYLE="$1" ;; -w) shift LINEWIDTH="$1" ;; -cr) shift COLORR="$1" ;; -cg) shift COLORG="$1" ;; -cb) shift COLORB="$1" ;; -CR) shift COLORR2="$1" ;; -CG) shift COLORG2="$1" ;; -CB) shift COLORB2="$1" ;; -c) echo "warning: option $1 is obsolete" echo ' use -cr -cg and -cb option' shift COLORR="$1" shift COLORG="$1" shift COLORB="$1" ;; -C) echo "warning: option $1 is obsolete" echo ' use -CR -CG and -CB option' shift COLORR2="$1" shift COLORG2="$1" shift COLORB2="$1" ;; -s) shift HEADSKIP="$1" ;; -r) shift READSTEP="$1" ;; -f) shift FINALLINE="$1" ;; -vx) shift AVERAGEX="$1" ;; -vy) shift AVERAGEY="$1" ;; -mx) shift MATHX="$1" ;; -my) shift MATHY="$1" ;; -ex) shift put axis:$XAXIS type="$1" ;; -ey) shift put axis:$YAXIS type="$1" ;; -minx) shift put axis:$XAXIS min="$1" ;; -maxx) shift put axis:$XAXIS max="$1" ;; -incx) shift put axis:$XAXIS inc="$1" ;; -miny) shift put axis:$YAXIS min="$1" ;; -maxy) shift put axis:$YAXIS max="$1" ;; -incy) shift put axis:$YAXIS inc="$1" ;; -zx) echo "warning: option $1 is obsolete" echo ' use -minx -maxx and -incx option' shift put axis:$XAXIS min="$1" shift put axis:$XAXIS max="$1" shift put axis:$XAXIS inc="$1" ;; -zy) echo "warning: option $1 is obsolete" echo ' use -miny -maxy and -incy option' shift put axis:$YAXIS min="$1" shift put axis:$YAXIS max="$1" shift put axis:$YAXIS inc="$1" ;; -g) LOADSETTINGS=1 ;; -n) SAVE_NGP=1 ;; -p) shift check_file "$1" clear_viewer . "$1" menu::print false $SHOW_DIALOG del system:0 ;; -dialog) SHOW_DIALOG=2 ;; -P) check_file $2 clear_viewer . $2 new gra2prn name=OUTPUT gra2prn::driver=gra2ps gra2prn::prn=" | lpr" gra::device=gra2prn:OUTPUT gra::open gra::draw gra::close del system:0 ;; -png) save_image "$2" png `basename $2 .ngp`.png del system:0 ;; -ps) save_image "$2" ps3 `basename $2 .ngp`.ps del system:0 ;; -eps) save_image "$2" eps3 `basename $2 .ngp`.eps del system:0 ;; -pdf) save_image "$2" pdf `basename $2 .ngp`.pdf del system:0 ;; -svg) save_image "$2" svg1.1 `basename $2 .ngp`.svg del system:0 ;; -gra) check_file $2 clear_viewer . $2 new gra2cairofile file=$NULL_DEVICE new gra name=DUMMY gra:DUMMY:device=gra2cairofile:0 gra:DUMMY:open new gra2file name=OUTPUT new gra name=OUTPUT copy_gra_settings OUTPUT gra2file::file=`basename $2 .ngp`.gra gra:OUTPUT:device=gra2file:OUTPUT gra:OUTPUT:open gra:OUTPUT:draw gra:OUTPUT:close del gra:OUTPUT del gra2file:OUTPUT gra:DUMMY:close del gra:DUMMY del gra2cairofile del system:0 ;; -h|-help|--help) usage ;; -v|-version|--version) echo ${system::name} version ${system::version} echo ${system::copyright} del system:0 ;; -V|-VERSION|--VERSION) echo ${system::name} version ${system::version} echo ${system::copyright} echo echo " compiler:" echo " ${system::compiler}" if exist -q menu then echo echo " library:" get menu: -field lib_version:4 fi del system:0 ;; -*) echo invalid option "$1" echo usage ;; *) check_file "$1" new file file:"$1" check_set file x $XCOLUMN check_set file y $YCOLUMN check_set file type $PLOTTYPE check_set file mark_type $MARKTYPE check_set file mark_size $MARKSIZE check_set file line_style $LINESTYLE check_set file line_width $LINEWIDTH check_set file R $COLORR check_set file G $COLORG check_set file B $COLORB check_set file R2 $COLORR2 check_set file G2 $COLORG2 check_set file B2 $COLORB2 check_set file head_skip $HEADSKIP check_set file read_step $READSTEP check_set file final_line $FINALLINE check_set file smooth_x $AVERAGEX check_set file smooth_y $AVERAGEY check_set file math_x $MATHX check_set file math_y $MATHY check_set file axis_x "$XAXIS" axis check_set file axis_y "$YAXIS" axis if [ $LOADSETTINGS = 1 ]; then file::load_settings fi esac shift done if [ $SAVE_NGP = 1 ]; then echo '#!ngraph' echo '#%creator:' ${system:0:name} echo '#%version:' ${system:0:version} for i in `derive -instance draw` do get ${i}:0-! -id -field save done get gra:0 -id -field save del system:0 fi pwd=`pwd` cd "$NGRAPHCONF" new shell name=init_d for nsc in init.d/[0-9][0-9]*.nsc do shell:init_d:shell "$nsc" done del shell:init_d cd "$pwd" unset usage check_file clear_viewer save_image check_set load_graph append_addin_list LOADSETTINGS SHOW_DIALOG XAXIS YAXIS ngraph-gtk-6.06.13/configure0000755000175000017500000227607312241364547012612 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for ngraph 6.06.13. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and ZXB01226@nifty.com $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='ngraph' PACKAGE_TARNAME='ngraph-gtk' PACKAGE_VERSION='6.06.13' PACKAGE_STRING='ngraph 6.06.13' PACKAGE_BUGREPORT='ZXB01226@nifty.com' PACKAGE_URL='' ac_unique_file="src/gtk/main.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" gt_needs= ac_header_list= ac_func_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS POW_LIB ALLOCA LIBOBJS XMKMF GSL_LIBS GSL_CFLAGS GSL_CONFIG GTK_LIBS GTK_CFLAGS GLIB_COMPILE_RESOURCES GLIB_MKENUMS GOBJECT_QUERY GLIB_GENMARSHAL GLIB_LIBS GLIB_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG HAVE_RUBY_DEV_FALSE HAVE_RUBY_DEV_TRUE RUBY VER_SCRIPT RDYNAMIC READLINE_LIBS M_LIBS POSUB LTLIBINTL LIBINTL INTLLIBS LTLIBICONV LIBICONV INTL_MACOSX_LIBS XGETTEXT_EXTRA_OPTIONS MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 MSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION USE_NLS RM AS CPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBTOOL AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_shared enable_static with_pic enable_fast_install enable_dependency_tracking with_gnu_ld with_sysroot enable_libtool_lock enable_nls enable_rpath with_libiconv_prefix with_libintl_prefix enable_glibtest enable_gtktest with_gsl_prefix with_gsl_exec_prefix enable_gsltest with_x ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR XMKMF' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures ngraph 6.06.13 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/ngraph-gtk] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of ngraph 6.06.13:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-libtool-lock avoid locking (might break parallel builds) --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths --disable-glibtest do not try to compile and run a test GLIB program --disable-gtktest do not try to compile and run a test GTK+ program --disable-gsltest Do not try to compile and run a test GSL program Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir --with-gsl-prefix=PFX Prefix where GSL is installed (optional) --with-gsl-exec-prefix=PFX Exec prefix where GSL is installed (optional) --with-x use the X Window System Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path XMKMF Path to xmkmf, Makefile generator for X Window System Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF ngraph configure 6.06.13 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## --------------------------------- ## ## Report this to ZXB01226@nifty.com ## ## --------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ngraph $as_me 6.06.13, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi gt_needs="$gt_needs " as_fn_append ac_header_list " sys/time.h" as_fn_append ac_header_list " unistd.h" as_fn_append ac_func_list " alarm" as_fn_append ac_header_list " utime.h" as_fn_append ac_header_list " stdlib.h" as_fn_append ac_header_list " sys/param.h" # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.14' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='ngraph-gtk' VERSION='6.06.13' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.2' macro_revision='1.3337' ltmain="$ac_aux_dir/ltmain.sh" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case "$ECHO" in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test "$GCC" != yes; then reload_cmds=false fi ;; darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 $as_echo "${with_sysroot}" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test x"$lt_cv_prog_compiler__b" = xyes; then archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([A-Za-z]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AS"; then ac_cv_prog_AS="$AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AS="${ac_tool_prefix}as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AS=$ac_cv_prog_AS if test -n "$AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 $as_echo "$AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AS"; then ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AS="as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 $as_echo "$ac_ct_AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AS" = x; then AS="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AS=$ac_ct_AS fi else AS="$ac_cv_prog_AS" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi ;; esac test -z "$AS" && AS=as test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$OBJDUMP" && OBJDUMP=objdump # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' GSL_REQUIRED_VERSION=0.2.5 GTK2_REQUIRED_VERSION=2.16.0 GTK3_REQUIRED_VERSION=3.0.0 GLIB_REQUIRED_VERSION=2.16.0 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RM"; then ac_cv_prog_RM="$RM" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RM="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_RM" && ac_cv_prog_RM="no" fi fi RM=$ac_cv_prog_RM if test -n "$RM"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 $as_echo "$RM" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ALL_LINGUAS="ja" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } GETTEXT_MACRO_VERSION=0.18 # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f messages.po case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$localedir" || localedir='${datadir}/locale' test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= ac_config_commands="$ac_config_commands po-directories" if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${acl_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$acl_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${acl_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 $as_echo_n "checking for shared library run path origin... " >&6; } if ${acl_cv_rpath+:} false; then : $as_echo_n "(cached) " >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 $as_echo "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; : else enable_rpath=yes fi acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 $as_echo_n "checking for 64-bit host... " >&6; } if ${gl_cv_solaris_64bit+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _LP64 sixtyfour bits #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : gl_cv_solaris_64bit=yes else gl_cv_solaris_64bit=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 $as_echo "$gl_cv_solaris_64bit" >&6; } if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBICONV= LTLIBICONV= INCICONV= LIBICONV_PREFIX= HAVE_LIBICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi LIBINTL= LTLIBINTL= POSUB= case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 $as_echo_n "checking for GNU gettext in libc... " >&6; } if eval \${$gt_func_gnugettext_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libc=yes" else eval "$gt_func_gnugettext_libc=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 $as_echo_n "checking for iconv... " >&6; } if ${am_cv_func_iconv+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 $as_echo "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 $as_echo_n "checking for working iconv... " >&6; } if ${am_cv_func_iconv_works+:} false; then : $as_echo_n "(cached) " >&6 else am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi if test "$cross_compiling" = yes; then : case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 1; iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 2; iconv_close (cd_ascii_to_88591); } } /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ { iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304"; static char buf[2] = { (char)0xDE, (char)0xAD }; const char *inptr = input; size_t inbytesleft = 1; char *outptr = buf; size_t outbytesleft = 1; size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) result |= 4; iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) result |= 8; iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) result |= 16; return result; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : am_cv_func_iconv_works=yes else am_cv_func_iconv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi LIBS="$am_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 $as_echo "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then $as_echo "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 $as_echo_n "checking how to link with libiconv... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 $as_echo "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test "${with_libintl_prefix+set}" = set; then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBINTL= LTLIBINTL= INCINTL= LIBINTL_PREFIX= HAVE_LIBINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 $as_echo_n "checking for GNU gettext in libintl... " >&6; } if eval \${$gt_func_gnugettext_libintl+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libintl=yes" else eval "$gt_func_gnugettext_libintl=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 $as_echo_n "checking whether to use NLS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 $as_echo_n "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 $as_echo "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 $as_echo_n "checking how to link with libintl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 $as_echo "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h fi POSUB=po fi INTLLIBS="$LIBINTL" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 $as_echo_n "checking for library containing sqrt... " >&6; } if ${ac_cv_search_sqrt+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sqrt (); int main () { return sqrt (); ; return 0; } _ACEOF for ac_lib in '' m; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_sqrt=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_sqrt+:} false; then : break fi done if ${ac_cv_search_sqrt+:} false; then : else ac_cv_search_sqrt=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 $as_echo "$ac_cv_search_sqrt" >&6; } ac_res=$ac_cv_search_sqrt if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" M_LIBS=-lm fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char rl_completion_matches (); int main () { return rl_completion_matches (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_readline_rl_completion_matches=yes else ac_cv_lib_readline_rl_completion_matches=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h READLINE_LIBS=-lreadline fi _save_cflags="$CFLAGS" CFLAGS="$CFLAGS -Werror -rdynamic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : RDYNAMIC="-rdynamic" else RDYNAMIC="" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$_save_cflags" _save_cflags="$CFLAGS" CFLAGS="$CFLAGS -Werror -rdynamic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : VER_SCRIPT="-Wl,--version-script,ngraph_export.map" else VER_SCRIPT="" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$_save_cflags" # Extract the first word of "ruby", so it can be a program name with args. set dummy ruby; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RUBY+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RUBY"; then ac_cv_prog_RUBY="$RUBY" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RUBY="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_RUBY" && ac_cv_prog_RUBY="no" fi fi RUBY=$ac_cv_prog_RUBY if test -n "$RUBY"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 $as_echo "$RUBY" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test $RUBY = yes; then ruby_incrudedir=`ruby -e 'puts(RbConfig::CONFIG["rubyhdrdir"])'` as_ac_File=`$as_echo "ac_cv_file_$ruby_incrudedir/ruby.h" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ruby_incrudedir/ruby.h" >&5 $as_echo_n "checking for $ruby_incrudedir/ruby.h... " >&6; } if eval \${$as_ac_File+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "$ruby_incrudedir/ruby.h"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi fi eval ac_res=\$$as_ac_File { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_File"\" = x"yes"; then : have_ruby_dev=yes fi fi if test x$have_ruby_dev = xyes; then HAVE_RUBY_DEV_TRUE= HAVE_RUBY_DEV_FALSE='#' else HAVE_RUBY_DEV_TRUE='#' HAVE_RUBY_DEV_FALSE= fi # Check whether --enable-glibtest was given. if test "${enable_glibtest+set}" = set; then : enableval=$enable_glibtest; else enable_glibtest=yes fi pkg_config_args=glib-2.0 for module in . gobject gthread gmodule do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gmodule-no-export) pkg_config_args="$pkg_config_args gmodule-no-export-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; gio*) pkg_config_args="$pkg_config_args $module-2.0" ;; esac done if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.16 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi no_glib="" if test "x$PKG_CONFIG" = x ; then no_glib=yes PKG_CONFIG=no fi min_glib_version=$GLIB_REQUIRED_VERSION { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; } if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" rm -f conf.glibtest if test "$cross_compiling" = yes; then : echo $ac_n "cross compiling; assumed OK... $ac_c" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { unsigned int major, minor, micro; char *tmp_version; fclose (fopen ("conf.glibtest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else no_glib=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed." fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" GLIB_COMPILE_RESOURCES="" as_fn_error $? "Test for GLib failed." "$LINENO" 5 fi rm -f conf.glibtest # Check whether --enable-gtktest was given. if test "${enable_gtktest+set}" = set; then : enableval=$enable_gtktest; else enable_gtktest=yes fi pkg_config_args=gtk+-3.0 for module in . do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x$PKG_CONFIG != xno ; then if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=$GTK3_REQUIRED_VERSION { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" rm -f conf.gtktest if test "$cross_compiling" = yes; then : echo $ac_n "cross compiling; assumed OK... $ac_c" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; fclose (fopen ("conf.gtktest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-3.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else no_gtk=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" # Check whether --enable-gtktest was given. if test "${enable_gtktest+set}" = set; then : enableval=$enable_gtktest; else enable_gtktest=yes fi pkg_config_args=gtk+-2.0 for module in . do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=$GTK2_REQUIRED_VERSION { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" rm -f conf.gtktest if test "$cross_compiling" = yes; then : echo $ac_n "cross compiling; assumed OK... $ac_c" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; fclose (fopen ("conf.gtktest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else no_gtk=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" as_fn_error $? "Test for GTK failed." "$LINENO" 5 fi rm -f conf.gtktest fi rm -f conf.gtktest # Check whether --with-gsl-prefix was given. if test "${with_gsl_prefix+set}" = set; then : withval=$with_gsl_prefix; gsl_prefix="$withval" else gsl_prefix="" fi # Check whether --with-gsl-exec-prefix was given. if test "${with_gsl_exec_prefix+set}" = set; then : withval=$with_gsl_exec_prefix; gsl_exec_prefix="$withval" else gsl_exec_prefix="" fi # Check whether --enable-gsltest was given. if test "${enable_gsltest+set}" = set; then : enableval=$enable_gsltest; else enable_gsltest=yes fi if test "x${GSL_CONFIG+set}" != xset ; then if test "x$gsl_prefix" != x ; then GSL_CONFIG="$gsl_prefix/bin/gsl-config" fi if test "x$gsl_exec_prefix" != x ; then GSL_CONFIG="$gsl_exec_prefix/bin/gsl-config" fi fi # Extract the first word of "gsl-config", so it can be a program name with args. set dummy gsl-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GSL_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $GSL_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_GSL_CONFIG="$GSL_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GSL_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GSL_CONFIG" && ac_cv_path_GSL_CONFIG="no" ;; esac fi GSL_CONFIG=$ac_cv_path_GSL_CONFIG if test -n "$GSL_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSL_CONFIG" >&5 $as_echo "$GSL_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi min_gsl_version=$GSL_REQUIRED_VERSION { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL - version >= $min_gsl_version" >&5 $as_echo_n "checking for GSL - version >= $min_gsl_version... " >&6; } no_gsl="" if test "$GSL_CONFIG" = "no" ; then no_gsl=yes else GSL_CFLAGS=`$GSL_CONFIG --cflags` GSL_LIBS=`$GSL_CONFIG --libs` gsl_major_version=`$GSL_CONFIG --version | \ sed 's/^\([0-9]*\).*/\1/'` if test "x${gsl_major_version}" = "x" ; then gsl_major_version=0 fi gsl_minor_version=`$GSL_CONFIG --version | \ sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\2/'` if test "x${gsl_minor_version}" = "x" ; then gsl_minor_version=0 fi gsl_micro_version=`$GSL_CONFIG --version | \ sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\3/'` if test "x${gsl_micro_version}" = "x" ; then gsl_micro_version=0 fi if test "x$enable_gsltest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GSL_CFLAGS" LIBS="$LIBS $GSL_LIBS" rm -f conf.gsltest if test "$cross_compiling" = yes; then : echo $ac_n "cross compiling; assumed OK... $ac_c" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include char* my_strdup (const char *str); char* my_strdup (const char *str) { char *new_str; if (str) { new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main (void) { int major = 0, minor = 0, micro = 0; int n; char *tmp_version; system ("touch conf.gsltest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_gsl_version"); n = sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) ; if (n != 2 && n != 3) { printf("%s, bad version string\n", "$min_gsl_version"); exit(1); } if (($gsl_major_version > major) || (($gsl_major_version == major) && ($gsl_minor_version > minor)) || (($gsl_major_version == major) && ($gsl_minor_version == minor) && ($gsl_micro_version >= micro))) { exit(0); } else { exit(1); } } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else no_gsl=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gsl" = x ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_LIBGSL 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$GSL_CONFIG" = "no" ; then echo "*** The gsl-config script installed by GSL could not be found" echo "*** If GSL was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GSL_CONFIG environment variable to the" echo "*** full path to gsl-config." else if test -f conf.gsltest ; then : else echo "*** Could not run GSL test program, checking why..." CFLAGS="$CFLAGS $GSL_CFLAGS" LIBS="$LIBS $GSL_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GSL or finding the wrong" echo "*** version of GSL. If it is not finding GSL, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GSL was incorrectly installed" echo "*** or that you have moved GSL since it was installed. In the latter case, you" echo "*** may want to edit the gsl-config script: $GSL_CONFIG" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi # GSL_CFLAGS="" # GSL_LIBS="" : fi rm -f conf.gsltest # Checks for header files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } if eval \${$as_ac_Header+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$as_ac_Header=yes" else eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$as_ac_Header { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } if ${ac_cv_header_sys_wait_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_sys_wait_h=yes else ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 $as_echo "$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi for ac_header in fcntl.h limits.h stdlib.h string.h strings.h sys/ioctl.h sys/time.h unistd.h utime.h readline/readline.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } if ${ac_cv_struct_tm+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_struct_tm=time.h else ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 $as_echo "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h fi # Checks for library functions. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 $as_echo_n "checking whether closedir returns void... " >&6; } if ${ac_cv_func_closedir_void+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_closedir_void=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #include <$ac_header_dirent> #ifndef __cplusplus int closedir (); #endif int main () { return closedir (opendir (".")) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_closedir_void=no else ac_cv_func_closedir_void=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 $as_echo "$ac_cv_func_closedir_void" >&6; } if test $ac_cv_func_closedir_void = yes; then $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 $as_echo_n "checking for error_at_line... " >&6; } if ${ac_cv_lib_error_at_line+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_error_at_line=yes else ac_cv_lib_error_at_line=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 $as_echo "$ac_cv_lib_error_at_line" >&6; } if test $ac_cv_lib_error_at_line = no; then case " $LIBOBJS " in *" error.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; esac fi for ac_header in vfork.h do : ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" if test "x$ac_cv_header_vfork_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VFORK_H 1 _ACEOF fi done for ac_func in fork vfork do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_fork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 $as_echo_n "checking for working fork... " >&6; } if ${ac_cv_func_fork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_fork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* By Ruediger Kuhlmann. */ return fork () < 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_fork_works=yes else ac_cv_func_fork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 $as_echo "$ac_cv_func_fork_works" >&6; } else ac_cv_func_fork_works=$ac_cv_func_fork fi if test "x$ac_cv_func_fork_works" = xcross; then case $host in *-*-amigaos* | *-*-msdosdjgpp*) # Override, as these systems have only a dummy fork() stub ac_cv_func_fork_works=no ;; *) ac_cv_func_fork_works=yes ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} fi ac_cv_func_vfork_works=$ac_cv_func_vfork if test "x$ac_cv_func_vfork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 $as_echo_n "checking for working vfork... " >&6; } if ${ac_cv_func_vfork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_vfork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Thanks to Paul Eggert for this test. */ $ac_includes_default #include #ifdef HAVE_VFORK_H # include #endif /* On some sparc systems, changes by the child to local and incoming argument registers are propagated back to the parent. The compiler is told about this with #include , but some compilers (e.g. gcc -O) don't grok . Test for this by using a static variable whose address is put into a register that is clobbered by the vfork. */ static void #ifdef __cplusplus sparc_address_test (int arg) # else sparc_address_test (arg) int arg; #endif { static pid_t child; if (!child) { child = vfork (); if (child < 0) { perror ("vfork"); _exit(2); } if (!child) { arg = getpid(); write(-1, "", 0); _exit (arg); } } } int main () { pid_t parent = getpid (); pid_t child; sparc_address_test (0); child = vfork (); if (child == 0) { /* Here is another test for sparc vfork register problems. This test uses lots of local variables, at least as many local variables as main has allocated so far including compiler temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should reuse the register of parent for one of the local variables, since it will think that parent can't possibly be used any more in this routine. Assigning to the local variable will thus munge parent in the parent process. */ pid_t p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); /* Convince the compiler that p..p7 are live; otherwise, it might use the same hardware register for all 8 local variables. */ if (p != p1 || p != p2 || p != p3 || p != p4 || p != p5 || p != p6 || p != p7) _exit(1); /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent from child file descriptors. If the child closes a descriptor before it execs or exits, this munges the parent's descriptor as well. Test for this by closing stdout in the child. */ _exit(close(fileno(stdout)) != 0); } else { int status; struct stat st; while (wait(&status) != child) ; return ( /* Was there some problem with vforking? */ child < 0 /* Did the child fail? (This shouldn't happen.) */ || status /* Did the vfork/compiler bug occur? */ || parent != getpid() /* Did the file descriptor bug occur? */ || fstat(fileno(stdout), &st) != 0 ); } } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_vfork_works=yes else ac_cv_func_vfork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 $as_echo "$ac_cv_func_vfork_works" >&6; } fi; if test "x$ac_cv_func_fork_works" = xcross; then ac_cv_func_vfork_works=$ac_cv_func_vfork { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} fi if test "x$ac_cv_func_vfork_works" = xyes; then $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h else $as_echo "#define vfork fork" >>confdefs.h fi if test "x$ac_cv_func_fork_works" = xyes; then $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h fi for ac_header in stdlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDLIB_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } if ${ac_cv_func_malloc_0_nonnull+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_malloc_0_nonnull=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { return ! malloc (0); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes else ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } if test $ac_cv_func_malloc_0_nonnull = yes; then : $as_echo "#define HAVE_MALLOC 1" >>confdefs.h else $as_echo "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac $as_echo "#define malloc rpl_malloc" >>confdefs.h fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } if ${ac_cv_working_alloca_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes else ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 $as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } if ${ac_cv_func_alloca_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (size_t); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_alloca_works=yes else ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 $as_echo "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext $as_echo "#define C_ALLOCA 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } if ${ac_cv_os_cray+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then : ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 $as_echo "$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } if ${ac_cv_c_stack_direction+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_c_stack_direction=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int find_stack_direction (int *addr, int depth) { int dir, dummy = 0; if (! addr) addr = &dummy; *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; dir = depth ? find_stack_direction (addr, depth - 1) : 0; return dir + dummy; } int main (int argc, char **argv) { return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_stack_direction=1 else ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 $as_echo "$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi for ac_header in $ac_header_list do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in $ac_func_list do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 $as_echo_n "checking for working mktime... " >&6; } if ${ac_cv_func_working_mktime+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_working_mktime=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Test program from Paul Eggert and Tony Leneis. */ #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #include #include #ifdef HAVE_UNISTD_H # include #endif #ifndef HAVE_ALARM # define alarm(X) /* empty */ #endif /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv static time_t time_t_max; static time_t time_t_min; /* Values we'll use to set the TZ environment variable. */ static const char *tz_strings[] = { (const char *) 0, "TZ=GMT0", "TZ=JST-9", "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) /* Return 0 if mktime fails to convert a date in the spring-forward gap. Based on a problem report from Andreas Jaeger. */ static int spring_forward_gap () { /* glibc (up to about 1998-10-07) failed this test. */ struct tm tm; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); tm.tm_year = 98; tm.tm_mon = 3; tm.tm_mday = 5; tm.tm_hour = 2; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; return mktime (&tm) != (time_t) -1; } static int mktime_test1 (time_t now) { struct tm *lt; return ! (lt = localtime (&now)) || mktime (lt) == now; } static int mktime_test (time_t now) { return (mktime_test1 (now) && mktime_test1 ((time_t) (time_t_max - now)) && mktime_test1 ((time_t) (time_t_min + now))); } static int irix_6_4_bug () { /* Based on code from Ariel Faigon. */ struct tm tm; tm.tm_year = 96; tm.tm_mon = 3; tm.tm_mday = 0; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; mktime (&tm); return tm.tm_mon == 2 && tm.tm_mday == 31; } static int bigtime_test (int j) { struct tm tm; time_t now; tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; now = mktime (&tm); if (now != (time_t) -1) { struct tm *lt = localtime (&now); if (! (lt && lt->tm_year == tm.tm_year && lt->tm_mon == tm.tm_mon && lt->tm_mday == tm.tm_mday && lt->tm_hour == tm.tm_hour && lt->tm_min == tm.tm_min && lt->tm_sec == tm.tm_sec && lt->tm_yday == tm.tm_yday && lt->tm_wday == tm.tm_wday && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) return 0; } return 1; } static int year_2050_test () { /* The correct answer for 2050-02-01 00:00:00 in Pacific time, ignoring leap seconds. */ unsigned long int answer = 2527315200UL; struct tm tm; time_t t; tm.tm_year = 2050 - 1900; tm.tm_mon = 2 - 1; tm.tm_mday = 1; tm.tm_hour = tm.tm_min = tm.tm_sec = 0; tm.tm_isdst = -1; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); t = mktime (&tm); /* Check that the result is either a failure, or close enough to the correct answer that we can assume the discrepancy is due to leap seconds. */ return (t == (time_t) -1 || (0 < t && answer - 120 <= t && t <= answer + 120)); } int main () { time_t t, delta; int i, j; /* This test makes some buggy mktime implementations loop. Give up after 60 seconds; a mktime slower than that isn't worth using anyway. */ alarm (60); for (;;) { t = (time_t_max << 1) + 1; if (t <= time_t_max) break; time_t_max = t; } time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; delta = time_t_max / 997; /* a suitable prime number */ for (i = 0; i < N_STRINGS; i++) { if (tz_strings[i]) putenv ((char*) tz_strings[i]); for (t = 0; t <= time_t_max - delta; t += delta) if (! mktime_test (t)) return 1; if (! (mktime_test ((time_t) 1) && mktime_test ((time_t) (60 * 60)) && mktime_test ((time_t) (60 * 60 * 24)))) return 1; for (j = 1; ; j <<= 1) if (! bigtime_test (j)) return 1; else if (INT_MAX / 2 < j) break; if (! bigtime_test (INT_MAX)) return 1; } return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_working_mktime=yes else ac_cv_func_working_mktime=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 $as_echo "$ac_cv_func_working_mktime" >&6; } if test $ac_cv_func_working_mktime = no; then case " $LIBOBJS " in *" mktime.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;; esac fi for ac_header in stdlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDLIB_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 $as_echo_n "checking for GNU libc compatible realloc... " >&6; } if ${ac_cv_func_realloc_0_nonnull+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_realloc_0_nonnull=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *realloc (); #endif int main () { return ! realloc (0, 0); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_realloc_0_nonnull=yes else ac_cv_func_realloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } if test $ac_cv_func_realloc_0_nonnull = yes; then : $as_echo "#define HAVE_REALLOC 1" >>confdefs.h else $as_echo "#define HAVE_REALLOC 0" >>confdefs.h case " $LIBOBJS " in *" realloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; esac $as_echo "#define realloc rpl_realloc" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 $as_echo_n "checking return type of signal handlers... " >&6; } if ${ac_cv_type_signal+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return *(signal (0, 0)) (0) == 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_type_signal=int else ac_cv_type_signal=void fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 $as_echo "$ac_cv_type_signal" >&6; } cat >>confdefs.h <<_ACEOF #define RETSIGTYPE $ac_cv_type_signal _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : $as_echo_n "(cached) " >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then if test "$cross_compiling" = yes; then : ac_cv_func_lstat_dereferences_slashed_symlink=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; /* Linux will dereference the symlink and fail, as required by POSIX. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_lstat_dereferences_slashed_symlink=yes else ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f conftest.sym conftest.file fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && cat >>confdefs.h <<_ACEOF #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 $as_echo_n "checking whether stat accepts an empty string... " >&6; } if ${ac_cv_func_stat_empty_string_bug+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_stat_empty_string_bug=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; return stat ("", &sbuf) == 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_stat_empty_string_bug=no else ac_cv_func_stat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_STAT_EMPTY_STRING_BUG 1 _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 $as_echo_n "checking for working strtod... " >&6; } if ${ac_cv_func_strtod+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_strtod=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #ifndef strtod double strtod (); #endif int main() { { /* Some versions of Linux strtod mis-parse strings with leading '+'. */ char *string = " +69"; char *term; double value; value = strtod (string, &term); if (value != 69 || term != (string + 4)) return 1; } { /* Under Solaris 2.4, strtod returns the wrong value for the terminating character under some conditions. */ char *string = "NaN"; char *term; strtod (string, &term); if (term != string && *(term - 1) == 0) return 1; } return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_strtod=yes else ac_cv_func_strtod=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 $as_echo "$ac_cv_func_strtod" >&6; } if test $ac_cv_func_strtod = no; then case " $LIBOBJS " in *" strtod.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; esac ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" if test "x$ac_cv_func_pow" = xyes; then : fi if test $ac_cv_func_pow = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 $as_echo_n "checking for pow in -lm... " >&6; } if ${ac_cv_lib_m_pow+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pow (); int main () { return pow (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_pow=yes else ac_cv_lib_m_pow=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 $as_echo "$ac_cv_lib_m_pow" >&6; } if test "x$ac_cv_lib_m_pow" = xyes; then : POW_LIB=-lm else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 $as_echo_n "checking whether utime accepts a null argument... " >&6; } if ${ac_cv_func_utime_null+:} false; then : $as_echo_n "(cached) " >&6 else rm -f conftest.data; >conftest.data # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. if test "$cross_compiling" = yes; then : ac_cv_func_utime_null='guessing yes' else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #ifdef HAVE_UTIME_H # include #endif int main () { struct stat s, t; return ! (stat ("conftest.data", &s) == 0 && utime ("conftest.data", 0) == 0 && stat ("conftest.data", &t) == 0 && t.st_mtime >= s.st_mtime && t.st_mtime - s.st_mtime < 120); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_utime_null=yes else ac_cv_func_utime_null=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 $as_echo "$ac_cv_func_utime_null" >&6; } if test "x$ac_cv_func_utime_null" != xno; then ac_cv_func_utime_null=yes $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h fi rm -f conftest.data for ac_func in vprintf do : ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" if test "x$ac_cv_func_vprintf" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VPRINTF 1 _ACEOF ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" if test "x$ac_cv_func__doprnt" = xyes; then : $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h fi fi done for ac_func in getpagesize do : ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" if test "x$ac_cv_func_getpagesize" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETPAGESIZE 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 $as_echo_n "checking for working mmap... " >&6; } if ${ac_cv_func_mmap_fixed_mapped+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_mmap_fixed_mapped=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default /* malloc might have been renamed as rpl_malloc. */ #undef malloc /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed mmap private fixed at somewhere currently unmapped mmap private fixed at somewhere already mapped mmap shared not fixed mmap shared fixed at somewhere currently unmapped mmap shared fixed at somewhere already mapped For private mappings, we should verify that changes cannot be read() back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the VM page cache was not coherent with the file system buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propagated back to all the places they're supposed to be. Grep wants private fixed already mapped. The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ #include #include #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H char *malloc (); #endif /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ int main () { char *data, *data2, *data3; const char *cdata2; int i, pagesize; int fd, fd2; pagesize = getpagesize (); /* First, make a file with some known garbage in it. */ data = (char *) malloc (pagesize); if (!data) return 1; for (i = 0; i < pagesize; ++i) *(data + i) = rand (); umask (0); fd = creat ("conftest.mmap", 0600); if (fd < 0) return 2; if (write (fd, data, pagesize) != pagesize) return 3; close (fd); /* Next, check that the tail of a page is zero-filled. File must have non-zero length, otherwise we risk SIGBUS for entire page. */ fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); if (fd2 < 0) return 4; cdata2 = ""; if (write (fd2, cdata2, 1) != 1) return 5; data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); if (data2 == MAP_FAILED) return 6; for (i = 0; i < pagesize; ++i) if (*(data2 + i)) return 7; close (fd2); if (munmap (data2, pagesize)) return 8; /* Next, try to mmap the file at a fixed address which already has something else allocated at it. If we can, also make sure that we see the same garbage. */ fd = open ("conftest.mmap", O_RDWR); if (fd < 0) return 9; if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) return 10; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) return 11; /* Finally, make sure that changes to the mapped area do not percolate back to the file as seen by read(). (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = (char *) malloc (pagesize); if (!data3) return 12; if (read (fd, data3, pagesize) != pagesize) return 13; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) return 14; close (fd); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_mmap_fixed_mapped=yes else ac_cv_func_mmap_fixed_mapped=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } if test $ac_cv_func_mmap_fixed_mapped = yes; then $as_echo "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap conftest.txt for ac_func in sigaction sigsuspend alarm dup2 getcwd mkdir pow powl log10l fabsl floorl sqrt strchr strdup strerror strncasecmp strstr strtol utime isfinite finite nanosleep sleep do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ac_config_files="$ac_config_files Makefile src/Makefile src/gtk/Makefile src/math/Makefile driver/Makefile addin/Makefile po/Makefile.in m4/Makefile demo/Makefile initfile/Makefile doc/Makefile doc/html/Makefile doc/html/img/Makefile doc/html/ja/Makefile doc/html/ja/tutorial/Makefile doc/html/ja/dialogs/Makefile zsh/Makefile test/Makefile plugins/Makefile mingw/Makefile pixmap/Makefile icons/Makefile icons/scalable/Makefile icons/scalable/apps/Makefile icons/scalable/mimetypes/Makefile misc/Makefile" ac_config_headers="$ac_config_headers config.h" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_RUBY_DEV_TRUE}" && test -z "${HAVE_RUBY_DEV_FALSE}"; then as_fn_error $? "conditional \"HAVE_RUBY_DEV\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by ngraph $as_me 6.06.13, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ ngraph config.status 6.06.13 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ AS; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk/Makefile" ;; "src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;; "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;; "addin/Makefile") CONFIG_FILES="$CONFIG_FILES addin/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;; "initfile/Makefile") CONFIG_FILES="$CONFIG_FILES initfile/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; "doc/html/img/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/img/Makefile" ;; "doc/html/ja/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/ja/Makefile" ;; "doc/html/ja/tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/ja/tutorial/Makefile" ;; "doc/html/ja/dialogs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/ja/dialogs/Makefile" ;; "zsh/Makefile") CONFIG_FILES="$CONFIG_FILES zsh/Makefile" ;; "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; "mingw/Makefile") CONFIG_FILES="$CONFIG_FILES mingw/Makefile" ;; "pixmap/Makefile") CONFIG_FILES="$CONFIG_FILES pixmap/Makefile" ;; "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;; "icons/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/Makefile" ;; "icons/scalable/apps/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/apps/Makefile" ;; "icons/scalable/mimetypes/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/mimetypes/Makefile" ;; "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and in which our libraries should be installed. lt_sysroot=$lt_sysroot # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Assembler program. AS=$lt_AS # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) if test x"$xsi_shell" = xyes; then sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ func_dirname ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_basename ()$/,/^} # func_basename /c\ func_basename ()\ {\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ func_dirname_and_basename ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ func_stripname ()\ {\ \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ \ # positional parameters, so assign one to ordinary parameter first.\ \ func_stripname_result=${3}\ \ func_stripname_result=${func_stripname_result#"${1}"}\ \ func_stripname_result=${func_stripname_result%"${2}"}\ } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ func_split_long_opt ()\ {\ \ func_split_long_opt_name=${1%%=*}\ \ func_split_long_opt_arg=${1#*=}\ } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ func_split_short_opt ()\ {\ \ func_split_short_opt_arg=${1#??}\ \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ func_lo2o ()\ {\ \ case ${1} in\ \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ \ *) func_lo2o_result=${1} ;;\ \ esac\ } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_xform ()$/,/^} # func_xform /c\ func_xform ()\ {\ func_xform_result=${1%.*}.lo\ } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_arith ()$/,/^} # func_arith /c\ func_arith ()\ {\ func_arith_result=$(( $* ))\ } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_len ()$/,/^} # func_len /c\ func_len ()\ {\ func_len_result=${#1}\ } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$lt_shell_append" = xyes; then sed -e '/^func_append ()$/,/^} # func_append /c\ func_append ()\ {\ eval "${1}+=\\${2}"\ } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ func_append_quoted ()\ {\ \ func_quote_for_eval "${2}"\ \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; "po-directories":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" gt_tab=`printf '\t'` cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi ngraph-gtk-6.06.13/ChangeLog0000644000175000017500000141506612241111701012427 000000000000002013-11-06 Ito Hiroyuki * src/oplugin.c (ngraph_get_obj_field_type): type of the returned value is "enum ngraph_object_field_type". (ngraph_putobj): free allocated string when the returned value of the function "putobj()" is negative. * src/ngraph.h (ngraph_object_field_type): added. 2013-11-05 Ito Hiroyuki * src/gtk/ogra2x11.c (gtkclose): always returns "TRUE". 2013-11-02 Ito Hiroyuki * src/oplugin.c (get_plugin_name, get_plugin_from_name): added. (load_plugin, plugin_open): use "get_plugin_name()". (get_plugin, plugin_open): use "get_plugin_from_name()". 2013-11-01 Ito Hiroyuki * src/math/math_basic_function.c (math_func_dif): returned value is 0 if the type of saved value is not "MATH_VALUE_NORMAL". 2013-10-30 Hiroyuki Ito * plugins/ruby.c (ngraph_plugin_open_ruby): set default encodings and require some libraries. * plugins/create_objs.rb (NgraphObj#create_str_func_with_args) (NgraphObj#create_str_func_with_argv) (NgraphObj#add_str_array_func): use "tainted_utf8_str_new()". * plugins/ruby.c (tainted_utf8_str_new): added. (inst_get_str, inst_get_sarray, obj_func_obj, get_str_func_argv): use "tainted_utf8_str_new()". 2013-10-29 Hiroyuki Ito * configure.ac: use "AC_SEARCH_LIBS" instead of "AC_CHECK_LIB" to find math functions in "AC_CHECK_FUNCS". 2013-10-28 Hiroyuki Ito * configure.ac: check linker option. * acinclude.m4: added. 2013-10-27 Hiroyuki Ito * plugins/create_objs.rb (NgraphObj#create_str_func_with_argv): use "create_val_func_with_argv()". 2013-10-26 Ito Hiroyuki * src/oplugin.c (Plugin): remove field "_local" and add field "lock". * src/Makefile.am (ngraph_LDFLAGS): added. * src/ngraph_export.map: added. 2013-10-25 Ito Hiroyuki * src/gtk/ogra2emf.c (check_fonts): use "EnumFontFamiliesEx()" instead of "EnumFontFamiliesExW()" befcase the program is clashed when call "EnumFontFamiliesExW()" on Windows8 64bit. * mingw/windows.sh: create ruby plugin. * mingw/libruby.def: added. 2013-10-23 Ito Hiroyuki * src/Makefile.am (noinst_LTLIBRARIES): use convenience library. * plugins/ruby.c (ngraph_plugin_exec_ruby): check "argc". 2013-10-21 Ito Hiroyuki * mingw/windows_make.sed: change "$(pkglibdir)". * configure.ac: add "AC_LIBTOOL_WIN32_DLL". 2013-10-19 Hiroyuki Ito * plugins/ruby.c (ngraph_plugin_exec_ruby): check error string. 2013-10-19 Ito Hiroyuki * plugins/ruby.c (get_array_arg): added. (allocate_iarray, allocate_darray, allocate_sarray): use "get_array_arg()". 2013-10-16 Ito Hiroyuki * src/oplugin.c (load_plugin): check interrupt function. (plugin_done): call interrupt function when the plugin is locked. * plugins/ruby.c (obj_get_from_str, obj_del_from_str): use "rb_sprintf()". (ngraph_plugin_exec_ruby): show detail information aobut the error. (ngraph_plugin_interrupt_ruby): added. * src/gtk/ogra2x11.c (gra2gtk): argument of the "fullscreen" field is boolean. 2013-10-15 Ito Hiroyuki * src/ngraph_plugin.h: renamed to "ngraph.h". * src/ngraph.h: definitions are moved to "common.h". * plugins/ruby.c (obj_del_from_str): added. 2013-10-11 Ito Hiroyuki * src/oplugin.c (ngraph_plugin_copy): added. * plugins/ruby.c (ngraph_inst_method_copy, obj_copy): added. (ngraph_plugin_open_ruby): call "ruby_sysinit()" and "rb_enc_find_index()". 2013-10-10 Ito Hiroyuki * src/oplugin.c (allocate_iarray, allocate_darray) (allocate_sarray): check if the "arg" is NULL or not. (ngraph_plugin_get_instances_by_str, ngraph_plugin_sleep) (ngraph_plugin_get_obj_root): added. (ngraph_plugin_get_inst): removed. * test/sarray_test.nsc: add test for "put" and "ins" fields. * addin/timer.nsc: fix name of text object and field name of color of rectanble object. * addin/text-in.nsc: fix horizontal alignment. * addin/fig2gra.rb (Fig2Gra): added. * src/shellux.c (cmsleep): use "nsleep()". * src/shell.c (nsleep, cmsleeptimeout, SleepThread): added. * src/object.c (arrayadd, arrayins, arrayput): type of the second parameter is "const void *". (arrayadd2, arrayins2, arrayput2): type of the second parameter is "const char *". 2013-10-06 Ito Hiroyuki * src/oplugin.c (Plugin): type of the fields "open" and "exec" are NIFUNC. 2013-10-05 Ito Hiroyuki * src/osystem.c (nsystem): add field "plugin_dir". * src/oplugin.c (plugin_file, plugin_name): added. (plugin_open): check multiple loading. * src/gtk/ox11menu.c (menuinit): check "OpenApplication()" first. * src/gtk/main.c (set_dir_defs, main): initialize "PLUGINDIR" settings. * src/gtk/dir_defs.h.in: add "PLUGINDIR" definition. * plugins/ruby.c (ngraph_plugin_close_ruby): 0 (ngraph_plugin_open_ruby): added. (ngraph_plugin_exec_ruby): change name. * plugins/create_objs.rb (NgraphObj): add instants variable "singleton". * pathconv.sh (LIBDIR): add "LIBDIR" definition. 2013-10-04 Ito Hiroyuki * plugins/Makefile.am (ngraphplugindir): change install directory. * initfile/Ngraph.nsc: check "${NGRAPHCONF}/init.d". * initfile/10append_addins.nsc: mobed from "Ngraph.nsc". 2013-09-25 Hiroyuki Ito * src/gtk/ox11dlg.c: include "mathfn.h". 2013-09-24 Hiroyuki Ito * src/gtk/ox11menu.c (mx_show_lib_version): the first argument of the field means indent width. 2013-09-20 Hiroyuki Ito * plugins/Makefile.am: check develop environment of Ruby. * initfile/save_ui_file.nsc: use "get" commend to get informations. * initfile/Ngraph.nsc (NULL_DEVICE): use "get" commend to show version of the libraries. * configure.ac: call LT_INIT, check develop environment of Ruby. * src/plugins.c (plugin_shell_exec): check security. (ngraph_plugin_shell_err_puts, ngraph_plugin_shell_puts) (ngraph_plugin_shell_get_inst): added. * src/otext.c (test): type of argument of the field "save_config" is "void". * src/osystem.c (nsystem): type of argument of the field "temp_file" is "void". * src/ostring.c (ostring): type of argument of some fields are "void". * src/osarray.c (osarray): type of argument of some fields are "void". * src/oregexp.c (oregexp): type of argument of some fields are "void". * src/oprm.c (prm): type of argument of the field "load" is "void". * src/omerge.c (merge): type of argument of some fields are "void". * src/omath.c (math): type of argument of the field "clear" is "void". * src/oiarray.c (oiarray): type of argument of some fields are "void". * src/ofile.c (file2d): type of argument of some fields are "void". * src/odarray.c (odarray): type of argument of some fields are "void". * src/oaxis.c (draw_numbering, numbering): type of the last parameter is "struct narray *". (draw_numbering): use "g_strdup_printf()" when the parameter "array" is not NULL. (axis_get_numbering): type of field is "NSAFUNC". (axis): type of the argument of fields "scale_push", "scale_pop", "clear", "adjust", "tight", "group_manager" and "get_numbering" are "void". * src/oagrid.c (agrid): type of "tight" field is "void (void)". * src/gtk/x11menu.c (get_ui_definition): name is changed from "show_ui_definition()". * src/gtk/x11gui.c (DialogInput, DialogRadio, DialogCombo) (DialogComboEntry, DialogSpinEntry, DialogCheck): chang order of buttons. * src/gtk/ox11menu.c (mx_get_ui, mx_get_accel_map) (mx_show_lib_version, mx_get_locale): type of the fields is changed from "NVFUNC" to "NSFUNC". (mx_get_active): added. (gtkmenu): add "active" field, change type of some fields from "NVFUNC" to "NSFUNC". 2013-09-18 Hiroyuki Ito * src/gtk/ox11dlg.c (dlgspin): fix case for "double_entry". (dialog): type of "double_entry" and "integer_entry" is "NDFUNC" and "NIFUNC" respectively. 2013-09-16 Hiroyuki Ito * src/plugins.c (ngraph_plugin_shell_exeobj): check type of the field. * src/shellcm.c (dispfield): the macro "NLABEL" is not used. * src/object.c (addobject, _putobj, putobj, _getobj, getobj) (copyobj): the macro "NLABEL" is not used. * src/object.h: macro for field type and permission definitions are moved to the file "ngraph_plugin_shell.h". 2013-09-14 Hiroyuki Ito * plugins/: added. * src/shellcm.c (dispfield): fix representation of "char*" and "void*". 2013-08-28 Ito Hiroyuki * src/ofile.c (f2dstore, f2dstoredum): bug fix: use "g_strdup_printf()" instead of "g_malloc()" and "sprintf()". * src/omerge.c (mergestore, mergestoredum): bug fix: use "g_strdup_printf()" instead of "g_malloc()" and "sprintf()". 2013-07-26 Hiroyuki Ito * src/object.c (chkobjarglist): type of the returned value "const char *". (getargument, freeargument): type of second parameter is "const char *". 2013-07-25 Ito Hiroyuki * src/plugins.h: added (experimental). * src/plugins.c: added (experimental). * src/shell.c (get_security): added. (cmdtable): add "load_plugin" command. 2013-07-24 Ito Hiroyuki * src/gtk/x11merge.c (MergeDialogSetup): call "gtk_widget_show_all()". * src/gtk/x11axis.c (GridDialogSetup, SectionDialogSetup) (CrossDialogSetup, ZoomDialogSetup, AxisDialogSetup): call "gtk_widget_show_all()". * src/gtk/gtk_widget.c (set_widget_visibility_with_label): added. (set_scroll_visibility): use "gtk_widget_set_visible()" instead of "gtk_widget_show()" and "gtk_widget_hide()". * src/gtk/x11print.c (DriverDialogSetup, OutputDataDialogSetup) (OutputImageDialogSetup): call "gtk_widget_show_all()". (OutputImageDialogSetupItem): hide unused widgets and reset window size. * src/gtk/x11lgnd.c (LegendArrowDialogSetup) (LegendRectDialogSetup, LegendArcDialogSetup) (LegendMarkDialogSetup, LegendTextDialogSetup) (LegendTextDefDialogSetup): call "gtk_widget_show_all()". * src/gtk/x11menu.c (toggle_view_cb): use "gtk_widget_set_visible()" instead of "gtk_widget_show()" and "gtk_widget_hide()". (InputYN): use "get_current_window()". * src/gtk/x11graph.c (PageDialogSetup, SwitchDialogSetup) (DirectoryDialogSetup, LoadDialogSetup, PrmDialogSetup) (SaveDialogSetup): call "gtk_widget_show_all()". * src/gtk/x11lgndx.c (LegendGaussDialogSetup): call "gtk_widget_show_all()". * src/gtk/x11dialg.c (SelectDialogSetup, CopyDialogSetup): call "gtk_widget_show_all()". * src/gtk/x11file.c (MathTextDialogSetup, MathDialogSetup) (FitLoadDialogSetup, FitSaveDialogSetup, FitDialogSetup) (MarkDialogSetup, FileDialogSetup, FileDefDialogSetup): call "gtk_widget_show_all()". * src/gtk/x11view.c (EvalDialogSetup): call "gtk_widget_show_all()". * src/gtk/x11opt.c (DefaultDialogSetup, SetScriptDialogSetup) (PrefScriptDialogSetup, SetDriverDialogSetup) (PrefDriverDialogSetup, FontSettingDialogSetup) (PrefFontDialogSetup, MiscDialogSetup, ExViewerDialogSetup) (ViewerDialogSetup): call "gtk_widget_show_all()". (DefaultDialogSetup): use "gtk_widget_set_visible()" instead of "gtk_widget_set_sensitive()". * src/gtk/x11gui.c (DialogExecute): use "gtk_widget_show()" instead of "gtk_widget_show_all()". 2013-07-24 Koichi Akabe * misc/ngraph.desktop (Keywords): added. 2013-07-18 Ito Hiroyuki * src/gra.h (GRA_FILL_MODE): added. * src/gra.c (GRAdrawpoly): type of the 4th parameter is "enum GRA_FILL_MODE". 2013-07-17 Ito Hiroyuki * src/gtk/x11lgnd.c (LegendArrowDialogSetup): use "set_scale_mark()". (points_setup, LegendArrowDialogSetup, LegendRectDialogSetup) (LegendArcDialogSetup): use "set_widget_margin()". (create_color_combo_box, select_type): the field "line_join" can be modified from a combo-box. (create_mark_color_combo_box): call "add_line_style_item_to_cbox()". * src/gtk/x11lgndx.c (LegendGaussDialogSetup): use "set_scale_mark()". * src/gtk/gtk_widget.h (WIDGET_MARGIN): added. * src/gtk/gtk_widget.c (set_widget_margin, set_scale_mark): added. * src/gtk/gtk_subwin.c (spin_button_size_allocated): use variable "new_allocation". * src/gtk/x11file.c (move_tab_create, mask_tab_create) (load_tab_create, math_tab_create): use "set_widget_margin()". (create_type_color_combo_box, select_type): the field "line_join" can be modified from the combo-box. * src/gtk/x11axis.c (scale_tab_create, baseline_tab_create) (gauge_tab_create, numbering_tab_create, font_tab_create) (position_tab_create): use "set_widget_margin()". * src/gra.h (GRA_LINE_JOIN, GRA_LINE_CAP): added. * src/gra.c (GRAlinestyle): type of 5th and 6th parameters are "enum GRA_LINE_CAP" and "enum GRA_LINE_JOIN" respectively. 2013-07-13 Hiroyuki Ito * src/gtk/x11lgnd.c (create_character_view): don't set the number of columns when the version of GTK+ is greater or equal to "3.8.0". (create_character_view): call "gtk_icon_view_set_activate_on_single_click()" when the version of GTK+ is greater or equal to "3.8.0". 2013-07-12 Ito Hiroyuki * src/gtk/x11file.c (create_user_fit_frame): use "gtk_container_add()" instead of "gtk_scrolled_window_add_with_viewport()" when the version of GTK+ is greater or equal to "3.8.0". * src/gtk/ogra2x11.c (gtkinit): use "gtk_container_add()" instead of "gtk_scrolled_window_add_with_viewport()" when the version of GTK+ is greater or equal to "3.8.0". * src/gtk/gtk_subwin.c (label_sub_window_create): use "gtk_container_add()" instead of "gtk_scrolled_window_add_with_viewport()" when the version of GTK+ is greater or equal to "3.8.0". * src/gtk/gtk_ruler.c (nruler_get_color): use "TopLevel" to get the default color. 2013-07-05 Hiroyuki Ito * src/gtk/x11menu.c (application): check the state of "ViewToggleSingleWindowModeAction". * src/gtk/main.c (main): the "-i" option with no filename means to execute a console. * src/gtk/gtk_subwin.c (start_editing): the function "spin_button_size_allocated()" is connected to the "size-allocate" signal. (spin_button_size_allocated): added. 2013-06-27 Ito Hiroyuki * src/gtk/x11view.c (PasteObjectsFromClipboard): check "d->Win". (PasteObjectsFromClipboard, ShowCrossGauge, show_zoom_animation) (show_move_animation, mouse_move_scroll, ViewerEvMouseMove) (popup_menu_position, SetHRuler, SetVRuler, create_pix): use "gtk_widget_get_window()". (move_focus_frame, ViewerEvVScroll, ViewerEvHScroll) (ViewerWinUpdate, ChangeDPI, Draw): use "main_window_redraw()". 2013-06-26 Ito Hiroyuki * src/gtk/ogra2cairo.c (gra2cairo_draw_path): check "local->cairo". * src/gtk/x11file.c (draw_type_pixbuf): use "gra2cairo_draw_path()". (CmFileSaveData): use "main_window_redraw()". * src/gtk/x11lgnd.c (draw_color_pixbuf): use "gra2cairo_draw_path()". * src/gtk/ogra2gtkprint.c (gra2gtkprint_done): use "gra2cairo_draw_path()". * src/gtk/ox11menu.c (main_window_redraw): added. (mx_redraw, mxdpi, mxclear): use "gra2cairo_draw_path()". (mxflush): use "gra2cairo_draw_path()". * src/gtk/ogra2x11.c (gtklocal): remove member "win". (redraw_window): added. (gtkclear, gtkflush, gtkredraw): use "redraw_window()". * src/gtk/x11menu.h (Viewer): remove member "gdk_win". * src/gtk/x11menu.c (NSetCursor): check "NgraphApp.Viewer.Win" and use "gtk_widget_get_window()". (script_exec): use "main_window_redraw()". * src/gtk/x11print.c (draw_gra): use "main_window_redraw()". 2013-06-05 Ito Hiroyuki * src/object.h (objlist): type of the member "root" and "root2" should be "N_VALUE *". 2013-06-05 Hiroyuki Ito * src/gtk/ogra2x11.c (gtkwait_action): renamed from "wait_key()". (action_type, button_released, scrolled): added. (gtklocal): use "struct action_type". (gtkinit): add event handler for signals "button-release-event" and "scroll-event". 2013-06-04 Ito Hiroyuki * src/gra.c (GRAcolor): don't change the color when an argument is negative. (GRAdrawtext, GRAtextextent): add "C" and "A" parameter. * src/gtk/ogra2x11.c (gtklocal): add member "blank_cursor". (cursor_moved): added. (gtkinit): initialize "gtklocal->blank_cursor". (gtkinit): the "motion-notify-event" signal is connected to the function "cursor_moved()". (gtkdone): unref "gtklocal->blank_cursor" if necessary. (gtk_wait_key): set mouse cursor invisible. * src/gtk/gtk_common.h (SE_ENTRY_ICON): removed. * configure.in (GTK2_REQUIRED_VERSION, GLIB_REQUIRED_VERSION): changed from "2.14.0" to "2.16.0". 2013-06-02 Hiroyuki Ito * src/ofile.c (f2dredraw): redraw when the variable "dmax" equal to zero. * src/gtk/ogra2x11.c (ev_key_down): save "e->keyval". (ev_key_down): use "gtkclose()" to close the window. (gtk_wait_key): added. (gra2gtk): add "wait_key" field. * src/gtk/x11menu.c (application): call "multi_to_single()" if necessary. * src/omerge.c (mergeredraw): redraw when the variable "dmax" equal to zero. 2013-05-31 Ito Hiroyuki * src/gtk/ox11dlg.c (dlgbutton): set "rval->str". 2013-05-29 Ito Hiroyuki * src/ogra.c (close_gc): added. (oGRAclose): use "close_gc()". (oGRAopen): call "close_gc()" when "GRAinit()" returns non-zero value. (oGRAopen): bug fix: initialize the variable "robj" and check before call the function "GRAopen()". * src/gtk/ogra2cairo.c (addgra2cairo): use "CAIRO_STATUS_LAST_STATUS" to generate error messages. * src/gtk/ox11dlg.c (dlgbutton): added. (dialog): add "button" field. * src/gtk/x11gui.c (DialogButton): added. * src/gtk/x11view.c (Draw, Clear): don't use "Menulocal.GRAinst". * src/gtk/ogra2x11.c (size_allocate, gtkfullscreen, gtk_set_fit) (gtk_set_frame): added. (gtkinit): initialize "fit" and "frame" fields. (gtkinit): the "GtkDrawingArea" is located center of the window. (gtkinit): the function "size_allocate()" is connected to the "size-allocate" signal. (gtkchangedpi): use function "cairo_surface_destroy()" instead of "g_object_unref()". (gtkMakeRuler): check "gtklocal->frame". (gtk_set_dpi): set "fit" field as FALSE. (gra2gtk): add fields "fit", "frame" and "fullscreen". * src/gtk/x11commn.c (OpenGRA): remove redundant call of the function "chkobjinstoid()". (OpenGRA, CheckPage, CloseGRA, ChangeGRA): don't use "Menulocal.GRAinst". (SetPageSettingsToGRA): bug fix: the last argument of the function "_putobj()" is not "&drawable" but "drawable". 2013-05-24 Ito Hiroyuki * doc/html/ja/math.html: update document. * src/math/math_basic_function.c (math_func_for): use variables "start", "stop" and "step". * src/gtk/x11file.c (set_headline_table_header): fix title of the table. 2013-05-20 Ito Hiroyuki * src/math/math_parser.c (create_variable_assign_expression): initialize the variable "bin". * src/math/math_scanner.c (math_scanner_get_token, get_ope): EOEQ is treated as an operator. * src/math/math_operator.h.in: add operators ":=", "==", ">=", "<=", "!=", "-=", "+=", "*=", "/=", "\=" and "^=". EOEQ is treated as an operator. * src/math/math_operator.rb: accept multiple representations for one operator. * src/osarray.c (ERROUTBOUND): added (sarrayerrorlist): add error message for the error "ERROUTBOUND". (sarrayget, sarrayput, sarraysns, sarraydel): show error message for the error "ERROUTBOUND". * src/odarray.c (ERROUTBOUND): added (darrayerrorlist): add error message for the error "ERROUTBOUND". (darrayget, darrayput, darraydns, darraydel): show error message for the error "ERROUTBOUND". * src/oiarray.c (ERROUTBOUND): added. (iarrayerrorlist): add error message for the error "ERROUTBOUND". (iarrayget, iarrayput, iarrayins, iarraydel): show error message for the error "ERROUTBOUND". 2013-05-16 Ito Hiroyuki * src/math/math_expression.c (optimize_div_expression): check if the right hand side of the operator is zero or not. (calc): compare with "0.0" (not "0"). * src/gtk/x11file.c (set_headline_table): remark character is located at the top of a line. 2013-05-09 Ito Hiroyuki * debian/patches/series: remove "01_replace_to_free_fonts.patch". * initfile/Ngraph.ini.in: use "Liberation" fonts as default. * src/gtk/x11view.c (ViewerEvKeyDown): initialize the variable "d" first. 2013-04-13 Ito Hiroyuki * src/ofile.c (get_value_from_str): accepts space character around the value. 2013-04-11 Ito Hiroyuki * src/gtk/x11file.c (check_add_str): use "〓" if the character is not printable. (set_headline_table): use "g_ascii_isprint()" and "g_ascii_isspace()". * src/ofile.c (get_value_from_str): added. (getdataarray): use 'get_value_from_str()'. 2013-04-06 Ito Hiroyuki * src/gtk/x11file.c (decode_ifs_text): accepts ascii character only. (check_add_str): added. (parse_data_line): use "check_add_str()". (set_headline_table): only ascii character can be accepted as mark. 2013-04-05 Ito Hiroyuki * src/gtk/x11view.c (ViewerEvLButtonUp): call "set_focus_sensitivity()". 2013-04-04 Ito Hiroyuki * src/gtk/x11file.c (set_headline_table, create_preview_table) (update_table_visibility): don't use "GtkTreeModelFilter". (set_headline_table_header): check space of the cilumn header. 2013-04-03 Ito Hiroyuki * src/gtk/x11file.c (parse_data_line): remove 6th parameter. (create_preview_table): use "GtkTreeModelFilter". (update_table_visibility): added. * src/ofile.c (getdataarray): set terminator at the end of the column. 2013-03-31 Ito Hiroyuki * src/gtk/x11dialg.h (FileDialog): add member "head_linese." * src/gtk/x11file.c (set_headline_table_header, update_table) (update_table_header): added. (FileDialogSetup): use "set_headline_table_header()". 2013-03-29 Ito Hiroyuki * src/gtk/x11dialg.h (FileDialog): add members "comment_table" and "initialized". * src/gtk/x11file.c (decode_ifs_text, set_headline_table) (create_preview_table): added. (load_tab_set_value): use "decode_ifs_text()". (FileDialogSetupCommon): use "GtkGrid" when the version of GTK+ is greater or equal to "3.0.0". (FileDialogSetup): add table preview. (FileDialogClose, FileDialog): set "d->initialize" as FALSE. 2013-03-15 Ito Hiroyuki * src/gtk/x11view.c (ViewerEvKeyDown): call "set_focus_sensitivity()" when the signal is propagated further. (add_focus_obj, clear_focus_obj): don't call "set_focus_sensitivity()". * src/gtk/gtk_subwin.c (start_editing): the function "UnFocus()" don't have to be called before "menu_lock()". (list_unfocused): removed. * src/gtk/x11menu.c (menu_lock): don't call "set_focus_insensitive()" and "set_focus_sensitivity()". (edit_menu_shown): added. (setupwindow): "edit_menu_shown()" is connected to the "show"signal of the popup menu and edit menu. 2013-03-12 Ito Hiroyuki * src/gtk/x11menu.c (menu_lock): call "set_focus_insensitive()" or "set_focus_sensitivity()". (set_focus_sensitivity_sub): set sensitivity of "EditPasteAction". * src/gtk/gtk_subwin.c (start_editing): call "UnFocus()" before call "menu_lock()". (list_unfocused): call "set_focus_sensitivity()" only when "Menulock" is false. 2013-03-11 Ito Hiroyuki * src/gtk/x11axis.c (type_edited): removed. (CmAxisWindow): the 5th argument of the function "set_combo_cell_renderer_cb()" is "NULL". * src/gtk/x11lgnd.c (select_type): call "gtk_widget_grab_focus()". (edited_line_type, edited_font): removed. (CmLegendWindow): the 5th argument of the function "set_combo_cell_renderer_cb()" is "NULL". * src/gtk/gtk_subwin.c (cancel_editing, enum_cb): call "gtk_widget_grab_focus()". (set_cell_renderer_cb): the 4th argument of the function "g_signal_connect()" for the "editing-canceled" signal is "d" when tha case is "G_TYPE_ENUM". (combo_edited_cb): added. (set_combo_cell_renderer_cb): use "combo_edited_cb()" as the default call-back for the signal "edited". (set_combo_cell_renderer_cb, set_obj_cell_renderer_cb): the 4th argument of the function "g_signal_connect()" for the "editing-canceled" signal is "d" * src/gtk/x11file.c (select_type, edited_axis): call "gtk_widget_grab_focus()". 2013-03-08 Ito Hiroyuki * src/gtk/x11file.c (MARK_PIX_LINE_WIDTH, set_line_style) (CURVE_POINTS_MAX, draw_curve): added. (draw_type_pixbuf): use "MARK_PIX_LINE_WIDTH", "set_line_style()", "CURVE_POINTS_MAX" and "draw_curve()". (draw_type_pixbuf): update image. (select_type): check if the graph is modified or not after call the function "chk_sputobjfield()". 2013-03-06 Ito Hiroyuki * src/gtk/x11file.c (select_type): add "break" statement for the case "FILE_COMBO_ITEM_LINESTYLE:". * src/gtk/x11commn.c (FitClear): fix indent. 2013-03-04 Ito Hiroyuki * src/gtk/x11file.c (select_type): add case for "FILE_COMBO_ITEM_CLIP". (create_type_color_combo_box): add "clip" combo-item. 2013-03-02 Ito Hiroyuki * src/gtk/gtk_widget.c (select_obj_color): change type of the return value. * src/gtk/x11lgnd.c (select_type): check returned value of the function "select_obj_color()" * src/gtk/x11axis.c (AxisCB): initialize the variable "s". (AxisHistoryCB): use "AxisCB()". * src/gtk/ox11menu.c (menuinit): fix initial value of "Menulocal.side_pane1_pos" and "Menulocal.side_pane2_pos". 2013-03-01 Ito Hiroyuki * src/gtk/x11axis.c (select_type): use "OBJECT_COLUMN_TYPE_ENUM". * src/gtk/x11file.c (select_type): use "OBJECT_COLUMN_TYPE_ENUM". * src/gtk/x11lgnd.c (select_type, select_line_type): use "OBJECT_COLUMN_TYPE_ENUM". * src/gtk/gtk_liststore.c (add_text_combo_item_to_cbox): use "TOGGLE_TYPE". add parameter "enum_id". (add_enum_combo_item_to_cbox, add_bool_combo_item_to_cbox) (add_line_style_item_to_cbox, add_font_style_combo_item_to_cbox): use "add_text_combo_item_to_cbox()". * src/gtk/gtk_liststore.h (TOGGLE_TYPE): added. (OBJECT_COLUMN_TYPE): add "OBJECT_COLUMN_TYPE_ENUM". 2013-02-28 Ito Hiroyuki * src/gtk/x11lgnd.c (points_setup): check the version of GTK+ to avoid the bug (Bug 691592). * src/gtk/gtk_liststore.c (create_column): check the version of GTK+ to avoid the bug (Bug 691592). 2013-02-26 Ito Hiroyuki * src/shellcm.c (cmget): check returned value via 3rd argument of the function "sgetobjfield()". * src/gtk/gtk_liststore.c (add_line_style_item_to_cbox): don't duplicate returned value via 3rd argument of the function "sgetobjfield()". * src/gtk/x11axis.c (Popup_list): remove "Show" item from the pop-up menu. (popup_show_cb): remove case for "POPUP_ITEM_HIDE". (AxisCB, AxisHistoryCB, GridDialogSetupItem) (scale_tab_setup_item, position_tab_setup_item) (axis_list_set_val): check returned value via 3rd argument of the function "sgetobjfield()". * src/gtk/x11merge.c (Popup_list): remove "Show" item from the pop-up menu. (popup_show_cb): remove case for "POPUP_ITEM_HIDE". * src/gtk/x11lgnd.c (Popup_list): remove "Show" item from the pop-up menu. (legend_dialog_setup_item, path_list_set_val): check returned value via 3rd argument of the function "sgetobjfield()". (popup_show_cb): remove case for "POPUP_ITEM_HIDE". * src/gtk/x11file.c (Flist): remove "Show" and "Fit" items from the pop-up menu. (FitCB, load_tab_setup_item, file_setup_item) (FileDialogSetupItem, get_axis_obj_str): check returned value via 3rd argument of the function "sgetobjfield()". (FileDialogSetupItem): remove 4th parameter. (show_fit_dialog): added. (FileDialogFit): use "show_fit_dialog()". (file_fit_popup_func): removed. (popup_show_cb): remove cases for "POPUP_ITEM_HIDE" and "POPUP_ITEM_FIT". (start_editing): don't show radio buttom on the combo-box. (add_fit_combo_item_to_cbox): added. (create_type_color_combo_box): use "add_fit_combo_item_to_cbox()". (select_type): show fitting dialog when the plot type fit is selected and the fit field of the file instance is not set. (select_type): add case for "FILE_COMBO_ITEM_FIT". * src/gtk/gtk_subwin.c (start_editing): check returned value via 3rd argument of the function "sgetobjfield()". 2013-02-24 Ito Hiroyuki * src/gtk/gtk_widget.c (combo_box_create_mark): removed. (select_obj_color): handle case for "OBJ_FIELD_COLOR_TYPE_AXIS_BASE", "OBJ_FIELD_COLOR_TYPE_AXIS_GAUGE" and "OBJ_FIELD_COLOR_TYPE_AXIS_NUM". * src/gtk/x11lgnd.c (text_list_set_val): set color of the text column. (create_mark_color_combo_box): use "add_text_combo_item_to_cbox()" and "add_mark_combo_item_to_cbox()". (create_fill_rule_combo_box): removed. (create_color_combo_box): use "add_bool_combo_item_to_cbox()", "add_line_style_item_to_cbox()", "add_text_combo_item_to_cbox()" and "add_enum_combo_item_to_cbox()". (select_type): dant handle the case "LEGEND_COMBO_ITEM_COLOR_0". (select_line_type): now the ComboBox use "GtkTreeStore". (start_editing_line_type): use "init_object_combo_box()". (select_font): added. (start_editing_font): use "init_object_combo_box()". (edited_font): only call "menu_lock()". (CmLegendWindow): set "foreground" column. * src/gtk/gtk_liststore.c (combo_box_separator_func) (init_object_combo_box, create_object_tree_model) (add_separator_combo_item_to_cbox, add_font_combo_item_to_cbox) (add_font_style_combo_item_to_cbox, add_text_combo_item_to_cbox) (add_mark_combo_item_to_cbox, add_enum_combo_item_to_cbox) (add_bool_combo_item_to_cbox, add_line_style_item_to_cbox): added. (create_object_cbox): use "create_object_tree_model()". (create_column): use "create_object_tree_model()" for the case "G_TYPE_PARAM". * src/gtk/x11dialg.c (SetFontListFromObj): type of the lase parameter is "const char *". * src/gtk/x11file.c (create_type_color_combo_box): use "create_type_combo_item()" and "add_text_combo_item_to_cbox()". (create_type_combo_item): use "add_text_combo_item_to_cbox()". (create_type_combo_item): added. (create_type_combo_box): removed. (select_axis): use "gtk_tree_model_get()" to get active item. (start_editing): use "init_object_combo_box()" and "add_text_combo_item_to_cbox()". * src/gtk/x11axis.c (AXIS_COMBO_ITEM, create_base_combo_item) (create_gauge_combo_item, create_num_combo_item) (create_type_combo_box, select_type, start_editing_type) (type_edited): added. (CmAxisWindow): call "set_combo_cell_renderer_cb()". 2013-02-21 Ito Hiroyuki * src/gtk/x11view.c (ViewerWinClose): assign NULL to freed member. * src/gtk/gtk_liststore.c (create_object_cbox): use "OBJECT_COLUMN_TYPE_NUM" for the function "gtk_tree_store_new()". (add_line_style_item_to_cbox): add 3rd, 5th, 6rh and 7th parameters. * src/gtk/gtk_liststore.h (OBJECT_COLUMN_TYPE): add "OBJECT_COLUMN_TYPE_TOGGLE_IS_RADIO" and "OBJECT_COLUMN_TYPE_NUM". * src/gtk/x11file.c (FileDialogType): set sensitivity of the widgets to set "line style" and "line width". (create_type_color_combo_box): add 4th parameter. (create_type_combo_box): add 3rd parameter. * src/gtk/gtk_widget.c (combo_box_create_mark): add 4th parameter. * src/gtk/x11lgnd.c (LEGEND_COMBO_ITEM): add "LEGEND_COMBO_ITEM_FILL_EVEN_ODD" and "LEGEND_COMBO_ITEM_FILL_WINDING". (create_mark_color_combo_box): add 3rd parameter. (create_fill_rule_combo_box): added. (create_color_combo_box): some menus are placed as a child menu. (set_bool_field, set_stroke, set_fill): added. (select_type): use "set_stroke()" and "set_fill()". set "fill_rule" field. 2013-02-20 Ito Hiroyuki * src/gtk/x11file.c (create_type_color_combo_box): use "add_line_style_item_to_cbox()". (select_type): add case for "FILE_COMBO_ITEM_LINESTYLE". * src/gtk/gtk_liststore.c (add_line_style_item_to_cbox): added. * src/gtk/x11lgnd.c (select_color, select_line_style): removed. (create_mark_color_combo_box, create_color_combo_box): use "add_line_style_item_to_cbox()". (select_type): handle all legend objects. (start_editing_color): use "select_type()" as a callback function. * addin/fitrslt.c (set_parameter): use "file::fit_prm". (ACCURACY): defined as 7 2013-02-19 Ito Hiroyuki * src/gtk/x11lgnd.c (add_line_style_item): added. (create_mark_color_combo_box, create_color_combo_box): use "add_line_style_item()". (select_line_style): added. (select_type, select_color): use "select_line_style()". * mingw/windows.sh: create "$PKG_DIR/lib". * mingw/gtkrc (msw-combobox-thickness): set "GtkComboBox::appears-as-list" as 0. 2013-02-18 Ito Hiroyuki * addin/ps2gra.nsc: use "get" command to obtain returned value of "dialog::yesno". * src/ofit.c (fitput, fitcalc): use "ofile_create_math_equation()". * src/ofile.c (file_fit_calc, file_fit_prm): don't use "math_equation_get_user_data()". (FitFunc, add_fit_func): added. (ofile_create_math_equation): add 7th parameter "use_fit_func". (ofile_create_math_equation): 2nd parameter represents the digit of prm. (ofile_calc_fit_equation): added. 2013-02-12 Ito Hiroyuki * src/ofit.c (fitlocal): add member "result_code". (fitinit): initialize "fitlocal->result_code". (fitdone): free "fitlocal->result_code". (set_equation, fitequation): added. (fitput, fitfit): use "set_equation()". (fitfit): check case "FitError_Interrupt". (fitcalc): use "fitlocal->result_code". (fitcalc): returned value is not string but double. * src/ofile.c (MATH_CONST_MASK): add "MATH_CONST_FILE_OBJ", "MATH_CONST_PATH_OBJ", MATH_CONST_RECT_OBJ, "MATH_CONST_ARC_OBJ", "MATH_CONST_MARK_OBJ" and "MATH_CONST_TEXT_OBJ". (FIT_FIELD_PREFIX, file_obj_color_alpha, file_objcolor) (file_objalpha): added. (file_color): now first argument of the "COLOR()" function accepts "8" and "9". (file_fit_calc, file_fit_prm): added. (file_func): add functions "FIT_CALC", "FIT_PRM", "OBJ_COLOR" and "OBJ_ALPHA". (ofile_create_math_equation): add constants "FILE_OBJ", "PATH_OBJ", "RECT_OBJ", "ARC_OBJ", "MARK_OBJ" and "TEXT_OBJ". (set_const): initialize constants "FILE_OBJ", "PATH_OBJ", "RECT_OBJ", "ARC_OBJ", "MARK_OBJ" and "TEXT_OBJ". (newton): don't check the number of the iteration is 1 or not ("i = 1"). (solve_equation): add prefix to the fields. (solve_equation): the error message is not set to the returned string. (calc_fit_equation): added. (calc_equation): use "calc_fit_equation()". (calc_equation): the error message is not set to the returned string. (get_fit_parameter): added. (file2d): add fields "fit_prm". change name of the fields "newton", "bisection" and "calc". * src/gtk/x11file.c (MathDialogSetup): initialize "d->Mode" whine "makewidget" is true (MathDialog): don't modify "data->Mode". * src/gtk/x11view.c (Draw): call "FitClear()" after call "FileAutoScale()". * src/object.c (addobject): object id is start from 1. 2013-01-24 Ito Hiroyuki * initfile/NgraphUI.xml.win: add "Sidebar" menu. * initfile/NgraphUI.xml: add "Sidebar" menu. * src/gtk/ox11menu.h (menulocal): add member "sidebar". * src/gtk/x11menu.h (MenuID): add id "MenuIdToggleSidebar". * src/gtk/x11menu.c (ActionEntry): add "ViewSidebarAction". (ActionEntry): change shortcut key of "cross bar" menu from "+" to "^g", (set_window_action_visibility): set visibility of "ViewSidebarAction". (multi_to_single): check "Menulocal.sidebar".0 (toggle_view_cb): handle "MenuIdToggleSidebar". (application): hide only "NgraphApp.Viewer.side_pane1". * src/gtk/ox11menu.c (MenuConfigToggleView): add sidebar setting. (menuinit): initialize "Menulocal.sidebar". 2013-01-23 Ito Hiroyuki * src/gtk/x11file.c (FileWinFit): use "list_store_get_selected_int()". (filewin_ev_key_down): check "GDK_CONTROL_MASK" for the case "GDK_KEY_f". 2013-01-22 Ito Hiroyuki * src/gtk/gtk_subwin.c (copy, delete, move_top, move_last) (move_up, move_down, hidden): call "UnFocus()". (list_focused, list_unfocused): added. (list_widget_create): use "focus-in-event" and "focus-in-event" to improve behavior of single window mode. * src/gtk/x11file.c (FitDialogSetup): add delete button to the dialog. (filewin_ev_key_down): call "UnFocus()". * src/gtk/x11view.c (ShowFocusFrame): don't call "set_focus_sensitivity()". (ViewerEvKeyDown): "DGK_KEY_Insert" is not handled. (Focus): don't call "gtk_widget_grab_focus()". (CmEditMenuCB): add case "MenuIdEditDuplicate". * src/gtk/x11axis.c (axiswin_delete_axis): call "UnFocus()". * src/gtk/x11menu.c (set_action_sensitivity) (set_focus_sensitivity_sub, set_focus_insensitive): added. (set_focus_sensitivity): use "set_focus_sensitivity_sub()". * initfile/NgraphUI.xml.win: add "EditDuplicate" item. * initfile/NgraphUI.xml: add "EditDuplicate" item. 2013-01-18 Ito Hiroyuki * src/gtk/gtk_subwin.c (swin_realized): type of the "user_data" is "struct obj_list_data *". (list_widget_create): "realize" signal is connected to the function "swin_realized()". (sub_window_create): don't call "g_signal_connect()" to the variable "swin". (tree_sub_window_create): remove redundant cast to "struct SubWin *". 2013-01-14 Ito Hiroyuki * src/gtk/gtk_liststore.c (create_column): don't use GtkCellRendererSpin while the GTK+ bug is not fixed. * src/gtk/x11lgnd.c (points_setup): don't use GtkCellRendererSpin while the GTK+ bug is not fixed. 2013-01-11 Ito Hiroyuki * src/gtk/x11view.c (ZOOM_SPEED_LITTLE, ZOOM_SPEED_NORMAL) (mouse_down_zoom_little, mouse_down_zoom2): added. (ViewerEvScroll): use "mouse_down_zoom_little()". * src/gtk/ogra2emf.c (enum_font_cb): check argument "FontType" and return with 0 if necessary. 2013-01-09 Ito Hiroyuki * src/gtk/x11view.c (PasteObjectsFromClipboard): check source device. 2013-01-08 Ito Hiroyuki * addin/legend.c (loaddatalist): check "hidden" field of data instances. 2013-01-07 Ito Hiroyuki * addin/legend.c (create_file_frame): not set hight of tree view but scrolled window. (create_file_frame): sensitivity of columns are depend on the state of the top column. (create_control): setting frames are expandable. * addin/fitrslt.c (create_spin_button): set margin of spin button widget. (create_control): setting frames are expandable. * addin/addin_common.c (create_font_frame): table widget is expandable * src/gtk/gtk_subwin.c (list_widget_create): sensitivity of columns are depend of the state of top column. * src/gtk/gtk_liststore.c (create_column): expand some editable columns. * src/gtk/x11lgnd.c (CmLegendWindow): don't expand some columns. 2013-01-04 Ito Hiroyuki * addin/fitrslt.c (get_opt): check "argv[i]". * addin/legend.c (get_opt): check "argv[i]". 2013-01-01 Ito Hiroyuki * addin/fitrslt.c (savescript, caption_toggled, set_parameter): use GtkTreeModel. (text_edited, caption_edited, value_edited): added. (create_caption_frame): use GtkTreeView widgret. (VERSION): 1.00.02 2012-12-28 Ito Hiroyuki * src/gtk/x11menu.c (application): call "CheckIniFile()" before save configurations. 2012-12-27 Ito Hiroyuki * src/gtk/ox11menu.c (mx_show_win, mx_hide_win, mx_toggle_win): check "Menulocal.single_window_mode". 2012-12-21 Ito Hiroyuki * src/gtk/gtk_subwin.c (tree_sub_window_create): call "gtk_notebook_popup_enable()". (tree_sub_window_create): set text label of the popup menu. 2012-12-20 Ito Hiroyuki * src/gtk/x11lgnd.c (CmLegendWindow): use icon file macros. (CmLegendWindow): add data for the key "ngraph_object_data" to widgets of inside of tabs. * src/gtk/x11menu.c (ActionEntry, window_to_tab, multi_to_single): use icon file macros. (window_to_tab): add parameter "tip". (tab_info_compare, init_tab_info, save_tab_position_sub) (save_tab_position): added. (multi_to_single): restore tab positions. (single_to_multi): call function "save_tab_position()". (single_to_multi): enable popup of tabs. (create_action_group): use icon file macros. (application): call function "save_tab_position()". * src/gtk/ox11menu.h (menulocal): add member related to tabs used in the single window mode. * src/gtk/ox11menu.c (MenuConfigOthers): add settings related to tabs used in the single window mode. (menuinit): initialize settings related to tabs used in the single window mode. * src/gtk/gtk_subwin.c (file_select, update): parent window is depend on the setting "Menulocal.single_window_mode". (swin_realized): added. (sub_window_create): connect "realize" signal to the function "swin_realized()". (sub_window_set_visibility): don't update content in this function. * src/gtk/x11file.c (FileWinFileUpdate, FileWinFit): parent window is depend on the setting "Menulocal.single_window_mode". * src/gtk/x11bitmp.h: add macros for icon files. * src/ioutil.h (DIRSEP_STR): added. 2012-12-18 Ito Hiroyuki * src/gtk/gtk_ruler.c (nruler_destroy): destroy or unref "ruler->backing_store". 2012-12-17 Ito Hiroyuki * src/gtk/x11view.c (popup_menu_position): use the function "gdk_window_get_origin()" to get the position. (ViewerWinSetup): the function "ev_popup_menu()" is connect to the signal "popup-menu". (ev_popup_menu): added. * src/gtk/gtk_subwin.c (popup_menu_position): use the function "gdk_window_get_origin()" to get the position. (do_popup): data for the positon function is "d->text". 2012-12-16 Ito Hiroyuki * src/gtk/x11file.c (init_dnd): destination of DnD is listsore widget. * src/gtk/x11merge.c (init_dnd): destination of DnD is listsore widget. * src/gtk/x11cood.c (CoordWinSetCoord): the variable "str" should be initialized as "NULL". (CoordWinSetCoord): don't check visibility of the widget "d->Win". (CoordWinSetCoord): show date and time in new line. * src/gtk/ox11menu.c (MenuConfigOthers): add pane and single window mode settings. (menuinit): initialize pane and single window mode settings. * src/gtk/x11opt.c (DefaultDialogSetup): set widget sensitivity depend on "Menulocal.single_window_mode". * src/gtk/gtk_subwin.c (sub_window_save_geometry): check "Menulocal.single_window_mode". (sub_window_create, text_sub_window_create) (label_sub_window_create, list_sub_window_create) (tree_sub_window_create): type of the second parameter is "const char *". * src/gtk/x11menu.c (SIDE_PANE_TAB_ID): added. (ActionEntry): add "ViewToggleSingleWindowModeAction". (menu_lock): check "NgraphApp.Viewer.menu", lock "NgraphApp.Viewer.menu" and the first child of the widget "NgraphApp.Viewer.main_pane". (set_window_action_visibility, OBJ_ID_KEY, window_to_tab) (tab_to_window, get_pane_position, set_pane_position) (multi_to_single, check_move_widget, check_move_legend_widget) (single_to_multi): added. (setupwindow): add paned widget for the single window mode. (create_sub_windows): check "Menulocal.single_window_mode". (set_toggle_action): added. (window_action_set_active): use the function "set_toggle_action()". (application): call "gtk_window_set_has_resize_grip()". (application): check "Menulocal.single_window_mode". (CmToggleSingleWindowMode): added. * initfile/NgraphUI.xml: add single window mode menu item. * initfile/NgraphUI.xml.win: add single window mode menu item. 2012-12-11 Ito Hiroyuki * src/gtk/x11menu.c (setupwindow): remove redundant call of the function "gtk_menu_bar_new()". 2012-12-04 Ito Hiroyuki * src/gtk/x11view.c (draw_paper_frame): the origin of the rectangle is 0 is the version of GTK+ is less than "2.22". * src/gtk/gtk_common.h (CAIRO_COORDINATE_OFFSET): always defined as "1". * src/gtk/gtk_ruler.c (_Nruler): add member "widget" and "parent". (nruler_new): change name from "ruler_new". (nruler_new): use "GtkFrame". (nruler_make_pixmap): add argument "parent". (nruler_draw_ticks): don't draw frame. * src/gtk/x11menu.c (setupwindow): use "nruler_new()". 2012-12-03 Ito Hiroyuki * src/gtk/gtk_ruler.c (nruler_get_preferred_width) (nruler_get_preferred_height, nruler_size_request, hruler_new) (vruler_new): removed. 2012-12-01 Ito Hiroyuki * src/gtk/gtk_ruler.c (nruler_set_style, nruler_parent_set): removed. (nruler_get_color): added. (nruler_draw_pos, nruler_draw_ticks): use "nruler_get_color()". * src/gtk/main.c (main): dan't call "gdk_threads_init()" and "gdk_threads_enter()". 2012-11-30 Ito Hiroyuki * src/gtk/gtk_ruler.c (nruler_set_style): added. (nruler_parent_set): connect the function "nruler_set_style" to the signal "changed". (nruler_draw_ticks, nruler_draw_pos): always use the color correspond to "GTK_STATE_NORMAL". * src/gtk/x11file.c (Flist): type of the "masked" column is now "G_TYPE_INT". (file_list_set_val): set style instead of color to distinguish masked or mobed data. (CmFileWindow): "masked" column is correspond to "style" property. 2012-11-29 Ito Hiroyuki * src/gtk/gtk_ruler.c (ruler_new): connect the function "nruler_parent_set()" to the signal "parent-set". (nruler_parent_set): added. * src/gtk/gtk_widget.c (create_text_view_with_line_number): call "gtk_text_buffer_new()". * src/gtk/gtk_subwin.c (text_sub_window_create): call "gtk_text_buffer_new()". 2012-11-10 Ito Hiroyuki * src/ofit.c (show_poly_equation, show_poly_result) (show_user_result, show_user_equation): added. (fitpoly): use "show_poly_equation()" and "show_poly_result()". (fituser): use "show_user_equation()" and "show_user_result()". 2012-11-06 Ito Hiroyuki * src/ofit.c (fitpoly, fituser): use "GString" to show fitting results. 2012-11-04 Ito Hiroyuki * src/ofit.c (fitpoly, fituser): use "GString" to show calclated equation. 2012-11-03 Ito Hiroyuki * src/gtk/x11bitmp.c (ICON_WIDTH, ICON_HEIGHT): removed. * src/gtk/x11commn.c (MESSAGE_BUF_SIZE): removed. * src/gtk/x11opt.c (BUF_SIZE): removed. * src/gtk/x11file.c (CB_BUF_SIZE): removed. * src/gtk/x11axis.c (CB_BUF_SIZE): removed. * src/gtk/x11lgnd.c (CmLegendWindow): use ""struct legend_data legend_data[]". (CB_BUF_SIZE): removed. 2012-11-02 Ito Hiroyuki * src/gtk/x11lgnd.c (CmLegendWindow): add tooltip to icons. 2012-10-31 Ito Hiroyuki * src/ofile.c (getdataarray): 'D' can be used as a prefix for a decimal exponent. Accept hexadecimal number. * src/otext.c (USE_UTF8): removed. (text_set_text): remove code for shift-jis. 2012-10-28 Ito Hiroyuki * src/gtk/gtk_subwin.c (get_cell_renderer_from_tree_view): added. (set_combo_cell_renderer_cb, set_obj_cell_renderer_cb) (set_editable_cell_renderer_cb): use "get_cell_renderer_from_tree_view()". * src/gtk/x11lgnd.c (select_line_type): remove redundant call of the function "g_object_get_data()". (select_text, start_editing_text): added. (CmLegendWindow): connect the function "start_editing_text()" to the signal "editing-started". 2012-10-20 Ito Hiroyuki * doc/html/ja/math.html: add explanation of the functions "eq", "neq", "ge", "gt", "le" and "lt". * test/math_test_new.dat: add tests for the functions "eq", "neq", "ge", "gt", "le" and "lt". * doc/html/ja/math.html: update explanation of the functions "eq", "neq", "ge", "gt", "le" and "lt". * src/math/math_function.rb: fix invarid expression for case statement. * src/math/math_function.h.in: increase number of arguments for the functions "ge", "gt", "le" and "lt". * src/math/math_basic_function.c (math_func_lt, math_func_le) (math_func_ge, math_func_gt): use "compare_double_with_prec()". (compare_double_with_prec): use "long double". * configure.in (AC_CHECK_FUNCS): check functions "log10l", "fabsl" and "floorl". 2012-10-19 Ito Hiroyuki * src/math/math_constant.c: include "config.h". * src/math/math_operator.rb: convert integer to string (for Ruby 1.9). * src/math/math_expression.c: include "config.h". * src/math/math_parser.c: include "config.h". * src/math/math_equation.c: include "config.h". * src/math/math_error.c: include "config.h". * src/math/math_scanner.c: include "config.h". * src/math/math_equation.c: include "config.h". * src/math/math_constant.rb: include "config.h". 2012-10-18 Ito Hiroyuki * test/math_test_new.dat: add tests for the functions "EQ()" and "NEQ()". * src/math/math_basic_function.c (compare_double_with_prec): fix calculation. 2012-10-17 Ito Hiroyuki * initfile/Ngraph.ini.win: change initial size of main-window. * initfile/Ngraph.ini.in: set initial size of sub-windows. 2012-10-16 Ito Hiroyuki * src/gtk/gtk_subwin.c (set_geometry): don't save state. (set_visibility, sub_window_save_visibility) (get_window_visibility): added. (sub_window_save_geometry): check return value of the function "get_window_visibility()". * src/gtk/x11gui.c (get_window_geometry): don't call "gdk_window_get_state()". * src/gtk/ox11menu.c (add_child_geometry_to_array): call "sub_window_save_visibility()". * src/gtk/x11menu.c (destroy_sub_windows): hide window before destroy. 2012-10-09 Ito Hiroyuki * src/gtk/x11graph.c (PageDialogSetup): left and top margin can be nagative. 2012-10-08 Ito Hiroyuki * src/gra.c (GRAinit, GRAreopen): "GRAClist[GC].width" and "GRAClist[GC].height" is as same as paper width. (GRAregion): remove unused parameters. (GRAregion): calculate width and height depend on "GRAClist[GC].topm" and "GRAClist[GC].leftm". 2012-09-21 Ito Hiroyuki * src/gtk/x11lgnd.c (start_editing_common, start_editing_font): call "menu_lock()" if the variable "sel" is negative. (start_editing_mark): the function "start_editing_common()" is failed if the return value is nagative. 2012-09-07 Ito Hiroyuki * src/gtk/x11graph.c (LoadDialogSetup): remove redundant call of the function "gtk_box_pack_start()". 2012-09-04 Ito Hiroyuki * src/gtk/x11opt.c (MiscDialogSetup): use "LoadPathStr". * src/gtk/x11commn.c (LoadNgpFile): use "LOAD_PATH_FULL" and "LOAD_PATH_BASE". * src/gtk/x11graph.h (LOAD_PATH_TYPE): added. * src/gtk/x11graph.c (LoadPathStr): added. (LoadDialogSetup): use "LoadPathStr". 2012-08-24 Ito Hiroyuki * src/gtk/x11view.c (graph_dropped): use "loadpath" instead of "ignorepath". * src/gtk/x11menu.c (application): use "loadpath" instead of "ignorepath". * src/gtk/x11commn.c (LoadNgpFile): use "loadpath" instead of "ignorepath" and "expandtofullpath". * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup) (MiscDialogClose): use "loadpath" instead of "ignorepath". * src/gtk/x11graph.c (LoadDialogSetup, LoadDialogClose) (CmGraphLoad, CmGraphHistory): use "load_path" instead of "ignore_path". 2012-08-23 Ito Hiroyuki * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup) (MiscDialogClose): add UI for "Menulocal.select_data". * src/gtk/x11view.c (Draw): call "FileWinUpdate()". * src/gtk/x11dialg.h (MiscDialog): add member "select_data". * src/gtk/ox11menu.h (menulocal): add member "select_data". * src/gtk/ox11menu.c (menuinit): initialize "Menulocal.select_data". * src/gtk/x11print.c (CmOutputPrinter, CmOutputDriver) (CmPrintGRAFile, CmOutputImage, CmOutputEMF): call "FileWinUpdate()". (CmOutputDriver, CmPrintGRAFile, CmOutputImage, CmOutputEMF): check "Menulocal.select_data". * src/gtk/x11commn.c (SetFileHidden): call "set_graph_modified()" if necessary. 2012-08-21 Ito Hiroyuki * src/gtk/x11gui.c (get_filename_with_ext): added. (FileSelectionDialog): use "get_filename_with_ext()". 2012-08-16 Ito Hiroyuki * src/gtk/x11cood.c (CmCoordinateWindow): don't call functions "sub_window_show_all()", "sub_window_set_geometry()". * src/gtk/x11file.c (CmFileWindow): don't call functions "sub_window_show_all()", "sub_window_set_geometry()" and "FileWinUpdate()". * src/gtk/x11axis.c (CmAxisWindow): don't call functions "sub_window_show_all()", "sub_window_set_geometry()" and "AxisWinUpdate()". * src/gtk/x11merge.c (CmMergeWindow): don't call functions "sub_window_show_all()", "sub_window_set_geometry()" and "MergeWinUpdate()". * src/gtk/x11lgnd.c (CmLegendWindow): don't call functions "sub_window_show_all()", "sub_window_set_geometry()" and "LegendWinUpdate()". * src/gtk/gtk_subwin.c (sub_window_show_all): static function. (sub_window_set_visibility): realize a window when the window is not realized. * src/gtk/x11menu.c (create_sub_windows): call "CmInformationWindow()", "CmCoordinateWindow()", "CmMergeWindow", "CmLegendWindow()", "CmAxisWindow()" and "CmFileWindow()". * src/gtk/x11info.c (create_win): removed. (InfoWinDrawInfoText, CmInformationWindow): don't use "create_win()". 2012-08-15 Ito Hiroyuki * src/gtk/x11file.c (FileWinFileEdit, FileWinFileDelete) (file_obj_copy, FileWinFileCopy2, FileWinFileUpdate) (FileWinFileDraw, FileWinFit, popup_show_cb): use "chkobjlastinst()". * src/gtk/x11axis.c (axiswin_scale_clear, popup_show_cb) (axis_prm_edited_common, axiswin_delete_axis, AxisWinAxisTop) (AxisWinAxisLast, AxisWinAxisUp, AxisWinAxisDown): use "chkobjlastinst()". * src/gtk/x11merge.c (popup_show_cb): use "chkobjlastinst()". * src/gtk/x11lgnd.c (rect_size_edited): use "chkobjlastinst()". * src/gtk/gtk_subwin.c (file_select, copy, delete, move_top) (move_last, move_up, move_down, update, focus, toggle_boolean) (modify_numeric, modify_string, hidden, set_hidden_state) (list_sub_window_set): use "chkobjlastinst()". * src/gtk/x11menu.h (obj_list_data): remove member "num". 2012-08-14 Ito Hiroyuki * src/terminal.c (sig_handler, my_signal): not used if the os is Windows. 2012-08-13 Ito Hiroyuki * src/gtk/ogra2emf.c (open_emf): call "SaveDC()". (close_emf): call "RestoreDC()". (select_font): "id_font.lfOutPrecision" is "OUT_TT_ONLY_PRECIS". * src/gtk/main.c (interruptconsole, reset_fifo, consolesave) (consolefd): not used if the os is Windows. 2012-08-12 Ito Hiroyuki * src/shell.c (set_shell_args): added. * src/oshell.c (cmdshell): use "set_shell_args()". * src/shellcm.c (cmset): use "set_shell_args()". (cmset): options "--" and "-" work as same as bash. 2012-08-11 Ito Hiroyuki * src/shellcm.c (cmset): "--" means the last argument. 2012-08-10 Ito Hiroyuki * src/gtk/ogra2cairo.c (CompatibleFont): "Mincho" should be corresponded to "Seril" and "Gothic" should be corresponded to "Sans-serif". 2012-08-09 Ito Hiroyuki * src/gtk/ogra2emf.c (gra2emf_local): add members "update_pen_attribute", "update_brush_attribute", "line", "null_pen", "the_pen" and "the_brush". (gra2emf_init): initialize "null_pen" and "line". (gra2emf_done): finalize "null_pen" and "line". (open_emf): initialize "update_pen_attribute", "update_brush_attribute", "null_pen", "the_pen" and "the_brush". (close_emf): finalize "update_pen_attribute", "update_brush_attribute", "null_pen", "the_pen" and "the_brush". (create_pen): create object only when "local->update_pen_attribute" is TRUE. (create_brush): added. (draw_polygon, draw_polyline, draw_lines): added. (gra2emf_output): use "draw_polygon()", "draw_polyline()" and "draw_lines()". * src/gtk/main.c (check_console): remove unused variable "menu". * src/shell.c (cmdexec): remove unused variable "r" (Windows only). * mingw/windows.sh (DEFS, CCOPT): add compile options. * src/gtk/x11menu.c (create_sub_windows): file window, axis window, legend window and merge window must be created in this function. (kill_signal_handler, term_signal_handler): not used when the OS is Windows. 2012-08-08 Ito Hiroyuki * src/gtk/ogra2emf.c (draw_text_rect, draw_rectangle): added. (draw_str_sub): don't call "SetBkMode()". (draw_str_sub): call "draw_text_rect()". (check_font_indices): check return value of the function "GetGlyphIndicesW()". (gra2emf_output): use "SelectClipPath()" instead of "SelectClipRgn()". (gra2emf_output): use "draw_rectangle()". (gra2emf_output): call "SetPolyFillMode()" before drawing path. * initfile/Ngraph.ini.win (font): use "batangche" instead of "gulimche" for "Serif" font. 2012-08-07 Ito Hiroyuki * driver/ngp2.in: remove EMF output. * src/gtk/ogra2emf.c (gra2emf_fontmap, enum_font_cb) (get_char_set, fontmap_append, check_fonts, free_fontmap_sub) (free_fontmap, add_fontmap, check_font_indices, draw_str_sub) (set_alternative_font): added. (gra2emf_init): create dumy hdc. (gra2emf_done): delete dumy hdc and fontmaps. 2012-08-06 Ito Hiroyuki * src/gtk/ogra2cairo.c (gra2cairo_get_fontmap) (gra2cairo_remove_fontmap, gra2cairo_get_compatible_font_info): type of the argument is "const char *". 2012-07-29 Ito Hiroyuki * src/gtk/ogra2cairo.c (add_font_map): added. (create_font_map): use "add_font_map()". 2012-07-28 Ito Hiroyuki * src/gtk/ogra2emf.c (gra2emf_output): call "SetPolyFillMode()" to set fill mode. 2012-07-28 Ito Hiroyuki * initfile/NgraphUI.xml.win: add "GraphExportEMFFileAction" and "GraphExportEMFClipboardAction", remove "GraphExportEMFAction" and "GraphExportClipboardAction". * src/gtk/ogra2emf.c: added. * src/gtk/Makefile.am (libngraph_la_SOURCES): add "ogra2emf.c". * src/gtk/x11print.c (OutputImageDialogSetupItem) (OutputImageDialogSetup, OutputImageDialogClose, CmOutputImage): don't handle "MenuIdOutputEMFFile" and "MenuIdOutputEMFClipboard". (CmOutputEMF): added. * src/gtk/x11menu.h (MenuID): add "MenuIdOutputCairoEMFFile", "MenuIdOutputEMFFile" and "MenuIdOutputEMFClipboard", remove "MenuIdOutputClipboard". * src/gtk/x11menu.c (NgraphActionEntry): change name from "GraphExportEMFAction" to "GraphExportCairoEMFAction", add "GraphExportEMFFileAction" and "GraphExportEMFClipboardAction". * src/gtk/main.c (obj_add_func_ary): add function "addgra2emf". 2012-07-27 Ito Hiroyuki * src/gtk/ogra2cairofile.c (surface_type, open_emf, close_emf) (create_cairo): remove clipboard output. * src/gra.c (GRAreopen): width and height of the paper should be "GRAClist[GC].width+GRAClist[GC].leftm" and "GRAClist[GC].height+GRAClist[GC].topm" respectively. (GRAinit): width and height of the drawing region should be "width-leftm" and "height-topm" respectively. 2012-07-26 Ito Hiroyuki * src/gtk/ox11menu.c (mxflush): call "cairo_surface_flush()". * src/gtk/ogra2cairo.c (gra2cairo_flush): call "cairo_surface_flush()". (gra2cairo_output): fix typo ("tmp2" to "tmp"). 2012-07-23 Ito Hiroyuki * src/gtk/ogra2cairo.c (gra2cairo_get_utf8_str): added. (gra2cairo_output): use "gra2cairo_get_utf8_str()". * src/gtk/ox11menu.c (menuinit): set default dpi of a EMF file as 576. 2012-07-18 Ito Hiroyuki * pathconv.sh (LC_ALL): set as "C" and export. * src/math/math_scanner.c (get_dec): use function "powl()" only if "HAVE_POWL" is defined. * src/gtk/ox11menu.c (graph_modified_sub): don't call "SetCaption()" and "set_modified_state()". (mxmodified): call "set_modified_state()". * configure.in (AC_CHECK_HEADERS): check "readline.h". 2012-07-10 Ito Hiroyuki * src/gtk/ogra2cairofile.c (open_emf): remove parameters "fname" and "clipboard". (close_emf): change second parameter from "clipboard" to "fname". (gra2cairofile_output): check return value of the function "close_emf()". 2012-07-09 Ito Hiroyuki * src/gtk/ox11menu.c (menuinit): set default dpi of a EMF file as 600. * src/gtk/ogra2cairofile.c (create_reference_dc): removed. (open_emf): use display device as referencs DC. use "SetWorldTransform()" to scale image. 2012-07-06 Ito Hiroyuki * src/gtk/x11lgnd.c (path_list_set_val): set columns "PATH_LIST_COL_X", "PATH_LIST_COL_Y" and "PATH_LIST_COL_POINTS" at once. * src/gtk/ogra2cairofile.c (open_emf, close_emf): added. (create_cairo): use "open_emf()". (gra2cairofile_output): use "close_emf()". 2012-07-05 Ito Hiroyuki * src/gtk/ogra2cairofile.h (surface_type_id): add "TYPE_CLIPBOARD". * src/gtk/ogra2cairofile.c (surface_type, create_cairo) (gra2cairofile_output): support clipboard. * src/gtk/x11menu.h (MenuID): add "MenuIdOutputClipboard". * src/gtk/x11menu.c (ActionEntry): add clipboard action. * src/gtk/x11print.c (OutputImageDialogSetupItem) (OutputImageDialogSetup, OutputImageDialogClose) (CmOutputImage, CmOutputMenu): support clipboard. * initfile/NgraphUI.xml.win: add clipboard menu. 2012-07-03 Ito Hiroyuki * src/gtk/x11lgnd.c (create_mark_color_combo_box) (create_color_combo_box): change order of items. * src/gtk/x11file.c (create_type_color_combo_box): change order of items. 012-07-02 Ito Hiroyuki * src/gtk/x11file.c (create_type_combo_box): use "combo_box_create_mark()". (create_type_combo_box): set visibility of toggle and pixbudf column. (select_type): use "select_obj_color()". (start_editing_type, start_editing): use "tree_view_get_selected_row_int_from_path()". (CmFileWindow): set "foreground" attribute column. * src/gtk/gtk_liststore.h (_list_store): the member "color" is removed. * src/gtk/gtk_liststore.c (create_object_cbox): add columns to show toggle item and set visibility of toggle and pixbuf column. (create_tree_view): don't create invisible column. (tree_view_get_selected_row_int_from_path): added. * src/gtk/gtk_widget.h (OBJ_FIELD_COLOR_TYPE): added. * src/gtk/gtk_widget.c (combo_box_create_mark, select_obj_color): added. * src/gtk/x11lgnd.c (get_points): get number of points. (draw_color_pixbuf): added. (path_list_set_val): support type of interpolation. (path_list_set_val): show number of points. (rect_list_set_val, arc_list_set_val): line type is shown as image. (draw_mark_pixbuf): added. (mark_list_set_val): use "draw_mark_pixbuf()". (rect_size_edited): use "tree_view_get_selected_row_int_from_path()". (LEGEND_COMBO_ITEM, create_mark_color_combo_box) (create_color_combo_box, select_type, select_color) (start_editing_common, start_editing_mark, start_editing_color) (select_line_type, start_editing_line_type, edited_line_type) (start_editing_font, edited_font): added. (CmLegendWindow): set callback functions to columns. 2012-07-01 Ito Hiroyuki * src/gtk/x11file.c (select_color): removed. * src/gtk/x11lgnd.c (mark_list_set_property) (legend_list_set_color): removed. 2012-07-01 Ito Hiroyuki * src/ofile.c (nstrrchr, get_filename_last_index): added. (f2dload_sub): use "get_filename_last_index()" instead of "getitok2()". 2012-06-24 Ito Hiroyuki * src/gtk/x11lgnd.c (get_points): only get first point. (path_list_set_property, text_list_set_property): removed. (path_list_set_val): support "PATH_LIST_COL_TYPE" and "PATH_LIST_COL_ARROW". (text_list_set_val): support "TEXT_LIST_COL_TEXT" and "TEXT_LIST_COL_FONT". * src/gtk/gtk_subwin.c (select_enum, start_editing_enum, enum_cb): added. (start_editing, set_cell_renderer_cb): support G_TYPE_ENUM. (set_combo_cell_renderer_cb): check and save "list[i].edited_id". * src/gtk/x11file.c (Flist): change type of the columns "ax" and "ay" from G_TYPE_ENUM to G_TYPE_PARAM. * src/gtk/gtk_liststore.c (create_column, create_tree_view): check "G_TYPE_PARAM". * src/gtk/x11axis.c (start_editing, select_type, edited): removed. (CmAxisWindow): don't call "set_combo_cell_renderer_cb()". * src/gtk/x11view.c (ViewerEvLButtonDown, ViewerEvLButtonUp) (ViewerEvMouseMove): treat "MOUSESCROLLE". * src/gtk/x11menu.h (MouseMode): add "MOUSESCROLLE". 2012-06-23 Ito Hiroyuki * src/gtk/gtk_subwin.c (sub_window_get_nth_content) (tree_get_selected, tree_copy, tree_delete, tree_move_top) (tree_move_last, tree_move_up, tree_move_down, tree_update) (tree_focus, tree_hidden, tree_set_hidden_state) (ev_key_down_tree): removed. (start_editing): accepts legend window. (toggle_cb): use "g_object_get_data()" and "toggle_boolean()". (set_cell_renderer_cb, set_editable_cell_renderer_cb) (set_combo_cell_renderer_cb, set_obj_cell_renderer_cb): change type of the firest parameter from "struct SubWin *" to "struct obj_list_data *". (cb_destroy): free data.data member of the "SubWin" struct. (copy, delete, move_top, move_last, move_up, move_down, update) (focus, modify_numeric, modify_string, hidden, set_hidden_state): change type of the firest parameter from "struct SubWin *" to "struct obj_list_data *". (toggle_boolean): added. (do_popup): change type of the second parameter from "struct SubWin *" to "struct obj_list_data *". (do_popup): accepts legend window. (sub_window_create): remove last parameter. (sub_window_create): don't create scrolled window. (text_sub_window_create, label_sub_window_create): create scrolled window. (list_widget_create): added. (list_sub_window_create, tree_sub_window_create): use "list_widget_create()". (list_sub_window_must_rebuild, list_sub_window_build) (list_sub_window_set, sub_win_create_popup_menu): change type of the second parameter from "struct SubWin *" to "struct obj_list_data *". * src/gtk/x11axis.c (AxisDialog): change type of the firest parameter from "void *" to "struct obj_list_data *" and remove second parameter. (AxisWinUpdate): add parameter "struct obj_list_data *". (AxisDelCB): added. (axis_list_set_val, pos_edited_common, axis_prm_edited_common) (axiswin_delete_axis): change type of the firest parameter from "struct SubWin *" to "struct obj_list_data *". (CmAxisWindow): use "AxisDelCB" instead of "AxisDel". * src/gtk/x11lgnd.c (Plist, Alist, Rlist, Mlist, Tlist): added. (Llist): removed. (LegendWinPathUpdate, LegendWinRectUpdate, LegendWinArcUpdate) (LegendWinMarkUpdate, LegendWinTextUpdate): added. (LegendWinLegendUpdate): removed. (ObjListUpdate, PathListUpdate, ArcListUpdate, RectListUpdate) (MarkListUpdate, TextListUpdate): added.0 (legend_list_set_color): change type of the firest parameter from "struct LegendWin *" to "struct obj_list_data *" and remove second parameter. (path_list_set_property, mark_list_set_property) (text_list_set_property, path_list_set_val, rect_list_set_val) (arc_list_set_val, mark_list_set_val, text_list_set_val): added. (legend_list_set_val): removed. (popup_show_cb): use "list_store_get_selected_int()" instead of "tree_store_get_selected_nth()". (pos_edited): get column number from the "title" member of "n_list_store". (pos_edited): use "gtk_tree_model_get_iter_from_string()" to get current row instead of "gtk_tree_path_new_from_string()". (rect_size_edited, rect_width_edited, rect_height_edited): added. (width_edited): removed. * src/gtk/x11file.c (FileDialog): change type of the firest parameter from "void *" to "struct obj_list_data *" and remove second parameter. (FileWinFileEdit, file_obj_copy, FileWinFileCopy) (FileWinFileUpdate, FileWinFileDraw, FileWinFit) (file_list_set_val): change type of the firest parameter from "struct SubWin *" to "struct obj_list_data *". (delete_file_obj, FileWinUpdate): add parameter "struct obj_list_data *". * src/gtk/x11menu.h (obj_list_data): added. (SubWin): use "struct obj_list_data *". (LegendWin): removed. * src/gtk/gtk_liststore.c (create_column): set "user-data" to "GtkCellRendererToggle" when the column is editable. * src/gtk/x11merge.c (merge_list_set_val): change type of the firest parameter from "struct SubWin *" to "struct obj_list_data *". (MergeDialog): change type of the firest parameter from "void *" to "struct obj_list_data *". (MergeWinUpdate): add parameter "struct obj_list_data *". * src/omark.c (marktype): moved to "oroot.c". * src/oroot.c (oputmarktype): moved and renamed from "omark.c". * src/ofile.c (file_marktype): use "MARK_TYPE_NUM". (file2d): check argument of the field "mark_type". 2012-06-20 Ito Hiroyuki * src/gtk/main.c (HAVE_READLINE_READLINE_H): used instead of "HAVE_LIBREADLINE". * src/gtk/ox11menu.c (HAVE_READLINE_READLINE_H): used instead of "HAVE_LIBREADLINE". * src/shell.c (getcmdline): use global valuable "Multiline" only when "HAVE_READLINE_READLINE_H" is defined. (HAVE_READLINE_READLINE_H): used instead of "HAVE_LIBREADLINE". * configure.in (READLINE_LIBS): defined when readline library is installed. (AC_CHECK_HEADERS): check "readline/readline.h" 2012-06-16 Ito Hiroyuki * src/gtk/x11opt.c (SetScriptDialogSetupItem): addin selection combobox is always available. * addin/fig2gra.rb: support Ruby 1.9. 2012-06-15 Ito Hiroyuki * src/gtk/x11axis.c (baseline_tab_create): don't call "gtk_widget_set_size_request()". * src/gtk/x11menu.c (setupwindow): call "gtk_toolbar_set_style()" when the version of GTK+ is greater or equal to 3.4.0. 2012-06-14 Ito Hiroyuki * addin/text-in.nsc: vertical offset of text can be changed. 2012-06-13 Ito Hiroyuki * driver/ngp2.in: accepts "-emf" option if EMF output is supported. * src/gtk/ox11dlg.c (dlginput): argument of the field is used as initial string of the text entry. * src/gtk/x11gui.c (DialogInput): add parameter "init_str". * addin/math.nsc: retry when error will be occurred. * src/gtk/ogra2cairo.c (gra2cairo_output): don't call "cairo_save()" on the 'I' command. 2012-06-12 Ito Hiroyuki * driver/ngp2.in (save_gra): copy field of "gra:viewer". * src/gtk/ox11menu.c (mx_clear): call "cairo_reset_clip()" before call "cairo_paint()". 2012-06-11 Ito Hiroyuki * zsh/Makefile.am (dist_zsh_DATA): use "dist_" prefix. * pixmap/Makefile.am (dist_pixmap_DATA): use "dist_" prefix. * initfile/Makefile.am (dist_ngraphconf_DATA): use "dist_" prefix. * doc/html/ja/tutorial/Makefile.am (dist_htmltutorial_DATA): use "dist_" prefix. * doc/html/ja/dialogs/Makefile.am (dist_htmldialog_DATA): use "dist_" prefix. * doc/html/img/Makefile.am (dist_htmlimg_DATA): use "dist_" prefix. * doc/html/Makefile.am (dist_html_DATA): use "dist_" prefix. * demo/Makefile.am (.ngp.in.ngp): use suffix rule. 2012-06-09 Ito Hiroyuki * src/gtk/x11view.c (show_move_animation, mouse_down_zoom) (ViewerEvMButtonDown): disable move animation. 2012-06-07 Ito Hiroyuki * addin/ps2gra.nsc (gra_file): check overwrite. 2012-06-06 Ito Hiroyuki * addin/ps2gra.nsc: add import pdf menu. * addin/fig2gra.rb: print creator comment. * addin/fig2gra.nsc (fig2gra): print creator comment. 2012-06-06 Koichi Akabe * demo/Makefile.am (CLEANFILES): add "demo6.ngp" 2012-06-05 Koichi Akabe * debian/ngraph-gtk.install: add scalable icons. * misc/ngraph.desktop (Icon): add scalable icons. * configure.in: add scalable icons. * icons/scalable/mimetypes/application-x-ngraph.svg: added. * icons/scalable/mimetypes/application-x-ngraph-script.svg: added. * icons/scalable/mimetypes/application-x-ngraph-graphic.svg: added. * icons/scalable/mimetypes/Makefile.am: added. * icons/scalable/apps/ngraph.svg: added. * icons/scalable/apps/Makefile.am: added. * icons/scalable/Makefile.am: added. 2012-06-03 Ito Hiroyuki * addin/fig2gra.nsc (fig2gra): accepts dummy option "-dummy". * addin/tex_equation.nsc: addin scripts are installed not in the directory "$NGRAPHLIB" but "${system::data_dir}/addin". * addin/ps2gra.nsc: addin scripts are installed not in the directory "$NGRAPHLIB" but "${system::data_dir}/addin". 2012-05-30 Ito Hiroyuki * src/gtk/x11print.c (CmOutputViewerB): set "width" and "height" fields of the "gra2dtk" object. * src/gtk/ox11menu.h (SAVE_CONFIG_TYPE_X11MENU): add "SAVE_CONFIG_TYPE_EXTERNAL_VIEWER". * src/gtk/ox11menu.c (exwinloadconfig): removed. (MenuConfigExiView): added. (MenuConfigArrray): add "MenuConfigExiView". (menu_save_config): check "SAVE_CONFIG_TYPE_EXTERNAL_VIEWER". (menuinit): initialize "Menulocal.exwindpi", "Menulocal.exwinwidth" and "Menulocal.exwinheight". * src/gtk/x11lgnd.c (format_value_percent, format_value_degree): added. (LegendArrowDialogSetup): connect "format_value_degree" and "format_value_percent" to the "format-value" signal. * src/gtk/ogra2x11.c (gtkloadconfig): removed. (gra2gtk): add fields "width" and "height". (gtkinit): use "gtk_window_set_default_size()" instead of "gtk_widget_set_size_request()". (gtk_set_size): added. * src/gtk/x11opt.c (add_str_with_int_to_array) (save_ext_viewer_config): removed. (ViewerDialogSetup): change layout. 2012-05-26 Ito Hiroyuki * addin/fitrslt.c: don't use deprecated functions. * addin/addin_common.c: don't use deprecated functions. * addin/calc.c (create_control): don't use deprecated functions. * addin/legend.c: don't use deprecated functions. * src/gtk/gtk_subwin.c (label_sub_window_create): use "gtk_widget_set_halign()" and "gtk_widget_set_valign()" instead of "gtk_misc_set_alignment()". * src/gtk/x11lgndx.c (LegendGaussDialogSetup): don't use deprecated functions. * src/gtk/ogra2x11.c (gtkinit): don't use deprecated functions. * src/gtk/x11axis.c (GridDialogSetup, SectionDialogSetup) (CrossDialogSetup, ZoomDialogSetup, scale_tab_create) (baseline_tab_create, gauge_tab_create, numbering_tab_create) (font_tab_create, position_tab_create): don't use deprecated functions. * src/gtk/gtk_widget.c (add_widget_to_table_sub) (add_copy_button_to_box, item_setup) (create_text_view_with_line_number): don't use deprecated functions. * src/gtk/x11print.c (DriverDialogSetup, OutputDataDialogSetup): don't use deprecated functions. * src/gtk/x11lgnd.c (points_setup): call "gtk_tree_view_column_set_expand()". (points_setup, LegendArrowDialogSetup, LegendRectDialogSetup) (LegendArcDialogSetup, LegendMarkDialogSetup) (legend_dialog_setup_sub, LegendTextDialogSetup) (LegendTextDefDialogSetup): don't use deprecated functions. * src/gtk/x11dialg.c (SelectDialogSetup): don't use deprecated functions. * src/gtk/x11file.c (MathTextDialogSetup, MathDialogSetup) (FitSaveDialogSetup, create_user_fit_frame, FitDialogSetup) (move_tab_create, mask_tab_create, load_tab_create) (math_tab_create, button_set_mark_image, MarkDialogSetup) (plot_tab_create, FileDialogSetupCommon, FileDialogSetup): don't use deprecated functions. (set_fitdialog_sensitivity): set sensitivity of initial value input for user function. (FitDialogSetSensitivity): call "check_fit_func()". * src/gtk/x11view.c (EvalDialogSetup): don't use deprecated functions. * src/gtk/x11commn.c (ProgressDialogCreate): don't use deprecated functions. * src/gtk/x11menu.c (create_message_box, setupwindow): don't use deprecated functions. * src/gtk/x11opt.c (SetScriptDialogSetup, SetDriverDialogSetup) (FontSettingDialogSetup, PrefFontDialogSetup, MiscDialogSetup) (ExViewerDialogSetup, ViewerDialogSetup): don't use deprecated functions. * src/gtk/x11graph.c (PageDialogSetup, SwitchDialogSetup) (DirectoryDialogSetup, LoadDialogSetup, PrmDialogSetup) (SaveDialogSetup): don't use deprecated functions. * src/gtk/x11merge.c (MergeDialogSetup): don't use deprecated functions. 2012-05-23 Ito Hiroyuki * src/shell.c (set_shellevloop, nreadline): use "g_thread_new()" instead of "g_thread_create()" when the version of glib is greater or equal to 2.32. * src/gtk/main.c (main): don't use duplicate function "g_thread_init()" if the version of glib is greater or equal to 2.32. * src/gtk/x11view.c (draw_cairo_arc): check if radius is not less than 1. (ViewerEvScroll): check "e->state" when "e->direction" is "GDK_SCROLL_SMOOTH". 2012-05-22 Ito Hiroyuki * src/gtk/x11view.c (scrollbar_scroll_cb): handle "GDK_SCROLL_SMOOTH". (ViewerEvScroll): multiply "x" and "y" by "SCROLL_INC" when the direction is "GDK_SCROLL_SMOOTH". * src/gtk/gtk_widget.c (set_adjustment): added. (text_view_scroll_event): handle "GDK_SCROLL_SMOOTH". (text_view_scroll_event): use "set_adjustment()". 2012-05-16 Ito Hiroyuki * src/gtk/x11menu.c (detach_toolbar, create_toolbar_box): not used if the version of GTK+ is greater or equal to 3.4. (setupwindow): don't use GtkHandleBox. * src/gtk/gtk_widget.c (show_color_sel, create_color_button): set tool-tip. * src/gtk/x11file.c (select_color): use GtkColorChooserDialog when the version of GTK+ is greater or equal to 3.4. * src/gtk/x11view.c (EvalDialogSetup): change default width of the window. (show_zoom_animation, show_move_animation): call "cairo_set_source()" only once. 2012-05-11 Ito Hiroyuki * src/gtk/gtk_widget.h (NUM_ENTRY_WIDTH): change width of entries. * src/gtk/gtk_widget.c (create_direction_entry): change width of the entry. (show_color_sel, color_button_key_event): not used if the version of GTK+ is greater or equal to 3.4. * src/gtk/ox11menu.c (get_palette, set_palette): not used if the version of GTK+ is greater or equal to 3.4. * src/gtk/x11dialg.c (_set_color, _putobj_color): use "GtkColorChooser" if the version of GTK+ is greater or equal to 3.4. * src/gtk/x11axis.c (position_tab_create): change width of the "Adjust:" entry. * src/gtk/x11opt.c (ViewerDialogSetupItem, ViewerDialogClose): use "GtkColorChooser" if the version of GTK+ is greater or equal to 3.4. * src/gtk/x11view.c (PasteObjectsFromClipboard): use "gdk_window_get_device_position()" instead of "gtk_widget_get_pointer()" if the version of GTK+ is greater or equal to 3.4. (ViewerWinSetup): add "GDK_SCROLL_MASK" and "GDK_SMOOTH_SCROLL_MASK". (ViewerEvScroll): add case for "GDK_SCROLL_SMOOTH". 2012-05-09 Ito Hiroyuki * src/gtk/x11view.c (calc_mouse_x, calc_mouse_y): added. (text_dropped, mouse_up_point, mouse_up_drag, mouse_up_change) (mouse_up_lgend1, mouse_up_lgend2, update_frame_rect) (mouse_move_drag, mouse_move_change, ViewerEvMouseMove) (SetVRuler, SetHRuler): use "calc_mouse_x()" and/or "calc_mouse_y()". 2012-05-08 Ito Hiroyuki * src/math/math_basic_function.c (math_func_rand): use "g_random_double()". (math_func_srand): use "g_random_set_seed()". (create_random_buf): removed. 2012-05-01 Ito Hiroyuki * src/gtk/x11view.c (show_zoom_animation, show_move_animation): don't call "gdk_window_invalidate_rect()". (ViewerEvPaint): check "ZoomLock". 2012-04-27 Ito Hiroyuki * src/gtk/x11view.c (mouse_down_zoom): now cursor position is static. (ViewerEvScroll): control + wheel works as zoom. (get_range_max): added. (ChangeDPI): use "get_range_max()". (show_zoom_animation, show_move_animation): added. (mouse_down_zoom): use "show_zoom_animation()" and "show_move_animation()". (ViewerEvMButtonDown): use "show_move_animation()". * src/gtk/x11menu.h (Viewer): remove members "hupper" and "vupper". 2012-04-26 Ito Hiroyuki * src/gtk/x11view.c (ChangeDPI): use "nround()" to avoid floating point error when calculating scroll position. 2012-04-22 Ito Hiroyuki * src/shell.c (remove_duplicate_history): added. (shget): combine multi-line input. (getcmdline, checkcmd): set "MultiLine" state. 2012-04-20 Ito Hiroyuki * src/shell.c (checkcmd, gettok): accepts here-document "<<-". 2012-04-19 Ito Hiroyuki * src/shellux.c (SleepThread): argument of the function "Sleep()" is milliseconds. 2012-04-14 Ito Hiroyuki * misc/ngraph.keys: filename is changed from "ngraph.key". * misc/ngraph.desktop (Exec): special field code "%f" is added. 2012-04-11 Ito Hiroyuki * addin/ps2gra.nsc: fix error message. * src/ofile.c (rectout): use "GRAdrawpoly()" instead of "GRArectangle()". (draw_rect): added. (barout): use "draw_rect()" instead of "GRAdrawpoly()" when draw outline of the bar. 2012-04-07 Ito Hiroyuki * src/ofile.c (poly_add_elements): fix calculation to avoid influence of floating point error. 2012-04-06 Ito Hiroyuki * src/math/math_scanner.c (get_dec): fix calculation to reduce floating point error. 2012-04-05 Ito Hiroyuki * src/ofile.c (file_color, file_alpha, file_rgb_sub) (file_hsb_sub, file_marksize, file_marktype): check parameters are normal value or not. (draw_polygon): added. (polyout): use "draw_polygon()". (accept_ascii_only): added. (file2d): "ifs" and "remark" fields are accepts only printable ascii character. (check_ifs_init): check if the index of the array is positive. 2012-04-04 Ito Hiroyuki * demo/Makefile.am: add settings for demo#6. * demo/demo.ngp.in: add demo#6. * demo/demo6.dat: added. * demo/demo6.ngp.in: added. * src/ofile.c (uniq_points): fix index pf the array. 2012-04-03 Ito Hiroyuki * src/ofile.c (poly_add_point, poly_add_clip_point) (poly_pos_sort_cb, poly_set_pos, poly_add_elements): added. (polyout): remove parameters related to line attributes. * src/gtk/x11file.c (FileWinUpdate): don't use "FileWinExpose()". (FileWinExpose): removed. (CmFileWindow): don't connect "draw" or "expose-event" signal. (CmFileWindow): call "FileWinUpdate()". * src/gtk/x11axis.c (AxisWinUpdate): don't use "AxisWinExpose()". (AxisWinExpose): removed. (CmAxisWindow): don't connect "draw" or "expose-event" signal. (CmAxisWindow): call "AxisWinUpdate()". * src/gtk/x11merge.c (MergeWinUpdate): don't use "MergeWinExpose()". (MergeWinExpose): removed. (CmMergeWindow): don't connect "draw" or "expose-event" signal. (CmMergeWindow): call "MergeWinUpdate()". * src/gtk/x11lgnd.c (LegendWinUpdate): don't use "LegendWinExpose()". (LegendWinExpose): removed. (CmLegendWindow): don't connect "draw" or "expose-event" signal. (CmLegendWindow): call "LegendWinUpdate()". 2012-03-30 Ito Hiroyuki * addin/legend.c (makescript): add condition to check plot type "polygon_solid_fill". * src/ofile.h (FILE_OBJ_PLOT_TYPE): add plot type "polygon_solid_fill". * src/ofile.c (f2dtypechar): add plot type "polygon_solid_fill". (add_polygon_point, remove_same_points, polyout): added. (f2ddraw): add case "PLOT_TYPE_POLYGON_SOLID_FILL". * src/gtk/x11file.c (FileDialogType): add case "PLOT_TYPE_POLYGON_SOLID_FILL". (draw_type_pixbuf): simplify conditions. (create_type_combo_box): suffix of the array "curvelist" is not "i" but "j". 2012-03-29 Ito Hiroyuki * src/ofile.c (f2dgetcoord): call "arraydel()" when the number of elements is greater than zero. 2012-03-28 Ito Hiroyuki * addin/fitrslt.nsc: use int object to count number of fitting plots. * addin/text-in.nsc: an id of a file instance can be selected. use "dialog::integer_entry" to specify column number. use color of the file object as text color. * doc/html/ja/addin.html: update document. * doc/html/ja/script.html.in: update document. * doc/html/ja/object.html.in: add link to title of each object. * doc/html/objlist.nsc: add link to title of each object. * initfile/Ngraph.nsc (append_addin_list): check size of the sarray object. * src/gtk/ox11menu.c (mx_addin_list_append): check return value of the function "getobj()". (mx_addin_list_append): don't modify sarray object. 2012-03-27 Ito Hiroyuki * src/gtk/main.c (set_dir_defs): use function "g_locale_to_utf8()" instead of "g_locale_from_utf8()". * src/gtk/ox11menu.c (mx_addin_list_append): check if strings are valid UTF-8. * src/gtk/x11opt.c (remove_char): added. (SetScriptDialogSetupItem): use "remove_char()". 2012-03-25 Ito Hiroyuki * src/gtk/x11opt.c (SetScriptDialogSetupItem): use basename of the add-ins as add-in combo-box. 2012-03-23 Ito Hiroyuki * src/gtk/x11dialg.h (SetScriptDialog): add member "assins". * src/gtk/ox11menu.h (menulocal): add member "addin_list". * src/gtk/ox11menu.c (gtkmenu): add field "addin_list_append". (mx_addin_list_append, free_script_list): added. (menulocal_finalize): use "free_script_list()". * src/gtk/x11opt.c (active_script_changed): added. (SetScriptDialogSetupItem): initialize addin combo box. (SetScriptDialogSetup): add addin combo box. * initfile/Ngraph.nsc (append_addin_list): added. 2012-03-16 Ito Hiroyuki * src/math/math_expression.c (math_expression_calculate, calc): "val->type" is always "MATH_VALUE_ERROR" when an error is occurred during calculation. (FACT_MAX): added. (calc): the operator "!" accepts a number lesser then "FACT_MAX". * src/math/math_basic_function.c (math_func_choose): added. (create_random_buf): added. (math_func_rand, math_func_srand): use functions included in GSL if available. * src/shellcm.c (cmdexpr): use "%.0f" instead of "%d" for "iexpr" command. (cmdexpr): use "round()" instead of "nround()" for "iexpr" command. 2012-03-14 Ito Hiroyuki * debian/control (Build-Depends): add "libreadline6-dev". 2012-03-07 Ito Hiroyuki * addin/addin_common.c (fgets_str): return NULL instead of 0. 2012-02-28 Ito Hiroyuki * src/gtk/x11print.c (init_print): removed. 2012-02-22 Ito Hiroyuki * src/gtk/x11lgnd.c (LegendArrowDialogSetup) (LegendRectDialogSetup, LegendMarkDialogSetup) (LegendTextDialogSetup, LegendArcDialogSetup): add delete button again. * src/ofile.c (set_data_progress): consider "fp->bufnum". (getdata_skip_step): call "set_data_progress()". (getdata_sub1): check return value of the function "getdata_sub2()". * addin/fitrslt.c (savescript): width of the frame is now a multiple of 100. * addin/legend.c (savescript): width of the frame is now a multiple of 100. 2012-02-21 Ito Hiroyuki * src/gtk/x11file.c (FitDialogSetupItem) (FitDialogSetSensitivity): set "user_func" field aftr setting of "derivative". (check_fit_func): added. (create_user_fit_frame): connect "changed" signal to the function "check_fit_func()". (create_user_fit_frame): connect "focus-in" signal to the function "func_entry_focused()". (FitDialogResult): 4th argument of the function "math_equation_add_parameter()" should be 2. (func_entry_focused): use parameter "user_data" as a instance of the "GtkEntryCompletion". (FitDialogApply): save user fitting function to the history. * src/gtk/x11menu.h (NgraphApp): add member "fit_list". * src/gtk/x11menu.c (FIT_HISTORY): added. (load_hist, save_entry_history): load and save history of user fitting functions. 2012-02-16 Ito Hiroyuki * mingw/windows_make.sed: update install path. * initfile/Ngraph.ini.win: the first line should be blank or comment. * src/gtk/main.c: add global variable "ADDINDIR"(only for Windows). 2012-02-15 Ito Hiroyuki * doc/html/index.html: remove English documents from the package. * doc/html/Makefile.am: remove English documents from the package. * src/gtk/x11graph.c (check_help_file): default language of the help file is Japanese. * configure.in: remove English documents from the package. * src/gtk/gtk_entry_completion.c (add_completion): check if the string is valid UTF8. 2012-02-14 Ito Hiroyuki * src/gtk/gtk_entry_completion.c (add_completion): use "g_strchomp()". * misc/debian/ngraph-gtk.install: update install directory of demonstration files. * misc/debian/ngraph-gtk-addins.install: update install directory. * misc/debian/watch (http): fix URL. * misc/debian/rules: remove rule "override_dh_compress". * misc/debian/control (Description): fix description of addin package. * mingw/windows_make.sed: change "pkgdatadir". * addin/Makefile.am (addindir): added. * src/osystem.c (sysinit): free string set to the field "doc_dir". (nsystem): add field "doc_dir". * src/shell.c (ngraphenvironment): add "addin" to the "PATH" environment instead of "data". * src/gtk/dir_defs.h.in (ADDINDIR): added. * src/gtk/main.c (set_dir_defs): initialize "ADDINDIR". (set_path_env): add "ADDINDIR" to the "PATH" environment instead of "DATADIR". (main): initialize "doc_dir" field of the system object. * demo/Makefile.am (demodir): change install directory to "pkgdatadir". 2012-02-13 Ito Hiroyuki * mingw/associate.bat: change line feed code. * mingw/echo.nsc: show program neme and version. 2012-02-10 Ito Hiroyuki * src/gtk/dir_defs.h.in: add global variable "NDATADIR" when "WINDOWS" is teue. * src/shell.c (ngraphenvironment): set "data_dir" of the system object to the "PATH" environment. * src/gtk/main.c (main): don't call "set_path_env()". (main): initialize the "data_dir" field of the system object. * src/osystem.c (nsystem): add field "data_dir". (sysdone): free string set to the field "data_dir". * pathconv.sh: number of the argument is fixed. * addin/Makefile.am (dist_pkgdata_DATA): addins are installed in "pkgdatadir". * misc/debian/ngraph-gtk-addins.install: addins are installed in "pkgdatadir". * mingw/windows_make.sed: replace "pkglibexecdir" and "pkgdatadir" to bin directory and lib directory respectively. * mingw/windows.sh: don't move addins to the bin directory. copy hicolor icons to share/icons if exist. 2012-02-09 Ito Hiroyuki * misc/debian/ngraph-gtk.install: update path of "pkglibexedir". * misc/debian/ngraph-gtk-addins-base.install: update path of "pkglibexedir". * misc/debian/ngraph-gtk-addins.install: update path of "pkglibexedir". * misc/debian/control (Build-Depends): use debhelper version 9. * misc/debian/compat: use version 9. * addin/Makefile.am (calc_CFLAGS, fitrslt_CFLAGS): remove option "-D_FORTIFY_SOURCE". (dist_pkglibexec_SCRIPTS, pkglibexec_PROGRAMS): installed in pkglibexedir. * doc/html/ja/Makefile.am (intro.html): use "pkglibexecdir" instead of "libexecdir". * doc/html/en/Makefile.am (intro.html): use "pkglibexecdir" instead of "libexecdi5D5D5Dr". * initfile/Makefile.am (Ngraph.ini): use "pkglibexecdir" instead of "libexecdir". * src/Makefile.am (ngraph_CFLAGS): remove option "-D_FORTIFY_SOURCE". (pkglibexec_PROGRAMS): installed in pkglibexedir. * src/math/Makefile.am (libmath_la_CFLAGS): remove option "-D_FORTIFY_SOURCE". * src/gtk/Makefile.am (libngraph_la_CFLAGS): remove option "-D_FORTIFY_SOURCE". 2012-02-09 Ito Hiroyuki * addin/legend.c (savescript): add font style setting. 2012-01-31 Ito Hiroyuki * src/gtk/x11file.c (button_set_mark_image): check return value of "gtk_image_new_from_pixbuf()" or "gtk_image_new_from_pixmap()". 2012-01-27 Ito Hiroyuki * mingw/windows.sh: add "--libexecdir" option for "configure" script. * addin/Makefile.am (dist_libexec_SCRIPTS): used instead of "pkglib_DATA". (libexec_PROGRAMS): used instead of "pkglib_PROGRAMS". (pkglib_SCRIPTS, EXTRA_DIST): removed. * doc/html/en/Makefile.am (dist_html_DATA): used instead of "html_DATA". (nodist_html_DATA, CLEANFILES): added * doc/html/ja/Makefile.am (dist_html_DATA): used instead of "html_DATA". (nodist_html_DATA, CLEANFILES): added * initfile/Makefile.am (nodist_ngraphconf_DATA): added. (Ngraph.ini): now install directory of the "terminal" command is not "lib" but "libexec". (CLEANFILES): added. * driver/Makefile.am (CLEANFILES): added. * src/Makefile.am (libexec_PROGRAMS): now install directory of the "terminal" command is not "lib" but "libexec". * src/math/Makefile.am (BUILT_SOURCES): added. * src/gtk/Makefile.am (nodist_libngraph_la_SOURCES) (BUILT_SOURCES, CLEANFILES): added. * demo/Makefile.am (nodist_demo_DATA): files "demo[1-4].ngp" are not included in tarball. 2012-01-23 Ito Hiroyuki * src/gtk/x11lgnd.c (set_sensitive_with_label): removed. (legend_dialog_set_sensitive): use "set_widget_sensitivity_with_label()". * src/gtk/x11print.c (OutputImageDialogSetupItem): use functions "set_widget_sensitivity_with_label()" and "get_mnemonic_label()". * src/gtk/x11opt.c (use_external_toggled, load_file_toggled): use function "set_widget_sensitivity_with_label()". * src/gtk/x11graph.c (PageDialogPage): use function "set_widget_sensitivity_with_label()". * src/gtk/x11file.c (set_fitdialog_sensitivity) (set_user_fit_sensitivity, FitDialogSetSensitivity) (FileDialogType): use function "set_widget_sensitivity_with_label()". * src/gtk/x11axis.c (bg_button_toggled, num_direction_changed): use function "set_widget_sensitivity_with_label()". * src/gtk/gtk_widget.c (get_mnemonic_label) (set_widget_sensitivity_with_label): added. (get_widget): removed. 2012-01-22 Ito Hiroyuki * src/gtk/x11file.c (FileDialogType): set sensitivity of widgets "d->fit" and "d->fit_label". (plot_tab_create): initialize "d->fit_label". * src/gtk/x11dialg.h (FileDialog): add member "fit_label". 2012-01-21 Ito Hiroyuki * src/gtk/x11dialg.h (FitDialog): add member "usr_def_prm_tbl". * src/gtk/x11file.c (set_fitdialog_sensitivity) (FitDialogSetSensitivity): set sensitivity of the widget "usr_def_prm_tb". (create_user_fit_frame): initialize "usr_def_prm_tbl". 2012-01-20 Ito Hiroyuki * src/gtk/x11lgnd.c (text_dialog_show_tab): removed. (LegendTextDialogSetup): don't connect "show" signal. * src/gtk/x11axis.c (scale_tab_create): use "map" signal instead of "show" signal. (TIME_FORMAT_STR): added. (numbering_tab_create): add tool tip for "Date/time format" entry. (axis_dialog_show_tab): removed. (AxisDialogSetup): don't connect "show" signal. * src/gtk/x11file.c (file_dialog_show_tab): removed. (FileDialogSetupCommon): don't connect "show" signal. * src/gtk/gtk_widget.c (add_copy_button_to_box): use "map" signal instead of "show" signal. 2012-01-19 Ito Hiroyuki * src/gtk/x11dialg.h (AxisDialog): remove member "del_btn" and "CanDel". * src/gtk/x11view.c (ViewerAlignType): added. (ViewerEvKeyDown): actions related to delete and change order of objects are managed in "GtkAction". (ViewerPopupMenu): removed. (ViewerUpdateCB): added. (CmEditMenuCB): manage actions related to change order of an object. * src/gtk/x11axis.c (AxisDialogSetup): remove redundant call of the function "gtk_widget_set_sensitive()". (AxisDialog): the parameter "candel" is not used. * src/gtk/x11menu.c (ActionEntry): "Edit/drow Order" menu item is added. * addin/timer.nsc (rectangle): use "dup" command. * src/shell.c (cmdtable): add internal command "dup". * src/shellcm.c (cmdup): added. 2012-01-13 Ito Hiroyuki * src/gtk/gtk_subwin.c (cell_focus_out, start_editing): connect "cell_focus_out()" to "focus-out-event" only when the version of GTK+ is 3.0. * src/gtk/gtk_ruler.c (get_thickness): added. (nruler_size_request, nruler_draw_ticks, nruler_draw_pos): use "get_thickness()". 2012-01-06 Ito Hiroyuki * src/gtk/ox11menu.c (mx_get_locale): added. (gtkmenu): add field "locale". * src/gtk/main.c (n_getlocale): added. (main): get locale string. * src/gtk/x11graph.c (check_help_file): added. (CmHelpHelp): use "check_help_file()" to get full-path of help file. 2011-12-22 Ito Hiroyuki * addin/legend.c (caption_edited, caption_toggled): remove unused variables. * addin/addin_common.h (gtk_hbox_new, gtk_vbox_new): don't use deprecated functions. * src/gtk/gtk_common.h (gtk_hbox_new, gtk_vbox_new) (gtk_hbutton_box_new, gtk_hseparator_new, gtk_hscrollbar_new) (gtk_vscrollbar_new, gtk_hscale_new_with_range): don't use deprecated functions. * src/gtk/x11opt.c (FontSettingDialogAddAlternative): use "GtkFontChooserDialog" when the version of GTK+ library is greater or equal to 3.2. * src/gtk/gtk_widget.c (set_linumber_color): use "gtk_widget_override_color()" to set color of text. initialize "alpha" member of the structure "GdkRGBA". The range of each member of the structure "GdkRGBA" is from 0.0 to 1.0. 2011-12-18 Ito Hiroyuki * addin/fitrslt.c (makescript, savescript): use "iarray" object to calculate the maximum length of the text. * addin/legend.c (caption_toggled, caption_edited): use "gtk_tree_model_get()" to get file id. (COLUMN_CHECK, COLUMN_ID): added. (COLUMN_CAPTION): change name. (savescript): use "iarray" object to calculate the maximum length of the text. 2011-12-14 Ito Hiroyuki * addin/legend.c (savescript): fix font setting. 2011-12-14 Ito Hiroyuki * addin/tex_equation.nsc: add quotation mark around the variable "$NGRAPHLIB". * addin/ps2gra.nsc: add quotation mark around the variable "$NGRAPHLIB". * addin/legend.nsc: add quotation mark around the variable "$NGRAPHLIB". * addin/fitrslt.nsc: add quotation mark around the variable "$NGRAPHLIB". * addin/fft.nsc: add quotation mark around the variable "$NGRAPHLIB". * addin/calc.nsc: add quotation mark around the variable "$NGRAPHLIB". 2011-12-07 Ito Hiroyuki * initfile/NgraphUI.xml: remove "View Clear" button. * initfile/NgraphUI.xml.win: remove "View Clear" button. 2011-12-06 Ito Hiroyuki * misc/ngraph.1: escape '-'. * misc/ngraph.desktop (Encoding): removed. * debian/control (Description): add text. * src/gtk/x11menu.c (ActionEntry): change menu strings from "Open" to "Add". * initfile/NgraphUI.xml: chang name of action from "DataOpenAction" and "MergeOpenAction" to "DataAddAction" and "MergeAddAction" respectively. 2011-12-05 Ito Hiroyuki * src/gtk/x11file.c (FitDialogSetup, FileDialogSetup): remove "Delete" button from dialog. * src/gtk/x11merge.c (MergeDialogSetup): remove "Delete" button from dialog. * src/gtk/x11axis.c (GridDialogSetup, SectionDialogSetup) (CrossDialogSetup, AxisDialogSetup): remove "Delete" button from dialog. * src/gtk/x11lgnd.c (LegendArrowDialogSetup) (LegendRectDialogSetup, LegendArcDialogSetup) (LegendMarkDialogSetup, LegendTextDialogSetup): remove "Delete" button from dialog. 2011-12-05 Ito Hiroyuki * debian/ngraph-gtk.manpages: added. * configure.in: change name of the package from "Ngraph-gtk" to "ngraph-gtk". * src/gtk/main.c (set_path_env): change order of "PATH" environment. 2011-11-23 Ito Hiroyuki * misc/ngp2.1: added. * misc/ngraph.1: added. 2011-11-21 Ito Hiroyuki * configure.in (GTK2_REQUIRED_VERSION, GTK3_REQUIRED_VERSION): added. * configure.in: use GTK+3 if available. * icons/application-x-ngraph.xpm: added. * configure.in (AC_CONFIG_FILES): add "icons/Makefile" and "misc/Makefile". * MAKEFILE.am (SUBDIRS): add "icons" and "misc". 2011-11-21 Koichi Akabe * debian/rules: updated for debian repository. * debian/control: updated for debian repository. * debian/install: added. 2011-11-21 Ito Hiroyuki * addin/timer.nsc: remove shebang. * addin/tex_equation.nsc: remove shebang. * addin/ps2gra.nsc: remove shebang. * addin/fig2gra.nsc: remove shebang. * addin/cal.nsc: remove shebang. 2011-11-20 Ito Hiroyuki * src/gtk/Makefile.am (libngraph_la_CFLAGS): remove settingis -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DG_DISABLE_SINGLE_INCLUDES=1 -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES=1 -DGSEAL_ENABLE=1 * src/Makefile.am (ngraph_CFLAGS): remove settingis -DG_DISABLE_DEPRECATED=1 -DG_DISABLE_SINGLE_INCLUDES=1 * addin/Makefile.am (APP_CFLAGS): remove settingis -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DG_DISABLE_SINGLE_INCLUDES=1 \ -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES=1 -DGSEAL_ENABLE=1 * debian/copyright: specify GPL version. 2011-11-14 Ito Hiroyuki * addin/Makefile.am (pkglib_DATA): add "timer.nsc". * addin/timer.nsc: added. 2011-11-08 Ito Hiroyuki * src/gtk/x11menu.c (recent_filter): use "g_ascii_strncasecmp()" and "g_ascii_strcasecmp()" instead of "g_strcmp0()". * src/gtk/main.h (NGRAPH_TEXT_MIME): added. 2011-11-04 Ito Hiroyuki * src/gtk/main.h (NGRAPH_GRAPH_MIME, NGRAPH_DATA_MIME): added. * src/gtk/x11dialg.h (MiscDialog): remove member "history". * src/gtk/ox11menu.c (menu_save_config_sub, mgtkloadconfig) (menulocal_finalize, menuinit): remove codes related to data file history. * src/gtk/x11file.c (CmFileHistory): use "GtkRecentChooser". * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup) (MiscDialogClose): remove codes related to data file history. * src/gtk/x11commn.c (add_hist): added. (AddNgpFileList, AddDataFileList): use "add_hist()". * src/gtk/ox11menu.h (menulocal): remove member "datafilelist". * src/gtk/x11menu.c (SaveHistory, create_recent_data_menu) (add_underscore): removed. (recent_filter): added. (create_action_group): use "gtk_recent_filter_add_custom()" instead of "gtk_recent_filter_add_mime_type()". 2011-11-02 Ito Hiroyuki * addin/calc.c (load_settings): set maximum length of a string of "%s" parameter for the function "sscanf()". * addin/fft.c (MAXP, MAXDATA): increase maximum data number. * src/gtk/main.h (APP_MIME): added. * src/gtk/x11menu.c (create_action_group): use "gtk_recent_filter_add_mime_type()" instead of "gtk_recent_filter_add_application()" and "gtk_recent_filter_add_pattern()". * src/gtk/x11commn.c (AddNgpFileList): use "APP_MIME". 2011-11-01 Ito Hiroyuki * addin/fitrslt.c: move some functions to "addin_common.c". * addin/legend.c: added. * src/gtk/x11menu.c (application): call "SaveHistory()" before call "gtk_ui_manager_remove_ui()". 2011-10-24 Ito Hiroyuki * initfile/Ngraph.ini.win (script): add fft add-in. * src/gtk/main.c (set_dir_defs): "LIBDIR" is now "app_path/bin". * mingw/windows.sh: add-in programs are now installed in "$PKG_DIR/bin". * addin/Makefile.am (pkglib_SCRIPTS): remove "calc.tcl" and "fitrslt.tcl". (pkglib_PROGRAMS): add "calc" and "fitrslt". * addin/addin_common.h: added. * addin/addin_common.c: added. * addin/calc.c: added. * addin/fitrslt.c: added. 2011-10-07 Ito Hiroyuki * debian/control (Recommends): add pstoedit. * addin/calc.tcl (savedata, savescript): remove white space in the formula. 2011-09-26 Ito Hiroyuki * debian/ngraph.bash: add "-V" and "--VERSION" option. add "MJD" to the parameter of the "-ex" and "-ey" option. * zsh/_ngraph: add "-V" and "--VERSION" option. add "MJD" to the parameter of the "-ex" and "-ey" option. 2011-09-16 Ito Hiroyuki * src/gtk/gtk_subwin.c (sub_window_show): use "gtk_window_present()" instead of "gtk_widget_show()". * src/gtk/x11commn.c: fix typo. 2011-09-14 Ito Hiroyuki * src/gtk/main.c: "License" is defined when the version of GTK+ is less than 3. 2011-09-13 Ito Hiroyuki * src/ofile.c (set_data_progress): consider "d->hskip". * src/gtk/x11lgnd.c (width_edited, pos_edited): the argument of the function "LegendWinUpdate()" is "TRUE". 2011-09-12 Ito Hiroyuki * src/gtk/x11commn.c (ProgressDialogCreate): call "gtk_progress_bar_set_show_text()" when the version of GTK+ is 3. * src/gtk/x11graph.c (CmHelpAbout): use "license-type" instead of "license" when the version of GTK+ is 3. 2011-09-09 Ito Hiroyuki * src/gtk/ogra2cairo.h (gra2cairo_local): use "cairo_region_t" instead of "GdkRegion" when the version of GTK+ is 3. * src/gtk/ogra2cairo.c (gra2cairo_clip_region): use "cairo_region_t" instead of "GdkRegion" when the version of GTK+ is 3. * src/gtk/ox11menu.h (menulocal): type of "pix" is not "GdkPixmap" but "cairo_surface_t". (menulocal): use "cairo_region_t" instead of "GdkRegion" when the version of GTK+ is 3. * src/gtk/x11dialg.h (DIALOG_PROTOTYPE): type of "vbox" is not "GtkVBox" but "GtkBox". (LegendDialog): type of "arrow_pixmap" is not "GdkPixmap" but "cairo_surface_t". * src/gtk/x11gui.c (DialogInput, DialogRadio, DialogCombo) (DialogComboEntry, DialogSpinEntry, DialogCheck): type of "vbox" is not "GtkVBox" but "GtkBox". * src/gtk/ox11menu.c (mx_clear): use "cairo_region_t" instead of "GdkRegion" when the version of GTK+ is 3. * src/gtk/x11file.c (button_set_mark_image, draw_type_pixbuf) (create_type_combo_box): use "cairo_surface_t" instead of "GdkPixmap" when the version of GTK+ is 3. * src/gtk/x11view.c (region): use "cairo_region_t" instead of "GdkRegion" when the version of GTK+ is 3. (paste_cb, mouse_move_scroll): use "gdk_window_get_width()" and "gdk_window_get_height()" instead of "gdk_window_get_geometry()" when the version of GTK+ is greater than 2.24. (ViewerWinSetup, ShowCrossGauge, SetHRuler, SetVRuler): use "gdk_window_get_width()" and "gdk_window_get_height()" instead of "gdk_drawable_get_size()" when the version of GTK+ is greater than 2.24. (popup_menu_position): use "gdk_window_get_position()" instead of "gdk_window_get_geometry()" when the version of GTK+ is greater than 2.24. (ViewerEvPaint): use "cairo_set_source_surface()" instead of "gdk_cairo_set_source_pixmap()." (ViewerEvPaint): added codes for GTK+ 3. (create_pix): use "cairo_surface_t" instead of "GdkPixmap". (OpenGC): added codes for GTK+ 3. * src/gtk/ogra2x11.c (gtkevpaint): added codes for GTK+ 3. (gtklocal): use "cairo_surface_t" instead of "GdkPixmap" when the version of GTK+ is 3. * src/gtk/ogra2gdk.c (gra2gdk_create_pixmap): use "cairo_surface_t" instead of "GdkPixmap" when the version of GTK+ is 3. * src/gtk/gtk_widget.c (text_view_size_allocate): fix typo. (set_linumber_color): use "gtk_widget_override_background_color()" instead of "gtk_widget_modify_base()" when the version of GTK+ is 3. (get_preferred_width, get_preferred_height): added for GTK+ 3. (create_text_view_with_line_number): added codes for GTK+ 3. (text_view_with_line_number_set_font): use "gtk_widget_override_font()" instead of "gtk_widget_modify_font()" when the version of GTK+ is 3. * src/gtk/x11lgnd.c (LegendArrowDialogPaint) (LegendArrowDialogScaleL, LegendArrowDialogSetup) (create_character_view, LegendWinExpose, CmLegendWindow): add codes for GTK+ 3. * src/gtk/x11menu.h (NgraphApp): use "cairo_surface_t" instead of "GdkPixmap" when the version of GTK+ is 3. * src/gtk/gtk_common.h: add "GDK_KEY_*" definitions. * src/gtk/x11menu.c (create_markpixmap, free_markpixmap): use "cairo_surface_t" instead of "GdkPixmap" when the version of GTK+ is 3. * src/gtk/gtk_liststore.c (start_editing_obj): add "const" to the 5th parameter when the version of GTK+ is 3. * src/gtk/x11info.c (InfoWinSetFont): use "gtk_widget_override_font()" instead of "gtk_widget_modify_font()" when the version of GTK+ is 3. * src/gtk/gtk_subwin.c (cell_focus_out): added for GTK+ 3. (start_editing): add codes for GTK+ 3. * src/gtk/x11lgndx.c (LegendGaussDialogPaint) (LegendGaussDialogSetup): add codes for GTK+ 3. * src/gtk/gtk_ruler.c (ruler_new): add codes for GTK+ 3. (nruler_get_preferred_width, nruler_get_preferred_height): added for GTK+ 3. (nruler_size_request, nruler_expose, nruler_make_pixmap) (nruler_draw_ticks, nruler_draw_pos): add codes for GTK+ 3. 2011-08-15 Ito Hiroyuki * initfile/NgraphUI.xml.win: fix typo. * initfile/NgraphUI.xml: fix typo. * src/gtk/x11menu.c (ActionEntry): fix typo. 2011-08-09 Ito Hiroyuki * src/math/math_equation.c (check_const_sub): check "exp->u.assign.right" instead of "exp->u.bin.right" when type of the expression is "MATH_EXPRESSION_TYPE_ASSIGN". 2011-08-08 Ito Hiroyuki * src/gtk/gtk_subwin.c (sub_window_minimize) (sub_window_restore_state): removed. 2011-08-07 Ito Hiroyuki * src/gtk/gtk_subwin.c (ev_sub_win_key_down): use "window_action_set_active()" instead of "gtk_widget_hide()". * src/gtk/x11file.c (execute_fit_dialog): added. (FileDialogFit, FileWinFit): use "execute_fit_dialog()". 2011-07-31 Ito Hiroyuki * src/shellcm.c (cmwhich): check built-in command. 2011-07-29 Ito Hiroyuki * src/gtk/x11lgnd.c (LegendWinLegendUpdate): save "d->select" and "d->legend_type" when "ret" is equal to "IDOK". 2011-07-28 Ito Hiroyuki * src/ofile.c (getdata2, getminmaxdata, f2dgetdataraw): use stack instead of heap for the data buffer. (getdata, getdata2, getminmaxdata, f2dgetdataraw): size of the data buffer is "FILE_OBJ_MAXCOL + 3" (for error-bar plot). 2011-07-27 Ito Hiroyuki * src/gtk/x11gui.c (message_box): increase maximum length of a message. * src/ofile.c (getminmaxdata): bug fix: update "fp->maxy.val" instead of "fp->maxx.val". (getdataraw): bug fix: set value to not "fp->d3" but "d3". 2011-07-22 Ito Hiroyuki * addin/ps2gra.nsc: change name of functions. * addin/fig2gra.nsc: change name of functions. * addin/fig2gra.rb (set_line_attribute): fix typo. * addin/tex_equation.nsc: change name of functions. * src/nstring.c (nstrncat): this function is not used. 2011-07-21 Ito Hiroyuki * addin/tex_equation.nsc: fix typo. 2011-07-20 Ito Hiroyuki * addin/fig2gra.nsc: added. * addin/tex_equation.nsc: use "fig2gra.nsc" when ruby is not available. * addin/ps2gra.nsc: use "fig2gra.nsc" when ruby is not available. * src/object.c (get_array_argument): call "g_strfreev()" when the function "g_shell_parse_argv()" returns false. * src/oregexp.c (regexp_match): call "g_match_info_free()" when the function "g_regex_match()" returns false. 2011-07-18 Ito Hiroyuki * src/oiarray.c (oarray_get_index, oarray_create_math) (iarray_map): added. (iarrayget, iarrayput, iarrayins, iarraydel): use "oarray_get_index()". (oiarray): add field "map". * src/odarray.c (darrayget, darrayput, darrayins, darraydel): use "oarray_get_index()". (odarray): add field "map". * src/osarray.c (sarrayget, sarrayput, sarrayins, sarraydel): use "oarray_get_index()". * test/sarray_test.nsc: add tests for "get" and "map" fields. * test/iarray_test.nsc: add tests for "get" and "map" fields. * test/darray_test.nsc: add tests for "get" and "map" fields. 2011-07-16 Ito Hiroyuki * src/oint.c (int_times, int_inc, int_dec): added. (oint): add fields "times", "inc" and "dec". 2011-07-13 Ito Hiroyuki * addin/ps2gra.nsc: remove automatically created files. * addin/fig2gra.rb (#draw_poly_line, #uniq_pos): close path when start and end points are same position. * initfile/Ngraph.ini.in (script): add "import PS" and "import EPS" addin. * addin/ps2gra.nsc: added. * addin/Makefile.am: add ps2gra.nsc * src/gtk/x11view.c (ncopyobj): don't copy "name" field. 2011-07-12 Ito Hiroyuki * src/osystem.c (nsystem): type of the field "pid" is "NINT". 2011-07-12 Ito Hiroyuki * src/osystem.c (nsystem): add field "pid". (syspid): added. * src/math/math_basic_function.c (math_func_srand): added. * src/math/math_function.h.in: add function "srand()". * src/gtk/x11menu.h (SubWinType): change order. 2011-07-11 Ito Hiroyuki * src/shellcm.c (cmwhich): added. * src/shell.c (cmdtable): add internal command "which". * doc/html_ja/addin.html: update document. * addin/Makefile.am (pkglib_SCRIPTS): add "fig2gra.rb". (pkglib_DATA): add "tex_equation.nsc". * addin/fig2gra.rb: added. * addin/tex_equation.nsc: added. * initfile/Ngraph.ini.in (script): add "TeX equation" addin. * src/math/math_expression.c (math_func_call_expression_new): "buf" is NULL when argc is less than 1. * src/math/math_basic_function.c (math_func_time): added. * src/math/math_function.h.in: add function "time()". 2011-07-10 Ito Hiroyuki * src/object.c (add_arg_object, getargument): accept character "," as a string of an id list. * src/gtk/ox11menu.c (mx_focus_obj, mx_unfocus_obj): added. (gtkmenu): add fields "focus" and "unfocus". 2011-07-05 Ito Hiroyuki * src/omerge.c (ZOOM_MAX): added. (mergezoom): do nothing if "zm * zoom" is larger than "ZOOM_MAX". (mergegeometry): upper limit of the field "zoom" is "ZOOM_MAX". * src/gtk/x11view.c (calc_zoom, set_zoom_prm): added. (init_zoom, mouse_move_zoom): use "calc_zoom()" and "set_zoom_prm()". (mouse_up_zoom): use "calc_zoom()". (ViewUpdate): set "d->ShowRect" as FALSE. * src/gtk/gtk_widget.h (SPIN_ENTRY_MAX): change limit to 1000000. 2011-07-02 Ito Hiroyuki * src/gtk/x11gui.c (message_box): limit length of an error message. * src/gra.c (GRAlines): fix argument number. (GRAinputdraw): fix check of the argument number. 2011-06-23 Ito Hiroyuki * src/ofile.c (f2dhead): don't add line number. * src/gtk/x11dialg.h (FileDialog):remove members "comment" and "comment_num_tag". * src/gtk/x11file.c (count_line_number_str, set_line_number_tag) (create_text_tag, set_file_preview): removed. (set_headlines): use "text_view_with_line_number_set_text()". (FileDialogSetup): use "create_text_view_with_line_number()". (CmFileWindow): call "gtk_tree_view_set_enable_search()", "gtk_tree_view_set_search_column()" and "gtk_tree_view_set_tooltip_column()". * src/gtk/x11merge.c (CmMergeWindow): call "gtk_tree_view_set_enable_search()", "gtk_tree_view_set_search_column()" and "gtk_tree_view_set_tooltip_column()". * src/gtk/x11axis.c (CmAxisWindow): call "gtk_tree_view_set_enable_search()", "gtk_tree_view_set_search_column()" and "gtk_tree_view_set_tooltip_column()". * src/gtk/gtk_widget.c (text_view_scroll_event) (set_scroll_visibility, text_view_size_alocate) (set_linumber_color, create_text_view_with_line_number) (text_view_with_line_number_set_text) (text_view_with_line_number_set_font): added. * src/gtk/gtk_common.h: remove macros for Gtk+ which version is lesser than 2.14. * configure.in: "GTK_REQUIRED_VERSION" is now 2.14.0. 2011-06-20 Ito Hiroyuki * src/gtk/x11merge.c (MergeDialogSetupItem): cursor will be set after the last character. * src/gtk/x11file.c (FileDialogSetupItem): cursor will be set after the last character. 2011-06-15 Shijo Nagao * src/gtk/ox11menu.c (mx_show_lib_version): use macro "GSL_VERSION" if available. 2011-06-14 Ito Hiroyuki * initfile/Ngraph.nsc: open dummy "gra2cairofile" object when save "GRA" file to render strings corectry. * src/ogra2nul.c (g2nul_chardescent): remove unused variable "font". * src/oaxis.c (draw_numbering_normalize): add "default" in the "case" statement. * src/oprm.c (prmload): remove unused variables "scauto" and "scperiod". * src/math/math_expression.c (register_arg): remove unused variable "i". (call_func): remove unused variable "use_array". * src/math/math_scanner.c (get_dec): remove unused variable "ptr". * src/object.c (getvaluestr): remove unused variable "len". * src/otext.c (textmatch): calculate margin. * src/shell.c (puts_localized): return "r". * src/ofile.c (put_func): remove unused variables "default_func" and "fname". (getdata_sub2): remove unused variables "data2" and "data3". (f2doutputfile): return "r". * src/orect.c (rectrotate): remove unused variables "nx1", "ny1", "nx2" and "ny2". * src/gra.c (GRAdrawtext): remove unused variable "j". * src/gtk/ogra2cairo.c (loadconfig): remove unused variables "fontcashsize" and "fontcashsize, fontcashdirfontcashdir". * src/gtk/ox11dlg.c (dlgmessage): remove unused variable "rcode". * src/gtk/x11cood.c (CmCoordinateWindow): remove unused variable "dlg". * src/gtk/x11file.c (FitSaveDialogSetup): remove unused variable "j". (func_entry_focused): remove unused variable "d". (FileDialogSetup): remove unused variable "rcode". (start_editing_type): remove unused variable "list". * src/gtk/x11view.c (CutFocusedObjects): remove unused variable "text". (EvalDialogSetupItem): initialize variable "n". (scrollbar_scroll_cb, AddList, AddInvalidateRect): remove unused variable "d". (mouse_down_point): remove unused variable "zoom". (calc_integer_ratio): check variable "po2" (not "pow"). * src/gtk/x11opt.c (SetScriptDialogBrowse): remove unused variable "d". * src/gtk/ogra2x11.c (gtk_output): remove unused variables "cstr"and "local". * src/gtk/x11axis.c (GridDialogAxis): remove unused variable "d". (AxisDialogFile): remove unused variable "room". (CmAxisScaleUndo): remove unused variable "d". * src/gtk/x11print.c (print_obj): remove unused member "g2wid". (draw_page): remove unused variable "g2wid". * src/gtk/x11lgnd.c (LegendWinLegendUpdate): remove unused variable "num". * src/gtk/x11commn.c (FileAutoScale): remove unused variable "room". * src/gtk/x11graph.c (SwitchDialogUp): remove unused variable "num". (SaveDialogSetup): remove unused variable "hbox". * src/gtk/ogra2cairofile.c (gra2cairofile_output): remove unused variable "cstr". 2011-06-11 Ito Hiroyuki * demo/demo.ngp.in (dialog): don't clear graph before exit demonstration. * src/gtk/x11print.c (DriverDialogSelectCB): type of variables "l" and "n"is now "int". * initfile/Ngraph.nsc: add option "-V". * src/oaxis.c (axis): add field "auto_scale_margin". remove 2nd argument for "auto_scale" and "get_auto_scale" fields. (axisautoscale_margin): added. (axisinit): initialize "auto_scale_margin" field. (axisadjust, axischangescale, axiscoordinate): use "AXIS_TYPE_", "AXIS_TYPE_LOG" and "AXIS_TYPE_LOG" instead of 1 and 2. (axischangescale): now parameter "room" means margin of the scale. (axisautoscale, axisgetautoscale): remove 2nd argument. * src/oagrid.c (agrid): add fields "grid_x" and "grid_y". (agridinit): initialize "grid_x" and "grid_y" fields. (agriddraw): check "grid_x" and "grid_y" fields. * src/shellcm.c (dispfield): "NCHAR" and "NCFUNC" are not used now. * src/object.c (check_arglist): added. (addobject): call "check_arglist()". (chkobjarglist, _putobj, putobj, _getobj, getobj, copyobj) (getvaluestr): "NCHAR" and "NCFUNC" are not used now. (add_arg_object, add_arg_int, add_arg_double, add_arg_bool) (add_arg_num, add_arg_sarray, add_arg_iarray, add_arg_darray) (set_arg_enum, get_array_argument): added. (getargument): use "set_arg_enum()", "g_shell_parse_argv()", "get_array_argument()", "add_arg_num()" and "add_arg_object()". * src/oio.c (io): add "mode" field. remove 2nd argument for "open" and "popen" field. (io_init): initialize "mode" field. (io_open): use "mode" filed instead of 2nd argument. * src/mathfn.c (nround): use "G_MAXINT" and "G_MAXINT" instead of "LANG_MIN" and "LONG_MAX" . * src/ofile.c (barout): use "case" statement instead of "if". (f2dboundings): minimum or maximum value for bar plot is now 0. * src/gtk/x11dialg.h (AAxisDialog): add member "margin". (GridDialog): add members "draw_x" and "draw_y". * src/gtk/x11axis.c (GridDialogSetupItem): get "grid_x" and "grid_y" fields. (GridDialogSetup): add widgets to set "grid_x" and "grid_y" fields. (GridDialogClose): set "grid_x" and "grid_y" fields. (scale_tab_setup_item): remove redundant function call "getobj()" for "div" fields. (scale_tab_setup_item): get "auto_scale_margin" field. (AxisDialogFile): remove second argument for "get_auto_scale" field. (scale_tab_create): add widget to set "auto_scale_margin" field. (scale_tab_set_value): set "auto_scale_margin" field. (CmAxisZoom): now 3rd argument for "scale" field is 0. * src/gtk/x11commn.c (FileAutoScale): remove second argument for "auto_scale" field. * demo/demo.ngp (dialog): don't clear graph before exit demonstration. * demo/demo4.ngp.in: use "axisgrid" instead of "path" to show grid line. * src/math/math_basic_function.c (mjd): check parameters "m" and "d". * src/gtk/ox11menu.c (get_palette): initialize variable "palette" as NULL. 2011-06-10 Ito Hiroyuki * src/gtk/ox11menu.c (gtkmenu): add argument for the field "lib_version". (mx_show_lib_version): add prefix for the output strings. * src/gtk/x11view.c (ViewerPopupMenu, CmEditMenuCB) (CmViewerButtonArm): use "GPOINTER_TO_INT()" to get data. * src/gtk/x11print.c (CmOutputMenu): use "GPOINTER_TO_INT()" to get data. * src/gtk/x11menu.c (toggle_view_cb, detach_toolbar): use "GPOINTER_TO_INT()" to get data. * src/gtk/x11graph.c (CmGraphNewMenu): use "GPOINTER_TO_INT()" to get data. 2011-06-08 Ito Hiroyuki * src/gtk/x11commn.c (get_new_axis_id): add argument "aobj". 2011-05-20 Ito Hiroyuki * src/ostring.c (utf8_string_slice, string_slice, string_match) (string_rindex, string_index, string_replace): added. (ostring): add field "slice", "replace", "index", "rindex" and "match". * src/oregexp.c (regexp_replace): added. (oregexp): add field "replace". * test/string_test.nsc: added. * src/math/math_basic_function.c (compare_double_with_prec): added. (math_func_eq, math_func_neq): add 3rd argument. use "compare_double_with_prec()". 2011-05-19 Ito Hiroyuki * src/math/math_parser.c (parse_argument_list): update "*buf" after call the function "g_realloc()". * src/object.c (array_reverse): added. * src/odarray.c (odarray): add field "reverse", "sum", "average", "RMS", "sdev", min", "max" and "slice". (calc_sum, calc_square_sum, darray_sum, darray_average) (darray_rms, darray_sdev, darray_min, darray_max): added. * src/oiarray.c (oarray_reverse, oarray_slice): added. (oiarray): add field "reverse", "sum", "average", "RMS", "sdev", min", "max" and "slice". (calc_sum, calc_square_sum, iarray_sum, iarray_average) (iarray_rms, iarray_sdev, iarray_min, iarray_max): added. * src/mathfn.c (bsearch_int): add braces after "if" statements. * src/osarray.c (osarray): add field "reverse" and "slice". (sarray_slice): added. 2011-05-18 Ito Hiroyuki * src/ofit.c (fituser): "MSERR" is not used. * src/ofile.c (errordisp, errordisp2): "MSERR" is not used. * src/oregexp.c (regexp_get): return 1 when failed. 2011-05-17 Ito Hiroyuki * test/iarray_test.nsc: added. * test/darray_test.nsc: added. * test/sarray_test.nsc: added. * test/regexp_test.nsc: added. * initfile/save_ui_file.nsc: don't use external programs. * src/shellcm.c (cmecho): length of the output strings is now not limited. * src/object.c (cmp_func_int_r, arrayrsort_int, cmp_func_double) (cmp_func_double_r, arraysort_double, arrayrsort_double) (arrayuniq_double, cmp_func_str, cmp_func_str_r, arraysort_str) (arrayrsort_str, arrayuniq_str): added. (getvaluestr): use "g_string_append_printf()" instead of "sprintf()". * src/oio.c (io_eof): return value is depend on the return value of the function "feof()". * src/gtk/main.c (obj_add_func_ary): add "addregexp". * src/oiarray.c (oarray_get_array, oarray_num, oarray_seq) (iarraypop, iarrayunshift, iarrayshift, iarraysort, iarrayrsort) (iarrayuniq, iarrayjoin, oarray_reverse_seq): added (iarrayadd, iarrayins): use "oarray_get_array()". (oiarray): add fields "push", "pop", "unshift", "shift", "sort", "rsort", "uniq", "join", "seq" and "rseq". * src/odarray.c (darrayadd, darrayins): use "oarray_get_array()". (darraypop, darrayunshift, darrayshift, darraysort, darrayrsort) (darrayuniq, darrayjoin): added. (odarray): add fields "push", "pop", "unshift", "shift", "sort", "rsort", "uniq", "join", "seq" and "rseq". * src/osarray.c (sarrayadd, sarrayins): use "oarray_get_array()". (sarraypop, sarrayunshift, sarrayshift, sarraysort, sarrayrsort) (sarrayuniq): added. (osarray): add fields "push", "pop", "unshift", "shift", "sort", "rsort" and "uniq". * src/oregexp.c: added. 2011-05-16 Ito Hiroyuki * src/ostring.c (string_strip, set_length, string_upcase) (string_downcase, string_reverse): added. (ostring): add field "byte", "length", "strip", "upcase", "downcase" and "reverse". * src/odarray.c (odarray): add field "seq" and "rseq". (odarray): use "oarray_num()", "oarray_seq()" and "oarray_reverse_seq()". * src/oiarray.c (oarray_num): change name from "iarraunum()". (oarray_seq, oarray_rseq): added. (oiarray): add field "seq"and "rseq". (oiarray): use "oarray_num()", "oarray_seq()" and "oarray_reverse_seq()". * src/osarray.c (ERRREGEXP, set_delimiter, sarraysplit) (sarrayjoin): added. (sarrayinit): initialize field "_local". (sarraydone): finalize field "_local". (osarray): add fields "delimiter", "split", "seq", "rseq" and "join". (osarray): use "oarray_num()", "oarray_seq()" and "oarray_reverse_seq()". * src/object.c (arrayins2, arrayput2): use "g_strdup()" instead of "g_malloc()" and "strcpy()". 2011-05-13 Ito Hiroyuki * src/gtk/x11menu.c (ActionEntry): fix callback function (from "CmOutputMenu()" to "CmViewerClear()"). * src/gtk/x11opt.c (CmOptionSaveNgp): fix window title. 2011-05-10 Ito Hiroyuki * initfile/Ngraph.ini.win (palette): added. * initfile/Ngraph.ini.in (palette): added. * src/gtk/ox11menu.h (menulocal): add member "Palette". * src/gtk/ox11menu.c (MenuConfigOthers): change name from "MenuConfigExportImage". Add setting "palette". (get_palette, set_palette): added. (menu_save_config): call "get_palette()" before call "menu_save_config_sub()" when "type & SAVE_CONFIG_TYPE_OTHERS" is true. (menuinit): call "set_palette()". 2011-05-09 Ito Hiroyuki * src/gtk/x11dialg.c: add braces after "if" statements. 2011-05-01 Ito Hiroyuki * src/gtk/x11view.c (UnFocus): use "gtk_widget_queue_draw()" instead of "gdk_window_invalidate_rect()". 2011-04-29 Ito Hiroyuki * src/gtk/x11view.c (UnFocus): call "gdk_window_invalidate_rect()". 2011-04-28 Ito Hiroyuki * src/gtk/x11file.c (CmFileNew, CmFileOpen, CmFileClose) (CmFileUpdate, CmFileEdit, CmFileMath): add parameters "GtkAction *w" and "gpointer client_data". (FileWinFileDraw): call "CmViewerDraw()" instead of "CmViewerDrawB()". (CmFileMenu): removed. (GetDrawFiles, CmFileSaveData): moved from "x11print.c". * src/gtk/x11view.c (ViewerEvKeyUp): call "reset_drag_info()" only when "CLEAR_DRAG_INFO" is true. (graph_dropped, ViewerEvKeyDown): call "CmViewerDraw()" instead of "CmViewerDrawB()". (CmViewerDraw, CmViewerClear): add parameters "GtkAction *w" and "gpointer client_data". (CmViewerDraw): second parameter represents if select files before drawing or not. * src/gtk/x11opt.c (CmOptionSaveNgp, CmOptionViewer) (CmOptionExtViewer, CmOptionPrefFont, CmOptionScript) (CmOptionMisc, CmOptionSaveDefault): add parameters "GtkAction *w" and "gpointer client_data". (CmOptionMenu): removed. * src/gtk/x11merge.c (CmMergeOpen, CmMergeClose, CmMergeUpdate): add parameters "GtkAction *w" and "gpointer client_data". (CmMergeMenu, MergeWinMergeOpen): removed. * src/gtk/x11axis.c (CmAxisNewFrame, CmAxisNewSection) (CmAxisNewCross, CmAxisNewSingle, CmAxisDel, CmAxisUpdate) (CmAxisZoom, CmAxisClear, CmAxisGridNew, CmAxisGridDel) (CmAxisGridUpdate, CmAxisScaleUndo): add parameters "GtkAction *w" and "gpointer client_data". (CmAxisMenu, CmGridMenu): removed. * src/gtk/x11print.c (CmOutputViewer): removed. (CmOutputViewerB): merged with the function "CmOutputViewer()". (CmOutputViewerB): never call "SetFileHidden()". (CmPrintGRAFile, CmOutputImage): static function. (CmOutputMenu): remove unused case. * src/gtk/x11lgnd.c (CmLineDel, CmLineUpdate, CmRectDel) (CmRectUpdate, CmArcDel, CmArcUpdate, CmMarkDel, CmMarkUpdate) (CmTextDel, CmOptionTextDef): add parameters "GtkAction *w" and "gpointer client_data". (CmLineMenu, CmRectangleMenu, CmArcMenu, CmMarkMenu, CmTextMenu): removed. * src/gtk/x11menu.h (MenuID): remove unused items. 2011-04-23 Ito Hiroyuki * src/gtk/main.c (main): call "g_mem_set_vtable()" when "USE_MEM_PROFILE" is true. * src/osystem.c (system_mem_profile): added. (nsystem): add field "mem_profile" when "USE_MEM_PROFILE" is true. * src/common.h (USE_MEM_PROFILE): added. 2011-04-21 Ito Hiroyuki * src/gtk/main.c (obj_member_completion_function) (my_completion_function): use "strdup()" to create return value. * src/gtk/gtk_ruler.c (nruler_destroy): remove unused parameter "event". (ruler_new): function "nruler_destroy()" is now connected to the "unrealize" signal. 2011-04-20 Ito Hiroyuki * src/object.c (arrayadd): check if the parameter "val" is NULL or not. * src/oroot.c (oputstyle): when size of the array is 1, it is as same as the array has the same two elements. * src/gtk/x11dialg.c (SetObjPointsFromText) (SetObjFieldFromStyle): call "gtk_widget_grab_focus()" when an error is occurred. 2011-04-15 Ito Hiroyuki * src/gtk/x11menu.c (setupwindow, create_message_box): exchange position of messages. * src/gtk/x11view.c (move_focus_frame, viewer_key_scroll): added. (ViewerEvKeyDown): use "move_focus_frame()" and "viewer_key_scroll()". (set_drag_info, reset_drag_info): added. (SetPoint, move_focus_frame): use "set_drag_info()". (ViewerEvKeyUp): call "reset_drag_info()" * pixmap/Makefile.am (EXTRA_DIST): add pixmaps ngraph_align_b.png, ngraph_align_hc.png, ngraph_align_l.png, ngraph_align_r.png, ngraph_align_t.png and ngraph_align_vc.png 2011-04-11 Ito Hiroyuki * src/gtk/x11menu.c (ActionEntry): fix typo (from "_Right" to "_Bottom"). 2011-04-06 Ito Hiroyuki * src/gtk/x11gui.c (check_overwrite): moved from x11commn.c. * src/gtk/x11view.c (SetPoint): moved from x11menu.c. (CmViewerClearB): removed. * src/gtk/x11axis.c (check_axis_history): static function. * src/gtk/x11print.c (GetDrawFiles): moved from x11commn.c. (CmOutputDriverB): removed. * src/gtk/x11menu.c (SaveHistory): moved from x11commn.c. * src/gtk/x11lgndx.c (get_radio_index): moved from x11dialg.c. 2011-04-03 Ito Hiroyuki * src/ofile.c (f2dsettings): fix infinite loop. * src/gtk/gtk_common.h (CAIRO_COORDINATE_OFFSET): always 0. * src/gtk/main.c (main): don't call "gtk_set_locale()" when version of the GTK+ is greater than 2.24. * src/gtk/x11gui.c (DialogExecute): use "gtk_widget_hide()" instead of "gtk_widget_hide_all()". * src/gtk/x11dialg.c (SetObjFieldFromWidget) (SetWidgetFromObjField): use "gtk_combo_box_get_has_entry()" when version of the GTK+ is greater than 2.24. * src/gtk/x11view.c (ViewerWinSetup, ShowCrossGauge, SetHRuler) (SetVRuler): use "gdk_window_get_width()" and "gdk_window_get_height()" when version of the GTK+ is greater than 2.24. (ChangeDPI, draw_paper_frame): use "gdk_pixmap_get_size()" when version of the GTK+ is greater than 2.24. * src/gtk/ogra2x11.c (gtkchangedpi): use "gdk_pixmap_get_size()" when version of the GTK+ is greater than 2.24. * src/gtk/x11graph.c (CmHelpAbout): don't call "gtk_about_dialog_set_url_hook()" when version of the GTK+ is greater than 2.24. * src/gtk/gtk_subwin.c (sub_window_minimize): use "gtk_widget_hide()" instead of "gtk_widget_hide_all()". * src/gtk/gtk_combo.c (combo_box_entry_create): use "gtk_combo_box_new_with_entry()" and "gtk_combo_box_set_entry_text_column()" when version of the GTK+ is greater than 2.24. * src/gtk/gtk_ruler.c (nruler_make_pixmap): use "gdk_pixmap_get_size()" when version of the GTK+ is greater than 2.24. 2011-04-01 Ito Hiroyuki * src/gtk/x11menu.h (Viewer): change type of members "VRuler" and "HRuler". * src/gtk/gtk_ruler.c (_Nruler): remove member "widget". (ruler_new): call "g_object_set_data()" to save data. (nruler_set_range, nruler_set_position): use "g_object_get_data()" to get data. (nruler_make_pixmap, nruler_draw_ticks): add parameter "widget". (nruler_draw_ticks): remove redundant call of the function "pango_layout_get_extents()". * src/gtk/gtk_common.h (CAIRO_COORDINATE_OFFSET): always 1. * src/gtk/x11view.c (coord_conv_x, coord_conv_y): add CAIRO_COORDINATE_OFFSET. * src/gtk/ogra2x11.c (clear_pixmap): use "cairo_paint()" instead of "cairo_rectangle()" and "cairo_fill()". * src/gtk/x11lgnd.c (draw_arrow_pixmap, LegendArrowDialogPaint): use "cairo_paint()" instead of "cairo_rectangle()" and "cairo_fill()". * src/gtk/ogra2cairofile.c (create_cairo): use "cairo_paint()" instead of "cairo_rectangle()" and "cairo_fill()". * src/gtk/x11lgndx.c (LegendGaussDialogPaint): use "cairo_paint()" instead of "cairo_rectangle()" and "cairo_fill()". 2011-03-31 Ito Hiroyuki * src/gtk/x11view.c (mouse_down_zoom): improve calculation of dpi. (ChangeDPI): remove parameter. (create_legend1, create_path, create_legend3, create_legendx) (create_single_axis, create_axis): call "UpdateAll()". (ViewerEvLButtonDblClk): don't call "UpdateAll()". * src/gtk/x11opt.c (CmOptionViewer): simplify condition. 2011-03-30 Ito Hiroyuki * src/gtk/Makefile.am (libngraph_la_SOURCES): add "gtk_ruler.c" and "gtk_ruler.h". * src/gtk/gtk_ruler.h: added. * src/gtk/gtk_ruler.c: added. * src/gtk/ox11menu.h (menulocal): remove unused members "scrollx", "scrolly", "pixel_dot", "offsetx" and "offsety". * src/gtk/ox11menu.c (mx_redraw): call "draw_paper_frame()" after call "mxflush()". (mx_clear): use "Menulocal.local->cairo". (mx_clear): use "cairo_paint()" when clear whole drawing area. * src/gtk/x11view.c (ViewerEvSize): remove unused codes. (ViewerEvPaint): use "nround()" to get coordinate. (SetHRuler, SetVRuler): use "nruler_set_range()" instead of "gtk_ruler_set_range()". (create_pix): size of the pixmap is now "(w + 1) x (h + 1)". (create_pix): use "cairo_paint()" instead of "cairo_rectangle()" and "cairo_fill()". (create_pix): don't call "draw_paper_frame()". (ChangeDPI): size of drawing area is now "(w - 1) x (h - 1)". (draw_paper_frame): use "gdk_drawable_get_size()" to get size of the pixmap. (draw_paper_frame): call "cairo_reset_clip()" before drawing. * src/gtk/x11menu.h (Viewer): change type of members "VRuler" and "HRuler". remove unused members "width" and "height". * src/gtk/x11menu.c (setupwindow): use "hruler_new()" and "vruler_new()". (SetPoint): use "nruler_set_position()" instead of "g_object_set()". * src/gtk/ogra2gdk.c (gra2gdk_create_pixmap): use "cairo_paint()" instead of "cairo_rectangle()" and "cairo_fill()". 2011-03-28 Ito Hiroyuki * src/gtk/x11view.c (SetHRuler, SetVRuler): keep position of the ruler. 2011-03-25 Ito Hiroyuki * src/gtk/x11view.c (ViewerWinSetup): initialize "d->KeyMask". (Evaluate, Trimming, Match, DelList, GetLargeFrame) (coord_conv_x, coord_conv_y, GetFocusFrame, ShowFocusFrame) (show_focus_line_arc, draw_frame_rect, draw_focus_line) (ShowFocusLine, ShowPoints, ShowFrameRect, ShowCrossGauge): add parameter "struct Viewer *" or "const struct Viewer *". (mouse_down_move_data): remove unused parameter "TPoint *dpoint". (ViewerWinUpdate): remove unused parameter "int clear". (ShowFocusLine, show_focus_line_arc): remove unused parameter "int clear" and "unsigned int state". (show_focus_line_arc): remove unused variable "clear". (ViewerEvMouseMove, ViewerEvButtonDown, ViewerEvButtonUp): save "d->KeyMask". * src/gtk/x11menu.h (struct Viewer): add member "KeyMask". * src/gtk/x11menu.c (set_focus_sensitivity): change type of the parameter to "const struct Viewer *". 2011-03-24 Ito Hiroyuki * src/gtk/ox11menu.c (mx_show_lib_version): show version of the readline library and GSL. * src/gtk/x11print.c (CmPrintDataFile): update progress dialog. 2011-03-23 Ito Hiroyuki * src/gtk/x11print.c (CmOutputViewer): execute "present" field of the "gra2gtk" object. * src/gtk/ox11menu.c (menuinit): use "gra2cairo_set_antialias()" to set antialias. (mx_show_lib_version): added. (gtkmenu): add field "lib_version", remove fields "GTK_compile_version" and "GTK_runtime_version". * src/gtk/x11view.c (draw_paper_frame): use "CAIRO_COORDINATE_OFFSET". (ViewerEvLButtonDown, ViewerEvRButtonDown, CmViewerButtonArm): call "gtk_widget_queue_draw()". (ViewerEvMouseMove): call "gtk_widget_queue_draw()" when "d->Mode & POINT_TYPE_DRAW_ALL"is true. (create_pix): use "gra2cairo_set_antialias()" to set antialias. * src/gtk/x11lgndx.c (LegendGaussDialogPaint): use "CAIRO_COORDINATE_OFFSET". * src/gtk/x11lgnd.c (draw_arrow_pixmap, LegendArrowDialogPaint): use "CAIRO_COORDINATE_OFFSET". * src/gtk/gtk_common.h (CAIRO_COORDINATE_OFFSET): added. * src/gtk/ogra2x11.c (gtkpresent): added. (gra2gtk): add field "present". (gtkMakeRuler): use "CAIRO_COORDINATE_OFFSET". 2011-03-22 Ito Hiroyuki * src/gtk/x11print.c (CmOutputViewer): range of color is 0.0 to 1.0. * src/gtk/ox11menu.h (menulocal): remove members "win", "gc" and "do_not_use_arc_for_draft". (menulocal): change type of members "bg_r", "bg_g" and "bg_b" from int to double. * src/gtk/x11lgnd.c (draw_arrow_pixmap, LegendArrowDialogPaint): use cairo to draw graphics. * src/gtk/ox11menu.c (MenuConfigViewer): remove setting "do_not_use_arc_for_draft". (add_color_to_array, menu_config_set_bgcolor): range of color is 0.0 to 1.0. (mx_redraw): call "draw_paper_frame()" before call "GRAredraw()". (mx_redraw, mxdpi, mxclear): use "NgraphApp.Viewer.gdk_win" instead of "Menulocal.win". (mx_clear): use cairo to draw graphics. * src/gtk/x11view.c (GRAY, DOT_LENGTH, create_cairo) (draw_cairo_arc): added. (paste_cb, text_dropped, mouse_down_point, init_zoom) (mouse_down_move, mouse_up_point, mouse_up_drag, mouse_up_zoom) (mouse_up_change, mouse_up_lgend1, mouse_up_lgend2) (update_frame_rect, mouse_move_drag, mouse_move_zoom) (mouse_move_change, mouse_move_draw, ViewerEvMouseMove) (ViewerEvKeyDown, ViewerEvKeyUp, UnFocus, Draw, ViewUpdate) (ViewCopy, ViewCross): don't call "ShowFocusFrame()", "ShowPoints()", "ShowFocusLine()", "ShowFrameRect()" or "ShowCrossGauge()". (ShowFocusFrame, show_focus_line_arc, draw_frame_rect) (draw_focus_line, ShowFocusLine, ShowPoints, ShowFrameRect) (ShowCrossGauge, ViewerEvPaint, create_pix, draw_paper_frame): use cairo to draw graphics. (ViewerEvPaint): always redraw pixmap. (ViewerEvMouseMove): call "gtk_widget_queue_draw()" if necessary. (show_focus_line_arc, draw_focus_line): call "cairo_close_path()" if necessary. (draw_focus_line): add parameter "close_path". (ViewDelete): fix memory leak. * src/gtk/gtk_common.h: include "cairo/cairo.h". * src/gtk/x11opt.c (ViewerDialogSetupItem, ViewerDialogClose): range of color is 0.0 to 1.0. * src/gtk/x11lgndx.c (LegendGaussDialogPaint): use cairo to draw graphics. (LegendGaussDialogPaint): change background color depend on the setting. * src/gtk/ogra2x11.c (gtklocal): change type of members "bg_r", "bg_g" and "bg_b" from int to double. (gtklocal): remove member "gc". (gtkevpaint, gtkMakeRuler): use cairo. (clear_pixmap): added. (gtkclear, gtkchangedpi): use "clear_pixmap()". (get_color): return 0.0 to 1.0 instead of 0 to 255. * src/gtk/ogra2gdk.c (gra2gdk_create_pixmap): change type of parameters "r", "g" and "b" from int to double. 2011-03-15 Ito Hiroyuki * src/ofit.c (fitpoly, fituser): use enumerate for return code. 2011-03-14 Ito Hiroyuki * src/ofile.c (get_axis_prm): added. (opendata, f2dgetcoord): use "get_axis_prm()". (ofile_create_math_equation, set_const): add constants "AXISX", "AXISY" and "FLINE". * src/gtk/x11commn.c (AxisDel2): use "g_strdup_printf()" instead of "snprintf()". 2011-03-11 Ito Hiroyuki * src/gtk/x11view.c (search_axis_group): added. (ViewUpdate, ViewCopyAxis): use "search_axis_group()". * src/gtk/x11commn.c (get_new_axis_id): added. (AxisDel2): use "get_new_axis_id()". 2011-03-10 Ito Hiroyuki * src/gtk/x11commn.c (AxisDel2): use "get_axis_id()". * src/gtk/x11view.c (ViewUpdate, ViewCopyAxis): use "get_axis_id()". (ViewUpdate): bug fix: id of the axis object to delete is not "aid" but "id" when "type == 'c'". * src/ofile.c (get_axis_id): added. (opendata, f2dgetcoord, f2dsettings, f2dbounding): use "get_axis_id()". 2011-03-09 Ito Hiroyuki * src/gtk/x11view.c (mouse_up_drag): invert logic and fix indent. (ViewerWinUpdate): set and restore "PaintLock". (ViewerWinUpdate): don't check "region" when "d->allclear" is true. 2011-03-08 Ito Hiroyuki * src/ofile.c (ofile_create_math_equation, set_const): add constants "COLX", "COLY", "HSKIP" and "RSTEP". 2011-03-04 Ito Hiroyuki * src/gtk/x11menu.c (ActionEntry): add callback to actions "GraphDrawOrderAction" and "GraphPageSetupAction". * src/gtk/gtk_subwin.h (NgraphActionEntry): moved from "x11menu.c". * src/gtk/x11graph.c (CmGraphLoadB, CmGraphSaveB, CmGraphMenu) (CmHelpMenu): removed. 2011-03-02 Ito Hiroyuki * src/gtk/x11menu.c (application): call "gtk_ui_manager_ensure_update()" after add ui. 2011-03-01 Ito Hiroyuki * src/gtk/x11cood.c (CoordWinUpdate): don't set type to the variable "d->type." * src/gtk/x11lgnd.c (CmLegendWindow): don't set type to the variable "d->type." * src/gtk/x11merge.c (CmMergeWindow): don't set type to the variable "d->type." * src/gtk/x11info.c (create_win, InfoWinUpdate): don't set type to the variable "d->type." * src/gtk/x11axis.c (CmAxisWindow): don't set type to the variable "d->type." * src/math/math_parser.c (parse_argument_list): reallocate memory for arguments if necessary. * src/gtk/x11file.c (CmFileHistory, CmFileNew): call "AddDataFileList()" only when the file is really opened. (update_file_obj_multi): call "AddDataFileList()" when "new_file" is TRUE and the file is really opened. (CmFileOpen): don't call "AddDataFileList()". (CmFileWindow): don't set type to the variable "d->type." * src/gtk/x11view.c (new_file_obj): call "AddDataFileList()" only when the file is really opened. * src/gtk/x11opt.c (PrefScriptDialogClose): call "create_addin_menu()". * src/gtk/x11commn.c (AddDataFileList): check if the file name is valid UTF-8 string or not. (AddDataFileList): call "create_recent_data_menu()". * src/gtk/x11menu.c (show_graph_menu, show_data_menu): removed. (application): call "create_addin_menu()" and "create_recent_data_menu()" after create UI. (create_addin_menu, create_recent_data_menu): remove parameter. (init_ngraph_app_struct): initialize "type" member of each struct. 2011-02-25 Ito Hiroyuki * addin/cal.nsc: fix argument for "menu::show_window". * src/gtk/x11menu.c (ActionEntry): fix callback functions. 2011-02-24 Ito Hiroyuki * src/gtk/x11menu.c (show_ui_definition): use "printfstdout()". * src/gtk/ox11menu.c (mx_get_accel_map): use "putstderr()" and "printfstdout()". * initfile/save_ui_file.nsc: NgraphUI.xml.win is automatically generated. 2011-02-23 Ito Hiroyuki * src/gtk/ox11menu.c (mx_get_ui, mx_get_accel_map): added. (gtkmenu): add fields "get_ui" and "get_accel_map". * src/gtk/x11menu.c (read_keymap_file): read keymap file in the "CONFDIR". (show_ui_definition): added. * initfile/Makefile.am (update_ui_file): add rule. * initfile/save_ui_file.nsc: added. * initfile/NgraphUI.xml.win: added. 2011-02-22 Ito Hiroyuki * initfile/NgraphUI.xml: added. * src/object.c (set_newobj_cb, set_delobj_cb): added. (newobj_alias): call "NewObjCB()" when "NewObjCB" is not NULL. (delobj): call "DelObjCB()" when "DelObjCB" is not NULL. * src/gtk/main.c (set_dir_defs): add setting for "PIXMAPDIR". * src/gtk/x11lgnd.c (CmLegendWindow): type of the first argument is "GtkToggleAction *". (CmLegendWindow): visibility is depend on the state of the action. * src/gtk/x11cood.c (CmCoordinateWindow): type of the first argument is "GtkToggleAction *". (CmCoordinateWindow): visibility is depend on the state of the action. * src/gtk/ox11menu.c (subwindow_show, subwindow_hide): removed. (mx_show_win, mx_hide_win): use "window_action_set_active()". (mx_toggle_win): use "window_action_toggle()". * src/gtk/x11file.c (CmFileHistory): get identifier of the history entry from second argument. (CmFileOpen): check number of instances. (update_file_obj_multi): don't call "set_graph_modified()" when "new_file" is TRUE and "ret" is "IDDELETE". (CmFileWindow): type of the first argument is "GtkToggleAction *". (CmFileWindow): visibility is depend on the state of the action. * src/gtk/x11view.c (ViewerEvPopupMenu, ViewerPopupMenu) (create_menu, create_popup_menu): removed. (ShowFocusFrame): call "set_focus_sensitivity()". (clear_focus_obj): type of the argument is "struct Viewer *". (clear_focus_obj): call "set_focus_sensitivity()". (ViewerPopupMenu): remove unused case. (CmViewerButtonArm): data point button can be default. * src/gtk/x11menu.h (Viewer): remove members "PToolbar", "CToolbar" and "popup_item". * src/gtk/x11menu.c (ActionEntry, create_action_group) (reate_ui_from_file): added. (application): use "GtkUIManager" to make the menu and toolbars. (set_focus_sensitivity, set_btn_press_cb, get_toolbar) (set_toolbar_caption, show_graph_menu, show_data_menu) (check_instance, check_exist_instances) (window_action_set_active, window_action_toggle) (create_action_group): added. (CmReloadWindowConfig): use "window_action_set_active". * src/gtk/x11opt.c (PrefScriptDialogClose): don't update "add-in" menu. * src/gtk/x11graph.c (CmGraphHistory): check "uri" is NULL or not. * src/gtk/x11merge.c (CmMergeWindow): type of the first argument is "GtkToggleAction *". (CmMergeWindow): visibility is depend on the state of the action. * src/gtk/x11info.c (InfoWinUpdate): type of the first argument is "GtkToggleAction *". (InfoWinUpdate): visibility is depend on the state of the action. * src/gtk/dir_defs.h.in (PIXMAPDIR): added. * src/gtk/gtk_subwin.c (sub_window_hide, sub_window_show): static function. (sub_window_set_visibility): added. (sub_window_toggle_visibility): removed. (cb_del): use "window_action_set_active()". * src/gtk/Makefile.am (pixmapdir): added. (dir_defs.h): add pixmapdir setting. * src/gtk/x11axis.c (CmAxisWindow): type of the first argument is "GtkToggleAction *". (CmAxisWindow): visibility is depend on the state of the action. * pixmap/Makefile.am: added. * mingw/windows_make.sed: add command for pixmap directory. * configure.in (AC_CONFIG_FILES): add "pixmap/Makefile". * Makefile.am (SUBDIRS): add directory "pixmap". 2011-02-08 Ito Hiroyuki * src/math/math_basic_function.c (math_func_for): don't set first argument to the memory when the argument is negative value. * src/gtk/ox11menu.c (menuinit): initialize fields "GTK_compile_version" and "GTK_runtime_version". (gtkmenu): add fields "GTK_compile_version" and "GTK_runtime_version". * src/gtk/x11print.c (CmOutputPrinter): use "GTK_CHECK_VERSION()". * src/gtk/x11menu.c (create_graphmenu, create_toolbar): use "GTK_CHECK_VERSION()". * src/gtk/x11lgnd.c (create_character_view): use "GTK_CHECK_VERSION()". * src/gtk/x11dialg.c: use "GTK_CHECK_VERSION()". * src/gtk/gtk_common.h: use "GTK_CHECK_VERSION()". 2011-02-04 Ito Hiroyuki * src/math/math_function.rb: add comment after case labels. * src/math/math_function.h.in: fix indent. 2011-02-03 Ito Hiroyuki * src/gtk/gtk_subwin.c (hide_minimize_menu_item): use "GTK_WIDGET_GET_WINDOW()". * src/gtk/Makefile.am (libngraph_la_CFLAGS): add option "-DGSEAL_ENABLE=1". * src/gtk/ogra2gdk.c (gra2gdk_create_pixmap): check if the variable "drawable" is NULL or not. * src/gtk/x11axis.c (AxisPosDialogRef): removed. (position_tab_create): use "AxisDialogRef()" for "changed" signal. (AxisDialogRef): set empty text when the index of the active item is 0. (position_tab_setup_item, scale_tab_setup_item): add item "none" to the GtkComboBoxEntry widget. * src/gtk/gtk_widget.c (show_color_sel): use "GTK_COLOR_SELECTION_DIALOG_GET_COLOR_SELECTION()". * src/gtk/x11gui.c (DialogExecute, DialogInput, DialogRadio) (DialogCombo, DialogComboEntry, DialogSpinEntry, DialogCheck) (FileSelectionDialog): use "GTK_DIALOG_GET_CONTENT_AREA()". * src/gtk/x11view.c (paste_cb, ViewerWinSetup, create_pix) (OpenGC): use "GTK_WIDGET_GET_WINDOW()". * src/gtk/x11menu.c (create_markpixmap): use "GTK_WIDGET_GET_WINDOW()". * src/gtk/x11lgndx.c (clear_view, LegendGaussDialogPaint): use "GTK_WIDGET_GET_WINDOW()". * src/gtk/x11lgnd.c (draw_arrow_pixmap, LegendArrowDialogPaint): use "GTK_WIDGET_GET_WINDOW()". * src/gtk/x11gui.c (get_window_geometry): use "GTK_WIDGET_GET_WINDOW()". * src/gtk/x11file.c (select_color): use "GTK_COLOR_SELECTION_DIALOG_GET_COLOR_SELECTION()". (draw_type_pixbuf): use "GTK_WIDGET_GET_WINDOW()". * src/gtk/ogra2x11.c (gtkinit): use "GTK_WIDGET_GET_WINDOW()". * src/gtk/gtk_subwin.c (sub_window_save_geometry) (sub_window_minimize): use "GTK_WIDGET_GET_WINDOW()". * src/gtk/x11view.c (ViewerWinSetup): use "GTK_WIDGET_SET_CAN_FOCUS()". * src/gtk/gtk_common.h (GTK_WIDGET_GET_WINDOW) (GTK_DIALOG_GET_CONTENT_AREA, GTK_WIDGET_SET_CAN_FOCUS) (GTK_COLOR_SELECTION_DIALOG_GET_COLOR_SELECTION): added. 2011-02-02 Ito Hiroyuki * src/gtk/x11dialg.c (SetObjFieldFromWidget) (SetWidgetFromObjField, SetObjFieldFromStyle) (SetStyleFromObjField): use "gtk_bin_get_child()". * src/gtk/gtk_combo.c (combo_box_entry_create) (combo_box_entry_set_text, combo_box_entry_get_text): use "gtk_bin_get_child()". 2011-02-01 Ito Hiroyuki * zsh/Makefile.am (zsh_DATA): remove settings for gra2ps and gra2wmf. * driver/Makefile.am (ngraphconf_DATA): remove settings for gra2ps and gra2wmf. * debian/ngraph.bash: remove settings for gra2ps and gra2wmf. 2011-01-31 Ito Hiroyuki * test/math_test.nsc: don't create io object every time. * mingw/install.txt: update document. 2011-01-28 Ito Hiroyuki * src/ofile.c (set_data_progress): variable "msgbuf" is not static now. (solve_equation): variable "eq" is not static now. * src/gtk/ox11menu.c (mx_cat): variable "buf" is not static now. * src/gtk/x11view.c (check_focused_obj_type): check variables "axis", "merge", "legend" and "text" are NULL or not. * src/gtk/x11menu.c (find_gra2gdk_inst): remove first parameter. (find_gra2gdk_inst): variable "inxt" is not static now. (find_gra2gdk_inst): remove variable "local" and "onamek". 2011-01-27 Ito Hiroyuki * src/gtk/x11cood.c (CoordWinSetCoord): this function is now reentrant. 2011-01-26 Ito Hiroyuki * src/oaxis.c (get_axis_gauge_num_str): use "GString" to create format string. (get_axis_gauge_num_str): numbering string is now well formated such as "5.0×10^-7@". * src/gtk/x11cood.c (CoordWinSetCoord): use static variable to create information strings. (CoordWinSetCoord, CoordWinUpdate): type of the coordinate window is "SubWin". * src/gtk/x11commn.c (FileAutoScale): use "GString" to create argument string for "auto_scale" field. * src/gtk/x11menu.h (NgraphApp): the type of members "InfoWin" and "CoordWin" is "struct SubWin *". * src/gtk/x11menu.c (application): now "NgraphApp.InfoWin" and "NgraphApp.CoordWin" don't have the member "str". * src/gtk/x11info.c (create_win, InfoWinUpdate): type of the information window is "SubWin". * src/gtk/x11axis.c (AxisDialogFile): use "GString" to create argument string for "get_auto_scale" field. (set_num_format): added. (numbering_tab_set_value): use "set_num_format()". (axis_list_set_val): variable "len" is not used. 2011-01-24 Ito Hiroyuki * src/gra.c (GRAC, _GRAopencallback): use "directfunc". * src/gra.h (directfunc): typedefed. * src/ogra2nul.c (g2nuldone): call "_exeparent()". * src/ogra2.c (gra2done): check number of element of "sarray" when "GC" is not equal to -1. * src/ogra.c (oGRAopen): fix indent. (oGRAdrawparent): add parameter "oGRAargv". (oGRAdraw): "oGRAargv" is local variable now. 2011-01-21 Ito Hiroyuki * src/gtk/x11graph.c (SwitchDialogSetupItem) (switch_dialog_top_cb, switch_dialog_last_cb, SwitchDialogUp) (SwitchDialogDown, SwitchDialogClose): use "arraynget_int()". (SwitchDialogSetup): use "arraynget_str()". * src/gtk/x11axis.c (AxisDialogFile): use "arraynget_double()". * src/gtk/x11view.c (mouse_down_move_data, ViewUpdate) (ViewCopyAxis): use "arraylast_int()". (focus_new_insts, mask_selected_data, mouse_down_move_data): use "arraynget_int()". (Evaluate): use "arraynget_double()". * src/gtk/x11file.c (FileDialogFit, FileWinFit): use "arraylast_int()". (move_tab_setup_item): use "arraynget_int()" and "arraynget_double()". (move_tab_set_value, mask_tab_setup_item): use "arraynget_int()". * src/gtk/x11commn.c (AxisDel2, axis_move_each_obj, FitDel) (FitCopy, FitClear, FileAutoScale): use "arraylast_int()". * src/gtk/ox11dlg.c (dlgradio, dlgcombo): use "arraylast_int()". (get_sarray_argument): use "arraynget_int()". * src/ofile.c (opendata, get_fit_obj_id, f2dgetcoord) (f2dsettings, f2dbounding, f2dsave): use "arraylast_int()". * src/oagrid.c (get_grid_prm): use "arraylast_int()". * src/otext.c (textmatch): use "arraynget_int()". * src/oroot.c (obj_save_config_line_style): use "arraynget_int()". * src/orect.c (rectmatch): use "arraynget_int()". * src/opath.c (curvematch): use "arraynget_int()". * src/omerge.c (mergematch): use "arraynget_int()". * src/omark.c (markmatch): use "arraynget_int()". * src/olegend.c (legendmatch): use "arraynget_int()". * src/ogra2.c (gra2done, gra2disconnect): use "arraynget_str()". * src/ogra.c (oGRAdisconnect, oGRAopen): use "arraynget_str()". (oGRAopen): bug fix: use "arraylast_int()" instead of "*(char *)". * src/oaxis.c (get_axis_box, axismatch2, axisautoscalefile): use "arraynget_int()" and "arraynget_double()". (get_reference_parameter, axisadjust): use "arraylast_int()". * src/oarc.c (arcmatch): use "arraynget_int()". * src/nconfig.c (replaceconfig_match, replaceconfig): use "arraynget_int()". * src/object.c (arraynget_int, arraynget_double, arraynget_str) (arraylast_int): added. (getvaluestr): use "arraynget_int()", "arraynget_double()" and "arraynget_str()". (obj_do_tighten): use "arraylast_int()". 2011-01-20 Ito Hiroyuki * src/gtk/gtk_widget.c (show_color_sel): set tooltip text. * src/gtk/x11lgnd.c (LegendMarkCB): added. (CmMarkDel, CmMarkUpdate): use "LegendMarkCB". (legend_dialog_setup_item, LegendMarkDialogMark): use "button_set_mark_image()". (CmLineUpdate, CmRectUpdate, CmArcUpdate, CmMarkUpdate) (CmTextUpdate): don't use the variable "ret". * src/gtk/x11dialg.c (_set_color): set tooltip text. * src/gtk/x11file.c (button_set_mark_image): added. (MarkDialogSetup, plot_tab_setup_item, FileDialogMark): use "button_set_mark_image()". (MarkDialog): check "type". * src/gtk/x11commn.c (SetFileHidden): add braces after "for" statement. * src/gtk/x11merge.c (CmMergeUpdate): don't use the variable "ret". 2011-01-19 Ito Hiroyuki * src/object.h (n_value, N_VALUE): added. * src/object.h: use "N_VALUE *" instead of "char *" for an instance of an Ngraph object and return value of an object field. * src/gtk/ogra2gdk.c: ditto. * src/gtk/ogra2x11.c: ditto. * src/gtk/ogra2gdk.h: ditto. * src/gtk/x11lgndx.c: ditto. * src/gtk/ogra2cairofile.c: ditto. * src/gtk/x11graph.c: ditto. * src/gtk/ogra2gtkprint.c: ditto. * src/gtk/x11menu.c: ditto. * src/gtk/x11menu.h: ditto. * src/gtk/x11commn.c: ditto. * src/gtk/x11view.c: ditto. * src/gtk/x11file.c: ditto. * src/gtk/ox11menu.c: ditto. * src/gtk/ox11dlg.c: ditto. * src/gtk/ox11menu.h: ditto. * src/gtk/main.c: ditto. * src/gtk/x11print.c: ditto. * src/gtk/ogra2cairo.c: ditto. * src/gtk/ogra2cairo.h: ditto. * src/gra.c: ditto. * src/orect.c: ditto. * src/olegend.c: ditto. * src/gra.h: ditto. * src/osarray.c: ditto. * src/olegend.h: ditto. * src/ngraph.h: ditto. * src/ofile.c: ditto. * src/oroot.c: ditto. * src/oroot.h: ditto. * src/oint.c: ditto. * src/ogra2.c: ditto. * src/opath.c: ditto. * src/omerge.c: ditto. * src/ostring.c: ditto. * src/oio.c: ditto. * src/oshell.c: ditto. * src/ofit.c: ditto. * src/otext.c: ditto. * src/osystem.c: ditto. * src/object.c: ditto. * src/oiarray.c: ditto. * src/omath.c: ditto. * src/omark.c: ditto. * src/odraw.c: ditto. * src/odraw.h: ditto. * src/oarc.c: ditto. * src/ogra.c: ditto. * src/odouble.c: ditto. * src/ogra2prn.c: ditto. * src/odarray.c: ditto. * src/ogra2fil.c: ditto. * src/oagrid.c: ditto. * src/oprm.c: ditto. * src/oaxis.c: ditto. * src/ogra2nul.c: ditto 2011-01-17 Ito Hiroyuki * test/math_test_new.dat: add test for the the functions "push", "pop", "unshift" and "shift". * doc/html_ja/math.html: add documents about the functions "push", "pop", "unshift" and "shift". * src/math/math_basic_function.c (math_func_unshift) (math_func_shift, math_func_pop) (math_func_push): added. * src/math/math_function.h.in: add "push", "pop", "unshift" and "shift". * src/math/math_operator.rb: check coments. 2011-01-14 Ito Hiroyuki * src/opath.c (arrowdraw): check if the path should be closed or not. (draw_stroke): last parameter represents that the path should be closed or not. * src/ofile.c (draw_fit, curveoutfile): initialize variable "a". (curveout, curveoutfile): use "FREE_INTP_BUF()". (UPDATE_PROGRESS_LINE_NUM): added. (hskipdata, getdata_sub1, getdataraw): use "UPDATE_PROGRESS_LINE_NUM". 2010-12-24 Ito Hiroyuki * src/gtk/gtk_widget.c (color_button_key_event): added. (create_color_button): the function "color_button_key_event()" is connected to "key-press-event" and "key-release-event". 2010-12-23 Ito Hiroyuki * src/osystem.c (WEB): change url (sourceforge). * src/gtk/x11file.c (FitDialogSetSensitivity): show simple equation when the "type" is FIT_TYPE_POLY and "dim == 1". 2010-10-20 Ito Hiroyuki * src/ntime.c (append_date_str): format string for "%y" is "%02d". * src/gtk/x11lgnd.c (insert_selcted_char): focus entry widget after insert character. 2010-10-19 Ito Hiroyuki * src/object.c (error): add braces after "if" statements. 2010-10-15 Ito Hiroyuki * src/ofile.c (f2dredraw): check the "type" is "PLOT_TYPE_FIT" or not. 2010-10-14 Ito Hiroyuki * src/gtk/x11gui.c (DialogExecute): don't use "data->show_buttons". * src/gtk/x11file.c (MarkDialogSetup): show number of the mark as a tooltip. 2010-10-13 Ito Hiroyuki * addin/legend.tcl (savescript): don't set "fill_A" field. * src/gtk/x11file.c (draw_type_pixbuf): add braces after "if" statement. (create_type_color_combo_box): renamed from "create_type_combo_box()" . (create_type_combo_box): create only "type", "mark" and "interpolation" item. (start_editing_type): use "create_type_color_combo_box()". * src/gtk/gtk_liststore.c (create_object_cbox): added. (start_editing_obj): use "create_object_cbox()". 2010-10-07 Ito Hiroyuki * src/gtk/x11file.c (create_type_combo_box): change order of columns. (create_type_combo_box): use "OBJECT_COLUMN_TYPE_STRING", "OBJECT_COLUMN_TYPE_PIXBUF" and "OBJECT_COLUMN_TYPE_INT". (select_color): use "OBJECT_COLUMN_TYPE_INT". * src/gtk/gtk_liststore.h (OBJECT_COLUMN_TYPE_STRING) (OBJECT_COLUMN_TYPE_PIXBUF, OBJECT_COLUMN_TYPE_INT): added. * src/gtk/gtk_liststore.c (start_editing_obj): change order of columns. (start_editing_obj): use "OBJECT_COLUMN_TYPE_STRING", "OBJECT_COLUMN_TYPE_PIXBUF" and "OBJECT_COLUMN_TYPE_INT". 2010-10-06 Ito Hiroyuki * src/gtk/x11file.c (create_type_combo_box): show number of a merk type. 2010-09-22 Ito Hiroyuki * src/gtk/x11file.c (file_list_set_val): unref pixbuf. * src/gtk/x11commn.c (ProgressDialogFinalize): set NULL to "ProgressBar2". * src/gtk/x11menu.h (NgraphApp):remove members "swin" and "iconpix". * src/gtk/x11menu.c (create_icon): renamed from "createicon()". (create_icon): unref pixbufs. free "list". * src/gtk/gtk_subwin.c (sub_window_create): unref pixbufs. free "list". * src/ofit.c (fitput): use "math_equation_free()" instead of "g_free()". 2010-09-15 Ito Hiroyuki * src/gtk/gtk_widget.c (direction_icon_released): change direction from 360 to 0 or 0 to 360 when an icon is released. * src/gtk/x11lgnd.c (LegendArcDialogSetup): use "create_direction_entry()" instead of "create_spin_entry_type()". 2010-09-13 Ito Hiroyuki * src/ofile.c (put_func, rectout): fix indent. 2010-09-09 Ito Hiroyuki * src/math/math_function.h.in: add functions "cm". * src/math/math_basic_function.c (math_func_rm): added. 2010-09-08 Ito Hiroyuki * src/ntime.c (get_iso_8601_week): added. * src/gtk/main.c (main): don't set "LC_TIME". * src/math/math_basic_function.c (math_func_mjd2year) (math_func_mjd2month, math_func_mjd2day): use "mjd2gd()" in "ntime.c". (math_func_mjd2wday, math_func_mjd2yday): added. 2010-09-07 Ito Hiroyuki * src/oaxis.c (mjd_to_date_str): use "nstrftime()" instead of "strftime()". (get_axis_gauge_num_str): added. (numformat): use "get_axis_gauge_num_str()". * src/oprm.c (gettimeval2): meved from "ntime.c". * src/ntime.c (mjd2gd, append_date_str, nstrftime): added. * src/gtk/x11cood.c (CoordWinSetCoord): use "nstrftime()" instead of "strftime()". 2010-09-03 Ito Hiroyuki * src/ofile.c (lineout, curveout, stairout, draw_fit): set line style attribute when "EXPAND_DOTTED_LINE" is false. * src/gra.c (GRAreopen, _GRAclose, GRAclose, GRAcurvefirst): allocate , free and initialize "gdashlist" and so on only when "EXPAND_DOTTED_LINE" is treu. (GRAdashlinetod): expand dotted line only when "EXPAND_DOTTED_LINE" is treu. * src/gra.h (EXPAND_DOTTED_LINE): added. 2010-09-02 Ito Hiroyuki * src/nstring.c (get_printf_format_str): call "g_strdup()" after check the strings. * src/ofile.c (rectout): initialize "emig" and "emng". * src/gtk/gtk_widget.c (show_color_sel, create_color_button): check "Menulocal.use_opacity". * src/gtk/ogra2cairo.c (gra2cairo_init): initialize "local->use_opacity". (gra2cairo_output): check "local->use_opacity". (use_opacity): added. (gra2cairo): add field "use_opacity". * src/gtk/x11print.c (OutputImageDialogSetupItem): setup "d->use_opacity". (OutputImageDialogSetup): add widget to set "Use opacity". (OutputImageDialogClose): save setting of "d->use_opacity". (CmOutputImage): set opacity setting to "g2wobj". (CmOutputPrinter, CmOutputViewer): save setting of "Menulocal.use_opacity". * src/gtk/ox11menu.h (menulocal): add member "use_opacity". * src/gtk/x11dialg.h (MiscDialog, OutputImageDialog): add member "use_opacity". * src/gtk/ox11menu.c (menuinit): initialize opacity setting. (mxuse_opacity): added. (gtkmenu): add field "use_opacity". * src/gtk/x11dialg.c (_set_color, _putobj_color): check "Menulocal.use_opacity". * src/gtk/x11file.c (select_color): use opacity settings when "Menulocal.use_opacity" is treu. * src/gtk/x11opt.c (MiscDialogSetupItem): setup "d->use_opacity". (MiscDialogSetup): add widget to set "Use opacity". (MiscDialogClose): save setting of "d->use_opacity". * debian/control (Depends): use "${shlibs:Depends}". 2010-09-01 Ito Hiroyuki * src/nstring.c (add_printf_formated_str): free "format2". 2010-08-31 Ito Hiroyuki * src/gtk/x11file.c (select_color): set opacity. 2010-08-30 Ito Hiroyuki * src/ofile.c (f2ddata_buf, f2ddata): use "struct rgba" instead of "int". (file_alpha): added. (file_func): add function "ALPHA". (opendata): use fields "A" and "A2". (dataadd): add parameters "fa" and "a". * src/oaxis.c (axis): rename fields from "gauge_alpha" to "gauge_A" end "num_alpha" to "num_A". * src/oagrid.c (agridinit): initialize field "BA". (draw_background, agriddraw): remove parameter "alpha". (draw_background): use field "BA". (agriddraw): use field "A". (agrid): add field "BA". * src/oarc.c (arcinit): initialize field "stroke_A" and "fill_A". (arcdraw): use field "stroke_A" and "fill_A". (arc): add field "stroke_A" and "fill_A". * src/omark.c (markinit): initialize field "A2". (markdraw): use field "A" and "A2". (mark): add field "A2". * src/opath.c (arrowinit): initialize field "stroke_A" and "fill_A". (draw_stroke, draw_fill): remove parameter "alpha". (draw_stroke): use field "stroke_A". (draw_fill): use field "fill_A". (arrow): add field "stroke_A" and "fill_A". * src/olegend.c (put_color_for_backward_compatibility): set opacity. * src/orect.c (rectinit): initialize field "stroke_A" and "fill_A". (rectdraw): use field "stroke_A" and "fill_A". (rect): add field "stroke_A" and "fill_A". * src/gra.c (GRAmark): remove parameter "alpha". add parameter "fa" and "ba". * src/gtk/gtk_widget.c (show_color_sel, create_color_button): use opacity control. * src/gtk/x11dialg.c (_set_color, _putobj_color): setup opacity. * src/gtk/x11axis.c (opacity_setup): removed. 2010-08-27 Ito Hiroyuki * src/oaxis.c (axisinit): initialize field "gauge_alpha" and "num_alpha". (AxisConfig): add data "alpha", "gauge_alpha" and "num_alpha". (numbering): use field "num_alpha". (draw_gauge): use field "gauge_alpha". (axisdraw): use field "alpha". (axis): add fields "num_alpha" and "gauge_alpha". * src/oarc.c (arcdraw): use field "alpha". * src/omark.c (markdraw): use field "alpha". * src/otext.c (textdraw): use field "alpha". (TextConfig): add data "alpha". * src/opath.c (draw_stroke, draw_fill): add parameter "alpha". (arrowdraw): use field "alpha". * src/ofile.c (f2ddata): add member "alpha". (opendata): use field "alpha". (markout, lineout, curveout, rectout, errorbarout, stairout) (barout, draw_fit): use "fp->alpha". (FileConfig): add data "alpha". * src/oagrid.c (draw_background): add parameter "alpha". (agriddraw): use field "alpha". * src/odraw.c (drawinit): initialize field "alpha". (draw): add field "alpha". * src/orect.c (rectdraw): use field "alpha". * src/gra.c (GRAmark): add parameter "alpha". * src/gtk/x11lgnd.c (init_legend_dialog_widget_member): initialize "d->opacity". (legend_dialog_setup_item): setup "d->opacity". (legend_dialog_close): save opacity. (opacity_setup): added. (LegendArrowDialogSetup, LegendRectDialogSetup) (LegendArcDialogSetup, LegendMarkDialogSetup) (legend_dialog_setup_sub): add widget to set opacity. * src/gtk/x11file.c (plot_tab_setup_item): setup "d->opacity". (plot_tab_create): add widget to set opacity. (plot_tab_set_value): save opacity. * src/gtk/x11lgndx.c (LegendGaussDialogSetupItem): setup "d->opacity". (LegendGaussDialogSetup): add widget to set opacity. (LegendGaussDialogClose): save opacity. * src/gtk/x11axis.c (opacity_setup): added. (GridDialogSetupItem, baseline_tab_setup_item) (gauge_tab_setup_item, font_tab_setup_item): setup "d->opacity". (GridDialogSetup, baseline_tab_create, gauge_tab_create) (font_tab_create): add widget to set opacity. (GridDialogClose, baseline_tab_set_value, gauge_tab_set_value) (font_tab_set_value): save opacity. 2010-08-26 Ito Hiroyuki * src/oprm.c (prmload): don't use the field "num_jfont". (prmload): id of path object is not "pid" but "cid" when the type of the instance is "PATH_TYPE_CURVE". * src/gra.c (GRAcolor): add argument "alpha". (GRAC): add member "alpha". (GRAdraw): check "GRAClist[GC].alpha". * src/gtk/ogra2cairo.c (gra2cairo_output): use "cairo_set_source_rgba()" when teh value "alpha" is less than 255. 2010-08-25 Ito Hiroyuki * src/gtk/ogra2cairo.c (gra2cairo_output): now 7th argument of "C" command means not only fill method but stroke. * src/oarc.c (get_pos): removed (arcdraw): use 7th argument of "C" command to draw stroke. 2010-08-19 Ito Hiroyuki * src/gra.c (GRAdrawtext, GRAtextextent): consider subscript strings for the calculation of new line position. 2010-08-18 Ito Hiroyuki * src/gra.c (GRAdrawtext, GRAtextextent): use "case" instead of "if". (GRAtextextent): bug fix: fix calculation of bounding box when "c[j] == '\n" and "scriptf != 0". (GRAtextextent, GRAtextextentraw): fix calculation of space. (get_str_bbox): fix treatment of '\' character. * src/gtk/ogra2cairo.c (gra2cairo_output): fix treatment of '\' character. 2010-08-17 Ito Hiroyuki * src/gtk/x11commn.c (LoadNgpFile, LoadPrmFile): call "set_axis_undo_button_sensitivity()". * src/gtk/x11graph.c (CmGraphNewMenu): call "set_axis_undo_button_sensitivity()". * src/gtk/gtk_liststore.c (list_store_set_align): added. * src/gtk/x11axis.c (axis_list_set_val): use "%g" instead of "%.2e" for format string of the function "snprintf()". (CmAxisWindow): call "list_store_set_align()" for columns AXIS_WIN_COL_MIN, AXIS_WIN_COL_MAX and. AXIS_WIN_COL_INC. 2010-07-16 Ito Hiroyuki * initfile/Ngraph.nsc: -n option works after all other options are managed. 2010-07-13 Ito Hiroyuki * src/gtk/x11lgnd.c (legend_dialog_close): save color of "d->color". 2010-07-09 Ito Hiroyuki * src/omath.c (math): remove fields "m00" to "m19". (mlocal): remove member "idpm". (msettbl, minit, mparam): now memories are not used. * src/math/math_basic_function.c (MATH_FUNCTION_MEMORY_NUM): added. (init_memory): added. (math_func_rm, math_func_m, math_func_for): use static variable "Memory". * src/math/math_equation.c (math_equation_clear): don't initialize "eq->memory". * src/math/math_equation.h (_math_equation): remove member "memory". * src/gtk/x11lgnd.c (create_character_panel): use "Menulocal.char_map". * src/gtk/ox11menu.c (MenuConfig): use "character_map" instead of "greece_character", "mathematics_character", "physics_character" and "misc_character". (save_char_map_config, menu_config_set_char_map): added. (menu_save_config_sub, mgtkloadconfig): add case for "MENU_CONFIG_TYPE_CHARMAP". (menulocal_finalize): free "Menulocal.char_map". 2010-07-08 Ito Hiroyuki * src/gtk/ox11menu.h (menulocal): add members "greece_char", "mathematics_char", "physics_char" and "misc_char". * src/gtk/ox11menu.c (MenuConfigMisc): "browser" and "help_browser" ins member of miscellaneous settings menu. (MenuConfig): append character selection data. * src/gtk/x11opt.c (FontSettingDialogClose): free returned string from the function "list_store_get_string()". * src/gtk/x11lgnd.c (insert_selcted_char, create_character_view) (create_character_panel): added. (LegendTextDialogSetup): append character selection panel. 2010-07-07 Ito Hiroyuki * initfile/Ngraph.ini.win: add alternative fonts settings. * src/gtk/ogra2cairo.c (free_font_map): free "d->alternative". (create_font_map): add 3rd argument "alternative". (gra2cairo_save_config): save alternative fonts. (loadconfig): load alternative fonts. (gra2cairo_add_fontmap): don't duplicate font names. (gra2cairo_set_alternative_font): added. (loadfont): use alternative fonts. * src/gtk/x11dialg.h (FontSettingDialog): added. * src/gtk/x11opt.c (FontSettingDialogSetupItem) (AlternativeFontListSelCb, get_font_family) (FontSettingDialogAddAlternative) (FontSettingDialogRemoveAlternative) (FontSettingDialogDownAlternative) (FontSettingDialogUpAlternative, FontSettingDialogSetup) (FontSettingDialogClose, FontSettingDialog): added (get_font_alias): type of the parameter is "struct FontSettingDialog *". (PrefFontDialogUpdate, PrefFontDialogAdd): use "FontSettingDialog". (PrefFontDialogSetupItem, PrefFontDialogSetup): show alternative fonts. 2010-07-02 Ito Hiroyuki * src/nstring.c (getitok, getitok2): type of the 3rd parameter is "const char *". (add_printf_formated_str): type of the 1st parameter is "GString *". * src/otext.c (textprintf): use "GString *" instead of "char *". * src/gra.c (GRAexpandobj, GRAexpandpf): use "GString *" instead of "char *". 2010-07-01 Ito Hiroyuki * src/ioutil.c (getrelativepath): use "GString *" instead of "char *". * src/gra.c (GRAexpandmath): use "GString *" instead of "char *". * src/ofile.c (f2dhead, f2dsave): use "GString *" instead of "char *". * src/oroot.c (osave): use "GString *" instead of "char *". * src/odraw.c (pathsave): use "GString *" instead of "char *". * src/oaxis.c (axis_save_group): use "GString *" instead of "char *". * src/ogra2prn.c (gra2p_output): use "GString *" instead of "char *". * src/shellcm.c (cmeval, cmread, cmdexpr): use "GString *" instead of "char *". * src/gtk/ogra2cairo.c (gra2cairo_output): use "g_unichar_to_utf8()"instead of "iso8859_to_utf8()". * src/gra.c (GRAtextextent, get_str_bbox): use "g_string_append_unichar()" (GRAdrawtext): convert string such as "\x31" to unicode character. * src/strconv.c (iso8859_to_utf8): removed. 2010-06-30 Ito Hiroyuki * src/gtk/x11dialg.c (set_entry_from_obj_point): use "GString *" instead of "char *". * src/gtk/x11file.c (load_tab_set_value): use "GString *" instead of "char *". * src/gtk/x11view.c (eval_dialog_copy_selected) (CopyFocusedObjects): use "GString *" instead of "char *". * src/gra.c (GRAtextextent, GRAexpandtext): use "GString *" instead of "char *". * src/ogra2nul.c (g2nul_strwidth): added. (g2nul_charwidth): removed. (gra2null): remove "_charwidth" field, add "_strwidth" field. * src/ogra.c (oGRAopen): use "_strwidth" field instead of "_charwidth" field. * src/gra.c (GRAC): remove "charwidth" member, add "strwidth" member. (_GRAopen, GRAopen): initialize "strwidth" member. (GRAstrwidth): added. (GRAcharwidth): removed. (GRAtextextent, GRAtextextentraw, get_str_bbox): use "GRAstrwidth()" instead of "GRAcharwidth()". * src/gtk/x11opt_proto.h (CREATE_NAME): call "gtk_scrolled_window_set_policy()". * src/gtk/ogra2cairo.c (gra2cairo): remove "_charwidth" field, add "_strwidth" field. (gra2cairo_strwidth): added. (gra2cairo_charwidth): removed. * src/gtk/ogra2cairofile.c (gra2cairofile): remove "_charwidth" field, add "_strwidth" field. * src/gtk/ogra2x11.c (gra2gtk): remove "_charwidth" field, add "_strwidth" field. 2010-06-28 Ito Hiroyuki * src/oprm.c (prminit, prmload): the field "symbol_greek" in not used now. (remarkconv): use UTF-8 string. (prm): the field "symbol_greek" is removed. * src/omerge.c (mergeinit, mergedraw, mergebbox): the field "symbol_greek" in not used now. * src/gra.c (GRAexpandtext, GRAdrawtext, GRAtextextent) (get_str_bbox): use "g_ascii_isxdigit()" instead of "isxdigit()". (GRAtextextent): use "g_ascii_xdigit_value()". (get_str_bbox): added. (GRAboundingbox): use "get_str_bbox()". (GRAinputold): just convert string from Shift-jis to UTF-8 when the variable "code" is 'K'. * src/gtk/x11dialg.h (MergeDialog, PrmDialog): the member "greek_symbol" is removed. * src/gtk/x11graph.c (PrmDialogSetup, PrmDialogClose): the field "symbol_greek" in not used now. * src/jnstring.c: removed. 2010-06-25 Ito Hiroyuki * initfile/Ngraph.ngp: change font settings. * initfile/Ngraph.ini.win: change font settings. * initfile/Ngraph.ini.in: change font settings. * driver/ngp2.in: remove "-wmf" option. * driver/Makefile.am (ngraphconfdir): gra2ps and gra2wmf are not used now. * src/ogra2nul.c (g2nul_charwidth, g2nul_charheight): check backward compatibility. (addgra2null): initialize "FontDataHash". * src/oaxis.c (AxisConfig): remove configuration "num_jfont", add configuration "num_font_style". (axisinit): "jfont" field does not exist now. (axis): add field "num_font_style". * src/jnstring.c (njis2jms, njms2euc, neuc2jms): removed. * src/shellcm.c (cmdexpr): remove old math related codes. * src/mathcode.c: remove old math related codes. * src/omath.c: remove old math related codes. * src/object.c (getargument): remove old math related codes. * src/otext.c (TextConfig): remove configuration "jfont". add configuration "style". (textinit): "jfont" field does not exist now. (textgeometry): check value of "style" field. (text): add field "style". * src/ofit.c: remove old math related codes. * src/mathfn.c: remove old math related functions. * src/opath.c (draw_stroke): arr parameter "intp". * src/shell.c (str_calc): remove old math related codes. * src/ofile.c: remove old math related codes. * src/gra.c (FONT_STYLE_NORMAL, FONT_STYLE_BOLD) (FONT_STYLE_ITALIC): added. (GRAC): add member "style". (GRAdraw, GRAcharwidth, GRAcharascent, GRAchardescent) (GRAtextstyle): 4th argument of the "H" command represents style of the font. (GRAoutkanji): removed. (GRAexpandmath): remove old math related codes. (GRAexpandtext): use "case" statement. (GRAdrawtext, GRAtextextent): add format command "\B", "\I" and "\N". (GRAtextextent, GRAtextextentraw): don't check "kanji" code. (GRAinputold): convert argument of the "S" command Shift-JI to UTF-8. * src/ioutil.c (getrelativepath): "cwd2" may not be Shift-JIS code. * src/gtk/ogra2cairo.h (compatible_font_info): added. * src/gtk/ogra2cairo.c (check_type, gra2cairo_get_font_type_str): removed. (create_font_map): don't save type, symbol and twobyte. (gra2cairo_save_config): save "font" configurations. remove "font-map" configurations. (loadconfig): load "font" configurations. (loadconfig): load "font-map" configurations only when the "font" configuration related to the font is not loaded yet. (init_conf): don't initialize "FontFace". (gra2cairo_update_fontmap, gra2cairo_add_fontmap): remove parameter "type" and "two_byte". (gra2cairo_done): save configurations when old configurations are used. (gra2cairo_get_compatible_font_info): add. (loadfont): add parameter "font_style" and "symbol". (loadfont): set weight and style every time. (gra2cairo_output): use UTF-8 in the 'S' command. (gra2cairo_charwidth): use "gunichar" instead of "char *". (addgra2cairo): initialize "CompatibleFontHash". * src/gtk/main.c (get_obj_font_list): remove japanese specified codes. * src/gtk/x11dialg.h (AxisFont, LegendDialog): add member "font_bold" and "font_italic". * src/gtk/x11lgnd.c (LegendTextCB): remove japanese specified settings. (init_legend_dialog_widget_member): remove "d->jfont", add "d->font_bold" and "d->font_italic". (get_font, set_font): get and set font style settings. (set_fonts): remove. (legend_dialog_setup_item, legend_dialog_close) (legend_dialog_setup_sub, legend_list_set_property): remove japanese specified settings. (legend_dialog_setup_item, legend_dialog_close) (legend_dialog_setup_sub): get and set font style settings. * src/gtk/x11dialg.c (SetFontListFromObj) (SetObjFieldFromFontList): remove japanese specified settings. * src/gtk/x11file.c (FitDialogResult): remove old math related codes. (draw_type_pixbuf): add 3rd argument for "GRAtextstyle()". * src/gtk/x11view.c (CopyFocusedObjects, focus_new_insts) (text_dropped): remove japanese specified settings. * src/gtk/x11menu.c (USE_EXT_DRIVER): add. (show_graph_menu_cb, create_graphmenu, create_preferencemenu): external driver menu is not shown. * src/gtk/x11opt.c (PrefFontDialogSetupItem) (create_font_selection_dialog): don't save font type. (create_font_selection_dialog) (set_font_from_font_selection_dialog): remove japanese specified settings. (set_font_from_font_selection_dialog): remove settings related to font type. (PrefFontDialogSetup): don't show the style of the font. * src/gtk/x11merge.c (MergeDialogSetupItem, MergeDialogSetup) (MergeDialogClose): remove japanese specified settings. * src/gtk/x11axis.c (font_tab_set_value, font_tab_setup_item) (font_tab_create): remove japanese specified settings. (font_tab_set_value, font_tab_setup_item, font_tab_create): add font style settings. * demo/encodeing.ngp: remove. * demo/demo5a.ngp: change font settings. * demo/demo5b.ngp: change font settings. * demo/demo5c.ngp: show muliti languages. * demo/demo5d.ngp: change font settings. * demo/demo5e.ngp: change font settings. * demo/demo4.ngp.in: change font settings. * demo/demo3.ngp.in: change font settings. * demo/demo2.ngp.in: change font settings. * demo/demo1.ngp.in: change font settings. * debian/rules: remove configure option "--enable-janese". 2010-06-17 Ito Hiroyuki * src/opath.c (distance, check_point_match, point_match): add. (curvematch): use "point_match()". (get_arrow_pos): use "distance()". 2010-06-16 Ito Hiroyuki * src/opath.c (path_fill_mode): "fill" field accept "true" or "false" . (PATH_FUILL_MODE, path_fill_rule, PATH_FILL_RULE): add. (draw_stroke, draw_fill): add. (arrowdraw): use "draw_stroke()" and "draw_fill()". (put_fill_mode): add. (arrow): use "put_fill_mode()" for "fill" field. (arrow): add "fill_rule" field. * src/gtk/x11lgnd.c (legend_dialog_set_sensitive): sensitivity of the widget "d->fill_rule" is depend on the widget "d->fill". (legend_dialog_setup_item, legend_dialog_close): field name for the widget "d->fill_rule" is "fill_rule". (LegendArrowDialogSetup): add widget "d->fill". 2010-06-11 Ito Hiroyuki * src/opath.c (get_arrow_pos): remove parameter "strict". (arrowdraw, arrowbbox): remove 3rd argument of the function "get_arrow_pos()". 2010-06-10 Ito Hiroyuki * src/opath.c (get_arrow_pos): add strict mode. (arrowdraw, arrowbbox): use strict mode for "get_arrow_pos()" when the type is "PATH_TYPE_LINE". * demo/demo5a.ngp: change position of "path" instances. * src/gtk/x11lgndx.c (LegendGaussDialogSetupItem): use "set_stroke_color()" instead of "set_color()". (LegendGaussDialogClose): use "putobj_stroke_color()" instead of "putobj_color()". 2010-06-09 Ito Hiroyuki * src/gtk/ox11menu.c (graph_modified_sub): call "set_modified_state()". * src/gtk/x11menu.c (set_modified_state): add. 2010-06-04 Ito Hiroyuki * src/oarc.c (arcinit): initialize fields "miter_limit", "join" and "stroke". (get_pos): add. (arcdraw): use "stroke_[RGB]" instead of "[RGB]". (arcdraw): use "stroke", "miter_limit", "join", "fill_[RGB]" and "close_path". (arcbbox): use "stroke" and "close_path". (arc): add fields "fill_[RGB]", "stroke_[RGB]", "close_path" and "stroke". * src/odraw.h (JOIN_TYPE): add. * src/olegend.c (put_color_for_backward_compatibility): add. * src/orect.c (rectdraw): use "fill_[RGB]" and "stroke_[RGB]" instead of "[RGB]2" and "[RGB]". (rectdraw, rectbbox, rectmatch): don't use "frame". use "stroke". (rect_frame, put_color2): add. (rect): add fields "fill_[RGB]", "stroke_[RGB]" and "stroke". * src/gtk/x11dialg.h (LegendDialog): add member "stroke_color". * src/gtk/x11lgnd.c (init_legend_dialog_widget_member): initialize "d->fill_color" and "d->stroke_color". (set_sensitive_with_label): fix typo. (legend_dialog_set_sensitive): set sensitivity of "d->fill_color" and "d->stroke_color". (legend_dialog_setup_item): setup "d->fill_color" and "d->stroke_color". (legend_dialog_close): get value from "d->fill_color" and "d->stroke_color". (fill_color_setup, stroke_color_setup): add. (LegendArrowDialogSetup, LegendRectDialogSetup): use "fill_color_setup()" and "stroke_color_setup()" instead of "color_setup()" and "color2_setup()" respectively. (LegendRectDialogSetup): remove "d->frame" setting. add "d->stroke" setting. (LegendArcDialogSetup): use "fill_color_setup()" and "stroke_color_setup()" instead of "color_setup()" and "color2_setup()" respectively. (LegendArcDialogSetup): add settings for "d->stroke" and "d->close_path". (COLOR_TYPE): add. (legend_list_set_color): support "COLOR_TYPE_FILL" and "COLOR_TYPE_STROKE". (legend_list_set_property): use "COLOR_TYPE_FILL" and "COLOR_TYPE_STROKE". * src/gtk/x11dialg.c (set_fill_color, set_stroke_color) (putobj_fill_color, putobj_stroke_color): add. 2010-06-03 Ito Hiroyuki * src/gtk/x11view.c (create_path): use "goto" statement to handle errors. * src/object.c (newobj_alias): check arguments. 2010-06-02 Ito Hiroyuki * demo/encoding.ngp: use "path" object instead of "line" object. * demo/demo5d.ngp: use "path" object instead of "line" object. * demo/demo5a.ngp: use "path" object instead of "line" object. * demo/demo4.ngp.in: use "path" object instead of "line" object. * demo/demo3.ngp.in: use "path" object instead of "line" object. * demo/demo2.ngp.in: use "path" object instead of "curve" object. * addin/legend.tcl (makescript): use "path" object instead of "line" object. * initfile/Ngraph.ngp (gra::draw_obj): remove "line", "polygon" and "curve" objects. add "path" object. * src/Makefile.am (ngraph_SOURCES): remove "oline.c", "opolygon.c" and "ocurve.c". add "opath.c" and "opath.h". * src/oprm.c (prmload): use "path" object instead of "line", "polygon" and "curve" objects. * src/shellcm.c (cmnew): use object name from the functions"getobjiname()" for "newobj_alias()". * src/object.c (newobj_alias): add. (newobj): use "newobj_alias()". (getobjiname): add. (chkobjilist, getobjilist): use "getobjiname()". * src/gtk/gtk_widget.c (get_widget): add. (spin_entry_set_val, spin_entry_get_val): use "get_widget()". * src/gtk/main.c (obj_add_func_ary): remove "addline", "addcurve" and "addpolygon". add "addpath". * src/gtk/x11dialg.h: remove prototype of unused functions. (LegendDialog):add member "stroke", "path_type" and "close_path". remove member "color2_label". * src/gtk/x11lgnd.c (legendlist): remove "line", "polygon" and "curve" items. add "path" item. (Ldlg): remove "DlgLegendCurve" and "DlgLegendPoly". (LegendType): remove "LegendTypeLine", "LegendTypeCurve", "LegendTypePoly". add "LegendTypePath". (LegendLineCB): show the type of the "path" object. (init_legend_dialog_widget_member): initialize "d->path_type", "d->stroke" and "d->close_path". (set_sensitive_with_labdl): add. (legend_dialog_set_sensitive): use "set_sensitive_with_labdl()". (legend_dialog_set_sensitive): set sensitivity for stroke and fill related widgets. (legend_dialog_setup_item): set up "d->stroke", "d->path_type" and "d->close_path". (legend_dialog_setup_item): call "get_widget()" before call "gtk_range_set_value" and "gtk_entry_set_text()". (width_setup, style_setup, miter_setup, join_setup, color_setup) (color2_setup): save label instead of control widgets. (LegendCurveDialogSetup, LegendCurveDialog, LegendPolyDialogSetup) (LegendPolyDialog, CmCurveDel, CmCurveUpdate, CmCurveMenu) (CmPolyDel, CmPolyUpdate, CmPolygonMenu): removed. (LegendArrowDialogSetup): add control widgets for "d->stroke", "d->fill_rule", "d->path_type" and "d->close_path". (CmLineDel, CmLineUpdate): use "path" object instead of "line" object. (LegendWinLegendUpdate, legend_list_set_property): remove case for "LegendTypeLine", "LegendTypeCurve" and "LegendTypePoly". add case for "LegendTypePath". (legend_list_set_property): show some attributes for "path" object. * src/gtk/x11dialg.c (initdialog): don't initialize "DlgLegendCurve" and "DlgLegendPoly". (SetWidgetFromObjField, SetObjFieldFromWidget) (SetObjFieldFromStyle, SetStyleFromObjField, _putobj_color) (_set_color): call "get_widget()" for the parameter "widget". (SetComboList, SetComboList2): removed. (SetObjFieldFromText, SetTextFromObjField, SetObjFieldFromSpin) (SetSpinFromObjField, SetObjFieldFromToggle) (SetToggleFromObjField, SetObjFieldFromStyle): now these functions are static. * src/gtk/x11view.c (create_legend2): create only "path" object. (create_legendx): create "path" object instead of "curve" object. (ViewerEvLButtonDblClk, ViewerEvRButtonDown): remove case for "LineB", "CurveB" and "PolyB". add case for "PathB". (ViewerEvRButtonDown): "g_object_unref()" should be called outside of the "switch" block. (ViewUpdate): don't check "line", "polygon" and "curve" objects. check "path" object. * src/gtk/x11menu.h (PointerType): remove "LineB", "CurveB" and "PolyB" add "PathB". * src/gtk/x11menu.c (Command2_data): remove "line", "polygon" and "curve" buttons. add "path" button. (create_legendmenu): remove "line", "polygon" and "curve" menu items. add "path" menu item. * src/gtk/x11graph.c (SwitchDialogSetupItem, SwitchDialogSetup): localize. (SwitchDialogSetup): check duplicate item. 2010-06-01 Ito Hiroyuki * src/math/math_basic_function.c (mjd2gd): "mjd" must be an integer. * src/oline.c: removed. * src/ocurve.c: removed. * src/opolygon.c: removed. 2010-05-21 Ito Hiroyuki * src/oaxis.c (anumdirchar): add new settings "oblique1" and "oblique2". (get_num_pos): renamed from "get_num_pos_parallel". (get_num_pos_normal): removed. (get_num_pos_oblique, get_num_ofst_oblique1) (get_num_ofst_oblique2): add. (draw_numbering_normalize): add case for "AXIS_NUM_POS_OBLIQUE1" and "AXIS_NUM_POS_OBLIQUE2". (draw_numbering): add argument "ndir". (draw_numbering): add case for "AXIS_NUM_POS_OBLIQUE1" and "AXIS_NUM_POS_OBLIQUE2". (draw_numbering): use "get_num_pos()" instead of "get_num_pos_normal()" and "get_num_pos_parallel()". (numbering): get field "num_direction". (numbering): "align" is not used when "ndir" is "AXIS_NUM_POS_OBLIQUE1" or "AXIS_NUM_POS_OBLIQUE2". (anumdirput): add case for "AXIS_NUM_POS_OBLIQUE1" and "AXIS_NUM_POS_OBLIQUE2". * src/axis.h (AXIS_NUM_DIR): moved from "oaxis.c". * src/gra.c (GRAexpandmath): show "0" when calculated value is equal to 0. * src/gtk/x11dialg.h (AxisNumbering): add member "align_label". * src/gtk/x11axis.c (num_direction_changed): add. (numbering_tab_create): "change" signal is connected to the function "num_direction_changed()". (numbering_tab_create): initialize "d->align_label". 2010-05-20 Ito Hiroyuki * src/gtk/x11menu.c (SetPoint): don't show the position in the status bar when the widget is not visible. * src/gtk/x11cood.c (CoordWinSetCoord): show date when tyoe of the axis is "AXIS_TYPE_MJD". (CoordWinSetCoord): do nothing when the widget is not visible. 2010-05-19 Ito Hiroyuki * src/ofile.c (opendata, getposition, f2dgetcoord): use "AXIS_TYPE_LINEAR", "AXIS_TYPE_LOG" and "AXIS_TYPE_INVERSE". (get_pos_sub): add. (getposition2): use "get_pos_sub()". 2010-05-18 Ito Hiroyuki * src/gtk/x11menu.c (create_image_outputmenu): change accel path of "Export image" menu items. 2010-05-17 Ito Hiroyuki * src/ofit.c (ERR_SMALL_ARGS, ERR_INVALID_PARAM): remove. (fittypechar): remove some error messages. (bisection, newton, fitsolve): remove. (fit): remove fields "newton" and "bisection". * src/ofile.c (ERR_SMALL_ARGS, ERR_INVALID_TYPE) (ERR_INVALID_PARAM, ERRCONVERGE): add. (f2derrorlist): add error messages. (get_fit_obj_id): add. (fitout): use "get_fit_obj_id()". (bisection, newton): moved from "ofit.c". (solve_equation): add. (calc_equation): add. (file2d): add fields "newton", "bisection" and "calc". 2010-05-15 Ito Hiroyuki * test/math_test_new.dat: add test for functions "mjd2year()", "mjd2month()", "mjd2day()" and "unix2mjd()". 2010-05-14 Ito Hiroyuki * src/otext.c (textprintf): use "add_printf_formated_str()". * src/ofit.c (ERR_SMALL_ARGS, ERR_INVALID_PARAM): add. (fittypechar): add error messages. (fitcalc): variable "eq" is not static. (bisection, newton, fitsolve): add. (fit): add fields "newton" and "bisection". * src/nstring.c (get_printf_format_str, add_printf_formated_str): add. * src/gra.c (GRAexpandmath): use "g_strdup_printf()" instead of "sprintf()". (GRAexpandmath): change format string depend on the value "vd". (GRAexpandpf): use "add_printf_formated_str()". 2010-05-13 Ito Hiroyuki * src/math/math_basic_function.c (mjd2gd, math_func_mjd2year) (math_func_mjd2month, math_func_mjd2day): add. * src/math/math_function.h.in: add functions "mjd2year", "mjd2month" and "mjd2day". * src/gtk/x11graph.c (CmGraphSaveB): call "CmGraphOverWrite()" instead of "CmGraphSave()". * src/gtk/x11menu.c (show_outputmenu_cb, create_outputmenu): remove. (command_data): add member "stock". (Command1_data): use stock items. (show_graph_menu_cb): set sensitivity of the widget "ExtDrvOutMenu". (create_graphmenu): move "Export image", "external _Driver" and "Print preview" menu items from "Output" menu. (create_filemenu): move "Save data" menu item from "Output" menu. (create_windowmenu): move "Draw" and "Clear" menu items from "Output" menu. (createmenu): don't call "create_outputmenu()". (createpixmap): check "data[i].xpm". (createcommand1): call "gtk_tool_button_new_from_stock()" when "cdata->xpm" is NULL. (createcommand1): call "gtk_tool_item_set_homogeneous()". (createcommand2): call "gtk_tool_button_set_stock_id()" when "cdata->img" is NULL. 2010-05-10 Ito Hiroyuki * src/oaxis.c (get_num_ofst_horizontal, get_num_ofst_parallel) (get_num_ofst_normal1, get_num_ofst_normal2): the type of the parameter "aconf" is "const struct axis_config *". (mjd_to_date_str): add parameter "date_format". (draw_numbering_normalize): the type of parameters "aconf" and "font" are "const struct axis_config *" and "const struct font_config *" respectively. (axis): add field "num_date_format". * src/math/math_basic_function.c (math_func_unix2mjd): first argument of the function "mjd()" is "tm->tm_year + 1900". * src/gtk/ogra2cairo.c (draw_str): check if the parameter "str" is NULL or not. * src/gtk/main.c (main): set "LC_TIME" as "C". * src/gtk/x11dialg.h (AxisNumbering):add member "date_format". * src/gtk/x11file.c (FitCB): localize message. * src/gtk/x11axis.c (AxisCB, AxisHistoryCB): localize message. (numbering_tab_set_value, numbering_tab_setup_item) (numbering_tab_create): add settings for date format. 2010-05-08 Ito Hiroyuki * src/oaxis.c (axistypechar): add scale type "MJD". (anumdirchar): use "horizontal" and "parallel1" instead of "normal" and "parallel" respectively. (AxisConfig): remove duplicated member "type". (mjd_to_date_str): add. (numformat): construct whole numbering string. (draw_numbering_normalize, draw_numbering, anumdirput): use "AXIS_NUM_POS_HORIZONTAL" and "AXIS_NUM_POS_PARALLEL1" instead of "AXIS_NUM_POS_NORMAL" and "AXIS_NUM_POS_PARALLEL" respectively. (draw_numbering): remove unused argument "taillen". (draw_numbering): remove unused variable "num". (draw_numbering): move some codes to the function "numformat()". (get_step): add. (numbering): remove unused variables "taillen", "num", "n" and "count". (numbering): use "get_step()". (numbering): move some codes to the function "numformat()". (anumdirput): add. (axis): use "anumdirput" to set value to the field "num_direction". * src/axis.h (AXIS_SCALE_TYPE): meved from "oaxis.c". 2010-05-07 Ito Hiroyuki * src/math/math_basic_function.c (mjd): add. (math_func_mjd): use "mjd()". (math_func_unix2mjd): add. * src/math/math_function.h.in: add function "unix2mjd". add 4th, 5th and 6th arguments to the function "mjd". * src/shellcm.c (dispfield): check first character of a string "enumlist[j]". * src/axis.h (AXIS_SCALE_TYPE): moved from "oaxis.c". * src/object.c (getargument): check first character of a string "enumlist[i]". * src/gtk/main.c (get_obj_enum_list): check first character of a string "enumlist[i]". * src/gtk/x11dialg.c (SetListFromObjField): check first character of a string "enumlist[i]". * src/gtk/x11file.c (FitDialogSetup, create_type_combo_box) (create_type_combo_box): check first character of strings "curvelist[j]" and "enumlist[i]". 2010-04-28 Ito Hiroyuki * src/Makefile.am (ngraph_CFLAGS): add option "-DG_DISABLE_DEPRECATED=1" and "-DG_DISABLE_SINGLE_INCLUDES=1". * src/nconfig.c (replaceconfig, removeconfig): use "n_tmpfile()" and "n_tmpfile_close()". * src/ioutil.c (n_tmpfile, n_tmpfile_close): add. * src/gtk/x11commn.c (AddNgpFileList): use "g_filename_to_uri()". * src/gtk/x11graph.c (CmGraphHistory): use "g_filename_from_uri()". 2010-04-27 Ito Hiroyuki * src/gtk/x11graph.c (PageDialogPage): change sensitivity of labels. (PageDialogSetup): initialize "d->paperheight_label" and "d->paperwidth_label". * src/gtk/x11opt.c (MiscDialogSetupItem): initialize "d->help_browser" and "d->browser". (set_file_in_entry): change title of the dialog. (MiscDialogSetup): add entries to set programs for help browser and web browser. (MiscDialogSetup): change order of frames. (use_external_toggled): toggle sensitivity of labels. (load_file_toggled): add. (ViewerDialogSetup): "load_file_toggled()" is connected to the "toggled" signal. (set_program_name): add. (MiscDialogClose): use "set_program_name()". * src/gtk/x11dialg.h (PageDialog): add member "paperwidth_label" and "paperheight_label". (ExViewerDialog):add member "d_label", "w_label" and "h_label". (ViewerDialog): add member *data_num_label". * src/gtk/gtk_entry_completion.c (entry_completion_set_entry): add. * src/gtk/x11lgnd.c (LegendTextDialogSetup): don't call "gtk_entry_set_completion()". (LegendTextDialogSetup): use "entry_completion_set_entry()" instead of "gtk_entry_set_completion()". * src/gtk/x11file.c (clear_math_completion): remove. (MathTextDialogSetup, math_tab_setup_item, func_entry_focused): use "entry_completion_set_entry()" instead of "gtk_entry_set_completion()". (FileDialogClose, FileDefDialogClose): don't call "clear_math_completion()". 2010-04-26 Ito Hiroyuki * src/jnstring.c (niskanji): conditions are simplified. (niskanji2): use variable "l" to compare length of string. * mingw/install.txt: add document. * src/gtk/x11file.c (MathTextDialogClose): call "gtk_entry_set_completion()" before exit the function except the case of "d->ret == IDLOOP". (math_tab_setup_item): call "gtk_entry_set_completion()". (clear_math_completion): add. (FileDialogClose, FileDefDialogClose): call "clear_math_completion()" before exit the function except the case of "d->ret == IDLOOP". 2010-04-25 Ito Hiroyuki * src/gtk/x11print.c (SvgVersion): change order of SVG version. (OutputImageDialogSetupItem): initialize image export settings. (OutputImageDialogClose): save image export settings. (OutputImageDialogClose): "d->Version" is "TYPE_SVG1_1" when selected version is "SVG version 1.1". * src/gtk/ox11menu.h (menulocal): add image export settings. (SAVE_CONFIG_TYPE): add "SAVE_CONFIG_TYPE_EXPORT_IMAGE". * src/gtk/ox11menu.c (MenuConfigExportImage): add. (MenuConfigArrray): add "MenuConfigExportImage". (menu_save_config): save image export settings. (menuinit): initialize image export settings. * src/gtk/x11menu.c (application): call "menu_save_config()" for "SAVE_CONFIG_TYPE_EXPORT_IMAGE". 2010-04-23 Ito Hiroyuki * mingw/windows_make.sed: add "-lwinspool" option to the variable "LIBS". * src/gtk/x11print.c (OutputImageDialogSetupItem): "d->dpi" and "d->dlabel" are sensitive. * src/gtk/ogra2cairofile.c (create_reference_dc): add. (create_cairo): use "create_reference_dc()" to get reference DC. (create_cairo): call "StartPage()". (gra2cairofile_output): call "cairo_surface_flush()", "cairo_surface_copy_page()" and "EndPage()". 2010-04-21 Ito Hiroyuki * src/gtk/x11menu.c (create_image_outputmenu): add "EMF file" menu item. * src/gtk/x11print.c (OutputImageDialogSetupItem) (OutputImageDialogSetup, OutputImageDialogClose) (CmOutputImage, CmOutputMenu): add case for "MenuIdOutputEMFFile". * src/gtk/x11menu.h (MenuID): add "MenuIdOutputEMFFile". * src/gtk/ogra2cairofile.h (surface_type_id): add "TYPE_EMF". * src/gtk/ogra2cairofile.c (CAIRO_EMF_SCALE): add. (surface_type): add type "emf". (create_cairo, gra2cairofile_output): add case for "TYPE_EMF". 2010-04-20 Ito Hiroyuki * src/gtk/x11lgnd.c (legend_list_build): use "tree_store_prepend()" instead of "tree_store_append()". * src/gtk/x11file.c (delete_file_obj): add. (CmFileHistory, CmFileNew, CmFileClose, update_file_obj_multi) (FileWinFileDelete, FileWinFileUpdate): use "delete_file_obj()". (CmFileWindow): "d->delete" is set as "delete_file_obj". * src/gtk/x11view.c (EvalDialogSetupItem): use "tree_store_prepend()" instead of "tree_store_append()". * src/gtk/x11menu.c (init_ngraph_app_struct): use "memset()". * src/gtk/gtk_subwin.c (update, delete): use "d->delete" instead of "delobj()" if "d->delete" is not NULL. * src/gtk/x11axis.c (CmAxisWindow): "d->delete" is set as "AxisDel". * src/gtk/x11menu.h (SUBWIN_PROTOTYPE): add member "delete". * src/math/math_scanner.h (struct math_token): add member "next". * src/math/math_scanner.c (create_token): use "g_malloc0()" instead of "g_malloc()". * src/math/math_parser.c (parse_expression_list): fix memory leak when the type of the token is "MATH_TOKEN_TYPE_EOEQ". (my_get_token, unget_token, math_parser_parse): use list instead of array. * src/gtk/gtk_liststore.c (tree_store_prepend): add. 2010-04-15 Ito Hiroyuki * src/omath.c (create_func_def_str): use "g_strdup_printf()". * src/ofile.c (EQUATION_NUM): add. (struct f2ddata, set_user_fnc, set_equation): use "EQUATION_NUM". (create_func_def_str): use "g_strdup_printf()". (set_const_all): last argument of "set_const()" for "fp->codex[1]" and "fp->codey[1]" is depend on "fp->type". (f2ddraw): use "set_const_all()" instead of "set_const()". * src/gtk/gtk_common.h (GTK_WIDGET_VISIBLE): use "gtk_widget_get_visible()" if "GTK_WIDGET_VISIBLE" is not defined. 2010-04-13 Ito Hiroyuki * src/gtk/x11file.c (FileDialogCopyAll): remove. (FileDialogClose): remove case "IDCOPYALL" (FileDialogSetup): remove "Copy all" button. (FileDialogSetup): set width of the file preview as 240. 2010-04-06 Ito Hiroyuki * src/gtk/x11menu.c (SUB_WINDOW_STATE, change_window_state_cb): add. (application): "change_window_state_cb()" is connected to the "window-state-event" signal. * src/gtk/gtk_subwin.c (hide_minimize_menu_item): add. (sub_window_create): "hide_minimize_menu_item()" is connected to the "realize" signal. 2010-04-05 Ito Hiroyuki * src/gtk/x11menu.c (create_sub_windows, destroy_sub_windows): add. (application): use "create_sub_windows()" and "destroy_sub_windows()" . * src/gtk/gtk_subwin.c (ev_sub_win_key_down): call "gtk_widget_hide()" instead of "gtk_widget_hide_all()". 2010-04-04 Ito Hiroyuki * mingw/windows.sh: remove "--enable-new_math" option for configure script. 2010-04-01 Ito Hiroyuki * initfile/Ngraph.ini.win: change Japanese fonts. * src/otext.c (text_set_text): treat shift-jis strings. * src/shell.c (getcmdline): treat shit-jis strings. * driver/gra2wmf.c (main): use g_mkstemp() when the version of GLIB is lesser than 2.22. * src/gtk/x11view.c (graph_dropped): add "-f" option for "LoadNgpFile()". (ViewerEvMouseMove, ViewerEvPaint, create_pix): check "Menulocal.gc". * src/gtk/x11opt.c (set_file_in_entry): add. (MiscDialogSetup): use "create_file_entry_with_cb()" instead of "create_text_entry()". (CmOptionSaveNgp): use "naccess()" instead of "access()". * src/gtk/x11merge.c (merge_list_set_val): the filename is always UTF-8. * src/gtk/x11menu.h (NgraphApp): remove member "Message1", and members "Message_pos" and "Message_extra". * src/gtk/x11menu.c (show_file_menu_cb): the filename is always UTF-8. (createpixmap, create_toolbar_pixmap, createicon): remove unused argument "win". (create_message_box): add. (setupwindow): call "gtk_widget_show_all()" and "reset_event()" just after call "gtk_table_attach" for "NgraphApp.Viewer.Win". (SetPoint): use GtkLabel to show the cursor position in the status bar. * src/gtk/x11gui.c (fsok): use "naccess()" instead of "access()". (fsok): use "nstat()" instead of "stat()". (fsok): convert filename string to UTF-8. (fsok): use "g_path_get_dirname()". (file_dialog_set_current_neme): use "getbasename()". (FileSelectionDialog): second argument of "file_dialog_set_current_neme()" has to be converted from UTF-8. * src/gtk/x11graph.c (DirectoryDialogClose, CmGraphHistory): use "nchdir()" instead of "chdir()". (CmGraphHistory): use "g_path_get_dirname()". (about_link_activated_cb, CmHelpHelp): use "system_bg()". * src/gtk/x11file.c (edit_file): add. (FileDialogEdit, CmFileEdit, FileWinFileEdit): use "edit_file()". (file_list_set_val): the filename is always UTF-8. * src/gtk/x11dialg.c (SetObjFieldFromText, SetTextFromObjField): strings are always UTF-8. * src/gtk/x11commn.c (SaveDrawrable): don't write platform information. (check_overwrite, GraphSave): use "naccess()" instead of "access()". (GraphSave): use "nchdir()" instead of "chdir()". (LoadNgpFile): check if the file is readable or not. (LoadNgpFile): the filename is always UTF-8. (CheckIniFile): get home directory from "system" object. (ErrorMessage): use "g_strerror()" instead of "strerror()". * src/gtk/ox11menu.c (menumenu): convert filename string from UTF-8. (menumenu): call "hide_console()" and "resotre_console()" before and after call "application()" respectively. (SetCaption): the filename is always UTF-8. * src/gtk/ogra2cairofile.c (create_cairo, gra2cairofile_output): convert filename string from UTF-8. * src/gtk/main.c (check_console, hide_console, resotre_console): added. (nallocconsole, exec_console): use "g_unlink()" instead of "unlink()". (set_dir_defs, set_path_env): added. (main): don't use third argument. (main): call "g_thread_init()", "gdk_threads_init()" and "gdk_threads_enter()". (main): call "set_dir_defs()" when "WINDOWS" is defined. (main): use "g_getenv()" instead of "getenv()". (main): use "g_get_user_config_dir()". (main): check return value of "exeobj()" for "shell::shell". (get_file_list): use "nstat()" instead of "stat()". * src/gtk/gtk_widget.c (filename_from_utf8, filename_to_utf8): remove. (entry_set_filename, entry_get_filename): don't convert file name. * src/gtk/gtk_subwin.c (start_editing, modify_string): strings are always UTF-8. (sub_window_create): type hint for subwindows are "GDK_WINDOW_TYPE_HINT_UTILITY". (sub_window_create): call "gtk_window_set_transient_for()". * src/shellux.c (testexpand): use "nstat()" instead of "stat()". * src/shellcm.c (cmcd): use "nchdir()" instead of "chdir()". (cmbasename): use "getbasename()" instead of "basename()". (cmdirname): use "getdirname()" instead of "dirname()". * src/shell.c (set_environ): use "g_getenv()" to get environment variable. (unlinkfile): use "g_unlink()" instead of "unlink()". (set_shellevloop): use "g_thread_create()" instead of "pthread_create()". (reset_shellevloop): use "g_thread_join()" instead of "pthread_join()". (readline_thread, nreadline): added. (shget): use "nreadline()" when readline library is available. (puts_localized): added. (shputstdout, shprintfstdout): use "puts_localized()". (getcmdline): convert strings to UTF-8 if the strings are not valid UTF-8. (expand): use "g_unlink()" instead of "unlink()". (expand): use function "strlen()" only once for a loop. (set_env_val, cmdexec, newshell): use "g_getenv()" instead of "getenv()". (proc_in_thread, quote_args): added. (cmdexec): use "g_strerror()" instead of "strerror()". (cmdexec): use "g_thread_create()" and "proc_in_thread()" to execute command. (show_system_error, system_in_thread, system_bg): added. * src/osystem.c (nsystem): add field "compiler". (sysinit): set compiler name. (sysdone, sysunlink): use "g_unlink()" instead of "unlink()". (syscwd): use "nchdir()" instead of "chdir()". * src/oprm.c (prmload): use "naccess()" instead of "access()". * src/omerge.c (mergefile): call "get_utf8_filename()" for filename argument. (mergetime, mergedate): use "nstat()" instead of "stat()". (mergeload): use "naccess()" instead of "access()". * src/oio.c (io_error): use "g_strerror()" instead of "strerror()". * src/ogra2prn.c (gra2p_output): use "g_unlink()" instead of "unlink()". * src/ofile.c (f2dfile): call "get_utf8_filename()" for filename argument. (f2dtime, f2ddate, get_mtime): use "nstat()" instead of "stat()". (f2dload): use "naccess()" instead of "access()". (f2doutputfile): use "g_strerror()" instead of "strerror()". * src/object.c (error2, error22): call "g_locale_from_utf8()" for message string. * src/nconfig.c (unlockconfig, make_backup, copyconfig): use "g_unlink()" instead of "unlink()". (openconfig, writecheckconfig, copyconfig): use "nstat()" instead of "stat()". (writecheckconfig): use "naccess()" instead of "access()". * src/ioutil.c (changefilename): don't check Shit-JIS kanji code. Encodeing of the filename should be UTF-8. (path_to_win): added. (getfullpath): use "get_utf8_filename()". (getdisk): added. (getrelativepath): use "get_utf8_filename()". (get_utf8_filename, get_localized_filename): added. (getbasename): use "g_path_get_basename()". (getdirname): use "g_path_get_dirname()". (nsearchpath): call "g_find_program_in_path()". (nselectdir): use "nstat()" instead of "stat()". (nfopen): use "g_fopen()". (nstat, naccess, nchdir): added. (n_mkstemp): use "g_get_tmp_dir()". * src/common.h (COMPILER_NAME): added. (WINDOWS): define if "__MINGW32__" is defined * initfile/Ngraph.ini.in (help_browser): change format (file name is not included). * driver/wmfapi.c (chk_write): added. (Polygon, Ellipse, Arc, Pie, Chord, SetPixel, SetPolyFillMode) (SetBkMode, SetTextAlign, SetTextCharacterExtra, TextOut) (SetTextColor, Rectangle, MoveTo, LineTo, SelectObject) (DeleteObject, SetWindowOrg, SetWindowExt, CloseMetaFile) (SetMapMode): use "chk_write()" instead of "write()". (CloseMetaFile): don't close the file but call "fseek()". (CreateMetaFile): add argument "dc". (CreateMetaFile): don't open a file. * driver/gra2wmf.c (getboundingbox, draw): use function "strlen()" only once for each loops. (main): use environment variable "NGRAPHCONF" instead of "NGRAPHLIB". (main): use "g_mkstemp_full()" to create temporally file. (main): use "chk_write()" instead of "write()". 2010-03-31 Ito Hiroyuki * driver/gra2ps.c (getboundingbox, draw): use function "strlen()" only once for each loops. (main): use environment variable "NGRAPHCONF" instead of "NGRAPHLIB". * mingw/windows_resource.rc: added. * mingw/windows_make.sed: added. * mingw/windows_demo.sed: added. * mingw/windows.sh: added. * mingw/pango.aliases: added. * mingw/gtkrc: added. * mingw/associate.bat: added. * mingw/Makefile.am: added. 2010-03-19 Ito Hiroyuki * src/gtk/main.c (main): use "g_listenv()" instead of 3rd argument of "main()" function. 2010-03-04 Ito Hiroyuki * src/gtk/x11menu.c (reset_event): change name from "ResetEvent" * Src/Gtk/x11gui.c (message_beep): change name from "MessageBeep" (message_box): change name from "MessageBox". * src/gtk/x11commn.c (allocate_console): change name from "AllocConsole". (free_console): change name from "FreeConsol". * src/gtk/main.c (reset_fifo, nallocconsole, reset_fifo) (nfreeconsole): use "nopen()" and "nclose()". (get_file_list): use "g_dir_open()", "g_dir_read_name()" and "g_dir_close()". * src/gtk/ox11menu.h (DEFAULT_GEOMETRY): change name from "CW_USEDEFAULT". * src/gtk/gtk_entry_completion.c (entry_completion_save) (entry_completion_load): use "nfopen()". * src/strconv.c (str2utf8): use "g_iconv". * src/object.c: change variable name form "GlovalLock" to "Glovallock". * src/nconfig.c (lockconfig, openconfig, make_backup) (replaceconfig, removeconfig, copyconfig): use "nfopen()". * src/ioutil.c (nscandir): use "g_dir_open()", "g_dir_read_name()" and "g_dir_close()". (nscandir): remove 3rd argument. (nopen): use "g_open()". (nfopen): use "g_fopen()". (n_mkstemp): use "g_mkstemp()". * configure.in: check library "pthreadGC2". 2010-02-24 Ito Hiroyuki * src/ofile.c (draw_interpolation): added. (draw_fit): use "draw_interpolation()". 2010-02-23 Ito Hiroyuki * src/math/math_expression.c (math_parameter_expression_new): set errorcode to "err" when the variable "prm" is NULL. * src/ofit.c (ERR_INCONSISTENT_DATA_NUM): added. (fiterrorlist): add error message. (fit_put_weight_func): fix arguments of the function "ofile_create_math_equation()". * src/ofile.c (calc_fit, draw_fit): added. (fitout): use "calc_fit()" and "draw_fit()". (ofile_create_math_equation): add argument "use_const". (set_equation): fix second argument of "set_user_fnc()" from "g" to "h". (set_const): add arguments "const_id" and "need2pass". (f2ddraw): constant "FIRST" for equatiosn "fp->codex[0]" and "fp->codey[0]" is TRUE. 2010-02-22 Ito Hiroyuki * src/ofile.c (fitout): use "calc_weight()" to calculate weight. (calc_weight): added. * src/object.c (moveobj): move object only when id of instances of "sid" and "did" are exist. (_newobj, _delobj, _copyobj): remove. * src/math/math_function.h.in: add functions "prog1" and "prog2". * src/math/math_basic_function.c (math_func_prog1) (math_func_prog2): added. 2010-02-19 Ito Hiroyuki * src/math/math_expression.c (calc): divided by zero is not error. returned value is 'NaN'. 2010-02-18 Ito Hiroyuki * src/math/math_function.h.in: add function "progn". * src/math/math_basic_function.c (math_func_progn): add * src/oaxis.c (numformat, draw_numbering, numbering): use "snprintf()". (draw_numbering): delete argument "num" and add argument "draw". (draw_numbering): print position, direction and numbering value when "draw" is false. (numbering): add argument "draw". (axis_get_numbering): added. (axis): add field "get_numbering". (draw_numbering_normalize): added. (draw_numbering): use "draw_numbering_normalize()". * driver/ngp2.in: add "-d dpi" option. 2010-02-16 Ito Hiroyuki * src/gtk/x11file.c (load_tab_create): type of the spin button "d->load.finalline" is "SPIN_BUTTON_TYPE_INT". 2010-02-15 Ito Hiroyuki * src/ofile.c (ofile_create_math_equation): change name from "create_math_equation()" and this function is now global. (fitout): call "math_equation_parse()", "set_const()" and "math_equation_optimize()" for weight function. * src/ofit.c (fit_put_weight_func): added. (show_eqn_error): added. (fit): check "weight_func". (fitput): use "show_eqn_error()". 2010-02-10 Ito Hiroyuki * src/gtk/x11axis.c (ZoomDialogSetupItem): use "spin_entry_set_val()" . (ZoomDialog): don't initialize "data->zoom". * src/gtk/x11dialg.c (initdialog): initialize "DlgZoom.zoom" 2010-02-05 Ito Hiroyuki * src/gtk/x11commn.c (get_save_opt): return "IDOK" (not "IDCANCEL") when both "fnum" and "mnum" is negative. 2010-02-03 Ito Hiroyuki * src/gtk/gtk_liststore.c (list_store_remove_selected_cb): set cursor on the first selected path. 2010-02-02 Ito Hiroyuki * src/gtk/x11view.c (show_focus_line_arc, ShowPoints): call "gdk_draw_arc()" only when "Menulocal.do_not_use_arc_for_draft" is false. * src/gtk/ox11menu.h (menulocal): add member "do_not_use_arc_for_draft". * src/gtk/ox11menu.c (MenuConfigViewer): add setting related to "do_not_use_arc_for_draft". * src/gtk/x11lgnd.c (renderer_func, column_edited) (column_0_edited, column_1_edited, insert_column) (set_delete_button_sensitivity): added. (points_setup): use "GtkTreeView". (LegendCurveDialogSetup, LegendPolyDialogSetup) (LegendArrowDialogSetup): change layout. * src/gtk/x11dialg.c (SetObjPointsFromText) (SetTextFromObjPoints): use "GtkTreeView". (set_obj_points_from_text, set_entry_from_obj_point): added. (SetObjFieldFromStyle): use "set_obj_points_from_text()" instead of "SetObjPointsFromText()". (SetStyleFromObjField): use "set_entry_from_obj_point()" instead of "SetTextFromObjPoints()". 2010-01-26 Ito Hiroyuki * src/gtk/x11graph.c (DirectoryDialogSetup): use "GtkTable" instead of "GtkHBox". (DirectoryDialogSetup): add current directory label. * src/gtk/x11dialg.h (DirectoryDialog): add member "dir_label". 2010-01-22 Ito Hiroyuki * src/gtk/x11view.c (EvalDialogSetup): set "d->ok_button" as "GTK_STOCK_CLOSE". * src/gtk/x11opt_proto.h (CREATE_NAME): set "d->ok_button" as "GTK_STOCK_CLOSE". * src/gtk/x11gui.c (DialogExecute): initialize "data->ok_button". (DialogExecute): use "data->ok_button" for "ok" button. * src/gtk/x11file.c (MathDialogSetup): set "d->ok_button" as "GTK_STOCK_CLOSE". * src/gtk/x11dialg.h (DIALOG_PROTOTYPE): add member "ok_button". 2010-01-21 Ito Hiroyuki * src/gtk/x11print.c (init_print): added. (CmOutputPrinter): "begin_print" signal is connected to the function "init_print()". (CmOutputPrinter): don't call "gtk_print_operation_set_current_page()". 2010-01-04 Ito Hiroyuki * src/gra.h (CURVE_OBJ_USE_EXPAND_BUFFER): added. * src/ocurve.c (curveinit): initialize "_points" field when "CURVE_OBJ_USE_EXPAND_BUFFER" is TRUE. (curve_expand, curve_expand_points, curve_clear) (curve_set_points, curve_flip, curve_move, curve_rotate) (curve_zoom, curve_change): added. (curve): add field "_points". (curvedraw, curvebbox, curvematch): use "_points" field when "CURVE_OBJ_USE_EXPAND_BUFFER" is TRUE. * src/object.c (arrayclear, arrayclear2): added. 2009-12-25 Ito Hiroyuki * src/ofile.c (file_color): allow negative or greater than 255 for "val". * src/gtk/x11view.c (EvalDialogSetup): call "gtk_scrolled_window_set_policy()". * src/gtk/x11file.c (MathDialogSetup, create_user_fit_frame) (move_tab_create, mask_tab_create, FileDialogSetup): call "gtk_scrolled_window_set_policy()". * src/gtk/ogra2x11.c (gtkinit): call "gtk_scrolled_window_set_policy()". * src/gtk/x11dialg.c (SelectDialogSetup, CopyDialogSetup): call "gtk_scrolled_window_set_policy()". * src/gtk/ogra2x11.c (gtkinit): call "gtk_scrolled_window_set_policy()". * src/gtk/gtk_subwin.c (sub_window_create): call "gtk_scrolled_window_set_policy()". (sub_window_create): call "gtk_window_set_skip_taskbar_hint()" * src/gtk/x11file.c (create_user_fit_frame): initial values and derivative equations are shown in scrolled window. 2009-12-24 Ito Hiroyuki * src/gtk/x11lgnd.c (legend_list_set_val): use "legend_list_set_property()". (legend_list_set_color, legend_list_set_property): added. * src/gtk/x11menu.c (create_toolbar): use "gtk_orientable_set_orientation()" instead of "gtk_toolbar_set_orientation()" is the version of the GTK+ is greater or equal to 2.16. * src/gtk/gtk_subwin.c (set_cell_renderer_cb) (set_editable_cell_renderer_cb, set_combo_cell_renderer_cb) (set_obj_cell_renderer_cb): use "gtk_cell_layout_get_cells()" instead of "gtk_tree_view_column_get_cell_renderers()". * src/gtk/x11file.c (FitDialogSetSensitivity): don't change sensitivity of widgets related to division settings. (FitDialogSetup): don't use "toggled" signal of "d->interpolation". * src/gtk/x11dialg.h (struct FitDialog): remove member "div_box" 2009-12-22 Ito Hiroyuki * src/gtk/x11print.c: initialize "DriverDialogBrowseCB" as NULL when "USE_ENTRY_ICON" is FALSE. (DriverDialogSelectCB): now "ext" of "struct extprinter" is not include ".". * src/gtk/x11opt.c: initialize "SetScriptDialogBrowse" and "SetDriverDialogBrowse" as NULL when "USE_ENTRY_ICON" is FALSE. * src/gtk/gtk_widget.c: initialize "entry_icon_file_select" as NULL when "USE_ENTRY_ICON" is FALSE. 2009-12-18 Ito Hiroyuki * src/gtk/x11file.c (set_user_fit_sensitivity) (create_user_fit_frame): added. (FitDialogSetSensitivity): use "set_user_fit_sensitivity()". (FitDialogSetup): use "GtkTable" instead of "GtkHBox" or "GtkVBox". (FitDialogResult): call "math_equation_add_parameter()". (FitDialogSave, FitDialogLoad, FitDialogCopy): connected to "clicked" signal. 2009-12-17 Ito Hiroyuki * src/gtk/gtk_widget.c (create_file_entry_with_cb): added. * src/gtk/x11dialg.h (struct FileMath, struct FileLoad) (struct FileMask, struct FileMove): added. (struct FileDialog): add member "math", "load", "mask" and "move" * src/gtk/x11file.c (move_tab_setup_item, move_tab_copy) (move_tab_create, move_tab_set_value, mask_tab_setup_item) (mask_tab_copy, mask_tab_create, mask_tab_set_value) (load_tab_setup_item, load_tab_copy, load_tab_create) (load_tab_set_value, math_tab_setup_item, math_tab_copy) (math_tab_create, math_tab_set_value, file_setup_item) (set_fit_button_label, plot_tab_setup_item, file_settings_copy) (plot_tab_create, file_dialog_show_tab, set_headlines) (plot_tab_set_value): added. (FileDialogSetup): use "set_headlines()". * src/gtk/x11graph.c (PageDialogSetup): use "GtkTable" instead of "GtkHBox" or "GtkVBox". * src/gtk/x11lgnd.c (LegendLineCB, LegendRectCB, LegendArcCB): use "g_strdup_printf()" instead of "g_malloc()" and "snprintf()". (legend_dialog_set_sensitive): added. (legend_dialog_setup_item): call "legend_dialog_set_sensitive()". (legend_copy_clicked): added. (width_setup, points_setup, style_setup, miter_setup) (join_setup, color_setup, color2_setup, LegendCurveDialogSetup) (LegendPolyDialogSetup, LegendArrowDialogSetup) (LegendRectDialogSetup, LegendArcDialogSetup) (legend_dialog_setup_sub, LegendTextDialogSetup) (LegendTextDefDialogSetup): use "GtkTable" instead of "GtkHBox" or "GtkVBox". * src/gtk/x11lgndx.c (LegendGaussDialogSetup): use "GtkTable" instead of "GtkHBox" or "GtkVBox". * src/gtk/x11merge.c (MergeDialogCopy): connected to "clicked" signal. (MergeDialogSetup): use "GtkTable" instead of "GtkHBox" or "GtkVBox". (MergeDialogClose): remove case for "IDCOPY". * src/gtk/x11opt.c (ViewerDialogSetup, ExViewerDialogSetup) (MiscDialogSetup, SetDriverDialogSetup, SetScriptDialogSetup): use "GtkTable" instead of "GtkHBox" or "GtkVBox". (SetDriverDialogSetup, SetScriptDialogSetup): use "create_file_entry_with_cb()" instead of "create_text_entry()". (SetScriptDialogBrowse, SetDriverDialogBrowse): connected to "icon-release" signal. * src/gtk/x11print.c (DriverDialogSetup): use "GtkTable" instead of "GtkHBox" or "GtkVBox". (DriverDialogSetup): use "create_file_entry_with_cb()" instead of "create_text_entry()". (DriverDialogBrowseCB): connected to "icon-release" signal. 2009-12-11 Ito Hiroyuki * src/gtk/x11opt.c (MiscDialogSetup): use "GtkTable" instead of "GtkHBox" and "GtkVBox". 2009-12-10 Ito Hiroyuki * src/gtk/x11file.c (select_color): use "ndialog_run()" instead of "gtk_dialog_run()". * src/gtk/gtk_widget.c (show_color_sel): use "ndialog_run()" instead of "gtk_dialog_run()". * src/gtk/x11opt.c (PrefFontDialogUpdate, PrefFontDialogAdd): use "ndialog_run()" instead of "gtk_dialog_run()". * src/gtk/x11gui.c (DialogExecute): use "DnDLock" instead of "GlobalLock". (ndialog_run): added. (DialogExecute, MessageBox, DialogInput, DialogRadio) (DialogCombo, DialogComboEntry, DialogSpinEntry, DialogCheck) (FileSelectionDialog): use "ndialog_run()" instead of "gtk_dialog_run()". * src/gtk/x11menu.c: add gloval variable "DnDLock". * src/gtk/x11view.c (drag_drop_cb): check "DnDLock". * src/gtk/x11lgndx.c (enum LEGEND_DIRECTION) (LEGEND_DIRECTION_NUM): add (LegendGaussDialogPaint, LegendGaussDialogClose): use "switch" instead of "if". (LegendGaussDialogSetup): use "GtkTable" instead of "GtkHBox" and "GtkVBox". * src/gtk/x11dialg.h: add definition of structs "AxisBase", "AxisPos", "AxisFont", "AxisNumbering" and "AxisGauge". (struct AxisDialog): add member "tab", "del_btn", "tab_active", "base", "font", "position", "gauge" and "numbering". * src/gtk/x11dialg.c: remove gloval variables "DlgAxisBase", "DlgAxisPos", "DlgNum", "DlgAxisFont" and "DlgGauge". (SetObjFieldFromWidget): focus the widget when an error is occurred. * src/gtk/x11axis.c (bg_button_toggled): added. (GridDialogSetupItem): call "bg_button_toggled()". (GridDialogSetup): "toggled" signal is connected to "bg_button_toggled()" . (grid_copy_clicked): change name from "GridDialogCopy()". (gauge_syle_setup, GridDialogSetup, SectionDialogSetup) (CrossDialogSetup): use "GtkTable" instead of "GtkHBox" and "GtkVBox". (scale_tab_setup_item, scale_tab_copy_clicked, scale_tab_create) (baseline_tab_set_value, baseline_tab_setup_item) (baseline_tab_copy_clicked, baseline_tab_create) (gauge_tab_set_value, gauge_tab_setup_item) (gauge_tab_copy_clicked, gauge_tab_create) (numbering_tab_set_value, numbering_tab_setup_item) (numbering_tab_copy_clicked, numbering_tab_create) (font_tab_set_value, font_tab_setup_item, font_tab_copy_clicked) (font_tab_create, position_tab_set_value) (position_tab_setup_item, position_tab_copy_clicked) (position_tab_create, axis_dialog_show_tab): added. (AxisDialogSetup): use "GtkNotebook". (scale_tab_set_value): added. (AxisDialogClose): call "gtk_notebook_set_current_page()" when errors are occurred. (AxisDialogSetup): sensitivity of the delete button is depemd on "d->CanDel". * src/gtk/gtk_widget.c (add_widget_to_table_sub) (add_widget_to_table, add_copy_button_to_box): added. 2009-12-05 Ito Hiroyuki * configure.in: set "AM_SILENT_RULES". 2009-11-30 Ito Hiroyuki * src/osystem.c (sysinit): call "gsl_set_error_handler_off()" when "HAVE_LIBGSL" is defined. * src/math/math_basic_function.c (math_func_icgam) (math_func_gamma, math_func_erfc, math_func_beta, math_func_lgn) (math_func_pn, math_func_yn, math_func_jn, math_func_ei): use GSL function when available. (math_func_icbeta, math_func_erf, math_func_zeta) (math_func_zetam1, math_func_zeta_int, math_func_zetam1_int) (math_func_ynu, math_func_jnu, math_func_inu, math_func_knu) (math_func_in, math_func_kn, math_func_yl, math_func_jl): added. 2009-11-26 Ito Hiroyuki * src/omath.c (parse_original_formula): this function is not used if "NEW_MATH_CODE" is not defined. * src/shellcm.c (cmdexpr): variable "err_msg" is always used. * src/gtk/main.c (obj_add_func_ary[]): add "addio". * src/oio.c: added. 2009-11-24 Ito Hiroyuki * src/math/math_equation.c (clear_pos_func_buf): added. (math_equation_clear): use "clear_pos_func_buf()". (math_equation_parse): call "clear_pos_func_buf()" if "eq->pos_func_num" is greater than zero. * src/math/math_basic_function.c (math_func_asin) (math_func_acos): minimum value of "v" is -1 (not 0). (math_func_not): don't have to check "exp->buf[1]". (math_func_gt): comparing condition is ">" (not ">="). (math_func_pn): "x" is "double" (not "int"). (math_func_pn): check maximum value of "x". (math_func_rsort): 3rd argument of the function "qsort" is "sizeof(MathValue)" (not "sizeof(double)"). * src/shell.c (str_calc): set rcode as "MNAN" or "MUNDEF" when "value.type" is "MATH_VALUE_NAN" or "MATH_VALUE_UNDEF" respectively. (str_calc): initialize "value" and "val". 2009-11-23 Ito Hiroyuki * src/math/math_basic_function.c (math_func_acos) (math_func_asin): initialize variable "v". 2009-11-21 Ito Hiroyuki * src/math/math_parser.c (parse_const_def_expression): return NULL when "eq->func_def" is TRUE. (parse_const_def_expression): set and restore "eq->func_def" before and after call the function "parse_expression()". (parse_expression_list): don't call "math_expression_free()" before call "math_equation_set_parse_error()". (parse_expression_list): return NULL when "token->type" is "MATH_TOKEN_TYPE_CONST" and "inside_block" is TRUE. * src/math/math_error.h (MATH_ERROR_INVALID_CDEF) (MATH_ERROR_PRM_IN_DEF): added. * src/math/math_error.c (ERR_MSG_INVALID_C, ERR_MSG_PRM_IN_DEF): added. (ERR_MSG_POS_FUNC): change message. (math_err_get_error_message): add case for "MATH_ERROR_INVALID_CDEF" and "MATH_ERROR_PRM_IN_DEF#. * src/math/math_equation.c (math_equation_get_parameter): add argument "int *err" and set error id when "err" is not NULL. * src/ofile.c (put_func): don't substitute return value of the function "set_equation()" when rcode is TRUE. * src/object.c (ERR_MSG_BUF_SIZE): change buffer size. (error, error2, error22): change maximumlength of an error message. 2009-11-20 Ito Hiroyuki * src/ofile.c (MATH_CONST_NUM): add constant "MASK" and "MOVE". (set_const): set constant "MASK" and "MOVE". 2009-11-17 Ito Hiroyuki * src/math/math_parser.c (parse_primary_expression): return NULL when the type of the token is "MATH_TOKEN_TYPE_EOEQ". * src/gtk/x11commn.c (AddNgpFileList): check if the filename is valid UTF-8 string. * src/gtk/x11menu.c (show_file_menu_cb): change filename to UTF-8. * src/gtk/x11opt.c (SetScriptDialogBrowse) (SetDriverDialogBrowse): use "entry_set_filename()". * src/gtk/gtk_widget.c (entry_icon_file_select): use "entry_set_filename()". * src/gtk/x11opt.c (set_scrpt_file, SetDriverDialogClose): use "entry_get_filename()". * src/gtk/x11dialg.c (SetObjFieldFromText): change filename from UTF-8. * src/gtk/gtk_widget.c (entry_get_filename, entry_set_filename): added. * src/gtk/gtk_subwin.c (modify_string): change filename from UTF-8. * src/gtk/x11merge.c (merge_list_set_val): change filename to UTF-8. * src/gtk/x11gui.c (file_dialog_set_current_neme): change filename to UTF-8. * src/gtk/x11file.c (file_list_set_val): change filename to UTF-8. * src/gtk/x11dialg.c (SetTextFromObjField): change filename to UTF-8. * src/gtk/x11commn.c (check_overwrite, LoadNgpFile): change filename to UTF-8. * src/gtk/ox11menu.c (SetCaption): change filename to UTF-8. * src/gtk/gtk_widget.c (entry_set_filename): change filename to UTF-8. * src/gtk/gtk_subwin.c (file_select, start_editing): change filename to UTF-8. * src/ofile.c (set_data_progress): don't show the filename. * src/gtk/gtk_widget.c (filename_from_utf8, filename_to_utf8): added. 2009-11-16 Ito Hiroyuki * src/nstring.c (nstrdup): remove (use g_strdup instead). * src/object.c (memalloc, memrealloc, memfree): remove (use g_malloc, g_realloc and g_free instead). 2009-11-14 Ito Hiroyuki * src/strconv.h: moved from "src/gtk/strconv.c". * src/strconv.c: moved from "src/gtk/strconv.c". * src/math/math_parser.c (parse_primary_expression) (parse_const_def_expression): "*err" is "MATH_ERROR_EOEQ" when the type of the token is "MATH_TOKEN_TYPE_EOEQ". * src/gtk/strconv.c (utf8_to_sjis, sjis_to_utf8): use "CP932" instead of "shift-jis" 2009-11-12 Ito Hiroyuki * src/omath.c (parse_original_formula): added. (mformula): use "parse_original_formula()". 2009-11-11 Ito Hiroyuki * src/shellcm.c (str_calc): remove. * src/shell.c (str_calc): added. * src/object.c (getargument): use "str_calc()". * src/gra.c (GRAexpandmath): use "str_calc()". * src/ofile.c (put_func): restore old equation when new equation causes error. 2009-11-10 Ito Hiroyuki * src/math/math_parser.c (parse_const_def_expression): set error code. (parse_const_def_expression): fix condition from "token->data.op == MATH_OPERATOR_TYPE_EQ" to "token->data.op != MATH_OPERATOR_TYPE_ASSIGN" 2009-11-07 Ito Hiroyuki * src/gtk/x11commn.c (get_save_opt): return "IDOK" or "IDCANCEL". (GraphSave): return "IDCANCEL" when "get_save_opt()" returns "IDCANCEL". 2009-11-06 Ito Hiroyuki * src/gtk/x11view.c (mouse_down_move_data, move_data_cancel): first argument of "MessageBox()" is NULL. * src/gtk/x11print.c (CmOutputPrinter): first argument of "MessageBox()" is NULL. * src/gtk/x11opt.c (set_scrpt_option, CmOptionSaveNgp): first argument of "MessageBox()" is NULL. * src/gtk/x11menu.c: (static GtkWidget *CurrentWindow) (set_current_window, get_current_window): add (PutStderr): first argument of "MessageBox()" is NULL. * src/gtk/x11gui.c (DialogExecute): save and restore current window. (MessageBox): use "get_current_window()" as parent if "parent" is NULL. * src/gtk/x11commn.c (ErrorMessage): first argument of "MessageBox()" is NULL. * src/math/math_error.c (math_err_get_error_message): convert error message from utf-8 to locale. * src/gtk/x11lgnd.c (pos_edited, width_edited): don't show error message. * src/gtk/x11axis.c (pos_edited_common): don't show error message. (pos_edited_common): change first argument (from "struct objlist *" to "struct SubWin*"). * src/gtk/gtk_widget.c (spin_change_value_cb): don't show error message (because Gtk+ shows following error message). Gtk-WARNING **: GtkEntry - did not receive focus-out-event. If you connect a handler to this signal, it must return FALSE so the entry gets the event as well 2009-11-04 Ito Hiroyuki * src/ofile.c (put_func): change 5th argument from "int type" to "char *field". * src/ofit.c (fitput): use "math_err_get_error_message()". 2009-11-03 Ito Hiroyuki * src/math/math_expression.c (math_constant_definition_expression_new): set error id to "*err" when the constant is already defined. * src/math/math_error.c (ERR_MSG_CONST_EXIST) (ERR_MSG_CALCULATION): added. * src/math/math_equation.c (math_equation_set_const_error) (math_equation_get_const_name): added. (math_equation_add_const_definition): add argument "int *err". * src/math/math_error.c (check_error_position) (math_err_get_error_message, ERR_MSG_FUNC_NEST) (ERR_MSG_UNEXP_OP, ERR_MSG_UNEXP_TOK, ERR_MSG_ARG_NUM) (ERR_MSG_MISS_RP, ERR_MSG_MISS_RC, ERR_MSG_MISS_RB) (ERR_MSG_UNKNOWN_F, ERR_MSG_INVARID_F, ERR_MSG_INVARID_P) (ERR_MSG_MEMORY, ERR_MSG_UNKNOWN, ERR_MSG_POS_FUNC): added. * src/math/math_parser.c (parse_array_expression) (parse_primary_expression, get_argument, create_math_func) (parse_unary_expression, parse_expression) (parse_expression_list): call "math_equation_set_parse_error()", "math_equation_set_func_arg_num_error()" or "math_equation_set_func_error()" when parse error. * src/math/math_equation.h (_struct _math_equation): add member "err_info". * src/math/math_equation.c (math_equation_new): use "memset()" to initialize struct. (math_equation_set_parse_error) (math_equation_set_func_arg_num_error) (math_equation_set_func_error): added. (math_equation_parse): initialize "eq->err_info". * src/gtk/x11lgnd.c (width_edited, pos_edited): add 4th argument for the function "str_calc()". (width_edited, pos_edited): show message on a error. * src/gtk/x11axis.c (pos_edited_common): add 4th argument for the function "str_calc()". (pos_edited_common): show message on a error. * src/gtk/gtk_widget.c (spin_change_value_cb): add 4th argument for the function "str_calc()". (spin_change_value_cb): show message on a error. * src/gtk/gtk_subwin.c (numeric_cb): add 4th argument for the function "str_calc()". * src/shellcm.c (str_calc): add argument "char **err_msg". (str_calc): set error message when "*err_msg" is not NULL. (cmdexpr): show error message created in new math code. * src/ofile.c (put_func): show message on a error. (f2dputmath): don't show error message. 2009-10-27 Ito Hiroyuki * addin/legend.tcl (savescript): move frame rectangle to the top of the instances. (makescript): bug fix: fix typo "in" to "int". 2009-10-22 Ito Hiroyuki * src/ofile.c (struct f2dlocal): add member "total_line", (f2dinit): initialize "f2dlocal->total_line". (set_final_line): added. (check_mtime, getminmaxdata): call "set_final_line()". 2009-10-21 Ito Hiroyuki * src/shellcm.c (str_calc): add code for new math code. * src/omath.c (mlocalclear, minit, mdone): add code for new math code. (create_func_def_str): added. (mformula, mcalc): add code for new math code. * src/ofit.c (fitdone, fitput, fituser): add code for new math code. * src/ofile.c (struct f2ddata_buf): add members "colr2", "colg2" and "colb2" when "NEW_MATH_CODE" is true. (struct f2ddata): add some members when "NEW_MATH_CODE" is true. (struct f2dload): add some members when "NEW_MATH_CODE" is true. (file_color, file_rgb_sub, file_rgb, file_rgb2, file_hsb_sub) (file_hsb, file_hsb2, file_marksize, file_marktype, struct funcs) (add_file_func): added. (opendata, reopendata, f2dputmath): add code for new math code. (create_func_def_str, set_user_fnc, set_equation, put_func): added. (create_math_equation): added. (f2dinit, f2ddone, getdataarray, getdata_get_other_files): add code for new math code. (set_var, set_const, file_calculate, set_const_all): added. (getdata_sub2, getdata_sub1, getdata, getdata2, getdataraw) (getminmaxdata, markout, rectout, barout, fitout, f2ddraw) (f2devaluate, f2dgetdataraw, f2dstat, f2dstat2, f2dboundings) (f2doutputfile): add code for new math code. * src/object.c (getargument): add code for new math code. * src/gra.c (GRAexpandmath): add code for new math code. * src/gtk/x11file.c (FitDialogResult): add code for new math code. * src/math/parse_bin_expression.h: added. * src/math/math_scanner.h: added. * src/math/math_scanner.c: added. * src/math/math_parser.h: added. * src/math/math_parser.c: added. * src/math/math_operator.rb: added. * src/math/math_operator.h.in: added. * src/math/math_operator.h: added. * src/math/math_operator.c: added. * src/math/math_function.rb: added. * src/math/math_function.h.in: added. * src/math/math_function.h: added. * src/math/math_function.c: added. * src/math/math_expression.h: added. * src/math/math_expression.c: added. * src/math/math_error.h: added. * src/math/math_equation.h: added. * src/math/math_equation.c: added. * src/math/math_constant.rb: added. * src/math/math_constant.h.in: added. * src/math/math_constant.h: added. * src/math/math_constant.c: added. * src/math/math_basic_function.c: added. * src/math/Makefile.am: added. * configure.in: add macro for new math code. * src/gtk/x11axis.c (axiswin_scale_clear): call "set_graph_modified()" after call "exeobj()". 2009-10-20 Ito Hiroyuki * src/shell.c (expand): new upstream release (6.3.51). * src/ofile.c (f2dtime, f2ddate): new upstream release (6.3.51). * src/omerge.c (mergedate, mergetime): new upstream release (6.3.51). 2009-10-10 Ito Hiroyuki * src/gtk/x11commn.c (AxisDel): fix 3rd argument of "strncpy()" (from "sizeof(group)" to "sizeof(group3)"). 2009-10-02 Ito Hiroyuki * src/gtk/x11view.c (ViewerEvKeyDown): call "UnFocus()" when the escape key is pressed. 2009-09-05 Ito Hiroyuki * src/mathcode.c (mathexpand): maximum value of the operand for operator '!' is 169 (not 69). 2009-08-28 Ito Hiroyuki * src/gtk/x11commn.c (get_save_opt): added. (GraphSave): use "get_save_opt()". 2009-08-19 Ito Hiroyuki * src/gtk/x11file.c (draw_type_pixbuf): call "g_object_unref()" for "pix" when "ggc" is lesser than 0. * src/gtk/x11view.c (drag_drop_cb): check the drop is success or not. (text_dropped): use "CheckGrid()". (enum EvalDialogColType, eval_dialog_set_parent_cal) (mask_selected_data): added. (EvalDialogSetupItem, eval_dialog_copy_selected) (EvalDialogSetup, select_data_cb): use "GtkTreeStore" instead of "GtkListStore". (Evaluate): use "mask_selected_data". (mouse_down_move_data): don't return but "goto ErrEnd;" when "fileobj" is NULL. 2009-08-18 Ito Hiroyuki * src/gtk/x11view.c (eval_dialog_copy_selected): save text to not only "CLIPBOARD" but "PRIMARY". 2009-08-17 Ito Hiroyuki * src/gtk/gtk_widget.c (_create_spin_entry): fix argument of "gtk_spin_button_set_digits()". * src/gtk/x11dialg.c (get_style_string): added. (SetStyleFromObjField): use "get_style_string()". * src/gtk/x11lgnd.c (legend_list_set_val): don't display size of mark object. (legend_list_set_val): show mark size in "LEGEND_WIN_COL_WIDTH" column. (legend_list_set_val): show some fields in "LEGEND_WIN_COL_PROP" column. (width_edited): edit "size" field of mark object. (get_points): added. 2009-08-14 Ito Hiroyuki * src/gtk/x11gui.c (DialogExecute): set "GlobalLock" as TRUE, save and restore "GlobalLock" to inhibit DnD during executing dialog. * src/gtk/x11view.c (init_dnd): use "gtk_target_list_add_text_targets()" to add text target. (drag_drop_cb): do nothing when "GlobalLock" is TRUE. (drag_drop_cb): always call "gtk_drag_finish()". (paste_cb): call "UpdateAll()" after call "ShowFocusFrame()". (text_dropped): focus newly created text. 2009-08-13 Ito Hiroyuki * src/gtk/x11gui.c (DialogSpinEntry): call "gtk_spin_button_set_numeric()". * src/gtk/x11print.c (OutputImageDialogSetup): second argument of "gtk_spin_button_set_numeric()" is TRUE. * src/gtk/x11lgnd.c (pos_edited, width_edited): use "str_calc()" instead of "strtod()". * src/gtk/x11axis.c (pos_edited_common): use "str_calc()" instead of "strtod()". * src/gtk/gtk_widget.c (spin_change_value_cb): added. (_create_spin_entry): call "g_signal_connect()" for "input" signal. (_create_spin_entry): second argument of "gtk_spin_button_set_numeric()" is FALSE. * src/gtk/gtk_subwin.c (start_editing): second argument of "gtk_spin_button_set_numeric()" is FALSE. (numeric_cb): use "str_calc()" instead of "strtod()". * src/gtk/x11lgnd.c (width_edited): added. (CmLegendWindow): call "set_editable_cell_renderer_cb()" for "LEGEND_WIN_COL_WIDTH". (legend_list_set_val): add case for "LEGEND_WIN_COL_WIDTH". (legend_list_set_val): add mark character and mark size for the case of "LegendTypeMark". (MarkChar, MarkCharNum): added. (Llist): add column "lw/pt", remove column "object" and change column from "property" to "object/property". (LEGEND_WIN_COL_WIDTH): added. (legend_list_set_val): gettextize some strings. (legend_list_set_val): remove case for "LEGEND_WIN_COL_NAME". (legend_list_build, legend_list_set): set strings to "LEGEND_WIN_COL_PROP" column. 2009-08-12 Ito Hiroyuki * src/gtk/x11file.c (fit_load_dialog_default_cb): remove. (FitLoadDialogSetup): use "GtkComboBox" instead of "GtkTreeView". (FitSaveDialogSetup): add delete button. (FitSaveDialogClose): call "g_strstrip()" for the profile. (FitSaveDialogClose): show confirm message when the profile is not specified. (copy_settings_to_fitobj, delete_fitobj): added. (FitDialogSave): use "copy_settings_to_fitobj()" and "delete_fitobj()". (FitCB): return "type" only when "profile" is NULL. 2009-08-11 Ito Hiroyuki * src/gtk/x11view.c (eval_dialog_copy_selected) (eval_data_sel_cb): added. (EvalDialogSetup): add "Copy" button. (paste_cb): place pasted text to center of the widget. (text_dropped): position of the text is multiple of 100. * src/gtk/x11file.c (math_dialog_key_pressed_cb): use "gtk_tree_selection_count_selected_rows()" to check rows are selected or not. * src/gtk/x11dialg.c (multi_list_default_cb): use "gtk_tree_selection_count_selected_rows()" to check rows are selected or not. * src/gtk/x11dialg.c (multi_list_default_cb): remove redundant call of "gtk_tree_view_get_selection()". * src/gtk/x11dialg.h (struct FitDialog): add member "func_label". * src/gtk/x11file.c (FitDialogSetup): add equation label. (FitDialogSetup): improve the placement of widgets. (FitDialogSetup): maximum number of "d->dim" is 9. (FitDialogSetup): maximum number of "d->div" is 65535. (FitDialogSetSensitivity): set equation label string. (set_fitdialog_sensitivity): added. * src/ofit.c (fituser): show "dxxc" in the progress dialog. 2009-08-10 Ito Hiroyuki * src/gra.c (GRAexpandtext): output '-' character when the string is '\-' (because 0xad "soft hyphen" is not printable usually). (GRAexpandtext): output no character when the string is '\x00'. * src/gtk/gtk_subwin.c (sub_window_create): call "gtk_widget_show_all()" for "swin". 2009-08-07 Ito Hiroyuki * src/gtk/x11file.c (select_color): check version of GTK. * src/gtk/x11gui.c (FileSelectionDialog): call "file_dialog_set_current_neme()" only when "type" is "GTK_FILE_CHOOSER_ACTION_SAVE". 2009-08-06 Ito Hiroyuki * src/object.c (sexeobjfield): check "arglist" before call "strcmp()". * src/odraw.h (enum SAVE_PATH_TYPE): added. * src/gtk/x11commn.c (SetFileName): use copy of "str". (ToRalativePath): added. (GraphSave): save and restore previous working directory. (GraphSave): change "file::file" and "merge::file" depend on the value of "path". 2009-08-05 Ito Hiroyuki * src/gtk/x11opt.c (MiscDialogSetup): set label to some frames. * src/gtk/x11file.c (FitCB): just return "valstr". * src/gtk/x11commn.c (FileCB): use "g_strdup_printf()". (change_filename, get_basename, ToBasename): added. (ToFullPath): use "change_filename()". (LoadNgpFile): "system::ignore_path" is always FALSE. (LoadNgpFile): call "ToBasename()" when "ignorepath" is TRUE. * src/gtk/x11axis.c (AxisCB, AxisHistoryCB, GridCB): use "g_strdup_printf()". * src/gtk/x11commn.c (LoadPrmFile): set modified flag when load PRM file. * src/oaxis.c (draw_wave, draw_arrow): added. (axisdraw): use "draw_wave()" and "draw_arrow()". 2009-08-04 Ito Hiroyuki * src/gtk/gtk_widget.c (direction_icon_released) (create_direction_entry): exchange up and down icon. * src/oline.c (arrowdraw, arrowbbox): use "enum ARROW_POSITION_TYPE". * src/oaxis.c (enum AXIS_SCALE_TYPE): added. (anumdirchar, enum AXIS_NUM_DIR): add member "normal2". (get_num_pos_horizontal, get_num_pos_parallel) (get_num_pos_normal, struct font_config, struct axis_config) (get_num_ofst_horizontal, get_num_ofst_parallel) (get_num_ofst_normal1, get_num_ofst_normal2, draw_numbering) (numbering, draw_gauge, get_axis_parameter) (get_reference_parameter): added. (axisdraw): use "get_reference_parameter()", "draw_gauge()" and "numbering()". (axisdraw): use "enum ARROW_POSITION_TYPE". * src/odraw.h (enum ARROW_POSITION_TYPE): added. * src/mathfn.c (compare_double): added. * src/axis.c (getaxispositionini): use "compare_double()" to compare two floating-point value. 2009-07-27 Ito Hiroyuki * src/gtk/x11view.c (ncopyobj): use "copy_obj_field()". (new_file_obj): add argument "multi". (data_dropped): "Apply All" button is active when "i" is lesser than "num - 1". * src/gtk/x11file.c (copy_file_obj_field): use "copy_obj_field()". * src/gtk/x11commn.c (FitCopy): use "copy_obj_field()". * src/gtk/gtk_subwin.c (obj_copy): use "copy_obj_field()". * src/shellcm.c (cmcpy): use "copy_obj_field()". * src/object.c (copy_obj_field): added. 2009-07-26 Ito Hiroyuki * src/gtk/x11file.c (copy_file_obj_field): add (FitDialogSave): check "DlgFitSave.Profile" and "DlgFitSave.Profile[0]". (FitDialogSave): check arguments of "strcmp()". (CmFileHistory): use "nstrdup()" instead of "memalloc()" and "strcpy()". (FileDialogCopyAll, update_file_obj_multi, file_obj_copy): use "copy_file_obj_field()". * src/gtk/x11gui.c (fsok): use "g_strdup_printf()" or "strdup()" instead of "malloc()" and "strcpy()". * src/gtk/x11commn.c (AxisDel): use "strncpy()" instead of "strcpy()". * src/gtk/ogra2cairofile.c (gra2cairofile_output): don't check "local->linetonum" before call "gra2cairo_draw_path()". * src/gtk/ogra2cairo.c (gra2cairo_update_fontmap): check arguments "fontname" and "fontalias". (gra2cairo_draw_path): check "local->linetonum". (gra2cairo_free, gra2cairo_flush, gra2cairo_output): don't check "local->linetonum" before call "gra2cairo_draw_path()". * src/gtk/gtk_entry_completion.c (entry_completion_append): check argument "str". 2009-07-23 Ito Hiroyuki * src/gtk/x11file.c (FitDialogSave): bug fix: check and argument of "strcmp()". * src/gtk/x11gui.c (set_dialog_position, get_dialog_position): added. (DialogInput, DialogRadio, DialogCombo, DialogComboEntry) (DialogSpinEntry, DialogCheck): add add argument "x" and "y". * src/gtk/ox11dlg.c (dlginit): initialize "x" and "y" field. (dlginput, dlgradio, dlgcombo, dlgspin, dlgcheck): add argument "x" and "y" to create dialog window. (dialog): add field "x" and "y". 2009-07-22 Ito Hiroyuki * src/gtk/x11axis.c (CmAxisWindow): call "sub_window_show_all()" instead of "sub_window_show()". * src/gtk/x11cood.c (CoordWinUpdate): call "sub_window_show_all()" instead of "sub_window_show()". * src/gtk/x11file.c (CmFileWindow): call "sub_window_show_all()" instead of "sub_window_show()". * src/gtk/x11info.c (InfoWinUpdate): call "sub_window_show_all()" instead of "sub_window_show()". * src/gtk/x11lgnd.c (CmLegendWindow): call "sub_window_show_all()" instead of "sub_window_show()". * src/gtk/x11merge.c (CmMergeWindow): call "sub_window_show_all()" instead of "sub_window_show()". * src/gtk/gtk_subwin.c (sub_window_show_all): added. (sub_window_show, sub_window_hide): call "gtk_widget_show()" and "gtk_widget_hide()" instead of "gtk_widget_show_all()" and "gtk_widget_hide_all()" respectively. 2009-07-21 Ito Hiroyuki * src/omark.c (MODIFY_MARK_TYPE, rotate_cw, v_flip, h_flip): added. (markrotate, markflip): modify mark type when "MODIFY_MARK_TYPE" is TRUE. 2009-07-15 Ito Hiroyuki * src/gtk/x11file.c (select_type): use 3rd column of the combo-box to specify which type of item is selected. (start_editing_type): don't activate the combo-box item. * src/gtk/gtk_liststore.c (start_editing_obj): add column to the model. 2009-07-14 Ito Hiroyuki * src/gtk/gtk_liststore.c (create_column): set "expand" property as TRUE when ellipsize mode is not "PANGO_ELLIPSIZE_NONE". * src/gtk/x11file.c (enum FILE_COMBO_ITEM, select_color): added. (select_type): set not only "type" but color. (create_type_combo_box): add color setting combo item. 2009-07-10 Ito Hiroyuki * src/gtk/x11file.c (count_line_number_str, set_line_number_tag) (create_text_tag): added. (FileDialogSetup): initialize "d->comment_num_tag" and set tag for line number. * src/gtk/x11dialg.h (struct FileDialog): add member "comment_num_tag". * addin/Makefile.am (pkglib_DATA): add "cal.nsc". * addin/cal.nsc: added. * src/gtk/x11gui.c (DialogSpinEntry): added. * src/gtk/ox11dlg.c (dlgspin): added. (dialog): add new field "double_entry" and "integer_entry". 2009-07-09 Ito Hiroyuki * src/gtk/x11menu.c (clear_information): added. (create_windowmenu): add menu item "_Clear information window". * src/gtk/ox11menu.c (menudone): return "1" when GUI is active. (mxredraw, mxdpi, mxflush, mx_get_focused, mx_echo, mx_cat) (mx_clear_info, mx_toggle_win, mxdraw, mxclear): do nothing when GUI is not active. (menuerrorlist): add error message ("the GUI is not active"). (SubwinData, _subwin_data, subwindow_show, subwindow_hide) (mx_show_win, mx_hide_win): added. (gtkmenu): add new field "show_window" and "hide_window". * src/gtk/x11info.c (create_win): initialize font and geometry settings. 2009-07-08 Ito Hiroyuki * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup) (MiscDialogClose): add code for "infowin_font" setting. * src/gtk/x11info.c (InfoWinSetFont): added. (InfoWinUpdate): call "InfoWinSetFont()". * src/gtk/ox11menu.h (struct menulocal): add member "infowin_font". * src/gtk/ox11menu.c (menuerrorlist): add error message ("cannot open the file"). (MenuConfigMisc): add "infowin_font" setting. (mx_cat, mx_clear_info, mx_toggle_win): added. (gtkmenu): add new field "cat", "clear_info" and "toggle_window". 2009-07-07 Ito Hiroyuki * src/gtk/gtk_subwin.c (tree_hidden): don't execute "d->update()" but call "gtk_tree_store_set()". (toggle_cb): use "tree_hidden()". * src/object.c (sexefield): don't remove space character. (sexeobjfield): remove space character only when "arglist" is "s". 2009-07-06 Ito Hiroyuki * src/gtk/x11commn.c (AddNgpFileList): free "full_name" after call "g_strdup_printf()". * src/gtk/x11view.c (paste_cb): don't use a temporary file and use "eval_script()". * src/shell.c (getcmdline): the type of argument "str" is "const char *". (eval_script): added. (cmdexecute): the type of argument "cline" is "const char *". 2009-07-05 Ito Hiroyuki * initfile/Ngraph.nsc: use "NGRAPHCONF" instead of "NGRAPHLIB". * src/gtk/x11print.c (DriverDialogClose): use "g_strdup_printf()" instead of "snprintf()". * src/gtk/x11opt.c (create_font_selection_dialog): use "g_strdup_printf()" instead of "snprintf()". * src/gtk/x11menu.c (createmenu): use "g_strdup_printf()" instead of "snprintf()". (load_hist_file, save_hist_file): added. (save_entry_history): use "save_hist_file()". (load_hist): use "load_hist_file()". * src/gtk/x11dialg.c (SetObjAxisFieldFromWidget): use "g_strdup_printf()" instead of "snprintf()". * src/gtk/x11commn.c (check_overwrite, AddNgpFileList) (SaveHistory): use "g_strdup_printf()" instead of "snprintf()". * src/gtk/ox11menu.c (add_prm_str_to_array) (save_ext_driver_config, save_script_config): use "g_strdup_printf()" instead of "snprintf()". (menu): "arglist" of "menu" field is "s". * src/gtk/main.c (main, obj_member_completion_function): use "g_strdup_printf()" instead of "snprintf()". * src/shellcm.c (cmbasename): call "basename(3)" to duplicated string. (cmdirname): use duplicated string. (cmexist): add "-q" option. * driver/ngp2.in: use "-q" option for "exist" command. (save_image): copy settings of "gra" object. (save_image): set "display" field of "fit" object as false if exist. * initfile/Ngraph.nsc: use "-q" option for "exist" command. (load_graph): argument of "$LOGIN_SHELL" id full-path filename. 2009-07-02 Ito Hiroyuki * src/gtk/x11print.c (DriverDialogBrowseCB, CmPrintGRAFile) (CmOutputImage, CmPrintDataFile): change the arguments of the function "nGetSaveFileName()". * src/gtk/x11opt.c (SetScriptDialogBrowse) (SetDriverDialogBrowse): change the arguments of the function "nGetOpenFileName()". * src/gtk/x11merge.c (CmMergeOpen): change the arguments of the function "nGetOpenFileName()". * src/gtk/x11gui.c (file_dialog_set_current_neme): added. (FileSelectionDialog): use "file_dialog_set_current_neme()". (nGetOpenFileNameMulti, nGetOpenFileName, nGetSaveFileName): remove the argument "filter". (struct nGetOpenFileData): remove member "filter". * src/gtk/x11graph.c (CmGraphLoad): change the arguments of the function "nGetOpenFileName()". * src/gtk/x11file.c (CmFileNew, CmFileOpen): change the arguments of the functions "nGetOpenFileName()" and "nGetOpenFileNameMulti()". * src/gtk/x11commn.c (GraphSave): change the arguments of the function "nGetSaveFileName()". * src/gtk/ox11dlg.c (dlggetopenfile, dlggetopenfiles) (dlggetsavefile): change the arguments of the functions "nGetOpenFileName()", "nGetOpenFileNameMulti()" and "nGetSaveFileName()". * src/gtk/ogra2cairo.c (gra2cairo_save_config): use "g_strdup_printf()" instead of "snprintf()". * src/gtk/gtk_widget.c (entry_icon_file_select): change the arguments of the function "nGetOpenFileName()". * src/gtk/gtk_subwin.c (file_select): change the arguments of the function "nGetOpenFileName()". 2009-07-01 Ito Hiroyuki * src/gtk/x11print.c (DriverDialogClose): use "check_overwrite()". * src/gtk/x11gui.c (FileSelectionDialog): don't call "gtk_file_chooser_set_do_overwrite_confirmation()". (FileSelectionDialog): call "check_overwrite()" when "type" is " GTK_FILE_CHOOSER_ACTION_SAVE" and "data->overwrite" is false. * src/gtk/x11commn.c (check_overwrite): added. 2009-06-30 Ito Hiroyuki * src/gtk/ogra2cairofile.c (gra2cairofile_output): call "gra2cairo_draw_path()" before call "cairo_surface_write_to_png()". * src/gtk/ogra2cairo.c (gra2cairo_draw_path): added. (gra2cairo_free, gra2cairo_flush, gra2cairo_output): use "gra2cairo_draw_path()". 2009-06-29 Ito Hiroyuki * src/ofit.c (fitpoly, fituser): call "display_equation()" only when "disp" is true. 2009-06-26 Ito Hiroyuki * src/gtk/x11file.c (FitDialogClose): check "ret" instead of "d->ret" with "IDOK". 2009-06-24 Ito Hiroyuki * src/gtk/main.c (reset_fifo, exec_console): added. (nallocconsole): use "exec_console()". (nallocconsole): call "unlink()" after open fifo. * src/terminal.c (main): don't call "unlink()". 2009-06-18 Ito Hiroyuki * src/gtk/main.c (main): initialize system::conf_dir. (main): search "conf_dir" instead of "lib_dir". * src/gtk/dir_defs.h.in (CONFDIR): added. * src/shell.c (ngraphenvironment): add new environment variable "NGRAPHCONF". * src/osystem.c (nsystem): add new field "conf_dir". * src/nconfig.c (searchscript, openconfig, replaceconfig) (removeconfig, writecheckconfig, copyconfig): search "conf_dir" instead of "lib_dir". * src/ioutil.h (CONFSEP): change from "/." to "/". * src/Makefile.am (pkglib_PROGRAMS): "terminal" is installed in "$pkglibdir". * initfile/Ngraph.ini.in: specify full path of "nterminal". * initfile/Makefile.am (ngraphconfdir): configration files are installed in "$(sysconfdir)/$(PACKAGE)". * initfile/fit.ngp: change file name from ".fit.ngp" * initfile/Ngraph.nsc: change file name from ".Ngraph" * initfile/Ngraph.ngp: change file name from ".Ngraph.ngp" * driver/Makefile.am (ngraphconfdir): configration files are installed in "$(sysconfdir)/$(PACKAGE)". * addin/Makefile.am (pkglib_DATA): install addins to $pkglibdir. 2009-06-15 Ito Hiroyuki * src/gtk/x11commn.c (SaveDrawrable): use "NFMODE_NORMAL_FILE" instead of "NFMODE". * src/gtk/x11file.c (FitDialogSave): use "NFMODE_NORMAL_FILE" instead of "NFMODE". * src/ioutil.h (NFMODE_NORMAL_FILE): added. * src/osystem.c (sysdone): delete temporary files if exist. 2009-06-14 Ito Hiroyuki * src/osystem.c (systemp): use "n_mkstemp()". * src/ioutil.c (n_mkstemp): set and restore umask. 2009-06-11 Ito Hiroyuki * zsh/_ngraph: added. * zsh/_ngp2: added. * zsh/_gra2wmf: added. * zsh/_gra2ps: added. * zsh/Makefile.am: added. * src/gtk/x11print.c (draw_gra): check "NgraphApp.Viewer.win" before call "gdk_window_invalidate_rect()". * initfile/.Ngraph: add new option -cr, -cg, -cb, -CR, -CG, -CB, -incx, -maxx, -minx, -incy, -maxy, -miny, -L and -dialog. option -c, -C, -zx and -zy are obsolete. 2009-06-10 Ito Hiroyuki * debian/rules: add mime types and bash completion settings. * src/ofile.c (markout): the argument "type" is not used in this function. 2009-06-09 Ito Hiroyuki * src/gtk/x11menu.c (show_graph_menu_cb): remove code related to "ngp_history" and "ngp_dir_history". (create_recent_graph_menu): use "GtkRecentChooserMenu". * src/gtk/x11graph.c (CmGraphHistory): use "GtkRecentChooser". * src/gtk/x11commn.c (AddNgpFileList): static function. (AddNgpFileList): use "GtkRecentManager". (SaveHistory): don't save "ngp_history" and "ngp_dir_history". * src/gtk/ox11menu.c (MenuConfig): remove "ngp_history" and "ngp_dir_history". (menulocal_finalize, menuinit): remove code related to "ngp_history" and "ngp_dir_history". (menuinit): "Menulocal.ngpfilelist" is "GtkRecentManager *". * initfile/Ngraph.ini.in (viewer_load_file_data_number): remove "ngp_history" and "ngp_dir_history". 2009-06-08 Ito Hiroyuki * src/gtk/x11graph.c (pagelist, PageDialogSetup): gettextize paper size strings. 2009-06-03 Ito Hiroyuki * src/gra.c (getintpar): check size of "s2". (GRAinputdraw): check number of the parameters and return success or not. (GRAinput): return the return value of "GRAinputdraw()". * src/gtk/x11menu.c (AppMainLoop): return 1 when terminated. (application): delete instance of "system" object when return value of "AppMainLoop()" is 1. 2009-06-02 Ito Hiroyuki * src/gtk/main.c (nfreeconsole): send "SIGTERM" instead of "SIGCHLD". * src/terminal.c (main): use "sigsuspend()" if available. (main): trap "SIGTERM" instead of "SIGCHLD". * src/shell.c (cmdexec): bug fix: use "WEXITSTATUS" to get return status of external command. * src/gtk/x11menu.c (application): call "SaveHistory()". (AppMainLoop): don't call "SaveHistory()". 2009-06-01 Ito Hiroyuki * src/shell.c (set_signal, set_shellevloop, reset_shellevloop): added. (shellevloop): use pthread. (shgetstdin, shget): use "set_shellevloop()" and "reset_shellevloop()". (childhandler, set_childhandler, unset_childhandler): added. (cmdexec): call "unset_childhandler()" and "set_childhandler()" before and after execute command. * src/gtk/x11menu.c (term_signal_handler): added. (childhandler): remove. (AppMainLoop): check type of "Hide_window". (application): use "set_signal()". (application): trap "SIGTERM" while GUI is active. * src/gtk/x11file.c (FitDialogClose): bug fix: delete unused fit objects not only in the case of "d->ret" is "IDOK" but "IDCANCEL" and "IDDELETE". (FileDialogFit): call "set_graph_modified()" if necessary. (FileDialogEdit, CmFileEdit, FileWinFileEdit): don't call "arrayadd()" for "ChildList". * src/shellux.c (cmsleep): use "set_signal()". 2009-05-26 Ito Hiroyuki * src/gtk/x11menu.c (create_graphmenu): use "GTK_STOCK_PAGE_SETUP" when the version of GTK++ is greater than 2.14. 2009-05-23 Ito Hiroyuki * src/gtk/x11lgnd.c (pos_edited): call "set_graph_modified()" after "exeobj()". 2009-05-19 Ito Hiroyuki * src/nconfig.c (getconfig): treat the line as comment when the first caractor of the line is "#" or ";". 2009-05-18 Ito Hiroyuki * src/gtk/ogra2cairo.c (gra2cairo): change permission of fields "init" and "done". * src/gtk/main.c (load_config): added. (load_config): bug fix: check return value of "getobject". * src/gtk/x11axis.c (file_button_show): added. (AxisDialogSetup): call "g_signal_connect()" for "show" signal of "File" button. * src/gtk/x11opt.c (set_font): added. (MiscDialogClose): use "set_font()". (MiscDialogSetupItem, MiscDialogSetup): initialize and setup "d->file_preview_font". * src/gtk/x11dialg.h (struct FileDialog): add member "comment_view". (struct MiscDialog): add member "file_preview_font". * src/gtk/x11file.c (FileDialogSetup): call "gtk_widget_modify_font" if "Menulocal.file_preview_font" is not NULL. * src/gtk/ox11menu.h (struct menulocal): add member "file_preview_font". * src/gtk/ox11menu.c (MenuConfigMisc): add config "file_preview_font". (menulocal_finalize): added. (menuinit, menudone): use "menulocal_finalize()". (menuinit): call "memset()" to initialize "Menulocal". * src/gtk/ogra2x11.c (gtkloadconfig): check string "use_external_viewer". 2009-05-17 Ito Hiroyuki * src/gtk/x11axis.c (AxisPosDialogSetup): use "create_direction_entry()" instead of "create_spin_entry_type()". * src/gtk/x11lgnd.c (legend_dialog_setup_sub): use "create_direction_entry()" instead of "create_spin_entry_type()". * src/gtk/gtk_widget.c (direction_icon_released) (create_direction_entry): added. 2009-05-15 Ito Hiroyuki * src/gtk/x11print.c (DriverDialogSelectCB): set value to "d->ext". (DriverDialogBrowseCB): set filter when "d->ext" is not NULL. (DriverDialogClose): use "d->widget" for first argument of "MessageBox()". (DriverDialog): initialize "data->ext". (CmPrintGRAFile, CmOutputImage, CmPrintDataFile): remove check of confirmation about overwriting an existing file. * src/gtk/x11opt.c (SetDriverDialogBrowse, SetDriverDialogClose) (PrefFontDialogAdd): use "d->widget" for first argument of "MessageBox()" and "nGetOpenFileName()". * src/gtk/x11merge.c (MergeDialogSetup): use "create_file_entry()" instead of "create_text_entry()". * src/gtk/x11gui.c (struct nGetOpenFileData): add member "overwrite". (FileSelectionDialog): check "parent". (FileSelectionDialog): call "gtk_file_chooser_set_do_overwrite_confirmation()" when "type" is "GTK_FILE_CHOOSER_ACTION_SAVE". (FileSelectionDialog): hide "data->chdir_cb" when "data->initdir" is NULL. (nGetSaveFileName): add argument "overwrite". * src/gtk/x11file.c (FitDialogLoadConfig, FitDialogLoad) (FitDialogSave): use "d->widget" for first argument of "DialogExecute". (FileDialogSetup): use "create_file_entry()" instead of "create_text_entry()". (FileWinFit): use "d->Win" for first argument of "DialogExecute". * src/gtk/x11dialg.h (struct DriverDialog): add member "ext". * src/gtk/x11commn.c (GraphSave): remove check of confirmation about overwriting an existing file. * src/gtk/x11axis.c (AxisDialogFile): use "d->widget" for first argument of "DialogExecute". * src/gtk/gtk_widget.c (get_parent_window) (entry_icon_file_select, create_file_entry): added. * src/gtk/gtk_subwin.c (file_select): added. (start_editing): call gtk_entry_set_icon_from_stock when "list->name" is "file". * src/gtk/gtk_common.h (USE_ENTRY_ICON): added. * src/omerge.c (merge): add field "ext". (mergeinit): initialize field "ext". 2009-05-14 Ito Hiroyuki * initfile/.Ngraph: change directory when "ngp" or "prm" file is specified. * src/gtk/x11graph.c (DirectoryDialogSetup): use "GtkFileChooserButton" instead of "GtkEntry". * src/shell.c (cmdtable): add commands "basename" and "dirname". * src/shellcm.c (cmdirname, cmbasename): added. 2009-05-13 Ito Hiroyuki * src/gtk/x11view.c (Trimming): use "axis_scale_push()" instead of "exeobj()". * src/gtk/x11axis.c (check_axis_history): added. (CmAxisWinScaleUndo): call "check_axis_history()" instead of "chkobjlastinst()". (axis_scale_push): added. (AxisDialogClose, axiswin_scale_clear, CmAxisClear) (axis_prm_edited_common): use "axis_scale_push()" instead of "exeobj()". (CmAxisWinScaleUndo): call "set_axis_undo_button_sensitivity()". * src/gtk/x11menu.c (hide_instance_menu_cb): added. (set_show_instance_menu_cb): add arguments "show_cb" and "hide_cb". (show_axis_menu_cb, hide_axis_menu_cb): added. (create_axismenu): add 5th and 6th arguments to call "set_show_instance_menu_cb()". (set_axis_undo_button_sensitivity): added. (setupwindow): call "set_axis_undo_button_sensitivity()". * src/gtk/x11file.c (CmFileWinMath): check number of instance. 2009-05-12 Ito Hiroyuki * src/gtk/x11axis.c (AxisDialogSetupItem): add item to combo boxes when the value is different from previous one. (axis_prm_edited_common, min_edited, max_edited, inc_edited): added. (CmAxisWindow): call "set_editable_cell_renderer_cb()" for "AXIS_WIN_COL_MIN", "AXIS_WIN_COL_MAX" and "AXIS_WIN_COL_INC". (AxisHistoryCB): added. (AxisWinExpose): use "AxisHistoryCB()". (CmAxisDel): check "DlgCopy.sel". * src/gtk/x11lgnd.c (LegendTextCB): return whole string. * src/gtk/x11dialg.c (SelectDialogSetup, CopyDialogSetup): "PangoEllipsizeMode" of "property" column is "PANGO_ELLIPSIZE_END". (SelectDialogSetup, CopyDialogSetup): append item only when return value of a function "d->cb()" is not NULL. (SelectDialogClose): save value of "id" column. (CopyDialogClose): set value of "id" column of the selected row to "d->sel". * src/oaxis.c (axisbbox2): check "inst". (get_axis_box): this function returns int. (get_axis_box): check return value of "axisbbox2()". (get_axis_group_box): this function returns int. (get_axis_group_box): check return value of "get_axis_box()". (axisbbox): check return value of "get_axis_group_box()". (axisrotate2, axisflip2): check "inst". (axisrotate, axisflip): check return value of "get_axis_group_box()". (AXIS_HISTORY_NUM): added. (axisscalepush): use "AXIS_HISTORY_NUM". 2009-05-11 Ito Hiroyuki * src/gtk/ox11menu.c (MenuConfigToggleView): add "{NULL}" at the end of the array. 2009-05-08 Ito Hiroyuki * src/ofile.c (USE_BUF_PTR, USE_RING_BUF, BUF_TYPE, USE_MEMMOVE) (RING_BUF_INC, ring_buf_index): added. (struct f2ddata): add new member "buf_ptr" or "ringbuf_top". (struct f2ddata): now "buf" is array. (opendata): initialize "buf_ptr" or "ringbuf_top". (getdata): use array of pointer or ring buffer. 2009-05-01 Ito Hiroyuki * src/gtk/x11view.h (enum FOCU_OBJ_TYPE): add "FOCUS_OBJ_TYPE_TEXT". * src/gtk/x11view.c (enum ViewerPopupIdn): add "VIEW_FLIP_HORIZONTAL" and "VIEW_FLIP_VERTICAL". (create_popup_menu): added. (create_popup_menu): add flip menu. (VIEWER_POPUP_ITEM_FLIP): added. (execute_selected_instances): added. (RotateFocusedObj): use "execute_selected_instances()". (FlipFocusedObj): added. (do_popup): set sensitivity of flip menu. (ViewerPopupMenu): add case for "VIEW_FLIP_HORIZONTAL" and "VIEW_FLIP_VERTICAL". (CmEditMenuCB): add case for "MenuIdEditFlipHorizontally" and "MenuIdEditFlipVertically". * src/gtk/x11menu.h (enum MenuID): add "MenuIdEditFlipHorizontally" and "MenuIdEditFlipVertically". * src/gtk/x11menu.c (show_edit_menu_cb): set sensitivity of "FlipH" and "FlipV". (create_editmenu): add flip menu. * src/orect.c (rectflip): added. (rect): add new field "flip". * src/opolygon.c (opoly): add new field "flip". * src/omark.c (markflip): added. (mark): add new field "flip". * src/oline.c (arrow): add new field "flip". * src/olegend.h (enum FLIP_DIRECTION): added. * src/olegend.c (flip, legendflip): added. * src/ocurve.c (curve): add new field "flip". * src/oaxis.c (axisbbox2, get_axis_box): remove unused arguments "argc" and "argv". (get_axis_group_box): added. (axisbbox, axisrotate): use "get_axis_group_box()". (axisflip2, axisflip): added. (axis): add new field "flip". * src/oarc.c (arcflip): added. (arc): add new field "flip". * addin/append.nsc: hide and recover axisgrid. 2009-04-30 Ito Hiroyuki * src/gtk/x11menu.h (SUBWIN_PROTOTYPE): added. (struct SubWin, struct LegendWin, struct InfoWin): use "SUBWIN_PROTOTYPE". (struct CoordWin): remove. * src/gtk/x11dialg.h (DIALOG_PROTOTYPE): added. use "DIALOG_PROTOTYPE" for all struct which inherit "DialogType" struct. * src/gtk/x11cood.c (CoordWinSetCoord, CoordWinUpdate): use "struct InfoWin" instead of "struct CoordWin". 2009-04-28 Ito Hiroyuki * src/gtk/gtk_subwin.c (ev_button_down_tree): remove. (ev_button_down): don't respond to right button click. (ev_button_down): call "tree_update()" when "d->type" is "TypeLegendWin". (ev_button_up): added. (list_sub_window_create, tree_sub_window_create): call back function for "button-release-event" is "ev_button_up()". * src/gtk/x11view.h (struct FocusObj): change name of the struct from "focuslist". (struct Point): moved from x11view.c and change name of the struct from "pointslist". * src/gtk/x11menu.c (SetPoint): show width and height when "d->Capture" is TRUE. 2009-04-27 Ito Hiroyuki * src/gtk/x11menu.c (create_windowmenu): change accel path of "View" menu. (create_legendmenu): do not gettextize menu title. (create_legendsubmenu): gettextize "label". (create_legendsubmenu): remove under score from "label" for accel path string. * src/gtk/gtk_subwin.c (numeric_cb, string_cb): do nothing when "d->type" is "TypeLegendWin". * src/gtk/x11lgnd.c (LEGEND_WIN_COL_HIDDEN, LEGEND_WIN_COL_PROP) (LEGEND_WIN_COL_X, LEGEND_WIN_COL_Y): added. (legend_list_set_val): use "case" instead of "strcmp()". (enum CHANGE_DIR, pos_edited, pos_x_edited, pos_y_edited): added. (CmLegendWindow): call "set_editable_cell_renderer_cb()" for "LEGEND_WIN_COL_X" and "LEGEND_WIN_COL_Y". (Llist): colum "x" and "y" is editable. * src/gtk/x11file.c (FILE_WIN_COL_HIDDEN, FILE_WIN_COL_FILE) (FILE_WIN_COL_X, FILE_WIN_COL_Y): added. (file_list_set_val): use "case" instead of "strcmp()". * src/gtk/x11axis.c (AXIS_WIN_COL_HIDDEN, AXIS_WIN_COL_NAME) (AXIS_WIN_COL_MIN, AXIS_WIN_COL_MAX, AXIS_WIN_COL_INC): added. (axis_list_set_val): use "case" instead of "strcmp()". * src/gtk/x11merge.c (MERG_WIN_COL_HIDDEN, MERG_WIN_COL_FILE): added. (merge_list_set_val): use "case" instead of "strcmp()". * src/gtk/gtk_liststore.h (tree_store_path_get_string): added. 2009-04-26 Ito Hiroyuki * src/gtk/ox11menu.c (menuinit): free "sdel->description" when error is occurred. * src/oaxis.c (check_group): added. (axisuniqgroup): use "check_group()". 2009-04-25 Ito Hiroyuki * src/gtk/x11view.c (Focus): check if "man" is valid id. * src/gtk/x11commn.c (AxisDel): call "delobj()" after check all instances. * src/odraw.c (clear_bbox): check if "inst" is NULL. * src/oaxis.c (INST_ARRAY_NUM): added. (axisdone): change "group" field of other instances belong to the same group. (get_axis_group_type): initialize "inst_array". 2009-04-24 Ito Hiroyuki * src/gtk/x11axis.c (enum CHANGE_DIR, pos_edited_common) (pos_x_edited, pos_y_edited): added. (CmAxisWindow): call "set_editable_cell_renderer_cb()" for "AXIS_WIN_COL_X" and "AXIS_WIN_COL_Y". * src/gtk/gtk_subwin.c (start_editing): call "UnFocus()". (set_cell_renderer_cb): set "list[i].edited_id" when "g_signal_connect()" is called for "edited" signal. (set_editable_cell_renderer_cb): added. (update): call "UnFocus()". * src/gtk/gtk_liststore.h: add member "edited_id". * src/gtk/gtk_liststore.c (create_tree_view): initialize "list[i].edited_id". * src/oaxis.c (axisgeometry): clear all bbox of instances belong to the group. (get_axis_group_type): add argument "check_all". * src/gtk/x11menu.c (struct command_data): add member "button", (createcommand1, createcommand2): set pointer of the GtkToolItem to "cdata->button" when "cdata->button" is not NULL. * src/gtk/x11file.c (set_btn_sensitivity_delete_cb) (set_btn_sensitivity_insert_cb, set_sensitivity_by_row_num): added. (MathDialogSetup, FileMoveDialogSetup, FileMaskDialogSetup): call "set_sensitivity_by_row_num()". 2009-04-23 Ito Hiroyuki * src/gtk/x11file.c (set_btn_sensitivity_cb) (set_sensitivity_by_selection): added. (MathDialogSetup, FileMoveDialogSetup, FileMaskDialogSetup): call "set_sensitivity_by_selection()" * src/oshell.c (cmdsecurity): use "set_security()". * src/shell.c (set_security, set_environ): added. * src/gtk/x11commn.c (LoadNgpFile): check execution of "shell::shell" for loding graph is success or not. * src/gtk/x11view.c (create_popup_menu): change title of a menuitem from "Show cross" to "cross Gauge". (ViewerEvKeyDown): change case from " GDK_KP_Space" to " GDK_space". remove case for "GDK_BackSpace". * src/gtk/x11opt.c (MiscDialogSetupItem): remove codes related to widgets visibility. (MiscDialogSetup): remove codes related to widgets visibility and change order of widgets. (MiscDialogClose): remove codes related to widgets visibility. * src/gtk/x11menu.h (enum MenuID): add "MenuIdToggleStatusBar", "MenuIdToggleRuler", "MenuIdToggleScrollbar", "MenuIdToggleCToolbar", "MenuIdTogglePToolbar", MenuIdToggleCrossGauge", "MenuIdAxisUndo" and "MenuIdFileMath". (struct Viewer): add "PToolbar" and "CToolbar", remove "ShowCross". * src/gtk/x11menu.c (create_filemenu): add menu item for "Math Transformation". (create_axismenu): add menu item for "Scale Undo". (show_win_menu_cb): set active state for "ToggleStatusBar", "ToggleRuler", "ToggleScrollbar", "ToggleCToobar", "TogglePToobar" and "ToggleCrossGauge". (toggle_view_cb): added. (create_windowmenu): create some menu items to show and hide widgets. (create_windowmenu): now the title of this menu is "View". (createmenu): reorder menus. (create_toolbar): add argument "hbox" and set GtkHandleBox to the variable. (set_widget_visibility): add argument "cross" and set visibility of some other widgets and cross gauge. (setupwindow): add argment to call "create_toolbar()".x (application): save settings for widgets visibility. * src/gtk/x11file.c (CmFileMenu): add case for "MenuIdFileMath". * src/gtk/x11dialg.h (struct MiscDialog): remove member "ruler" and "statusbar". * src/gtk/x11axis.c (CmAxisMenu): add case for "MenuIdAxisUndo". * src/gtk/ox11menu.h (struct menulocal): add member "scrollbar", "ctoolbar", "show_cross" and "ptoolbar". (enum SAVE_CONFIG_TYPE): add "SAVE_CONFIG_TYPE_TOGGLE_VIEW". * src/gtk/ox11menu.c (MenuConfigToggleView): added. (MenuConfigArrray): add "MenuConfigToggleView". (menu_save_config): add codes for "SAVE_CONFIG_TYPE_TOGGLE_VIEW". * src/nconfig.c (replaceconfig_match): return "buf" when next section was found. (replaceconfig): print "buf" after print configurations if "buf" is not NULL. 2009-04-22 Ito Hiroyuki * src/gtk/x11view.c (CmEditMenuCB): add case for "MenuIdAlignLeft", "MenuIdAlignVCenter", "MenuIdAlignRight", "MenuIdAlignTop", "MenuIdAlignHCenter" and "MenuIdAlignHBottom". * src/gtk/x11menu.h (enum MenuID): add "MenuIdAlignLeft", "MenuIdAlignVCenter", "MenuIdAlignRight", "MenuIdAlignTop", "MenuIdAlignHCenter" and "MenuIdAlignHBottom". * src/gtk/x11menu.c (hide_edit_menu_cb, create_alignmenu): added. (create_editmenu): call "create_alignmenu()". * src/object.h (struct objlist): add member "child". * src/object.c (addobject): set "parent->child" if "parent" in not NULL. (addobject): initialize "objnew->child" as NULL. (addobject): change the order of object list. 2009-04-21 Ito Hiroyuki * src/gtk/x11view.h (ROTATE_CLOCKWISE, ROTATE_COUNTERCLOCKWISE) (enum FOCU_OBJ_TYPE): added. * src/gtk/x11view.c (enum ViewerPopupIdn): add "VIEW_CUT", "VIEW_PASTE" add "VIEW_DUP". (CopyFocusedObjects, CutFocusedObjects, check_last_insts) (focus_new_insts, paste_cb, PasteObjectsFromClipboard): added. (create_popup_menu): add cut, copy and paste menu item. (check_focused_obj_type): added. (do_popup): use "check_focused_obj_type()". (ViewerPopupMenu): add case for "VIEW_CUT", "VIEW_PASTE" add "VIEW_DUP". (CmEditMenuCB): added. * src/gtk/x11menu.h (enum MenuID): add "MenuIdEditCut", "MenuIdEditCopy", "MenuIdEditPaste", "MenuIdEditDelete", "MenuIdEditRotateCW" and "MenuIdEditRotateCCW". * src/gtk/x11menu.c (show_edit_menu_cb, hide_edit_menu_cb) (create_editmenu): added. (createmenu): call "create_editmenu()". 2009-04-19 Ito Hiroyuki * src/orect.c (rectrotate, rectmove, rectchange, rectzoom) (rectgeometry): use "clear_bbox()". (set_position, get_position): added. (rectdraw): use "get_position()". (rectrotate, rectmove, rectchange, rectzoom): use "set_position()". * src/otext.c (textgeometry, textmove, textrotate, textzoom): use "clear_bbox()". * src/opolygon.c (polygeometry): use "clear_bbox()". * src/omerge.c (mergefile, mergemove, mergezoom, mergegeometry): use "clear_bbox()". * src/omark.c (markmove, markrotate, markzoom, markgeometry): use "clear_bbox()". * src/oline.c (arrowput): use "clear_bbox()". * src/olegend.c (legendgeometry, legendmove, legendrotate) (legendchange, legendzoom): use "clear_bbox()". * src/ocurve.c (curvegeometry): use "clear_bbox()". * src/oaxis.c (axisgeometry, axismove2, axisrotate2) (axischange2, axischange, axiszoom2, axisadjust, set_group_pos): use "clear_bbox()". * src/oarc.c (arcgeometry, arcmove, arcchange, arcrotate) (arczoom): use "clear_bbox()". * src/odraw.c (clear_bbox): added. 2009-04-17 Ito Hiroyuki * src/oagrid.c (struct axis_prm, struct axis_pos) (struct grid_prm, get_grid_prm, draw_grid_line, draw_background) (calc_intersection): added. (agriddraw): use "get_grid_prm()", "draw_grid_line()" and "draw_background()". 2009-04-16 Ito Hiroyuki * src/gtk/x11view.c (do_popup): popup item related to change order of instances is also sesensitive when the focused instances is "merge" object. (reorder_object): reorder instances when the focused instance is "merge" object. * src/oaxis.c (axis_get_box): added. (axisbbox2): use "axis_get_box()". (axisrotate2, axisrotate): added. (axis): add field "rotate". 2009-04-15 Ito Hiroyuki * src/gtk/x11menu.c (SetPoint): show the value of "s->Angle" when "d->Angle" is greater or equal to 0. * src/gtk/x11menu.h (struct Viewer): add member "Angle". * src/gtk/x11view.c (show_focus_line_arc): add argument "clear" and save previous state when "clear" is TRUE. (ShowFocusLine): add argument "clear". (mouse_move_change): second argument of "ShowFocusLine()" is TRUE at the first time to call "ShowFocusLine()". (enum ViewerPopupIdn): add "VIEW_ROTATE_CLOCKWISE" and "VIEW_ROTATE_COUNTER_CLOCKWISE". (create_popup_menu): added. (create_popup_menu): add item "_Rotate". (VIEWER_POPUP_ITEM_ROTATE): added. (RotateFocusedObj): added. (do_popup): set sensitivity of "d->popup_item[VIEWER_POPUP_ITEM_ROTATE]". (ViewerPopupMenu): add case for "VIEW_ROTATE_CLOCKWISE" and "VIEW_ROTATE_CONTER_CLOCKWISE" * src/orect.c (rectrotate): added. * src/otext.c (textrotate): added. (text): add field "rotate". * src/orect.c (rectrotate): added. (rect): add field "rotate". * src/opolygon.c (opoly): add field "rotate". * src/omark.c (markrotate): added. (mark): add field "rotate". * src/oline.c (arrow): add field "rotate". * src/olegend.c (rotate, legendrotate): added. * src/ocurve.c (curve): add field "rotate". * src/oarc.c (arcrotate): added. (arc): add field "rotate". 2009-04-14 Ito Hiroyuki * src/gtk/ox11menu.c (mxd2p, mxd2px, mxd2py, mxp2d): remove. * src/gtk/x11view.c (mxd2p, mxp2d coord_conv_x, coord_conv_y) (draw_frame_rect, draw_focus_line): added. (GetFocusFrame, ShowFocusFrame, show_focus_line_arc) (draw_frame_rect, ShowFocusLine, ShowPoints, ShowFrameRect) (ShowCrossGauge, get_mouse_cursor_type): use "coord_conv_x()" and "coord_conv_y()". (ShowFocusLine): use "draw_frame_rect()" and "draw_focus_line()". 2009-04-13 Ito Hiroyuki * src/gtk/x11view.c (arc_get_angle, show_focus_line_arc): added. (ShowFocusLine): call "show_focus_line_arc()" when focused object is "arc". (ShowFocusLine): add argument "state". (mouse_up_change): check if the focused object is "arc". * src/oarc.h: added. * src/oarc.c (arcbbox): add points to modify angle. (arcchange): added. (arc): add "change" field. * src/gtk/ogra2cairo.c (gra2cairo_output): do nothing when "a1 == a2" in the case of "code" ic "C". * src/gtk/x11commn.c (ToFullPath): use loop to modify "file" field of "file" and "merge" object. 2009-04-11 Ito Hiroyuki * src/gtk/x11view.c (do_popup): check if the focused object is child of the "legend" object when "num == 1" . 2009-04-10 Ito Hiroyuki * src/gtk/x11view.c (ShowPoints): draw arc and rectangle when "num" is greater or equal to 2. (mouse_move_drag, mouse_move_zoom, mouse_move_change) (mouse_move_scroll, mouse_move_draw): added. (ViewerEvMouseMove): use "mouse_move_drag()", "mouse_move_zoom()", "mouse_move_change()", "mouse_move_scroll()" and "mouse_move_draw()". (get_mouse_cursor_type): return "GDK_TCROSS" when "d->MoveData" is TRUE. 2009-04-09 Ito Hiroyuki * src/gtk/x11view.c (ShowCrossGauge): don't call "gdk_window_get_position()". (ViewerEvMouseMotion): call "gdk_event_request_motions()". (ViewerWinSetup): set GDK_POINTER_MOTION_HINT_MASK to "d->Win". 2009-04-07 Ito Hiroyuki * src/gtk/x11scrip.h: remove. * src/gtk/x11scrip.c: remove. * src/gtk/x11menu.c (script_exec): added. (create_addin_menu): use "script_exec()" as callback. 2009-04-06 Ito Hiroyuki * src/gtk/x11lgnd.c (LegendWinLegendUpdate): remove argument of function "UnFocus()". * src/gtk/x11view.c (clear_focus_obj): remove unused arguments. (UnFocus): remove unused argument "init_cursor". (CloseGC, Clear, CmViewerButtonArm, Focus): remove argument of function "UnFocus()". * src/gtk/x11commn.c (axis_move_each_obj): added. (AxisMove): use "axis_move_each_obj()". * src/gtk/x11axis.c (AxisWinAxisTop, AxisWinAxisLast) (AxisWinAxisUp, AxisWinAxisDown): added. (axiswin_ev_key_down): call "AxisWinAxisTop()", "AxisWinAxisLast()", "AxisWinAxisUp()" and "AxisWinAxisDown()". (Popup_list): set "AxisWinAxisTop()", "AxisWinAxisLast()", "AxisWinAxisUp()" and "AxisWinAxisDown()" to related member. * src/ofit.c (enum FitError, display_equation): added. (fitpoly, fituser, fitfit): use "FitError". (fitpoly, fituser): use "snprintf()" instead of "sprintf()". (fitpoly, fituser): call "display_equation()". (fitpoly, fituser): return "enum FitError". (fitfit): change type of "type" from "int" to "enum FIT_OBJ_TYPE". * demo/demo2.ngp.in: use "fit::calc" for legend text. * src/gtk/x11graph.c (CmGraphHistory, DirectoryDialogClose): remove argument of "ErrorMessage()". * src/gtk/x11file.c (FitDialogSave): check return value of "nopen()". (FitDialogSave): call "ErrorMessage()" instead of "MessageBox()". * src/gtk/x11commn.c (SaveDrawrable): check return value of "nopen()". (SaveDrawrable): call "ErrorMessage()" instead of "MessageBox()". (SaveDrawrable): return "error" instead of "! error". (GraphSave): call "reset_graph_modified()", "changefilename()", "AddNgpFileList()" and "SetFileName()" only when success "SaveDrawrable()". (ErrorMessage): argument of function is now "void". 2009-04-04 Ito Hiroyuki * src/mathcode.c (mathexpand, calculate): new upstream release (6.3.48). * driver/gra2ps.c: new upstream release (6.3.48). * driver/Ngraph.ps: new upstream release (6.3.48). 2009-04-03 Ito Hiroyuki * src/ofit.c (fitfit): use loop to initialize values related to parameters "%0?" and "parameter0?". (fitcalc): added. (fit): add member "calc". * src/omath.c (mparam): bug fix: fix calculation of "m". (struct mlocal): now member "idpm" is array. (msettbl): use loop to set value related to "mlocal->idpm[]". (minit): use loop to set value to "mlocal->idpm[]". 2009-04-02 Ito Hiroyuki * src/gtk/x11graph.c (DirectoryDialogSetup): change width of "d->dir". * src/gtk/ogra2cairo.c (relative_move): added. (draw_str, gra2cairo_output): use "relative_move()" instead of "cairo_rel_move_to()". 2009-04-01 Ito Hiroyuki * src/gtk/x11merge.c (Mlist): gettextize. * src/gtk/x11file.c (Flist): gettextize. * src/gtk/x11axis.c (Alist): gettextize. * src/gtk/x11lgnd.c (legend_list_set_val): just set converted text to tree view when "type" is "LegendTypeText". (Llist): gettextize. (Llist): ellipsize mode of "property" column is "PANGO_ELLIPSIZE_END". * src/gtk/gtk_liststore.c (create_column): add attribute "ellipsize" to "renderer". * src/gtk/gtk_liststore.h (_list_store): add member "ellipsize". * src/ofile.c (search_mask): check if the index "i" of array "mask" is lesser than "n". * src/gtk/x11graph.c (CmHelpHelp, about_link_activated_cb): use "execlp()" instead of "system()". 2009-03-31 Ito Hiroyuki * src/gtk/x11file.c (FileMoveDialogClose): free "ptr". (FileMoveDialogClose): call "set_graph_modified()". * src/gtk/x11opt.c (PrefFontDialogUpdate): free "fontalias". * src/shell.c (shputstdout, shprintfstdout): check return value of "write()". (expand, checkcmd, cmdexec): use "n_mkstemp()" instead of "tempnam()". * src/ioutil.c (n_mkstemp): added. * src/ogra2prn.c (mytempfile): added. (gra2p_output): use "mytempfile()". * src/nconfig.c (replaceconfig_match, removeconfig_match, make_backup): added. (replaceconfig): use "replaceconfig_match()" and "make_backup()". (removeconfig): use "removeconfig_match()" and "make_backup()". (replaceconfig, removeconfig): use "tmpfile()" instead of "tempnam()". (lockconfig): call "msleep()" while checking "configlocked()". 2009-03-29 Ito Hiroyuki * driver/gra2wmf.c (getboundingbox): remove unused variable "exchange". (draw): remove unused variables "lBrush" and "rect". 2009-03-26 Ito Hiroyuki * src/gtk/x11axis.c (NumDialogSetup): arrange widgets. * src/oprm.c (prmload): use "R_OK", "W_OK", "X_OK" for "access()". * src/omerge.c (mergeload): use "R_OK", "W_OK", "X_OK" for "access()". * src/ofile.c (f2dload): use "R_OK", "W_OK", "X_OK" for "access()". * src/nconfig.c (writecheckconfig): use "R_OK", "W_OK", "X_OK" for "access()". * src/ioutil.c (findfilename, nsearchpath, nglob2): use "R_OK", "W_OK", "X_OK" for "access()". * src/ofile.c (f2dload): use "R_OK", "W_OK", "X_OK" for "access()". * src/gra.c (GRAC_INIT_VAL): added. (GRAClist): use "GRAC_INIT_VAL". (get_gra_font): added. (GRAinputold): use "get_gra_font()". * src/shell.c (shputstderr, shprintfstderr): comment out. * src/ogra2.c (gra2disconnect): comment out. * src/object.c (vdisplaywindow, unregisterallevloop) (chkobjectlocal, chkobjproc, getobjproc, getuniqname): comment out. * src/nstring.c (getitok3, getitok4): comment out. * src/ioutil.c (nselectdir, nselectfile): comment out. * src/gra.c (GRAdirect, GRAremark): comment out. * src/gtk/ox11dlg.c (dialogclose): remove. * src/gtk/ogra2cairo.c (FONT_FACE_NUM): added. (check_type): use "FONT_FACE_NUM". * src/gtk/ogra2x11.c (gtkevsize): remove. 2009-03-24 Ito Hiroyuki * src/oprm.c (remarkconv): use "greektable_num()". * src/gra.c (greektable_num): added. (FONTTBL_NUM): added. (GREEK_TBL_NUM): added. (GRAinputold): check index of "fonttbl[]". 2009-03-23 Ito Hiroyuki * src/gtk/ox11menu.c (SetCaption, graph_modified_sub): added. (set_graph_modified, reset_graph_modified): use "graph_modified_sub()". (gtkmenu): field "modified" use function "mxmodified". (mxmodified): added. * src/gtk/x11menu.c (SetCaption): remove. * src/ofile.c (f2dload_sub): added. (f2dload, f2dloaddum): use "f2dload_sub()". * src/gtk/x11file.c (FileDialogSetupItemCommon,start_editing): use "CHK_STR()". * src/gtk/x11axis.c (AxisDialogSetup, AxisCB) (AxisDialogSetupItem, AxisPosDialogSetupItem): use "CHK_STR()". * src/gtk/x11print.c (DriverDialogSelectCB): use "CHK_STR()". * src/gtk/ox11dlg.c (dlgconfirm): use "CHK_STR()". * src/oaxis.c (axisautoscale): return 0 even if the return value of axisautoscalefile() is not 0. 2009-03-20 Ito Hiroyuki * src/gtk/x11print.c (OutputImageDialogSetupItem): sensitivity of dpi settings is FALSE for ps and pdf output. 2009-03-18 Ito Hiroyuki * src/gtk/x11view.c (ViewerWinFileUpdate): use "update_file_obj_multi()". * src/gtk/x11file.c (update_file_obj_multi): added. (CmFileUpdate, CmFileOpen): use "update_file_obj_multi()". 2009-03-17 Ito Hiroyuki * src/gtk/ox11dlg.c (get_sarray_argument): accept multi "sarray"s. 2009-03-12 Ito Hiroyuki * src/gtk/x11menu.h (struct NgraphApp): remove member "Message3". * src/gtk/x11view.c (init_zoom, mouse_up_zoom) (ViewerEvMouseMove): remove "SetZoom()" or "ResetZoom()". (mouse_up_zoom): set coordinate of a mouse to "d->MouseX2" and "d->MouseY2". (ViewerEvLButtonUp): call "SetPoint()" after call "SetCursor()". * src/gtk/x11print.c (CmOutputDriver): call "ResetStatusBar()". * src/gtk/x11menu.c (SetZoom, ResetZoom): remove. 2009-03-11 Ito Hiroyuki * src/gtk/x11menu.c (tool_button_enter_leave_cb): use "SetStatusBarSub()" instead of "SetStatusBarXm()". (SetStatusBarXm): remove. (ResetZoom, SetZoom, ResetStatusBar): use "SetStatusBarSub()" or "ResetStatusBarSub()". (SetStatusBarSub, ResetStatusBarSub): added. * src/gtk/ox11menu.c (mgtkdisplaystatus): use "DisplayDialog()" instead of "DisplayStatus()". * src/gtk/x11graph.c (CmGraphNewFrame, CmGraphNewSection) (CmGraphNewCross, CmGraphAllClear): remove. (CmGraphNewMenu): clear graph and set NULL to "NgraphApp.FileName". call "reset_graph_modified()". * src/gtk/x11view.c (ViewerWinSetup): use "value-changed" signal instead of "change-value" signal for "d->HScroll" and "d->VScroll". (ViewerEvVScroll, ViewerEvHScroll): change return value and argument. don't call "gdk_window_get_position()", "gdk_draw_drawable()", "gdk_drawable_get_size()", "gdk_gc_new()" and "g_object_unre()". (scrollbar_scroll_cb, ViewerEvMouseMove, ViewerEvScroll) (ViewerEvKeyDown): don't call "ViewerEvVScroll()" or "ViewerEvHScroll()" after call "range_increment()". (SetHRuler, SetVRuler): change argument. get size of drawable widget inside the function. 2009-03-10 Ito Hiroyuki * src/gtk/gtk_liststore.c (create_column): set user data with "g_object_set_data()" instead of "g_object_set()". * src/gtk/x11file.c (start_editing_type, start_editing): remove unused variable "list". * src/gtk/x11axis.c (start_editing): remove unused variable "list". * src/gtk/gtk_widget.c (spin_entry_set_range) (spin_entry_set_inc, spin_entry_set_val, spin_entry_get_val) (_create_spin_entry): use "g_object_[gs]et_data()" instead of "gtk_object_[gs]et_user_data()". * src/gtk/gtk_subwin.c (numeric_cb, string_cb, start_editing): use "g_object_[gs]et_data()" instead of "gtk_object_[gs]et_user_data()". * src/gtk/x11lgndx.c (LegendGaussDialogSetup): use "gtk_widget_set_size_request()" instead of "gtk_drawing_area_size()". * src/gtk/x11opt.c (add_str_to_array): remove. * src/gtk/x11lgnd.c (CmOptionTextDef): save and restore modified state. * src/gtk/x11file.c (CmOptionFileDef): save and restore modified state. * src/ofile.c (f2dstore): use "nstrdup()" instead of "memalloc()" to create string "[EOF]\n". (f2dstat, f2dstat2): use "nstrdup()" instead of "memalloc()". * src/osystem.c (sysinit): use "nstrdup()" instead of "memalloc()" to create string "./". * src/ofit.c (fitfit): use "nstrdup()" instead of "memalloc()" to create string "equation". * src/ntime.c (ndate, ntime): use "nstrdup()" instead of "memalloc()". * src/nconfig.c (removeconfig): free "buf" when "change" is FALSE. * src/ioutil.c (fgetline): set NULL to "*buf" when EOF or error. 2009-03-09 Ito Hiroyuki * src/gtk/ox11menu.c (enum menu_config_type): add "MENU_CONFIG_TYPE_CHILD_WINDOW", "MENU_CONFIG_TYPE_HISTORY", "MENU_CONFIG_TYPE_COLOR", "MENU_CONFIG_TYPE_SCRIPT" and "MENU_CONFIG_TYPE_DRIVER". (struct child_win_stat, MenuConfigDriver, MenuConfigScript) (MenuConfigMisc, MenuConfigViewer, MenuConfigGeometry) (MenuConfigChildGeometry, MenuConfigArrray, BUF_SIZE) (add_str_with_int_to_array, add_child_geometry_to_array) (add_geometry_to_array, add_color_to_array) (add_prm_str_to_array, save_ext_driver_config) (save_script_config, add_str_to_array, menu_save_config_sub) (menu_save_config): added. (menu_config_set_child_window_geometry): use "struct child_win_stat *" (addmenu): initialize "MenuConfigHash" with "MenuConfigArrray". * src/gtk/ox11menu.h (enum SAVE_CONFIG_TYPE) (SAVE_CONFIG_TYPE_X11MENU): added. * src/gtk/x11opt.c (CHK_STR, save_font_config, save_misc_config) (save_script_config, save_ext_driver_config, save_viewer_config) (save_child_geometory_config, add_geometry_to_array) (save_geometory_config, add_prm_str_to_array) (SAVE_CONFIG_TYPE_X11MENU, SAVE_CONFIG_TYPE): remove. (save_config): use "menu_save_config()" and "gra2cairo_save_config()". * src/nstring.h (CHK_STR): add * src/gtk/ogra2cairo.c (gra2cairo_save_config): added. * src/oaxis.c (enum axis_config_type): remove. (axisloadconfig): use "obj_load_config()". * src/otext.c (TextConfig): added. (textloadconfig): use "obj_load_config()". (textsaveconfig): use "obj_save_config()". (addtext): initialize "TextConfigHash". * src/ofile.c (f2dinit): use "nstrdup()" instead of "memalloc()". (f2dinit): free "s3" and "s4" when error is occurred. (f2dsaveconfig): use "obj_save_config()". (f2dloadconfig): use "obj_load_config()". (enum file_config_type, struct file_config): remove. * src/oaxis.c (axisinit): use "nstrdup()" instead of "memalloc()". 2009-03-06 Ito Hiroyuki * src/gtk/x11commn.c (LoadPrmFile, LoadNgpFile): call "reset_graph_modified()". * src/gtk/x11view.c (graph_dropped): don't call "reset_graph_modified()". * src/gtk/x11graph.c (CmGraphLoad): don't call "reset_graph_modified()". * src/omerge.c (mergestore): bug fix: buffer over run. use "nstrdup()" instead of "memalloc()". * src/gtk/gtk_liststore.c (create_tree_view): header of the tree view is visible when "n" greater than 1. (list_store_set_sort_all, list_store_set_sort_column): header of the tree view is always visible. * src/gtk/x11view.c (struct viewer_popup): add member "type". (create_menu): create GtkCheckMenuItem when "popup[i].type" is "POP_UP_MENU_ITEM_TYPE_CHECK". (do_popup): set active state of the menu item when i is "POPUP_ITEM_HIDE". (ViewCross): add argument "dtate". * src/gtk/x11merge.c (Popup_list): add initial data for member "type". (POPUP_ITEM_HIDE): add (MergeWinExpose): set active state of the menu item when i is "POPUP_ITEM_HIDE". * src/gtk/x11menu.h (enum pop_up_menu_item_type): added. * src/gtk/x11lgnd.c (Popup_list): add initial data for member "type". (POPUP_ITEM_HIDE): add (LegendWinExpose): set active state of the menu item when i is "POPUP_ITEM_HIDE". * src/gtk/x11file.c (Popup_list): add initial data for member "type". (POPUP_ITEM_HIDE): add (popup_show_cb): set active state of the menu item when i is "POPUP_ITEM_HIDE". * src/gtk/x11axis.c (Popup_list): add initial data for member "type". (POPUP_ITEM_HIDE): added. (popup_show_cb): set active state of the menu item when i is "POPUP_ITEM_HIDE". * src/gtk/gtk_subwin.h (struct subwin_popup_list): add member "type". * src/gtk/gtk_subwin.c (tree_set_hidden_state, set_hidden_state): added. (list_sub_window_hide): use "set_hidden_state()". (tree_sub_window_hide): use "tree_set_hidden_state()" (sub_win_create_popup_menu): create GtkCheckMenuItem when "list[i].type" is "POP_UP_MENU_ITEM_TYPE_CHECK". * src/gtk/ox11menu.c (reset_graph_modified, set_graph_modified): call "SetCaption()". * src/gtk/x11menu.c (SetCaption): no argument. use "ngp" field of "menu" object for file name of the window title. * src/gtk/x11commn.c (LoadPrmFile, LoadNgpFile, GraphSave): don't call "SetCaption()". 2009-03-05 Ito Hiroyuki * src/gtk/x11menu.c (SetPoint): add argument "struct Viewer *d". (SetPoint): show parameter when change, zoom or drag object. (change_window_state_cb): remove. 2009-03-04 Ito Hiroyuki * src/gtk/ogra2x11.c (gtkloadconfig): print warning when unused parameter is appeared. * src/otext.c (textloadconfig): print warning when unused parameter is appeared. * src/gtk/ogra2cairo.c (loadconfig): print warning when unused parameter is appeared. * src/ofile.c (f2dloadconfig): print warning when unused parameter is appeared. * src/gtk/ox11menu.c (mgtkloadconfig): print warning when unused parameter is appeared. * src/oaxis.c (axisloadconfig): print warning when unused parameter is appeared. * src/gtk/x11dialg.h (struct ViewerDialog): remove unused member "redraw". * src/gtk/ox11menu.h (struct menulocal): remove unused member "autoredraw". * src/gtk/x11opt.c (ViewerDialogSetupItem, ViewerDialogClose) (ViewerDialogSetup, save_viewer_config): remove codes related to "Menulocal.autoredraw". * src/gtk/ox11menu.c (mxautoredraw): remove. (MenuConfig, menuinit, gtkmenu): remove codes related to "Menulocal.autoredraw". * src/gtk/x11opt.c (enum SAVE_CONFIG_TYPE) (SAVE_CONFIG_TYPE_X11MENU, save_config): added. (DefaultDialogClose): use "save_config()" to save configuration. (PrefScriptDialogSetup, PrefDriverDialogSetup) (PrefFontDialogSetup, MiscDialogSetup, ExViewerDialogSetup) (ViewerDialogSetup): add a save button. (PrefScriptDialogClose, PrefDriverDialogClose) (PrefFontDialogClose, MiscDialogClose, ExViewerDialogClose) (ViewerDialogClose): save configuration if the save button is clicked. 2009-03-03 Ito Hiroyuki * src/gtk/x11opt.c (save_viewer_config, save_misc_config) (MiscDialogSetupItem, MiscDialogSetup, MiscDialogClose) (ViewerDialogSetupItem, ViewerDialogSetup, ViewerDialogClose): settings for status-bar and ruler are moved from viewer dialog to misc dialog, and setting for line attribute of focus frame is moved from misc dialog to viewer dialog 2009-02-28 Ito Hiroyuki * src/object.c (_newobj, _delobj): static. 2009-02-26 Ito Hiroyuki * src/gtk/x11view.c (ViewerEvMouseMove): don't call "CoordWinSetCoord()". * src/gtk/x11menu.c (SetPoint): call "CoordWinSetCoord()". * src/gtk/ox11menu.c (set_menu_config_mxlocal): remove. (gtkmenu): remove field "_gtklocal". (mx_clear): call "draw_paper_frame()" after call "gdk_draw_rectangle()". (menuinit): unref "Menulocal.pix" if "Menulocal.pix" is not NULL. (menu_config_set_prn_driver): remove. * src/gtk/ox11menu.h (struct menulocal): remove unused member "output", "outputobh", "prnprinterroot". (struct mxlocal): remove mxlocal and use menulocal. (struct prnprinter): remove. * src/gtk/x11opt.c (save_viewer_config, ViewerDialogSetupItem) (ViewerDialogSetup, ViewerDialogClose): add codes related to status bar. * src/gtk/x11menu.c (toggle_status_bar): remove. (show_outputmenu_cb): added. (create_outputmenu): call "g_signal_connect()" for "Output" menu. (show_winmwnu_cb, create_windowmenu): remove codes related to status bar. (SetPoint): add offset to coordinate. * src/gtk/x11opt_proto.h (Pref*DialogMoveSub): added. (Pref*DialogUp, Pref*DialogUp): use Pref*DialogMoveSub. (Pref*ListDefailtCb): respond to "GDK_Up", "GDK_Down" and "GDK_Delete". 2009-02-25 Ito Hiroyuki * src/gtk/x11view.c (ViewerEvLButtonDblClk): use "POINT_TYPE_DRAW_ALL". * src/gtk/x11menu.h (POINT_TYPE_DRAW_ALL): add * src/gtk/x11opt.c (script_free, script_init, extprinter_free) (extprinter_init): added. (PrefScriptDialogUpdate, PrefScriptDialogRemove) (PrefScriptDialogAdd, PrefScriptDialogUp, PrefScriptDialogDown) (script_list_defailt_cb, script_list_sel_cb) (PrefDriverDialogUpdate, PrefDriverDialogRemove) (driver_list_defailt_cb, driver_list_sel_cb) (PrefDriverDialogAdd, PrefDriverDialogUp, PrefDriverDialogDown) (PrefFontDialogUp, PrefFontDialogDown, font_list_defailt_cb) (font_list_sel_cb) : remove (use "x11opt_proto.h"). (PrefScriptDialogSetupItem, PrefDriverDialogSetupItem): remove unused argument. * src/gtk/ogra2cairo.c (free_font_map, create_font_map): remove codes related to "fcur->prev" and so on. * src/gtk/ogra2cairo.h (struct fontmap): remove member "prev". * src/gtk/Makefile.am (libngraph_la_SOURCES): add "x11opt_proto.h". 2009-02-24 Ito Hiroyuki * src/gtk/x11opt.c (PrefScriptDialogUp, PrefScriptDialogDown) (PrefDriverDialogUp, PrefDriverDialogDown, PrefFontDialogUp) (PrefFontDialogDown): add (scriptlist_sel_cb, drvlist_sel_cb, fontlist_sel_cb): set sensitivity of "d->up_b" and "d->down_b". (PrefScriptDialogSetup, PrefDriverDialogSetup) (PrefFontDialogSetup): create GtkButton "d->up_b" and "d->down_b". * src/gtk/x11view.c (ShowPoints, mouse_up_lgend2): use "POINT_TYPE_DRAW1". (ViewerEvLButtonUp): use "POINT_TYPE_POINT". (ViewerEvMouseMove): use "POINT_TYPE_TRIM", "POINT_TYPE_POINT", "POINT_TYPE_DRAW1" and "POINT_TYPE_DRAW2". (ViewerEvKeyDown): use "POINT_TYPE_POINT". (ViewCopy): use "POINT_TYPE_POINT". (ShowPoints): use "POINT_TYPE_DRAW1". (mouse_up_lgend2): use "POINT_TYPE_DRAW1". (ViewerEvMouseMove, ViewerEvPaint): use "Mxlocal->gc" instead of newly created GdkGC. * src/gtk/x11menu.h (POINT_TYPE_POINT, POINT_TYPE_DRAW1) (POINT_TYPE_DRAW2, POINT_TYPE_TRIM): added. * src/gtk/x11menu.c (SetCursor): do nothing when "type" is same as "CursorType". * src/gtk/ox11menu.c (mx_clear): turn off clipping after draw pixmap. * src/gtk/ogra2x11.c (gtkevpaint): turn off clipping after draw pixmap. 2009-02-23 Ito Hiroyuki * src/gtk/ox11menu.c (mx_redraw): call "draw_paper_frame()" after call "GRAredraw()". (check_object_name): added. (mx_get_focused): use "check_object_name()" to check the object is exist in the argument. (gtkmenu): argument type of "focused" is "sa". * src/gtk/x11menu.h (struct Viewer): add member "VRuler" and "HRuler". * src/gtk/x11opt.c (ViewerDialogClose): call "set_widget_visibility()". * src/gtk/x11menu.c (setupwindow): create GtkHRuler and GtkVRuler. (SetPoint): set position of "NgraphApp.Viewer.HRuler" and "NgraphApp.Viewer.VRuler". (set_widget_visibility): added. (application): call "set_widget_visibility()" after call "gtk_widget_show_all()". * src/gtk/x11view.c (MakeRuler): remove. (SetVRuler, SetHRuler): added. (ChangeDPI): call "SetHRuler()" and "SetVRuler()". (ViewerEvHScroll): call "SetVRuler()". (ViewerEvVScroll): call "SetHRuler()". (draw_paper_frame): added. (Draw, create_pix): call "draw_paper_frame()". (ViewerWinSetup): call "ChangeDPI" after initialize "d->cx", "d->cy", "d->hscroll" and "d->vscroll". (ViewerEvPaint): don't call "MakeRuler()". * src/gtk/main.c (my_sprintf): don't change "buf_size" when the return value of "realloc()" is NULL. 2009-02-20 Ito Hiroyuki * src/gtk/x11view.c (ViewerEvPaint): call "gdk_draw_drawable()" even if "GlobalLock" id TRUE. (ViewerEvPaint): don't check "chkobjinstoid(Menulocal.GRAobj, Menulocal.GRAoid)". * demo/demo.ngp: use dialog::check * src/gtk/ox11dlg.c (get_sarray_argument): added. (dlgradio, dlgcombo, dlgcheck): use "get_sarray_argument()". * src/object.c (saveobj, restoreobj): remove. (_copyobj): static function. * src/shellcm.c (cmput): never save and restore image of instance. 2009-02-19 Ito Hiroyuki * src/gtk/ox11dlg.c (dlgradio, dlgcombo, dlgcheck): return 1 when no arguments are given. * src/shell.c (cmdstackfree): call "memfree(stdel->pat)". (cmdstackcat): initialize "stnew->pat". (cmdstackrmlast): call "memfree(stdel->pat)". (cmdexec): set NULL to "st->pat" if "st->pat" will not be used any more. * src/gtk/x11opt.c (PrefScriptDialogRemove): call "memfree(sdel->description)". * src/gtk/ox11menu.c (menudone): call "memfree(sdel->description)". (mx_get_focused): use "arrayfree2()" instead of "memfree()" to free "*rval". * src/gtk/ox11dlg.c (dlggetopenfiles): use "arrayfree2()" instead of "memfree()" to free "*rval". * src/oaxis.c (axisbbox): set NULL to "rval" when return value of "set_axis_box()" is NULL. * src/otext.c (textbbox): set NULL to "rval" after call "arrayfree()". * src/orect.c (rectbbox): set NULL to "rval" after call "arrayfree()". * src/olegend.c (legendbbox): set NULL to "rval" after call "arrayfree()". * src/omerge.c (mergebbox): set NULL to "rval" after call "arrayfree()". * src/omark.c (markbbox): set NULL to "rval" after call "arrayfree()". * src/oline.c (arrowbbox): set NULL to "rval" after call "arrayfree()". * src/ofile.c (f2dgetcoord): set NULL to "rval" after call "arrayfree()". * src/ocurve.c (curvebbox): set NULL to "rval" after call "arrayfree()". * src/oarc.c (arcbbox): set NULL to "rval" after call "arrayfree()". 2009-02-18 Ito Hiroyuki * src/gtk/ox11dlg.c (dlgcombo_entry): remove. (dlgradio, dlgcombo, dlgcheck): check "select" field. (dlgcheck): now "check" field return array of selected index. (dialog): add field "select". * src/gtk/x11gui.c (DialogRadio): initialize state of toggle button by the value of "*r". (DialogCombo, DialogComboEntry): add argument "sel" and activate item related to "sel". (DialogCheck): change type of argument from "int **r" to "int *r". (DialogCheck): initialize state of toggle button by the value of "r[i]". * src/gtk/ox11menu.c (mx_get_focused): return 0 when "num" is less than 1. (mx_echo): added. (gtkmenu): add field "echo". 2009-02-17 Ito Hiroyuki * src/ofile.c (f2ddraw): do "fp->datanum = f2dlocal->num" after call "fitout()" when "fp->datanum" is zero. * src/gtk/x11opt.c (CHK_STR): added. (save_ext_driver_config, save_script_config) (SetScriptDialogSetupItem, SetDriverDialogSetupItem): use "CHK_STR" (PrefScriptDialogAdd): initialize "fnew->description". 2009-02-16 Ito Hiroyuki * src/gtk/x11scrip.c (ScriptDialog, ScriptDialogClose) (ScriptDialogSetup, script_list_default_cb) (ScriptDialogSetupItem): remove. (CmScriptExec): add arguments "GtkWidget *w" and "gpointer client_data". (CmScriptExec): don't use "ScriptDialog". * src/gtk/x11opt.c (save_script_config): save description of the script. (SetScriptDialogSetup): change title from "Script:" to "Script file". (SetScriptDialogSetup): add widgets for script description. (set_scrpt_option): added. (SetScriptDialogClose): use "set_scrpt_option()". (SetScriptDialogClose): save description of the script. (PrefScriptDialogSetup): add column for file name and script description. (PrefScriptDialogSetupItem): set file name and script description. (PrefScriptDialogClose): call "update_addin_menu()". * src/gtk/x11menu.h (enum MenuID): remove "MenuIdScriptExec". * src/gtk/x11menu.c: add global variable "AddinMenu". (show_graphmwnu_cb): set sensitivity of "AddinMenu". (create_addin_menu, update_addin_menu): added. (create_graphmenu): now "Add-In" menu has sub menu. * src/gtk/x11graph.c (CmGraphMenu): remove case for "MenuIdScriptExec". * src/gtk/x11dialg.h (struct ScriptDialog): remove. (struct SetScriptDialog): add member "description". * src/gtk/x11dialg.c: remove unused variable "DlgScript". * src/gtk/ox11menu.h (struct script): add member "description". * src/gtk/ox11menu.c (menu_config_set_script): set description. * initfile/Ngraph.ini.in (script): change format (add description column). 2009-02-13 Ito Hiroyuki * src/object.c (error22): now the type of the argument "mes1" and "mes2" are "const char *". (error2): now the type of the argument "mes" is "const char *". * initfile/Ngraph.ini.in (num_script_size): fix typo (from "num_scriptsize" to "num_script_size"). * src/gtk/x11dialg.c (SetObjPointsFromText): check field of the instance is modified or not after call "sgetobjfield()". (chk_sputobjfield): added. (SetObjFieldFromText, SetObjFieldFromStyle) (SetObjFieldFromFontList, SetObjAxisFieldFromWidget): use "chk_sputobjfield()". * src/gtk/gtk_subwin.c (modify_numeric): check field of the instance is modified or not after call "getobj()". (modify_string): use "chk_sputobjfield()". 2009-02-12 Ito Hiroyuki * src/gtk/x11axis.c (axiswin_delete_axis) (axis_delete_popup_func, axiswin_ev_key_down): added. (CmAxisWindow): initialize "d->ev_key". (Popup_list): "axis_delete_popup_func()" is called when delete menu is activated. * src/oaxis.c (check_direction): also check position of axises. * src/gtk/x11axis.c (Alist): "length" column accept negative value. 2009-02-11 Ito Hiroyuki * src/oaxis.c (axischange): check length of axis instead of position. (FIND_X, FIND_Y, FIND_U, FIND_R, FIND_FRAME, FIND_CROSS) (CHECK_FRAME, CHECK_CROSS): added. (get_axis_group_type): use "FIND_X", "FIND_Y", "FIND_U", "FIND_R", "CHECK_FRAME" and "CHECK_CROSS". (axis_save_groupe): added. (axissave): use "axis_save_groupe()" and "get_axis_group_type()". (struct axis_config, AxisConfig, enum axis_config_type): added. (addaxis): initialize "AxisConfigHash". (axisloadconfig): use "AxisConfigHash". 2009-02-10 Ito Hiroyuki * src/gtk/x11commn.c (GraphSave): "overwrite" is FALSE when "initfil" is NULL. (GraphSave): check overwrite before show save dialog. * src/gtk/x11axis.c (SectionDialogSetup, CrossDialogSetup) (AxisPosDialogSetup): type of spin buttons for width, height and length are "SPIN_BUTTON_TYPE_POSITION". * src/oaxis.c (get_axis_group_type, get_axis_box, set_axis_box): added. (axisbbox): use "get_axis_group_type()", "get_axis_box()" and "set_axis_box()". (axismatch, axismove, axischange, axiszoom): use "get_axis_group_type()". (axis_change_point0, axis_change_point1, axis_change_point2) (axis_change_point3): added. (axischange): use "axis_change_point0()", "axis_change_point1()", "axis_change_point2()" and "axis_change_point3()". (check_direction): added. (axisbbox, axischange): call "check_direction()" to check direction of axises. 2009-02-09 Ito Hiroyuki * src/oaxis.c (axissave, axisbbox, axismatch, axismove) (axischange, axiszoom, axisadjust, axisautoscalefile) (axisdraw): add initialization to avoid compile warnings. (axisautoscalefile): set "set" as TRUE when "set" is FALSE. (axisgrouping): check "data[0]". (set_group, set_group_pos): added. (axisgrouping): use "set_group()". (axisgrouppos): use "set_group_pos()". (axis_default, axis_default_set, axis_default_set_ref) (axis_default_set_adj): added. (axisdefgrouping): use "axis_default()", "axis_default_set_adj()" and "axis_default_set_ref()". (enum AXIS_TYPE, enum AXIS_GAUGE, enum AXIS_NUM_POS) (enum AXIS_NUM_ALIGN, enum AXIS_NUM_DIR): added. * src/omath.c (mformula): use "mathcode_error()". * src/ofit.c (fitput): use "mathcode_error()". * src/omath.c (addmath): initialize "MathErrorCodeArray". * src/ofit.c (addfit): initialize "MathErrorCodeArray". * src/ofile.c (f2dloadconfig2): remove. (mathcode_error): remove. (addfile): initialize "MathErrorCodeArray". * src/mathcode.c (mathcode_error): added. 2009-02-06 Ito Hiroyuki * src/gtk/x11opt.c (add_prm_str_to_array): added. (save_misc_config): use "add_prm_str_to_array()". (save_misc_config): save "coordwin_font". (DefaultDialogClose): call "add_str_to_array()" when "Menulocal.coordwin_font" is NULL. (MiscDialogSetupItem): set font name to "d->coordwin_font" if "Menulocal.coordwin_font" is not NULL. (MiscDialogSetup): create widgets for "Menulocal.coordwin_font". (MiscDialogClose): set selected font to "Menulocal.coordwin_font" and call "CoordWinSetFont()". * src/gtk/x11dialg.h (struct MiscDialog): add member "coordwin_font". * src/gtk/x11cood.c (CoordWinSetFont): added. (CoordWinDrawTex): remove. (CoordWinSetCoord): call "gtk_label_set_text()" instead of "CoordWinSetCoord()". (CoordWinSetCoord): change format strings for "x" and "y" from "%.2f" to "%6.2f". (CoordWinSetCoord): change format strings for axis id from "%d" to "%2d". (CoordWinUpdate): call "label_sub_window_create()" instead of "text_sub_window_create()". * src/gtk/ox11menu.c (MenuConfig): add data for "coordwin_font". (menuinit): initialize "Menulocal.coordwin_font". * src/gtk/ox11menu.h (struct menulocal): add member "coordwin_font". * src/gtk/gtk_subwin.c (sub_window_create): add argument "with_view_port". (sub_window_create): use "gtk_scrolled_window_add_with_viewport()" when "with_view_port" is TRUE. (label_sub_window_create): added. * src/omath.c (mformula): use "switch" to check "rcode". * src/ofile.c (mathcode_error): added. (f2dputmath, fitout): use "mathcode_error()". * src/gtk/x11gui.c (DialogExecute): call "gtk_widget_grab_focus()" when "data->focus" is not NULL. (DialogExecute): call "gtk_widget_show_all()" outside of the loop. (DialogExecute): check "data->show_buttons "outside of the loop. * src/gtk/x11lgnd.c (LegendTextDialogSetup): set poniter of the widget as "d->focus" instead of call "gtk_widget_grab_focus()". * src/gtk/x11graph.c (SaveDialogSetup): set poniter of the widget as "d->focus" instead of call "gtk_widget_grab_focus()". * src/gtk/x11file.c (MarkDialogSetup): set poniter of the widget as "d->focus" instead of call "gtk_widget_grab_focus()". * src/gtk/x11dialg.c (initdialog): initialize member "focus" of each instance of struct. * src/gtk/x11dialg.h (struct DialogType): add member "focus" to dialog related struct. 2009-02-05 Ito Hiroyuki * src/oagrid.c (agriddraw): bug fix: fix calculation of coordinate when "axdir" or "aydir" is 3. (agriddraw): adjust "dirx" and "diry" as these value is greater or equal to zero and less than 36000. * src/oaxis.c (axisdirection): added. (axis): "axisdirection()" is called when field "direction" is changed. * src/odraw.h (enum INTERPOLATION_TYPE): added. * src/mathcode.c (mathcode): return value type of "mathcode()" is "enum MATH_CODE_ERROR_NO". * src/gtk/x11graph.c (DirectoryDialogClose, CmGraphHistory): call "ErrorMessage()" when "chdir()" returns non zero value. * src/gtk/x11commn.c (ErrorMessage): added. * src/gtk/x11file.c (FitDialogSetSensitivity): use "FIT_OBJ_TYPE". (enum MATH_FNC_TYPE): added. (MathTextDialogSetup, MathTextDialogClose): use "MATH_FNC_TYPE". (FitDialogSetSensitivity): use "FIT_OBJ_TYPE". (FileDialogFit, FileDialogType, draw_type_pixbuf, select_type) (start_editing_type, f2dsettings): use "FILE_OBJ_PLOT_TYPE". * src/ofit.c (fitpoly, fitfit): use "FIT_OBJ_TYPE". * src/ofit.h: added. * src/ofile.c (f2ddraw): do "fp->datanum = f2dlocal->num" after call "fitout()" when "redraw" is true. (opendata, rectout, errorbarout, stairout, barout, f2ddraw): use "FILE_OBJ_PLOT_TYPE". (curveout, curveoutfile, f2dsettings): use "INTERPOLATION_TYPE". * src/ofile.h (enum FILE_OBJ_PLOT_TYPE): add 2009-02-04 Ito Hiroyuki * driver/Makefile.am (ngp2, dir_defs.h): depend on Makefile. * src/gtk/Makefile.am (dir_defs.h): depend on Makefile. * src/gtk/ogra2cairo.c (loadfont): remove unused variables "lang" and "lang_ja". (gra2cairo_get_fontmap_num): added. * src/gtk/x11opt.c (save_font_config, save_ext_viewer_config) (save_misc_config, save_script_config, save_ext_driver_config) (save_viewer_config, save_child_geometory_config) (save_geometory_config, add_str_to_array) (add_str_with_int_to_array, add_geometry_to_array): added. (DefaultDialogClose): use "add_str_to_array()", "save_geometory_config()" and so on. (scriptlist_sel_cb, drvlist_sel_cb, fontlist_sel_cb): added. (PrefScriptDialogSetup, PrefDriverDialogSetup) (PrefFontDialogSetup): set signal handler to GtkTreeSelection for "changed" signal. (get_font_alias): added. (set_font_from_font_selection_dialog): use "get_font_alias()". (PrefFontDialogAdd): use "get_font_alias()" and "gra2cairo_get_fontmap()" to check if "alias" is valid string. * src/gtk/x11dialg.h (struct PrefScriptDialog) (struct PrefDriverDialog, struct PrefFontDialog): add member "update_b" and "del_b". * src/gtk/gtk_liststore.c (list_store_set_string) (list_store_path_set_string, tree_store_set_string): type of argument "v" is "const char *". 2009-02-03 Ito Hiroyuki * src/gtk/x11opt.c (DefaultDialogSetup): add "Font aliases" button. (DefaultDialogClose): add codes for save font map. (PrefFontDialogSetupItem, create_font_selection_dialog) (set_font_from_font_selection_dialog, PrefFontDialogUpdate) (PrefFontDialogRemove, PrefFontDialogAdd, font_list_defailt_cb) (PrefFontDialogSetup, PrefFontDialogClose, PrefFontDialog) (CmOptionPrefFont): added. (CmOptionMenu): add case for "MenuIdOptionPrefFont". * src/gtk/x11menu.h (enum MenuID): add "MenuIdOptionPrefFont". * src/gtk/x11menu.c (create_preferencemenu): add menu item "Font aliases". * src/gtk/x11dialg.h (struct PrefFontDialog): added. * src/gtk/x11dialg.c: add global variable "DlgPrefFont". * src/gtk/ogra2cairo.c (FontFaceStr, gra2cairo_get_fontmap) (gra2cairo_remove_fontmap, gra2cairo_add_fontmap, free_fonts) (gra2cairo_update_fontmap, check_type): added. (init_conf, free_conf): use "free_fonts()". (loadconfig): remove unused variable "fcur". (init_conf): use "FontFaceStr". * src/gtk/ogra2cairo.h (struct gra2cairo_local): remove unused member "font_opt". 2009-01-29 Ito Hiroyuki * src/gtk/x11view.c (create_legendx): use "swapint()". 2009-01-28 Ito Hiroyuki * addin/math.nsc: format result with "text::printf". * src/gtk/x11view.c (mouse_down_move): don't check "arraynum(d->focusobj)". (mouse_up_point): remove unused variables "num" and "focused". (mouse_up_point): use "switch" instead of "if". (mouse_up_drag, mouse_up_zoom, mouse_up_change): don't call "SetCursor()". (ViewerEvLButtonUp): call "SetCursor()" when "d->Mode" is "PointB", "LegendB", "AxisB", "TrimB", "DataB" or "EvalB". (get_mouse_cursor_type): return GDK_LEFT_PTR when "num == 0". * src/gtk/x11scrip.c (ScriptDialogClose): initialize "d->execscript" as NULL before check "d->ret". (CmScriptExec): call "delobj(shell, newid)" when "arrayadd()" returns NULL. 2009-01-23 Ito Hiroyuki * debian/Makefile.am: add files for debian package. * src/gtk/x11menu.c (application): call "gtk_widget_show_all()" instead of "gtk_window_present()". 2009-01-20 Ito Hiroyuki * src/gtk/x11file.c (start_editing): treat "id" as oid when "name[0] == '^'". * src/oagrid.c (agridtight): use "obj_do_tighten()". * src/oaxis.c (axistight): use "obj_do_tighten()". * src/ofile.c (f2dtight): use "obj_do_tighten()". * src/object.c (obj_do_tighten): added. 2009-01-18 Ito Hiroyuki * src/gtk/x11merge.c (POPUP_ITEM_TOP, POPUP_ITEM_UP) (POPUP_ITEM_DOWN, POPUP_ITEM_BOTTOM): added. (MergeWinExpose): change sensitivity of popup menu item. * src/gtk/x11lgnd.c (POPUP_ITEM_TOP, POPUP_ITEM_UP) (POPUP_ITEM_DOWN, POPUP_ITEM_BOTTOM): added. (LegendWinExpose): change sensitivity of popup menu item. * src/gtk/x11file.c (POPUP_ITEM_TOP, POPUP_ITEM_UP) (POPUP_ITEM_DOWN, POPUP_ITEM_BOTTOM): added. (popup_show_cb): change sensitivity of popup menu item. (FileDialog): d->multi_open is TRUE when "multi > 0". * src/gtk/x11axis.c (POPUP_ITEM_TOP, POPUP_ITEM_UP) (POPUP_ITEM_DOWN, POPUP_ITEM_BOTTOM): added. (popup_show_cb): change sensitivity of popup menu item. 2009-01-17 Ito Hiroyuki * src/gtk/x11dialg.h (struct FitDialog): add members "through_box", "dim_box", "weight_box", "usr_deriv_box", "usr_def_frame" and "div_box". * src/gtk/x11file.c (FitDialogSetSensitivity): added. (FitDialogSetup): add signal handler for some widgets to change sensitivity of widgets. 2009-01-14 Ito Hiroyuki * src/gtk/x11dialg.h (struct FileDialog): add member "apply_all" and "multi_open". * src/gtk/x11merge.c (MergeDialogSetup): add signal handler for "copy" button. * src/gtk/x11lgnd.c (LegendCurveDialogSetup) (LegendPolyDialogSetup, LegendArrowDialogSetup) (LegendRectDialogSetup, LegendArcDialogSetup) (LegendMarkDialogSetup, LegendTextDialogSetup): add signal handler for "copy" and "copy all" button. * src/gtk/x11file.c (FitDialogSetup, FileMoveDialogSetup) (FileMaskDialogSetup, FileLoadDialogSetup, FileMathDialogSetup) (FileDialogSetup): add signal handler for "copy" button. (FileDialogSetupItem): set sensitivity of "d->apply_all" by "d->multi_open". (FileDialog): initialize "d->multi_open". (FitDialogApply): check "poly_dimension" field is changed or not. (FileMoveDialogSetupItem, FileMoveDialogClose): execute "move_data_adjust" before get "move_data", "move_data_x" and "move_data_y". (FileDialogFit): delete instance of "fit" object when "ret == IDCANCEL" and "create == FALSE". * src/gtk/x11axis.c (GridDialogSetup, AxisBaseDialogSetup) (AxisPosDialogSetup, NumDialogSetup, AxisFontDialogSetup) (GaugeDialogSetup, AxisDialogSetup): add signal handler for "copy" button. (SectionDialogGrid): delete instance of "axisgrid" object when "ret == IDCANCEL" and "create == FALSE". (SectionDialogGrid): don't call "set_graph_modified()" when "axisgrid" object is not created. * src/gtk/x11gui.c (set_sensitivity_by_check_instance): added. (DialogExecute): call "gtk_widget_hide_all()" before call "gtk_widget_show_all()". * src/shellcm.c (dispfield): change field size for field name from 15 to 16. * src/gtk/x11view.c (mouse_down_move_data): execute "move_data_adjust" before get "move_data", "move_data_x" and "move_data_y". * src/oprm.c (prmload): execute "move_data_adjust" before get "move_data", "move_data_x" and "move_data_y". * src/ofile.c (adjust_move_num): added. (file2d): add field "move_data_adjust". (opendata): execute "move_data_adjust" before get "move_data", "move_data_x" and "move_data_y". 2009-01-13 Ito Hiroyuki * src/gtk/x11view.c (menu_activate): added. (ViewerWinSetup): add signal handler for "selection-done" to "d->menu". (Evaluate): cursor type is "GDK_TCROSS" when move data mode. (mouse_down_move_data): check return value of "getobj()" and "getobjlist()" and goto "ErrEnd" when these functions return FALSE. (move_data_cancel): add argument "show_message". (mouse_down_move_data): check return value of "arraynget()". (do_popup): check id of focused object when "num == 1". * src/gtk/x11menu.h (struct Viewer): add member "menu". * src/gtk/x11menu.c (Cursor): add "GDK_TCROSS". (SetCursor): add case "GDK_TCROSS". (setupwindow): initialize "NgraphApp.Viewer.menu". 2009-01-11 Ito Hiroyuki * src/gtk/x11menu.h (enum MouseMode): added. (struct Viewer): member "MouseMode" and "Mode" are enum. * src/gtk/x11view.c (init_zoom): added. (mouse_down_move): use "get_mouse_cursor_type()" to check cursor position. (get_mouse_cursor_type): set "d->ChangePoint". (POINT_LENGTH, FOCUS_FRAME_OFST, FOCUS_RECT_SIZE): added. (ShowFocusFrame, get_mouse_cursor_type): use "FOCUS_RECT_SIZE" and "FOCUS_FRAME_OFST". (ShowPoints): use "POINT_LENGTH". 2009-01-10 Ito Hiroyuki * src/gtk/x11view.c (do_popup): set sensitivity of popup item related to "VIEWER_POPUP_ITEM_UP" and "VIEWER_POPUP_ITEM_DOWN". (create_popup_menu): add "#error" directive to check array size. 2009-01-09 Ito Hiroyuki * src/gtk/x11menu.h (VIEWER_POPUP_ITEM_NUM): change value from 7 to 9. * src/gtk/x11gui.c (GetColor): remove. * src/gtk/x11menu.c (application): change color of "gray" from "#7f7f7f" to "#aaaaaa". 2009-01-08 Ito Hiroyuki * src/gtk/ogra2x11.c (gtkMakeRuler): use "GDK_INVERT" instead of "GDK_XOR". (gtkRGB): remove. * src/gtk/x11lgndx.c (clear_view): don't call "gdk_window_clear()". (LegendGaussDialogSetup): use "value-changed" signal instead of "change-value". * src/gtk/x11opt.c (DefaultDialogClose): use "sub_window_save_geometry()" to get geometry of a sub window. * src/gtk/x11menu.c (CmReloadWindowConfig): use "sub_window_hide()" to hide sub window. * src/gtk/x11info.c (CmInformationWindow): use "sub_window_show()" and "sub_window_toggle_visibility()". * src/gtk/x11cood.c (CmCoordinateWindow): use "sub_window_show()" and "sub_window_toggle_visibility()". * src/gtk/x11merge.c (CmMergeWindow): use "sub_window_show()" and "sub_window_toggle_visibility()". * src/gtk/x11lgnd.c (CmLegendWindow): use "sub_window_show()" and "sub_window_toggle_visibility()". * src/gtk/x11axis.c (CmAxisWindow): use "sub_window_show()" and "sub_window_toggle_visibility()". * src/gtk/x11file.c (CmFileWindow): use "sub_window_show()" and "sub_window_toggle_visibility()". * src/gtk/gtk_subwin.c (set_geometry): add argument "state" and save window state. (sub_window_save_geometry): save window state. (sub_window_hide, sub_window_show, sub_window_toggle_visibility): added. (cb_del): just call "sub_window_hide()". 2009-01-07 Ito Hiroyuki * src/gtk/x11menu.c (CmReloadWindowConfig): call "sub_window_set_geometry()" after show the window. * src/gtk/x11cood.c (CmCoordinateWindow): call "sub_window_save_geometry()" before hide. (CmCoordinateWindow): call "sub_window_set_geometry()" after call "gtk_widget_show_all()". * src/gtk/x11axis.c (CmAxisWindow): call "sub_window_save_geometry()" before hide. (CmAxisWindow): call "sub_window_set_geometry()" after call "gtk_widget_show_all()". * src/gtk/x11file.c (CmFileWindow): call "sub_window_save_geometry()" before hide. (CmFileWindow): call "sub_window_set_geometry()" after call "gtk_widget_show_all()". * src/gtk/x11lgnd.c (CmLegendWindow): call "sub_window_save_geometry()" before hide. (CmLegendWindow): call "sub_window_set_geometry()" after call "gtk_widget_show_all()". * src/gtk/x11merge.c (CmMergeWindow): call "sub_window_save_geometry()" before hide. (CmMergeWindow): call "sub_window_set_geometry()" after call "gtk_widget_show_all()". * src/gtk/x11info.c (InfoWinUpdate): call "sub_window_save_geometry()" before hide. (InfoWinUpdate): call "sub_window_set_geometry()" after call "gtk_widget_show_all()". * src/gtk/gtk_subwin.c (sub_window_set_geometry) (sub_window_save_geometry): added. (cb_show): call "sub_window_set_geometry()". (cb_del): call "sub_window_save_geometry()". * src/gtk/x11view.c (ShowFocusFrame): use "Menulocal.focus_frame_type" for line attribute of focus frame. * src/gtk/x11opt.c (DefaultDialogClose): save "Menulocal.focus_frame_type". (MiscDialogSetupItem): setpu "d->fftype". (MiscDialogClose): set "Menulocal.focus_frame_type". * src/gtk/ox11menu.h (struct menulocal): add member "focus_frame_type". * src/gtk/ox11menu.c (MenuConfig): add item for "focus_frame_type". (menuinit): initialize "Menulocal.focus_frame_type". * src/gtk/x11menu.c (show_instance_menu_cb) (set_show_instance_menu_cb, struct show_instance_menu_data): added. (create_filemenu, create_axisgridmenu, create_axismenu) (create_mergemenu, create_outputmenu): call "show_instance_menu_cb()". (create_legendmenu): call "g_signal_connect()" for "show" signal. (create_legendsubmenu): return "menu". 2009-01-06 Ito Hiroyuki * src/object.c: variable "looproot" is static. (has_eventloop): added. * src/shell.c (msleep): added. (cmdexec): don't set "WNOHANG" when "has_eventloop()" returns FALSE. (cmdexec): use "msleep()" after call "eventloop()". * src/shellux.c (cmsleep): use "sleep()" when "has_eventloop()" returns FALSE. (cmsleep): use "msleep()" after call "eventloop()". * demo/demo.ngp.in: added. * src/gtk/gtk_subwin.c (sub_window_create): add argument "xpm2" and call "gtk_window_set_icon_list()" when "xpm2" is not NULL. * src/gtk/x11bitmp.c: add "Axiswin48_xpm", "Coordwin48_xpm", "Filewin48_xpm", "Infowin48_xpm", "Legendwin48_xpm" and "Mergewin48_xpm". * src/gtk/x11menu.c (struct command_data): remove member "xbm". * src/gtk/x11bitmp.c: remove xbm data. * src/gtk/x11menu.c (createpixmap, createicon): use "gdk_pixbuf_new_from_xpm_data()" instead of "create_pixbuf_from_xpm()". * src/gtk/gtk_subwin.c (sub_window_create): use "gdk_pixbuf_new_from_xpm_data()" instead of "create_pixbuf_from_xpm()". * src/gtk/x11menu.c (create_pixbuf_from_xpm): remove. 2009-01-04 Ito Hiroyuki * src/terminal.c (my_signal): added. (main): use "my_signal". * src/gtk/main.c: variables "consolecol", "consolerow", "consolefdout", "consolefdin", "consoleac" and "systemname" are static. (interruptconsole, inputynconsole, displaydialogconsole) (displaystatusconsole): these functions are static. * src/osystem.c (systemresize): don't check "data[0]" and "data[1]". 2009-01-03 Ito Hiroyuki * src/gtk/x11menu.c (create_cursor): use "gdk_cursor_new()" instead of "gdk_cursor_new_for_display()". * src/gtk/main.c: remove global variable "Disp". * src/gtk/x11view.c (OpenGC): don't call "gdk_display_get_default()". * src/gtk/ogra2x11.c (gtkflush): added. * src/gtk/ox11menu.c (mxflush): don't call "gdk_display_flush()". * src/gtk/x11view.c (CloseGC, ReopenGC): don't call "gdk_display_flush()". 2009-01-02 Ito Hiroyuki * src/terminal.c (main): use named pipe. (main): use "pause()" to wait termination. * src/gtk/main.c: global variables "terminal", "consolesave", "consolefd[]" and "consolepid" are static. remove unused variable "pipefd". (nallocconsole): use named pipe. (nfreeconsole): use "kill()" to terminate "nterminal". 2008-12-31 Ito Hiroyuki * src/gtk/main.c (putconsole, printfconsole, inputynconsole) (nallocconsole): check return value of "write()". (nfreeconsole): check value of "pipefd". * src/gtk/ogra2x11.c (gtkflush): remove. (gra2gtk): remove field "flush". (gra2gtk): rename field "redraw" to "expose". (gra2gtk): add field "dpix" and "dpiy". (gtkinit): "gtkevpaint()" is connected to "gtklocal->View". (gdkgc_set_arc_mode, gdkgc_set_fill_rule): remove. (gtkinit): show error message when "OpenApplication()" returns FALSE. 2008-12-30 Ito Hiroyuki * demo/demo.ngp: added. * src/gtk/x11view.c (AlignFocusedObj, ViewDelete, ViewCopy) (ViewCross): do nothing when "Menulock" or "GlobalLock" is TRUE. (mouse_up_zoom): minimum value of "zm" is 1000. * src/gtk/x11opt.c (CmOptionSaveNgp): do nothing when "Menulock" or "GlobalLock" is TRUE. * src/gtk/x11graph.c (CmHelpAbout, CmHelpHelp): do nothing when "Menulock" or "GlobalLock" is TRUE. * src/gtk/ogra2x11.c (gtkclear): clear pixmap. (gtk_set_dpi): added. (gra2gtk): add filed "dpi". * src/gtk/x11scrip.c (CmScriptExec): use "menu_lock()" to lock gui. * src/gtk/x11menu.c (menu_lock): add * src/gtk/x11graph.c (CmGraphShell): use "menu_lock()" to lock gui. * src/gtk/x11file.c (select_type, start_editing_type) (start_editing, edited_axis): use "menu_lock()" to lock gui. * src/gtk/x11commn.c (LoadNgpFile): use "menu_lock()" to lock gui. (LoadNgpFile): call "registerevloop()" and "unregisterevloop()" before and after call "_exeobj()" respectively. * src/gtk/x11axis.c (start_editing, edited): use "menu_lock()" to lock gui. * src/gtk/ox11menu.c (mx_print): use "menu_lock()" to lock gui. (gtkmenu): type of "print" field is "NVFUNC". * src/gtk/gtk_subwin.c (start_editing, cancel_editing) (numeric_cb, string_cb): use "menu_lock()" to lock gui. * src/shellux.c (cmsleep): call "sleep()" while waiting timeout. 2008-12-28 Ito Hiroyuki * src/gtk/x11view.c (mouse_up_drag): move object only when "dx != 0 || dy != 0". (mouse_up_change): change object only when "dx != 0 || dy != 0". (mouse_up_zoom): zoom object only when "zm != 0 && zm != 10000". 2008-12-26 Ito Hiroyuki * src/omark.c (marktype): added. (mark): check marktype. * demo/demo5b.ngp (text): maximum value of "i" is 8. * src/gtk/x11view.c (ShowFrameRect, ShowPoints, ShowFocusLine) (ShowFocusFrame): do not call "gdk_gc_set_dashes()". * src/gtk/x11lgndx.c (LegendGaussDialogPaint): do not call "gdk_gc_set_dashes()". * src/gtk/x11dialg.c: remove variables "Dashes" and "DashesNum". * src/gtk/x11view.c (get_mouse_cursor_type): bug fix: fix conditions for "GDK_TOP_RIGHT_CORNER". * src/gtk/ogra2cairo.c (draw_str): create PangoLayoute only when "local->layout" is NULL. (gra2cairo_init): initialize "local->layout". (gra2cairo_free): unref "local->layout" if "local->layout" is not NULL. * src/gtk/ogra2cairo.h (struct gra2cairo_local): add member "layout". 2008-12-25 Ito Hiroyuki * initfile/.Ngraph: add "-gra" option. do not create new "gra" object after evaluate ngp file. 2008-12-22 Ito Hiroyuki * src/gtk/x11view.c (new_merge_obj, new_file_obj) (text_dropped, ViewerWinFileUpdate, Evaluate, Trimming) (AlignFocusedObj, mouse_down_move_data, mouse_up_drag) (mouse_up_zoom, mouse_up_change, create_legend1, create_legend2) (create_legend3, create_legendx, create_single_axis) (create_axis, ViewerEvKeyUp, ViewUpdate, ViewDelete) (reorder_object, ViewCopyAxis, ViewCopy): use "set_graph_modified()". (graph_dropped): use "reset_graph_modified()". * src/gtk/x11merge.c (CmMergeOpen, CmMergeClose, CmMergeUpdate): use "set_graph_modified()". * src/gtk/x11lgnd.c (legend_dialog_close, CmLineDel) (CmLineUpdate, CmCurveDel, CmCurveUpdate, CmPolyDel) (CmPolyUpdate, CmRectDel, CmRectUpdate, CmArcDel, CmArcUpdate) (CmMarkDel, CmMarkUpdate, CmTextDel, CmTextUpdate) (LegendWinLegendUpdate): use "set_graph_modified()". * src/gtk/x11graph.c (CmGraphSwitch, CmGraphPage): use "set_graph_modified()". (CmGraphLoad, CmGraphHistory): use "reset_graph_modified()". * src/gtk/x11file.c (MathDialogList, FileMaskDialogClose) (FileLoadDialogClose, FileDialogCopyAll, CmFileHistory) (CmFileNew, CmFileOpen, CmFileClose, CmFileUpdate) (FileWinFileDelete, file_obj_copy, FileWinFileUpdate) (FileWinFileDraw, select_type, edited_axis): use "set_graph_modified()". * src/gtk/x11dialg.c (SetObjPointsFromText, SetObjFieldFromText) (SetObjFieldFromSpin, SetObjFieldFromToggle) (SetObjFieldFromStyle, SetObjFieldFromList) (SetObjFieldFromFontList, SetObjAxisFieldFromWidget) (_putobj_color): use "set_graph_modified()". * src/gtk/x11commn.c (CheckSave): use "get_graph_modified()". (GraphSave): use "reset_graph_modified()". * src/gtk/x11axis.c (SectionDialogGrid, CmAxisNewFrame) (CmAxisNewSection, CmAxisNewCross, CmAxisNewSingle, CmAxisDel) (CmAxisZoom, CmAxisClear, CmAxisGridNew, CmAxisGridDel) (CmAxisGridUpdate, AxisWinExpose, edited): use "set_graph_modified()". * src/gtk/ox11menu.h: add prototype of "get_graph_modified", "reset_graph_modified" and "set_graph_modified". * src/gtk/ox11menu.c (get_graph_modified, reset_graph_modified) (set_graph_modified): add (menuinit): initialize "modified" field. (gtkmenu): add "modified" field. * src/gtk/gtk_subwin.c (copy, delete, move_top, move_last) (move_up, move_down, modify_numeric, modify_string, hidden) (tree_copy, tree_delete, tree_move_top, tree_move_last) (tree_move_up, tree_move_down, tree_hidden): use "set_graph_modified()". * addin/math.nsc: set +e and check return value of dexpr. * src/gtk/x11dialg.h (struct MiscDialog): add menber "Obj" and "Id". * src/gtk/x11menu.c (init_ngraph_app_struct): initialize "NgraphApp.Interrupt". * src/gtk/x11menu.h (struct NgraphApp): remove unused member "interrupt" and "Changed". * src/gtk/x11opt.c (ViewerDialogClose): call "putobj()" to set "redraw_num" field. (MiscDialog): add argument "struct objlist *obj" and "int id". (CmOptionMisc): add argument to call "MiscDialog()". (MiscDialogClose): call "putobj()" to save "data_head_lines". * src/gtk/ox11menu.c (gtkmenu): type of "redraw_num" field is "NINT". 2008-12-20 Ito Hiroyuki * src/gtk/ox11menu.c (menuerrorlist): add message "cannot open display.". (enum): add error identifier. (menuinit): call "error()" when "OpenApplication()" returns FALSE. * src/gtk/ox11dlg.c (dlginit): call "error()" when "OpenApplication()" returns FALSE. 2008-12-19 Ito Hiroyuki * src/ofile.c (set_data_progress): check if "frac" is greater than 1 or not. 2008-12-18 Ito Hiroyuki * src/gtk/x11menu.c (kill_signal_handler): added. (childhandler): use "sigaction()" instead of "signal()". (AppMainLoop): call "CheckSave()" when "Hide_window" is TRUE. (application): use "sigaction()" instead of "signal()". (application): set signal handler for "SIGINT" signal. * src/gtk/x11graph.c (CmGraphQuit): just call "QuitGUI()". * src/gtk/x11opt.c (MiscDialogSetup): change design of the dialog. * src/gtk/x11view.c (enum ViewerPopupIdn): add "VIEW_UP" and "VIEW_DOWN". (enum object_move_type): added. (create_popup_menu): add up and down object menu item. (ViewerPopupMenu): add case "VIEW_DOWN" and "VIEW_UP". (reorder_object): change argument from int to "enum object_move_type". * src/gtk/ogra2cairo.c (gra2cairo_output): don't draw arc if "w" or "h" is 0 in the case of "code" is 'C'. * src/otext.c (textzoom): minimum value of "pt" is 1. * src/orect.c (rectzoom): minimum value of "width" is 1. * src/omark.c (markzoom): minimum value of "size" and "width" is 1. (markgeometry): use temporal variable "val". * src/olegend.c (legendzoom): minimum value of "width" is 1. * src/oarc.c (arcgeometry): use temporal variable "val". (arczoom): minimum value of "rx", "ry", and "width" is 1. 2008-12-17 Ito Hiroyuki * src/gtk/x11file.c (FileWinFileDraw): check if the graph is changed or not. * src/oline.c (arrowbbox): bug fix: add valiable "num2" and "num2" is used only to calculate positions of an arrow. * src/gtk/x11view.c (Match): return matched instance number. (mouse_up_point): change cursor if any object is focused. * src/gtk/ox11menu.c (gtkmenu): add field "draw". (mxdraw): added. (mx_redraw): call "gdk_window_invalidate_rect()". * src/gtk/x11merge.c (MergeDialogSetup): use "gtk_check_button_new_with_mnemonic()" instead of "gtk_check_button_new_with_label()". * src/gtk/x11gui.c (FileSelectionDialog): use "gtk_check_button_new_with_mnemonic()" instead of "gtk_check_button_new_with_label()". 2008-12-16 Ito Hiroyuki * src/gtk/x11view.c (struct viewer_popup): add member "submenu_item_num". (create_menu): add argument "int n". (create_menu): add separator when "popup[i].title" is NULL. (create_popup_menu): add separator to menus. * src/gtk/x11merge.c (Mlist): add separator. (Mlist): "file" column is editable. * src/gtk/x11lgnd.c (Popup_list): add separator. * src/gtk/x11file.c (Flist): minimum value of "step" is 1. (Popup_list): add separator. * src/gtk/x11axis.c (Popup_list): add separator. (Popup_list): add clear menu item. (axiswin_scale_clear): added. * src/gtk/gtk_subwin.c (sub_win_create_popup_menu): add "GtkSeparatorMenuItem" when "list[i].title" is NULL. 2008-12-15 Ito Hiroyuki * src/gtk/x11menu.c (find_gra2gdk_inst): bug fix: always get "_local" field. 2008-12-12 Ito Hiroyuki * src/gtk/ogra2x11.c (struct gtklocal): remove unused member "autoredraw", "cmap" and "minus_hyphen". (gra2gtk): remove unused field "auto_redraw". * src/gtk/ox11menu.h (struct mxlocal): remove unused member "privatecolor", "cmap", "cdepth", "cairo_save", "minus_hyphen" and "points". (struct menulocal): remove unused member "mousecloick" and "movechild". * src/gtk/x11menu.c (createcommand1, createcommand2): check "Menulocal.showtip". * src/gtk/gtk_liststore.c (create_column): set page_size of GtkAdjustment as 0. 2008-12-09 Ito Hiroyuki * src/shellcm.c (cmecho): add "-n" option. 2008-12-03 Ito Hiroyuki * src/ofile.c (getdata_skip_step): call "memfree(buf)" when "rcode" is 1 or -1. 2008-12-02 Ito Hiroyuki * src/ofile.c (search_mask): added. (getdata_sub2, getdata2, getdataraw): use "search_mask()". (struct f2ddata): add member "mask_index". (opendata, reopendata): initialize "fp->mask_index". 2008-12-01 Ito Hiroyuki * src/gtk/ox11dlg.c * src/gtk/x11gui.c (DialogRadio, DialogCombo, DialogCheck): add label if "caption" is not NULL. (DialogComboEntry): added. * src/gtk/ox11dlg.c (dlgconfirm, dlgmessage, dlgradio, dlgcombo) (dlgcheck): check and use "title" field. (dlginput, dlgradio, dlgcombo, dlgcheck): check and use "caption" field. (dlgcombo_entry): added. (dialog): add "combo_entry", "title" and "caption" field. 2008-11-28 Ito Hiroyuki * src/gtk/ox11dlg.c (dlggetopenfile, dlggetopenfiles) (dlggetsavefile): second argument is used as an initial file name. * src/gtk/x11gui.c (FileSelectionDialog): check "type" before call set name. (fsok): check "filter". * src/gtk/ox11dlg.c (dlgcombo): added. (dialog): add field "combo". (dlggetsavefile, dlggetopenfile): use "memfree()" to free "*(char **)rval". * src/gtk/x11gui.c (DialogCombo): added. * demo/encoding.ngp: use "dialog::combo" instead of "dialog::input". 2008-11-27 Ito Hiroyuki * src/gtk/ox11dlg.c (dlgcheck, dlgradio): added. (dialog): add fields "radio" and "check". now all functions dfined in ox11dlg.c is static. * src/gtk/x11gui.h: add prototype of "DialogCheck" and "DialogRadio" * src/gtk/x11gui.c (DialogCheck, DialogRadio): added. * src/gtk/ox11menu.h (struct menulocal): remove unused member "framex", "framey" and "exwinbackingstore". (struct mxlocal): remove unused member "backingstore". * src/gtk/ox11menu.c (enum menu_config_type) (menu_config_menu_geometry, menu_config_file_geometry) (menu_config_axis_geometry, menu_config_legend_geometry) (menu_config_merge_geometry, menu_config_dialog_geometry) (menu_config_coord_geometry, struct menu_config, MenuConfig) (MenuConfigHash, menu_config_set_four_elements) (menu_config_set_window_geometry, menu_config_set_bgcolor) (menu_config_set_ext_driver, menu_config_set_prn_driver) (menu_config_set_script, set_menu_config_mxlocal): added. (addmenu): initialize "MenuConfigHash". (mgtkloadconfig, mgtkwindowconfig): use "FileConfigHash". 2008-11-26 Ito Hiroyuki * src/ofile.c add global valiable "FileConfigHash". (enum file_config_type, struct file_config, FileConfig): added. (f2dloadconfig): use "FileConfigHash". (addfile): initialize "FileConfigHash". * src/gtk/ox11menu.h (struct mxlocal): remove unused member "fontalias". * src/gtk/x11dialg.c (SetObjFieldFromFontList): free "fontalias". * src/gtk/main.c (get_obj_font_list): use "Gra2cairoConf->font_num". * src/gtk/ogra2cairo.c (free_font_map): added. (create_font_map): added. (loadconfig): use "create_font_map()" (init_conf): initialize "Gra2cairoConf->font_num". (free_fonts_sub): added. (free_conf): use "nhash_each" and "nhash_free" to free font maps. (loadfont): remove second argument and return "struct fontmap *". (loadfont): remove codes related with " Gra2cairoConf->font". (draw_str): change 4th argument. (gra2cairo_output): use "local->loadfont". * src/gtk/ogra2cairo.h: remove definition of "struct fontlocal". (struct fontmap): add member "PangoFontDescription *font". (struct fontmap): add member "struct fontmap *prev". (struct gra2cairo_local): remove member "loadfontf" and add member "loadfont". 2008-11-25 Ito Hiroyuki * src/orect.c (rect): use "oputcolor()" to set value to fields "R2", "G2" and "B2". * src/omark.c (mark): use "oputcolor()" to set value to fields "R2", "G2" and "B2". * src/ofile.c (file2d): use "oputcolor()" to set value to fields "R2", "G2" and "B2". * src/odraw.c (draw): use "oputcolor()" to set value to fields "R", "G" and "B". * src/oroot.h: add prototype of "oputcolor()". * src/oroot.c (oputcolor): added. * src/gtk/x11dialg.c (SetFontListFromObj): use "Gra2cairoConf->fontmap_list_root" instead of "Gra2cairoConf->fontmaproot". (SetFontListFromObj): bug fix: check if "font" is NULL or not. (SetFontListFromObj): default value of "selfont" is now 0. (SetObjFieldFromFontList): use hash to search font alias. (_set_color): check value of "R", "G" and "B". * src/gtk/ogra2cairo.h (struct gra2cairo_config): add member "fontmap_list_root". * src/gtk/ogra2cairo.c: add global valiable "FontFace". (loadconfig): save font configuration to hash. (init_conf): init "FontFace" and "Gra2cairoConf->fontmaproot". (free_conf): use "nhash_free_with_memfree_ptr()" to free fontmap. (loadfont, gra2cairo_charheight): use hash to search font alias settings. * src/gtk/main.c (get_obj_font_list): use "Gra2cairoConf->fontmap_list_root" instead of "Gra2cairoConf->fontmaproot". * src/nhash.h: add prototype of "nhash_num()". * src/nhash.c (count_hash, nhash_num): added. 2008-11-21 Ito Hiroyuki * src/gra.c (GRAcharascent, GRAchardescent, GRAcharwidth): return calculated value when return value of "__exeobj()" is not zero. 2008-11-18 Ito Hiroyuki * initfile/.Ngraph: use new gra to create image file. * driver/ngp2.in: added. * driver/Makefile.am (ngp2): added. (bin_SCRIPTS): added. 2008-11-17 Ito Hiroyuki * src/ogra.c (oGRAopen): put error message when the return value of "GRAinit()" is false. * src/gra.c (GRAinit): don't return "ERROPEN" when "GRAClist[GC]output == -1". 2008-11-16 Ito Hiroyuki * src/nhash.c (create_hash_with_hkey): fix condition (from "lr == -1" to "lr < 0"). * src/gtk/main.c (main): check return value of "newobj()" and "chkobjinst()". 2008-11-12 Ito Hiroyuki * src/gtk/x11graph.c (CmGraphShell): create new instance when there are no instances of "shell" object. * src/shell.h (struct nshell): add member "deleted". * src/shell.c (cmdexecute): exit loop when "nshell->deleted" is true. (newshell): initialize "nshell->deleted". * src/oshell.c (cmddone): if "shlocal->lock" is true, set "shlocal->nshell->deleted" as 1. (cmdshell): exit roop when "nshell->deleted" is true. (cmdshell): call "delshell()" when "nshell->deleted" is true. * src/nhash.c (nhash_del_with_hkey, nhash_del): check "h". 2008-11-10 Ito Hiroyuki * src/gtk/x11file.c (FileDialogType): set sensitivity of parent widgets. * src/gtk/x11opt.c (use_external_toggled): set sensitivity of parent widgets. * src/gtk/x11graph.c (pagelist): fix label string of "Legal L". (PageDialogPage): set sensitivity of parent widgets. 2008-11-07 Ito Hiroyuki * src/gtk/x11menu.c (get_home): added. (createmenu): load accel map when "KEYMAP_FILE" is exist in "NGRAPH_HOME". * src/object.h (struct objlist): add member "fieldnum". * src/object.c (addobject): initialize "objnew->fieldnum". (chkobjfieldnum): return "obj->fieldnum" when value of "obj->fieldnum" is valid. 2008-11-06 Ito Hiroyuki * src/shell.c (saveval): bug fix: "valcur->next" is NULL when "name" is found in nshell->valroot. * src/gtk/x11print.c (DriverDialogClose): change buffer size of a message. * src/shellcm.c (printexp): added. (cmexport, cmset): use hash when "USE_HASH" is true. * src/shell.c (create_vallist, free_vallist): added. (addval, saveval, restoreval, addexp, delval, getval, getexp) (newfunc, addfunc, getfunc, cmdexec, newshell, delshell): use hash when "USE_HASH" is true. * src/object.c (ARGBUFNUM): change value from 10 to 32. * src/nhash.c (free_hash_list): add argument "free_ptr". (free_hash_list): call memfree() when "free_ptr" is true. (nhash_free): add second argument. (nhash_free_with_memfree_ptr, create_hash_with_hkey) (nhash_set_int_with_hkey, nhash_set_ptr_with_hkey) (nhash_get_with_hkey, nhash_get_int_with_hkey) (nhash_del_with_hkey, nhash_get_ptr_with_hkey): added. 2008-10-23 Ito Hiroyuki * src/ofile.c: add macro "check_infinite()". (getdataarray, f2dsettings): use "check_infinite()". 2008-10-22 Ito Hiroyuki * src/ofile.c (f2dinit): initialize "line_join" as "bevel". 2008-10-20 Ito Hiroyuki * src/gtk/main.c (main): call 'init_cmd_tbl()'. * src/shellcm.c (cmtype): use 'check_cpcmd()' and 'check_cmd()'. * src/shell.c (init_cmd_tbl, check_cmd, check_cpcmd): added. (checkcmd): use 'check_cpcmd()'. (cmdexec): use 'check_cmd()'. 2008-10-17 Ito Hiroyuki * src/shell.c (cmdtable): add setting for 'seq'. * src/shellcm.c (cmseq): added. 2008-10-10 Ito Hiroyuki * src/gtk/x11graph.c (set_objlist_btn_state) (set_drawlist_btn_state): added. (SwitchDialogAdd, SwitchDialogInsert, SwitchDialogRemove): call set_drawlist_btn_state() after call SwitchDialogSetupItem(). (SwitchDialogSetup): set_drawlist_btn_state() and set_objlist_btn_state() after call SwitchDialogSetupItem(). (drawlist_sel_cb, objlist_sel_cb): added. * src/gtk/x11dialg.h (struct SwitchDialog): add member "top", "up", "down", "bottom", "del", "ins", "add" and "btn_lock". 2008-10-08 Ito Hiroyuki * src/gtk/x11graph.c (SwitchDialogDown, SwitchDialogUp): added. (SwitchDialogSetup): add 'GO UP' and 'GO DOWN' button. (SwitchDialogLast): select last item after move object. (SwitchDialogTop): select first item after move object. * src/gtk/x11view.c (ViewDelete): set mouse cursor to GDK_LEFT_PTR after delete objects. * src/otext.c (textprintf): add 'G' to the conversion specifier. (textprintf): check format string. * src/gra.c (GRAexpandpf): add 'G' to the conversion specifier. (GRAexpandpf): check format string. 2008-10-07 Ito Hiroyuki * src/gtk/x11scrip.c (CmScriptExec): call gdk_window_invalidate_rect() after execute script. 2008-10-06 Ito Hiroyuki * src/gtk/x11file.c (FileMaskDialogClose): don't check if the line number is already contained in mask. * call arrayuniq_int() after call arrayuniq_int(). * src/object.c (arrayndel): use memmove() instead of memcpy(). (arrayuniq_int): add * src/gtk/x11view.c (Evaluate): call file::modified when add mask points. * src/ofile.c (opendata): initialize fp->num. (closedata): add argument "f2dlocal". (closedata): set fp->datanum to f2dlocal->num. (f2ddone, getminmaxdata, f2ddraw, f2devaluate, f2dopendata) (f2dgetdata, f2dclosedata, f2dopendataraw, f2dgetdataraw) (f2dclosedataraw, f2dstat, f2dstat2, f2dboundings) (f2doutputfile): add argument to closedata(). (get_mtime): added. (f2dstat): use get_mtime() to check mtime. (fitout): remove closedata(). 2008-10-03 Ito Hiroyuki * src/ofile.c (update_mask): added. (file2d): use update_mask() for "mask" field. (getdataraw, getdata2, getdata_sub2): use bsearch_int() to check mask. * src/gtk/x11view.c (Evaluate): add masked line as sorted. * src/object.c (cmp_func_int, arraysort_int): added. * src/mathfn.c (bsearch_int): added. 2008-09-25 Ito Hiroyuki * src/gtk/x11view.c (ViewerEvKeyDown): add case "GDK_Page_Up" and "GDK_Page_Down". (ViewerEvKeyDown): in case of GDK_Down, GDK_Up, GDK_Left and GDK_Right, scroll screen if no objects are focused. 2008-09-24 Ito Hiroyuki * src/ofile.c (getdata_sub2, getdata_skip_step): added. (getdata_sub1): use getdata_sub2(). (struct f2ddata): use enum instead of int for 'type'. 2008-09-23 Ito Hiroyuki * initfile/.Ngraph (check_set): added. * initfile/.Ngraph: use check_set to initialize file object. 2008-09-22 Ito Hiroyuki * src/ofile.c (struct f2ddata): add member 'mtime' and 'interrupt'. (opendata): set mtime to 'fp->mtime'. (check_mtime): added. (getminmaxdata): call check_mtime() and hskipdata(). (f2ddraw, f2devaluate, f2dopendata, f2dstat, f2dstat2) (f2dboundings, f2doutputfile): remove check_mtime() placed before getminmaxdata(). (f2dstat): check if 'f2dlocal->mtime == fp->mtime'. 2008-09-19 Ito Hiroyuki * src/gtk/x11file.c (FileMoveDialogAdd, FileMoveDialogRemove) (FileMoveDialogCopy): set 'd->changed' as 'TRUE'. (FileMoveDialogClose, FileMaskDialogClose): do nothing when 'd->changed' is 'FALSE'. (FileMaskDialog, FileMoveDialog): initialize 'data->changed'. * src/gtk/gtk_widget.h (enum SPIN_BUTTON_TYPE): add 'SPIN_BUTTON_TYPE_NATURAL'. * src/gtk/gtk_widget.c (create_spin_entry_type): add case 'SPIN_BUTTON_TYPE_NATURAL' * src/gtk/x11dialg.h (struct FileMoveDialog) (struct FileMaskDialog): add member 'changed'. * src/gtk/x11view.c (ViewerWinFileUpdate, ViewUpdate): set 'NgraphApp.Changed' as 'TRUE' only when return value is 'IDDELETE'. * src/gtk/x11merge.c (CmMergeClose): set 'NgraphApp.Changed' as 'TRUE' only when return value is 'IDDELETE'. * src/gtk/x11lgnd.c (legend_dialog_close): check if the value is really changed. (CmLineUpdate, CmCurveUpdate, CmPolyUpdate, CmRectUpdate) (CmArcUpdate, CmMarkUpdate, CmTextUpdate, LegendWinLegendUpdate): set 'NgraphApp.Changed' as 'TRUE' only when return value is 'IDDELETE'. * src/gtk/x11file.c (MathDialogList): remove AddMathList(). (MathDialogList): check if the math text is really changed. (FitDialogApply): do not set 'TRUE' to 'NgraphApp.Changed'. (FileLoadDialogClose): check if the ifs text is really changed. (FileDialogCloseCommon): call SetObjAxisFieldFromWidget(). (FileDefDialogClose): remove duplicate settings. * src/gtk/x11axis.c (CmAxisUpdate, CmAxisGridUpdate): do not set 'TRUE' to 'NgraphApp.Changed' when the return value is not IDOK. * src/gtk/x11file.c (FileDialogCloseCommon): use SetObjAxisFieldFromWidget(). * src/gtk/x11axis.c (GridDialogClose, AxisPosDialogClose) (AxisDialogClose): use SetObjAxisFieldFromWidget(). * src/gtk/x11dialg.c (SetObjPointsFromText, SetObjFieldFromText) (SetObjFieldFromSpin, SetObjFieldFromToggle) (SetObjFieldFromStyle, SetObjFieldFromList) (SetObjFieldFromFontList, _putobj_color): check if the value is really changed. (SetObjAxisFieldFromWidget): add * src/gtk/gtk_subwin.c (update): do not set 'TRUE' to 'NgraphApp.Changed'. * src/ofile.c (struct f2dlocal): add member "sumx, sumy, sumxx, sumyy, sumxy, minx, maxx, miny, maxy, num and mtime". (f2dfile, f2dput): set 'f2dlocal->mtime' as 0. (update_field, foputabs, foputge1): added. (getminmaxdata): add argument 'local'. (f2ddraw, f2devaluate, f2dopendata, f2dstat, f2dstat2) (f2dboundings, f2doutputfile): add argument to getminmaxdata(). 2008-09-18 Ito Hiroyuki * src/ofile.c (opendata): check mtime of the file. (file2d): add field "mtime". * src/gtk/x11commn.c (FileAutoScale): return when fail to allocate memory. * src/ofile.c (f2dbounding): return 1 when error is occurred. * src/oaxis.c (axisautoscalefile): check the return value of getobj(). (axisautoscale): return 1 when the return value of axisautoscalefile() is not 0. * src/gtk/x11print.c (CmPrintDataFile): check the return value of exeobj(). * src/gtk/ogra2gtkprint.c (create_cairo): show error message when error is occurred. * src/ofile.c (f2doutputfile): show error message when error is occurred. * src/gtk/x11menu.c (PutStdout, PutStderr): convert string from locale to UTF-8. 2008-09-17 Ito Hiroyuki * src/gtk/x11print.c (draw_gra): check the return value of exeobj(). * src/gtk/x11gui.c (fsok): set NULL to data->ext when filer name is "All". (fsok): call error22() after call gdk_beep(). * src/gtk/ogra2cairofile.c (create_cairo): add argument 'err' and set cairo_status to err. (gra2cairofile_output): call error2() when some error is occurred in the case of 'I' and 'E'. (addgra2cairofile): add error messages. * src/gtk/ogra2cairo.c (check_cairo_status): added. (gra2cairo_flush): call check_cairo_status(). (gra2cairo_output): call check_cairo_status() in the case of 'I' and 'E'. (addgra2cairo): add error messages. * src/ogra.c (oGRAopen): check the return value of GRAinit(). * src/gra.c (GRAreopen, GRAdraw, GRAinit, GRAend): return int. * src/ogra.h (ERROPEN): added. 2008-09-16 Ito Hiroyuki * src/object.c (add_obj_to_hash): added. (addobject): set object name and table position to hash. (chkobject): use hash to search object. (chkobjtblpos): use hash to search table position. (chkobjoffset, chkobjfield): use chkobjtblpos(). * src/object.h (struct objlist): add member 'table_hash'. * src/nhash.h: added. * src/nhash.c: added. 2008-09-12 Ito Hiroyuki * src/gtk/x11opt.c (DefaultDialogClose, ExViewerDialogSetupItem) (ExViewerDialogSetup): add settings for 'use_external'. (use_external_toggled): added. * src/gtk/ox11menu.h (struct menulocal): add member "exwin_use_external". * src/gtk/x11dialg.h (struct ExViewerDialog): add member "use_external". * src/gtk/x11print.c (draw_gra): use 'exeobj()' to call "open" member function. (CmOutputViewer): add argument 'select_file'. (CmOutputViewer): use "menu::print" instead of "gra2gtk". (CmOutputMenu, CmOutputViewerB): add argument to call CmOutputViewer(). (CmOutputPrinterB): now second argument of CmOutputPrinter() is 'FALSE'. * src/shellcm.c (cmset): use memmove(). (cmobject): fix typo ("filed" to "field"). * src/object.c (arrayndel2): use memmove(). 2008-09-11 Ito Hiroyuki * src/gtk/x11print.c (CmOutputPrinter): add argument 'int show_dialog'. (CmOutputPrinter): check 'show_dialog' when call gtk_print_operation_run(). (CmOutputPrinterB): add argument when call CmOutputPrinter(). (init_graobj): added. (CmOutputPrinter, CmOutputDriver, CmOutputViewer) (CmPrintGRAFile, CmOutputImage): use init_graobj(). (draw_gra): added. (draw_page, CmOutputDriver, CmPrintGRAFile, CmOutputImage): use draw_gra(). * src/gtk/x11menu.c (SetPoint, SetZoom, ResetZoom, SetStatusBar) (SetStatusBarXm, ResetStatusBar): check 'NgraphApp.Message' is NULL or not. (SetCursor): check 'NgraphApp.Cursor' is NULL or not. * src/gtk/x11graph.c (CmGraphMenu): add argument when call CmOutputPrinter(). * src/gtk/ox11menu.c (mx_print): added. (gtkmenu): add member "print". * src/gtk/ogra2gtkprint.c (gra2gtkprint): remove member "next". * src/gtk/ogra2cairo.c (gra2cairo): remove member "next". * initfile/.Ngraph: add -p option. 2008-09-10 Ito Hiroyuki * src/gtk/x11print.c (CmPrintGRAFile): set base-name of ngp file as default GRA filename. (get_base_ngp_name): added. (CmPrintGRAFile, CmOutputImage): use get_base_ngp_name(). * src/gtk/ogra2cairo.c (draw_str, gra2cairo_charheight) (gra2cairo_charwidth): check font size. * src/gtk/x11view.c (new_merge_obj, new_file_obj): added. (data_dropped): add argument 'file_type'. use new_file_obj() and new_merge_obj(). * src/gtk/x11view.h: add prototype of data_dropped(). * src/gtk/x11merge.c: include "x11view.h" (drag_drop_cb, init_dnd): added. (CmMergeWindow): call init_dnd(). * src/gtk/x11file.c (drag_drop_cb, init_dnd): added. (CmFileWindow): call init_dnd(). * src/gtk/x11menu.c (createcommand2): set signal handler for "button-press-event". * src/gtk/x11view.h: add prototype of CmViewerButtonPressed(). * src/gtk/x11view.c: add 'KeepMouseMode'. (ViewerEvLButtonDblClk): call gtk_toggle_tool_button_set_active() when 'KeepMouseMode == FALSE'. (CmViewerButtonPressed): added. 2008-09-08 Ito Hiroyuki * src/gtk/x11view.c (Focus): remove 'gtk_toggle_tool_button_set_active()'. (check_focused_obj): now return index of found item. (ShowPoints): draw arc when 'd->Mode == ArcB'. (calc_snap_angle, calc_integer_ratio, SQRT3): added. (ViewerEvMouseMove): call calc_snap_angle() or calc_integer_ratio(). * src/gtk/gtk_subwin.c (ev_key_down_tree): add 'break;' in the case of 'GDK_space'. (ev_key_down_tree): return 'FALSE' when shift key is pressed in the case of 'GDK_Return'. 2008-09-05 Ito Hiroyuki * src/gtk/x11view.c (mouse_up_point): don't change cursor. (get_mouse_cursor_type): added. (set_mouse_cursor_hover): use get_mouse_cursor_type(). * src/gtk/x11menu.c (Command2_data): remove MoveB. 2008-09-04 Ito Hiroyuki * src/gtk/x11file.c (POPUP_ITEM_FIT): added. (popup_show_cb): check if the object associate with fit. * src/gtk/x11view.c (ViewerWinFileUpdate): call ProgressDialogCreate() before evaluate. (range_increment): added. (scrollbar_scroll_cb, ViewerEvScroll): use range_increment(). (ViewerEvMouseMove): scroll when mouse position is out of the widget. (AlignFocusedObj): align to the paper when number of focused object is 1. (do_popup): set sensitivity of d->popup_item[3] as TRUE when 'num > 0'. 2008-09-01 Ito Hiroyuki * src/gtk/gtk_subwin.c (start_editing): use snprintf() when 'list->type == G_TYPE_STRING' and 'chkobjfieldtype(d->obj, list->name) == NDOUBLE' to set value. (modify_string): check if the value is really modified. 2008-08-29 Ito Hiroyuki * src/gtk/gtk_subwin.c (ev_button_down, ev_button_down_tree): check 'event->time' to treat double click as double click. 2008-08-28 Ito Hiroyuki * src/gtk/x11lgnd.c (legend_dialog_close): bug fix: call SetObjPointsFromText(). 2008-08-27 Ito Hiroyuki * src/gtk/x11lgnd.c (legend_dialog_close): bug fix: call SetObjFieldFromStyle(). * src/gtk/x11opt.c (CmOptionViewer): uncomment 'ChangeDPI(TRUE);'. * src/gtk/x11dialg.h (struct MiscDialog): add 'data_head_lines'. * src/gtk/ox11menu.h (struct mxlocal): add 'data_head_lines'. * src/gtk/x11file.c (FileDialogSetup): use Mxlocal->data_head_lines. * src/gtk/ox11menu.c (mgtkloadconfig, menuinit): add settings for 'Mxlocal->data_head_lines'. (mx_data_head_lines): added. (gtkmenu): add 'data_head_lines'. * src/gtk/x11opt.c (DefaultDialogClose, MiscDialogSetupItem) (MiscDialogSetup, MiscDialogClose): add settings for 'Mxlocal->data_head_lines'. 2008-08-26 Ito Hiroyuki * src/ofile.c (f2dhead): check the return value of nstrnew() is NULL or not. * src/gtk/x11gui.c (dialog_key_down_cb): return FALSE when 'w' key is pressed without control key. * src/gtk/gtk_subwin.c (ev_sub_win_key_down): return FALSE when 'w' key is pressed without control key. * src/gtk/ogra2x11.c (ev_key_down): return FALSE when 'w' key is pressed without control key. * src/ofile.c (f2dhead): add line number. * src/ioutil.c (fgetnline): use fgetline(). 2008-08-25 Ito Hiroyuki * src/ofile.c (f2dhead): change length of 'buf' from 128 to 256. (f2dhead): use 'sizeof()' instead of immediate. * src/gtk/x11file.c (FileDialogSetup): change value of 'line' from 10 to 20. 2008-08-22 Ito Hiroyuki * src/ofile.c (struct f2ddata): add ifs_buf. (check_ifs_init, CHECK_IFS, CHECK_REMARK): added. (opendata): call check_ifs_init(). (getdataarray, getdata_sub1, getdata2, getdataraw): use CHECK_REMARK and CHECK_IFS instead of strchr(). * src/ioutil.c: added. (char_type_buf_init): added. (fgetline): use is_line_sep() when EOF == -1. * src/gtk/x11file.c (FileMoveDialogAdd): check if x and y are NaN or INF. * src/gtk/x11dialg.c (SetObjPointsFromText): check if d is NaN or INF. * src/gtk/gtk_subwin.c (numeric_cb): check if val is NaN or INF. * src/ofile.c (f2dsettings): check if f1, a2 and f3 are NaN or INF. 2008-08-21 Ito Hiroyuki * src/ofile.c (struct f2ddata_buf): added. (struct f2ddata, opendata, closedata, getdata_sub1, getdata): use 'struct f2ddata_buf'. * src/gra.c (GRAboundingbox): consider line width in the case 'R'. * src/ofile.c (reopendata): set fp->prev_datanum. (getdataraw): call set_data_progress(). (getdataraw): increment fp->datanum in loop. * src/ioutil.c (fgetline): bug fix: increment 'i' only after nstraddchar(). (fgetline) now '\r' is treated as line break. 2008-08-20 Ito Hiroyuki * src/ofile.c (getdataarray): bug fix: check if val is NaN or INF. * src/ioutil.c (fgetline): use switch instead of if. * src/ofile.c (getdata_sub1): added. (getdata): use getdata_sub1(). (getdata): use memmove() instead of loop. * src/axis.c (getaxispositionfirst): use alocal->inc instead of alocal->dposm to determine alocal->dposs. 2008-08-19 Ito Hiroyuki * src/gra.c (GRAboundingbox): now ch is int. (GRAboundingbox): first argument of Gracharwidth is '(ch & 0xff)'. 2008-08-18 Ito Hiroyuki * src/gtk/x11file.c (select_type): set selected item to d->select. * src/gtk/x11menu.c (add_underscore): added. (show_graphmwnu_cb, show_filemwnu_cb): call add_underscore(). 2008-08-15 Ito Hiroyuki * src/gtk/x11menu.c: added. (create_graphmenu, create_axismenu): add accelerator. (create_toggle_menu_item): added. (create_windowmenu): use create_toggle_menu_item(). * src/gtk/x11menu.h: added. * src/gtk/gtk_subwin.c (sub_window_create): add accel group to sub window. * src/gtk/x11view.c (AddList): bug fix: call GRAdellist() when inst2 == NULL. 2008-08-14 Ito Hiroyuki * src/gtk/x11opt.c (DefaultDialogClose): check NgraphApp.FileWin.Win->window etc. 2008-08-11 Ito Hiroyuki * src/gtk/x11menu.c (MARK_PIX_SIZE): change mark size from 28 to 24. * src/gtk/x11file.c (create_type_combo_box): added. (select_type, start_editing_type): modified for tree model. * src/gtk/gtk_liststore.c (start_editing_obj): use GtkTreeModel for combo_box. 2008-08-08 Ito Hiroyuki * src/gtk/gtk_liststore.c (start_editing_obj): added. (create_column): set some properties to GtkCellRenderer. set start_editing virtual function. * src/gtk/gtk_subwin.c (set_obj_cell_renderer_cb): added. * src/gtk/x11file.c (select_type, start_editing_type): added. (CmFileWindow): call set_obj_cell_renderer_cb. 2008-08-06 Ito Hiroyuki * initfile/.Ngraph: add save_image(). add -png, -ps, -eps, -pdf and -svg option. * src/gtk/main.c (inputynconsole): add message ' [yn] '. use strchr() to check input character. read while '\n' appear. 2008-08-05 Ito Hiroyuki * src/gtk/ox11menu.h (struct menulocal): add member 'expandtofullpath' * src/gtk/ox11menu.c (mgtkloadconfig): add condition for 'expand_to_fullpath' (menuinit): initialize Menulocal.expandtofullpath. * src/gtk/x11commn.c (ToFullPath): added. (LoadNgpFile): call ToFullPath() when 'Menulocal.expandtofullpath && (!ignorepath)' * src/ioutil.c (getfullpath): argument of changefilename() is 'name'. * src/object.c (memrealloc): add sleep(). * src/shellux.c (cmtest): add condition '(strcmp2(argv[i+1],"=")!=0) && (strcmp2(argv[i+1],"!=")!=0)' * src/jnstring.h: added. * src/jnstring.c: added. * src/ngraph.h (ALIGNSIZE): added. 2008-07-24 Ito Hiroyuki * src/gtk/x11file.c (get_axis_obj_str): added. (file_list_set_val): use get_axis_obj_str(). (start_editing): check axis object. 2008-07-23 Ito Hiroyuki * src/gtk/x11file.c (select_axis, select_axis_x, select_axis_y): added. (start_editing): use "changed" signal. * src/gtk/x11axis.c (select_type): added. (start_editing): use "changed" signal. 2008-07-22 Ito Hiroyuki * src/gtk/x11file.c (edited_y, edited_x, edited_axis) (start_editing): added. (CmFileWindow): call set_combo_cell_renderer_cb(). * src/gtk/x11axis.c (start_editing, edited): added. (CmAxisWindow): call set_combo_cell_renderer_cb(). * src/gtk/gtk_subwin.c (set_combo_cell_renderer_cb): added. * src/gtk/gtk_liststore.c (create_column): add case G_TYPE_ENUM. (create_tree_view): column type of G_TYPE_ENUM is string. * src/gtk/x11menu.c: add global variables RecentGraph and RecentData. (create_recent_graph_menu, create_recent_data_menu): added. (create_graphmenu): call create_recent_graph_menu. (create_filemenu): call create_recent_data_menu. * src/gtk/gtk_subwin.c (modify_numeric, modify_string): check the value is modified or not. (ev_button_down, ev_button_down_tree): return FALSE when locked. 2008-07-18 Ito Hiroyuki * src/gtk/x11dialg.c (search_id): added. (SelectDialogSetup, SelectDialogSetup): add id column. check id column insteadof index. * src/gtk/x11lgnd.c (LegendLineCB, LegendRectCB, LegendArcCB) (LegendTextCB): remove id. * src/gtk/x11file.c (FitCB): remove id. * src/gtk/x11commn.c (FileCB): remove id. * src/gtk/x11axis.c (AxisDialogFile): always get scale type. (AxisDialogSetup): bug fix: widget type of Scale setting is GtkComboBox. (AxisCB, GridCB): remove id. * src/gtk/x11file.c (MathDialogSetup, MathDialogList): now math dialog can be sorted. * src/gtk/gtk_liststore.c (list_store_path_get_int): added. * src/gtk/x11file.c (FileMoveDialogSetup, FileMaskDialogSetup): now lists of masked and moved data are sorted by line number. * src/gtk/gtk_liststore.c (list_store_set_sort_column) (list_store_set_sort_all): added. 2008-07-17 Ito Hiroyuki * src/gtk/ogra2cairo.c (gra2cairo_output): in the case 'V' call cairo_reset_clip() before clip rectangle and restore clip region when local->region is not NULL. * src/shell.c (checkcmd): bug fix: initialize prmcur->prmno as NULL when prmcur->str[1] == ';'. (checkcmd): fix indent. * src/gtk/ogra2x11.c (gtkinit): free gra2cairo_local when failed. * src/gtk/ogra2gdk.c (g2g_init): free gra2cairo_local when failed. * src/gtk/ox11menu.c (menuinit): free gra2cairo_local when failed. * src/gtk/ogra2cairo.c (gra2cairo_free): added. (gra2cairo_init): call free_conf() only when Instance == 0. * src/gtk/ogra2cairofile.c (gra2cairofile_init): free gra2cairo_local when failed. 2008-07-16 Ito Hiroyuki * src/gtk/gtk_subwin.c (start_editing, cancel_editing) (numeric_cb, string_cb): added. (set_cell_renderer_cb): set callback functions when type is G_TYPE_DOUBLE, G_TYPE_INT or G_TYPE_STRING. (modify_numeric, modify_string): added. * src/gtk/gtk_liststore.h (_list_store): add min, max, inc and page. * src/gtk/gtk_liststore.c (create_column): set "editable", "adjustment", "digits" and "user-data" properties to renderer when editable is TRUE. * src/ofile.c (closedata): call set_data_progress(); * src/gtk/x11dialg.c (SetObjFieldFromWidget) (SetWidgetFromObjField): added. 2008-07-15 Ito Hiroyuki * src/gtk/x11dialg.c (SetTextFromObjPoints) (SetObjPointsFromText): added. (SetObjFieldFromStyle): call SetObjPointsFromText() to set value. (SetStyleFromObjField): call SetTextFromObjPoints() to set value. * src/gtk/x11axis.c (Alist): type of 'x', 'y', 'dir' and 'len' are G_TYPE_DOUBLE. (axis_list_set_val): now position and length are shown in mm. direction is shown in degree. * src/gtk/x11file.c (Flist): type of 'size' and 'width' are G_TYPE_DOUBLE. (file_list_set_val): now size and width are shown in mm. * src/gtk/x11merge.c (Mlist): type of 'tm', 'lm' and 'zm' are G_TYPE_DOUBLE. (merge_list_set_val): now margin and zoom are shown in mm and percent respectively. * src/gtk/x11cood.c (CoordWinSetCoord): now position is shown in mm. * src/gtk/x11menu.c (SetPoint): now position is shown in mm. * src/gtk/x11lgnd.c (Llist): type of 'x' and 'y' are G_TYPE_DOUBLE. (LegendLineCB, LegendRectCB, LegendArcCB): now position is shown in mm. (legend_dialog_setup_item): use SetTextFromObjPoints() for "points" property. (legend_dialog_close): use SetObjPointsFromText() for "points" property. (legend_list_set_val): now position and size are shown in mm. * src/gtk/gtk_liststore.c (tree_store_set_double) (list_store_set_double): set formated string. (create_tree_view): set G_TYPE_STRING when type is G_TYPE_DOUBLE. 2008-07-14 Ito Hiroyuki * src/ofile.c (curveoutfile): remove condition "getposition2(fp, fp->axtype, fp->aytype, &(fp->dx), &(fp->dy)) == 0" (opendata): bug fix: initialize some variables when "axis" is FALSE. * src/gtk/x11gui.c (fsok): bug fix: : add braces as "(n + 1)" in argument of malloc. * src/orect.c (rectzoom): check if x1 and y1 are equal to x2 and y2 respectively. * src/oaxis.c (axisput): use TEXT_SIZE_MIN macro. * src/oarc.c (arczoom): check value of rx and ry. * src/otext.c (textgeometry): use macro; TEXT_OBJ_SCRIPT_SIZE_MIN, TEXT_OBJ_SCRIPT_SIZE_MAX and TEXT_SIZE_MIN. * src/gtk/x11print.c (OutputDataDialogSetupItem) (OutputDataDialogClose): use GtkSpinButton. * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup) (MiscDialogClose, ExViewerDialogSetupItem, ExViewerDialogSetup) (ExViewerDialogClose, ViewerDialogSetupItem, ViewerDialogSetup) (ViewerDialogClose): use GtkSpinButton. * src/gtk/x11merge.c (MergeDialogSetup): use GtkSpinButton. * src/gtk/x11lgndx.c (LegendGaussDialogSetup): use GtkSpinButton. * src/gtk/x11lgnd.c (legend_dialog_setup_item) (legend_dialog_close, width_setup, miter_setup) (LegendRectDialogSetup, LegendArcDialogSetup) (LegendMarkDialogSetup, legend_dialog_setup_sub) (LegendTextDialogSetup): use GtkSpinButton. * src/gtk/x11graph.c (PageDialogSetupItem, PageDialogPage) (PageDialogSetup, PageDialogClose): use GtkSpinButton. * src/gtk/x11file.c (FitDialogSetup, FileMaskDialogAdd) (FileLoadDialogSetup, FileMathDialogSetup) (FileDialogSetupCommon): use GtkSpinButton. * src/gtk/x11dialg.c (SetObjFieldFromSpin, SetSpinFromObjField): use GtkSpinButton. * src/gtk/x11axis.c (gauge_syle_setup, SectionDialogSetupItem) (SectionDialogSetup, SectionDialogClose, CrossDialogSetupItem) (CrossDialogSetup, CrossDialogClose, ZoomDialogSetup) (ZoomDialogClose, AxisBaseDialogSetup, AxisPosDialogSetup) (NumDialogSetup, AxisFontDialogSetup, AxisDialogSetup): use GtkSpinButton. * src/gtk/gtk_widget.c: added. 2008-07-11 Ito Hiroyuki * src/gtk/gtk_liststore.c (create_column): set "mode" attribute as GTK_CELL_RENDERER_MODE_ACTIVATABLE when the column is editable. * src/gtk/gtk_subwin.c (set_cell_renderer_cb, toggle_cb): added. (list_sub_window_create, tree_sub_window_create): call set_cell_renderer_cb(). 2008-07-05 Ito Hiroyuki * src/gtk/x11file.c (FileMoveDialogSetup, FileMaskDialogSetup): add copy button. (FileMaskDialogClose, FileMoveDialogClose): add case for IDCOPY. (FileMoveDialogCopy, FileMaskDialogCopy): added. 2008-07-04 Ito Hiroyuki * src/gtk/x11menu.c (SetCaption): free 'buf'. * src/ogra.c (set_progress_val): initialize progress bar when 'i == 0'. * src/gtk/ogra2cairo.c (gra2cairo_done): free 'local->fontalias'. * src/gtk/x11file.c (file_list_set_val, FileDialogSetupItem): free 'valstr'. * src/gtk/ogra2cairo.c (free_conf): free fontmap. * src/gtk/gtk_entry_completion.c (add_completion): free 'buf'. * src/gtk/ogra2gtkprint.c (create_cairo): remove cairo_destroy(). (gra2gtkprint_done): set NULL to local->cairo. * src/gtk/x11graph.c (PageDialogPage): width and height entry is sensitive only when paper type is custom. * src/gtk/ox11menu.h (struct menulocal): add PaperLandscape, PaperId and PaperName. (enum paper_id): added. * src/gtk/x11graph.c (PageDialogClose): check paper size. (set_paper_type): added. (struct pagelisttype, pagelist): add name, landscape and id; * src/gtk/x11commn.c (CheckPage): bug fix: remove redundant return. 2008-07-03 Ito Hiroyuki * src/gtk/x11graph.c (CmGraphMenu): call CmOutputPrinter() when sel == MenuIdOutputDriver. * src/gtk/ogra2gtkprint.c: added. * src/gtk/x11print.c (CmOutputPrinter, draw_page) (struct print_obj): added. add global variable PrintSettings. * src/gtk/ogra2cairo.c (gra2cairo_output): save current point after call cairo_stroke() for graphic command 'T'. * src/ofile.c (fitout): fitout is now static. * src/ofit.c (fitpoly): bug fix: write information in 'buf' instead of 'equation'. * src/gtk/x11file.c (FitDialogSetupItem, FitDialogSave) (FitDialogApply): bug fix: poly_dimension is active item + 1. * src/gtk/x11commn.c (GetDrawFiles): added. * src/gtk/x11print.c (CmPrintDataFile): now CmPrintDataFile() can output multi data files into one file. * src/gtk/x11commn.c (SetFileHidden): add arraydel(&ifarray) when return value of DialogExecute() is not IDOK. * src/ofile.c (f2doutputfile): add append mode. (file2d): change arguments of "output_file" from "si" to "sib". 2008-07-02 Ito Hiroyuki * src/gtk/x11view.c (create_pix): add settings for antialias. (OpenGC, ReopenGC): add settings for pixel_dot_x and pixel_dot_y. * src/gtk/x11opt.c (DefaultDialogClose, ViewerDialogSetupItem) (ViewerDialogSetup, ViewerDialogClose): add settings for antialias. * src/gtk/ox11menu.c (mgtkloadconfig, menuinit): add settings for antialias. (mxdpi): add settings for pixel_dot_x and pixel_dot_y. (mxd2p, mxd2px, mxd2py, mxp2d): use pixel_dot_x and pixel_dot_y. remove gtk_output(). * src/gtk/ogra2x11.c (gtkinit): add settings for dpix and dpiy. (dot2pixel): use pixel_dot_x. * src/gtk/ogra2gdk.c (g2g_init): add settings for dpix and dpiy. * src/gtk/ogra2cairofile.c (gra2cairofile_init): add settings for dpix and dpiy * src/gtk/ogra2cairo.c (gra2cairo_antialias_type) (gra2cairo_set_antialias, set_antialias): added. (gra2cairo_output, gra2cairo_init): add antialias settings. (gra2cairo): add member "antialias", "dpix" and "dpiy". (mxp2dw, mxd2pw, mxp2dh, mxd2ph, mxd2px, mxd2py): added. (gra2cairo_init, gra2cairo_set_dpi): add settings for pixel_dot_x and pixel_dot_y. (gra2cairo_set_dpi_x, gra2cairo_set_dpi_y): added. (draw_str, gra2cairo_output): use mxp2dw(), mxd2pw(), mxp2dh(), mxd2ph(), mxd2px() and mxd2py(). * src/gtk/ogra2cairo.h (struct gra2cairo_local): add antialias, pixel_dot_x and pixel_dot_y. 2008-07-01 Ito Hiroyuki * src/gtk/x11menu.c (create_image_outputmenu): added. (create_outputmenu): add "Export image" sub menu. * src/gtk/x11menu.h (enum MenuID): add MenuId MenuIdOutputPSFile, MenuIdOutputEPSFile, MenuIdOutputPDFFile, MenuIdOutputPNGFile and MenuIdOutputSVGFile. * src/gtk/x11print.c (OutputImageDialogSetupItem) (OutputImageDialogSetup, OutputImageDialogClose) (OutputImageDialog, CmOutputImage): added. (CmOutputMenu): add case MenuIdOutputPSFile, MenuIdOutputEPSFile, MenuIdOutputPDFFile, MenuIdOutputPNGFile and MenuIdOutputSVGFile. 2008-06-30 Ito Hiroyuki * src/gtk/x11menu.c (MARK_PIX_SIZE): change mark pix size. * src/gra.c (GRAmark): fix size of triangle. * src/gtk/ox11menu.c: remove mxsaveGC() and mxrestoreGC(). * src/gtk/x11file.c (draw_type_pixbuf): use gra2gdk. * src/gtk/x11lgndx.c (LegendGaussDialogPaint): use gra2gdk. * src/gtk/x11menu.c (create_markpixmap): use gra2gdk. (find_gra2gdk_inst): added. * src/gtk/x11view.c (ViewerWinSetup): call OpenGRA() after OpenGC(). * src/gtk/Makefile.am (libngraph_la_SOURCES): add ogra2cairo.c, ogra2cairo.h, ogra2cairofile.c, ogra2x11.h, ogra2gdk.c and ogra2gdk.h 2008-06-27 Ito Hiroyuki * src/gtk/ogra2x11.c (gtkinit): gtkclose() is now called when "delete-event" signal is emitted. object 'gra2gtk' is now child of 'gra2cairo'. 2008-06-25 Ito Hiroyuki * src/gtk/ogra2cairofile.c: added. * src/gtk/ogra2cairo.c: added. 2008-06-22 Ito Hiroyuki * src/gtk/x11merge.c: remove ev_key_down(). (CmMergeWindow): remove setting for d->ev_key. * src/gtk/x11axis.c: remove ev_key_down(). (CmAxisWindow): remove setting for d->ev_key. * src/gtk/strconv.c (ascii2greece): bug fix: dlen must be "slen * 2 + 1". (str2utf8): bug fix: dlen must be "slen * 6 + 1". * src/gtk/ogra2x11.c (gtk_charwidth, gtk_charheight): save and restore fontdir, fontsin and fontcos and set fontdir as 0 before call draw_str(). * src/gtk/gtk_subwin.c (ev_key_down): add case for "GDK_SPACE" * src/gtk/gtk_liststore.c (create_tree_view): bug fix: add braces as "(n + cnum)" in argument of malloc. 2008-06-19 Ito Hiroyuki * src/gtk/x11menu.c (detach_toolbar, create_toolbar): added. (setupwindow): use create_toolbar(). * src/gtk/x11view.c (reorder_object): added. (ViewTop, ViewLast): use reorder_object(). (ViewCopyAxis): added. (ViewCopy): use ViewCopyAxis(). 2008-06-18 Ito Hiroyuki * src/gtk/x11commn.c (ProgressDialogCreate): set cursor to GDK_WATCH. (ProgressDialogFinalize): restore cursor. * src/gtk/x11menu.c (GetCursor): added. * src/gtk/x11merge.c (ev_key_down): added. * src/gtk/x11view.c (Focus): now merge object can be focused. 2008-06-17 Ito Hiroyuki * src/gtk/x11view.c (mouse_down_move_data) (mouse_down_set_points, mouse_down_zoom): added. (ViewerEvLButtonDown): use mouse_down_move_data(), mouse_down_set_points() and mouse_down_zoom(). (ViewerEvRButtonDown): use mouse_down_zoom(); (ViewerEvRButtonDown): cancel make arc, rectangle, gauss and axis when Button3 is pressed. (create_axis, create_single_axis, create_legendx) (create_legend3, create_legend2, create_legend1): added. (ViewerEvLButtonDblClk): use create_axis(), create_single_axis(), create_legendx(), create_legend3(), create_legend2() and create_legend1(). (clear_focus_obj, UnFocus): add argument "int init_cursor". 2008-06-16 Ito Hiroyuki * src/gtk/x11view.c (add_focus_obj, clear_focus_obj) (mouse_down_point, mouse_down_move, mouse_up_point) (set_mouse_cursor_hover, mouse_up_drag, mouse_up_zoom) (mouse_up_change, mouse_up_lgend1, mouse_up_lgend2): added. (Match, Focus): use add_focus_obj(); (ViewerWinUpdate, UnFocus, ViewUpdate): use clear_focus_obj(); (ViewerEvLButtonUp): use mouse_down_point(), mouse_up_drag(), mouse_up_zoom() and mouse_up_change(). * src/gtk/x11menu.c (Command2_data): add move tool button. (createcommand2): default sensitivity of the MoveButton is false. (SetMoveButtonState): added. (SetCursor): add GDK_FLEUR. * src/gtk/x11view.c (enum ViewerPopupIdn): add alignment id. (struct viewer_popup): add member 'struct viewer_popup *submenu' (create_menu): added. (create_popup_menu): add alignment submenu. use create_menu. (AlignFocusedObj): added. (do_popup): add codes for alignment submenu. (check_focused_obj): added. (Focus): add argument "int add". add codes for multiple focus. (ViewerPopupMenu): call AlignFocusedObj(). * src/gtk/x11axis.c (ev_key_down): check 'e->state & GDK_SHIFT_MASK' when e->keyval == GDK_space. * src/gtk/gtk_subwin.c (focus, tree_focus): add argument "int add". (ev_key_down_tree): check 'e->state & GDK_SHIFT_MASK' when e->keyval == GDK_space. (list_sub_window_add_focus, tree_sub_window_add_focus): added. 2008-06-13 Ito Hiroyuki * src/gtk/x11lgnd.c (legend_dialog_close) (legend_dialog_setup_item, LegendRectDialogSetup): use width and height instaed of x2 and y2 for legend rectangle. * src/gtk/x11view.c (swapint): added. (ViewerEvLButtonDblClk): x2 and y2 are always greater than x1 and y2 respectivery. 2008-06-12 Ito Hiroyuki * src/gtk/x11view.c (EvalDialogSetup): now "X" and "Y" is string. (EvalDialogSetupItem): add string converted from double. * src/gtk/x11file.c (FileMoveDialogClose): x and y is converted from string to double. (FileMoveDialogSetup): now "X" and "Y" is string. (FileMoveDialogAdd): add string converted from double. * src/omerge.c (mergeinit): initialize "line_num". * src/ogra.c (set_progress_val): added. (oGRAdraw): use set_progress_val(). (oGRAdrawparent): call set_progress_val(). * src/omerge.c (mergeredraw): check redraw_num. * src/gra.c (_GRAredraw): set "redraw_flag" as FALSE when redrawf is zero. (GRAredraw2, GRAredraw, _GRAredraw): replace redrawf to redraw_num. * src/omerge.c (merge): add "line_num" * src/oaxis.c (axisautoscalefile): display "group" property when the property is not NULL. * src/gtk/x11axis.c (axis_list_set_val): get "group" instead of "name". * src/gtk/ox11menu.c (mx_redraw): remove set_draw_lock(). * src/gtk/x11view.c (AddInvalidateRect, Match): remove set_draw_lock(). * src/gtk/x11menu.c (ChkInterrupt): do gtk_main_iteration_do() only when DrawLock == DrawLockDraw. * src/gtk/ox11menu.c (mx_output): bug fix: add 360 to Mxlocal->fontdir when Mxlocal->fontdir is negative. * configure.in: required version of GTK+ is greater than 2.12 because gtk_tool_item_set_tooltip_text() is available since 2.12. 2008-06-10 Ito Hiroyuki * src/gtk/x11commn.c (FreeConsole): restore ninterrupt. * driver/gra2wmf.c (draw, getboundingbox): bug fix: reported at http://www2e.biglobe.ne.jp/~isizaka/bbs_old/light.cgi [670]. * src/gtk/ox11menu.c (mx_get_focused): added. (gtkmenu): add "focused". * src/gtk/x11dialg.c (CopyDialogSetup, SelectDialogSetup): select item if there is only one item. * src/gtk/x11view.c (Match, AddInvalidateRect): add set_draw_lock(). * src/gtk/x11menu.c (save_hist): bug fix: remove redundant return. * src/gtk/x11opt.c (ViewerDialogSetupItem, ViewerDialogSetup) (ViewerDialogClose): add settings for "redraw_num". * src/gtk/ox11menu.c (menuinit): set "redraw_num". (mxredraw_num): added. (mx_redraw): check Mxlocal->redrawf_num. (mgtkloadconfig): get Mxlocal->redrawf_num from init file. (menuinit): initialize Mxlocal->redrawf_num. (gtkmenu): add "redraw_num" * src/odraw.c (draw): add "redraw_num". * src/gra.c (_GRAredraw): set "redraw_num". * src/ofile.c (f2dredraw): check "redraw_num". * src/gtk/x11commn.c (ProgressDialogFinalize) (ProgressDialogCreate): call set_draw_lock(). * src/gtk/x11menu.c (ChkInterrupt): check DrawLock. (set_draw_lock): added. add DrawLock. * src/gtk/ox11menu.c (mx_redraw): call set_draw_lock(). * src/gtk/x11commn.c: add ProgressBar2. * src/ogra.c (oGRAdraw): call set_progress(). * src/gtk/x11print.c (CmOutputDriver, CmOutputViewer) (CmPrintGRAFile, CmPrintDataFile): call ProgressDialogCreate() and ProgressDialogFinalize(). 2008-06-09 Ito Hiroyuki * src/ofit.c (fituser): call set_progress() instead of ndisplaystatus(). * src/ioutil.c add ShowProgressFunc, set_progress_func() and set_progress(). * src/ofile.c add set_data_progress(). (getdata): call set_data_progress(). * src/gtk/x11menu.c (Command1_data): remove do_interrupt. (application): remove snooper_id, gtk_key_snooper_remove() and gtk_key_snooper_install(). * src/gtk/x11commn.c add global variables ProgressBar and ProgressDiaog. add ProgressDialogCreate(), ProgressDialogFinalize() and ProgressDialogSetTitle(). * src/gtk/x11view.c (Draw): call ProgressDialogCreate(), ProgressDialogFinalize() and ProgressDialogSetTitle(). * src/object.c (addobject): add alignment for 64bit architecture. 2008-06-08 Ito Hiroyuki * src/gtk/x11view.c (ViewerWinFileUpdate): bug fix: reported at http://www2e.biglobe.ne.jp/~isizaka/bbs_old/light.cgi [802]-[805]. (ViewerEvLButtonDown, ViewerEvRButtonDown): use nround() when change dpi. (ViewerEvScroll): bug fix: d->VScroll to d->HScroll. 2008-06-07 Ito Hiroyuki * src/gtk/main.c (main): add g_set_application_name(). * src/gtk/x11menu.c (application): remove g_set_application_name(). * src/gtk/x11gui.c (FileSelectionDialog): call ResetEvent() after gtk_widget_destroy(). 2008-06-04 Ito Hiroyuki * src/shell.c (ngraphenvironment): add $NGRAPHHOME to PATH. * src/ofile.c (f2dsettings): ignore remark character placed at the top of the line. 2008-06-03 Ito Hiroyuki * src/gtk/x11opt.c (DefaultDialogClose): add preserve_width. (MiscDialogSetupItem): add preserve_width. (MiscDialogSetup): add preserve_width. (MiscDialogClose): add preserve_width. (MiscDialogClose): add preserve_width. * src/gtk/ox11menu.c (mgtkloadconfig): add preserve_width. * src/gtk/x11view.c (ViewerEvLButtonUp): add preserve_width. * src/orect.c (rectzoom): add preserve_width. * src/omark.c (markzoom): add preserve_width. * src/olegend.c (legendzoom): add preserve_width. * src/oaxis.c (axiszoom2): add preserve_width. * src/oarc.c (arczoom): add preserve_width. * src/gtk/gtk_liststore.c (create_tree_view): add gtk_tree_view_column_set_resizable(); * src/gtk/x11file.c (FileDialogSetup): check string by g_utf8_validate(); * src/gtk/x11lgnd.c (legend_list_set_val): use g_utf8_strncpy() instead of strncpy(). 2008-06-02 Ito Hiroyuki * src/gtk/x11axis.c (AxisPosDialogSetupItem): add combo_box_clear(d->adjust). * src/gtk/ox11menu.c (mx_output): in the case 'V': remove Mxlocal->scrollx and Mxlocal->scrolly. (mx_output): in the case 'V': second argument must be mxd2py and third argument must be mxd2px. * src/gtk/x11view.c (MakeRuler): use mxd2p() instead of mxd2px() and mxd2y(). 2008-05-30 Ito Hiroyuki * src/gtk/x11view.c (CloseGC): fix conditional expression ("Mxlocal->font[i].fontalias != NULL" to "Mxlocal->font[i].fontalias != NULL"). * src/gtk/ox11menu.c (menudone): free Mxlocal->font[i].fontalias and Mxlocal->font[i].font only when Mxlocal->font[i].fontalias is not NULL. * src/gtk/gtk_subwin.c (sub_window_minimize): do nothing when a sub window is already iconified. 2008-05-27 gettextize * Makefile.am (SUBDIRS): Add po, m4. (ACLOCAL_AMFLAGS): New variable. (EXTRA_DIST): Add config.rpath. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, m4/Makefile. ngraph-gtk-6.06.13/INSTALL0000644000175000017500000003660512241364550011717 00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. ngraph-gtk-6.06.13/AUTHORS0000644000175000017500000000015212241111703011710 00000000000000Original authors: Satoshi ISHIZAKA GTK: Ito Hiroyuki ngraph-gtk-6.06.13/doc/0000755000175000017500000000000012241600065011473 500000000000000ngraph-gtk-6.06.13/doc/html/0000755000175000017500000000000012241600065012437 500000000000000ngraph-gtk-6.06.13/doc/html/index.html0000644000175000017500000000037312241111711014352 00000000000000 Ngraph-gtk User's Manual

Ngraph-gtk User's Manual

ngraph-gtk-6.06.13/doc/html/ja/0000755000175000017500000000000012241600065013031 500000000000000ngraph-gtk-6.06.13/doc/html/ja/tutorial.html0000644000175000017500000013533112241111711015503 00000000000000 Tutorial  

チュートリアル


 

外観

  1. 起動画面

    Ngraph を起動すると下図のウィンドウが開かれます。

    ここでは、簡単にウィンドウの説明をします。

      コントロールボタン(上部)
      通常のウィンドウアプリケーションと同様に、ファイルのオープン など頻繁に使うメニューコマンドがボタンに割り当てられています。
      コントロールボタン(左サイド)
      マウスによる操作モードを指定するトグルボタン列です。グラフィッ クスオブジェクトの選択モード、レジェンド種類別の作成モード、 プロットされたデータの評価モード、画面の拡大縮小モードなどを 切り替えます。
      サイドバー

      グラフの右に表示され、上部にデータや軸などを一覧表示する タブ、下部にマウスカーソル位置やフィッティングの情報を表示す る場所があります。タブの順番・位置はドラッグ&ドロップで自由 に変更できます。

      Data タブ

      開かれたデータファイルが一覧表示されます。また、プ ロットの為の各種パラメターも一覧表示されます。このリス トをダブルクリックするとデータダイアログボックスが開き、 各種設定を変更する事ができます。

      Axis タブ

      座標軸の名前と、スケールの数値などの各種パラメター が一覧表示されます。このリストをダブルクリックすると軸 ダイアログボックスが開き、各種設定を変更する事ができま す。

      Merge タブ

      合成ファイルと各種パラメターが一覧表示されます。こ のリストをダブルクリックすると合成ダイアログボックスが 開き、各種設定を変更する事ができます。

      Path, Rectangle, Arc, Mark, Text タブ

      各レジェンドを一覧表示します。このリストをダブルク リックすると各レジェンドのダイアログボックスが開き、各 種設定を変更する事ができます。

      Coordinate 表示

      グラフのマウスカーソルの位置が表示されます。 また、座標軸が有る場合にはマウスカーソルの位置に対応す る軸の座標も表示されます。

      Information 表示

      フィットの結果等が表示されます。

    [表示]-[シングルウィンドウモード] ([View]-[single window mode]) の チェックを外すことで、左側のタブを独立したウィンドウに分離すること もできます。この場合、データ一覧を表示する "Data Window"、軸の一覧 を表示する "Axis Window"、グラフ上のマウスカーソル位置が表示される "Coordinate Window"、レジェンドを一覧表示する "Legend Window"、合成 ファイルを一覧表示する "Merge Window"、フィットの結果等を表示する "Information Window" の各ウィンドウを開く事ができます。また、各ウィ ンドウ上でマウスの右ボタンをクリックすると、それぞれのウィンドウで 異なるポップアップメニューを出す事ができ、各種操作が行えるようになっ ています。


 

グラフ作成の概略

  1. データファイルを用意する

    Ngraphはデータファイルからデータを読み込みグラフを作成します。 従って、まずデータファイルを用意しなければなりません。 エディター、計算プログラム、あるいは測定装置コントロールソフトなどからデータファイルを作成します。

  2. グラフの種類を決める

    グラフにするデータファイルを用意したらNgraphを起動します。次に作成 したいグラフの種類を決めます。 Ngraphでは以下の3つに分類されています。

    フレームグラフ(Frame graph)
    4つの軸で囲まれたグラフ
    方眼グラフ(Section graph)
    4つの軸で囲まれ、方眼線の入ったグラフ
    交差グラフ(Cross graph)
    X-Y2軸のグラフ

    初期状態ではフレームグラフが一つ作成されています。 フレームグラフの4つの軸のスケールはまだ設定されていませんので、軸の基線を示す枠だけが表示されています。 これで良ければ次に進みます。 他の種類のグラフを作成するには、[グラフ]-[新規作成]([Graph]-[New graph])メニューで作成するグラフの種類を指定します。

  3. データファイルを開く

    次に、準備してあるデータファイルを開きます。 データファイルを開くには様々な方法が有りますが、 取り敢えず[データ]-[追加]メニューを選び、 ファイル選択のダイアログボックスでデータファイルを開いてください。

    データファイルを開く方法は他にも用意されています。

    1. 下図のコントロールボタンを押す。
      	    file open control button
      	    
    2. Data タブ上でマウス右ボタンを押してポップアップメニューを出し、"追加(A)" メニューを選ぶ。
    3. ファイルマネージャー等からデータファイルを選び、グラフまたは Data タブ上にドラッグ&ドロップする。

    いずれの方法でも、 データファイルを指定すると次いでプロット方法などを指定するデータダイアログボックスが開きますが、 取り敢えず OK で閉じてください。

  4. 描画する

    Ngraphではファイルを開いても自動的には描画しないようになっています。 グラフを描画するには下図のボタンを押してください。

    描画する方法は他にも用意されています。

    1. [表示]-[描画]([View]-[Draw])メニューを選択する。
    2. グラフ上でクリックしてスペースキーを押す。

    この様にして描画すると軸のスケールは少し余白をとるように自動的に設定され、グラフが描画されます。


 

軸のスケール

  1. スケールを変える

    特にスケール (座標軸の上限・下限)を設定せずに描画した場合にはオートスケールで値が決められます。 また Axis タブには軸が一覧表示されています。 フレームグラフの場合には軸は4つあり、それぞれ "fX1", "fY1", "fU1", "fR1" と名前が付いています。 これらの軸のスケールを変更するには、下図の様に Axis タブの一覧から変更したい軸を選んでダブルクリックしてください。

    軸ダイアログボックスを開く方法は他にも用意されています。

    1. [軸]-[設定] ([Axis]-[Update]) メニューでプ変更したい軸を選ぶ。
    2. 下図ボタンのいずれか一方 (どちらでも良いです)を押してグラフィックスオブジェクト選択モード (あるいは軸のみの選択モード)にしてグラフ上で軸をダブルクリックし、 次いで出てくるダイアログボックスで変更したい軸のボタンを押す。
      	    
      	    

    この様にすると下図の軸ダイアログボックスが開かれます。 ここで、「最小値」「最大値」「増分」に軸のスケールの最小,最大,増分を指定してください。 目盛数字は増分に対して付けられます。 「分割数」は「増分」をさらに何等分して目盛線を引くかを決めます。 この値が0の時は自動的に分割数が決められます。 「スケール法」では通常の線形軸(linear)、ログ(log)、逆数(inverse)、MJD の中から1つを選ぶ事ができます。 「ファイル」ボタンを押すとスケールを開いたデータファイル中から指定したファイルでオートスケールを行って決める事ができます。 「クリア」はスケールの設定を未設定状態にします。

    さらに軸に関する細かい設定ができるように「軸基線」「目盛線」「目盛数字」「フォント」「位置」のボタンが用意されています。 「軸基線」ボタンを押して軸の基線の太さ、色などの設定を行います。 軸の端に矢印をつけたりすることもできます。 「目盛線」ボタンを押して軸の"ゲージ"の長さ、太さ、色などの設定を行います。 また、目盛線をグラフの内側に描くか外側に描くかを決めたり(「位置」)、軸を全部描かずに一部だけにしたり(「範囲最小値」、「範囲最大値」)できます。 「目盛数字」ボタンを押して、その"ゲージ" に振る目盛数字に関する設定を行います。 目盛数字を振り始めるスケールの位置を変えたり(「開始点」、0で自動設定)、 間隔を変えたり(「間隔」、0で自動設定)、 個数を変えたり(「個数」、-1で自動設定)できます。 「フォント」ボタンを押して目盛数字のフォントの設定を行います。

  2. スケールをクリアする

    前節で説明したように、軸ダイアログボックスの「クリア」ボタンで、 軸のスケール設定を未設定状態にできますが、 複数の軸をクリアしたいような場合には[軸]-[スケールクリア]メニューでクリアしたい軸を複数指定し、一括してクリアする事ができます。 あるいは下図ボタンを押しても同じように複数の軸をクリアできます。

  3. 一部を拡大する

    前節のように軸のスケールは数値を入力して変更しますが、グラフの一部を拡大して描画したい時などはグラフィカルに変更する事もできます。 それには下図ボタンを押してトリミングモードにしてグラフ上で軸の範囲をマウスで指定します。

  4. スケールの値を元に戻す

    軸のスケールの設定は、各軸10個まで履歴が記憶されています。 従って前節のように一部を拡大描画した後に、元のスケールの設定に簡単に戻す事ができます。 それには下図ボタンを押して設定を戻したい軸を指定してください。


 

プロット方法

  1. プロット方法を変える

    デフォルトの状態では、黒い点でデータ点がプロットされます。また、Data タブには開いたデータファイルが一覧表示されています。 プロット方法を変える為に、Data タブの一覧表示をダブルクリックしてデータダイアログボックスを開いてください。

    データダイアログボックスを開く方法はその他に

    1. [データ]-[設定] ([Data]-[Update]) メニューでプロットしたいデータファイルを選ぶ
    2. 下図ボタンを押してデータ選択モードにしてグラフ上でデータをクリックする
    3. Data タブ上でマウス右ボタンを押してポップアップメニューを出し、"プロパティ(P)" メニューを選ぶ
    があります。

    この様にすると下左図に示すデータダイアログボックスが現れます。

    244

    例えばプロット方法を変更してデータを曲線で結ぶようにするには上右図にの様にプロットタイプを "曲線" にします。 その後、データダイアログボックスを OK で閉じ、もう一度描画してくだ さい。

    データダイアログボックスでは、その他にドットの大きさ、幅、色などの設定が行えます。 またデータファイルの先頭に何のデータであるかの注釈をつけておく事が多いと思いますが、 その部分を読み飛ばすのには「読込」ボタンを押して「先頭スキップ行」を設定します。

  2. 曲線+点でプロットする

    データを曲線と点の両方でプロットするようにするには、 同じデータファイルを二度開き、片方を曲線で、もう片方を点でプロットするように設定します。 同じデータ2度開くのも基本的には前節で示した方法で、 二回開けば良いのですが、すでに開いて有るファイルをもう一度開くには下図に示したように Data タブ上でマウス右ボタンを押してポップアップメニューを出し "複製(D)" メニューを選び複製を生成するのがより簡単です。 Data タブでINSキーを押す事でも同様の操作が行えます。 下左図は Data タブでポップアップメニューを出した状態です。 "複製(D)"メニューを選ぶ事で下右図のように Data タブには同じファイルが2つリストされるようになります。

    このようにして2度開いたファイルのプロットの設定を、 片方のプロットを "マーク" に、もう片方を "曲線" にする事で、 データは曲線と点の両方でプロットされるようになります。

  3. データ点の評価・マスク・移動

    プロットしたデータの値はグラフの座標値から読み取る時に、 グラフ上でマウス右ボタンを押してポップアップメニューを出し、 "クロスゲージ(G)" を選ぶと、マウスカーソルに縦横のクロスゲージが現れますので、座標値を読み取るのに便利です。 また、もっと直接的に数値を知りたいときには、 下図のコントロールボタンを押して「評価モード」にしてからグラフ上でデータをクリックします。

    するとマウスポインターに近いデータの一覧がリストアップされます。

    ここでリストアップされた項目の「#」はデータファイルの番号、 「行」はそのファイル中の行数、「X、Y」が座標値を示してします。 リストボックスの中の項目を選択し「Mask」ボタンを押す事で、データの一部だけを描かなくすることができます。 また、「Move」ボタンを押すと、データを移動させる事もできます。 これらマスク、移動の解除はデータダイアログボックスの「マスク」「移動」で行います。


 

グラフを飾りづける

  1. Legend を入れる

    図にテキスト、矢印などを入れるには、 下図のコントロールボタンを押してLegend の種類を選び、マウスで位置を決めます。 Legend の作成が終わるとマウスは選択モードに戻ります。 複数の Legend を作成したいときは SHIFT キーを押しながらコントロールボタンをクリックしてください。 また Legend の位置指定時に CTL キーを押しながらマウスを操作すると、角度や縦横の比を制限できます。

    直線・曲線を作成します。
    矩形を作成します。
    円・楕円を作成します。
    データプロット形式 "マーク" に対応するマークを作成します。
    テキストを作成します。
    ガウス関数, ローレンツ関数, 放物線, 正弦曲線を作成します。
    作成した曲線はただちにレジェンド-曲線に展開されるので, 一度作成すると関数としての変更はできません。

    文字列をグラフ上にドラッグ&ドロップすることでもテキストを作成できます。

  2. グラフ上での移動、設定変更

    マウスによって Legend、Axis などの設定の変更、移動、拡大縮小などを行う事もできます。 Ngraph には、その為のマウスポインターのモードが4種類あるので注意が必要です(下図)。

    ここで、"legend+axis" のポインターモードでは、レジェンドと軸を選択する事ができます。 "legend" のポインターモードではレジェンドのみが選択対象になります。 軸とレジェンドが込み合っていて軸を選択したく無いような場合に使ってください。 "axis" のポインターモードでは逆に軸のみが選択対象になります。 "data" のポインターモードではプロットしたデータが選択対象になり、プロットした点に対応するデータファイルの設定を行う事ができます。

    選択したいグラフィックスオブジェクトに合ったコントロールボタンを押してモードを決め、 マウスで目的のグラフィックスをクリックするとフォーカスされている事を示す点線枠が表示されます(下図)。 SHIFT キーを押しながらクリックすると複数のオブジェクトを複数選択できます。

    マウスのドラッグで移動、拡大・縮小ができます。 移動の際に CTL キーを押しながらドラッグすると、水平垂直方向にしか動きませんので、位置合わせをするのに便利です。 また、移動の際はグリッドが効いています。このグリッドを解除するには SHIFT キーを押しながらドラッグしてください。 ダブルクリックでダイアログボックスが開き各種設定の変更が行えます。

  3. レジェンドの複製

    同じ様なレジェンドを沢山作成しなければならない時の為に、1つ作成してそれの複製を生成する機能があります。 それには前節で説明した方法で、複製を作成したいレジェンドがフォーカス(選択)された状態(点線枠で囲まれた状態)にします。 もし、複数のレジェンドの複製を作りたいのであれば、それら複数のレジェンドをマウスで囲むようにしてフォーカスされた状態にしてください。 ここで INS キーを押すと(あるいはポップアップメニューを出して "複製(D)" メニューを選択する)、 フォーカスされているレジェンドの複製が生成されます。 複製は同じ位置に生成されますので、重なって1つしか見えません。 ですが、複製後は複製されたレジェンドのみがフォーカスされていますので、そのままドラッグすれば複製されたものだけが移動します。

  4. legend.nsc を使う

    Ngraph にはアドインと呼ばれる副プログラムを使う機能が用意されています。 その一つにデータの凡例を自動生成する LGEND が用意されています。 [アドイン] ([Addin]) メニューの中から [Legend...] を選び実行すると、現在開かれているデータファイルの凡例が自動生成されます。 下図は LEGEND アドインによる凡例の作成例です。

  5. 込み合っているレジェンドの選択方法

    "Path タブ"、"Rectangle タブ"、"Arc タブ"、"Mark タブ"、"Text タブ" には それぞれのオブジェクトの一覧が表示されています。 "File タブ" や"Axis タブ" と同様に一覧をダブルクリックするとダイアログボックスが開き、 各種設定を行う事ができます。 また、一覧の中から適当な legendを選びスペースを押す (あるいはポップアップメニューを出して "フォーカス(F)" メニューを選ぶ)と、 グラフで対応するグラフィックスオブジェクトがフォーカスされます。 作成したlegendが重なりあってしまい、目的の legend だけをマウスで選択するのが困難な時にこの機能を使うと便利です。


 

グラフの印刷・保存・読込、ファイルへの出力

  1. グラフの印刷

    印刷は[グラフ]-[印刷]メニューで行います。

  2. グラフの保存

    グラフの保存は[グラフ]-[保存]メニューで行います。 このメニューを選択すると保存するファイル名を聞いてきた後、各種セーブオプション指定の為のダイアログボックスが開きます。 ここで OK を押せば、Ngraph の保存形式で NGP の拡張子を持つファイルが作成されます。 一方、Ngraphは予め用意してあるデータファイルを読み込んでグラフにしています。 従って、グラフを完全に保存するにはグラフの状態を保存した NGP ファイルだけでなく、データファイルも保存しておく必要がある事になります。 ところが、このように NGP ファイルとデータファイルを別々に保存しておくと、 フォルダ構成の異なるコンピュータにコピーした時に正常にデータファイルが読み込めなくなってしまいます。 これを回避する為に幾つかのセーブオプションが用意されています。

    パス情報
    セーブする時にデータファイルのパス情報をどうするかを指定します。 unchange では何の変更もしません。 full にするとデータパスをフルパスでセーブします。 relative はカレントフォルダからの相対パスでセーブします。 base はパス名をつけずファイル名だけでセーブします。
    データファイルを含める
    このオプションをチェックすると、データファイルの内容も NGP ファイルに埋め込まれます。 したがって、グラフの保存にデータファイルはもはや不要となります。 埋め込まれたデータファイルはNGPファイルの読み込み時に展開されます。
    合成タファイルを含める
    上記同様に合成ファイル(GRAファイル)をNGPファイルに埋め込みます。
  3. グラフの読込

    セーブしてあるNGPファイル(*.ngp)を読み込むには[グラフ]-[開く]メニューで行います。 ファイルマネージャー等からNGPファイルを選び、 グラフ上にドラッグ&ドロップしてもグラフを読み込むことが出来ます。 PRM File(*.prm) を指定して、DOS版Ngraphのグラフを読み込む事もできます。 このメニューを選択すると読み込むファイル名を聞いてきた後、 各種読み込みオプション指定の為のダイアログボックスが開きます。 各オプションの意味は以下の通りです。

    データファイル展開
    データファイルが埋め込まれている NGP ファイルを読みこむとき、埋め込まれているデータファイルを展開するかどうかを指定します。 展開するフォルダは「展開ファルダ」で指定できます。デフォルトではカレントフォルダ(.\)になっています。
    パス情報
    データファイルのパス情報の扱いを選択します。 「フルパス」はフルパスで指定されていないデータファイルについて、 カレントフォルダから推測されるフルパスに変換します。 「ファイル名のみ」の場合、パス情報は無視され、 データファイルはカレントフォルダにあるものとみなされます。 フォルダ構成が変わってしまい、かつデータファイルがカレントフォルダに有る場合にはこのオプションをチェックしてください。
  4. 画像ファイルへのエクスポート

    [グラフ]-[画像にエクスポート]で出力ファイル形式を指定してファイルに出力する事ができます。

  5. GRAファイルへの出力

    GRAファイルとは、直線、円などのグラフィックス命令を記述したNgraph独自のファイル形式です。 グラフの合成に使う事ができます。 GRAファイルの作成は[グラフ]-[画像にエクスポート]-[GRA ファイル]で行います。 そのようにして出力したGRAファイルを[合成]-[開く]メニューで指定するか、 ファイルマネージャー等からGRAファイルを選び、 グラフまたはMerge タブ上にドラッグ&ドロップ事で取り込む事ができます。


 

フィッティング

  1. 通常のフィット

    データのフィッティングをするには下図の様にデータダイアログボックスでプロット形式を fit にします。

    その後、「作成」ボタンを押すと下図のフィットダイアログボックスが開きますので、そこでフィッティングの方法を指定します。

    フィットダイアログボックスの「種類」には "多項式", "べき関数", "指数関数", "対数" から選択します。 "ユーザ定義" を選ぶとユーザ指定の関数でフィットできますが、それは次節で説明します。 また "多項式" (多項式フィット)の場合には「多項式次元」も指定してください。 その後、描画するとフィッティングが行われます。 フィット結果は線としてグラフに表示されます。またサイドバー右下にも情報が表示されます。 あるいはフィットダイアログボックスの「結果表示」ボタンでもフィット結果が数値で表示されます。

    フィット結果の表示で<DY^2>はデータが (Xi, Yi)、フィットした関数が Y=f(X) のとき、 <DY^2>=<ΔY^2>=<[Yi-f(Xi)]^2>=(1/N)Σ[Yi-f(Xi)]^2 の意味です。また "|r| or |R|" は相関係数の絶対値です。

  2. 任意関数によるフィット

    任意関数でフィットする場合には、フィットダイアログボックスの「種類」で "ユーザ定義" を選びます。 フィット関数を「フィット式」に指定します。

    例として

          Y=a*(X+b)^2
          
    のフィットの場合を説明します。 フィッティングパラメターは a と b です。 フィッティングパラメターは「フィット式」の中では %00 から %09 で指定します。 つまりフィッテングパラメターは最大 10 個までに制限されています。 上の例では「フィット式」に
          %00*(X+%01)^2
          
    と入力してください. 任意関数のフィットでは一気にパラメターの値を決めるのではなく、パラメターの値を変えながら誤差が最小になる点を探して行きます。 探し方はパラメターの初期値を決め、その時のパラメター空間での誤差の勾配から新たなパラメターの値を決めると言う動作を パラメターの値が変わらなくなるまで(収束するまで)繰り返します。 「%00:〜%09:」「収束(%)」「微分式指定」「dF/d(%00):〜dF/d(%09):」でこの繰り返し動作を制御します。 パラメター空間での誤差の勾配を求めるにはフィット関数を各パラメターで偏微分した式が必要です。 「微分式指定」をチェックし、これら微分式を「dF/d(%00):〜dF/d(%09):」に入力してください。 上の例の場合 %00*(X+%01)^2 を %00, %01 で偏微分した式を入力します。 具体的には
          dF/d(%00): (X+%01)^2
          dF/d(%01): %00*2*(X+%01)
          
    としてください。 「微分式指定」をチェックしなければ、微分式の近似値を数値的に求めますが、明示的に微分式を指定した方が収束は速くなります。 また、フィットパラメターの初期値を「%00:〜%09:」で指定してください。 パラメターの値が変わらなくなった時を収束したと判断していますが、全く変化しなくなる事はありません。 変化しなくなったと見なす基準を「収束(%):」で指定します。 デフォルトでは 1% ですのでフィット結果の有効桁数は2桁です。 これらのオプションを指定したら、ダイアログボックスを閉じて描画すればフィットが行われます。 また、時として
          singular matrix あるいは too small number of data
          
    のエラーが出たり、収束せずにフィット処理がいつまでも続いてしまう事 があります(描画進行状況を示すダイアログの「停止」ボタンを押して中断してください)。 このような場合にはフィットパラメターの初期値を変えて再度挑戦してみてください。 フィット関数によっては初期値をかなり慎重に選ばないと収束してくれま せん。

    なおフィッティングのユーザ定義関数では下記の定数、関数は使用できません。

    • F(), G(), H()
    • CIOLOR(), ALPHA()
    • OBJ_COLOR(), OBJ_ALPHA()
    • RGB(), RGB2()
    • HSB(), HSB2()
    • MARKSIZE(), MARKTYPE()
    • NUM
    • MINX, MAXX
    • MINY, MAXY
    • SUMX, SUMY
    • SUMXX, SUMYY, SUMXY
    • AVX, AVY
    • SGX, SGY
    • FIRST
    • MASK, MOVE
    • COLX, COLY
    • AXISX, AXISY
    • HSKIP, RSTEP, FLINE
    • FILE_OBJ, PATH_OBJ, RECT_OBJ, ARC_OBJ, MARK_OBJ, TEXT_OBJ
    • %D, %N


 

数式変換機能を使う

  1. データを数式で変換してプロットする

    Ngraph ではデータファイルのデータをそのままグラフにするだけではなく、データを指定した数式で変換してからグラフにする機能を持っています。 変換する為の式はデータダイアログボックスで「変換数式」タブを表示し、「変換数式:」に入力します。 変換数式は各データファイルで独立しています。 下図のボタンを押して、複数のデータファイルの変換数式を一括して入力する事もできます。

    例えば、縦軸データを二乗したものをグラフにしたい時には「(Y)カラム数式変換」に

          Y^2 (あるいは同じ事ですが SQR(Y))
          
    と入力してください。もしデータダイアログボックスの「(Y)カラム」が 2 となっている場合には
          %02^2 (あるいは同じ事ですが SQR(%02))
          
    でも同じ結果を得ることができます。%02 の意味は "データファイルの2カラム目のデータ"です。 このように %01〜%99 で特定のカラムを取り出す事ができます。 一方、Xはデータダイアログボックスの「(X)カラム」に指定したカラムのデータであり、 Yはデータダイアログボックスの「(Y)カラム」に指定したカラムのデータです。 ですから、「(Y)カラム」を 3 にすると、今度は "Y" と "%03" が同じ値を示すようになります。

    縦軸データをカラム 1 とカラム2 の和をプロットしたい時には変換数式に

          %01+%02
          
    と入力してください。このようにカラム間の演算ができます。 また、0番目(Data タブのリストの先頭の数字)のデータのカラム 1 と、1 番目のデータのカラム2 の和をプロットしたい時には変換数式に
          %F0001+%F0102
          
    と入力してください。このようにファイル間の演算もできます。

    数式変換では四則演算、括弧のほか多くの関数が使用できます。


 

複数のグラフ

  1. 複数のグラフの作り方

    • グラフを新たに作成する

      一枚の紙に複数のグラフを作成したい場合には、 [軸]-[追加作成]メニューの中から作成したいグラフの種類を指定します。 あるいは下図のコントロールボタン

      	    
      	    
      を押して、グラフ(軸)の作成モードにして グラフ上でマウスを使って位置を指定し作成する事もできます。

    • すでに作成してあるグラフを複製する

      既に一つのグラフが作成してあり、それと同じ様なグラフを新たに追加するのには、 その既に作成してあるグラフを複製してしまうのが、より簡単で現実的です。 それには、下図ボタンを押してマウスをポインター(選択)モードにします。 このモードでは軸とレジェンドが選択対象になります(legendも一緒に複製する事を考えています)。

      	    
      	    
      次いで、グラフ上で複製ーしたいグラフ全体を囲むようにマウスで範囲を指定します。 すると、マウスの範囲に入っているグラフとレジェンドが全て選択され、点線枠で囲まれます。 この状態で INS キーを押す(あるいはポップアップメニューを出して "複製(D)" メニューを選択する)と、 選択されているグラフとレジェンドが複製されます。 この時、フォーカス(選択)されているのは新たに複製されたグラフとレジェンドだけで、複製元は選択されていません。 この状態でマウスでドラッグして位置をずらしてください。 通常、複数のグラフを作成する場合には縦、あるいは横に位置を揃えたい場合が多いですが、 マウスで位置をずらす時に CTRL キーを押しながらドラッグすれば水平・垂直方向にしか移動しませんので、簡単に揃える事ができます。

  2. append.nscを使う

    NGP ファイルとして保存されている別のグラフを、現在のグラフと同じページに取り込むのはもっと簡単です。 Ngraph にはアドインと呼ばれる副プログラムを使う機能が用意されています。 その一つにNGPファイルに保存されているグラフを現在のグラフに追加する APPEND が用意されています。 [アドイン] ([Addin]) メニューの中から [Append...] を選び実行しNGPファイル名を指定するだけで、現在のグラフに追加する事ができます。

  3. 軸の名称

    フレームグラフや方眼グラフは4つの軸(X軸、Y軸、U軸、R軸)から構成されます。 また交差グラフは2つの軸(X軸、Y軸)から構成されます。 これらの軸には複数のグラフを作成しても一意になるように名前が自動的に付けられます。 軸の名前は以下の形式をしています。

    グラフの種類グラフの番号
    f: フレームグラフ
    s: 方眼グラフ
    c: 交差グラフ
    X
    Y
    U
    R
    グラフの種類毎に 1 から振られます

    例えば、最初に作成したフレームグラフの軸の名前は fX1, fY1, fU1, fR1 となり、二番目作成したフレームグラフの軸の名前は fX2, fY2, fU2, fR2 です。

    Axis タブの "name" の部分には、この名前が一覧表示されます。 またこれとは別に他のグラフィックオブジェクトと同様に0からの通し番号が付いています。 Axis タブの "#" の部分に表示されている数字がこの番号です。

  4. プロットする軸の指定

    データをプロットする軸はデータダイアログボックスの「軸」に軸の通し番号を指定します。 ただし、分かりやすい様にコンボボックスのリストには前節で説明した軸の名前が一覧表示されるようになっています。

  5. 軸の連携

    Ngraph の座標軸は軸の間で連携する為の機能を2つもたせてあります。

    Reference パラメタ

    座標軸の最大・最小値が設定されていない時、Reference パラメタに他の座標軸番号が指定されていれば、 その軸から最大・最小値を自動的に読み取ります。主にフレームグラフの U軸, R軸の為に使われます。

    Adjust パラメタ

    他の軸番号が指定されている場合には、 その軸とAdjust position で交差するように自分自身を平行移動させます。 主に交差グラフの軸に対して使われます。

    これらは「参照軸」、「位置ボタン」-「交差軸」でそれぞれ指定できます。

    軸には前で説明した様に、0からの通し番号が付けられています。 さらに、(他のグラフィックオブジェクトと同様に)実行時に一意に決まる番号も付いています(^で始まる数字として指定します)。 Axis タブの最後の"^#" の部分に表示されている数字がこの番号です。 上記「参照軸」や「位置ボタン」-「交差軸」のコンボボックスリストから軸の名前を選んだ場合に実際に入力されるのは、 この「実行時に一意に決まる番号」になります。 「通し番号」で指定してあると、軸が削除されたような場合に番号が変わってしまい、 結果として参照関係が壊れてしまい不便なので、 このように「実行時に一意に決まる番号」で指定するようになっているのです。

    複数のグラフで X 軸を共通にしたい場合、 下図の様に Reference パラメタを設定すると fX2 軸のスケールを変えるだけで fU2, fX1, fU1 の軸のスケールを揃える事ができます。


ngraph-gtk-6.06.13/doc/html/ja/copyrigh.html0000644000175000017500000000623012241111712015460 00000000000000 Copyright   その他


  著作権・連絡先・謝辞
  • 著作権等

    Ngraph for X11. Copyright (C) 2002, Satoshi ISHIZAKA. 
    
    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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    
    
    Ngraph for X11. Copyright (C) 2002, 石坂智
    
    このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェ
    ア財団によって発行された GNU一般公衆利用許諾契約書(バージョン2か、希望
    によってはそれ以降のバージョンのうちどれか)の定める条件の下で再頒布ま
    たは改変することができます。
    
    このプログラムは有用であることを願って頒布されますが、*全くの無保証* 
    です。商業可能性の保証や特定の目的への適合性は、言外に示されたものも含
    め全く存在しません。詳しくはGNU一般公衆利用許諾契約書をご覧ください。
    
    あなたはこのプログラムと共に、GNU一般公衆利用許諾契約書の複製物を一部
    受け取ったはずです。もし受け取っていなければ、フリーソフトウェア財団ま
    で請求してください(宛先は the Free Software Foundation, Inc., 59
    Temple Place, Suite 330, Boston, MA 02111-1307 USA)。
    
  • ソースファイル
    本プログラムのソースファイルは

    URL: http://homepage3.nifty.com/slokar/ngraph/ngraph-gtk.html

    で入手できます。
  • 連絡先

  • 謝辞
    • 適切なる数多くのアドバイスを戴き,開発に力を貸してくださった飯原順次さんに感謝致します。
    • ドキュメント作成にあたっては泉 達也さんにご協力いただきました。感謝致します。
    • ご意見・ご感想・ご要望・バグ情報などを寄せてくださった多くの方々に感謝致します。



ngraph-gtk-6.06.13/doc/html/ja/refer.html0000644000175000017500000015174312241111711014750 00000000000000 Reference  

リファレンス




 

[グラフ]メニュー

新規作成 現在のグラフを破棄して新しいグラフを作成します。 現在のグラフにグラフを追加するのは[軸]-[追加作成]メニューです。
開く 保存してあるグラフファイル(NGPファイル)を読み込みます。 DOS版NgraphのPRMファイルも読み込めます。
名前を付けて保存 現在のグラフに名前をつけて保存します。
保存 現在のグラフを保存します。
画像にエクスポート GRA, PostScript, EPS, SVG, PDF, PNG の各形式のファイルを出力します。
描画順 描画するグラフィックスオブジェクトを指定したり、描画順を変更します。
用紙 用紙のマージンや、全体の拡大率等を指定します。
印刷プレビュー プレビュー表示を行います。
印刷 印刷します。
現在のディレクトリ 現在のディレクトリを変更します。
アドイン ちょっとした機能を持った副プログラムを実行します。 アドインを参照してください。
Ngraphシェル Unixの sh ライクなシェル(コマンドインタープリターの様なもの)を起動します。
終了 Ngraphを終了します。 グラフに変更が加えられていて保存されていない場合には保存するかどうか問い合わます。



 

[編集]メニュー

切り取り
コピー
選択した legend, merge オブジェクトに対して「切り取り」または「コピー」 を行います (axis オブジェクトの切り取り、コピーは出来ません) 。
貼り付け クリップボードに保存されている文字列または legend, merge オブジェクトを 貼り付けます。
削除 選択したオブジェクトを削除します。
位置合せ 選択したオブジェクトの位置合せを行います。
90° 時計回り回転
90° 反時計回り回転
選択した legend, axis オブジェクトを回転します (merge オブジェクトは回転 できません) 。mark オブジェクトは回転により位置のみ変化します。
水平反転
垂直反転
選択した legend, axis オブジェクトを反転します (merge および text オブジェ クトは反転できません) 。mark オブジェクトは反転により位置のみ変化します。



 

[表示]メニュー

描画 グラフを描画します。 ボタンを押すほうが簡単です。
クリア グラフ表示をクリアします。 グラフ自体が消去されるのではないので、再度描画すればグラフが現れます。
Data Data Window を開いたり閉じたりします。シングルウィンドウモードでは表示されません。
Axis Axis Window を開いたり閉じたりします。シングルウィンドウモードでは表示されません。
Legend Legend Window を開いたり閉じたりします。シングルウィンドウモードでは表示されません。
Merge Merge Window を開いたり閉じたりします。シングルウィンドウモードでは表示されません。
Information Information Window を開いたり閉じたりします。シングルウィンドウモードでは表示されません。
Coordinate Coordinate Window を開いたり閉じたりします。シングルウィンドウモードでは表示されません。
初期状態のウィンドウ配置 保存してあるウィンドウ配置(Ngraph起動時のウィンドウ配置)にします。シングルウィンドウモードでは表示されません。
Information 表示をクリア Information 表示をクリアします。
サイドバー
ステータスバー
ルーラー
スクロールバー
コマンドツールバー
ツールボックス
クロスゲージ
表示、非表示を切り替えます。「サイドバー」はシングルウィンドウモードの時のみ表示されます。



 

[データ]メニュー

開く データファイルをプロットデータとして開きます。
設定 プロット方法などのデータファイルに関する設定を行います。
閉じる データファイルをプロットデータから外し閉じます。
編集 エディターを起動してデータファイルを編集します。
データの保存 データファイルとして出力します。数式変換機能などを使っている場合、変換後のデータが得られます。
変換式の一括入力 数式変換機能の一括設定を行います。



 

[軸]メニュー

追加作成 現在のグラフに加えて、新しい別のグラフ(軸)を追加します。
設定 軸に関する設定を行います。
削除 グラフ(軸)を削除します。
スケールズーム 軸のスケールを拡大、縮小します。
スケールクリア 軸のスケールを未設定状態にします。次ぎに描画すると、軸のスケールが自動的に決められます。
グリッド 方眼グラフの方眼に関する設定をします。



 

[レジェンド]メニュー

パス 凡例(直線・曲線)の設定、削除をします。 新規作成はメニューではできません。 新規作成はボタンを押してマウスで位置を指定してください。
四角形 凡例(四角形)の設定、削除をします。 新規作成はメニューではできません。 新規作成はボタンを押してマウスで位置を指定してください。
凡例(円)の設定、削除をします。 新規作成はメニューではできません。 新規作成はボタンを押してマウスで位置を指定してください。
マーク 凡例(マーク)の設定、削除をします。 新規作成はメニューではできません。 新規作成はボタンを押してマウスで位置を指定してください。
テキスト 凡例(テキスト)の設定、削除をします。 新規作成はメニューではできません。 新規作成はボタンを押してマウスで位置を指定してください。



 

[合成]メニュー

開く 合成する合成ファイル(*.GRA)を開きます。
設定 合成の位置、拡大率などの設定を行います。
閉じる 合成する合成ファイル(*.GRA)を閉じます。






 

[設定]メニュー

フォント 目盛数字やレジェンドテキストで用いられるフォントの追加や削除をします。 ダイアログの[OK]ボタンを押した場合はプログラム終了時に設定の変更は保存さ れません。[保存]ボタンを押した場合は次回以降の起動時にも設定の変更が有効 になります。
ビューア グラフの解像度などを指定します。 ダイアログの[OK]ボタンを押した場合はプログラム終了時に設定の変更は保存さ れません。[保存]ボタンを押した場合は次回以降の起動時にも設定の変更が有効に なります。
外部ビューア 外部ビューアの解像度などを指定します。 ダイアログの[OK]ボタンを押した場合はプログラム終了時に設定の変更は保存さ れません。[保存]ボタンを押した場合は次回以降の起動時にも設定の変更が有効に なります。
アドインスクリプト 新しいアドインを追加したり、削除したりします。 ダイアログの[OK]ボタンを押した場合はプログラム終了時に設定の変更は保存さ れません。[保存]ボタンを押した場合は次回以降の起動時にも設定の変更が有効に なります。
その他 エディターを指定したり、グラフの保存方法のデフォルト値を変更したりします。 ダイアログの[OK]ボタンを押した場合はプログラム終了時に設定の変更は保存さ れません。[保存]ボタンを押した場合は次回以降の起動時にも設定の変更が有効に なります。
初期状態としてセーブ(各種設定) 次ぎにNgraphを起動した時も上の設定変更が有効になるよう各種設定を保存します。
初期状態としてセーブ(グラフ) 現在のグラフを初期状態となるようにします。配布状態ではフレームグラフが初期状態です。
データファイル初期状態 データダイアログボックスの初期状態を変更します。
レジェンドテキスト初期状態 レジェンドテキストの初期状態を変更します。



 

[ヘルプ]メニュー

ヘルプ ヘルプドキュメントを表示します。
情報 Ngraphバージョン情報などを表示します。



 

データ・ダイアログボックス



ファイル名 データファイル名。
ファイルから設定読込 データファイルの先頭に設定パラメターが記述されている場合に、そのパラメターを取り込む。 データファイルへの設定パラメターの記述の方法はデータファイル埋め込みオプションを参照。
編集 データファイルを編集するためにエディターを開く。 起動されるエディターは[設定]-[その他]メニューで変更可能。
Xカラム 横軸として使用するデータの、データファイルにおけるカラム数。 0の時は 1,2,3,... がデータとなる。
X軸 横軸として使用する軸。 軸の通し番号(Axis タブの行先頭に表示される数字)で指定するが、コンボボックスのリストには軸の名前で一覧表示される。
Yカラム 縦軸として使用するデータの、データファイルにおけるカラム数。 0の時は 1,2,3,... がデータとなる。
Y軸 縦軸として使用する軸。 軸の通し番号(Axis タブの行先頭に表示される数字)で指定するが、コンボボックスのリストには軸の名前で一覧表示される。
プロット
タイプ mark, line 等のプロットする方法。
マーク タイプが mark の時にプロットに使われるマークの種類。
曲線 タイプが curve の時に使われる補間方法。 spline(スプライン補間), spline_close(閉スプライン補間), bspline(Bスプライン補間), bspline_close(閉Bスプライン補間)。 Bスプライン補間を使うにはデータ数が7点以上必要。
フィット タイプが fit の時にフィッティングの方法を指定するダイアログボックスを開く。 タイプを fit にしたら必ず一度はこのボタンを押してフィッティング方法を指定しないと、 描画時に `fit' is not specified のエラーになる。
色1 プロットする線、マーク等の色。
色2 タイプが mark, rectangle_fill, bar_fill_x, bar_fill_y の時の第2色。
クリップ チェックしない状態では、データは軸の外側にもプロットされる。
線種 プロットする線の種類。 点線の長さ、間隔を詳細に指定するには、"100 10" の様に点線の繰り返し要素の長さを指定する。
線幅 プロットする線の幅。
サイズ マークの大きさ、エラーバーのバーの長さなどのサイズ。
マイター マイターリミット。折れ線の角で輪郭をどこまで描画するかを決める。
ジョイン 折れ線の角の輪郭形状。
変換数式
隣接平均 隣接平均するデータ数。1 の時、前後1つのデータと合わせて3つのデータの平均がとられる。
変換数式 データを数式で変換してプロットしたい場合の変換式。
F(X,Y,Z)=
G(X,Y,Z)=
H(X,Y,Z)=
ユーザ定義関数。ここで定義した関数が、変換数式中で F(), G(), H() として使用できる。
読込
先頭スキップ行 データファイルの先頭で読み込みをスキップさせる行数。
読込ステップ行 2の時、データファイルは一行おきに読み込まれる。
最終行 読み込みを停止させる行。負の場合ファイル最後からの行数になる (-1 でファイルの最後まで読み込まれる) 。
コメント行 ここで指定した文字で始まる行はコメント行とみなされ読み込まれない。
区切り文字 データの区切りとして使用される文字。デフォルトはスペース、タブ、コンマ、括弧。
CSV形式 これをチェックすると、スペース以外の「区切り文字」が連続した場合、連続した数だけデータが無いものとして扱われる。
マスク
追加 「新規行」に指定したデータ行をマスクとして追加する。 マスクの追加はモードを用い、マウスでプロットされたデータを指定することでも可能。
削除 「マスク行」リストの中で選択したデータ行のマスクを解除する。
移動
追加 「新規行」に指定したデータ行のデータを「X, Y」で指定されるデータとして解釈するように「移動行」リストに追加する。 データの移動はモードを用い、マウスでプロットされたデータを指定することでも可能。
削除 「移動行」リストの中で選択したデータ行のデータ移動を解除する。
全てに適用 ファイル選択ダイアログボックスで、複数のデータファイルを指定した場合、 これ以降のデータファイルに対しては現在の設定を用いる。
設定のコピー それぞれのタブで設定するパラメータを他のデータファイルから取り込む。



 

フィット・ダイアログボックス



種類 フィッティングの種類。多項式, べき関数 (y=a*x^b), 指数関数 (y=exp(a*x+b)), 対数 (y=a*log(x)+b), ユーザ定義(ユーザ定義式によるフィット)から選択。
多項式次元 種類がpolyの時の多項式の次数。
通過点 チェックすると「X, Y」に指定した点を通る条件付きでフィットが行われる。 種類が user に場合に、このオプションは指定できない。
重み付け データに重み付けをしてフィットする。数式変換と 同様の関数が使用できるが、データファイルパラメータ %Fxxxx や F(), G(), H(), COLOR(), MARKSIZE() 関数などは使用できない。通常のフィットは、 重み付け 1 に対応する。
最小、最大、分割 フィット結果の描画法を設定する。 フィット結果式のXの値を、「最小」から「最大」までを「分割」数だけ分割して評価して Y の値を求めて直線で結ぶ。 「最大」「最小」が共に 0 の時は X 軸の最小と最大が用いられる。
補間 チェックしてある場合、フィット結果は直線の集まりではなく、スプライン補間して曲線で描画される。
フィット式 種類が user の時にフィットに用いられる式。 %01から%09までがフィットで求められるパラメターとなる。
収束 種類が user の時、収束条件を % で指定する。デフォルトでは 1% なので、フィット結果は1/100 の精度となる。
微分式指定 チェックしてある場合、微分式を使ってパラメター微分の値を計算する。 チェックしていない場合、数値的にパラメター微分の近似値を計算する。
%00-%09 種類が user の場合にはフィッティングパラメターは繰り返し処理で求められるが、その繰り返し処理の初期値を指定する。 フィット関数によっては、フィッティング結果に近い値を入れないと収束しない。
dF/d(%00)-dF/d(%09) フィット式をフィッティングパラメター%00-%09で偏微分した式。 「微分式指定」をチェックした場合に指定する必要がある。
結果表示 フィット結果を表示する。
Copy 他のデータファイルのフィット設定を取り込む。
設定読込 保存してあるフィット設定を読み込む。
設定保存 現在のフィット設定を保存する。後で読み込む際に区別がつくように「プロファイル」を指定する。 設定は fit.ngp の名前のファイルに保存される。



 

軸・ダイアログボックス

スケール
最小値、最大値 軸のスケールの最大と最小。 「最小値」「最大値」「増分」の全てが 0 の時、スケールは未設定状態とみなされ描画時に自動的に設定される。
増分 目盛数字は「増分」の値毎に付けられ、目盛線は「増分」を「分割数」だけ分割した値毎に付けられる。 「スケール法」が log の時、「増分」が10 では 10, 100, 1000 の様に目盛数字が付けられ、 「増分」が 1 の時には 1, 2, 3 の様に目盛数字が付けられる。
スケール法

linear(通常の線形軸), log(対数軸), inverse(逆数軸), MJD(軸の値を MJD として日時で表示) から選択。

MJD の場合の日時表示は strftime (3) を使用しているため strftime (3) で扱える範囲外の日時については MJD がそのまま表示されます。

クリア スケールを未設定状態(「最小値」「最大値」「増分」の全てが 0)にする。
ファイル 指定したデータファイルのデータでスケールを自動設定する。
分割数 「増分」を更に分割する分割数。
参照軸 スケールが未設定状態(「最小値」「最大値」「増分」の全てが 0)の時、ここに指定した軸の設定が代わりに使われる。 軸の通し番号ではなく、実行時に決まる一意の番号(Axis タブの行末に表示される^で始まる数字)で指定するが、コンボボックスのリストには軸の名前で一覧表示される。
軸基線
基線描画 チェックを外すと軸の基線を描画しなくなる。
線種 基線の種類。 点線の長さ、間隔を詳細に指定するには、"100 10" の様に点線の繰り返し要素の長さを指定する。
線幅、色 基線の幅と色。
矢印、波型 軸基線の端には矢印や波型を付加することができます。矢印は交差グラフの軸に、波型は2つの軸を使って分断された軸を表現するのに使う。 矢印の「長さ」と「幅」は、基線の「線幅」に対して % で指定する。
目盛線
位置 none(目盛線なし), right(軸基線の右回り方向), left(軸基線の左回り方向), both(両側)から選択。
範囲最小値、範囲最大値 目盛線を付ける軸スケールの範囲を指定する。両方共に0の時は、軸全体に目盛が付けられる。
線種 目盛線の種類。 点線の長さ、間隔を詳細に指定するには、"100 10" の様に点線の繰り返し要素の長さを指定する。
目盛線の色。
長さ1, 2, 3 目盛線の長さ。目盛線のスケールの細かい方から幅1, 2, 3とする。
線幅1, 2, 3 目盛線の幅。目盛線のスケールの細かい方から幅1, 2, 3とする。
目盛数字
位置 none(目盛線なし), right(軸基線の右回り方向), left(軸基線の左回り方向), both(両側)から選択。
開始点、個数 目盛数字はスケールの「増分」(あるいはその整数倍)毎に付けるが、何番目から付けるかを「開始点」で、 付ける個数を「個数」で指定する。 「開始点」が0で初めから付けられ、「個数」が-1で最後まで付けられる。
間隔 目盛数字をスケールの「増分」の整数倍毎に付ける場合、その整数倍の値。 0で自動設定。
+付加 目盛数字が0または正の値の時、+を必ず追加する。
小数部桁 目盛数字の小数部の桁数。
先頭 各目盛数字の先頭に付ける文字列。
後続 各目盛数字の後続に付ける文字列。
日時書式 スケール法が MJD の時の日時書式を指定する。利用できる設定につい ては strftime(3) を参照。
位置合わせ center(中心揃え), left(左揃え), right(右揃え), point(小数点位置揃え)から選択。
方向 目盛数字の文字描画の方向。
平行シフト量 目盛数字の位置を軸基線に平行にずらす。
垂直シフト量 目盛数字の位置を軸基線に垂直にずらす。
ベキ形式(ログ) 対数グラフの目盛数字を 1, 10, 100 とするか 10^0, 10^1, 10^2 とするかの指定。
ゼロ非表示 0の目盛数字を描画しない。X軸-Y軸の (0,0) をまとめて一つの 0 としたい場合に、このオプションを使って 0 を表示しないようにして、手動で 0 を入れる。
自動スケール 目盛数字がここで指定する桁数より大きく(100000の様に)、あるいは小さくなった場合(0.00001の様に)には正規化され、[1x10^5] の様な凡例が軸に付けられる。
"日時書式" で利用できる変換指定の文字は以下のとおり。
%a曜日の省略名。
%A曜日。
%b月の省略名。
%B月の完全な名前。
%c%a %b %e %T %Y と同等。
%C世紀 (西暦年の上 2 桁)。
%d月内通算日 (01-31)。
%D%m/%d/%y と同等。
%e %d と同様に月内通算日を 10 進数で表現するが、 1 桁の場合 10 の位 にゼロを置かずスペースを置く。
%F%Y-%m-%d と同等。
%G ISO 8601 週単位表記の年。世紀も 10 進数で表す。 ISO 週番号 (%V を参照) に対応した 4 桁の西暦年。こ れは基本的には %Y と同じ形式だが、ISO 週数が前年や 翌年になる 場合にはその年が使用される点が異なる。
%g%G と同様。但し、世紀を含まず下 2 桁のみを表示 (00-99)。
%H24 時間表記での時 (00 to 23)。
%I12 時間表記での時 (01 to 12)。
%j年の初めから通算の日数 (001 to 366)。
%k24 時間表記での時 (0-23)。1 桁の場合には前にゼロでなくスペースが置かれる。
%l12 時間表記での時 (0-23)。1 桁の場合には前にゼロでなくスペースが置かれる。
%m月 (01 to 12)。
%M分 (00 to 59)。
%n改行。
%p"AM" または "PM"。
%P"am" または "pm"。
%r%I:%M:%S %p と同等。
%R%H:%M と同等。
%S秒 (00 to 60)。
%tタブ文字。
%T%H:%M:%S と同等。
%u週の何番目の日 (10 進数表記) か。月曜日を 1 とする (1 to 7)。
%U 年の初めからの通算の週番号 (10 進数表記) (00-53)。 その年の最初 の日曜日を、第 1 週の始まりとして計算する。 %V と %W も参照する こと。
%V ISO 8601 形式での年の始めからの週番号。 10 進 数表記で、01 から 53 の値となる。週番号は、 新しい 年が少なくとも 4 日以上含まれる最初の週を 1 として 計算する。 %U と %W も参照のこと。
%w週の何番目の日 (10 進数表記) か。日曜日を 0 とする (0 to 6)。
%W 年の初めからの通算の週番号 (10 進数表記) (00-53)。その年の最初 の月曜日を、第 1 週の始まりとして計算する。
%x%D と同等。
%X%T と同等。
%y西暦の下2桁 (世紀部分を含まない年) (00 to 99)。
%Y西暦年。
%z+0000
%ZGMT
%+%a %b %e %T %Z %Y と同等。
%%'%' 文字。
フォント
ポイント 目盛数字の文字の大きさ(ポイント)。pt単位で指定。
文字間 文字の間を空けたいときに pt 単位で指定。
スクリプトサイズ 上付き、下付き文字を通常の文字の何パーセントにするかを %単位で指定。
フォント 目盛数字のフォント。
太字、斜体 フォントのスタイル指定。
目盛数字の色。
位置
X, Y, 長さ、方向 軸の位置、長さ、方向を指定。通常の使用ではグラフ上でマウ スを使ってグラフの位置、形状を変えるか、軸をダブルクリックして現 れるグラフダイアログボックスで変更するが、それではできない変更 (グラフを構成する軸を個別に変更したい場合等)をしたい時に指定する。
交差軸 交差グラフで交差するもう一方の軸。
交差位置 交差グラフでもう一方の軸と交差する位置をスケールの「増分」単位で指定する。0で自動設定。



 

グリッド・ダイアログボックス



X軸、Y軸 グリッドを付ける2つの直交した軸を指定する。 軸の通し番号ではなく、実行時に決まる一意の番号(Axis タブの行末に表示される^で始まる数字)で指定するが、コンボボックスのリストには軸の名前で一覧表示される。
Xグリッド描画、Yグリッド描画 それぞれのグリッド線描画の有無を指定する。
線種1, 2, 3 グリッド線の種類。グリッドのスケールの細かい方から線種1, 2, 3とする。 点線の長さ、間隔を詳細に指定するには、"100 10" の様に点線の繰り返し要素の長さを指定する。
線幅1, 2, 3 グリッド線の幅。グリッドのスケールの細かい方から幅1, 2, 3とする。
グリッドの色。
背景、背景色 「背景」をチェックすると、グラフの背景を一様に「背景色」で塗りつぶす。



 

レジェンド(凡例)・ダイアログボックス

共通項目
線種 線の種類。点線の長さ、間隔を詳細に指定するには、"100 10" の様に点線の繰り返し要素の長さを指定する。
線幅 線の幅。
マイター マイターリミット。折れ線の角で輪郭をどこまで描画するかを決める。
ジョイン 折れ線の角の輪郭形状。
レジェンドの色。
パス
座標 直線、曲線、多角形の場合に点列の座標を指定する。「追加」「削除」のボタンで座標を追加または削除できる。また、行をドラッグすることで座標の順番を変えることが出来る。
タイプ 「直線」「曲線」から選択。
補間法 曲線の描画に使われる補間法。「スプライン」,「閉スプライン」,「Bスプライン」, 「閉Bスプライン)」から選択。 Bスプラインを使うには座標点が7点以上必要。
ストローク 輪郭を描画する。
パスを閉じる 終点と始点を直線で結ぶ。
矢印 直線に矢印を付加する。なし, 「始点」, 「終点」, 「両方」から選択。
塗りつぶし 内部を塗りつぶす。
ルール 塗りつぶしの方法。even_odd_rule, winding_rule から選択。
スライダ 矢印の形状、大きさを指定する。縦スライダは矢尻の幅、横スライダは矢尻の長さを、それぞれ線幅を単位にして 10,000 倍した値を指定する。 矢尻の形状はグラフィカルに表示され、先端の角度も表示される。
四角形
X1, Y1, X2, Y2 四角形の座標。
塗りつぶし 四角形の内部を「色」で塗りつぶす。
ストローク 四角形の輪郭を「色」で描画。
X, Y, RX, RY 円の中心座標(X,Y) とX方向半径 RX, Y方向半径 RY。
開始角、円弧角 円弧は「開始角」から反時計回りに「円弧角」だけ描画される。1度単位。
扇形 円の中心を円弧の端を結んだ扇形として描画する。
ストローク 扇形または弦形の輪郭を「色」で描画。
パスを閉じる 扇形の場合は円の中心を円弧の端を結んだ扇形として描画する。扇形 でない場合は円弧の端を直線で結ぶ。
塗りつぶし 扇形または弦形として塗りつぶす。
マーク
X, Y マークの中心座標。
マーク マークの種類。
サイズ マークのサイズ。
色1, 色2 マークの第一色「色1」と第二色「色2」。
テキスト
X, Y テキストの左下端(方向0の時)の座標。
テキスト 文字列中に制御文字を入れる事で、フォントを文字列単位で変えたりが可能。詳細はテキスト描画の制御文字を参照。
ポイント、文字間 文字のポイント数(pt単位)と文字間のスペース(pt単位)。
スクリプトサイズ 上付き文字、下付き文字を、通常の文字の大きさの何パーセントの大きさにするかを %単位で指定する。
フォント 使用するフォント。
太字、斜体 フォントのスタイル指定。
方向 文字列を描画する方向。1度単位。
Raw テキスト描画の制御文字の機能を無効にし、「テキスト」の文字列をそのまま描画する。
ガウス関数
ガウス関数、ローレンツ関数、放物線、三角関数。 選択した関数形をもつレジェンド「曲線」を生成する。ダイアログボックスを閉じた時点で「曲線」に展開される。
分割数 曲線に展開する際に、関数形を何分割するかを指定。
上、下、左、右 関数形の方向。
スライダ 関数形を変更する。



 

合成ファイル・ダイアログボックス



ファイル名 GRAファイル(*.GRA)のファイル名を指定する。
左マージン、上マージン 合成ファイルを合成する位置。
ズーム 合成ファイルを拡大、縮小して合成する際の拡大率。%単位。



 

グラフの読込、保存・ダイアログボックス

グラフの読込
データの展開 データファイルや合成ファイルを含めた形でセーブした NGP ファイルを読む際に、それらファイルを展開する。
展開フォルダ 「データの展開」によってファイルを展開するフォルダ。デフォルトはカレントフォルダ(.\)。
パス情報無視 データファイルや合成ファイルのパス情報(フォルダ名)を無視し、それらファイルがカレントフォルダにあるものとして取り扱う。
グラフの保存
パス情報 データファイルや合成ファイルのパス情報を保存する方法。「変更しない」(設定のまま), 「フルパス」(絶対パスに変更), 「総体パス」(カレントフォルダからの相対パス), 「ファイル名のみ」(パス情報なし)から選択。
データファイルを含める NGPファイル中にデータファイルも含める。
合成ファイルを含める NGPファイル中に合成ファイル(GRAファイル)も含める。
RPMファイル
パス情報無視 データファイルや合成ファイルのパス情報(フォルダ名)を無視し、それらファイルがカレントフォルダにあるものとして取り扱う。



 

描画順・ダイアログボックス


描画オブジェクト(描画順) このリストボックスに指定されたグラフィックスオブジェクトが、その順番で描画が行われる。 空白の場合はデフォルトの描画順(右の「オブジェクト」リストの順)で全てのオブジェクトが描画される。
追加、挿入 右の「オブジェクト」リストで選択されているオブジェクトが、「描画オブジェクト(描画順)」のリストに追加、挿入される。
最初へ、最後へ、上へ、下へ 「描画オブジェクト(描画順)」のリストで選択されているオブジェクトの順番を変更して最初、最後、上、下に移動する。



 

その他設定・ダイアログボックス



エディター データダイアログボックスの「Edit」、Data タブのポップアップメニューの「Edit」で、データファイルを編集するために起動されるエディター。
ヘルプ・ブラウザ ヘルプを表示するためのブラウザ。
ウェブ・ブラウザ ウェブ・ブラウザ。
パス情報、データファイルを含める、合成ファイルを含める 「グラフの保存」ダイアログボックスの初期状態を決める。
データファイルの展開、展開ディレクトリ、パス情報無視 「グラフの読込」ダイアログボックスの初期状態を決める。
補完履歴のサイズ テキスト、数式変換の入力補完のために保存される件数を指定する。
Information 表示の行数 Information 表示の行数を指定する。
データプレビューの行数 データ・ダイアログボックスに表示されるデータプレビューの行数を指定する。
データプレビューのフォント データ・ダイアログボックスに表示されるデータプレビューのフォントを指定する。
coordinate 表示のフォント coordinate 表示に使われるフォントを指定する。
information 表示のフォント information 表示に使われるフォントを指定する。
「カレントディレクトリを移動」をチェック ファイルを選択するダイアログボックスを開いた時、「カレントディレクトリを移動」が初期状態でチェックされているようにする。
不透明度を使う グラフやレジェンドの色指定で透明度を使用するかどうかを設定する。 ただし、PostScript など不透明度に対応していないフォーマットにエクスポートする時は不透明度設定を使った部分がビットマップで出力されることがある。



ngraph-gtk-6.06.13/doc/html/ja/Makefile.in0000644000175000017500000005630512241364550015035 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc/html/ja DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_html_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(htmldir)" "$(DESTDIR)$(htmldir)" DATA = $(dist_html_DATA) $(nodist_html_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = $(docdir)/html/ja includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ngraphconfdir = $(sysconfdir)/$(PACKAGE) dist_html_DATA = addin.html copyrigh.html data.html gra.html math.html \ ngraph.html operate.html refer.html text.html tutorial.html nodist_html_DATA = object.html intro.html script.html EXTRA_DIST = object.html.in intro.html.in script.html.in CLEANFILES = intro.html script.html DISTCLEANFILES = object.html SUBDIRS = tutorial dialogs all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/html/ja/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/html/ja/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_htmlDATA: $(dist_html_DATA) @$(NORMAL_INSTALL) @list='$(dist_html_DATA)'; test -n "$(htmldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ done uninstall-dist_htmlDATA: @$(NORMAL_UNINSTALL) @list='$(dist_html_DATA)'; test -n "$(htmldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(htmldir)'; $(am__uninstall_files_from_dir) install-nodist_htmlDATA: $(nodist_html_DATA) @$(NORMAL_INSTALL) @list='$(nodist_html_DATA)'; test -n "$(htmldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ done uninstall-nodist_htmlDATA: @$(NORMAL_UNINSTALL) @list='$(nodist_html_DATA)'; test -n "$(htmldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(htmldir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(htmldir)" "$(DESTDIR)$(htmldir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dist_htmlDATA install-nodist_htmlDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-dist_htmlDATA uninstall-nodist_htmlDATA .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_htmlDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-nodist_htmlDATA \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am \ uninstall-dist_htmlDATA uninstall-nodist_htmlDATA object.html: ../../../src/ngraph object.html.in ../objlist.nsc cat object.html.in > object.html ../../../src/ngraph -i ../objlist.nsc >> object.html intro.html: intro.html.in Makefile sh ../../../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" intro.html.in script.html: script.html.in Makefile sh ../../../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" script.html.in # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/doc/html/ja/ngraph.html0000644000175000017500000001334212241111711015114 00000000000000 Ngraph-gtk User's Manual

Ngraph-gtk User's Manual

Ngraph logo

Copyright (C) 2002, Satoshi ISHIZAKA.


  1. Ngraphの概要
  2. チュートリアル
  3. 操作方法
  4. リファレンス
  5. データファイル
  6. データの加工
  7. フォント/テキスト
  8. GRAファイル
  9. Ngraphスクリプト
  10. Ngraphオブジェクト
  11. アドイン
  12. その他
ngraph-gtk-6.06.13/doc/html/ja/script.html.in0000644000175000017500000001725612241111711015556 00000000000000 Script  

Ngraphスクリプト




 

概要


Ngraph はスクリプト言語(Ngraph スクリプト)のインタープリタを備えています。 グラフの設定(実際には各オブジェクトOBJECTのフィールド値)もNgraph スクリプト形式で保存されます。




 

スクリプトの文法


Ngraph スクリプトの文法は, UNIX の sh (シェル) からジョブ制御機能を取り去り, オブジェクト操作命令を追加したものになっています。

shと同等の文法・コマンドは以下の通りです(sh の文法の詳細については UNIX のマニュアルを参照してください)。

コマンド

name1=val1 name2=val2 ... command arg1 arg2 arg3 ...

コメント

# comment

制御構造

(for, case, if, while, until 文)

for name [in word] do list done
case word in [pattern [|pattern] ...list;;] ... esac
if list then list [elif list then list]...[else list] fi
while list do list done
until list do list done

関数定義

name() { list; }

({}は常に必要)

ファイル名置換

*?[]

コマンド置換

`command`

変数定義

name=value [ name=value ] ...

変数置換

$# $? $num $* $@
${name}
${name:-word}
${name:=word}
${name:?word}
${name:+word}
${name#word}
${name##word}
${name%word}
${name%%word}

リダイレクト・パイプ

< file
<<[-]word
> file
>> file
command | command

特殊コマンド

:
. file
break [n]
continue [n]
cd
echo [-q]
eval [arg]
exit [n]
export [name]
pwd
return [n]
set
shift [n]
unset
test
[
sleep
true
false
read [val]
seq [last | first last | first incr last]
basename name [suffix]
dirname name
which [-q]



独自に追加した文法・コマンドは以下の通りです。


オブジェクト定義

(objectのinstance_listのfieldにvalueを設定)

object:instance_list:field=value

オブジェクト置換

(objectのinstance_listのfieldの値)

${object:instance_list:field=argument}

オブジェクト操作コマンド

new object [field=value, ...]
del object:instance_list
exist [-q] object:instance_list
get object:instance_list [-write -field -id -quote] field=argument ...
put object:instance_list field=value ...
exe object:instance_list field=argument ...
cpy object:source,destination[,destination,...] field ...
dup object:instance_list
move object:instance1,instance2
movetop object:instance
movelast object:instance
exch object:instance1,instance2
object [object1 object2 ... [-name -version -parent -id -field -size -current -last -instnace -instances] [field ...]]
derive [-instance] object

評価コマンド

(数式expを評価)

dexpr exp
iexpr exp




 

スタートアップスクリプト


Ngraph は実行時に
  1. ~/.Ngraph
  2. CONFDIRDEF
をこの順番で検索し, はじめに見つかったスタートアップスクリプトファイル (Ngraph.nsc) を自動的に読み込みます。

コマンドラインオプション

-i script_name

でスタートアップスクリプトを明示的に指定する事もできます。
スタートアップスクリプトファイルは Ngraph 独自のマクロ言語 (Ngraph スク リプト) で記述されており, ユーザがカスタマイズすることもできます。

  • Ngraph のコマンドラインオプションは(上記 -i オプションを除いて)全てスタートアップスクリプトファイルに渡されます。
  • 配布状態では, スタートアップスクリプトファイルは
    1. 起動するユーザインターフェースの指定(system::login_shell)
    2. アドインスクリプト設定メニューの登録
    3. Ngraph.ngp の読込 (Ngraph.ngp は[設定]-[初期状態として保存(グラフ)]で作成できます)
    4. コマンドラインオプションの解析
    を行います。



 

コマンドラインオプション


Ngraph を起動する時のコマンドラインオプションの形式は

ngraph [-i script_name] [option1 option2 ...]

で、-i オプションでスタートアップスクリプトを指定します。 残りのオプションは全てスタートアップスクリプトに渡され、その中で解析されます。 スタートアップスクリプトはユーザがカスタマイズする事ができるので、独自のコマンドラインオプションを作成する事ができます。

配布状態のスタートアップスクリプト(Ngraph.nsc)で有効なコマンドラインオプションは以下の通りです。
-x num
x 軸のデータカラムを num にします。
-y num
y 軸のデータカラムを num にします。
-X -U
データの x 軸をそれぞれ X, U 軸にします。
-Y -R
データの y 軸をそれぞれ Y, R 軸にします。
-d type
プロットタイプを type にします。
-m num
マークを num にします。
-o num
マークのサイズ num にします。
-l sylte
線種を style にします(-l "100 100" の様に指定)。
-w num
線幅を num にします。
-cr R -cg G -cb B
プロット色を R G B にします。
-CR R -CG G -CB B
第二プロット色を R G B にします。
-s num
先頭スキップ行を num にします。
-r num
読込ステップ行数を num にします。
-f num
最終行数を num にします。
-vx num
x 隣接平均数を num にします。
-vy num
y 隣接平均数を num にします。
-mx math
x 変換数式を math にします。
-my math
y 変換数式を math にします。
-ex type
x 軸のスケール方法を type (linear, log, inverse) にします。
-ey type
y 軸のスケール方法を type (linear, log, inverse) にします。
-minx min -maxx max -incx inc
x 軸のスケールを min, max, inc にします。
-miny min -maxy max -incy inc
y 軸のスケールを min, max, inc にします。
-g
データファイルから設定を読み込みます。
-png file -pdf file -ps file -eps file -svg file -gra file
ngp ファイルをそれぞれの画像ファイルに変換します。
-p ngp_file
ngp_file を印刷します。
-P
ngp ファイルを外部ドライバを利用して印刷します。



ngraph-gtk-6.06.13/doc/html/ja/dialogs/0000755000175000017500000000000012241600065014453 500000000000000ngraph-gtk-6.06.13/doc/html/ja/dialogs/datamath.png0000644000175000017500000012372612241111712016673 00000000000000PNG  IHDR$`bsRGBbKGD pHYs   IDATxexTGݻ'!!ŋ)R\"E )݋@q)P+E<~?6d ktU_ HIB' bP(ҕ Lh4BBuy鉷7 gMHd *DFBCC #:*_ |:"h4wA6HnݺF *m})aaarS ,RDP`6­&Wш`TAdZ,5ʛ7/ohsL*_x] >$qqq m `Nш\.G.c20Mlb_Ex\n!N&ƀ6{~ݽ{7].?((___`/$a˗/$Ir *3c`lH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000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc/html/ja/dialogs DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_htmldialog_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(htmldialogdir)" DATA = $(dist_htmldialog_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ htmldialogdir = $(docdir)/html/ja/dialogs dist_htmldialog_DATA = axis.png axisbase.png axisfont.png \ axisgage.png axisnum.png axispos.png data.png dataplot.png \ datafit.png dataload.png datamask.png datamath.png \ datamove.png grid.png lgndarc.png lgndgaus.png lgndpath.png \ lgndmark.png lgndrect.png lgndtext.png loadngp.png \ loadprm.png merge.png pageord.png prefmisc.png save.png all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/html/ja/dialogs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/html/ja/dialogs/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_htmldialogDATA: $(dist_htmldialog_DATA) @$(NORMAL_INSTALL) @list='$(dist_htmldialog_DATA)'; test -n "$(htmldialogdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldialogdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldialogdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldialogdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldialogdir)" || exit $$?; \ done uninstall-dist_htmldialogDATA: @$(NORMAL_UNINSTALL) @list='$(dist_htmldialog_DATA)'; test -n "$(htmldialogdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(htmldialogdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(htmldialogdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_htmldialogDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_htmldialogDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_htmldialogDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_htmldialogDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/doc/html/ja/dialogs/merge.png0000644000175000017500000004062512241111711016202 00000000000000PNG  IHDR=QsBITOtEXtSoftwaregnome-screenshot> IDATxu@l/ݥ"&bݍ݁Sz|vwb+(vt7lX\-v)Y`fs윙{/ B_mʯ6@h [Bx_m"M׿ ͚5iJDEz-oQ@T$qZߢDH![B@mٹz6ӯoo5(-/MmW[m WJ" [B@-B'ax:=x۰C_mQ^ y9l$ [K%A~KoPƪxS}+?Mi0 ~lЄ/_ϩ_E/x!$*p U{!UlgZ[XX89Z;oQ99e5lջ2NqRu^;-, ﷎ئQzMqJ..LHC=x](9}g+z6sй\50$rjb^۪iz&,<.Dhܰ 5l$f=3pIJ!Woj)q+xW̍7 G~u#*ièeSsr '%ht=6SWB\L`4&+.9˱|XfW絀kfO^hu] e<9`ڗle'^@fzl6aT&K\wޘ!&n t .J]1thrUɖs#'ВͦخzR4Ug'-~̢)npEzF;ޯq zkK^QTP3_u- j6 Ph{v6X%?PَF+37e(JR0*Z'2-͌d+%1L28.Hν*mA~2FO}! DѼ3ϩ«Ԉ3yE6^xg©O׋,Ƿ4,ݭ NM9^dHx/,*/K\\>wJCl8!T%c wĔu7un>aWϹ9yU Z?o~DvwyG,bl '^).5{MP=su#Y}9.{ ~EiBT3 ֞{la؄Ź\Sis$;TUW }xDu-5 $^jL4Z%?RL>`C Y/075fbZ1V!_\rE\QWsEiڽ/"FeKmqƍ7]6۸qҩ&$#ol'm$W%^ 4ce{'N3Fo>ہ}.=PîHe2|y^ݎO Cϟ?MS. kf.rz"jɽQ(ņu5uNk-X ۳l;ی8U<?{c݌L3^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b;CI9f]eOgSz&IS:q(JS \YՀN՜ ֱ6t7E }U;yιD7Ͼ|0OʔB=-”%yR^{!i#ٖϘ4t.lu1m\7߷ \sG; _E7۲3P?ڀK]cF@1NY17 WxjQ~khcH$N7!p p$I%Z[ɲTl{$I2!ᲅz.a"!R 'M7 $~Y/,AQY1Cˌ|&)֮(L6i] l5uhz\QGg"sUŬu`.[9GMMͥZ;gi.شoy_T`bbjjfVB"+l۹gTQQ!cċ4)_|7uMC5oy@u`5D4$O$dX}1qC͑?FWhnbxDB [cXZ1wnl=/aր@MJ^y@Vl՚BLO4#QIwg,,;Yau>#l,˞dþj-##wzI :PjӒdYiĩ8p,I,p [r<}`Gx{ *^Kd+Ie6.uNOI!`¹mXkL]]7 "s:ډUh-}6"-&oL%iͭXRqH=~K޾B+di!~y^y~u!TxqSՆ;FG $@psa7SO5s#% yG鑷RєJƥ K.֕w "xUZd~;׺VA@.oq3cl;}2ϥJ=:+}Қ5D4 Ċ wWVSGNJ2rQO1TX4&nT]VUCyK X+x$J$&JbPGUyJ%klvjkH4 MVf8X(.\PMhH4h-11[R*QP B@"A+@d A@ X+gy:IENDB`ngraph-gtk-6.06.13/doc/html/ja/dialogs/Makefile.am0000644000175000017500000000061412241111712016424 00000000000000htmldialogdir = $(docdir)/html/ja/dialogs dist_htmldialog_DATA = axis.png axisbase.png axisfont.png \ axisgage.png axisnum.png axispos.png data.png dataplot.png \ datafit.png dataload.png datamask.png datamath.png \ datamove.png grid.png lgndarc.png lgndgaus.png lgndpath.png \ lgndmark.png lgndrect.png lgndtext.png loadngp.png \ loadprm.png merge.png pageord.png prefmisc.png save.png ngraph-gtk-6.06.13/doc/html/ja/dialogs/lgndtext.png0000644000175000017500000014660512241111712016742 00000000000000PNG  IHDR-ksBITOtEXtSoftwaregnome-screenshot> IDATxg@3i$tP!vUQQ..6D+" ņ+kbC\PQiJ'=~CI@$~:wܹs3ML!!RRwB\u7!PB!ulu!Pͅ!BDӧmGu$7v2BI!i2ӨxBHLr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kh$ɞBΕױ5{Լ̌P[2NĐ b׮ fxtF:Z(,, ɱԕp_jPO>KurH ̣h8UCUUЪgDoNZ`!ݤu! hꫨx `07"֤öq!љF J)`:P4{{xPWC%!bHoDmNDCP_Co{ !K# ىh( kXPP 454l6qAAe# H  ;$C" Ȓ    H  fko%9IENDB`ngraph-gtk-6.06.13/doc/html/ja/dialogs/lgndrect.png0000644000175000017500000006627512241111711016716 00000000000000PNG  IHDRkUsBITOtEXtSoftwaregnome-screenshot> IDATxe@Mǟ[[PQ1P,PPlV l; Þq>(;3;3w !!!)tA$$$5jUwCZCGQ@BBRS!uC'{]\MS xR$5&$a+AHAD=%8P!@& .m. I!- IQ)[U݅Je~R)GpR73[4|"ٿ}]\nvBФ.{NQćhz7a+MId:H-JxxMŢ2u(yQTvF}[h)a$WC%}e#¢ 6n}oЄ֥gfu [m> _wԥɨD&͕mI333FPP( ֭[>}jٲYPǑLA.>JEF ^Ofc3A~ڶ׈C:[guZs۪㹠/ li@N8p|YuxJʮae@m Ցr1%B CY,3F7L+s[e[qp_wu. Rt^ 1ۥ! >1n˷W_7s=hm8B=UӔj2}‚G``)P):th{eC%EbAc =qk׮SǕ pgtTI !v.q-u.AQLqsŹsqXYD!KVz% ocr)MY@wT\lV>NTPQ$Enn3ݫ;::%!%>O5jӭT: ccw/ud׵΢PWKF&co"JofOwѩ_{6Z# QÓOxN|>ՆS74BhGM %NR2 ̡,R4K% agϞe1yyqʼnϞ=PL i/|oZON>u&gnpc٣[[K)qX=UnL!,:=qV7P^Wnrޙztմ0 NSb$bZ}G?uhjm6Atj0u=ahztAAlԋC~HBK̒DEϹFkI&Cp% ֭+gyowwwI>" ųWڋ&ue24Fw!jїkdQbTͣK,ru vi^hgB>C$Dh̸#޿f9W$l}#.iffv zRz 4MY8lvZL!K3g¢Y=+g|')uY*ȒAͤހї}ŪchMP,IėϯxCy݉Ø8C2K.&" ^^GlN m<^HO|FiB(W ,^/b knN_e(Y 2R:>n;q2V~: rK|zLLґ&D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0˔PD1IQ8ɤh YH|$Qr1hTGz1(n^~,E;h%?etmg|9:}0mZr9}~DC5@VK&]Ϳ+*A~쿎a7.ܸr_\%=iu4t0 &xkqݾd檀Ew=/ܲu:NӭLFTf׺ǷבS"⾣3 YjE/f ~K 1I8T^(gnZwEB3H2h"zHQ^))'Vic'n}V|k Zskȏ/JIINNJ)!%y]vN>5ccq|i،8EFNRgigJ~{GmLV9vZRHqs魝2cXBhnTIBbbels=Sj<CW̍g _ޮr_ii2b[U@aؚ"?#%xpWNEZ5<+9qjV666arxe^k7[@c֑uzwl V0sTzrf0cWWXa^KV02Ff d*jH_{/m]g )x6ڬLô7o=do FzdC[[c絻dӁ=65]~.; ;*c%;=:81.Ԧc`ŊI,9QzP?kjq5 3cmUlNkH~Y*jYݼ+Գލ+N}~G̭ Hai~^^^~;Ep7ξ} 929_hu=w{UC\N? s;Vw͏k$)z? MJ*gP)P#߿~<|wgA@:XB@"XB@:XB@bB?D=3QTIENDB`ngraph-gtk-6.06.13/doc/html/ja/intro.html.in0000644000175000017500000000761612241111712015405 00000000000000 Introduction  

Ngraphの概要




 

Ngraphとは?


  • Ngraph は理工系学生、研究者、技術者のために作られた2次元グラフ作成 プログラムです。
  • 汎用性のあるテキストファイルから数値データを読み込みグラフにプロッ トすることができます。
  • プレゼンテーション用、論文用グラフの作成ができます。
  • 簡単なデータ解析をアシストします。



 

使用規定・配布等


Ngraph, Ngraph for X11 の著作権は石坂智(いしざかさとし)が保有しています。

Copyright (C) 2002, Satoshi ISHIZAKA.

このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェ ア財団によって発行された GNU一般公衆利用許諾契約書(バージョン2か、希望 によってはそれ以降のバージョンのうちどれか)の定める条件の下で再頒布ま たは改変することができます。

このプログラムは有用であることを願って頒布されますが、*全くの無保証* です。商業可能性の保証や特定の目的への適合性は、言外に示されたものも含 め全く存在しません。詳しくはGNU一般公衆利用許諾契約書をご覧ください。

あなたはこのプログラムと共に、GNU一般公衆利用許諾契約書の複製物を一部 受け取ったはずです。もし受け取っていなければ、フリーソフトウェア財団ま で請求してください(宛先は the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA)。




 

環境設定


  • Ngraphをバージョンアップした際には、~/.Ngraph に作成された Ngraph.ini を削除するのを忘れないで下さい。そうしないと Ngraph.ini の構成が変更されたとしても古い Ngraph.ini がロードされてしまいます。

以下に、Ngraph が使用するファイルのディレクトリ検索順を記述します。

(1) 初期化ファイルの読込

Ngraphは2つの初期化ファイルを必要とします。

Ngraph.nsc
デフォルトのグラフスタイルの読み込みやコマンドラインオプションの解 析を行うスクリプトファイル。このスクリプトファイルは更に Ngraph.ngp を読み込みます。
Ngraph.ini
Ngraphの設定初期値を列挙したファイル

これらのファイル読み込みの検索順は以下の通りです。

  1. ~/.Ngraph
  2. CONFDIRDEF

(2) 初期化ファイルの書き込み

Ngraph 終了時には ~/.Ngraph に Ngraph.ini を作成します。また、 [Graph]-[save as default(Graph)] メニューでは Ngraph.ngp を作成します。 これらファイルの作成ディレクトリの優先順は以下の通りです。

  1. ~/.Ngraph
  2. CONFDIRDEF

(3) プリンタドライバ、アドインスクリプトの実行

プリンタドライバやアドインスクリプトなどの外部プログラムの検索順は以下の通りです。

  1. ~/.Ngraph
  2. DATADIRDEF
  3. LIBDIRDEF
  4. 環境変数 PATH



ngraph-gtk-6.06.13/doc/html/ja/operate.html0000644000175000017500000003033512241111712015276 00000000000000 Operation  

操作方法




 

ウィンドウ


Ngraph で使用するウィンドウを説明します。

Main Windowグラフが表示されているウィンドウです。マウスによる各種設定ができます

シングルウィンドウモードでない場合は下記のウィンドウも表示・非表示を切り替えて使用できます。

Data Windowを押すと開かれるウィンドウです。データファイルのパラメタを一覧表示します
Axis Windowを押すと開かれるウィンドウです。軸のパラメタを一覧表示します
Legend Windowを押すと開かれるウィンドウです。凡例のパラメタを一覧表示します
Merge Windowを押すと開かれるウィンドウです。マージするファイルのパラメタを一覧表示します
Coordinate Windowを押すと開かれるウィンドウです。Viewer Window 上のマウスカーソル位置の1mm単位での座標値を表示します。軸が設定されていれば対応する数値を表示します
Information Windowを押すと開かれるウィンドウです。フィッティングの結果を表示します



 

コントロールボタン


メニューの下のコントロールボタンを使って, より効果的にグラフを作成できます。 コントロールボタンではLegend位置のマウスによる入力や評価機能など,メニューにはない機能も割り当てられています。

次のボタンはシングルウィンドウモードの場合は表示されません。

Data Window を開きます
Axis Window を開きます
Legend Window を開きます
Merge Window を開きます
Coodinate Window を開きます
Information Window を開きます

データファイルを開きます。メニューの[データ]-[追加]と同じです
グラフの開いて読み込みます。メニューの[グラフ]-[開く]と同じです
グラフを保存します。メニューの[グラフ]-[保存]と同じです
軸の設定をクリアします。メニューの[軸]-[スケールクリア]と同じです
Viewer Window を消去し, 新たにグラフの描画を行います。その際, ファイルの選択を行わずに, 全設定データファイルの描画を行います
グラフを印刷します。メニューの[グラフ]-[印刷]と同じですが、ファイルの選択ダイアログは表示されません
グラフをプレビューします。メニューの[グラフ]-[印刷プレビュー]と同じですが、ファイルの選択ダイアログは表示されません
変換数式を複数のデータファイルにまたがって入力します
各軸の min, max, inc の設定を自動的に保存されている履歴に従って元に戻します

使用可能なコントロールボタン

次のボタンは Viewer Window でのマウス操作モードを設定します。

軸と凡例の選択, パラメタの変更をします。
凡例の選択, パラメタの変更をします。軸を選択することはできません。
軸の選択, パラメタの変更をします。凡例の選択をすることはできません。
データ点をクリックして、プロットパラメタを変更します。
直線・曲線を作成します。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
矩形を作成します。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
円・楕円を作成します。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
データプロット形式 "mark"に対応するマークを作成します。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
テキストを作成します。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
ガウス関数, ローレンツ関数, 放物線, 正弦曲線を作成します。作成した曲線はただちにレジェンド-曲線に展開されるので, 一度作成すると関数としての変更はできません。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
フレームグラフを作成します。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
方眼グラフを作成します。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
交差グラフを作成します。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
単独の軸を作成します。複数作成したいときは SHIFT キーを押しながらボタンを押してください。
指定した範囲に軸の最大・最小をトリミングします
マウスで指定した範囲内のデータ点の値を表示します。値の表示後, それらデータ点をマスクすることもできます
グラフの表示を拡大縮小します。マウス左ボタンで拡大、右ボタンで縮小します。SHIFTキーを押しながらマウスボタンを押すと、センタリングツールになります



 

マウスによる操作


Data タブ, Axis タブ, 各種 Legend タブ, Merge タブのパラメタ一覧では...
  • 左ボタンクリックでフォーカスします。
  • 左ボタンのダブルクリックでダイアログボックスをオープンします。
  • 右ボタンでポップアップメニューが現れ、各種操作が行えます。
  • いくつかのパラメタについては、選択されている行のカラムをクリックす るか、カーソルをそのカラムに移動して Shift + Enter でダイアログを 開かずに、直接設定の変更が出来ます。

グリッド: グラフ上では,凡例や軸の新規作成, 移動はグリッドに沿って行われます。
  • グリッドの大きさは [設定]-[ビューア] で行います。
  • SHIFTキー押下中はグリッドが解除されます。

オブジェクトの選択
  • グラフ上でLegendや軸の選択を行うときには選択したいグラフィックス オブジェクトに有ったマウスモードを選び(コントロールボタン のいずれかを選びます)、マウスでクリックするか、囲むようにして選択します。
  • グラフ上でLegendや軸の選択を行うときに、それらが込み合っていてマウス での個別選択が困難な時には、各種 Legend タブ、Axis タブで選択したい オブジェクトを選び[Space]を押します(あるいはポップアップメニューを出 して"Focus"メニューを選びます)。すると、対応するグラフィックスオブジェ クトがグラフ上で選択状態になります。SHIFT キーを押しながら [SPACE] を押すことで複数のオブジェクトを選択状態に出来ます。

複数点からなる凡例の作成
  • レジェンドの path の作成: 複数の点をマウスで指定します。
  • 作成を終了: 左ボタンをダブルクリックします。
  • ひとつ前の点の入力に戻る: 右ボタンをクリックします。
  • 凡例の作成後はマウスモードが直前に選択されていたオブジェクト選択モー ドになります。複数の凡例を一度に作成したい場合は SHIFT キーを押しな がらコントロールボタンを選択することで、凡例の作成後もマウスモード が変わらなくなります。



 

数値パラメタ

いくつかのダイアログボックスの数値入力では数式を用いることができます。

例えば軸ダイアログボックスの「増分」に PIを入力すれば 3.141592653589793e+00 が入力されます。




ngraph-gtk-6.06.13/doc/html/ja/Makefile.am0000644000175000017500000000164512241111711015006 00000000000000ngraphconfdir = $(sysconfdir)/$(PACKAGE) dist_html_DATA = addin.html copyrigh.html data.html gra.html math.html \ ngraph.html operate.html refer.html text.html tutorial.html nodist_html_DATA = object.html intro.html script.html EXTRA_DIST = object.html.in intro.html.in script.html.in htmldir = $(docdir)/html/ja object.html: ../../../src/ngraph object.html.in ../objlist.nsc cat object.html.in > object.html ../../../src/ngraph -i ../objlist.nsc >> object.html intro.html: intro.html.in Makefile sh ../../../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" intro.html.in script.html: script.html.in Makefile sh ../../../pathconv.sh "$(bindir)" "$(docdir)" "$(pkglibexecdir)" "$(pkglibdir)" "$(pkgdatadir)" "$(ngraphconfdir)" "$(pixmapdir)" script.html.in CLEANFILES = intro.html script.html DISTCLEANFILES = object.html SUBDIRS = tutorial dialogs ngraph-gtk-6.06.13/doc/html/ja/math.html0000644000175000017500000007736612241111712014607 00000000000000 Math  

データの加工




 

概要


描画は隣接平均, 数式変換などデータの加工を行った後に行われます。 グラフを作成する際その処理手順を意識することが重要な場合があります。 以下にデータの流れを示します。

データファイル

数式変換

マスクされたデータを削除

移動されたデータを移動

隣接平均

[曲線の補間係数, 最小二乗フィットの係数を求める]

出力(グラフ描画)

ロググラフを作成する場合, 曲線の補間はデータを対数変換した後に行われるので通常の線形グラフとロググラフでは結果が異なります。 最小二乗法に関してはロググラフでも通常の線形グラフと同じ係数を求めます。



 

数式変換で使用できる数値リテラル


1
1.0
1.0E3

浮動小数点

0xffff

16進整数

0b1011

2進整数

0o377

8進整数

数字が連続している部分は見やすくするため任意の箇所に空白を入れることが出来ます (例 123 456.789 E8) 。




 

数式変換で使用できる定数


PI円周率
E自然対数の底
EULERオイラーの定数
NAN欠損データ エラー表示
UNDEF欠損データ エラー非表示
CONT欠損データ (データ線は結合)
BREAK欠損データ (データ線は分断)
NUMデータの個数
MINX(X) column の生データの最小値
MAXX(X) column の生データの最大値
MINY(Y) column の生データの最小値
MAXY(Y) column の生データの最大値
SUMX(X) column の生データの和
SUMY(Y) column の生データの和
SUMXX(X) column の生データの二乗和
SUMYY(Y) column の生データの二乗和
SUMXY(X) column, (Y) column の生データの積和
AVX(X) column の生データの平均
AVY(Y) column の生データの平均
SGX(X) column の生データの標準偏差
SGY(Y) column の生データの標準偏差
FIRSTdiagonal, errorbar など一行のデータで2回の変換が行われる場合、1回目の呼出しで真(=1)、2回目の呼出しで偽(=0)
MASKマスクに設定された行数
MOVE移動に設定された行数
COLX「X カラム」に指定された数
COLY「Y カラム」に指定された数
AXISX「X 軸」に指定された axis オブジェクトの ID
AXISY「Y 軸」に指定された axis オブジェクトの ID
HSKIP「先頭スキップ行」に指定された行数
RSTEP「読込ステップ行」に指定された行数
FLINE「最終行」に指定された行数
FILE_OBJfile オブジェクトのオブジェクト ID
PATH_OBJpath オブジェクトのオブジェクト ID
RECT_OBJrectangle オブジェクトのオブジェクト ID
ARC_OBJarc オブジェクトのオブジェクト ID
MARK_OBJmark オブジェクトのオブジェクト ID
TEXT_OBJtext オブジェクトのオブジェクト ID
%Dデータファイルの番号
%Nデータファイルの数



 

定数定義


const x:exp x は英字で始まり英数字または _ から構成される文字列、exp は任意の数式。
  • 既存の定数は上書きできません。
  • 数式 exp は数式変換実行時ではなく構文解析時に解釈されます。
  • 数式 exp 中ではパラメータ、関数 sum(), dif() は使用できません。



 

数式変換で使用できるパラメータ


%0データを読み込んだ順番に1から番号をつけたときの値
%1〜%999同一行中 1〜999 カラムの生データ
%Fxx1〜%Fxx999データファイル xx の同じ行の 1〜999 カラムの生データ



 

数式変換で使用できる変数

変数は X, Y の変換式で独立です。


E, X, Y 以外のアルファベット一文字ユーザが自由に使用できます (代入されていない変数は 0 に初期化されています) 。
X(X)column の生のデータ (変数への代入は可能ですが、データ読込時に生データで上書きされます)
Y(Y)column の生のデータ (変数への代入は可能ですが、データ読込時に生データで上書きされます)



 

配列


x[n] x は英字で始まり英数字または _ から構成される文字列、n は任意の数式。
未代入の配列要素は 0 に初期化されています。
配列の添字は整数に丸められます。
配列の添字の上限は 65535 です。
配列の添字に負の数値を使用した場合、配列の末尾からのインデックスとみなします。



 

ユーザ定義関数


def func(a,b,...) {exp} 仮引数 a, b, ... の関数 func を定義します。
配列を渡すときは仮引数を @a の様に指定してください。配列は参照渡しとなります。
exp には任意の数式を指定できますが、以下の制限があります。
  • パラメータ (%0, %F0001 など) は使用できません。
  • 関数 dif(), sum() は使用できません。
  • 関数定義はネストできません。



 

数式変換で使用できる演算子


-+符号
+ - * /四則演算
\実数乗算の乗余
^ベキ乗
!階乗(引数は 169 以下の正の整数)
:=代入
-=自己代入
+=自己代入
*=自己代入
/=自己代入
\=自己代入
^=自己代入
==比較
!=比較
<=比較
>=比較
<比較
>比較
&&論理積
||論理和
exp1 && exp2 と AND(exp1, exp2) の違い。

exp1 && exp2 は exp1 が偽の時 exp2 を評価しません。また exp1 が真の場合、exp2 を評価した値を返します。

exp1 || exp2 と OR(exp1, exp2) の違い。

exp1 || exp2 は exp1 が真の時 exp2 を評価しません。また exp1 が真の場合は exp1、exp1 が偽の場合は exp2 を評価した値を返します。

=

= は式の終端を表します(省略可能)。= の後に別の式を後に続けることができます。

括弧 ()

括弧 () の数に制限はありません。




 

数式変換で使用できる関数

  • 引数は省略することが出来ます。引数が省略された場合 0 が渡されます。
  • IF() 関数のネスト数、DIF(), SUM() 関数の数の制限はなくなりました。
  • 引数は左から評価されます。

変換関数

ABS(x)絶対値
SIGN(x)正負の符号 (x < 0 で -1、x >= 0 で 1)
INT(x)0に向かって切捨てた整数部
GAUSS(x)ガウスの記号[ ] ([n]はnを越えない最大の整数)
FRAC(x)小数部
ROUND(x)四捨五入した整数部
MIN(a,b,c,...)引数のうちもっとも小さな値
MAX(a,b,c,...)引数のうちもっとも大きな値

初等関数

SQR(x)二乗
SQRT(x)平方根
EXP(x)指数(x≦690)
LN(x)自然対数
LOG(x)常用対数
SIN(x)サイン
COS(x)コサイン
TAN(x)タンジェント
ASIN(x)逆サイン
ACOS(x)逆コサイン
ATAN(x)逆タンジェント
SINH(x)ハイパボリックサイン
COSH(x)ハイパボリックコサイン
TANH(x)ハイパボリックタンジェント
ASINH(x)逆ハイパボリックサイン
ACOSH(x)逆ハイパボリックコサイン
ATANH(x)逆ハイパボリックタンジェント

特殊関数

RAND(x)0≦RAND(x)<x (x>0のとき)の乱数
SRAND(x)RAND() 関数で作られる疑似乱数系列の新しい種を設定する。
THETA(x)階段関数(x≧0 のとき 1, それ以外は 0 )
DELTA(x)クロネッカーのδ(x=0 のとき 1, それ以外は 0)
GAMMA(x)ガンマ関数 Γ(x)
ICGAM(m,x)不完全ガンマ関数 Γ(μ,x)
ERF(x)誤差関数 Erf(x)
ERFC(x)相補誤差関数 Erfc(x)
QINV(x)誤差関数 Erfc(x) の逆関数
EI(x)積分指数関数 Ei(x)
BETA(x,y)ベータ関数 B(p,q)
ICBETA(x,y)不完全ベータ関数 I(a,b,x) (0 <= x <= 1)
JN(n,x)第1種n次ベッセル関数
YN(n,x)第2種n次ベッセル関数
IN(n,x)第1種n次変形ベッセル関数
KN(n,x)第2種n次変形ベッセル関数
JL(l,x)第1種l次球ベッセル関数
YL(l,x)第2種l次球ベッセル関数
JNU(nu,x)第1種nu次ベッセル関数 (nu は正の実数)
YNU(nu,x)第2種nu次ベッセル関数 (nu は正の実数)
INU(nu,x)第1種nu次変形ベッセル関数 (nu は正の実数)
KNU(nu,x)第2種nu次変形ベッセル関数 (nu は正の実数)
PN(n,x)ルジャンドル多項式
LGN(n,a,x)ラゲール倍多項式
HN(n,x)エルミート多項式
TN(n,x)チェビシフ多項式
ZETA(x)リーマンゼータ関数 ζ(x)
ZETA_INT(x)リーマンゼータ関数 ζ(x) (x は整数)
ZETAM1(x)リーマンゼータ関数 ζ(x) - 1
ZETAM1_INT(x)リーマンゼータ関数 ζ(x) - 1 (x は整数)
CHOOSE(n,m)the combinatorial factor n choose m: n!/(m!(n-m)!)
MJD(year,month,day,hour,min,sec)修正ユリウス日(year, month, day はグレゴリオ暦、hour,min,sec は UTC 時刻、うるう秒は考慮されない)
UNIX2MJD(time)修正ユリウス日(time は 1970年1月1日00:00:00 UTC からの経過秒数、うるう秒は考慮されない)
MJD2YEAR(mjd)修正ユリウス日に対応するグレゴリオ暦の年
MJD2MONTH(mjd)修正ユリウス日に対応するグレゴリオ暦の月
MJD2DAY(mjd)修正ユリウス日に対応するグレゴリオ暦の日
MJD2WDAY(mjd)修正ユリウス日に対応するグレゴリオ暦の曜日 (1:月曜日 から 7:日曜日)
MJD2YDAY(mjd)修正ユリウス日に対応するグレゴリオ暦の 1 月 1 日からの通算日数 (1 から 366)
TIME()紀元 (1970年1月1日00:00:00 UTC) からの経過時間を秒単位で返す。

論理関数

  • 0 を偽, それ以外を真とする。

EQ(x,y,prec)x=y のとき真(=1)。prec で比較の桁数を指定できる (prec == 0 は完全一致) 。
NEQ(x,y,prec)x≠y のとき真(=1)。prec で比較の桁数を指定できる (prec == 0 は完全一致) 。
GE(x,y,prec)x≧y のとき真(=1)。prec で比較の桁数を指定できる (prec == 0 は桁数指定なし) 。
GT(x,y,prec)x>y のとき真(=1)。prec で比較の桁数を指定できる (prec == 0 は桁数指定なし) 。
LE(x,y,prec)x≦y のとき真(=1)。prec で比較の桁数を指定できる (prec == 0 は桁数指定なし) 。
LT(x,y,prec)x<y のとき真(=1)。prec で比較の桁数を指定できる (prec == 0 は桁数指定なし) 。
NOT(x)x=0 のとき真(=1)
OR(x,y)(x≠0) or (y≠0) のとき真(=1)
AND(x,y)(x≠0) and (y≠0) のとき真(=1)
XOR(x,y)(x≠0) xor (y≠0) のとき真(=1)

配列操作関数

SIZE(a)配列 a の要素数
SORT(a)配列 a を整列する
RSORT(a)配列 a を逆順に整列する
POP(a)配列 a から末尾の要素を取り除いてそれを返す
PUSH(a,x)配列 a の末尾に x を追加する (戻り値は x)
SHIFT(a)配列 a の先頭の要素を取り除いてそれを返す。残りの要素はひとつずつ前に詰められる
UNSHIFT(a,x)配列 a の先頭に x を挿入する (戻り値は x)

メモリー操作関数

メモリーは全ての数式変換で共有されます。

M(n,x)引数を第nメモリーに代入する(n=0〜65535) (戻り値は x)
RM(n)現在の第nメモリーの値(n=0〜65535)
CM(x)メモリー全体を x で初期化する (戻り値は x)

その他の関数

FIT_PRM(id,x) ID が id の file オブジェクトのプロットタイプが fit のとき、対応す る fit object のフィールド "%0x" の値。
FIT_CALC(id,x) ID が id の file オブジェクトのプロットタイプが fit のとき、対応する fit 結果 f(x) を計算する。
ISNORMAL(x)x が通常の数値の場合真
ISBREAK(x)x が BREAK の場合真
ISCONT(x)x が CONT の場合真
ISNAN(x)x が NAN の場合真
ISUNDEF(x)x が UNDEF の場合真
SUM(x)積算
DIF(x)差分
F(x,y,z)ユーザ定義関数
G(x,y,z)ユーザ定義関数
H(x,y,z)ユーザ定義関数
COLOR(0,x)R値を x (0≦x<256)に設定
COLOR(1,x)G値を x (0≦x<256)に設定
COLOR(2,x)B値を x (0≦x<256)に設定
COLOR(3,x)RGB値を x (0≦x<256)に設定
COLOR(4,x)R2値を x (0≦x<256)に設定
COLOR(5,x)G2値を x (0≦x<256)に設定
COLOR(6,x)B2値を x (0≦x<256)に設定
COLOR(7,x)R2, G2, B2 値を x (0≦x<256)に設定
COLOR(8,x)x を 6 桁の 16 進数として、 2 桁ずつ R, G, B 値に設定
COLOR(9,x)x を 6 桁の 16 進数として、 2 桁ずつ R2, G2, B2 値に設定
OBJ_COLOR(id, FILE_OBJ), OBJ_COLOR(id)R, G, B, R2, G2, B2 値を ID が id の file オブジェクトと同じ値にする。
OBJ_COLOR(id, PATH_OBJ)R, G, B, R2, G2, B2 値を ID が id の path オブジェクトの stroke_R, stroke_G, stroke_B, fill_R, fill_G, fill_B と同じ値にする。
OBJ_COLOR(id, RECT_OBJ)R, G, B, R2, G2, B2 値を ID が id の rectangle オブジェクトの stroke_R, stroke_G, stroke_B, fill_R, fill_G, fill_B と同じ値にする。
OBJ_COLOR(id, ARC_OBJ)R, G, B, R2, G2, B2 値を ID が id の arc オブジェクトの stroke_R, stroke_G, stroke_B, fill_R, fill_G, fill_B と同じ値にする。
OBJ_COLOR(id, MARK_OBJ)R, G, B, R2, G2, B2 値を ID が id の mark オブジェクトと同じ値にする。
OBJ_COLOR(id, TEXT_OBJ)R, G, B 値を ID が id の text オブジェクトと同じ値にする。
ALPHA(x)A, A2 値を x (0≦x<256)に設定
ALPHA(x,1)A 値を x (0≦x<256)に設定
ALPHA(x,2)A2 値を x (0≦x<256)に設定
OBJ_ALPHA(id, FILE_OBJ), OBJ_ALPHA(id)A, A2 値を ID が id の file オブジェクトと同じ値にする。
OBJ_ALPHA(id, PATH_OBJ)A, A2 値を ID が id の path オブジェクトの stroke_A, fill_A と同じ値にする。
OBJ_ALPHA(id, RECT_OBJ)A, A2 値を ID が id の rectangle オブジェクトの stroke_A, fill_A と同じ値にする。
OBJ_ALPHA(id, ARC_OBJ)A, A2 値を ID が id の arc オブジェクトの stroke_A, fill_A と同じ値にする。
OBJ_ALPHA(id, MARK_OBJ)A, A2 値を ID が id の mark オブジェクトと同じ値にする。
OBJ_ALPHA(id, TEXT_OBJ)A 値を ID が id の text オブジェクトと同じ値にする。
RGB(r,g,b)色のRGB値をそれぞれ r, g, b (0≦r,g,b≦1)に設定
RGB2(r,g,b)R2, G2, B2, の値を r, g, b (0≦r,g,b≦1)から設定
HSB(h,s,b)色のHSB値をそれぞれ h, s, b (0≦h,s,b≦1)に設定
HSB2(h,s,b)R2, G2, B2, の値を、HSB値からそれぞれ h, s, b (0≦h,s,b≦1)に設定
MARKSIZE(x)マークのサイズをXに設定
MARKTYPE(x)マークの種類をXに設定
IF(x,ex1,ex2)x ≠ 0 のとき ex1, x = 0 のとき ex2
UNLESS(x,ex1,ex2)x ≠ 0 のとき ex2, x = 0 のとき ex1
FOR(m,begin,end,step,ex)第mメモリーの値に begin から end まで step で 値を設定し、ex を繰り返す。 m が負の時はメモリーへの設定は行われない
PROG1(arg1,arg2,...)引数を評価し、最初の引数の値を返す
PROG2(arg1,arg2,...)引数を評価し、2 番目の引数の値を返す
PROGN(arg1,arg2,...)引数を評価し、最後の引数の値を返す



 

演算子の優先順位

演算子 + - (正負の符号) の優先順位が Version 6.03 以前と異なっています。


!
^
+ - (正負の符号)
* / \
+ -
< <= > >=
== !=
&&
||
:=(+=, -= ... )



 

数式変換の使用例


  • ; 使用例

    ; は式の終端を示しますが、さらに続けて別の式を書くことができます。 式の値は一番最後の式の値になります。 例えば、長い式が何度も現れるとき変数への代入と組み合わせて

          a:=...式...; ... a ....;
          
    のようにすれば同じ式は1度書くだけですみます。また式最後の ; は省略できます。

    (従来は式の終端として "=" が使われていましたが version 6.06.10 以降 は ";" を推奨とします。)

  • メモリー関数 M(), RM() 使用例

    M() はメモリーへの代入、RM() は読みだしです。全ての数式変換でメモリーは 共有されるため、データファイル間での値の受け渡しに利用できます。メ モリーは 65536 個 (0〜65535) まで利用できます。また、未使用のメモリーは 0 に初期化されています。

  • 比較関数 EQ(), NEQ(), LT(), GT(), LE(), GE() 使用例

    数値の比較を行う関数ですが、下記の例のように浮動小数点誤差により 思った通りの結果が得られない場合があります。

          Ngraph$ iexpr 'EQ(0.5 - 0.4, 0.1)'
          0
          

    このような場合に、3番目の引数で比較の桁数を指定すると期待する結果 が得られることが多くなります。

          Ngraph$ iexpr 'EQ(0.5 - 0.4, 0.1, 14)'
          1
          

    計算によっては浮動小数点誤差の影響が大きくなる場合もありますので注 意が必要です。

  • 関数 DIF() 使用例

    関数 DIF() は微分でなく差分を返す関数です。 現在のデータがデータファイル中 n 番目としそれを Y(n) で表すとすると

    DIF(Y)=Y(n) - Y(n-1)

    です。これを用い簡単に微分近似値を求めるには

    DIF(Y)/DIF(X)

    とします。

    DIF(Y)/DIF(X)は {Y(n)-Y(n-1)} / {X(n)-X(n-1)} になります。

    この時、Xの変換数式を

    X-DIF(X)*0.5

    としてXを"現在のデータと一つ前のデータの中間値"としておいた方がより真に近いグラフが得られると思われます。

    X変換式: X-DIF(X)*0.5 (これは { X(n-1)+X(n) }*0.5 になります)
    Y変換式: DIF(Y)/DIF(X) (これは { Y(n)-Y(n-1) } / { X(n)-X(n-1) } になります)

    DIF() は現在のデータと一つ前のデータとの差分を返しますから、Y-DIF(Y) とすることで一つ前のデータを取り出すことができます。 同様に Y-DIF(Y)-DIF(Y-DIF(Y)) で2つ前のデータを取り出すことができます。 Y-DIF(Y)-DIF(Y-DIF(Y))-DIF(Y-DIF(Y)-DIF(Y-DIF(Y)))は3つ前のデータです.

    一番初めの DIF() の戻り値は"不定"です.このため,式全体の値も"不定"となり、結果としてデータの個数は1つ減ります(一番初めのデータに差分は存在しない)。 また DIF() をいくつも含む式では、全ての DIF() が初期化されるまで式全体の値は"不定"です。 例えば DIF() をネストして DIF(DIF()) のように使った場合、一番初めのデータでは内側の DIF() が初期化されその戻り値は不定の為、外側の DIF() の初期化は行われません。 外側の DIF() が初期化されるのは 2番目のデータの時です。 従ってデータの個数は2つ減ることになります。



  • 関数 SUM() 使用例

    関数 SUM() は積算を返す関数です。 現在のデータが n 番目としそれを Y(n) で表すとすると

    SUM(Y)=Σ Y(n) (n=1..n)

    これを用い簡単に積分近似値を求めるには

    SUM(Y*DIF(X))

    とします。

    SUM(Y*DIF(X)) は Σ Y(n)*{ X(n)-X(n-1) } (n=1..n) になります。

    また、台形公式を用いて積分近似値を評価したい場合

    SUM(0.5*(2*Y-DIF(Y))*DIF(X))

    とします。

    SUM(0.5*(2*Y-DIF(Y))*DIF(X)) は Σ(Y(n-1)+Y(n))/2*{X(n)-X(n-1)} (n=1..n) になります。

    さらに積分の上限(b)、下限(a)を指定したい場合は階段関数 THETA() を用い

    SUM(0.5*(2*Y-DIF(Y))*DIF(X)*THETA(X-a)*THETA(b-X))

    とします。IF() を使って

    IF(AND(GE(x,a),LE(x,b)),INTEG(0.5*(2*Y-DIF(Y))*DIF(X)),0)

    としても可能です。

  • 関数 IF() 使用例

    IF(x,ex1,ex2) は x が真(<>0)のとき ex1 を,偽(=0)のとき ex2 を返す関数です。例えば次の式

    IF( x < 0, 0, SQRT(x) )

    は x<0 のとき 0、x>=0 のとき√x を返す関数になります。また必ず ex1, ex2 どちらか一方しか評価されません。

  • 関数 MARKSIZE(), COLOR() 使用例

    MARKSIZE()、COLOR()関数は数学関数では無く、それぞれプロットされたマークのサイズ、色を指定する関数です。 例えば、(x,y,z) の 3 カラムから成るデータファイルがあり、マークのサイズを z の値で変更したいような場合には

    MARKSIZE(%03)

    とします。ただこれですと、プロットされるデータも %03 となりますので、前述の ; を使って

    MARKSIZE(%03);Y

    とするのが正しい使い方です。 COLOR()関数も同様で

    COLOR(3,%03);Y

    のように使います。
  • 関数 OBJ_COLOR() 使用例

    file, path, rectangle, arc, mark, text の各オブジェクトの設定色を描 画色にします。例えばいくつかのフィッティング結果をもとにフィッティ ングパラメータをグラフにするような場合、

          OBJ_COLOR(X);FIT_PRM(X,1)
          
    のようにして、フィッティングとプロットの色を揃えることができます。 この時 X はフィッティングプロットにした file オブジェクトのインスタ ンス ID です。

  • 関数 FIT_PRM(), FIT_CALC() 使用例

    フィッティングの結果からそのパラメータや、フィッティング式の計算を 行う関数です。

    例えば、いくつかの1次フィットからその傾きをプロットしたい場合、

          FIT_PRM(X,1)
          
    のようにします。この時 X はフィッティングプロットにした file オブジェ クトのインスタンス ID です。

    また、いくつかの1次ドリフトのあるでデータからドリフト成分を引いて プロットしたい場合、

          Y-FIT_CALC(0,X)
          
    のようにします。

    これらの関数はフィッティングの結果が確定していないと計算に失敗しま す。ファイルの描画順に注意してください。また、初回のプロットでオー トスケールに反映されないことがあります。

  • 関数 PROG1(), PROG2(), PROGN() 使用例

    関数 PROG1(), PROG1(), PROGN() は複数の引数を評価して、最初、2 番目 または最後の引数の値を返す関数です。IF(), UNLESS(), FOR() 関数の引 数に使用して複数の式を評価するために利用できます。下記の例では X の 値が 1 以上変化する毎に Y の平均値を計算しています (X は 1 よりも大 きいことを仮定) 。

    IF(X - A < 1, PROGN(B += Y, N += 1, CONT), PROG1(IF(N, B / N, CONT), B := Y, N := 1, A := X))

ngraph-gtk-6.06.13/doc/html/ja/text.html0000644000175000017500000001500412241111712014617 00000000000000 Text  

フォント/テキスト




 

フォントの扱い


[Legend]-[Text] で指定するフォント名はすべてエイリアス(別名)です。 Ngraphでは異なるオペレーティングシステムとの互換性を考えており, フォント名を直接指定する事はできません。

フォントの選択・出力は, エイリアス名から実際のフォント名にマッピングして行ってます。マッピング情報は Ngraph.ini に記述されています。


インストール時に定義されているフォントマッピング

Ngraph定義名フォント名
Windowsそれ以外
SerifTimes New RomanLiberation Sans
Sans-serifArialLiberation Serif
MonospaceCourier NewLiberation Mono



 

テキスト描画の制御文字


Legend textダイアログボックスのTextで文字列中に制御文字を挿入して, 書式を一文字単位で変更することができます。

基本
^続く文字は上付き文字になる
_続く文字は下付き文字になる
@上付き文字, 下付き文字を解除する
\B続く文字は太字 (bold) になる
\I続く文字は斜体 (italic) になる
\N太字、斜体を解除する
\.スペースと同等
\bバックスペース(幅は'h')
\n改行
\-ハイフン
\&テキストが\nの改行によって複数行あるとき\&の位置で位置合わせをする
\次の文字が%\@^_の時, それらを制御文字として扱わずに出力する


フォント
%F{エイリアス名}フォントをエイリアス名に変更する
%S{整数}フォントのサイズをポイントで指定する
%P{整数}文字間隔をポイントで指定する
%X{整数}カレントポイントを右方向に移動させる量をポイントで指定する
%Y{整数}カレントポイントを下方向に移動させる量をポイントで指定する
%C{整数}文字の色を16進形式で指定する。
%A{整数}文字の不透明度 (0-255) を指定する。


数式
%[式]式の値


整形
%pf{format value}value を format で整形して出力する
  • format について詳しくは man 3 printf を参照してください。
  • 精度指定に '*' や `*m$' は使用できません。
  • 長さ修飾子に hh, h, L, q, j, z, Z, t は使用できません。
  • 変換指定子に F, a, A, m, n, p, C, S は使用できません。

例:
%pf{%e 1} は 1.000000e+00
%pf{%2.2f %[exp(1)]} は 2.72


オブジェクト
%{object:id:field parameter}オブジェクト(object)のインスタンス(id)のフィールド(field)の値


オブジェクトの指定例
%{system::date 0}Fri Feb 2 1990 型の日付
%{system::date 1}2-2-1990 型の日付
%{system::date 2}Feb 2 1990 型の日付
%{system::time 0}00:00:00 型の時刻
%{system::time 1}12:00:00 am 型の時刻
%{system::time 2}00:00 型の時刻
%{system::time 3}12:00 am 型の時刻
%{menu::ngp}ngpファイル名
%{menu::fullpath_ngp}フルパスのNGPファイル名
%{file:X:file}ファイル名 (X はファイル番号)
%{file:X:basename}フォルダ名を除いたファイル名 (X はファイル番号)
%{file:X:date 0}ファイルの日付
%{file:X:time 0}ファイルの時刻
%{file:X:column:l c}ファイルの l 行の c カラムの内容
%{file:X:dnum}ファイルXのデータ数
%{file:X:dx n}ファイルXのn行目の値(x)
%{file:X:dminx}ファイルXの最小値(x)
%{file:X:dmaxx}ファイルXの最大値(x)
%{file:X:davx}ファイルXの平均値(x)
%{file:X:dsigx}ファイルXの標準偏差(x)
%{file:X:dy n}ファイルXのn行目の値(y)
%{file:X:dminy}ファイルXの最小値(y)
%{file:X:dmaxy}ファイルXの最大値(y)
%{file:X:davy}ファイルXの平均値(y)
%{file:X:dsigy}ファイルXの標準偏差(y)
%{file:X:fit_prm:n} ファイルXのプロットタイプが Fit のとき、フィットの結果 f(x) に対して %0n を返す。
%{file:X:fit_calc:a} ファイルXのプロットタイプが Fit のとき、フィットの結果 f(x) に対して f(a) を計算する。
%{file:X:fit_newton:a b} ファイルXのプロットタイプが Fit のとき、フィットの結果 f(x) に対して f(x)=b となる xを初期値 x=a としてニュートン法で求める。
%{fit:0:%00}fit:0:%00



ngraph-gtk-6.06.13/doc/html/ja/object.html.in0000644000175000017500000000605212241111711015510 00000000000000 Object  

Ngraphオブジェクト




 

概要


Ngraphで描画されるグラフはNgraphオブジェクトの集合から成り立っています。
Ngraphでのグラフの作成は, グラフを構成するNgraphオブジェクトのフィールド値を設定することにより行われます。
フィールド値の設定は, メニューやダイアログボックスでの指定, あるいは *.ngp ファイルに記述されしたスクリプトをインタープリタで実行して行われます。

  • オブジェクトの一覧を表示するには[Graph]-[Ngraph shell]でスクリプト・インタープリタを起動し、object コマンドを実行して見る事ができます。
  • オブジェクトのフィールドを表示するには object object_name と object コマンドの引数にオブジェクト名を指定します。

Ngraphオブジェクト階層

object
        system
        shell
        gra
        gra2
                gra2null
                gra2file
                gra2prn
                gra2cairo
                        gra2cairofile
                        gra2gtkprint
                        gra2gtk
                        gra2gdk
                        menu
        io
        int
        double
        string
        regexp
        iarray
        darray
        sarray
        math
        fit
        prm
        draw
                axisgrid
                axis
                file
                merge
                legend
                        rectangle
                        arc
                        path
                        mark
                        text
        dialog
        plugin



 

Ngraphオブジェクト一覧


各オブジェクトのフィールド一覧を示します。

ngraph-gtk-6.06.13/doc/html/ja/gra.html0000644000175000017500000002610012241111711014402 00000000000000 GRA  

GRAファイル




 

概要


GRAファイルは, 直線, 円などのグラフィックス命令を記述した, グラフのマージ等に使われるNgraph独自のファイル形式です。

また、External driverへグラフィックス命令を送るのにも使われます。

GRAファイルの互換性

  • Ngraph version 6.x の GRA ファイルは, DOS 版 Ngraph (version 5.x) の GRA ファイルと僅かに異なるため,互換性はありません。
  • ただしNgraph version 6.x で DOS 版 Ngraph (version 5.x) の GRA ファ イルをマージすることは可能です。
  • DOS 版 Ngraph の GRA ファイルの構造およびコマンドについては DOS 版 Ngraph に添付されているマニュアルを参照してください。
  • Ngraph version 6.04 で H コマンド (フォントメトリック指定命令) が拡 張されました。 version 6.04 で作成した GRA ファイルはそれ以前のバー ジョンで読み込むことはできません。
  • Ngraph version 6.05 で C コマンド (楕円描画命令) と G コマンド(カラー 指定命令) が拡張されました。 version 6.05 で作成した GRAファイルは それ以前のバージョンで読み込むことはできません。



 

GRAファイルの構造


下にGRAファイルの例を示します。
%Ngraph GRAF
%Creator: Ngraph ver 6.00.01
I,5,0,0,21000,29700,10000
V,5,0,0,21000,29700,1
G,3,0,0,0
A,5,0,40,2,0,1000
L,4,3500,22000,17500,22000
L,4,3500,22000,3500,8000
L,4,3500,8000,17500,8000
L,4,17500,22000,17500,8000
E,0

GRAファイルの第一行はGRAファイルの識別子である

%Ngraph GRAF
でなければなりません。

第2行以降は1行に1つずつグラフィックスコマンドが記述されます。グラフィックスコマンドの形式を示します。

command, n, arg1, arg2, ..., argn
  • commandはグラフィックスコマンドを指定するアルファベット一文字で I, E, V, A, G, M, N, L, T, C, B, P, R, D, H のいずれかです。
  • n は引数の数(整数)を現します。
  • arg1, ..., argnはグラフィックスコマンドの引数(整数)です。

コマンドの区切りにはスペース, タブ, コンマが使えます。 ただしcommandが%, F, S の場合には

Sthis is a string
のようにコマンド直後に文字列の引数(上の例ではthis is a string)を記述します。 この場合, 文字列引数の中のスペース・タブ・コンマは通常の文字として扱われます。


 

GRAファイルのグラフィックコマンド

グラフィックコマンドの引数は特に指定のない限り単位は0.01mmです。 X座標増加方向は右, Y座標増加方向は下です。 数値引数はすべて整数値でなければなりません。

コマンド機能書式
I初期化命令I,5,arg1,arg2,arg3,arg4,arg5

arg1
左マージン
arg2
上マージン
arg3
出力用紙幅
arg4
出力用紙高
arg5
拡大率(0.01%単位)

  • 出力デバイスの初期化を行う。1回の描画で初めに一度だけ呼ばれる。
コマンド機能書式
E終了命令E,0
  • 一回の描画で最後に一度だけ呼ばれる。出力デバイスの後処理を行う。
コマンド機能書式
%コメント%comment
  • 文字列引数(コメント)
コマンド機能書式
Vクリッピング領域, 原点移動命令V,5,arg1,arg2,arg3,arg4,arg5
arg1
左上X座標, 新しいX座標原点
arg2
左上Y座標, 新しいY座標原点
arg3
右下X座標
arg4
右下Y座標
arg5
  • 0:クリッピングオフ
  • 1:クリッピングオン
  • この命令以降, V命令を除くすべての命令は原点をクリッピング領域左上としたものになる。
  • パラメタは A4用紙左上を原点とする0.01mm単位で指定します。
  • クリッピング処理は基本的にNgraph内部で行っているので必ずしも必要ではないが, クリッピングするのが望ましい(原点移動は必須)。
コマンド機能書式
A線属性指定命令A,n,arg1,arg2,....
n
点線要素の数+5
arg1
0:実線 >1:点線要素の数
arg2
線幅
arg3
線端形状
  • 0:Butt
  • 1:Round
  • 2:Projecting
arg4
線交差形状
  • 0:Miter
  • 1:Round
  • 2:Bevel
arg5
Miter limit
arg(i) - arg(i + 5) i = 1 - arg1
点線要素

コマンド機能書式
Gカラー指定命令G,4,arg1,arg2,arg3,arg4
arg1
R(8bit)
arg2
G(8bit)
arg3
B(8bit)
arg4
A(8bit) (不透明度)
  • arg4 は設定によって、あるいはドライバによって無視されることがある。
コマンド機能書式
Mカレントポイント移動命令M,2,arg1,arg2
arg1
X座標
arg2
Y座標
コマンド機能書式
Nカレントポイント相対移動命令N,2,arg1,arg2
arg1
X方向移動量
arg2
Y方向移動量
コマンド機能書式
L線描画命令L,4,arg1,arg2,arg3,arg4
arg1
始点X座標
arg2
始点Y座標
arg3
終点X座標
arg4
終点Y座標
コマンド機能書式
Tカレントポイント相対・線描画命令T,2,arg1,arg2
arg1
終点X座標, 新しいカレントポイントX座標
arg2
終点Y座標, 新しいカレントポイントY座標
  • 本命令実行後, カレントポイントは終点に移動する。
コマンド機能書式
C楕円描画命令C,7,arg1,arg2,arg3,arg4,arg5,arg6,arg7
arg1
中心のX座標
arg2
中心のY座標
arg3
X方向半径
arg4
Y方向半径
arg5
楕円弧開始角度, 0.01度単位(0-36000)
arg6
楕円弧開始角度, 0.01度単位(0-36000)
arg7
  • 0:円の輪郭(内部は塗りつぶさない)
  • 1:扇形内部を塗りつぶす
  • 2:円弧内部を塗りつぶす
  • 3:扇形に輪郭を描画
  • 4:弓形に輪郭を描画
  • arg5から開始してarg6の角度だけ反時計回りに楕円弧を描く。
  • 角度は, 楕円 (x/a)^2+(y/b)^2=1 を x=a*cosθ, y=b*sinθ と媒介変数表示した時のθ。
コマンド機能書式
B四角形描画命令B,5,arg1,arg2,arg3,arg4,arg5
arg1
X座標
arg2
Y座標
arg3
対角のX座標
arg4
対角のY座標
arg5
  • 0:四角形の輪郭(内部は塗りつぶさない)
  • 1:内部を塗りつぶす
コマンド機能書式
P点描画命令P,2,arg1,arg2
arg1
X座標
arg2
Y座標
コマンド機能書式
R多角形描画命令R,n,arg1,arg2,...
n
座標点の数*2+1
arg1
座標点の数
arg(i * 2 + 0) i = 1 - arg1
X座標
arg(i * 2 + 1) i = 1 - arg1
Y座標
コマンド機能書式
D閉多角形描画命令D,n,arg1,arg2,...
n
座標点の数*2+2
arg1
座標点の数
arg2
  • 0:多角形の輪郭(内部は塗りつぶさない)
  • 1:内部を塗りつぶす(EvenOddRule)
  • 2:内部を塗りつぶす(WindingRule)
arg(i * 2 + 1) i = 1 - arg1
X座標
arg(i * 2 + 2) i = 1 - arg1
Y座標
コマンド機能書式
Fフォント選択命令Ffont
  • 文字列引数(font フォントエイリアス名)
  • 実際のフォントへのマッピングはドライバに依存
コマンド機能書式
Hフォントメトリック指定命令H,4,arg1,arg2,arg3,arg4
arg1
文字のポイントサイズ, 0.01pt単位(1pt=1/72inch)
arg2
文字スペーシング・ポイント量, 0.01pt単位
arg3
描画方向, X軸から反時計回りに0.01度単位
arg4
スタイル, 0:normal, 1: bold, 2:italic の和
  • 文字は全てスケーラブルでなければなりません。
コマンド機能書式
S文字列描画命令Sstring
  • 文字列引数 (string は UTF-8 文字列)

ngraph-gtk-6.06.13/doc/html/ja/data.html0000644000175000017500000003105512241111711014547 00000000000000 Data file  

データファイル




 

データファイルの形式


データファイルはテキストファイルで、基本的には次のようなフォーマットです。

コメント行
… (コメントは無くても構いません)
コメント行
カラム1カラム2カラム3カラム4 …
カラム1カラム2カラム3カラム4 …
% コメント行
カラム1カラム2カラム3カラム4 …
カラム1カラム2カラム3カラム4 …

データファイル中のコメント
  • データファイル先頭部分はDataダイアログボックスの[Load...]の先頭スキップ行数で指定した行数だけまとめて読み飛ばせるので, コメントなどを入れておくことができます。
  • デフォルトでこの行数は0行です。
  • コメントはなくてもかまいません。

ファイル途中へのコメントの挿入
  • ファイル途中にコメントを入れるには行頭にDataダイアログボックスの[Load...]でRemarkに設定されている文字を入れます。
  • デフォルトでは # % ' です。

データファイルからの読み込み
  • データファイルの第一行目にデータファイル埋め込みオプションを記述しておくと Dataダイアログボックスの[Load settings]ボタンを押して各種設定をデータファイルから読み取る事ができます。

データ
  • カラム1, カラム2, カラム3, ... に数値データを入れます。
  • データファイルの最大カラム数は999個です。
  • 一行の最大文字数は特に制限がありません。
  • カラムの区切りはDataダイアログボックス[Load...]のIFSで設定できます。
  • デフォルトではスペース, コンマ, タブ, 括弧です。
  • 改行コードは LF, CR LF, CR のいずれかです。

数値データの指数部指定
  • 数値データの指数部指定子には e, E, Dが使えます。
  • 例) 1.0D+002

空行の扱い
  • ヌル行(IFSのみからなる行)は読み飛ばします。



 

欠損データを含むデータファイル


Ngraph で欠損データを指定する方法を示します。例として,2行目のデータが欠落している場合を考えます。

XYZ
1.02.03.0
2.0 4.0← Yが欠落している
3.04.05.0

このまま, Dataダイアログボックスで(X) columnを1, (Y) columnを2にして描画すると, 2行目のYにはZの値が使われてしまいます。

欠損データを正しく描画するには | あるいは = を欠損部分に入れます。

1.02.03.0
2.0 | 4.0
3.04.05.0
あるいは
1.02.03.0
2.0 = 4.0
3.04.05.0

これでYの欠損データを正しくスキップします。

  • | と = の違い

    • データプロット形式がmarkなどの点類とFitの場合は区別がありません。どちらでも同じグラフになります。
    • データプロット形式がlineなどの線類では異なります。 | では欠損データの前後を直線・曲線で結びます。 = ではその前後で直線・曲線が分断されます。

  • 欠損データの別表記法

    • 'CONT' は '|' と同等です。
    • 'BREAK'は '=' と同等です。

欠損データの(あまりお勧めしない)指定方法

  • 欠損部分を数値データではない文字で埋めます。

    1.02.03.0
    2.0 A 4.0
    3.04.05.0

    この方法では, 描画の度にエラーが出て一時停止します。

  • 2行目の先頭に%#'のいずれかの記号(DataダイアログボックスのRemarkで変更可能)を入れて2行目全体をスキップさせます。

    1.02.03.0
    %2.0 4.0
    3.04.05.0

    これでは2行目のデータはX, Y, Zとも初めから存在しないのと同じ事です。 従って, (Y) columnを3にしたとき, Z=4.0もスキップしてしまいます。

欠損データを利用した複数グラフの描画

  • 欠損データの指定を応用して,データを = = で分断すれば一つのファイルで複数本のグラフを描画できます。

  • [例]データを = = で分断して2本の直線からなるグラフを描く例を示します。

    1.02.0
    2.03.0
    3.04.0
    = =
    4.05.0
    5.06.0
    6.07.0




 

データプロット形式diagonal, rectangleのデータファイル


データプロット形式diagonal, rectangle, rectangle_fill, rectangle_solid_fillなどを用いて対角線や矩形をプロットしたい時に用いるデータファイル形式です。

[例](0, 0)-(1, 1) と (1, 1)-(1, 2) に対角線, あるいは矩形を描きたいとき次のようなファイルを作り, (X) columnを1, (Y) columnを3にします。

0.00.01.01.0
1.01.01.02.0


始点のXとY, 終点のXとYはそれぞれ連続していなければなりません。 (4つが連続している必要はありません)



 

データプロット形式error_bar_xのデータファイル


データプロット形式error_bar_xを用いて誤差棒をプロットすることができます。

例えば次のようなデータを考えます。

XError(X)Y
1.0+/-0.52.0
2.0+/-1.03.0


このとき, 次のようなデータファイルを作り (X) columnを1、 (Y) column を4にします。

1.0-0.5+0.52.0
2.0-1.0+1.03.0


X, Xの誤差下限, Xの誤差上限 の3つのカラムは連続していなければなりません。



 

データプロット形式error_bar_yのデータファイル


データプロット形式error_bar_yを用いて誤差棒をプロットすることができます。

例えば次のようなデータを考えます。

XYError(Y)
1.02.0+/-0.5
2.03.0+/-1.0


このとき, 次のようなデータファイルを作り, (X) columnを1, (Y) column を2にします。

1.02.0-0.5+0.5
2.03.0-1.0+1.0


Y, Yの誤差下限, Yの誤差上限 の3つのカラムは連続していなければなりません。



 

データファイル埋め込みオプション


データファイルの一行目にデータファイル埋め込みオプションを記述しておくと、Dataダイアログボックスの [Load settings]ボタンで各種設定を取り込む事ができます。 複数のオプションを記述する場合には, 各オプションはスペース, タブで区切らなければなりません。

-xcolumn(X) Column を column にします。
-ycolumn(Y) Column を column にします。
-dtype[,{mark_type|interpolation}]プロットタイプを type にします。 type が mark の時にはカンマに続いてマークの種類を数字で指定します。 type が curve の時にはカンマに続いて補間方式(spline, spline_close, bspline, bspline_close)を指定します。
[例] -dline -dmark,10 -dcurve,spline_close
-omark_sizeマークの大きさをmark_size にします。
-lline_styleラインスタイルを指定します。
例) -l100,40,40,40
-wline_widthライン幅を line_width にします。
-cR, G, BプロットカラーをRGBで指定します。
-CR, G, Bプロットタイプがmarkの時に使用される第2カラーをRGBで指定します。
-v{x|y}smooth隣接平均数を smooth にします。
-sskip先頭スキップ行数を skip にします。
-rstep読込ステップ行数を step にします。
-ffinal_line読込最終行数を final_line にします。
-m{x|y}math変換数式を math にします。
-e{x|y}scale_type軸のスケールタイプを scale_type にします。
scal_type には linear, log, inverse を指定します。
-z{x|y}min, max, inc軸の最小, 最大, 増分を min, max, inc で指定します。



ngraph-gtk-6.06.13/doc/html/ja/addin.html0000644000175000017500000003113612241111711014715 00000000000000 Add-in  

アドイン




 

概要

Ngraph の[アドイン]メニューで登録されているアドインを選ぶと Ngraph はそれ を「Ngraphマクロスクリプト」として実行します。アドインプログラムの追加は [Preference]-[Addin script]で行います。以下のアドインプログラムは配布パッ ケージに含まれており、簡単に追加できるようになっています。

legend.nsc

凡例を自動生成する為のアドイン。「Mix:」をチェックするとファイル 名、Xカラム、Yカラムが同じデータをまとめて一つの凡例として扱うよう になります。リストボックスからデータファイル名を選び、「Caption:」 に凡例テキストを入力してください。デフォルトではデータファイル名が 使われます。

fitrslt.nsc

フィッティングの結果の凡例を作成する為のアドイン。「Expand」を チェックした場合、現在のフィット結果の数値をLegend-Text として生成 しますので、フィット結果が変わっても Legend-Textは変更されません。 非チェックの場合にはLegend-Textのオブジェクト置換機能を使いますので、 フィット結果が変われば、Legend-Textの内容も自動的に変化します。

append.nsc

すでに読み込んであるグラフをクリアせずにNGPファイルを読み込む為 のアドインスクリプト。

calc.nsc

任意関数の描画をする為のアドイン。等間隔データを作成し、データファ イルとしてNgraph にセットし、数式変換機能を使って関数を描画します。

math.nsc

一行電卓の為のアドイン。数式を入力すると答えを表示します。 Ngraphの数式変換機能の関数が使えます。

text-in.nsc

データファイルの指定したカラムを legend-text としてプロットデー タ点の隣に挿入するアドインスクリプト。データを扱うスクリプトの例に もなっています。

cal.nsc

インフォメーションウィンドウにカレンダーを表示するアドインです。 /usr/bin/cal を利用しています。

ps2gra.nsc

PostScript を GRA に変換してインポートするマクロです。ビットマッ プを使用したものなど、正常に変換できない場合もあります。文字は直線、 曲線に展開され文字としての情報は失われています。実行には ruby 及び pstoedit が必要です。

tex_equation.nsc

LaTeX の数式を GRA ファイルとしてインポートするアドインです。レ ジェンドテキストに LaTeX の数式を入力して、そのテキストを選択状態に してから実行すると GRA ファイルが生成され、マージファイルとして登録 されます。数式は直線、曲線で構成され文字の情報は失われています。実 行には ruby, pdflatex 及び pstoedit が必要です。

アドインプログラムはユーザが作成する事もできます。マクロスクリプトには Ngraph 内部の設定パラメター全てを参照、変更する機能がありますので、アドイ ンプログラムは Ngraph の状態変数にアクセスして,現在の Ngraph の状態を取 得したり,変更したりすることができます。マクロスクリプトだけでもかなりの 事ができるのですが、ユーザインターフェースなどの点から、独立した個々のプ ログラムを起動した方が効率が良い場合があります。マクロスクリプトには外部 プログラムを起動する機能がありますので、これも可能ですが、その場合には

  • どうのように外部プログラムに Ngraph の状態を知らせるか?
  • 外部プログラムから、どの様に Ngraph の状態を変更させるか?
が問題となります。その簡単な一つの方法の例として legend.nsc を取り上げ、 以下で説明します。




 

legend.nsc の動作

legend.nsc が起動する外部プログラムは legend.tcl です。 まず legend.tcl が必要とする現在の Ngraph の状態を記述した中間ファイルを 作成します。

DATALIST=${system:0:temp_file}
object file -instance > "$DATALIST"
get file:0-! -id -field file x y type >> "$DATALIST"

ここでは、system:0:temp_file でテンポラリファイル名を取得し、objectコマンド で file (データファイル)のインスタンスの数を、get コマンドで各種設定パラメ ターを取得し、テンポラリファイルに書き込んでいます。この中間ファイルのフォ ーマットは起動する外部プログラム(今の場合には legend.tcl)固有のフォーマッ トになります。このファイルの中身は現在の Ngraph のデータファイルの設定状況 をリストした

1
demo1.dat
1
2
mark

の様なものになります。次に

SCRIPT=${system:0:temp_file}                                          

で legend.tcl の出力用に別のテンポラリファイル名を取得し、変数SCRIPT に格納しています。後にこのファイルが Ngraph マクロスクリプトとして実行 されます。従って、このファイルの中身はマクロスクリプトの文法に則ってい なければなりません。

wish legend.tcl "$DATALIST" "$SCRIPT"

ここで外部プログラム legend.tcl を起動しています。legend.tcl は コマン ドラインの1番目に指定されたファイルから Ngraph の状態を取得し、2番目 に指定されたファイルに変更すべき状態をマクロスクリプトとして出力する ように設計されています。例えば "STRING" と言う legend-text を(0,0)に生 成するには、$SCRIPT のファイルの内容は

new text
text::x=0
text::y=0
text::text="STRING"

となります。またグラフに変更を加えたときは、"menu::modified=TRUE" を実行 して、グラフを閉じるときに保存の確認が行われるようにしておきます。このス クリプトを実行するのは

if [ -f "$SCRIPT" ];                                                  
then                                                                  
new shell                                                     
shell::shell "$SCRIPT"                                        
del shell                                                     
fi                                                                    

です。ここで、変数 SCRIPT に格納したファイルが存在しいている場合(if文) に、shell オプジェクトのインスタンスを生成(new)し、そのインスタンスに そのファイルを解釈実行(shell)させ、最後に不要になったインスタンスを削 除(del)しています。

system:0:unlink_temp_file "$DATALIST"
system:0:unlink_temp_file "$SCRIPT"                                

最後に不必要になった中間ファイル($DATALIST)とスクリプトファイル($SCRIPT) を削除します。




 

アドインスクリプトの形式

外部プログラムを起動するアドインスクリプトは、

... 外部プログラムに必要な中間ファイルを生成する ...
SCRIPT=${system:0:temp_file}                                          
外部プログラム名  中間ファイル名  "$SCRIPT"
if [ -f "$SCRIPT" ];                                                  
then                                                                  
new shell                                                     
shell::shell "$SCRIPT"                                        
del shell                                                     
fi                                                                    
system:0:unlink_temp_file "$SCRIPT"

となります。

もちろん、Ngraphの現在の状態を取得する必要がなければ、

SCRIPT=${system:0:temp_file}                                          
外部プログラム名  "$SCRIPT"
if [ -f "$SCRIPT" ];                                                  
then                                                                  
new shell                                                     
shell::shell "$SCRIPT"                                        
del shell                                                     
fi                                                                    
system:0:unlink_temp_file "$SCRIPT"                                   

だけで十分です。




 

データを扱うアドインスクリプト

アドインスクリプトの中からデータを直接扱う事もできます。その例として text-in.nsc を説明します。次のようなデータファイルが有るとします。

=====test.dat=========
0 0 sampleA 
1 1 sampleB
2 2 sampleC
======================

第一カラムをx座標に、第二カラムをy座標にしたグラフを作成したとします。 Ngraphにはすでにtest.datが開いてあり、プロットタイプ "mark" でプロット されているとします。ここで text-in.nsc を実行し、 "Input legend-text column" に 3 を入力すると、データ点の隣に第三カラム のテキストをlegend-textとして挿入することができます。

このスクリプトでは、まず dialog オブジェクトを使って、legend-text のカラ ム数を入力させ、変数(COLUMN)に代入します。

new dialog
COLUMN=${dialog::input:'Input legend-text column'}
del dialog

次に file オブジェクトの file::opendatac を使ってデータファイルを開き、 file::getdata でデータが無くなるまでデータを取得し、最後に file::closedata でデータを閉じます。

file:0:opendatac
while file:0:getdata
do
... テキストの設定 ...
done
file:0:closedata

while ループの中では、まず text オブジェクトを生成します。

new text

また file::getdata を実行した時、データの数値は file::data_x, file::data_y に入り、0.01mm単位での用紙上での位置は file::coord_x, file::coord_y に入 り、行番号は file::line に入ります。これらを用いて生成したtextの座標値を設 定しています。

text::x=${file:0:coord_x} 
text::y=${file:0:coord_y}

また file::column を用いてカラムのトークンを取り出しています。file::column の第一引数はファイルの行数で、file::line を使い、第二引数は取り出すカラム数 で変数 COLUMN の値を用いています。取り出したトークンを text::text に設定し ます。

text::text=`get file:0 -field column:"${file:0:line} ${COLUMN}"`

ただし、file::column は呼び出される毎にファイルの先頭から走査して目的の文字 列を取得しますので、データファイルが大きい場合には動作が遅いです。

一般的にデータを扱うアドインスクリプトは、

file::opendatac
while file::getdata
do
... 目的の操作
file::data_x file::data_y file::coord_x file::coord_y file::line が使える
done
file::closedata

となります。file::opendatac の代わりに file::opendata を用いた場合、 file::coord_x, file::coord_y の値は不定となりますが、その代わり軸の設定がなさ れていなくてもエラーにはなりません。




ngraph-gtk-6.06.13/doc/html/ja/tutorial/0000755000175000017500000000000012241600065014674 500000000000000ngraph-gtk-6.06.13/doc/html/ja/tutorial/alegend.jpg0000644000175000017500000000712512241111712016716 00000000000000K****JPEG Compressor Copyright (C) 1991-1992 Potapov WORKS, STOIK Ltd.****JFIFC     C   &" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|SxĿh_bִ zזy3k$[ ++ߋ|@Mc'^@U o] UG)v>Uz_]E{T›woUU^/km;;G #$]ݐ5NcVzyo鷰ͭ夫,3$GRC+)0$A]E{T›woUW@U o] UG)v>UzxĿk@z^wji>Yot˵Ӯ}R {͋o=QrLQo.2k›woUQ o] U]Z?ZjFhmd4,m% ac6O'ed> |d뿴wxX/u-hyqIf&y"M]M*7.??|%UO &tXu pʦYD3[4'v%˧zun:uͬ:eSqe,Ѣ^@ řHX7.?ߋ|@YǶ߲^X<.WIU\aqʌ# ]]|gq?:]T_O5!+V!ִ>#.dU),l`ڧ~|KމkkXΧi 'Vxsaxv_:ܥN..cppF|!BXe+|@u&PSMh_~!>E<-:UEm6(,5Mt (3Fˣ/PEx> ?]cɔЭ?@G|3>(xMHg5qgouvJ@HwlbH@;Mj |:}; ?֧5*k}dJeݾ٥d1oM_> ?]cɔЭ?@Z|.>mN6(,mڼi}F)-TH[zWƍ&ǞЬ/5-.Y_j2Eo$#(h^i& |!BXe+|@u&Pĺo˨x;ƷoeV\in.x!r!;FF1#-[jv7 ?]cɔЭ?@OȺM69.4cHԴ/>gZt]Cg ʡ.#B1! 0j<-cQ!BXe| : ;RvBbKkćv`zLOw_UWʿK1?ӥ}U@xƿ_|B$խii[m^I62)K! {]:bgSh\~_LM}UE|T??_UQ@*î?f/&_?&uD+$TPʿًWOIq135U:bgSh\~_LM}UE|T??_UQ@*î?f/&_?&uD+$TPʿًWOIq135U:bgSh\~_LM}UEr ~cශ47Lޙ/#X8 袀?ngraph-gtk-6.06.13/doc/html/ja/tutorial/graphs.jpg0000644000175000017500000002142412241111712016601 00000000000000JFIFHHPhotoshop 3.08BIMHH8BIM8BIM 8BIM' 8BIMH/fflff/ff2Z5-8BIMp8BIM@@8BIM 2|JFIFHH'File written by Adobe Photoshop 4.0Adobed            |"?   3!1AQa"q2B#$Rb34rC%Scs5&DTdE£t6UeuF'Vfv7GWgw5!1AQaq"2B#R3$brCScs4%&5DTdEU6teuFVfv'7GWgw ?T+m{^Vp.7o}r} vKz:~/0Kɂ}.̺z}O3)$_\sIhh9UQ?]A$z-_'2зLn:?-F 9T^kZIs=lkMKS, cuOlrOe X[`iD8r&P߳Y,T?iVhlc;O['5[[S! [c0G܀p?7p8L?'w#a 8^?]Z--uտru ==?JVѸh8?A匯{@lLruv9 P-;s?Sh?). uo)|Ok\bzS"~?fPOq|.$xk_;?+jֆ%Igjh Zג<`kUʯX?ԄS!0GUf=]ݻ{ XZuX͟z!*c/ zc^H"7~]νMQ ]}{fNZ}Hn:  @a_r9jc0GOG=~ 8~nLw#L7Qy|S8CuXH|O_Ծ►>G=[COWO+]QjlΪGٹ6kp5؝K\Kl| ^]C[Cи܍4_Sf(ʙ(HFzGQWǎTo+ah,;n;,XX# m6FbKNu;EwcSSqoBi<ߟ~$̓oP^}LIߏ~$_0Kӓχ[JtχS?rwޡR ܟ%0{YSFc:+e4K$6Nm^ff=!{ZoKj:y^/kbNH#*32?(R`^|גݏP=Hk5W99Xk3}/WLѼH)y#Gsϊx6w?濺_7f5 L۫tǻkw6+1t<}V1Ů͖=s@,?>M riϵL"Hi#iߔh')~$̑W FeUƹv*xU[l"tl;T muEۙsC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)?jlclv-h,i!l' ))9lYTFΦiM XRFCQ3Tnj2#o9^ElLmsH/i//o,fΜ޲{Lf@XO _@E*4B{&ACsDl/.'_i;9~i g[MϿMH} ,7|豑:!M|w.㭷fy^6s/xmZvᡧU/O~DǙB~`;wb f8 !+)=4ÿK)1LTg)o1x^fuBrOt&qx01ɁMwC', v%c{amZ.=~ZmÝxt+=-?<: Rgi\.֯{%" RJ@t]0tM#֮Q`A?C-"s]/$u'zL4!XXAVQ)9lݹ{>?Y |< LL.աynOB|˖fyHq`0$:߃aXm,*4Zɧ/xhzx:>1 2صM"-e*uRRps_Cm2ӧLBOÝ;K3y mwϱ=X%~pǝ8H&oZWM/~+sFՆaWђibpB)%Φ+'gކ%-}j%- #ډ=i0y9]w]7>MytePlz!"Ƈ$O7}2uYTå ] c6omDibYZxC]]I;!l6aeu97q0؍cB %W!+&X.wHKMAgWGr([ 3il.o cbLL~tll?c&mlĂ5>/Z[=TWU}N$hl6]c䗒bxVF߅ >R"c+q ՟*7I)gж<󘖉im M1OlwX )b.A!jnj$-}m۰gڐiX~$Dr/24A4Mg)?4}zל*gmy, ECCpdx>5&ड़X,Nh"0eJҠ)br775⚖QMC5m>oL;;;HMKk7IENDB`ngraph-gtk-6.06.13/doc/html/ja/tutorial/focus.jpg0000644000175000017500000000762212241111712016440 00000000000000JFIFHH Photoshop 3.08BIMHH8BIM8BIM 8BIM' 8BIM5-8BIM8BIM@@8BIM 3DfJFIFHH'File written by Adobe Photoshop 4.0Adobed            D"?   3!1AQa"q2B#$Rb34rC%Scs5&DTdE£t6UeuF'Vfv7GWgw5!1AQaq"2B#R3$brCScs4%&5DTdEU6teuFVfv'7GWgw ?D/Kܬ_{T_G\pe4 @unRS}%K+aԽ.rIMԖf^Yɡ;3ŧsqm!3(Z?aĔIR{?Eu6Ӧfy$JV/Y.rIMԕOZ b{?cU31)ckv;ˎѷs\I)IR{?1V(>?f{RSy%A^3]g>:f)z]ob=ڒDI%)$INn2YNGWm4PKi2Ecޏӫ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]^u6Ǽ[LX|YQ~3rmHB)K۟_a y`SP}QMAߵIξz݊Ԕ6,Nd`Is4zʡDhթp8n)5"fFB+RoyaJE{{#\3;nޔ }?읯q'&Z24%Mr[Qf@2üP#s#»\4jMqSd$9&KݩpC̷Q͐ӟyy\.|pKoAL>M ؖ;uaA>O-RXRYsUWup{8*6a`&%Fg<}}:cSR|siT^u>M5i6MPhIЦiv" ,&ǻo Ce#4ˍiQKqmkϵFX"* 2>NXҬ 4..Oߜ/OJ^ߛ}=?v]>iY6*U!*w,i L{3wl֌NFZwڪw_BH<첅-c}H/C4ĒipZЈ;HlzK'+'FnI6k ƏJeIyW{=!ec'itN(r$$$%$$"]?2j]IENDB`ngraph-gtk-6.06.13/doc/html/ja/tutorial/Makefile.in0000644000175000017500000003700312241364551016673 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc/html/ja/tutorial DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_htmltutorial_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(htmltutorialdir)" DATA = $(dist_htmltutorial_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ htmltutorialdir = $(docdir)/html/ja/tutorial dist_htmltutorial_DATA = adialog.png alegend.jpg awindow.png \ axisref.jpg evaldlg.png fdialog.png fdialog2.png fdialog3.png \ fdup.png filedlg.png fitdlg.png focus.jpg fwindow.png \ fwindow2.png graphc.jpg graphf.jpg graphs.jpg window.png all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/html/ja/tutorial/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/html/ja/tutorial/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_htmltutorialDATA: $(dist_htmltutorial_DATA) @$(NORMAL_INSTALL) @list='$(dist_htmltutorial_DATA)'; test -n "$(htmltutorialdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmltutorialdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(htmltutorialdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmltutorialdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmltutorialdir)" || exit $$?; \ done uninstall-dist_htmltutorialDATA: @$(NORMAL_UNINSTALL) @list='$(dist_htmltutorial_DATA)'; test -n "$(htmltutorialdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(htmltutorialdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(htmltutorialdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_htmltutorialDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_htmltutorialDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_htmltutorialDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_htmltutorialDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/doc/html/ja/tutorial/graphc.jpg0000644000175000017500000001157112241111712016563 00000000000000JFIFHH Photoshop 3.08BIMHH8BIM8BIM 8BIM' 8BIMH/fflff/ff2Z5-8BIMp8BIM@@8BIM |JFIFHH'File written by Adobe Photoshop 4.0Adobed            |"?   3!1AQa"q2B#$Rb34rC%Scs5&DTdE£t6UeuF'Vfv7GWgw5!1AQaq"2B#R3$brCScs4%&5DTdEU6teuFVfv'7GWgw ?TI%)%W2ʭ=l}/3)$VZ>IJRI$I$q/޷svǥz_=EqRgt{4^$I)I$JRJv',c˜rNd>,}VVRSTI%!̥Unal}꟧`kkn6 lh{H2!w*jO,k,kv}0{ҰcRSi$IJI$,i7Zko-iqo3S^b`nxߪ)ꞥgCD Z))I$JR=I'AITAP1\HSL2﹟ݎRS< ^%bn}_:7{a$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~u ٻgs]?}4baGrJmaD--FAG[?Z.-aP$>۞YScB}F^ޠ7dRY]:,`(gկH_+2Nz.{mv׾ԲnKi*kp+eb-p8j=sIMc1o4VI  $3t^Գeֱy>*ִI%)BjOu4R q/sI$RI$mIJΜ4蓵.?.ΝMɪkt@n}<_3/}7s=U:ȼuޥM[ ׷KWWXy=aĽ`{IOgO}X:E!5DƮ{Nʲ)Դlooo2JRI$I$$I)rms+{w轟=3 ?q}hgMSg@vLZֱ2X5eLoTUYòdmwFnSvu[7i{^ X8e{SWU,hֽqci)flhk{Gq̧=$$I)I$JRI$I$(]MWnh}v c4Sޓױ N6s~kҳ;5wqenZC"}>oԞXs\%\$In'Cm}<#(okҹ} ^`X?ӷ}9AP0={i)I$I$$I)I$JRI$qm vlt:7Fe[555浔doILQ D--FIO,繗auwgϪW5l`Z f9՛jKqUޝ; bd"\6øs+MioIM #)ָEMSsA#QE%17b̌YS e\'זjeN?KJ;?Gzl79J߳TgMfCjb*z+g?)?N/K+4ב\?jǖe}-Vʙwe \UV;MuWNZ>۹ޥ_gj:S5iNU~LgcCghڦI$$I)I$JRI$I$,~ͯcW9VXeލTRVmtӖ˘[77h}*I?¤N[KyiwRTN=ؽ7ګk_ڸI$$I)I$JRI$I$,Nܬ۩mne5T[cXluA+?ŭ%1=_"*ou-% km?f=ɴKlT~뾗}+G~l.{2et׵d5Xedz}}~]_g"RS^J}%$R^J}%$R^J}%$R^J}%$R^J}%$R^J}%$R^J}%$R^J}%$ngraph-gtk-6.06.13/doc/html/ja/tutorial/graphf.jpg0000644000175000017500000001277412241111712016574 00000000000000JFIFHH Photoshop 3.08BIMHH8BIM8BIM 8BIM' 8BIMH/fflff/ff2Z5-8BIMp8BIM@@8BIM | JFIFHH'File written by Adobe Photoshop 4.0Adobed            |"?   3!1AQa"q2B#$Rb34rC%Scs5&DTdE£t6UeuF'Vfv7GWgw5!1AQaq"2B#R3$brCScs4%&5DTdEU6teuFVfv'7GWgw ?T+m{^Vp'SݾNTNRJ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ožСU .trK&96nO/\ j=; +#`R$r՗2omt]v|;%_0CJ\//xtl:!CYG3eLrȽ{v];[ȃʽw}{v=];-o\Urd! Ðwo*^xY1s2?sL93k֬gΜ9q/R'iU/b*Uų>['EU. uYVe~wхiU2ϛWR}\3<GTV(3|=&LET o rs9N2Ϗ Dž駟IZUg]+Zָ2dH'tR֊KJI.]\Gu9$o͑Hƭhk@׳gϸ\ҥK J)iڴiƽiӦrGFǓ^^!P)%nW(4.^7%}TRBZۮ3*xĻlՆ+9唋y(|,V &⩈fΜf\3E0 !ٜ>.SL*tV4[C!7',ڵm?}є,&eiƽNe8\(;Fp͌Ϙ?y{ i u)a&L"2ql hO:\;Ys&LEdظw@sS_2~H$g]1d @}4MV'J'F+fX4l$SHNMy^hھ7}̞bhTSL(ah&Cfڧ,z:0bDYG3%7(1ZLnw4?wׄBӴ"Ȝ&kd @fn„cGͤAJ yF޽8̸7a„c[DRmvҚQX,6baڴ<ԓdddD?k׎mO?4aSDu3Y4M79h„㧈 v{>;@ &"y}LL(}<))yo19h„h ;Y*^{ 5lHbb"[nc%#Y0.29h„+Kxuвu[gwy;={090a".5&Vp׬A4M'zͻf&L b yyW&Ld &jQ()9#pu=KbZUT&L"31 &jY%F3a„"#2&LuEt,gL0qܷf"m v>}z3,31 &NET,1Z}x7wm r̈́ 'F߰{&܏G?߷og9arЄ OY-Nܹoh&L8b~ Pna31 &Q231 &" 'F=CyBh&L8%K0cƌR_3m31 &,m?r:0իyф q̈́  31 &̄ &Nh&L;h&LeEd&F3aDmLf„L0aN+ڄ &*躎Q‣;n3 &̄ &"2f&L?8QoiܹC2g„/zEU" a{&L E$ .ū &Ym„ S0aDtkd&F3aD)")%-[f=Ϗ ԗZ*/40afHp-[UݻLN0a0}D&L0 &LȄ "2a„ S0aTD&L0a*"&L:?,U/ C8LIENDB`ngraph-gtk-6.06.13/doc/html/Makefile.in0000644000175000017500000005255512241364550014446 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc/html DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_html_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(htmldir)" DATA = $(dist_html_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = $(docdir)/html includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ HTML_FILE = index.html EXTRA_DIST = objlist.nsc dist_html_DATA = ${HTML_FILE} SUBDIRS = img ja all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/html/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/html/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_htmlDATA: $(dist_html_DATA) @$(NORMAL_INSTALL) @list='$(dist_html_DATA)'; test -n "$(htmldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ done uninstall-dist_htmlDATA: @$(NORMAL_UNINSTALL) @list='$(dist_html_DATA)'; test -n "$(htmldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(htmldir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(htmldir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dist_htmlDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-dist_htmlDATA .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_htmlDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-dist_htmlDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/doc/html/objlist.nsc0000755000175000017500000000201412241111711014525 00000000000000#! /usr/bin/ngraph -i TMP_FILE=${system::temp_file} new io new string new regexp regexp::@="(current instance:)|(last instance id:)" new regexp regexp::@='([^\s]+)\s+([^\s]+)\s+(.+)' for obj in `object` do echo '' object $obj > $TMP_FILE io::open "$TMP_FILE" table=0 echo '
'
    while true
    do
	string::@="${io::gets}"
	if io::eof
	then
	    break
	fi

	if regexp:0:match "${string::@}"
	then
	    continue
	elif [ "${string::@}" = "alias:" ]
	then
	    continue
	elif string::index ": 0"
	then
	    echo "${string::@}"
	else
	    if [ $table = "0" ]
	    then
		echo '
' echo '' echo "" table=1 fi get regexp:1 -field replace:"'${string::@}' ''" fi done io::close echo "
permissionfield namefield type
\1\2\3
" echo done echo '
' echo '
' echo '
' echo '' echo '' del system ngraph-gtk-6.06.13/doc/html/img/0000755000175000017500000000000012241600065013213 500000000000000ngraph-gtk-6.06.13/doc/html/img/bline.png0000644000175000017500000000026212241111712014726 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*AIDATc3` #?@`SPG >  n2ehIENDB`ngraph-gtk-6.06.13/doc/html/img/bframe.png0000644000175000017500000000024312241111712015070 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*2IDATc ?`0`xw{@`C@u }P30c6IENDB`ngraph-gtk-6.06.13/doc/html/img/eval.png0000644000175000017500000000565312241111712014575 00000000000000PNG  IHDRTPߖsRGBbKGD3'| pHYs  tIME. vtEXtCommentCreated with GIMPW IDATxOU_ugH`%1"1CtCD" do͓DăUD"h I8Y4x DdTtӡ= 5Tj{&==~U^{UN ը @@ @@ P@@ P@:,gٸqQBN@b=&}Qy%JYLT*T* *qK*J׮~en x|RzYiz('NYW}; UM*_'}҅ ٗu[La@7ߖ\_ƍ/jT {N:pjOH.m\*!PdRziiq{Ҷm .yi~^z}ӽmI,=Z0%1BLWWޓ:o矗Ү> 3H> 8ңJo)zkW@;th%X}رr} r0o>iii 7ݴ-H| }P)*`/H|"=x[g߯5ӥKVnZ?PIjx(cccvoJU'CT T6mE7 ?_) ])^72ytu5չc*w'^qL^WWWzRMIRk@_֣SP*锟2B#ffgkAΞ=K%|^@{S~9Zl6u5娂kbbOl/yI,#Ö/rVN BS+[qAe#L0B` gy8l E/yz^pAm8nžQ*㑙GV8x0QP2٨<*a+&(lm"(]>$ljl2Hi+fS^OX]^w$ifz&{F){tok42ey?a E}HhX~>r{/5$˖tYOE&;"`-?ћO _Ǹgj*ɑ$:i{1%}n>E̻(~Wy {Fypk:ܲ~%8Rɲן0 7>#sdu?hf?Jek(0ݎӴS~z=cӑ+%Iލmf]~OB;v἗3TL']+o9^~a#nEK҃{^~ z) yG$~%=s>#*oW7M/OP3Ȑzʯ^GzH`󇪽Fz?-QEؑJV)`qʯmu=(H{Sm%Jط(qz/ꈒ;fe=FsP6`БJd&鷶LE-G@@uPoA9:m*lee{ޓz]N wmBE'L6XN3ɷLC`D+9!"6K::ijڿ,Kܲ_سPO{wk^^Vخom5fX~M&|ް@0}%Tx==fu<.b~}(zqOw`>jnm|+"C>N>ZH{w?_VTGڑoc j{A_n~xgzmQ/ V$y"] "-(^7/Ӆ=߸3Be3e+LPS3ө;wŸ+|jKM#sۗ/rrbw*,0Rٵ=U {i+Yu =&#oy8[ "ܙ9mܾsg2Y~MʢXf^['h2lqp?xƚFyl6s(AL ZX\жiaq!kžqߋ&N3kپb0K?gYfh> U;ݲe * ^9JRMBMLLP ^Q׃< *hcT572]vl=PwZ:W;j<:[zRMs=:xFG:0kI(NJ:W559)jTV)?@ŚkZ$V9l/>lIENDB`ngraph-gtk-6.06.13/doc/html/img/bmath.png0000644000175000017500000000022612241111712014730 00000000000000PNG  IHDR7bKGD#2 pHYsHHFk> vpAg\ƭ%IDATcag K&BȌfuѝIENDB`ngraph-gtk-6.06.13/doc/html/img/bsection.png0000644000175000017500000000021512241111712015441 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*IDATc`0`aC%% 3ݹkIENDB`ngraph-gtk-6.06.13/doc/html/img/axispo.png0000644000175000017500000000573512241111712015152 00000000000000PNG  IHDRTPߖsRGBbKGDC pHYs  tIME ^ThtEXtCommentCreated with GIMPW 8IDATx_h64RlVz %V$ [zmB7V|I"⃢*>"Vnږ1hKQ۔vC03gfMsΙ39gvt:o5@@ P@ PT PT*r;.-I}6n\yM@yNc{LKkE^*)? @@ @@ P@dwWڵorm xc|RzYiz;TwSK>5;Hwޙ2^` PIR#}҅ xV魷i7-VoHo-]b7J/2B44^` P~Qz9;%դ'^]ڼx-XOK JwһJ۶%^*ex@_lumKG'LTT_^yEz=J6l^xAzyixZ@2og>G)#TA"}n2h^T[733kiii/GGGuҥ՟&-T!*訦`I:bզM{O`h£Tv[ss:9-//Ra1v&P^g b*?2|i˵NZ /8 ^\o~E50:Tu B`YgGye6BQK}RMN':C8Izyٶ e:NW:<ϳZ^++%]ٿ}<ϻ.\}O7X0<i?;<w$ؾg{ !r?H[SiPu} [~ICUQTrmT)$*xd?^CYȄϟʆVXJJqd7BM F\p .BR>m"PmIuyʯV6jzj:vGyuуE{v>e YUJZ7_ڀ SBU^'q@EQut_)?$'u1:Bej # bz5dy{[䨑<) (E*/sh!/!.[e>Pi|_܂EpyT}:Q~GL/vD>.G]/a:v[9|a$W5on,HpSMWJQ荍#<)`i#Q3Q*[@qHz 8K?6~qP<-rp!"qS2]سW?14#T6?SU {z53;Scգ§fOY; <2}*/Qt# ..v\~Pes_Qn#ra4}%Qnςd=\/2O-͞=3twoRw]A9u]['h}eXE}U={v]6DQL _׶i~ai5uaϴmN3k[l_1}e,~30nٲO/IDeT Pi / T~x QLCP@ZW[^?k~x=kB{>vՖjZ.V,jV(LS~},ё.RF41M5 TNuMNLjrbiPu&-0:\J]IENDB`ngraph-gtk-6.06.13/doc/html/img/beval.png0000644000175000017500000000025112241111712014724 00000000000000PNG  IHDR bKGD#2 pHYsHH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K N{ ʖx?:߫e]KV-P<aqqs_mmW&[}'l"ĝ z{ P .߲TS!hK}OtXToӕ*{_gCK҅?hK $=) eN_r߃s{QUʽ_ݿ$R* T2W[Szaj}ύ>*Rݩ*b?PʱɯꬻW ٷX)?l( ZgclBr_S)d^MWl|#@Ā"h0A+0NAa=*U3~ι/h'z Z.{T55 *=):1X l~sH5~?J]NwuÝ}mdOY5DŽz|nzQUpk9%iٰh4.?}MB_W)W!=@TTAa_)[MC9!7~0~|r^oT5%6;/\kjV7?H$~Og:Cfߊl-ra R+Ci`LI>~q*c5T EeW.-lZx.Y]]BtmJ3{jΟZ`5 .1tAUCK*]nM\2gcPz>K z_5. &|9z4 wtd Iȿ_)w.GX4K=rU 7gtc\b7^A{|uwUF-j=cE6t {J{_~{+柡zN Jxs~&**&]se m򫭭5|$Z95 vb.,K+IENDB`ngraph-gtk-6.06.13/doc/html/img/winaxis.png0000644000175000017500000000024712241111712015322 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*6IDATch`0`> S?a= 㣰  4o``8 %E^IENDB`ngraph-gtk-6.06.13/doc/html/img/Makefile.in0000644000175000017500000003734312241364550015220 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc/html/img DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_htmlimg_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(htmlimgdir)" DATA = $(dist_htmlimg_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ htmlimgdir = $(docdir)/html/img dist_htmlimg_DATA = barc.png baxispo.png bclear.png bcross.png \ bdataopn.png bdatapo.png bdraw.png beval.png bframe.png \ bgauss.png blgndpo.png bline.png bload.png bmark.png \ bmath.png bpoint.png bpreview.png bprint.png brect.png \ bsave.png bscale.png bscundo.png bsection.png bsingle.png \ btext.png btrim.png bzoom.png winaxis.png wincoord.png \ windata.png wininfo.png winlgnd.png winmerge.png icon.png \ aclear.png addgraph.png axispo.png datapo.png draw.png \ eval.png fopen.png infowin.png lapoint.png legend.png \ lwindow.png math.png pointer.png scundo.png trimming.png all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/html/img/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/html/img/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_htmlimgDATA: $(dist_htmlimg_DATA) @$(NORMAL_INSTALL) @list='$(dist_htmlimg_DATA)'; test -n "$(htmlimgdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmlimgdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(htmlimgdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmlimgdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmlimgdir)" || exit $$?; \ done uninstall-dist_htmlimgDATA: @$(NORMAL_UNINSTALL) @list='$(dist_htmlimg_DATA)'; test -n "$(htmlimgdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(htmlimgdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(htmlimgdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_htmlimgDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_htmlimgDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_htmlimgDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_htmlimgDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/doc/html/img/bpreview.png0000644000175000017500000000023312241111712015456 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;**IDATco;ƏAj@jAf) IENDB`ngraph-gtk-6.06.13/doc/html/img/wininfo.png0000644000175000017500000000025112241111712015304 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*8IDATc`0T0>`(!C:~P`pA?  z@zAfQP `IENDB`ngraph-gtk-6.06.13/doc/html/img/icon.png0000644000175000017500000000134212241111712014565 00000000000000PNG  IHDR@@XGlsRGB$PLTE3tRNS@fbKGDH pHYs  tIME!:7M*IDATHDž1o0/KmBRn)صK,BZ sC $t?׻"E%h{Qe-\\vx` / T?H9Ĭ# }Q+ՇsoöEDoۤu 5Ӝ@Jj+?!!z[0P͢l[D~,*7O ~D<* Q%rG51orr!錈57y4(KϞfJ+|Q;^Vx"¿y Hi P/ 89€6|W+FlU{DFEp "Bg̊!|̄K5Ax?j5B2kM!QqP!VZTn(jU71|tCxwA7>No_ts;7##!;!#H_R ֱlAN1- DXHeU/z4!}?uйc;np_ɰ\2-@lhV-dNI Dm>B UHA f?Z`Jٮ7IENDB`ngraph-gtk-6.06.13/doc/html/img/windata.png0000644000175000017500000000024212241111712015262 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*1IDATch`0`^ @*Ml*o``8 ()(cIENDB`ngraph-gtk-6.06.13/doc/html/img/wincoord.png0000644000175000017500000000025612241111712015464 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*=IDATch`0`oP(v? p5&0:ao ۫!  H}&+!IENDB`ngraph-gtk-6.06.13/doc/html/img/bdraw.png0000644000175000017500000000032112241111712014730 00000000000000PNG  IHDR(=BbKGD#2 pHYsHHFk> vpAg(Ѓ`IDATc ߃`r7,^ȿW@{nH<\tHne$w}uͰG˯ Z0r?v'QKIENDB`ngraph-gtk-6.06.13/doc/html/img/bgauss.png0000644000175000017500000000023512241111712015121 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*,IDATc OTp05;IENDB`ngraph-gtk-6.06.13/doc/html/img/bdatapo.png0000644000175000017500000000027312241111712015251 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*JIDATc?P b?0oOÿ0w7`<{? &/‘`wIENDB`ngraph-gtk-6.06.13/doc/html/img/barc.png0000644000175000017500000000024512241111712014545 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*4IDATc`Ǐ 0~9~/ArF%IENDB`ngraph-gtk-6.06.13/doc/html/img/bpoint.png0000644000175000017500000000027612241111712015135 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*MIDAṮ 0 ۄh*0PE@2_JA1OⳄ5N94aK0Q80#'n:-z%?/<32IENDB`ngraph-gtk-6.06.13/doc/html/img/datapo.png0000644000175000017500000000564412241111712015116 00000000000000PNG  IHDRTPߖsRGBbKGD3'| pHYs  tIME-">tEXtCommentCreated with GIMPW IDATxOU_ugH`%1"1CtCD" do͓DăUD"h I8Y4x DdTtӡ= 5Tj߫W@IW*jT @@ P@@ P@ PT PhU0?L>7<@(!cG^^{T* * @@LtZ7N_ ҍ7'g֯g[T('N,+tl %I~(tBo*43öT%oHo-]b_^! P {N:pjOH.mL}@b_~)={Ҷm/l°yi~^z}ӽmI,=JFٯJ"D6H/ =hPoyF}TzM[7TXС`wkcyRG=PUɾ}%ni[n>@k 1BUU"}n-TccctϭV*IZ^^^ OyllLpjt z!jӦM׽'o@XS~Qnyv. h4t{Rz-Q?i_6sGt Ң459֥5zèݮjN-GZWQ9(Nr!{zPܾuu} !Ք$jܽT[o=:> NI+#T6Q4M55?{_ ;$wY*K夞sTѢf/y-L,G?^|>/(`{' G-_Z'LyttV7*D0B` ζGye&ېBQK>)h^!,3 ?S]3Je<2# j@Y6iEG2Z8ׅO 󆧰˺s3W#~wA;NavA;QE8N'UE Rq˭ROE T#ϟNTUvĦbUT#(̻s4jMuaF0(K{mq CKQیG UE -['Qi)Z::Ўq=> ?w:2LE]7]eLozHS~'ɺu*Ki^|TCfgRgGvA#cyo{ S(EZƬ̡ܟ!eEْ.k)ׄO__,=zS SwJ::M_pd%}n>l".a:~sžQj: -_)=zGɼ7&T,g}nLGLqvzʯ^Gz 2w:{Ey$ ׻ëyo{ S({=l{9.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kڲ_سPGն{+^ ^V_Uш,?W_m >_WK }%T|= ˺ {vj> {&O(>i1nM|+C?<ZHɶ{~U#5pMo{/GG+zlI/ Vdy_.[ 0WMūta^oܥ22G\ӫө9[.+|b愱M#sӗ/H7bbw*v{U+TFvMOqra4mQς `g+b7sjF[Ʒ,̩RwEWx&QYaM˯vw= g݃wkolc{&-+S~*_͇aЎz7l =r\S~Pƨ 0O~=JPT6PeQJKëK]E^Nu/6ަ̫uZVʣjOkMl=\S~wuN͟ҡ/.#׍h6jqp'Pe5 V)?-?@6~=U)fI@PȀ~]D?H~IENDB`ngraph-gtk-6.06.13/doc/html/img/winlgnd.png0000644000175000017500000000026312241111712015300 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*BIDATch`0`V@k?6@PED  N ' +IENDB`ngraph-gtk-6.06.13/doc/html/img/bload.png0000644000175000017500000000027112241111712014716 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*HIDATc`P} !C 0tZAkÁU ~Ha ]')\2prIENDB`ngraph-gtk-6.06.13/doc/html/img/bcross.png0000644000175000017500000000023712241111712015132 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*.IDATcb l(]{0C/iOMCIENDB`ngraph-gtk-6.06.13/doc/html/img/btrim.png0000644000175000017500000000030112241111712014744 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*PIDATcw ~x ;`xHol@ׇ (0<)P P7 S1x4!IENDB`ngraph-gtk-6.06.13/doc/html/img/bzoom.png0000644000175000017500000000026112241111712014762 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*@IDATc  0onb(PCC 3 $-UIENDB`ngraph-gtk-6.06.13/doc/html/img/winmerge.png0000644000175000017500000000024012241111712015446 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*/IDATch`0` kM`Xo?# pA"`@)IENDB`ngraph-gtk-6.06.13/doc/html/img/Makefile.am0000644000175000017500000000117712241111712015171 00000000000000htmlimgdir = $(docdir)/html/img dist_htmlimg_DATA = barc.png baxispo.png bclear.png bcross.png \ bdataopn.png bdatapo.png bdraw.png beval.png bframe.png \ bgauss.png blgndpo.png bline.png bload.png bmark.png \ bmath.png bpoint.png bpreview.png bprint.png brect.png \ bsave.png bscale.png bscundo.png bsection.png bsingle.png \ btext.png btrim.png bzoom.png winaxis.png wincoord.png \ windata.png wininfo.png winlgnd.png winmerge.png icon.png \ aclear.png addgraph.png axispo.png datapo.png draw.png \ eval.png fopen.png infowin.png lapoint.png legend.png \ lwindow.png math.png pointer.png scundo.png trimming.png ngraph-gtk-6.06.13/doc/html/img/brect.png0000644000175000017500000000021412241111712014731 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*IDATc `(0=P3].R#sIENDB`ngraph-gtk-6.06.13/doc/html/img/bsingle.png0000644000175000017500000000021712241111712015260 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*IDATcb l($2WNIENDB`ngraph-gtk-6.06.13/doc/html/img/blgndpo.png0000644000175000017500000000030412241111712015257 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*SIDAT @`o [@i{VP0k%yr99wyKgKNioI(bĔ7֨[Qu+ٲc,/IENDB`ngraph-gtk-6.06.13/doc/html/img/infowin.png0000644000175000017500000001574712241111712015324 00000000000000PNG  IHDR]P#sRGBbKGD pHYs  tIME90#tEXtCommentCreated with GIMPWBIDATxy|[9ZlɖyljYB6@! &PJJioe޶@p[nS:}N-R aO }85lٲ6Rdvd[d{KH{~sXe!B!ƕ*@!BBB!.!B!K!BBB!.!B!K!BBB!%B!K!BBB!-!t c?!E.x-Dn}t}B t/ !BHB!%B!$t !BHB!%B!$t !BHB!B!$t !B|XeąGذLs| =sr 7s8B ]B|l_:lۖ[`\lBB2? MMY?뮓B!$t q'x˃{ WYB!K LCu<— ?!B ]B\6oo|vNk^qh_!@ȔBڵs'P\<ך6 xCB\`%HtvhZɁo-Ζ( 9x6n<7Lo**d !.!Ĩb8|:t}˗m\)I!bL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d8#T&?SU {:l:SscգwO͝2vt?{dnU^>F@l\λ~dn_Q~#ra8m%Qϼ' ?ogb5wfN'ܙ\wYo~McXfm E_~衯@Q0yh:IP$] v6-,.XMY]3{qi|fM ++S~67K ͇jG[lSyAAK;Q)U)GPnl h/ Tnx(A< *hcT57r-tzjB{>~ՎjZ.N,iVjB){GgWGts) &@qU)z)MMN%@e@XS~V--9lȣIENDB`ngraph-gtk-6.06.13/doc/html/img/bmark.png0000644000175000017500000000024512241111712014732 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*4IDATc`ǁ 0 vpAg;*YIDATc@ 7ïU20Zp5D  |`a_޿@?-+d?IENDB`ngraph-gtk-6.06.13/doc/html/img/lwindow.png0000644000175000017500000001574712241111712015336 00000000000000PNG  IHDR]P#sRGBbKGD pHYs  tIME:)tEXtCommentCreated with GIMPWBIDATxy|OUR:Z%˲e|Ć2lB!2aM LȐ!N& d `0s}ICiuK-r-m]¿ S}=.u}yyB!-E.xA>:wd} !6&݋B!B!$t !B ]B!B!$t !B ]B!B!.!B ]B!VrT ֭ã̜=\.;,B ]6׿[d-kDo3=[!BBׇe=@cc? OB!$t] xz{{6KֿB!S_wO=56ﯪ/B ]߀;SW\,X W!!2"V׿ѽה)BJWuthZɁo-Ζ(BHIٿ֯?77Ï ބB ]bD^|18K㶖/$B32nvN/QP]V^=7KB!)tYK <$zkrB!.!B 㦛n~6l5&B1V5 ' !B?>1h \!B"tŇ\!B"tW\-B!#] !BQ.^B!HCE!B4XJ Z˅B!(Bt/ !B!tIB!rح(݋BdަMXbň_";~ֶft,b_, Ӊ'Kn_^%Ej' y?K3N. lo]X^M***JYCFix G x%)tH'[LlB9dvdYGq4|O\:0}}N' ŅTWz0O1/h<ՔYYYe"t%{őQh(=ߟHig,M͍,]po40M321M,PU,wSkV5{w{oqɢ˶y͗tDz=ا5s^ZWݑC1w((?$KP^;vx2B,0L<ʁCY3;%69d<5ZZ[ B_?1#zuVֿ ǘQ3=#ߝ#zZPP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7p(vߒ3 M+ ]խthꖝۘnVLg׹~K:lL(Yuŭt,Y??DIU``E.v?n?\E.\;)zԕh  3gS\Tm+uuuX@݋C]:ٰ6A( W!e_EU{N?ƾ{ RVYFQ`;PTmf-m(9 25h|Kms@?^ڛh:>M5bY 2,+ Ǽ{n+W#Iu:6hAt\QyyvdGn>HiqitiꞰ, ɪU׿Ψ/77o?tkii c@+˯ľ{ USL9#JJJݎ(A(Ϸ4AމWeD"tuvm{縨|eee/ICCa$UZ6W^x5]ͦMy\yf2qI*.t6D0 Ӊr%;2݋mmms=H{Ʋ,xGg&>;C譢(R5y*MMMTTT'EQb())`AA555dee*Էt8yq *]S&O& p„*99޸rښuNi,4n݃NɀuEQcŊ,Z+3|[w71 =uQU,F][Zf̀c1^1z6l 5YHaJᠼ|D?<#ml씮Ѫt:q: ---:u ˲xdz}^^|kc$k4ۃ m۶ge*&Mbɒ%<_ڴ(vSYY#t_UU\.WRUϧz0%%%A'h*Kpx vpAg;*8IDATcw ~ lvPCԀi?P0 /K LIENDB`ngraph-gtk-6.06.13/doc/html/img/bdataopn.png0000644000175000017500000000027512241111712015431 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*LIDAT%Ʊ @ @ѿ#"]BqWWl+0+qƁQhڣ"UQI~Ϝ?p/\ ܝIENDB`ngraph-gtk-6.06.13/doc/html/img/baxispo.png0000644000175000017500000000027612241111712015307 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*MIDATc{ >P6?0oOû ޻04O`x/y -JIENDB`ngraph-gtk-6.06.13/doc/html/img/legend.png0000644000175000017500000000603512241111712015077 00000000000000PNG  IHDRTPߖsRGBbKGD3'| pHYs  tIME+.\ftEXtCommentCreated with GIMPW xIDATxoTߙqq6e[wk$͈uś‚w]!TTЋ^Doc!!ZWRMem{+A)t5lYǹ/Ϟ9o]99gw9Vl  @@ @@ P@@ P@H2ȹY?O_l6Tc<#}Yy wO)? @@ @@ P@@r5?n0_^_gYO*@~Uzi~3_*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int.png0000644000175000017500000000026712241111712015140 00000000000000PNG  IHDR bKGD#2 pHYsHHFk> vpAg;*FIDATc300 s`8(@(6^)22IENDB`ngraph-gtk-6.06.13/doc/html/img/fopen.png0000644000175000017500000001575112241111712014755 00000000000000PNG  IHDR]P#sRGBbKGD pHYs  tIME8+OtEXtCommentCreated with GIMPWDIDATxy|[9ZlɖyljYB6@! &PJJioe޶@p[nS:}N-R aO }85lٲ6Rdvd[d{KX{~sXe!B!ƕ*@!BBB!.!B!K!BBB!.!B!K!BBB!%B!K!BBB!-!.g@ 0 B1b\Z -}>YB1 ҽ(B!K!BBB!%B!K!BBB!%B!K!BHB!%Ba%b6l>c̜=;,BB[׿۶-օo3;W!%će=@SS?,OB ]B\ x{Õ6CֿBHwO=5>ﯪ/BB͛߀ݻW\,Z$W!Fr*@kaNxl5m<8.!t q~+д_6|[-Q!$t !r qlx_n~c&uй-_r'!H%ąkaϞeCu.!H2t !|n5!%B=7t>h \!B!tņ؀\!B!tV\-B!] !B1.^B!HAE!BHZ˅B!Bt/ !B tIB!ؠ߭(݋Bߖ-[Xjը_B?qt,"_, ݎ+MnO^%E1H;|l{.sѝL/\qۃ!t_c1{q,a(i moo{H{=56P\Tŗ  CGuB>N5do1I(g"˲h8v3g,|/ɇ[wpc۱p-.,zq}}F椼W~Gʒ-+k/&EBQ@J{=㡨2:e+ 1M4,4UUrfQ=U3ٻ7,YLkx7| My,;}94p=B^~-¦((N1t΍sh7K-IJ, ĩc:r5shq3QN&R[@ m̝{/?9|wmg˛9xY53es(@h{O:gݍ=t|BW$`ɠ(JRvɖ 튴!m T-˂},S(kXiʋ5MMQZ\⋗W{c_.UU ٸIŔ= j)).aҤrtMPTUPE50uEy%v;{^CD 3EEE}5*Kǎ5R^^eN|?g:|*u]Xi{=v,-k EQ;uq \tӸ ZGڎ<@Oʼn"22-Fڕ6E>7v wþ> \+ #<4MO7 i>w޽b53fmVV\ri*3`eqv9y<LZCn#v՗c˒Ҟ6&O͎ffc?{<ePT41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IB!D Bt/ !B tEV|Њ_.B!{Q!b|'Tx^eIENDB`ngraph-gtk-6.06.13/doc/html/Makefile.am0000644000175000017500000000017212241111711014406 00000000000000HTML_FILE = index.html EXTRA_DIST = objlist.nsc htmldir = $(docdir)/html dist_html_DATA = ${HTML_FILE} SUBDIRS = img jangraph-gtk-6.06.13/doc/Makefile.in0000644000175000017500000004607412241364550013501 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = html all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/doc/Makefile.am0000644000175000017500000000001712241111712013441 00000000000000SUBDIRS = html ngraph-gtk-6.06.13/compile0000755000175000017500000001624512241364550012242 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2013 Free Software Foundation, Inc. # Written by Tom Tromey . # # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ngraph-gtk-6.06.13/addin/0000755000175000017500000000000012241600064012004 500000000000000ngraph-gtk-6.06.13/addin/text-in.nsc0000644000175000017500000000420212241111712014014 00000000000000# text-in.nsc written by S. ISHIZAKA. 1997/12 # # This script inserts a column as legend-text. # # Description: _Text in...,inserts a column as legend-text, SHIFTX=0 # ammount of the shift from plotted data-points. SHIFTY=0 # ammount of the shift from plotted data-points. PT=2000 # Size FONT=Sans-serif # Font DIR=0 # Direction if [ `object file -instance` = 0 ] then new dialog dialog::beep dialog::message "No data file." del dialog exit fi new dialog new sarray name=FILES for i in `object file -instances` do sarray:FILES:push `get file:$i -field id file` done dialog::title="select data" dialog::caption="select data object" FILE_OBJ=${dialog::combo:"sarray:FILES"} del sarray:FILES if [ -z "$FILE_OBJ" ] then del dialog exit fi set $FILE_OBJ ID=$1 dialog::title="$FILE_OBJ" dialog::caption='Input legend-text column' COLUMN=${dialog::integer_entry:'0 1000 1 1'} if [ -z "$COLUMN" ] then del dialog exit fi dialog::caption='select horizontal position of the text' ALIGN=${dialog::radio:'_Left _Center _Right'} if [ -z "$ALIGN" ] then del dialog exit fi dialog::title="$FILE_OBJ" dialog::caption='Input vertical offset (mm)' OFFSET=${dialog::integer_entry:'-50 50 1 0'} if [ -z "$OFFSET" ] then del dialog exit fi del dialog new iarray name=BBOX new int name=NAME @=0 exe file:$ID opendatac while file::getdata do int:NAME:inc TEXT_NAME=in_${ID}_${int:NAME:@} if exist -q text:$TEXT_NAME then put text:$TEXT_NAME name:$TEXT_NAME # to set text:$TEXT_NAME as a current instance else new text name=$TEXT_NAME text::pt=$PT text::R=${file::R} text::G=${file::G} text::B=${file::B} text::font=$FONT text::direction=$DIR fi text::x=0 text::y=0 text::text=`get file:$ID -field column:"${file::line} ${COLUMN}"` iarray:BBOX:@="${text::bbox}" text::x="${file::coord_x}+$SHIFTX-ABS(${iarray:BBOX:get:2}-${iarray:BBOX:get:0})/2*(2-$ALIGN)" text::y="${file::coord_y}+$SHIFTY+ABS(${iarray:BBOX:get:3}-${iarray:BBOX:get:1})/2-${iarray:BBOX:get:3}+$OFFSET*100" done menu::modified=true file::closedata del int:NAME del iarray:BBOX ngraph-gtk-6.06.13/addin/fft.nsc0000644000175000017500000000142412241111712013206 00000000000000# # fft.nsc written by S. ISHIZAKA. 1999/07 # # Description: _FFT...,Fast Fourier Transform, new dialog SOURCE_FILE=${dialog::get_open_file} if [ ! -r "$SOURCE_FILE" ] then del dialog exit fi DEST_FILE=${dialog::get_save_file:"dat _fft_.dat"} if [ -z "$DEST_FILE" ] then del dialog exit fi if "$NGRAPHLIB/fft" "$SOURCE_FILE" "$DEST_FILE" then true else dialog::message "some errors are occurred while calculation." del dialog exit fi new file file::x=1 file::y=2 file::file="$DEST_FILE" file::type=line file::B=255 new file file::file="$DEST_FILE" file::x=1 file::y=3 file::type=line file::R=255 new file file::file="$DEST_FILE" file::x=1 file::y=2 file::type=staircase_x file::math_y='SQRT(%02^2+%03^2)' menu::modified=true del dialog menu:0:clear ngraph-gtk-6.06.13/addin/Makefile.in0000644000175000017500000010717312241364550014011 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ pkglibexec_PROGRAMS = fft$(EXEEXT) calc$(EXEEXT) fitrslt$(EXEEXT) \ legend$(EXEEXT) subdir = addin DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp \ $(dist_addin_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(pkglibexecdir)" "$(DESTDIR)$(addindir)" PROGRAMS = $(pkglibexec_PROGRAMS) am_calc_OBJECTS = calc-calc.$(OBJEXT) calc-addin_common.$(OBJEXT) calc_OBJECTS = $(am_calc_OBJECTS) am__DEPENDENCIES_1 = calc_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = calc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(calc_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_fft_OBJECTS = fft.$(OBJEXT) fft_OBJECTS = $(am_fft_OBJECTS) fft_DEPENDENCIES = $(am__DEPENDENCIES_1) am_fitrslt_OBJECTS = fitrslt-fitrslt.$(OBJEXT) \ fitrslt-addin_common.$(OBJEXT) fitrslt_OBJECTS = $(am_fitrslt_OBJECTS) fitrslt_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) fitrslt_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(fitrslt_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_legend_OBJECTS = legend-legend.$(OBJEXT) \ legend-addin_common.$(OBJEXT) legend_OBJECTS = $(am_legend_OBJECTS) legend_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) legend_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(legend_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(calc_SOURCES) $(fft_SOURCES) $(fitrslt_SOURCES) \ $(legend_SOURCES) DIST_SOURCES = $(calc_SOURCES) $(fft_SOURCES) $(fitrslt_SOURCES) \ $(legend_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } DATA = $(dist_addin_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ addindir = $(pkgdatadir)/addin dist_addin_DATA = append.nsc calc.nsc fft.nsc fitrslt.nsc legend.nsc \ math.nsc text-in.nsc cal.nsc tex_equation.nsc ps2gra.nsc \ fig2gra.nsc timer.nsc fig2gra.rb APP_CFLAGS = calc_SOURCES = calc.c addin_common.c addin_common.h calc_CFLAGS = $(GTK_CFLAGS) $(APP_CFLAGS) calc_LDADD = $(GTK_LIBS) $(GLIB_LIBS) fitrslt_SOURCES = fitrslt.c addin_common.c addin_common.h fitrslt_CFLAGS = $(GTK_CFLAGS) $(APP_CFLAGS) fitrslt_LDADD = $(M_LIBS) $(GTK_LIBS) $(GLIB_LIBS) legend_SOURCES = legend.c addin_common.c addin_common.h legend_CFLAGS = $(GTK_CFLAGS) $(APP_CFLAGS) legend_LDADD = $(M_LIBS) $(GTK_LIBS) $(GLIB_LIBS) fft_SOURCES = fft.c fft_LDADD = $(M_LIBS) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu addin/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu addin/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pkglibexecPROGRAMS: $(pkglibexec_PROGRAMS) @$(NORMAL_INSTALL) @list='$(pkglibexec_PROGRAMS)'; test -n "$(pkglibexecdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkglibexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkglibexecdir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(pkglibexecdir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(pkglibexecdir)$$dir" || exit $$?; \ } \ ; done uninstall-pkglibexecPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(pkglibexec_PROGRAMS)'; test -n "$(pkglibexecdir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(pkglibexecdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(pkglibexecdir)" && rm -f $$files clean-pkglibexecPROGRAMS: @list='$(pkglibexec_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list calc$(EXEEXT): $(calc_OBJECTS) $(calc_DEPENDENCIES) $(EXTRA_calc_DEPENDENCIES) @rm -f calc$(EXEEXT) $(AM_V_CCLD)$(calc_LINK) $(calc_OBJECTS) $(calc_LDADD) $(LIBS) fft$(EXEEXT): $(fft_OBJECTS) $(fft_DEPENDENCIES) $(EXTRA_fft_DEPENDENCIES) @rm -f fft$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fft_OBJECTS) $(fft_LDADD) $(LIBS) fitrslt$(EXEEXT): $(fitrslt_OBJECTS) $(fitrslt_DEPENDENCIES) $(EXTRA_fitrslt_DEPENDENCIES) @rm -f fitrslt$(EXEEXT) $(AM_V_CCLD)$(fitrslt_LINK) $(fitrslt_OBJECTS) $(fitrslt_LDADD) $(LIBS) legend$(EXEEXT): $(legend_OBJECTS) $(legend_DEPENDENCIES) $(EXTRA_legend_DEPENDENCIES) @rm -f legend$(EXEEXT) $(AM_V_CCLD)$(legend_LINK) $(legend_OBJECTS) $(legend_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calc-addin_common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calc-calc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fft.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fitrslt-addin_common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fitrslt-fitrslt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/legend-addin_common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/legend-legend.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< calc-calc.o: calc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(calc_CFLAGS) $(CFLAGS) -MT calc-calc.o -MD -MP -MF $(DEPDIR)/calc-calc.Tpo -c -o calc-calc.o `test -f 'calc.c' || echo '$(srcdir)/'`calc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/calc-calc.Tpo $(DEPDIR)/calc-calc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='calc.c' object='calc-calc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(calc_CFLAGS) $(CFLAGS) -c -o calc-calc.o `test -f 'calc.c' || echo '$(srcdir)/'`calc.c calc-calc.obj: calc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(calc_CFLAGS) $(CFLAGS) -MT calc-calc.obj -MD -MP -MF $(DEPDIR)/calc-calc.Tpo -c -o calc-calc.obj `if test -f 'calc.c'; then $(CYGPATH_W) 'calc.c'; else $(CYGPATH_W) '$(srcdir)/calc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/calc-calc.Tpo $(DEPDIR)/calc-calc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='calc.c' object='calc-calc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(calc_CFLAGS) $(CFLAGS) -c -o calc-calc.obj `if test -f 'calc.c'; then $(CYGPATH_W) 'calc.c'; else $(CYGPATH_W) '$(srcdir)/calc.c'; fi` calc-addin_common.o: addin_common.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(calc_CFLAGS) $(CFLAGS) -MT calc-addin_common.o -MD -MP -MF $(DEPDIR)/calc-addin_common.Tpo -c -o calc-addin_common.o `test -f 'addin_common.c' || echo '$(srcdir)/'`addin_common.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/calc-addin_common.Tpo $(DEPDIR)/calc-addin_common.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='addin_common.c' object='calc-addin_common.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(calc_CFLAGS) $(CFLAGS) -c -o calc-addin_common.o `test -f 'addin_common.c' || echo '$(srcdir)/'`addin_common.c calc-addin_common.obj: addin_common.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(calc_CFLAGS) $(CFLAGS) -MT calc-addin_common.obj -MD -MP -MF $(DEPDIR)/calc-addin_common.Tpo -c -o calc-addin_common.obj `if test -f 'addin_common.c'; then $(CYGPATH_W) 'addin_common.c'; else $(CYGPATH_W) '$(srcdir)/addin_common.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/calc-addin_common.Tpo $(DEPDIR)/calc-addin_common.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='addin_common.c' object='calc-addin_common.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(calc_CFLAGS) $(CFLAGS) -c -o calc-addin_common.obj `if test -f 'addin_common.c'; then $(CYGPATH_W) 'addin_common.c'; else $(CYGPATH_W) '$(srcdir)/addin_common.c'; fi` fitrslt-fitrslt.o: fitrslt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fitrslt_CFLAGS) $(CFLAGS) -MT fitrslt-fitrslt.o -MD -MP -MF $(DEPDIR)/fitrslt-fitrslt.Tpo -c -o fitrslt-fitrslt.o `test -f 'fitrslt.c' || echo '$(srcdir)/'`fitrslt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/fitrslt-fitrslt.Tpo $(DEPDIR)/fitrslt-fitrslt.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fitrslt.c' object='fitrslt-fitrslt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fitrslt_CFLAGS) $(CFLAGS) -c -o fitrslt-fitrslt.o `test -f 'fitrslt.c' || echo '$(srcdir)/'`fitrslt.c fitrslt-fitrslt.obj: fitrslt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fitrslt_CFLAGS) $(CFLAGS) -MT fitrslt-fitrslt.obj -MD -MP -MF $(DEPDIR)/fitrslt-fitrslt.Tpo -c -o fitrslt-fitrslt.obj `if test -f 'fitrslt.c'; then $(CYGPATH_W) 'fitrslt.c'; else $(CYGPATH_W) '$(srcdir)/fitrslt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/fitrslt-fitrslt.Tpo $(DEPDIR)/fitrslt-fitrslt.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fitrslt.c' object='fitrslt-fitrslt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fitrslt_CFLAGS) $(CFLAGS) -c -o fitrslt-fitrslt.obj `if test -f 'fitrslt.c'; then $(CYGPATH_W) 'fitrslt.c'; else $(CYGPATH_W) '$(srcdir)/fitrslt.c'; fi` fitrslt-addin_common.o: addin_common.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fitrslt_CFLAGS) $(CFLAGS) -MT fitrslt-addin_common.o -MD -MP -MF $(DEPDIR)/fitrslt-addin_common.Tpo -c -o fitrslt-addin_common.o `test -f 'addin_common.c' || echo '$(srcdir)/'`addin_common.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/fitrslt-addin_common.Tpo $(DEPDIR)/fitrslt-addin_common.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='addin_common.c' object='fitrslt-addin_common.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fitrslt_CFLAGS) $(CFLAGS) -c -o fitrslt-addin_common.o `test -f 'addin_common.c' || echo '$(srcdir)/'`addin_common.c fitrslt-addin_common.obj: addin_common.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fitrslt_CFLAGS) $(CFLAGS) -MT fitrslt-addin_common.obj -MD -MP -MF $(DEPDIR)/fitrslt-addin_common.Tpo -c -o fitrslt-addin_common.obj `if test -f 'addin_common.c'; then $(CYGPATH_W) 'addin_common.c'; else $(CYGPATH_W) '$(srcdir)/addin_common.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/fitrslt-addin_common.Tpo $(DEPDIR)/fitrslt-addin_common.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='addin_common.c' object='fitrslt-addin_common.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fitrslt_CFLAGS) $(CFLAGS) -c -o fitrslt-addin_common.obj `if test -f 'addin_common.c'; then $(CYGPATH_W) 'addin_common.c'; else $(CYGPATH_W) '$(srcdir)/addin_common.c'; fi` legend-legend.o: legend.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(legend_CFLAGS) $(CFLAGS) -MT legend-legend.o -MD -MP -MF $(DEPDIR)/legend-legend.Tpo -c -o legend-legend.o `test -f 'legend.c' || echo '$(srcdir)/'`legend.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/legend-legend.Tpo $(DEPDIR)/legend-legend.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='legend.c' object='legend-legend.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(legend_CFLAGS) $(CFLAGS) -c -o legend-legend.o `test -f 'legend.c' || echo '$(srcdir)/'`legend.c legend-legend.obj: legend.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(legend_CFLAGS) $(CFLAGS) -MT legend-legend.obj -MD -MP -MF $(DEPDIR)/legend-legend.Tpo -c -o legend-legend.obj `if test -f 'legend.c'; then $(CYGPATH_W) 'legend.c'; else $(CYGPATH_W) '$(srcdir)/legend.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/legend-legend.Tpo $(DEPDIR)/legend-legend.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='legend.c' object='legend-legend.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(legend_CFLAGS) $(CFLAGS) -c -o legend-legend.obj `if test -f 'legend.c'; then $(CYGPATH_W) 'legend.c'; else $(CYGPATH_W) '$(srcdir)/legend.c'; fi` legend-addin_common.o: addin_common.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(legend_CFLAGS) $(CFLAGS) -MT legend-addin_common.o -MD -MP -MF $(DEPDIR)/legend-addin_common.Tpo -c -o legend-addin_common.o `test -f 'addin_common.c' || echo '$(srcdir)/'`addin_common.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/legend-addin_common.Tpo $(DEPDIR)/legend-addin_common.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='addin_common.c' object='legend-addin_common.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(legend_CFLAGS) $(CFLAGS) -c -o legend-addin_common.o `test -f 'addin_common.c' || echo '$(srcdir)/'`addin_common.c legend-addin_common.obj: addin_common.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(legend_CFLAGS) $(CFLAGS) -MT legend-addin_common.obj -MD -MP -MF $(DEPDIR)/legend-addin_common.Tpo -c -o legend-addin_common.obj `if test -f 'addin_common.c'; then $(CYGPATH_W) 'addin_common.c'; else $(CYGPATH_W) '$(srcdir)/addin_common.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/legend-addin_common.Tpo $(DEPDIR)/legend-addin_common.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='addin_common.c' object='legend-addin_common.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(legend_CFLAGS) $(CFLAGS) -c -o legend-addin_common.obj `if test -f 'addin_common.c'; then $(CYGPATH_W) 'addin_common.c'; else $(CYGPATH_W) '$(srcdir)/addin_common.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_addinDATA: $(dist_addin_DATA) @$(NORMAL_INSTALL) @list='$(dist_addin_DATA)'; test -n "$(addindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(addindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(addindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(addindir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(addindir)" || exit $$?; \ done uninstall-dist_addinDATA: @$(NORMAL_UNINSTALL) @list='$(dist_addin_DATA)'; test -n "$(addindir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(addindir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(DATA) installdirs: for dir in "$(DESTDIR)$(pkglibexecdir)" "$(DESTDIR)$(addindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-pkglibexecPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_addinDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-pkglibexecPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_addinDATA uninstall-pkglibexecPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkglibexecPROGRAMS cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_addinDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-pkglibexecPROGRAMS \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-dist_addinDATA \ uninstall-pkglibexecPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/addin/fig2gra.rb0000644000175000017500000002603212241111712013572 00000000000000class Spline def initialize(pos) @n = 0 @x = [] @y = [] @t = [] (pos.size/ 2).times { |i| next if (i > 0 && @x[-1] == pos[i * 2] && @y[-1] == pos[i * 2 + 1]) @x.push(pos[i * 2]) @y.push(pos[i * 2 + 1]) if (i == 0) @t[i] = 0 elsif (@x.size > 1) t1 = @x[-1] - @x[-2] t2 = @y[-1] - @y[-2] @t.push(@t.last + Math.sqrt(t1 ** 2 + t2 ** 2)) end } @n = @x.size (1 .. @n - 1).each { |i| @t[i] /= @t[@n - 1] } @xz = [] @yz = [] maketable(@t, @x, @xz) maketable(@t, @y, @yz) end def maketable(x, y, z) h = [] d = [] z[0] = 0 z[@n - 1] = 0 (@n - 1).times { |i| h[i ] = x[i + 1] - x[i] d[i + 1] = (y[i + 1] - y[i]) / h[i].to_f } z[1] = d[2] - d[1] - h[0] * z[0] d[1] = 2 * (x[2] - x[0]) (1 .. @n - 3).each { |i| t = h[i] / d[i].to_f z[i + 1] = d[i + 2] - d[i + 1] - z[i] * t d[i + 1] = 2 * (x[i + 2] - x[i]) - h[i] * t } z[@n - 2] -= h[@n - 2] * z[@n - 1] (@n - 2).downto(1) { |i| z[i] = (z[i] - h[i] * z[i + 1]) / d[i].to_f } end def spline_sub(x, y, z, t) i = 0 j = @n - 1 while (i < j) k = (i + j) / 2 if (x[k] < t) i = k + 1 else j = k end end i -= 1 if (i > 0) h = x[i + 1] - x[i] d = t - x[i] return (((z[i + 1] - z[i]) * d / h.to_f + z[i] * 3) * d + ((y[i + 1] - y[i]) / h.to_f - (z[i] * 2 + z[i + 1]) * h)) * d + y[i] end def spline(t) x = spline_sub(@t, @x, @xz, t) y = spline_sub(@t, @y, @yz, t) return [x, y] end end class Fig2Gra SPLINE_DIV = 10 PS_FONT = [ ["Serif", 0], # 0 Times Roman ["Serif", 2], # 1 Times Italic ["Serif", 1], # 2 Times Bold ["Serif", 3], # 3 Times Bold Italic ["Sans-serif", 0], # 4 AvantGarde Book ["Sans-serif", 2], # 5 AvantGarde Book Oblique ["Sans-serif", 1], # 6 AvantGarde Demi ["Sans-serif", 3], # 7 AvantGarde Demi Oblique ["Serif", 0], # 8 Bookman Light ["Serif", 2], # 9 Bookman Light Italic ["Serif", 1], # 10 Bookman Demi ["Serif", 3], # 11 Bookman Demi Italic ["Monospace", 0], # 12 Courier ["Monospace", 2], # 13 Courier Oblique ["Monospace", 1], # 14 Courier Bold ["Monospace", 3], # 15 Courier Bold Oblique ["Sans-serif", 0], # 16 Helvetica ["Sans-serif", 2], # 17 Helvetica Oblique ["Sans-serif", 1], # 18 Helvetica Bold ["Sans-serif", 3], # 19 Helvetica Bold Oblique ["Sans-serif", 0], # 20 Helvetica Narrow ["Sans-serif", 2], # 21 Helvetica Narrow Oblique ["Sans-serif", 1], # 22 Helvetica Narrow Bold ["Sans-serif", 3], # 23 Helvetica Narrow Bold Oblique ["Serif", 0], # 24 New Century Schoolbook Roman ["Serif", 2], # 25 New Century Schoolbook Italic ["Serif", 1], # 26 New Century Schoolbook Bold ["Serif", 3], # 27 New Century Schoolbook Bold Italic ["Serif", 0], # 28 Palatino Roman ["Serif", 2], # 29 Palatino Italic ["Serif", 1], # 30 Palatino Bold ["Serif", 3], # 31 Palatino Bold Italic ["Serif", 0], # 32 Symbol ["Serif", 2], # 33 Zapf Chancery Medium Italic ["Serif", 0], # 34 Zapf Dingbats nil ] LATEX_FONT = [ nil, # 0 Default font ["Serif", 0], # 1 Roman ["Serif", 1], # 2 Bold ["Serif", 2], # 3 Italic ["Sans-serif", 0], # 4 Sans Serif ["Monospace", 3], # 5 Typewriter ] PAPER_SIZE = { "Letter" => [21600, 27900], "Legal" => [21600, 35600], "Ledger" => [43200, 27900], "Tabloid" => [27900, 43200], "A" => [22900, 30500], "B" => [30500, 45700], "C" => [45700, 61000], "D" => [61000, 91400], "E" => [91400, 121900], "A4" => [21000, 29700], "A3" => [29700, 42000], "A2" => [42000, 59400], "A1" => [59400, 84100], "A0" => [84100, 118900], "B5" => [17600, 25000], } COLOR = [ [0, 0, 0], [0, 0, 0xff], [0, 0xff, 0], [0, 0xff, 0xff], [0xff, 0, 0], [0xff, 0, 0xff], [0xff, 0xff, 0], [0xff, 0xff, 0xff], [0, 0, 0x90], [0, 0, 0xB0], [0, 0, 0xD0], [0x87, 0xCE, 0xFF], [0, 0x90, 0], [0, 0xB0, 0], [0, 0xD0, 0], [0, 0x90, 0x90], [0, 0xB0, 0xB0], [0, 0xD0, 0xD0], [0x90, 0, 0x90], [0xB0, 0, 0xB0], [0xD0, 0, 0xD0], [0x80, 0x30, 0], [0xA0, 0x40, 0], [0xC0, 0x60, 0], [0xFF, 0x80, 0x80], [0xFF, 0xA0, 0xA0], [0xFF, 0xC0, 0xC0], [0xFF, 0xE0, 0xE0], [0xFF, 0xD7, 0xE00], ] def initialize @coord_conv = 1 @resolution = 1 end def coord_conv(v) (v * @coord_conv * 100).to_i end def unit_conv(v) (v * @coord_conv * 100 / @resolution).to_i end def set_line_attribute(f, type, width, cap, join, len) len = coord_conv(len) style = [ [], [len, len], [50, len], [len, 100, 50, 100], [len, 100, 50, 100, 50, 100], [len, 100, 50, 100, 50, 100, 50, 100], ] n = style[type].size f.print("A,#{n + 5},#{n},#{coord_conv(width) + 1},#{cap},#{join},1000") if (n > 0) f.print(",#{style[type].join(',')}") end f.print("\n") end def set_color(f, col) return unless (col) f.puts("G,4,#{col.join(',')},255") end def draw_ellipse(f, a) return if (a.size != 16) end def draw_poly_line(f, a, b) return if (a.size != 16) prm = a.map{|i| i.to_i} return if (prm[1] == 5) n = prm[15] * 2 fill = (prm[8] != -1) close_path = false if (b[0] == b[-2] && b[1] == b[-1]) n -= 2 close_path = true end if (prm[1] != 1 || fill) if (fill) set_color(f, COLOR[prm[5]]) f.puts("D,#{n + 2},#{n / 2},1,#{b[0, n].join(',')}") end if (prm[3] > 0) set_color(f, COLOR[prm[4]]) set_line_attribute(f, prm[2], prm[3] / 80.0, prm[11], prm[10], prm[9]) if (fill) f.puts("D,#{n + 2},#{n / 2},0,#{b[0, n].join(',')}") end else set_color(f, COLOR[prm[4]]) set_line_attribute(f, prm[2], prm[3] / 80.0, prm[11], prm[10], prm[9]) if (close_path) f.puts("D,#{n + 2},#{n / 2},0,#{b[0, n].join(',')}") else f.puts("R,#{n + 1},#{n / 2},#{b[0, n].join(',')}") end end end def uniq_pos(pos) n = pos.size / 2 a = [] n.times {|i| x = pos[i * 2] y = pos[i * 2 + 1] if (i == 0) a.push(x) a.push(y) else if (a[-2] != x || a[-1] != y) a.push(x) a.push(y) end end } return a end def draw_spline(f, a, b) return if (a.size != 14) prm = a.map{|i| i.to_i} n = prm[13] * 2 fill = (prm[8] != -1) pos = [] subpath = [] state = b[n, n / 2] state.each_with_index {|v, i| if (v == 0) m = subpath.size / 2 if (m > 2) s = Spline.new(subpath) (1 .. m * SPLINE_DIV - 1).each { |j| x, y = s.spline(j * 1.0 / m / SPLINE_DIV) pos.push(x.to_i) pos.push(y.to_i) } elsif (m == 2) pos.push(subpath[2]) pos.push(subpath[3]) end pos.push(b[i * 2]) pos.push(b[i * 2 + 1]) subpath.clear subpath.push(b[i * 2]) subpath.push(b[i * 2 + 1]) else if (subpath[-1] != b[i * 2 + 1] || subpath[-2] != b[i * 2]) subpath.push(b[i * 2]) subpath.push(b[i * 2 + 1]) end end } pos = uniq_pos(pos) n = pos.size close_path = false if (pos[0] == pos[-2] && pos[1] == pos[-1]) n -= 2 close_path = true end return if (n < 4) if (prm[1] % 2 != 0 || fill) if (fill) set_color(f, COLOR[prm[5]]) f.puts("D,#{n + 2},#{n / 2},1,#{pos.join(',')}") end if (prm[3] > 0) set_color(f, COLOR[prm[4]]) set_line_attribute(f, prm[2], prm[3] / 80.0, prm[10], 2, prm[9]) if (fill) f.puts("D,#{n + 2},#{n / 2},0,#{pos.join(',')}") end else set_color(f, COLOR[prm[4]]) set_line_attribute(f, prm[2], prm[3] / 80.0, prm[10], 2, prm[9]) if (close_path) f.puts("D,#{n + 2},#{n / 2},0,#{pos.join(',')}") else f.puts("R,#{n + 1},#{n / 2},#{pos.join(',')}") end end end def draw_text(f, a) return if (a.size != 14) prm = a.map{|i| i.to_i} flag = prm[8] f = prm[5] if (flag & 4 == 0) font = LATEX_FONT[f] else font = PS_FONT[f] end set_color(f, COLOR[prm[2]]) if (font) style = font[1] f.puts("F#{font[0]}") else style = 0 end s = a[13] f.puts("H,4,#{prm[6] * 100},0,#{(a[7].to_f / Math::PI * 180 * 100).to_i},#{style}") f.puts("M,2,#{unit_conv(prm[11])},#{unit_conv(prm[12])}") f.puts("S#{s[0, s.size - 4]}") end def draw_arc(f, a) end def convert(fig, gra) f = IO.readlines(fig) l = f.select {|s| s[0] != ?# } return false if (l.size < 9) head = l[0, 8].map {|s| s.chomp} @resolution = head[7].split[0].to_i @coord_conv = (head[2] == "Metric") ? 1 : 25.4 psize = PAPER_SIZE[head[3]] psize = [21000, 29700] unless (psize) File.open(gra, "w") {|f| f.puts('%Ngraph GRAF') f.puts('%Creator: fig2gra.rb') f.puts("I,5,0,0,#{psize.join(',')},10000") f.puts("V,5,0,0,#{psize.join(',')},0") i = 8 while (l[i]) a = l[i].split cmd = a[0].to_i b = [] i += 1 while (l[i] && l[i][0, 1] == "\t") b += l[i].split.map {|v| unit_conv(v.to_i)} i += 1 end case cmd when 0 s = a[2][1, 6] c = [s[0, 2].hex, s[2, 2].hex, s[4, 2].hex] COLOR[a[1].to_i] = c when 1 draw_ellipse(f, a) when 2 draw_poly_line(f, a, b) when 3 draw_spline(f, a, b) when 4 draw_text(f, a) when 5 draw_arc(f, a) when 6 end end f.puts('E,0') } end end if (__FILE__ == $0) exit(1) if (ARGV.size != 2) fig2gra = Fig2Gra.new fig2gra.convert(ARGV[0], ARGV[1]) end ngraph-gtk-6.06.13/addin/addin_common.h0000644000175000017500000000173412241111712014526 00000000000000#ifndef ADDIN_COMMON_HEADER #define ADDIN_COMMON_HEADER #if GTK_CHECK_VERSION(3, 2, 0) #define gtk_hbox_new(h, s) gtk_box_new(GTK_ORIENTATION_HORIZONTAL, s) #define gtk_vbox_new(h, s) gtk_box_new(GTK_ORIENTATION_VERTICAL, s) #endif struct font_prm { GtkWidget *font, *pt, *space, *script, *color, *bold, *italic; }; GtkWidget *create_text_entry(int set_default_action); GtkWidget *add_widget_to_table_sub(GtkWidget *table, GtkWidget *w, char *title, int expand, int col, int width, int n); int warning_dialog(GtkWidget *parent, const char *msg, const char *str); char *get_text_from_entry(GtkWidget *entry); int fgets_int(FILE *fp); double fgets_double(FILE *fp); char *fgets_str(FILE *fp); GtkWidget *create_title(const char *name, const char *comment); const char *get_selected_font(struct font_prm *prm); GtkWidget *create_font_frame(struct font_prm *prm); void get_font_parameter(struct font_prm *prm, int *pt, int *spc, int *script, int *style, int *r, int *g, int *b); #endif ngraph-gtk-6.06.13/addin/ps2gra.nsc0000644000175000017500000000345112241111712013627 00000000000000# Description: import _PS...,Import PostScript image,ps # Description: import _EPS...,Import Encapsulated PostScript image,eps # Description: import _PDF...,Import Portable Document Format image,pdf PSTOEDIT_COMMAND="pstoedit" PSTOEDIT_OPTION="-q -flat 0.1 -nc -ssp -dt" RUBY_COMMAND="ruby" ps2gra_error_dialog() { new dialog dialog::message "$1" del dialog } set +e if which -q $PSTOEDIT_COMMAND then true else ps2gra_error_dialog "Cannot execute '$PSTOEDIT_COMMAND'." exit fi new dialog ps_file=`get dialog -field get_open_file:$1` del dialog if [ -z "$ps_file" ] then exit fi if [ ! -r "$ps_file" ] then ps2gra_error_dialog "cannot open $ps_file" exit fi gra_file="`pwd`/`basename $ps_file .$1`.gra" if [ -e "$gra_file" ] then new dialog response=`get dialog -field yesno:"The file '$gra_file' already exists. Do you want to replace it?"` del dialog if [ x"$response" != "x1" ] then exit fi fi fig_file="${system::temp_file}" $PSTOEDIT_COMMAND $PSTOEDIT_OPTION -f fig "$ps_file" "$fig_file" if [ ! -r "$fig_file" ] then ps2gra_error_dialog "Faital error occurred while execute pstoedit." system::unlink_temp_file "$fig_file" exit fi if which -q $RUBY_COMMAND then $RUBY_COMMAND "${system::data_dir}/addin/fig2gra.rb" "$fig_file" "$gra_file" else . "${system::data_dir}/addin/fig2gra.nsc" fig2gra "$fig_file" "$gra_file" fi system::unlink_temp_file "$fig_file" rm -f "$fig_file"* if [ ! -r "$gra_file" ] then ps2gra_error_dialog "Fatal error occurred while executing fig2gra." exit fi for i in `object merge -instances` do merge_file=`get merge:$i -field file` if [ "$merge_file" = "$gra_file"] then exit fi done new merge merge::file="$gra_file" menu::draw menu::unfocus menu::focus merge:! menu::modified=true ngraph-gtk-6.06.13/addin/fft.c0000644000175000017500000000411612241111712012646 00000000000000/* * * fft.c written by S. ISHIZAKA 1999/07 * */ #include #include #include #define PI 3.141592653589793 #define MAXP 16 #define MAXDATA 65536 double fr[MAXDATA],fi[MAXDATA],gr[MAXDATA],gi[MAXDATA]; double workr[MAXDATA/2],worki[MAXDATA/2]; void fft(int p,int num); int main(int argc,char **argv) { char *fname1,*fname2; FILE *fp1,*fp2; int n,p,num,i; double x,y,minx,maxx,dx; if (argc<3) { fprintf(stderr,"usage: fft input output"); exit(1); } fname1=argv[1]; fname2=argv[2]; if ((fp1=fopen(fname1,"rt"))==NULL) { fprintf(stderr,"error: open (%s)",fname1); exit(1); } if ((fp2=fopen(fname2,"wt"))==NULL) { fprintf(stderr,"error: open (%s)",fname2); exit(1); } num=0; n=1; p=0; while (fscanf(fp1,"%lf%lf",&x,&y)==2) { if (num==0) minx=x; fr[num]=y; fi[num]=0; num++; if (num==(n*2)) { n*=2; p++; if (p==MAXP) break; maxx=x; } } if (num<2) { fprintf(stderr,"error: too small number of data"); exit(1); } fft(p,n); dx=(n-1)/(maxx-minx)/n; for (i=n/2;i $TEX_FILE.tex \documentclass[12pt]{article} \usepackage{amsmath,txfonts} \begin{document} \pagestyle{empty} \[ $str \] \end{document} EOF $TEX_COMMAND $TEX_OPTION "$TEX_FILE".tex | menu::cat menu::echo "---------------" menu::echo if [ ! -r "$TEX_FILE".pdf ] then tex_eqn_error_dialog "Faital error occurred while executing $TEX_COMMAND." rm "$TEX_FILE".* tex_eqn_delete_object menu::show_window 5 exit fi $PSTOEDIT_COMMAND $PSTOEDIT_OPTION -f fig "$TEX_FILE".pdf "$TEX_FILE".fig if [ ! -r "$TEX_FILE".fig ] then tex_eqn_error_dialog "Faital error occurred while executing $PSTOEDIT_COMMAND." rm "$TEX_FILE".* tex_eqn_delete_object exit fi gra_file="`pwd`/$merge_name".gra $FIG2GRA_COMMAND "$FIG2GRA_OPTION" "$TEX_FILE".fig "$gra_file" if [ ! -r "$gra_file" ] then tex_eqn_error_dialog "Faital error occurred while executing fig2gra." rm "$TEX_FILE".* tex_eqn_delete_object exit fi if exist -q merge:$merge_name then true else new merge name=$merge_name merge::file="$gra_file" fi put merge:$merge_name left_margin=0 top_margin=0 iarray:text:@=`get $text -field bbox` iarray:graf:@=`get merge:$merge_name -field bbox` dx=`iexpr ${iarray:text:get:0} - ${iarray:graf:get:0}` dy=`iexpr ${iarray:text:get:1} - ${iarray:graf:get:1}` put merge:$merge_name left_margin=$dx top_margin=$dy put $text hidden=true raw=true name=$merge_name iarray:merge:push ${merge::id} rm "$TEX_FILE".* done menu::unfocus menu::draw menu::focus merge:${iarray:merge:join:","} menu::modified=true tex_eqn_delete_object ngraph-gtk-6.06.13/addin/legend.c0000644000175000017500000005006212241111712013326 00000000000000#include #include #include #include #include #include #include #include #include #include "addin_common.h" #define NAME "Legend" #define VERSION "1.01.01" #define POS_X 50.00 #define POS_Y 50.00 #define POS_INC 1.00 #define POS_MIN -1000 #define POS_MAX 1000 #define MIX TRUE #define CAPTION TRUE #define TYPE TRUE #define FRAME TRUE #define COLUMN_CHECK 0 #define COLUMN_ID 1 #define COLUMN_CAPTION 5 struct file_data { char *file, *math_x, *math_y, *type, *caption, *style; int id, x, y, mark, size, width, r, g, b, r2, g2, b2, show, mix; }; struct caption_widget { GtkWidget *check, *caption, *val, *label; }; struct file_prm { GtkWidget *window, *x,*y, *width, *mix, *type, *caption, *frame, *files; struct font_prm font; const char *script; struct file_data *data; int posx, posy, w, file_num; }; static char * escape_char(const char *src, const char *escape, const char *str) { GString *s; const char *ptr; if (src == NULL) { return g_strdup(""); } if (escape == NULL) { return g_strdup(src); } s = g_string_new(""); for (ptr = src; *ptr; ptr++) { if (strchr(escape, *ptr)) { g_string_append(s, str); } g_string_append_c(s, *ptr); } return g_string_free(s, FALSE); } static int loaddatalist(struct file_prm *prm, const char *datalist) { FILE *f; int i, j, filenum; char *hidden, *str, *file; if (datalist == NULL) { return 1; } f = g_fopen(datalist, "r"); if (f == NULL) { return 1; } filenum = fgets_int(f); if (filenum < 1) { fclose(f); return 1; } prm->data = g_malloc(sizeof(*prm->data) * filenum); prm->file_num = filenum; for (i = 0; i < filenum; i++) { prm->data[i].file = fgets_str(f); prm->data[i].id = fgets_int(f); hidden = fgets_str(f); prm->data[i].show = (g_strcmp0(hidden, "true") == 0) ? FALSE : TRUE; g_free(hidden); prm->data[i].x = fgets_int(f); prm->data[i].y = fgets_int(f); prm->data[i].type = fgets_str(f); prm->data[i].mark = fgets_int(f); prm->data[i].size = fgets_int(f); prm->data[i].width = fgets_int(f); prm->data[i].style = fgets_str(f); prm->data[i].r = fgets_int(f); prm->data[i].g = fgets_int(f); prm->data[i].b = fgets_int(f); prm->data[i].r2 = fgets_int(f); prm->data[i].g2 = fgets_int(f); prm->data[i].b2 = fgets_int(f); prm->data[i].math_x = fgets_str(f); prm->data[i].math_y = fgets_str(f); prm->data[i].mix = -1; if (prm->data[i].file) { file = g_path_get_basename(prm->data[i].file); str = escape_char(file, "_^@%\\", "\\"); prm->data[i].caption = str; g_free(file); } else { prm->data[i].caption = NULL; } for (j = 0; j < i; j++) { if ((g_strcmp0(prm->data[i].file, prm->data[j].file) == 0) && (prm->data[i].show == prm->data[j].show) && (prm->data[i].x == prm->data[j].x) && (prm->data[i].y == prm->data[j].y) && (g_strcmp0(prm->data[i].math_x, prm->data[j].math_x) == 0) && (g_strcmp0(prm->data[i].math_y, prm->data[j].math_y) == 0)) { prm->data[i].mix = j; break; } } } fclose(f); return 0; } static void makescript(FILE *f, struct file_data *data, int gx, int gy, int width, int height) { int h; h = ceil(height * 2.0 / 3.0 / 100.0) * 100; if ((g_strcmp0(data->type, "line") == 0) || (g_strcmp0(data->type, "polygon") == 0) || (g_strcmp0(data->type, "curve") == 0) || (g_strcmp0(data->type, "diagonal") == 0) || (g_strcmp0(data->type, "errorbar_x") == 0) || (g_strcmp0(data->type, "errorbar_y") == 0) || (g_strcmp0(data->type, "staircase_x") == 0) || (g_strcmp0(data->type, "staircase_y") == 0) || (g_strcmp0(data->type, "fit") == 0)) { fprintf(f, "new path type=line\n"); fprintf(f, "path::points='%d %d %d %d'\n", gx, gy + h, gx + width, gy + h); fprintf(f, "path::width=%d\n", data->width); if (data->style && data->style[0] != '\0') { fprintf(f, "path::style='%s'\n", data->style); } fprintf(f, "path::stroke_R=%d\n", data->r); fprintf(f, "path::stroke_G=%d\n", data->g); fprintf(f, "path::stroke_B=%d\n", data->b); } else if (g_strcmp0(data->type, "arrow") == 0) { fprintf(f, "new path type=line\n"); fprintf(f, "path::points='%d %d %d %d'\n", gx, gy + h, gx + width, gy + h ); fprintf(f, "path::width=%d\n", data->width); if (data->style && data->style[0] != '\0') { fprintf(f, "path::style='%s'\n", data->style); } fprintf(f, "path::stroke_R=%d\n", data->r); fprintf(f, "path::stroke_G=%d\n", data->g); fprintf(f, "path::stroke_B=%d\n", data->b); fprintf(f, "path::arrow=end\n"); } else if ((g_strcmp0(data->type, "polygon_solid_fill") == 0) || (g_strcmp0(data->type, "rectangle") == 0) || (g_strcmp0(data->type, "rectangle_fill") == 0) || (g_strcmp0(data->type, "rectangle_solid_fill") == 0) || (g_strcmp0(data->type, "bar_x") == 0) || (g_strcmp0(data->type, "bar_y") == 0) || (g_strcmp0(data->type, "bar_fill_x") == 0) || (g_strcmp0(data->type, "bar_fill_y") == 0) || (g_strcmp0(data->type, "bar_solid_fill_x") == 0) || (g_strcmp0(data->type, "bar_solid_fill_y") == 0)) { fprintf(f, "new rectangle\n"); fprintf(f, "rectangle::x1=%d\n", gx); fprintf(f, "rectangle::y1=%d\n", gy + h - height / 2); fprintf(f, "rectangle::x2=%d\n", gx + width); fprintf(f, "rectangle::y2=%d\n", gy + h + height / 2); if ((g_strcmp0(data->type, "rectangle") == 0) || (g_strcmp0(data->type, "bar_x") == 0) || (g_strcmp0(data->type, "bar_y") == 0)) { fprintf(f, "rectangle::fill=false\n"); fprintf(f, "rectangle::stroke_R=%d\n", data->r); fprintf(f, "rectangle::stroke_G=%d\n", data->g); fprintf(f, "rectangle::stroke_B=%d\n", data->b); } else if ((g_strcmp0(data->type, "rectangle_fill") == 0) || (g_strcmp0(data->type, "bar_fill_x") == 0) || (g_strcmp0(data->type, "bar_fill_y") == 0)) { fprintf(f, "rectangle::fill=true\n"); fprintf(f, "rectangle::stroke=true\n"); fprintf(f, "rectangle::fill_R=%d\n", data->r2); fprintf(f, "rectangle::fill_G=%d\n", data->g2); fprintf(f, "rectangle::fill_B=%d\n", data->b2); fprintf(f, "rectangle::stroke_R=%d\n", data->r); fprintf(f, "rectangle::stroke_G=%d\n", data->g); fprintf(f, "rectangle::stroke_B=%d\n", data->b); } else if ((g_strcmp0(data->type, "polygon_solid_fill") == 0) || (g_strcmp0(data->type, "rectangle_solid_fill") == 0) || (g_strcmp0(data->type, "bar_solid_fill_x") == 0) || (g_strcmp0(data->type, "bar_solid_fill_y") == 0)) {; fprintf(f, "rectangle::fill=true\n"); fprintf(f, "rectangle::fill_R=%d\n", data->r); fprintf(f, "rectangle::fill_G=%d\n", data->g); fprintf(f, "rectangle::fill_B=%d\n", data->b); } fprintf(f, "rectangle::width=%d\n", data->width); if (data->style && data->style[0] != '\0') { fprintf(f, "rectangle::style='%s'\n", data->style); } } else if (g_strcmp0(data->type, "mark") == 0) { fprintf(f, "new mark\n"); fprintf(f, "mark::x=%d\n", gx + width / 2); fprintf(f, "mark::y=%d\n", gy + h); fprintf(f, "mark::size=%d\n", data->size); fprintf(f, "mark::type=%d\n", data->mark); fprintf(f, "mark::width=%d\n", data->width); if (data->style && data->style[0] != '\0') { fprintf(f, "mark::style='%s'\n", data->style); } fprintf(f, "mark::R=%d\n", data->r); fprintf(f, "mark::G=%d\n", data->g); fprintf(f, "mark::B=%d\n", data->b); fprintf(f, "mark::R2=%d\n", data->r2); fprintf(f, "mark::G2=%d\n", data->g2); fprintf(f, "mark::B2=%d\n", data->b2); } } static int savescript(struct file_prm *prm) { FILE *f; int i, j, height, len, gx, gy, posx, posy, pt, spc, script, r, g, b, style, width; gboolean type, mix, frame, caption; char *str; const char *font; if (prm->script == NULL) { return 1; } f = g_fopen(prm->script, "w"); if (f == NULL) { return 1; } type = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->type)); mix = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->mix)); frame = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->frame)); caption = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->caption)); font = get_selected_font(&prm->font); get_font_parameter(&prm->font, &pt, &spc, &script, &style, &r, &g, &b); width = gtk_spin_button_get_value(GTK_SPIN_BUTTON(prm->width)) * 100; height = ceil(pt * 25.4 / 72.0 / 100.0) * 100; posx = gtk_spin_button_get_value(GTK_SPIN_BUTTON(prm->x)) * 100; posy = gtk_spin_button_get_value(GTK_SPIN_BUTTON(prm->y)) * 100; if (frame) { fprintf(f, "new iarray name:textlen\n"); fprintf(f, "new iarray name:textbbox\n"); } len = 0; gy = posy; for (i = 0; i < prm->file_num; i++) { if (((prm->data[i].mix == -1) || (! mix )) && prm->data[i].show) { gx = posx; if (type) { makescript(f, &prm->data[i], gx, gy, width, height); if (mix) { for (j = i + 1; j < prm->file_num; j++) { if (prm->data[j].mix == i && prm->data[j].show) { makescript(f, &prm->data[j], gx, gy, width, height); } } } len = width + height / 2; } if (caption) { fprintf(f, "new text\n"); str = escape_char(prm->data[i].caption, "'", "'\"'\""); fprintf(f, "text::text='%s'\n", str); g_free(str); fprintf(f, "text::x=%d\n", gx + len); fprintf(f, "text::y=%d\n", gy + height); fprintf(f, "text::pt=%d\n", pt); fprintf(f, "text::font=%s\n", font); fprintf(f, "text::style=%d\n", style); fprintf(f, "text::space=%d\n", spc); fprintf(f, "text::script_size=%d\n", script); fprintf(f, "text::R=%d\n", r); fprintf(f, "text::G=%d\n", g); fprintf(f, "text::B=%d\n", b); if (frame) { fprintf(f, "iarray:textbbox:@=${text::bbox}\n"); fprintf(f, "iarray:textlen:push \"${iarray:textbbox:get:2}-${iarray:textbbox:get:0}\"\n"); } } gy = gy + ceil(height * 1.2 / 100.0) * 100; } } if (frame) { fprintf(f, "iarray:textlen:map 'int(X/100+0.5)*100'\n"); fprintf(f, "new rectangle\n"); fprintf(f, "rectangle::x1=%d\n", posx - height / 4); fprintf(f, "rectangle::y1=%d\n", posy); fprintf(f, "rectangle::x2=%d+${iarray:textlen:max}\n", posx + len + 3 * height / 4); fprintf(f, "rectangle::y2=%d\n", gy + height / 2); fprintf(f, "rectangle::fill_R=0\n"); fprintf(f, "rectangle::fill_G=0\n"); fprintf(f, "rectangle::fill_B=0\n"); fprintf(f, "rectangle::fill=true\n"); fprintf(f, "rectangle::stroke=false\n"); fprintf(f, "new rectangle\n"); fprintf(f, "rectangle::x1=%d\n", posx - height / 2); fprintf(f, "rectangle::y1=%d\n", posy - height / 4); fprintf(f, "rectangle::x2=%d+${iarray:textlen:max}\n", posx + len + height / 2); fprintf(f, "rectangle::y2=%d\n", gy + height / 4); fprintf(f, "rectangle::fill_R=255\n"); fprintf(f, "rectangle::fill_G=255\n"); fprintf(f, "rectangle::fill_B=255\n"); fprintf(f, "rectangle::stroke_R=0\n"); fprintf(f, "rectangle::stroke_G=0\n"); fprintf(f, "rectangle::stroke_B=0\n"); fprintf(f, "rectangle::fill=true\n"); fprintf(f, "rectangle::stroke=true\n"); fprintf(f, "movetop rectangle:!\n"); fprintf(f, "movetop rectangle:!\n"); fprintf(f, "del iarray:textlen\n"); fprintf(f, "del iarray:textbbox\n"); } fprintf(f, "menu::modified=true\n"); fclose(f); return 0; } static GtkWidget * create_option_frame(struct file_prm *prm) { GtkWidget *frame, *vbox, *w; frame = gtk_frame_new("option"); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_check_button_new_with_mnemonic("_Mix"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 2); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), MIX); prm->mix = w; w = gtk_check_button_new_with_mnemonic("_Type"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 2); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), TYPE); prm->type = w; w = gtk_check_button_new_with_mnemonic("_Caption"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 2); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), CAPTION); prm->caption = w; w = gtk_check_button_new_with_mnemonic("_Frame"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 2); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), FRAME); prm->frame = w; gtk_container_add(GTK_CONTAINER(frame), vbox); return frame; } static GtkWidget * create_geometry_frame(struct file_prm *prm) { GtkWidget *frame, *w, *table; int j; frame = gtk_frame_new("geometry"); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif j = 0; w = gtk_spin_button_new_with_range(POS_MIN, POS_MAX, POS_INC); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(w), 2); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), prm->posx / 100.0); add_widget_to_table_sub(table, w, "_X:", TRUE, 0, 1, j++); prm->x = w; w = gtk_spin_button_new_with_range(POS_MIN, POS_MAX, POS_INC); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(w), 2); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), prm->posy / 100.0); add_widget_to_table_sub(table, w, "_Y:", TRUE, 0, 1, j++); prm->y = w; w = gtk_spin_button_new_with_range(1, 100, 10); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(w), 2); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), prm->w / 100.0); add_widget_to_table_sub(table, w, "_Width:", TRUE, 0, 1, j++); prm->width = w; gtk_container_add(GTK_CONTAINER(frame), table); return frame; } static void set_parameter(struct file_prm *prm) { int i, mix; char *basename; GtkTreeIter iter; GtkListStore *list; list = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(prm->files))); gtk_list_store_clear(list); mix = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->mix)); for (i = 0; i < prm->file_num; i++) { if (mix && prm->data[i].mix >= 0) { continue; } gtk_list_store_append(list, &iter); basename = g_path_get_basename(prm->data[i].file); gtk_list_store_set(list, &iter, 0, prm->data[i].show, 1, prm->data[i].id, 2, basename, 3, prm->data[i].x, 4, prm->data[i].y, 5, prm->data[i].caption, -1); g_free(basename); } } static void set_files(GtkWidget *widget, gpointer user_data) { struct file_prm *prm; prm = (struct file_prm *) user_data; set_parameter(prm); } static void caption_toggled(GtkCellRendererToggle *cell_renderer, gchar *path, gpointer user_data) { struct file_prm *prm; GtkTreeView *view; GtkTreeModel *model; GtkTreeIter iter; gboolean v; gint i; prm = (struct file_prm *) user_data; view = GTK_TREE_VIEW(prm->files); model = gtk_tree_view_get_model(view); if (! gtk_tree_model_get_iter_from_string(model, &iter, path)) { return; } gtk_tree_model_get(model, &iter, COLUMN_CHECK, &v, -1); gtk_tree_model_get(model, &iter, COLUMN_ID, &i, -1); v = !v; prm->data[i].show = v; gtk_list_store_set(GTK_LIST_STORE(model), &iter, COLUMN_CHECK, v, -1); } static void caption_edited(GtkCellRenderer *renderer, gchar *path, gchar *new_text, gpointer user_data) { struct file_prm *prm; GtkTreeModel *model; GtkTreeIter iter; GtkTreeView *view; gint i; prm = (struct file_prm *) user_data; view = GTK_TREE_VIEW(prm->files); model = gtk_tree_view_get_model(view); if (! gtk_tree_model_get_iter_from_string(model, &iter, path)) { return; } gtk_tree_model_get(model, &iter, COLUMN_ID, &i, -1); g_free(prm->data[i].caption); prm->data[i].caption = g_strdup(new_text); gtk_list_store_set(GTK_LIST_STORE(model), &iter, COLUMN_CAPTION, new_text, -1); } static GtkWidget * create_file_frame(struct file_prm *prm) { GtkListStore *list; GtkCellRenderer *renderer; GtkTreeViewColumn *col; GtkWidget *tview, *hbox, *swin, *frame; int i, n; char *title[] = {"#", "File", "x", "y", "Caption"}; n = sizeof(title) / sizeof(*title); list = gtk_list_store_new(n + 1, G_TYPE_BOOLEAN, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING); tview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(list)); gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tview), TRUE); gtk_tree_view_set_grid_lines(GTK_TREE_VIEW(tview), GTK_TREE_VIEW_GRID_LINES_VERTICAL); renderer = gtk_cell_renderer_toggle_new(); col = gtk_tree_view_column_new_with_attributes("", renderer, "active", 0, NULL); g_object_set(renderer, "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL); g_signal_connect(renderer, "toggled", G_CALLBACK(caption_toggled), prm); gtk_tree_view_append_column(GTK_TREE_VIEW(tview), col); for (i = 0; i < n; i++) { renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes(title[i], renderer, "text", i + 1, "sensitive", 0, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(tview), col); } g_object_set(renderer, "editable", TRUE, NULL); g_signal_connect(renderer, "edited", G_CALLBACK(caption_edited), prm); swin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(swin), tview); gtk_widget_set_size_request(GTK_WIDGET(swin), -1, 300); frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), swin); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 4); prm->files = tview; return hbox; } static GtkWidget * create_control(GtkWidget *box, struct file_prm *prm) { GtkWidget *w, *hbox; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = create_option_frame(prm); gtk_box_pack_start(GTK_BOX(hbox), w, TRUE, TRUE, 4); w = create_geometry_frame(prm); gtk_box_pack_start(GTK_BOX(hbox), w, TRUE, TRUE, 4); w = create_font_frame(&prm->font); gtk_box_pack_start(GTK_BOX(hbox), w, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 4); w = create_file_frame(prm); gtk_box_pack_start(GTK_BOX(box), w, TRUE, TRUE, 4); return NULL; } static void create_widgets(GtkWidget *vbox, struct file_prm *prm) { GtkWidget *w; w = create_title(NAME " version " VERSION, "automatic legend generator"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 0); w = create_control(vbox, prm); } static const char * get_opt(int argc, char **argv, struct file_prm *prm) { int i; char *data_file = NULL; for (i = 1; i < argc; i++) { if (strcmp(argv[i], "-x") == 0) { i++; if (argv[i]) { prm->posx = atoi(argv[i]); } } else if (strcmp(argv[i], "-y") == 0) { i++; if (argv[i]) { prm->posy = atoi(argv[i]); } } else if (strcmp(argv[i], "-w") == 0) { i++; if (argv[i]) { prm->w = atoi(argv[i]); } } else if (data_file == NULL) { data_file = argv[i]; } else { prm->script = argv[i]; } } return data_file; } int main(int argc, char **argv) { GtkWidget *mainwin; gint r; struct file_prm prm; const char *data_file; #if GTK_CHECK_VERSION(2, 24, 0) setlocale(LC_ALL, ""); #else gtk_set_locale(); #endif gtk_init(&argc, &argv); prm.posx = POS_X; prm.posy = POS_Y; data_file = get_opt(argc, argv, &prm); if (data_file == NULL) { return 0; } if (loaddatalist(&prm, data_file)) { return 0; } mainwin = gtk_dialog_new_with_buttons(NAME, NULL, 0, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL); gtk_dialog_set_default_response(GTK_DIALOG(mainwin), GTK_RESPONSE_ACCEPT); prm.window = mainwin; create_widgets(gtk_dialog_get_content_area(GTK_DIALOG(mainwin)), &prm); g_signal_connect(prm.mix, "toggled", G_CALLBACK(set_files), &prm); set_parameter(&prm); gtk_widget_show_all(mainwin); r = gtk_dialog_run(GTK_DIALOG(mainwin)); if (r == GTK_RESPONSE_ACCEPT) { savescript(&prm); } return 0; } ngraph-gtk-6.06.13/addin/Makefile.am0000644000175000017500000000134612241111712013761 00000000000000addindir = $(pkgdatadir)/addin dist_addin_DATA = append.nsc calc.nsc fft.nsc fitrslt.nsc legend.nsc \ math.nsc text-in.nsc cal.nsc tex_equation.nsc ps2gra.nsc \ fig2gra.nsc timer.nsc fig2gra.rb APP_CFLAGS = pkglibexec_PROGRAMS = fft calc fitrslt legend calc_SOURCES = calc.c addin_common.c addin_common.h calc_CFLAGS = $(GTK_CFLAGS) $(APP_CFLAGS) calc_LDADD = $(GTK_LIBS) $(GLIB_LIBS) fitrslt_SOURCES = fitrslt.c addin_common.c addin_common.h fitrslt_CFLAGS = $(GTK_CFLAGS) $(APP_CFLAGS) fitrslt_LDADD = $(M_LIBS) $(GTK_LIBS) $(GLIB_LIBS) legend_SOURCES = legend.c addin_common.c addin_common.h legend_CFLAGS = $(GTK_CFLAGS) $(APP_CFLAGS) legend_LDADD = $(M_LIBS) $(GTK_LIBS) $(GLIB_LIBS) fft_SOURCES = fft.c fft_LDADD = $(M_LIBS)ngraph-gtk-6.06.13/addin/timer.nsc0000644000175000017500000000272212241111712013551 00000000000000# Description: _Timer,Countdown timer, BAR_X=1000 BAR_Y=19000 BAR_W=19000 BAR_H=3000 new dialog dialog::title="Countdown timer" dialog::caption="Countdown (minutes):" T=${dialog::integer_entry:"1 120 1 30"} del dialog if [ -z "$T" ] then exit fi for inst in text:timer int:timer do if exist -q $inst then del $inst fi done T=`iexpr $T*60` OBJ=`derive -instance draw` system:0:hide_instance $OBJ new int int::name="timer" int::@="$T+1" new text text::name="timer" text::hidden=false text::text='%{system::time:0}' text::x=600 text::y=13000 text::pt=14200 text::font='Sans-serif' new rectangle rectangle::name="timer_bar" rectangle::x1="$BAR_X" rectangle::y1="$BAR_Y" rectangle::x2="$BAR_X+$BAR_W" rectangle::y2="$BAR_Y+$BAR_H" rectangle::fill_G=255 rectangle::fill=true rectangle::stroke=false dup rectangle rectangle::name="timer" rectangle::fill=false rectangle::stroke=true rectangle::width=120 while int:timer:times do m=`iexpr "int(${int:timer:@}/60)"` s=`iexpr "${int:timer:@}\\\\60"` s=`get text:timer -field printf:"%02d $s"` text:timer:text="%{system::time:0}\&\n$m:$s\&" rectangle:timer_bar:x2="$BAR_W*${int:timer:@}/$T+${rectangle:timer:x1}" rectangle:timer_bar:fill_G="255*${int:timer:@}/$T" rectangle:timer_bar:fill_R="255*(1-${int:timer:@}/$T)" gra::clear gra::draw sleep 1 done del int:timer del text:timer del rectangle:timer del rectangle:timer_bar system:0:recover_instance $OBJ gra::clear gra::draw ngraph-gtk-6.06.13/addin/addin_common.c0000644000175000017500000001702212241111712014516 00000000000000#include #include #include #include #include #include "addin_common.h" #define LINE_BUF_SIZE 1024 #define FONT_PT 20.00 #define FONT_SCRIPT 70.00 #define FONT_SPACE 0.00 static char *FontList[] = {"Serif", "Sans-serif", "Monospace"}; GtkWidget * create_text_entry(int set_default_action) { GtkWidget *w; w = gtk_entry_new(); if (set_default_action) { gtk_entry_set_activates_default(GTK_ENTRY(w), TRUE); } return w; } GtkWidget * add_widget_to_table_sub(GtkWidget *table, GtkWidget *w, char *title, int expand, int col, int width, int n) { GtkWidget *label; #if ! GTK_CHECK_VERSION(3, 4, 0) GtkWidget *align; int x, y; g_object_get(table, "n-columns", &x, "n-rows", &y, NULL); y = (y > n + 1) ? y : n + 1; gtk_table_resize(GTK_TABLE(table), y, x); #endif label = NULL; if (title) { label = gtk_label_new_with_mnemonic(title); gtk_label_set_mnemonic_widget(GTK_LABEL(label), w); #if GTK_CHECK_VERSION(3, 4, 0) gtk_widget_set_halign(label, GTK_ALIGN_START); g_object_set(label, "margin", GINT_TO_POINTER(4), NULL); gtk_grid_attach(GTK_GRID(table), label, col, n, 1, 1); #else gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, col, col + 1, n, n + 1, GTK_FILL, 0, 4, 4); #endif col++; } if (w) { #if GTK_CHECK_VERSION(3, 4, 0) if (expand) { gtk_widget_set_hexpand(w, TRUE); gtk_widget_set_halign(w, GTK_ALIGN_FILL); } else { gtk_widget_set_halign(w, GTK_ALIGN_START); } g_object_set(w, "margin", GINT_TO_POINTER(4), NULL); gtk_grid_attach(GTK_GRID(table), w, col, n, width, 1); #else align = gtk_alignment_new(0, 0.5, (expand) ? 1 : 0, 0); gtk_container_add(GTK_CONTAINER(align), w); gtk_table_attach(GTK_TABLE(table), align, col, col + width, n, n + 1, ((expand) ? GTK_EXPAND : 0) | GTK_FILL, 0, 4, 4); #endif } return label; } int warning_dialog(GtkWidget *parent, const char *msg, const char *str) { GtkWidget *dlg; int r; dlg = gtk_message_dialog_new(GTK_WINDOW(parent), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING,GTK_BUTTONS_YES_NO, msg, str); r = gtk_dialog_run(GTK_DIALOG(dlg)); gtk_widget_destroy(dlg); return r; } char * get_text_from_entry(GtkWidget *entry) { const char *tmp; tmp = gtk_entry_get_text(GTK_ENTRY(entry)); if (tmp == NULL) { tmp = ""; } return g_strdup(tmp); } GtkWidget * create_title(const char *name, const char *comment) { #if GTK_CHECK_VERSION(3, 0, 0) GtkWidget *frame, *label; frame = gtk_frame_new(name); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); g_object_set(frame, "margin", GINT_TO_POINTER(4), NULL); g_object_set(frame, "border-width", GINT_TO_POINTER(4), NULL); gtk_frame_set_label_align(GTK_FRAME(frame), 0.5, 0.5); label = gtk_label_new(comment); g_object_set(label, "margin", GINT_TO_POINTER(4), NULL); gtk_widget_set_halign(label, GTK_ALIGN_CENTER); gtk_widget_set_valign(label, GTK_ALIGN_CENTER); gtk_container_add(GTK_CONTAINER(frame), label); return frame; #else GtkWidget *vbox, *frame, *label, *hbox; vbox = gtk_vbox_new(FALSE, 4); frame = gtk_frame_new(name); gtk_frame_set_label_align(GTK_FRAME(frame), 0.5, 0.5); label = gtk_label_new(comment); gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 4); gtk_container_add(GTK_CONTAINER(frame), vbox); hbox = gtk_hbox_new(FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 4); return hbox; #endif } const char * get_selected_font(struct font_prm *prm) { int font, i; i = gtk_combo_box_get_active(GTK_COMBO_BOX(prm->font)); font = (i >= 1 && i < (int) (sizeof(FontList) / sizeof(*FontList))) ? i : 0; return FontList[font]; } void get_font_parameter(struct font_prm *prm, int *pt, int *spc, int *script, int *style, int *r, int *g, int *b) { int bold, italic; #if GTK_CHECK_VERSION(3, 4, 0) GdkRGBA color; #else GdkColor color; #endif *pt = gtk_spin_button_get_value(GTK_SPIN_BUTTON(prm->pt)) * 100; *script = gtk_spin_button_get_value(GTK_SPIN_BUTTON(prm->script)) * 100; *spc = gtk_spin_button_get_value(GTK_SPIN_BUTTON(prm->space)) * 100; bold = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->bold)); italic = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->italic)); *style = (bold ? 1 : 0) + (italic ? 2 : 0); #if GTK_CHECK_VERSION(3, 4, 0) gtk_color_chooser_get_rgba(GTK_COLOR_CHOOSER(prm->color), &color); *r = color.red * 255; *g = color.green * 255; *b = color.blue * 255; #else gtk_color_button_get_color(GTK_COLOR_BUTTON(prm->color), &color); *r = color.red >> 8; *g = color.green >> 8; *b = color.blue >> 8; #endif } GtkWidget * create_font_frame(struct font_prm *prm) { GtkWidget *frame, *w, *table, *hbox, *vbox; unsigned int j, i; frame = gtk_frame_new("font"); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif j = 0; #if GTK_CHECK_VERSION(2, 24, 0) w = gtk_combo_box_text_new(); for (i = 0; i < sizeof(FontList) / sizeof(*FontList); i++) { gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(w), FontList[i]); } #else w = gtk_combo_box_new_text(); for (i = 0; i < sizeof(FontList) / sizeof(*FontList); i++) { gtk_combo_box_append_text(GTK_COMBO_BOX(w), FontList[i]); } #endif gtk_combo_box_set_active(GTK_COMBO_BOX(w), 1); add_widget_to_table_sub(table, w, "_Font:", TRUE, 0, 1, j++); prm->font = w; w = gtk_spin_button_new_with_range(6, 100, 1); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), FONT_PT); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(w), 2); add_widget_to_table_sub(table, w, "_Pt:", TRUE, 0, 1, j++); prm->pt = w; w = gtk_spin_button_new_with_range(0, 100, 1); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), FONT_SPACE); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(w), 2); add_widget_to_table_sub(table, w, "_Space:", TRUE, 0, 1, j++); prm->space = w; w = gtk_spin_button_new_with_range(10, 100, 10); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), FONT_SCRIPT); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(w), 2); add_widget_to_table_sub(table, w, "_Script:", TRUE, 0, 1, j++); prm->script = w; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 4); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_check_button_new_with_mnemonic("_Bold"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); prm->bold = w; w = gtk_check_button_new_with_mnemonic("_Italic"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); prm->italic = w; w = gtk_color_button_new(); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 4); prm->color = w; gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 4); gtk_container_add(GTK_CONTAINER(frame), hbox); return frame; } int fgets_int(FILE *fp) { char buf[LINE_BUF_SIZE], *r; int val; r = fgets(buf, sizeof(buf), fp); if (r == NULL) { return 0; } val = atoi(buf); return val; } double fgets_double(FILE *fp) { char buf[LINE_BUF_SIZE], *r; double val; r = fgets(buf, sizeof(buf), fp); if (r == NULL) { return 0; } val = atof(buf); return val; } char * fgets_str(FILE *fp) { char buf[LINE_BUF_SIZE], *r; char *str; r = fgets(buf, sizeof(buf), fp); if (r == NULL) { return NULL; } g_strchomp(buf); str = g_strdup(buf); return str; } ngraph-gtk-6.06.13/addin/math.nsc0000644000175000017500000000101312241111712013352 00000000000000# math.nsc written by S. ISHIZAKA. 1997/12 # # Line-calculator using shell-builtin command "dexpr". # # Description: _Math...,calculator, set +e new dialog MATH="" while true do dialog::caption='Input mathematical expression' MATH=`get dialog -field input:"$MATH"` if [ -z "$MATH" ] then break fi if result=`dexpr "$MATH"` then new text result=`get text -field printf:"%G $result"` del text dialog::message:"$MATH=$result" menu::echo:"Math: $MATH=$result" break fi done del dialog ngraph-gtk-6.06.13/addin/append.nsc0000644000175000017500000000155212241111712013700 00000000000000# append.nsc written by S. ISHIZAKA. 1997/12 # # This script reads and appends a NGP-file without clearing the present graph. # # This script uses rather special techniques. # We don't recommend to edit this script. # # Description: _Append...,append NGP file, if [ "$*" ] then FILE=$* else new dialog FILE=${dialog::get_open_file:'ngp'} del dialog fi if [ "$FILE" ] then # hide exsisting 'axis', 'axisgrid' and 'file' instances system:0:hide_instance axis axisgrid file # execute file new shell shell::shell "$FILE" del shell # tighten connection between new instances for i in `derive -instance file axis axisgrid` do exe ${i}:0-! tight done # recover hidden instances system:0:recover_instance axis axisgrid file # delete closed GRA instance if [ ${gra::GC} = -1 ] then del gra fi menu:0:clear menu:0:modified=true fi ngraph-gtk-6.06.13/addin/fitrslt.nsc0000644000175000017500000000253612241111712014123 00000000000000# fitrslt.nsc written by S. ISHIZAKA. 1999/04 # # This script generates a legend box. # # Please edit the following X, Y, and WIDTH variables as you like. # # Description: _Fit result...,insert fitting results as legend-text, X=5000 # top-left of the legend to be inserted. Y=5000 # top-left of the legend to be inserted. fitdata="" new int name=NUM @=0 for i in `object file -instances` do if [ `get file:$i -field type` = "fit" ] then if [ ${file::fit} != "" ] then int:NUM:inc fitdata=${fitdata}" $i" fi fi done if [ ${int:NUM:@} != 0 ] then DATALIST=${system:0:temp_file} echo ${int:NUM:@} > "$DATALIST" for i in $fitdata do if [ `get file:$i -field type` = "fit" ] then if [ ${file::fit} != "" ] then get file: -field id file >> "$DATALIST" get ${file::fit} -field id type poly_dimension user_func %00 %01 %02 %03 %04 %05 %06 %07 %08 %09 >> "$DATALIST" fi fi done SCRIPT=${system:0:temp_file} "${NGRAPHLIB}/fitrslt" -x ${X} -y ${Y} "$DATALIST" "$SCRIPT" if [ -s "$SCRIPT" ]; then new shell shell::shell "$SCRIPT" del shell gra::clear gra::draw gra::flush fi system:0:unlink_temp_file "$SCRIPT" system:0:unlink_temp_file "$DATALIST" else new dialog dialog::beep dialog::message "No fitting data." del dialog fi del int:NUM ngraph-gtk-6.06.13/addin/cal.nsc0000644000175000017500000000102012241111712013156 00000000000000# Description: _Calendar,show calendar in the information window, new regexp regexp::@="(?i)UTF-?8" if regexp::match "$LANG" then LOCALE=$LANG else LOCALE=C fi del regexp DATE=`date +%m` set +e new dialog dialog::title="Calendar" dialog::caption="select MONTH" DATE=`get dialog: -field integer_entry:"1 12 1 $DATE"` RVAL=$? del dialog set -e if [ $RVAL != 0 ] then exit fi YEAR=`date +%Y` MONTH=`iexpr $DATE` menu::show_window 5 menu::echo LANG=$LOCALE /usr/bin/cal -3 -h $MONTH $YEAR | menu::cat menu::echo ngraph-gtk-6.06.13/addin/fitrslt.c0000644000175000017500000004317012241111712013561 00000000000000#include #include #include #include #include #include #include #include #include #include "addin_common.h" #define NAME "Fitrslt" #define VERSION "1.00.03" #define POS_X 50.00 #define POS_Y 50.00 #define POS_INC 1.00 #define POS_MIN -1000 #define POS_MAX 1000 #define ACCURACY 7 #define DIVISION 100 #define ADD_PLUS FALSE #define EXPAND TRUE #define FRAME TRUE #define LINE_BUF_SIZE 1024 #define PRM_NUM 10 enum { COLUMN_CHECK, COLUMN_PRM, COLUMN_CAPTION, COLUMN_VAL, }; struct fit_data { int file_id; char *file; int id; char *type; int poly; char *userfunc; double prm[PRM_NUM]; }; struct caption_widget { GtkWidget *check, *caption, *val, *label; }; struct fit_prm { GtkWidget *window, *x,*y, *add_plus, *accuracy, *expand, *frame, *combo; struct font_prm font; GtkWidget *caption; const char *script; struct fit_data *data; int posx, posy, fit_num; }; static int loaddatalist(struct fit_prm *prm, const char *datalist) { FILE *f; int i, j, fitnum; if (datalist == NULL) { return 1; } f = g_fopen(datalist, "r"); if (f == NULL) { return 1; } fitnum = fgets_int(f); if (fitnum < 1) { fclose(f); return 1; } prm->data = g_malloc(sizeof(*prm->data) * fitnum); prm->fit_num = fitnum; for (i = 0; i < fitnum; i++) { prm->data[i].file_id = fgets_int(f); prm->data[i].file = fgets_str(f); prm->data[i].id = fgets_int(f); prm->data[i].type = fgets_str(f); prm->data[i].poly = fgets_int(f); prm->data[i].userfunc = fgets_str(f); for (j = 0; j < PRM_NUM; j++) { prm->data[i].prm[j] = fgets_double(f); } } fclose(f); return 0; } static void makescript(FILE *f, struct fit_prm *prm, int gx, int gy, int height, const char *cap, const char *val) { int style, textpt, textspc, textsc, textred, textblue, textgreen, frame; const char *font; get_font_parameter(&prm->font, &textpt, &textspc, &textsc, &style, &textred, &textblue, &textgreen); font = get_selected_font(&prm->font); frame = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->frame)); fprintf(f, "new text\n"); fprintf(f, "text::text='%s %s'\n", cap, val); fprintf(f, "text::x=%d\n", gx); fprintf(f, "text::y=%d\n", gy + height); fprintf(f, "text::pt=%d\n", textpt); fprintf(f, "text::font=%s\n", font); fprintf(f, "text::style=%d\n", style); fprintf(f, "text::space=%d\n", textspc); fprintf(f, "text::script_size=%d\n", textsc); fprintf(f, "text::R=%d\n", textred); fprintf(f, "text::G=%d\n", textgreen); fprintf(f, "text::B=%d\n", textblue); if (frame) { fprintf(f, "iarray:textbbox:@=${text::bbox}\n"); fprintf(f, "iarray:textlen:push \"${iarray:textbbox:get:2}-${iarray:textbbox:get:0}\"\n"); } fprintf(f, "menu::modified=true\n"); } static int savescript(struct fit_prm *prm) { char *cap, *val; FILE *f; int frame, height, textpt, gx, gy, posx, posy, h_inc, i, draw; GtkTreeModel *model; GtkTreeIter iter; if (prm->script == NULL) { return 0; } f = g_fopen(prm->script, "w"); posx = gtk_spin_button_get_value(GTK_SPIN_BUTTON(prm->x)) * 100; posy = gtk_spin_button_get_value(GTK_SPIN_BUTTON(prm->y)) * 100; frame = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->frame)); if (frame) { fprintf(f, "new iarray name:textlen\n"); fprintf(f, "new iarray name:textbbox\n"); } textpt = gtk_spin_button_get_value(GTK_SPIN_BUTTON(prm->font.pt)) * 100; height = ceil(textpt * 25.4 / 72.0 / 100) * 100; gy = posy; h_inc = ceil(height * 1.2 / 100) * 100; model = gtk_tree_view_get_model(GTK_TREE_VIEW(prm->caption)); if (! gtk_tree_model_get_iter_first(model, &iter)) { return 1; } for (i = 0; i < PRM_NUM; i++) { gtk_tree_model_get(model, &iter, COLUMN_CHECK, &draw, COLUMN_CAPTION, &cap, COLUMN_VAL, &val, -1); if (draw) { gx = posx; makescript(f, prm, gx, gy, height, cap, val); gy += h_inc; } g_free(cap); g_free(val); if (! gtk_tree_model_iter_next(model, &iter)) { break; } } if (frame) { fprintf(f, "iarray:textlen:map 'int(X/100+0.5)*100'\n"); fprintf(f, "new rectangle\n"); fprintf(f, "rectangle::x1=%d\n", posx - height / 4); fprintf(f, "rectangle::y1=%d\n", posy); fprintf(f, "rectangle::x2=%d+${iarray:textlen:max}\n", posx + 3 * height / 4); fprintf(f, "rectangle::y2=%d\n", gy + height / 2); fprintf(f, "rectangle::fill_R=0\n"); fprintf(f, "rectangle::fill_G=0\n"); fprintf(f, "rectangle::fill_B=0\n"); fprintf(f, "rectangle::fill=true\n"); fprintf(f, "new rectangle\n"); fprintf(f, "rectangle::x1=%d\n", posx - height / 2); fprintf(f, "rectangle::y1=%d\n", posy - height / 4); fprintf(f, "rectangle::x2=%d+${iarray:textlen:max}\n", posx + height / 2); fprintf(f, "rectangle::y2=%d\n", gy + height / 4); fprintf(f, "rectangle::fill_R=255\n"); fprintf(f, "rectangle::fill_G=255\n"); fprintf(f, "rectangle::fill_B=255\n"); fprintf(f, "rectangle::stroke_R=0\n"); fprintf(f, "rectangle::stroke_G=0\n"); fprintf(f, "rectangle::stroke_B=0\n"); fprintf(f, "rectangle::fill=true\n"); fprintf(f, "rectangle::stroke=true\n"); fprintf(f, "del iarray:textlen\n"); fprintf(f, "del iarray:textbbox\n"); } fclose(f); return 0; } static GtkWidget * create_spin_button(const char *title, double min, double max, double inc, double init, GtkWidget **hbox) { GtkWidget *w, *label; #if GTK_CHECK_VERSION(3, 0, 0) *hbox = gtk_grid_new(); gtk_widget_set_hexpand(*hbox, FALSE); label = gtk_label_new_with_mnemonic(title); g_object_set(label, "margin", GINT_TO_POINTER(4), NULL); w = gtk_spin_button_new_with_range(min, max, inc); gtk_widget_set_margin_right(w, 4); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), init); gtk_label_set_mnemonic_widget(GTK_LABEL(label), w); gtk_widget_set_hexpand(w, TRUE); gtk_widget_set_halign(w, GTK_ALIGN_FILL); gtk_grid_attach(GTK_GRID(*hbox), label, 0, 0, 1, 1); gtk_grid_attach(GTK_GRID(*hbox), w, 1, 0, 1, 1); #else *hbox = gtk_hbox_new(FALSE, 4); label = gtk_label_new_with_mnemonic(title); gtk_box_pack_start(GTK_BOX(*hbox), label, FALSE, FALSE, 4); w = gtk_spin_button_new_with_range(min, max, inc); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), init); gtk_label_set_mnemonic_widget(GTK_LABEL(label), w); gtk_box_pack_start(GTK_BOX(*hbox), w, TRUE, TRUE, 4); #endif return w; } static GtkWidget * create_format_frame(struct fit_prm *prm) { GtkWidget *frame, *vbox, *w, *hbox; frame = gtk_frame_new("format"); #if GTK_CHECK_VERSION(3, 0, 0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); #else vbox = gtk_vbox_new(FALSE, 4); #endif w = gtk_check_button_new_with_mnemonic("add _+"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 2); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), ADD_PLUS); prm->add_plus = w; w = gtk_check_button_new_with_mnemonic("_Expand"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 2); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), EXPAND); prm->expand = w; w = gtk_check_button_new_with_mnemonic("_Frame"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 2); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), FRAME); prm->frame = w; w = create_spin_button("_Accuracy:", 1, 15, 1, ACCURACY, &hbox); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 2); prm->accuracy = w; gtk_container_add(GTK_CONTAINER(frame), vbox); return frame; } static GtkWidget * create_position_frame(struct fit_prm *prm) { GtkWidget *frame, *w, *table; int j; frame = gtk_frame_new("position"); #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 2, FALSE); #endif j = 0; w = gtk_spin_button_new_with_range(POS_MIN, POS_MAX, POS_INC); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(w), 2); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), prm->posx / 100.0); add_widget_to_table_sub(table, w, "_X:", TRUE, 0, 1, j++); prm->x = w; w = gtk_spin_button_new_with_range(POS_MIN, POS_MAX, POS_INC); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(w), 2); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), prm->posy / 100.0); add_widget_to_table_sub(table, w, "_Y:", TRUE, 0, 1, j++); prm->y = w; gtk_container_add(GTK_CONTAINER(frame), table); return frame; } static void set_parameter(struct fit_prm *prm) { int i, j, accuracy, expand, add_plus, dim[PRM_NUM]; char buf[LINE_BUF_SIZE], fmt[LINE_BUF_SIZE]; GtkTreeModel *model; GtkTreeIter iter; i = gtk_combo_box_get_active(GTK_COMBO_BOX(prm->combo)); accuracy = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(prm->accuracy)); expand = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->expand)); add_plus = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->add_plus)); if (strcmp(prm->data[i].type, "poly") == 0) { for (j = 0; j < PRM_NUM; j++) { dim[j] = (j <= prm->data[i].poly); } } else if (strcmp(prm->data[i].type, "exp") == 0|| strcmp(prm->data[i].type, "log") == 0|| strcmp(prm->data[i].type, "pow") == 0) { for (j = 0; j < PRM_NUM; j++) { dim[j] = (j < 2); } } else if (prm->data[i].userfunc) { for (j = 0; j < PRM_NUM; j++) { snprintf(buf, sizeof(buf), "%%%02d", j); if (strstr(prm->data[i].userfunc, buf)) { dim[j] = TRUE; } else { dim[j] = FALSE; } } } model = gtk_tree_view_get_model(GTK_TREE_VIEW(prm->caption)); if (! gtk_tree_model_get_iter_first(model, &iter)) { return; } for (j = 0; j < PRM_NUM; j++) { snprintf(fmt, sizeof(fmt), "%%#%s.%dg", add_plus ? "+" : "", accuracy); if (expand) { snprintf(buf, sizeof(buf), fmt, prm->data[i].prm[j]); } else { snprintf(buf, sizeof(buf), "%%pf{%s %%{file:%d:fit_prm:%d}}", fmt, prm->data[i].file_id, j); } gtk_list_store_set(GTK_LIST_STORE(model), &iter, COLUMN_CHECK, dim[j], COLUMN_VAL, buf, -1); if (! gtk_tree_model_iter_next(model, &iter)) { break; } } } static void file_changed(GtkWidget *widget, gpointer user_data) { struct fit_prm *prm; prm = (struct fit_prm *) user_data; set_parameter(prm); } static void text_edited(GtkCellRenderer *renderer, gchar *path, gchar *new_text, struct fit_prm *prm, int column) { GtkTreeModel *model; GtkTreeIter iter; GtkTreeView *view; view = GTK_TREE_VIEW(prm->caption); model = gtk_tree_view_get_model(view); if (! gtk_tree_model_get_iter_from_string(model, &iter, path)) { return; } gtk_list_store_set(GTK_LIST_STORE(model), &iter, column, new_text, -1); } static void caption_edited(GtkCellRenderer *renderer, gchar *path, gchar *new_text, gpointer user_data) { text_edited(renderer, path, new_text, (struct fit_prm *) user_data, COLUMN_CAPTION); } static void value_edited(GtkCellRenderer *renderer, gchar *path, gchar *new_text, gpointer user_data) { text_edited(renderer, path, new_text, (struct fit_prm *) user_data, COLUMN_VAL); } static void caption_toggled(GtkCellRendererToggle *cell_renderer, gchar *path, gpointer user_data) { struct fit_prm *prm; GtkTreeView *view; GtkTreeModel *model; GtkTreeIter iter; gboolean v; prm = (struct fit_prm *) user_data; view = GTK_TREE_VIEW(prm->caption); model = gtk_tree_view_get_model(view); if (! gtk_tree_model_get_iter_from_string(model, &iter, path)) { return; } gtk_tree_model_get(model, &iter, COLUMN_CHECK, &v, -1); v = !v; gtk_list_store_set(GTK_LIST_STORE(model), &iter, COLUMN_CHECK, v, -1); } struct text_column { char *title; int editable; void (* func)(GtkCellRenderer *, gchar *, gchar *, gpointer); }; static GtkWidget * create_caption_frame(struct fit_prm *prm) { GtkListStore *list; GtkCellRenderer *renderer; GtkTreeViewColumn *col; GtkTreeIter iter; GtkWidget *tview, *hbox, *frame; int i, n; struct text_column text_column[] = { {"prm", FALSE, NULL}, {"caption", TRUE, caption_edited}, {"result", TRUE, value_edited}, }; char buf1[64], buf2[64]; n = sizeof(text_column) / sizeof(*text_column); list = gtk_list_store_new(n + 1, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); tview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(list)); gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tview), TRUE); gtk_tree_view_set_grid_lines(GTK_TREE_VIEW(tview), GTK_TREE_VIEW_GRID_LINES_VERTICAL); renderer = gtk_cell_renderer_toggle_new(); col = gtk_tree_view_column_new_with_attributes("", renderer, "active", 0, NULL); g_object_set(renderer, "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL); g_signal_connect(renderer, "toggled", G_CALLBACK(caption_toggled), prm); gtk_tree_view_append_column(GTK_TREE_VIEW(tview), col); for (i = 0; i < n; i++) { renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes(text_column[i].title, renderer, "text", i + 1, "sensitive", 0, NULL); if (text_column[i].editable) { g_object_set(renderer, "editable", TRUE, NULL); g_signal_connect(renderer, "edited", G_CALLBACK(text_column[i].func), prm); } gtk_tree_view_append_column(GTK_TREE_VIEW(tview), col); } for (i = 0; i < PRM_NUM; i++) { snprintf(buf1, sizeof(buf1), "%%%02d", i); snprintf(buf2, sizeof(buf2), "\\%%%02d: ", i); gtk_list_store_append(list, &iter); gtk_list_store_set(list, &iter, COLUMN_PRM, buf1, COLUMN_CAPTION, buf2, -1); } frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame), tview); #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 4); prm->caption = tview; return hbox; } static GtkWidget * create_file_frame(struct fit_prm *prm) { GtkListStore *list; GtkTreeIter iter; GtkCellRenderer *rend_s; GtkWidget *combo, *hbox, *label; char *str, *filename; int i; combo = gtk_combo_box_new(); list = gtk_list_store_new(1, G_TYPE_STRING); gtk_combo_box_set_model(GTK_COMBO_BOX(combo), GTK_TREE_MODEL(list)); rend_s = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo), rend_s, FALSE); gtk_cell_layout_add_attribute(GTK_CELL_LAYOUT(combo), rend_s, "text", 0); for (i = 0; i < prm->fit_num; i++) { if (prm->data[i].file == NULL) { continue; } filename = g_path_get_basename(prm->data[i].file); str = g_strdup_printf("#%d %s", prm->data[i].file_id, filename); gtk_list_store_append(list, &iter); gtk_list_store_set(list, &iter, 0, str, -1); g_free(str); g_free(filename); } prm->combo = combo; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif label = gtk_label_new_with_mnemonic("_Data:"); gtk_label_set_mnemonic_widget(GTK_LABEL(label), combo); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_box_pack_start(GTK_BOX(hbox), combo, TRUE, TRUE, 4); return hbox; } static GtkWidget * create_control(GtkWidget *box, struct fit_prm *prm) { GtkWidget *w, *hbox; #if GTK_CHECK_VERSION(3, 0, 0) hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif w = create_format_frame(prm); gtk_box_pack_start(GTK_BOX(hbox), w, TRUE, TRUE, 4); w = create_position_frame(prm); gtk_box_pack_start(GTK_BOX(hbox), w, TRUE, TRUE, 4); w = create_font_frame(&prm->font); gtk_box_pack_start(GTK_BOX(hbox), w, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 4); w = create_file_frame(prm); gtk_box_pack_start(GTK_BOX(box), w, FALSE, FALSE, 4); w = create_caption_frame(prm); gtk_box_pack_start(GTK_BOX(box), w, FALSE, FALSE, 4); return NULL; } static void create_widgets(GtkWidget *vbox, struct fit_prm *prm) { GtkWidget *w; w = create_title(NAME " version " VERSION, "fitting results -> legend text"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 0); w = create_control(vbox, prm); } static const char * get_opt(int argc, char **argv, struct fit_prm *prm) { int i; char *data_file = NULL; for (i = 1; i < argc; i++) { if (strcmp(argv[i], "-x") == 0) { i++; if (argv[i]) { prm->posx = atoi(argv[i]); } } else if (strcmp(argv[i], "-y") == 0) { i++; if (argv[i]) { prm->posy = atoi(argv[i]); } } else if (data_file == NULL) { data_file = argv[i]; } else { prm->script = argv[i]; } } return data_file; } int main(int argc, char **argv) { GtkWidget *mainwin; gint r; struct fit_prm prm; const char *data_file; #if GTK_CHECK_VERSION(2, 24, 0) setlocale(LC_ALL, ""); #else gtk_set_locale(); #endif gtk_init(&argc, &argv); prm.posx = POS_X; prm.posy = POS_Y; data_file = get_opt(argc, argv, &prm); if (data_file == NULL) { return 0; } if (loaddatalist(&prm, data_file)) { return 0; } mainwin = gtk_dialog_new_with_buttons(NAME, NULL, 0, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL); gtk_dialog_set_default_response(GTK_DIALOG(mainwin), GTK_RESPONSE_ACCEPT); prm.window = mainwin; create_widgets(gtk_dialog_get_content_area(GTK_DIALOG(mainwin)), &prm); g_signal_connect(prm.combo, "changed", G_CALLBACK(file_changed), &prm); g_signal_connect(prm.add_plus, "toggled", G_CALLBACK(file_changed), &prm); g_signal_connect(prm.expand, "toggled", G_CALLBACK(file_changed), &prm); g_signal_connect(prm.accuracy, "value-changed", G_CALLBACK(file_changed), &prm); gtk_combo_box_set_active(GTK_COMBO_BOX(prm.combo), 0); gtk_widget_show_all(mainwin); r = gtk_dialog_run(GTK_DIALOG(mainwin)); if (r == GTK_RESPONSE_ACCEPT) { savescript(&prm); } return 0; } ngraph-gtk-6.06.13/addin/calc.c0000644000175000017500000001675712241111712013007 00000000000000#include #include #include #include #include #include #include #include #include "addin_common.h" #define NAME "Calc" #define VERSION "1.00.03" #define DATA_FILE "#calc#.dat" #define MINIMUM "0.0" #define MAXIMUM "1.0" #define DIVISION 100 #define FORMULA "X" #define INCMIN TRUE #define INCMAX TRUE #define SETDATA TRUE #define LINE_BUF_SIZE 1024 struct calc_prm { GtkWidget *window, *min,*max, *div, *inc_min, *inc_max, *output, *minimum, *maximum, *division, *set_data, *formula; const char *script; }; static void set_double_to_entry(GtkWidget *entry, double val) { char buf[LINE_BUF_SIZE]; snprintf(buf, sizeof(buf), "%G", val); gtk_entry_set_text(GTK_ENTRY(entry), buf); } static double get_double_from_entry(GtkWidget *entry) { const char *str; char *ptr; double val; str = gtk_entry_get_text(GTK_ENTRY(entry)); val = g_ascii_strtod(str, &ptr); return val; } static void load_settings(struct calc_prm *prm) { double min, max; int div, imin, imax, n; char *output, *ptr; char buf[LINE_BUF_SIZE], tag[LINE_BUF_SIZE]; char s1[LINE_BUF_SIZE], s2[LINE_BUF_SIZE], s3[LINE_BUF_SIZE]; FILE *fp; output = get_text_from_entry(prm->output); fp = g_fopen(output, "r"); g_free(output); if (fp == NULL) { return; } ptr = fgets(buf, sizeof(buf), fp); if (ptr == NULL) { fclose(fp); return; } n = sscanf(buf, "-s%64s -mx%64s -my%64s", s1, s2, s3); if (n != 3) { fclose(fp); return; } ptr = fgets(buf, sizeof(buf), fp); if (ptr == NULL) { fclose(fp); return; } n = sscanf(buf, "%64s %lf %lf %d %d %d", tag, &min, &max, &div, &imin, &imax); if (n != 6) { fclose(fp); return; } fclose(fp); if (strcmp(tag, "%CALC.NSC") != 0) { return; } set_double_to_entry(prm->minimum, min); set_double_to_entry(prm->maximum, max); gtk_spin_button_set_value(GTK_SPIN_BUTTON(prm->division), div); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(prm->inc_min), imin); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(prm->inc_max), imax); gtk_entry_set_text(GTK_ENTRY(prm->formula), s3); } static void load_clicked(GtkButton *button, gpointer user_data) { struct calc_prm *prm; prm = (struct calc_prm *) user_data; load_settings(prm); } static GtkWidget * create_control(struct calc_prm *prm) { GtkWidget *table, *w; int j; #if GTK_CHECK_VERSION(3, 4, 0) table = gtk_grid_new(); #else table = gtk_table_new(1, 3, FALSE); #endif j = 0; w = create_text_entry(TRUE); add_widget_to_table_sub(table, w, "_Output:", TRUE, 0, 2, j++); gtk_entry_set_text(GTK_ENTRY(w), DATA_FILE); prm->output = w; w = create_text_entry(TRUE); add_widget_to_table_sub(table, w, "_Formula:", TRUE, 0, 1, j); gtk_entry_set_text(GTK_ENTRY(w), FORMULA); prm->formula = w; w = gtk_button_new_with_mnemonic("_Load"); add_widget_to_table_sub(table, w, NULL, FALSE, 2, 1, j++); g_signal_connect(w, "clicked", G_CALLBACK(load_clicked), prm); w = create_text_entry(TRUE); add_widget_to_table_sub(table, w, "_Minimum:", TRUE, 0, 1, j); gtk_entry_set_text(GTK_ENTRY(w), MINIMUM); prm->minimum = w; w = gtk_check_button_new_with_mnemonic("_Include min"); add_widget_to_table_sub(table, w, NULL, FALSE, 2, 1, j++); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), INCMIN); prm->inc_min = w; w = create_text_entry(TRUE); add_widget_to_table_sub(table, w, "_Maximum:", TRUE, 0, 1, j); gtk_entry_set_text(GTK_ENTRY(w), MAXIMUM); prm->maximum = w; w = gtk_check_button_new_with_mnemonic("_Include max"); add_widget_to_table_sub(table, w, NULL, FALSE, 2, 1, j++); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), INCMAX); prm->inc_max = w; w = gtk_spin_button_new_with_range(1, 100000, 10); add_widget_to_table_sub(table, w, "_Division:", TRUE, 0, 1, j++); gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), DIVISION); prm->division = w; w = gtk_check_button_new_with_mnemonic("open as _Data"); add_widget_to_table_sub(table, w, NULL, FALSE, 0, 2, j++); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), SETDATA); prm->set_data = w; return table; } static void create_widgets(GtkWidget *vbox, struct calc_prm *prm) { GtkWidget *w; w = create_title(NAME " version " VERSION, "making a data file"); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 0); w = create_control(prm); gtk_box_pack_start(GTK_BOX(vbox), w, FALSE, FALSE, 0); } static void remove_space_quotation(char *str) { int len, i; if (str == NULL) { return; } len = strlen(str); for (i = 0; i < len; i++) { if (g_ascii_isspace(str[i]) || str[i] == '\'') { memmove(str + i, str + i + 1, len - i); } } } static int save_script(const struct calc_prm *prm) { FILE *fp; char *file = NULL, *eqn; if (prm->script == NULL) { return 0; } fp = g_fopen(prm->script, "w"); if (fp == NULL) { return 1; } fprintf(fp, "new file\n"); file = get_text_from_entry(prm->output); fprintf(fp, "file::file=%s\n", file); g_free(file); fprintf(fp, "file::head_skip=2\n"); fprintf(fp, "file::type=line\n"); eqn = get_text_from_entry(prm->formula); remove_space_quotation(eqn); fprintf(fp, "file::math_y='%s'\n", eqn); g_free(eqn); fprintf(fp, "menu::modified=true\n"); fclose(fp); return 0; } static int save_data(const struct calc_prm *prm) { double min, max, x; int start, end, div, inc_min, inc_max, r, i; FILE *fp; char *output, *eqn; div = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(prm->division)); inc_min = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->inc_min)); start = (inc_min) ? 0 : 1; inc_max = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm->inc_max)); end = (inc_max) ? div : div - 1; output = get_text_from_entry(prm->output); if (g_file_test(output, G_FILE_TEST_EXISTS)) { r = warning_dialog(prm->window, "Overwrite existing file? (%s)", output); if (r == GTK_RESPONSE_NO) { g_free(output); return -1; } } fp = g_fopen(output, "w"); if (fp == NULL) { g_free(output); return 1; } eqn = get_text_from_entry(prm->formula); remove_space_quotation(eqn); fprintf(fp, "-s2 -mxX -my%s\n", eqn); g_free(eqn); min = get_double_from_entry(prm->minimum); max = get_double_from_entry(prm->maximum); fprintf(fp, "%%CALC.NSC %G %G %d %d %d\n", min, max, div, inc_min, inc_max); for (i = start; i <= end; i++) { x = min + (max - min) / div * i; fprintf(fp, "%G %G\n", x, x); } fclose(fp); g_free(output); return 0; } int main(int argc, char **argv) { GtkWidget *mainwin; gint r; struct calc_prm prm; prm.script = (argc < 2) ? NULL : argv[1]; #if GTK_CHECK_VERSION(2, 24, 0) setlocale(LC_ALL, ""); #else gtk_set_locale(); #endif gtk_init(&argc, &argv); mainwin = gtk_dialog_new_with_buttons(NAME, NULL, 0, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL); gtk_dialog_set_default_response(GTK_DIALOG(mainwin), GTK_RESPONSE_ACCEPT); prm.window = mainwin; create_widgets(gtk_dialog_get_content_area(GTK_DIALOG(mainwin)), &prm); load_settings(&prm); gtk_widget_show_all(mainwin); while (1) { r = gtk_dialog_run(GTK_DIALOG(mainwin)); if (r != GTK_RESPONSE_ACCEPT) { return 0; } r = save_data(&prm); if (r == 0) { break; } else if (r > 0) { return 0; } } if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prm.set_data))) { save_script(&prm); } return 0; } ngraph-gtk-6.06.13/addin/fig2gra.nsc0000644000175000017500000001305612241111712013754 00000000000000set +e fig2gra_delete_obj() { del io:fig2gra del regexp:fig2gra del sarray:fig2gra del iarray:fig2gra del sarray:palette del iarray:points } fig2gra_set_color() { c=`get sarray:palette -field get:$1` if [ -n "$c" ] then io:fig2gra:puts "G,4,$c,255" fi } fig2gra_set_line_attribute () { style=${iarray:fig2gra:get:2} width=`iexpr "${iarray:fig2gra:get:3} * $COORD_CONV * 100 / 80"` len=`iexpr "${iarray:fig2gra:get:9} * $COORD_CONV * 100 / 80"` join=${iarray:fig2gra:get:10} cap=${iarray:fig2gra:get:11} case $style in 1) io:fig2gra:puts "A,7,2,$width,$cap,$join,1000,$len,$len" ;; 2) io:fig2gra:puts "A,7,2,$width,$cap,$join,1000,50,$len" ;; 3) io:fig2gra:puts "A,9,4,$width,$cap,$join,1000,$len,100,50,100" ;; 4) io:fig2gra:puts "A,11,6,$width,$cap,$join,1000,$len,100,50,100,50,100" ;; 5) io:fig2gra:puts "A,13,8,$width,$cap,$join,1000,$len,100,50,100,50,100,50,100" ;; *) io:fig2gra:puts "A,5,0,$width,$cap,$join,1000" ;; esac } fig2gra_draw_poly_line() { n=${iarray:points:num} if [ $n -lt 4 ] then return fi fill=0 if [ "${iarray:fig2gra:get:8}" != -1 ] then fill=1 fi close_path=0 if [ ${iarray:points:get:0} -eq ${iarray:points:get:-2} -a ${iarray:points:get:1} -eq ${iarray:points:get:-1} ] then iarray:points:pop iarray:points:pop n=${iarray:points:num} close_path=1 fi m=`iexpr $n/2` if [ ${iarray:fig2gra:get:1} -ne 1 -o $fill -ne 0 ] then n2=`iexpr $n+2` if [ $fill -ne 0 ] then fig2gra_set_color ${iarray:fig2gra:get:5} io:fig2gra:puts "D,$n2,$m,1,${iarray:points:join:','}" fi if [ ${iarray:fig2gra:get:3} -gt 0 ] then fig2gra_set_color ${iarray:fig2gra:get:4} fig2gra_set_line_attribute io:fig2gra:puts "D,$n2,$m,0,${iarray:points:join:','}" fi else fig2gra_set_color ${iarray:fig2gra:get:4} fig2gra_set_line_attribute if [ $close_path -ne 0 ] then io:fig2gra:puts "D,`iexpr $n+2`,$m,0,${iarray:points:join:','}" else io:fig2gra:puts "R,`iexpr $n+1`,$m,${iarray:points:join:','}" fi fi } fig2gra_init_palette() { sarray:palette:@="" sarray:palette:push "0,0,0" sarray:palette:push "0,0,255" sarray:palette:push "0,255,0" sarray:palette:push "0,255,255" sarray:palette:push "255,0,0" sarray:palette:push "255,0,255" sarray:palette:push "255,255,0" sarray:palette:push "255,255,255" sarray:palette:push "0,0,144" sarray:palette:push "0,0,176" sarray:palette:push "0,0,208" sarray:palette:push "135,206,255" sarray:palette:push "0,144,0" sarray:palette:push "0,176,0" sarray:palette:push "0,208,0" sarray:palette:push "0,144,144" sarray:palette:push "0,176,176" sarray:palette:push "0,208,208" sarray:palette:push "144,0,144" sarray:palette:push "176,0,176" sarray:palette:push "208,0,208" sarray:palette:push "128,48,0" sarray:palette:push "160,64,0" sarray:palette:push "192,96,0" sarray:palette:push "255,128,128" sarray:palette:push "255,160,160" sarray:palette:push "255,192,192" sarray:palette:push "255,224,224" sarray:palette:push "255,215,224" new int int::@=512 while int::times do sarray:palette:push "0,0,0" done del int } fig2gra_add_palette() { new string string::@=$3 r=`iexpr 0x${string::slice:"1 2"}` g=`iexpr 0x${string::slice:"3 2"}` b=`iexpr 0x${string::slice:"5 2"}` sarray:palette:put $2 "$r,$g,$b" del string } fig2gra() { new io name=fig2gra new sarray name=fig2gra new iarray name=fig2gra new regexp name=fig2gra new iarray name=points new sarray name=palette fig2gra_init_palette if [ "$1" = "-dummy" ] then shift fi io:fig2gra:mode="r" regexp:fig2gra:@='^#' io:fig2gra:open $1 while true do l=${io:fig2gra:gets} if io:fig2gra:eof then break fi if regexp:fig2gra:match:"$l" then continue fi sarray:fig2gra:push "$l" done io:fig2gra:close if [ ${sarray:fig2gra:num} -lt 9 ] then fig2gra_delete_obj return 1 fi head=${sarray:fig2gra:shift} # 0 head=${sarray:fig2gra:shift} # 1 head=${sarray:fig2gra:shift} # 2 if [ $head = "Metric" ] then COORD_CONV=1 else COORD_CONV=25.4 fi head=${sarray:fig2gra:shift} # 3 head=${sarray:fig2gra:shift} # 4 head=${sarray:fig2gra:shift} # 5 head=${sarray:fig2gra:shift} # 6 iarray:fig2gra:@=${sarray:fig2gra:shift} # 7 RESOLUTION=${iarray:fig2gra:get:0} regexp:fig2gra:@='^a\W' io:fig2gra:mode="w" io:fig2gra:open "$2" io:fig2gra:puts ${system::GRAF} io:fig2gra:puts '%Creator: fig2gra.nsc' io:fig2gra:puts "I,5,0,0,21600,27900,10000" io:fig2gra:puts "V,5,0,0,21600,27900,0" while true do a=${sarray:fig2gra:shift} if [ -z "$a" ] then break fi b="" while true do l=${sarray:fig2gra:shift} if regexp:fig2gra:match "a$l" then b="$b $l" else sarray:fig2gra:unshift "$l" break fi done iarray:fig2gra:@="$a" case ${iarray:fig2gra:get:0} in 0) # Color Pseudo-objects fig2gra_add_palette $a ;; 1) # ELLIPSE ;; 2) # POLYLINE if [ ${iarray:fig2gra:get:1} -ne 5 ] then iarray:points:@="$b" iarray:points:map "x * $COORD_CONV * 100 / $RESOLUTION" fig2gra_draw_poly_line fi ;; 3) # SPLINE ;; 4) # TEXT ;; 5) # ARC ;; 6) # COMPOUND ;; esac done io:fig2gra:puts 'E,0' io:fig2gra:close fig2gra_delete_obj return 0 } ngraph-gtk-6.06.13/addin/calc.nsc0000644000175000017500000000060012241111712013324 00000000000000# calc.nsc written by S. ISHIZAKA. 1997/12 # # This script assists plotting a mathematical function. # # The simplest add-in script using an external program. # # Description: _Calc...,making a data file, SCRIPT=${system:0:temp_file} "${NGRAPHLIB}/calc" "$SCRIPT" if [ -s "$SCRIPT" ]; then new shell shell::shell "$SCRIPT" del shell menu:0:clear fi system:0:unlink_temp_file ngraph-gtk-6.06.13/addin/legend.nsc0000644000175000017500000000176712241111712013677 00000000000000# legend.nsc written by S. ISHIZAKA. 1997/12 # # This script generates a legend box. # # Please edit the following X, Y, and WIDTH variables as you like. # # Description: _Legend...,automatic legend generator, X=5000 # top-left of the legend to be inserted. Y=5000 # top-left of the legend to be inserted. WIDTH=2000 # width of "type" field. if [ `object file -instance` != 0 ] then DATALIST=${system:0:temp_file} object file -instance > "$DATALIST" get file:0-! -id -field file id hidden x y type mark_type mark_size line_width line_style R G B R2 G2 B2 math_x math_y >> "$DATALIST" SCRIPT=${system:0:temp_file} "${NGRAPHLIB}/legend" -x ${X} -y ${Y} -w ${WIDTH} "$DATALIST" "$SCRIPT" if [ -s "$SCRIPT" ]; then new shell shell::shell "$SCRIPT" del shell gra::clear gra::draw gra::flush fi system:0:unlink_temp_file "$DATALIST" system:0:unlink_temp_file "$SCRIPT" else new dialog dialog::beep dialog::message "No data file." del dialog fi ngraph-gtk-6.06.13/icons/0000755000175000017500000000000012241600065012041 500000000000000ngraph-gtk-6.06.13/icons/application-x-ngraph-script.png0000644000175000017500000000132012241111702020005 00000000000000PNG  IHDR@@XGlsRGB!PLTE@2tRNS@fbKGDH pHYs  tIME !u~IDATHDž1o0Y  [s/,5<22Ww"k"z5Cu/2(x(ϞƗ?˨ロ(?o[,C"Po$0 -@ !z~aDFEpd CNP d!#H"bț ~%dAlhq۠bxmz(ۘqj->eNx~m0=H"k t-ԥ[ ! [, t0Ƀ8LwQSܺoS]?`״LN2-pb4캻 lN/~/L]u1 O{IENDB`ngraph-gtk-6.06.13/icons/Makefile.in0000644000175000017500000004640212241364551014043 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = icons DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = scalable EXTRA_DIST = application-x-ngraph-graphic.png \ application-x-ngraph-graphic.xpm \ application-x-ngraph-script.png \ application-x-ngraph-script.xpm application-x-ngraph.xpm all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu icons/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu icons/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/icons/scalable/0000755000175000017500000000000012241600065013607 500000000000000ngraph-gtk-6.06.13/icons/scalable/Makefile.in0000644000175000017500000004614712241364551015617 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = icons/scalable DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = apps mimetypes all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu icons/scalable/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu icons/scalable/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/icons/scalable/mimetypes/0000755000175000017500000000000012241600065015623 500000000000000ngraph-gtk-6.06.13/icons/scalable/mimetypes/application-x-ngraph-script.svg0000644000175000017500000003736012241111702023617 00000000000000 image/svg+xml ngraph-gtk-6.06.13/icons/scalable/mimetypes/application-x-ngraph.svg0000644000175000017500000004033712241111702022313 00000000000000 image/svg+xml ngraph-gtk-6.06.13/icons/scalable/mimetypes/Makefile.in0000644000175000017500000003651412241364551017630 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = icons/scalable/mimetypes DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_icons_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(iconsdir)" DATA = $(dist_icons_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ themedir = $(datadir)/icons/hicolor size = scalable context = mimetypes iconsdir = $(themedir)/$(size)/$(context) dist_icons_DATA = application-x-ngraph.svg \ application-x-ngraph-graphic.svg \ application-x-ngraph-script.svg all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu icons/scalable/mimetypes/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu icons/scalable/mimetypes/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_iconsDATA: $(dist_icons_DATA) @$(NORMAL_INSTALL) @list='$(dist_icons_DATA)'; test -n "$(iconsdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(iconsdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(iconsdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(iconsdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(iconsdir)" || exit $$?; \ done uninstall-dist_iconsDATA: @$(NORMAL_UNINSTALL) @list='$(dist_icons_DATA)'; test -n "$(iconsdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(iconsdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(iconsdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_iconsDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_iconsDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_iconsDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_iconsDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/icons/scalable/mimetypes/application-x-ngraph-graphic.svg0000644000175000017500000003346612241111702023733 00000000000000 image/svg+xml ngraph-gtk-6.06.13/icons/scalable/mimetypes/Makefile.am0000644000175000017500000000035512241111702017575 00000000000000themedir = $(datadir)/icons/hicolor size = scalable context = mimetypes iconsdir = $(themedir)/$(size)/$(context) dist_icons_DATA = application-x-ngraph.svg \ application-x-ngraph-graphic.svg \ application-x-ngraph-script.svg ngraph-gtk-6.06.13/icons/scalable/Makefile.am0000644000175000017500000000003112241111702015550 00000000000000SUBDIRS = apps mimetypes ngraph-gtk-6.06.13/icons/scalable/apps/0000755000175000017500000000000012241600065014552 500000000000000ngraph-gtk-6.06.13/icons/scalable/apps/Makefile.in0000644000175000017500000003633312241364551016556 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = icons/scalable/apps DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(dist_icons_DATA) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/gsl.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/gtk-3.0.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(iconsdir)" DATA = $(dist_icons_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GSL_CFLAGS = @GSL_CFLAGS@ GSL_CONFIG = @GSL_CONFIG@ GSL_LIBS = @GSL_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ M_LIBS = @M_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ POW_LIB = @POW_LIB@ RANLIB = @RANLIB@ RDYNAMIC = @RDYNAMIC@ READLINE_LIBS = @READLINE_LIBS@ RM = @RM@ RUBY = @RUBY@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VER_SCRIPT = @VER_SCRIPT@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ themedir = $(datadir)/icons/hicolor size = scalable context = apps iconsdir = $(themedir)/$(size)/$(context) dist_icons_DATA = ngraph.svg all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu icons/scalable/apps/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu icons/scalable/apps/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_iconsDATA: $(dist_icons_DATA) @$(NORMAL_INSTALL) @list='$(dist_icons_DATA)'; test -n "$(iconsdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(iconsdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(iconsdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(iconsdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(iconsdir)" || exit $$?; \ done uninstall-dist_iconsDATA: @$(NORMAL_UNINSTALL) @list='$(dist_icons_DATA)'; test -n "$(iconsdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(iconsdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(iconsdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_iconsDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_iconsDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_iconsDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_iconsDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ngraph-gtk-6.06.13/icons/scalable/apps/Makefile.am0000644000175000017500000000021412241111702016516 00000000000000themedir = $(datadir)/icons/hicolor size = scalable context = apps iconsdir = $(themedir)/$(size)/$(context) dist_icons_DATA = ngraph.svg ngraph-gtk-6.06.13/icons/scalable/apps/ngraph.svg0000644000175000017500000004033712241111702016474 00000000000000 image/svg+xml ngraph-gtk-6.06.13/icons/Makefile.am0000644000175000017500000000031712241111702014011 00000000000000SUBDIRS = scalable EXTRA_DIST = application-x-ngraph-graphic.png \ application-x-ngraph-graphic.xpm \ application-x-ngraph-script.png \ application-x-ngraph-script.xpm application-x-ngraph.xpm ngraph-gtk-6.06.13/icons/application-x-ngraph.xpm0000644000175000017500000000256712241111702016541 00000000000000/* XPM */ static char * application_x_ngraph_xpm[] = { "32 32 12 1", " c None", ". c #000000", "+ c #0000FC", "@ c #FC0000", "# c #008080", "$ c #808000", "% c #808080", "& c #00ECEC", "* c #C0C0C0", "= c #00FCFC", "- c #FCFC00", "; c #FCFCFC", " %% ", " %%;;% ", " %%;;;;;% ", " %%;;;;;;;;% ", " %%;;;;;;;;;;;% ", " %%;;;;;+;;;;;;;;% ", " %%;;;;;;;=+;;@;;;;;% ", " %%;;;;;;;;;;;;@;;;;;;;% ", " %;;;;;+;;;+;;;@;;=+;;;;;% ", ".%;;;;;=+;;=+;@;;;+;;;;;;;% ", ".*%;;;;;;;;;;@;;;;;;;;;;;;;% ", ".**%;.;;;;;;@;;;;;;;;;;;;;;;% ", ".***%;.;;;;@;;;;;;;;;;;;..;;;% ", ".***%;;.;;@;;=+;;;;;;;..;;;;;;% ", ".**%;;;;.@;;;+;;;;;;..;;;;;;;;;%", ".*%;;;;;@.;;;;;;;;..**********;;", ".%;;;;;@;;.;;;;;..************;;", ".%;;;;@;;;;.;;..;;************;;", " .%;;@;;;;;;..;;;;***$$$$$$$$$$$", " .%;;;;;;..;..;;;***$----------", " .%;;;..;;;;.;;;***$-#=##=##=-", " .%;;;;;;;;;.;;***$-#=##=##=-", " .%;;;;;;;;;;;***$----------", " .%;;;;;;;;;;***$--+--+--+-", " .%;;;;;;;;;**%$-.+-.+-.+-", "== ==.%;;;;;;;;%%.$----------", "=== == .%;;;;;%%.. $--+--+--+-", "==== == .%;;%%.. $-.+-.+-.+-", "== == == .%%.. $----------", "== ==== .. $--+--+--+-", "== === $-.+-.+-.+-", "== == ----------"}; ngraph-gtk-6.06.13/icons/application-x-ngraph-graphic.xpm0000644000175000017500000001201712241111702020143 00000000000000/* XPM */ static char *application_x_ngraph_graphic[] = { /* columns rows colors chars-per-pixel */ "32 32 129 2", " c #00E500EE00EE", ". c #0D0B0D0B0000", "X c #1212121202D5", "o c #25F525F5266F", "O c #299827382738", "+ c #2CAA2CF92CF9", "@ c #35502B622B62", "# c #3F24294C294C", "$ c #2D7D33CE33CE", "% c #57305730190C", "& c #7FCA7FCA0000", "* c #4D7D4D7D4D7D", "= c #5373537D537D", "- c #5D6856245624", "; c #5C6C5C6C5C6C", ": c #6C1E48784878", "> c #791250F650F6", ", c #67EE67EE5ADA", "< c #5775577567A7", "1 c #5806571367E0", "2 c #573357226891", "3 c #62E662E562E5", "4 c #6E026E026E02", "5 c #73C873C873C8", "6 c #7C6D7C6D7C6D", "7 c #83EF05990599", "8 c #9E8000050005", "9 c #A6C500010001", "0 c #AF4F032F032F", "q c #A68B10181018", "w c #A58918CF18CF", "e c #9D4C26102610", "r c #BF4F3B1C3B1C", "t c #CAD201230123", "y c #DD6705680568", "u c #E25706870687", "i c #ED6E00000000", "p c #FD4F00000000", "a c #E08225532553", "s c #808E45CB45CB", "d c #88EE65B365B3", "f c #BFD56EC16EC1", "g c #D224772C772C", "h c #FD0C6870680A", "j c #F5287FC47FC4", "k c #FE5679E5798A", "l c #1C7B94517DCF", "z c #1BB29AB77E0C", "x c #3601A2146B1A", "c c #368DADD1764D", "v c #7FF1C570457F", "b c #847284720153", "n c #99AE99AE0000", "m c #8D278D2B1500", "M c #962395AB146D", "N c #B6C7B6840000", "B c #C248BF990041", "V c #8F7DCC5A3CDC", "C c #D4DFE1840B9A", "Z c #DE0EEC830F47", "A c #D57FE2BB1ADD", "S c #D8DFE5291B61", "D c #E2EFE2EB0000", "F c #E34AEA2D0577", "G c #EE04EE3C0000", "H c #E302E2EE0C20", "J c #E162EEC30D6B", "K c #EF09EEFF0E2A", "L c #E3B7F12C0BC0", "P c #EE73F61B07A8", "I c #F280F2800000", "U c #FEC0FEEC000B", "Y c #EEFEEEFE10EC", "T c #9E459E455FAA", "R c #9E359E356056", "E c #A12BA12B62ED", "W c #A3DBA3DB6ADD", "Q c #80DFC6464567", "! c #E04DE003439C", "~ c #57345734A654", "^ c #58095720A577", "/ c #1B7D9F8E8423", "( c #00008D4894F0", ") c #0000951F9C4D", "_ c #1BB2A05C83B1", "` c #1D36A4928D49", "' c #0474979AFCF1", "] c #2996905CFD0D", "[ c #838883888388", "{ c #89FC89FC89FC", "} c #942494249424", "| c #9C909D349D41", " . c #BE8BBE8B864E", ".. c #A1F7A1F7A1F7", "X. c #ACACACACACAC", "o. c #B4F3B4F3A7DE", "O. c #B8F8B8F8ABD3", "+. c #B33AB33AB33A", "@. c #BD73BD73B66F", "#. c #BDD1BDD2BDD4", "$. c #FA3F9F2A9F2A", "%. c #EB85AF2DAF2D", "&. c #F1D6A738A738", "*. c #FCC6A68EA6C5", "=. c #FF33A8BDA6E8", "-. c #FFFFAB45AB45", ";. c #FE7EB37CB37C", ":. c #9313AAAEFE1B", ">. c #B028BF79FD06", ",. c #B060BFD4FD32", "<. c #B029C093FE20", "1. c #C321C321C41C", "2. c #CB6CCB6CCBB5", "3. c #D5EFD5EFD5EF", "4. c #D813D87FD87F", "5. c #DE76DEBDDEBD", "6. c #F338DA8ADA8A", "7. c #E2FBCF03E53D", "8. c #E3ECE3ECE3EC", "9. c #EE57EE57E2FF", "0. c #EE1DEE40EE3C", "q. c #F1D1E5B0E5B0", "w. c #FE2CE636E56B", "e. c #E5A4E5A5FD28", "r. c #F451F45AF451", "t. c #FED1F484F395", "y. c #F8E2F7C3FCF8", "u. c #FDB5FDCDFDAF", "i. c None", /* pixels */ "i.i.i.i.i.i.i.i.i.i.i.i.i.i.i.{ X.X.i.i.i.i.i.i.i.i.i.i.i.i.i.i.", "i.i.i.i.i.i.i.i.i.i.i.i.i.i.X.3.y.r.X.i.i.i.i.i.i.i.i.i.i.i.i.i.", "i.i.i.i.i.i.i.i.i.i.i.{ X.3.r.u.u.u.r.X.i.i.i.i.i.i.i.i.i.i.i.i.", "i.i.i.i.i.i.i.i.i.{ X.3.r.u.u.u.u.u.u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| r.u.#.3 [ 8.u.4.| 4 #.r.r.1.1.O.M C l ) ) ( ) ) ( ` Z ", "i.i.i.i.+ | r.0.0.r.y.u.u.r.[ 3 0.y.1.1.O.M C x _ / z _ / z c J ", "i.i.i.i.i.+ | r.u.u.u.u.u.y.0.#.0.r.1.1.O.M G S A L A A L A S U ", "i.i.i.i.i.i.@ | r.u.u.u.u.u.u.u.u.r.2.1.o.M D 2 ^ H 1 ^ H 1 ^ K ", "i.i.p p p p 9 # | r.u.u.u.u.u.u.u.y.1.| , b D % 2 H % 2 H % < Y ", "i.p p p i.p p 8 @ | r.u.u.u.u.u.0.@.3 o X & I H H U H H U H H U ", "i.p p i.i.i.i.i.i.e g $.t.;.k j d O . b D 2 ~ H 2 ~ H 2 ^ K ", "p p p i.i.p i.i.i.p u f %.a q t y i. . b D % 2 H % 2 H % < Y ", "p p p i.i.p p p i.p 0 $ > w 0 i p i. i.X b I H H U H H U H H U ", "i.p p i.i.i.p p i.p p i.7 p i.p p i.i.i. b D 2 ~ H 2 ~ H 2 ^ K ", "i.i.p p p p p p i.p i.i.i.p p p p i.i.i.i.n D % 2 H % 2 H % < Y ", "i.i.i.p p p i.i.i.i.i.i.i.i.i.i.i.i.i.i.i.i.I G G U G G U G G U " }; ngraph-gtk-6.06.13/icons/application-x-ngraph-script.xpm0000644000175000017500000001177012241111702020037 00000000000000/* XPM */ static char *application_x_ngraph_script[] = { /* columns rows colors chars-per-pixel */ "32 32 128 2", " c #05920592048D", ". c #0D150D150368", "X c #000000000A2D", "o c #12BD12BD056C", "O c #06F906F919CA", "+ c #0D150D1525F4", "@ c #000000003207", "# c #2646264625EF", "$ c #2CFC2CFC2CF6", "% c #26A426A43E21", "& c #57305730190C", "* c #7FCA7FCA0000", "= c #00000000525E", "- c #2BCD2BCD45E8", "; c #0D810D817D0F", ": c #4D7D4D7D4D7D", "> c #5373537D537D", ", c #5D6856245624", "< c #5C6C5C6C5C6C", "1 c #6C1E48784878", "2 c #67EE67EE5ADA", "3 c #5775577567A7", "4 c #5806571367E0", "5 c #573357226891", "6 c #5F4B5F4B7B0E", "7 c #62E562E562E6", "8 c #6D506D506D1F", "9 c #73C873C873C8", "0 c #7C6D7C6D7C6D", "q c #BF4F3B1C3B1C", "w c #808E45CB45CB", "e c #FD0C6870680A", "r c #FD8178F2786A", "t c #1C7B94517DCF", "y c #1BB29AB77E0C", "u c #3601A2146B1A", "i c #368DADD1764D", "p c #7FF1C570457F", "a c #84CB84CB0153", "s c #9D849D840000", "d c #8D278D2B1500", "f c #962395AB146D", "g c #B6C7B6840000", "h c #C248BF990041", "j c #8F7DCC5A3CDC", "k c #D4DFE1840B9A", "l c #DE0EEC830F47", "z c #D57FE2BB1ADD", "x c #D8DFE5291B61", "c c #E2EFE2EB0000", "v c #E34AEA2D0577", "b c #EE04EE3C0000", "n c #E302E2EE0C20", "m c #E162EEC30D6B", "M c #EF09EEFF0E2A", "N c #E3B7F12C0BC0", "B c #EE73F61B07A8", "V c #F280F2800000", "C c #FEC0FEEC000B", "Z c #EEFEEEFE10EC", "A c #9E459E455FAA", "S c #9E359E356056", "D c #A12BA12B62ED", "F c #A3DBA3DB6ADD", "G c #80DFC6464567", "H c #E04DE003439C", "J c #000000009AD4", "K c #00000000AEA0", "L c #08260826B0C3", "P c #57345734A654", "I c #58095720A577", "U c #00000000DE2B", "Y c #1FAA1FAACB55", "T c #006E006EE47E", "R c #00000000EA65", "E c #11551155E1E4", "W c #00000000F4A5", "Q c #00000000FD22", "! c #1FBD1FBDE4D6", "~ c #57B557B5C9FD", "^ c #1B7D9F8E8423", "/ c #00008D4894F0", "( c #0000951F9C4D", ") c #1BB2A05C83B1", "_ c #1D36A4928D49", "` c #0474979AFCF1", "' c #2996905CFD0D", "] c #838883888388", "[ c #89FC89FC89FC", "{ c #942494249424", "} c #9CFE9D1A9D10", "| c #BE8BBE8B864E", " . c #9F9E9F9EADBE", ".. c #A1F7A1F7A1F7", "X. c #ACACACACACAC", "o. c #B4F3B4F3A7DE", "O. c #B8F8B8F8ABD3", "+. c #B33AB33AB33A", "@. c #BBC6BBC6B752", "#. c #BDD3BDD2BDD4", "$. c #F1D6A738A738", "%. c #FCC6A68EA6C5", "&. c #FF33A8BDA6E8", "*. c #FFFFAB45AB45", "=. c #9313AAAEFE1B", "-. c #A886A886F34E", ";. c #B028BF79FD06", ":. c #B060BFD4FD32", ">. c #B029C093FE20", ",. c #C321C321C41C", "<. c #CB6CCB6CCBB5", "1. c #D5EFD5EFD5EF", "2. c #D813D87FD87F", "3. c #DE76DEBDDEBD", "4. c #F338DA8ADA8A", "5. c #E2FBCF03E53D", "6. c #E3ECE3ECE3EC", "7. c #EE57EE57E2FF", "8. c #EE00EE00EE27", "9. c #F1D1E5B0E5B0", "0. c #FE2CE636E56B", "q. c #E54DE54EFD26", "w. c #EF62EF62FE2D", "e. c #F45FF459F447", "r. c #FF07F547F3E0", "t. c #F8E2F7C3FCF8", "y. c #FDC0FDC6FDA4", "u. c None", /* pixels */ "u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.[ X.X.u.u.u.u.u.u.u.u.u.u.u.u.u.u.", "u.u.u.u.u.u.u.u.u.u.u.u.u.u.X.1.t.e.X.u.u.u.u.u.u.u.u.u.u.u.u.u.", "u.u.u.u.u.u.u.u.u.u.u.[ X.1.e.y.y.y.e.X.u.u.u.u.u.u.u.u.u.u.u.u.", "u.u.u.u.u.u.u.u.u.[ X.1.e.y.y.y.y.y.y.e.X.u.u.u.u.u.u.u.u.u.u.u.", "u.u.u.u.u.u.u.[ X.1.e.y.y.q.t.y.y.y.y.y.e.X.u.u.u.u.u.u.u.u.u.u.", "u.u.u.u.u.[ X.1.e.y.y.y.;.' ;.y.y.0.t.y.y.e.X.u.u.u.u.u.u.u.u.u.", "u.u.u.[ X.1.e.y.y.y.y.y.:.' ;.y.%.r r.y.y.y.e.X.u.u.u.u.u.u.u.u.", "u.u.X.1.e.y.y.q.t.y.t.q.t.q.t.%.e 5.=.q.y.y.y.e.X.u.u.u.u.u.u.u.", "9 +.t.y.y.y.;.' ;.y.;.' :.y.%.e 0.=.` =.y.y.y.y.e.X.u.u.u.u.u.u.", ": } 1.y.y.y.;.' ;.y.;.' >.&.e 0.y.q.=.q.y.y.y.y.y.e.X.u.u.u.u.u.", "> +...1.8.8.y.q.t.y.t.q.%.e 0.y.y.y.y.y.y.y.y.t.e.y.e.X.u.u.u.u.", "> #.@...{ 8 #.e.y.y.y.&.e 0.y.y.y.y.y.y.y.y.y.e.[ { e.e.X.u.u.u.", "> @.,.+.[ 9 < 3.e.y.%.e 5.=.q.y.y.y.y.y.e.<.1.[ 7 [ 8.y.e.X.u.u.", "> #.@...<.e.} , #.*.e 0.=.` =.y.y.t.e.y.1.> > X.e.e.t.y.y.e.X.u.", "> +...1.y.y.2.} 1 q 4.y.q.=.q.y.y.8.] 0 < { X.1.6.3.3.3.3.6.8.+.", ": } 1.y.y.y.y.$.w , 3.e.y.y.e.<.1.[ : 7 X.,.,.#.#.#.#.#.#.,.e.t.", ": <.y.y.y.y.%.e 9.} , #.y.y.1.> > ..#.@.#.,.,.,.,.,.,.,.,.<.t.y.", "$ } e.y.y.%.e 0.y.2.} 8 <.[ 8 +.<.8.<.,.@.F A S S S S S S D | 7.", "u.$ } e.0.r 0.t.e.y.2.: # { 6.y.y.e.,.,.O.d g h h h h h h h h H ", "u.u.$ } e.r.y.8.[ 0 8 +.} < #.y.y.e.,.,.O.f v j p G G G G p j B ", "u.u.u.$ } e.y.#.7 ] 6.y.2.} 8 #.e.e.,.,.O.f k t ( ( / ( ( / _ l ", "u.u.u.u.$ } e.8.8.e.t.y.y.e.] 7 8.t.,.,.O.f k u ) ^ y ) ^ y i m ", "u.u.u.u.u.$ } e.y.y.y.y.y.t.8.#.8.e.,.,.O.f b x z N z z N z x C ", "u.u.u.u.u.u.$ } e.y.y.y.y.y.y.y.y.e.<.,.o.f c 5 I n 4 I n 4 I M ", "u.Q Q Q Q u.u.$ } e.y.y.y.y.y.y.y.t.,.} 2 a c & 5 n & 5 n & 3 Z ", "Q Q Q Q Q Q u.u.$ } e.y.y.y.y.y.8.@.7 # o * V n n C n n C n n C ", "Q Q u.u.Q u.u.u.u.$ } e.w.q.8.@.8 # X . a c 5 P n 5 P n 5 I M ", "u.Q Q Q Q u.u.u.u.u.- .-.~ 6 % O u.= J + a c & 5 n & 5 n & 3 Z ", "u.u.u.Q Q Q u.Q Q u.T Y ! E L U R Q W Q ; a V n n C n n C n n C ", "Q Q u.u.Q Q Q Q u.u.Q K J Q Q Q Q Q Q T @ a c 5 P n 5 P n 5 I M ", "Q Q Q Q Q Q Q Q Q u.Q W R Q Q Q Q Q Q Q u.s c & 5 n & 5 n & 3 Z ", "u.u.Q Q u.u.u.Q u.u.Q u.u.u.Q Q u.u.u.Q u.u.V b b C b b C b b C " }; ngraph-gtk-6.06.13/icons/application-x-ngraph-graphic.png0000644000175000017500000000132512241111702020123 00000000000000PNG  IHDR@@XGlsRGB!PLTE@2tRNS@fbKGDH pHYs  tIME 7iO IDATHDž0DiN=:@Sܤꮱ~ E\R1p2\CЀ?,ؘr<\nzXG?@~{o# =F$>EQ&EP#>RRW)} wڀj/S9B*TgVЈ~LB{#<Ŷp`i "J  zH >/֪!E($} k.CL|AA1={9-F6/\q?ֆIHE8<׆| ׆I8).)/ov@=0"^#"de"Bg!|Ȅos1Λ XЫR >n$G-BhQ!A!YilxdGo #*ΧOؠ UHđLEHݢ ^ t-_<ȆҢ0 4ݢ JbLG06p 28v.d`$]IR}{#N .wc_0*y@/IENDB`ngraph-gtk-6.06.13/NEWS0000644000175000017500000000200112241111712011332 00000000000000ngraph-gtk 6.03.48.gtk-26 2009/06/07 ngraph-gtk 6.03.48.gtk-25 2009/05/23 ngraph-gtk 6.03.48.gtk-24 2009/04/26 ngraph-gtk 6.03.48.gtk-23 2009/04/11 ngraph-gtk 6.03.47.gtk-22 2009/03/29 ngraph-gtk 6.03.47.gtk-21 2009/03/21 ngraph-gtk 6.03.47.gtk-20 2009/03/07 ngraph-gtk 6.03.47.gtk-19 2009/02/21 ngraph-gtk 6.03.47.gtk-18 2009/01/24 ngraph-gtk 6.03.47.gtk-17 2009/01/17 ngraph-gtk 6.03.47.gtk-16 2009/01/10 ngraph-gtk 6.03.47.gtk-15 2008/12/27 ngraph-gtk 6.03.47.gtk-14 2008/12/20 ngraph-gtk 6.03.47.gtk-13 2008/12/06 ngraph-gtk 6.03.47.gtk-12 2008/11/22 ngraph-gtk 6.03.47.gtk-11 2008/11/16 ngraph-gtk 6.03.47.gtk-10 2008/11/15 ngraph-gtk 6.03.47.gtk-09 2008/11/08 ngraph-gtk 6.03.47.gtk-08 2008/10/12 ngraph-gtk 6.03.47.gtk-07 2008/09/14 ngraph-gtk 6.03.47.gtk-06 2008/08/31 ngraph-gtk 6.03.47.gtk-05 2008/08/17 ngraph-gtk 6.03.30.gtk-04 2008/08/04 ngraph-gtk 6.03.30.gtk-03 2008/07/13 ngraph-gtk 6.03.30.gtk-02 2008/06/28 ngraph-gtk 6.03.30.gtk-01 2008/06/23 ngraph-gtk initial version 2008/06/08ngraph-gtk-6.06.13/missing0000755000175000017500000001533112241364550012256 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2012-06-26.16; # UTC # Copyright (C) 1996-2013 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'automa4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ngraph-gtk-6.06.13/COPYING0000644000175000017500000004312212241111712011677 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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 Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.

'$obj'