Browse Source

* also support ; comments in cfg file

daniel 25 years ago
parent
commit
4ad408eab3
1 changed files with 5 additions and 2 deletions
  1. 5 2
      compiler/options.pas

+ 5 - 2
compiler/options.pas

@@ -899,7 +899,7 @@ begin
    begin
    begin
      readln(f,opts);
      readln(f,opts);
      RemoveSep(opts);
      RemoveSep(opts);
-     if (opts<>'') then
+     if (opts<>'') and (opts[1]<>';') then
       begin
       begin
         if opts[1]='#' then
         if opts[1]='#' then
          begin
          begin
@@ -1406,7 +1406,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.52  2000-01-17 22:50:28  peter
+  Revision 1.53  2000-01-20 10:36:44  daniel
+    * also support ; comments in cfg file
+
+  Revision 1.52  2000/01/17 22:50:28  peter
     * fixed interpret_envvar whcih crashed when the envvar was not set
     * fixed interpret_envvar whcih crashed when the envvar was not set
     * also warn if the envvar is empty (=not set)
     * also warn if the envvar is empty (=not set)