dbStatic: Allow empty DB & DBD files

They used to cause a Syntax error with a bad context string.
This commit is contained in:
Andrew Johnson
2013-03-20 16:53:10 -05:00
parent 738b8ca55f
commit a4edc46a5f
2 changed files with 14 additions and 1 deletions

View File

@@ -13,6 +13,13 @@
<!-- Insert new items immediately below here ... -->
<h4>Allow empty database files</h4>
<p>The IOC used to report an error if dbLoadRecords or dbLoadDatabase was asked
to load an empty file or one containing just whitespace and/or comments. Such
files are now permitted, simplifying the task of automated database generation
programs which might discover they have nothing to output.</p>
<h4>High-Resolution Time Provider on MacOS</h4>
<p>MacOS does not provide the clock_gettime() API with CLOCK_REALTIME that other

View File

@@ -31,7 +31,13 @@ static int yyAbort = 0;
%%
database: database database_item | database_item;
database: /* empty */
| database_item_list
;
database_item_list: database_item_list database_item
| database_item
;
database_item: include
| path