Why? It
 is used for project file parsing, and maybe in the future
 for
 configuration file.
 
yes, but the scripting interface to the program is very very limited.
Actually the config is written using fprintf, at the same time it could be read 
using fscanf leaving
the format as is, or switch to ini file format as example and keeping the 
compatible reading code.
Actually the config file is this

(gerbv-file-version! "2.0A")
(define-layer! 7 (cons 'filename "test.gts")(cons 'visible #t)(cons 'color 
#(65535 50629 13107)))
(define-layer! 6 (cons 'filename "test.gto")(cons 'visible #t)(cons 'color 
#(53713 6939 26728)))
(define-layer! 5 (cons 'filename "test.gtl")(cons 'visible #t)(cons 'color 
#(54741 65021 13107)))
(define-layer! 4 (cons 'filename "test.gcm")(cons 'visible #t)(cons 'color #(0 
50115 50115)))
(define-layer! 3 (cons 'filename "test.gbs")(cons 'visible #t)(cons 'color 
#(30069 62194 26471)))
(define-layer! 2 (cons 'filename "test.gbm")(cons 'visible #t)(cons 'color 
#(49601 0 57568)))
(define-layer! 1 (cons 'filename "test.gbl")(cons 'visible #t)(cons 'color 
#(65535 32639 29555)))
(define-layer! 0 (cons 'filename "test.drl")(cons 'visible #t)(cons 'color 
#(29555 29555 57054))(cons 'attribs (list (list 'autodetect 'Boolean 1) (list 
'zero_supression 'Enum 1) (list 'units 'Enum 0) (list 'digits 'Integer 4))))
(define-layer! -1 (cons 'filename 
"/home/foo/bar/gv/gerbv-2.6.1/foobar/cam")(cons 'visible #f)(cons 'color #(0 0 
0)))
(set-render-type! 0)

I see no problem parsing it directly without scripting language.
The scripting lang was good idea, but the interface between application and 
scripting is missing,
so either drop it or expand it, and my preference is to drop it.

I want add support for assigning layer type to layers, as example: 
"gtl,gts,bmp,grb,drl,png" ,
default colors for different type of layers, and other minor changes.
Basically i need this for supporing merging projects, and further i want having 
config file for merging,
in order to recreate it with little different gerbers. 




------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to