Skip to content

Commit f615270

Browse files
committed
feat: Thanks to @mobius we have Delphi generator
1 parent a6621e1 commit f615270

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

generator/Common/generate.console.pas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ interface
2222
cLongOptOutput = 'output-file';
2323
cShortOptNumber: Char = 'n';
2424
cLongOptNumber = 'line-count';
25+
{$IFDEF FPC}
26+
cShortOptions: array of char = ('h', 'v', 'i', 'o', 'n');
27+
cLongOptions: array of string = ('help', 'version', 'input-file', 'output-file',
28+
'line-count');
29+
{$ELSE}
2530
cShortOptions: array of char = ['h', 'v', 'i', 'o', 'n'];
2631
cLongOptions: array of string = ['help', 'version', 'input-file', 'output-file',
2732
'line-count'];
33+
{$ENDIF}
2834

2935
resourcestring
3036
rsAppTitle = 'One Billion Row Challenge Generator';

generator/Common/version.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
const
2-
cVersion = '0.3';
2+
cVersion = '0.4';

generator/Lazarus/src/generator.lpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ procedure TOneBRCGenerator.DoRun;
107107
if HasOption(cShortOptNumber, cLongOptNumber) then
108108
begin
109109
tmpLineCount:=GetOptionValue(
110-
cShortOptNumner,
110+
cShortOptNumber,
111111
cLongOptNumber
112112
);
113113
tmpLineCount:= StringReplace(tmpLineCount, '_', '', [rfReplaceAll]);

0 commit comments

Comments
 (0)