[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: g_basic.nw



  User: ahvezda 
  Date: 05/08/14 21:26:51

  Modified:    .        g_basic.nw s_toplevel.nw
  Log:
  Commited Carlos Azevedo gnetlist rename patch, also his chdir and rc expand 
  
  patch.  Added grid-mode and grid-fixed-threshold keywords and implementation.
  
  Added add-attribute-offset (but not the implementation; still under devel)
  
  
  
  
  Revision  Changes    Path
  1.10      +12 -3     eda/geda/devel/libgeda/noweb/g_basic.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: g_basic.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/noweb/g_basic.nw,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- g_basic.nw	14 Feb 2005 02:17:36 -0000	1.9
  +++ g_basic.nw	15 Aug 2005 01:26:51 -0000	1.10
  @@ -184,18 +184,25 @@
   {
   	SCM port;
   	SCM eval_result = SCM_BOOL_F;
  +	char * full_filename;
   
   	if (filename == NULL) {
   		return(-1);
   	}
   
  -	if (access(filename, R_OK) != 0) {
  +	/* get full, absolute path to file */
  +	full_filename = f_normalize_filename(filename);
  +	if (full_filename == NULL) {
  +		return(-1);
  +	}
  +	
  +	if (access(full_filename, R_OK) != 0) {
   		s_log_message("Could not find [%s] for interpretion\n",
  -			      filename);
  +			      full_filename);
   		return(-1);
     	}
   
  -	port = scm_open_file(scm_makfrom0str(filename), scm_makfrom0str("r"));
  +	port = scm_open_file(scm_makfrom0str(full_filename), scm_makfrom0str("r"));
   
   	eval_result = scm_internal_catch (SCM_BOOL_T,
                                         (scm_t_catch_body)load,
  @@ -205,6 +212,8 @@
   
   	scm_close_port(port);
   
  +	free(full_filename);
  +
   	return (eval_result == SCM_BOOL_T);
   }
   
  
  
  
  1.5       +4 -0      eda/geda/devel/libgeda/noweb/s_toplevel.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: s_toplevel.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/noweb/s_toplevel.nw,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- s_toplevel.nw	11 Mar 2005 17:48:43 -0000	1.4
  +++ s_toplevel.nw	15 Aug 2005 01:26:51 -0000	1.5
  @@ -440,9 +440,13 @@
     toplevel->force_boundingbox = FALSE;
   
     toplevel->grid_dot_size = 1;
  +  toplevel->grid_mode = GRID_VARIABLE_MODE;
  +  toplevel->grid_fixed_threshold = 10;
   
     toplevel->print_vector_threshold = 3;
     
  +  toplevel->add_attribute_offset = 50;
  +  
     toplevel->net_naming_priority = 0;
     toplevel->hierarchy_traversal = 0;
     toplevel->hierarchy_uref_mangle = 0;