@@ -57,7 +57,7 @@ const
(* sign-on and usage message: *)
sign_on = 'TP Lex Version 4.1a [April 2000], Copyright (c) 1990-2000 Albert Graef';
-{$ifdef linux}
+{$ifdef Unix}
usage = 'Usage: plex [options] lex-file[.l] [output-file[.pas]]';
{$else}
usage = 'Usage: lex [options] lex-file[.l] [output-file[.pas]]';
@@ -609,8 +609,12 @@ procedure auxiliary_procs;
var i : Integer;
begin
+ {$ifdef BSD}
+ codfilepath:='/usr/local/lib/fpc/lexyacc/';
+ {$else}
codfilepath:='/usr/lib/fpc/lexyacc/';
+ {$endif}
codfilepath:=path(paramstr(0));
{$endif}
@@ -2388,8 +2388,12 @@ function yylex : integer;
@@ -724,8 +724,12 @@ function yylex : integer;
sign_on = 'TP Yacc Version 4.1a [April 2000], Copyright (c) 1990-2000 Albert Graef';
usage = 'Usage: pyacc [options] yacc-file[.y] [output-file[.pas]]';
usage = 'Usage: yacc [options] yacc-file[.y] [output-file[.pas]]';