Allowed comments and empty lines in startup files

This commit is contained in:
Thomas Schmitt 2006-09-27 08:07:45 +00:00
parent 70a14832b0
commit 84ee76f564
3 changed files with 11 additions and 5 deletions

View File

@ -317,12 +317,16 @@ arguments from the following three files:
/etc/opt/cdrskin/rc
$HOME/.cdrskinrc
The files are read in the sequence given above.
Each readable line is treated as one single argument. No extra blanks,
no comments, no empty lines are permitted.
Each readable line is treated as one single argument. No extra blanks.
A first character '#' marks a comment, empty lines are ignored.
Example content of a startup file:
dev=1,1,0
dev_translation=+1,0,0+1,1,0
# This is the default device
dev=0,1,0
# To accomodate to eventual remnant cdrskin-0.2.2 addresses
dev_translation=+1,0,0+0,1,0
# Some more options
--fifo_start_empty
fs=16m

View File

@ -471,6 +471,8 @@ int Sfile_multi_read_argv(char *progname, char **filenames, int filename_count,
while(Sfile_fgets(buf,sizeof(buf)-1,fp)!=NULL) {
line_no++;
l= strlen(buf);
if(l==0 || buf[0]=='#')
continue;
if(pass==0){
if(l>maxl)
maxl= l;

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2006.09.27.074910"
#define Cdrskin_timestamP "2006.09.27.080826"