Allowed comments and empty lines in startup files
This commit is contained in:
parent
a388dab2f1
commit
4b197a2b57
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2006.09.27.074910"
|
||||
#define Cdrskin_timestamP "2006.09.27.080826"
|
||||
|
Loading…
Reference in New Issue
Block a user