mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
fix the uggly typo that broke the literals.
This commit is contained in:
@@ -10,7 +10,7 @@ pgf_match_string_lit(PgfLiteralCallback* self, PgfConcr* concr,
|
|||||||
GuString sentence, size_t* poffset,
|
GuString sentence, size_t* poffset,
|
||||||
GuPool *out_pool)
|
GuPool *out_pool)
|
||||||
{
|
{
|
||||||
if (strcmp("ann","s") != 0)
|
if (strcmp(ann,"s") != 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
const uint8_t* buf = (uint8_t*) (sentence + *poffset);
|
const uint8_t* buf = (uint8_t*) (sentence + *poffset);
|
||||||
@@ -72,7 +72,7 @@ pgf_match_int_lit(PgfLiteralCallback* self, PgfConcr* concr,
|
|||||||
GuString sentence, size_t* poffset,
|
GuString sentence, size_t* poffset,
|
||||||
GuPool *out_pool)
|
GuPool *out_pool)
|
||||||
{
|
{
|
||||||
if (strcmp("ann","s") != 0)
|
if (strcmp(ann,"s") != 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
const uint8_t* buf = (uint8_t*) (sentence + *poffset);
|
const uint8_t* buf = (uint8_t*) (sentence + *poffset);
|
||||||
@@ -127,7 +127,7 @@ pgf_match_float_lit(PgfLiteralCallback* self, PgfConcr* concr,
|
|||||||
GuString sentence, size_t* poffset,
|
GuString sentence, size_t* poffset,
|
||||||
GuPool *out_pool)
|
GuPool *out_pool)
|
||||||
{
|
{
|
||||||
if (strcmp("ann","s") != 0)
|
if (strcmp(ann,"s") != 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
const uint8_t* buf = (uint8_t*) (sentence + *poffset);
|
const uint8_t* buf = (uint8_t*) (sentence + *poffset);
|
||||||
@@ -233,7 +233,7 @@ pgf_match_name_lit(PgfLiteralCallback* self, PgfConcr* concr,
|
|||||||
GuString sentence, size_t* poffset,
|
GuString sentence, size_t* poffset,
|
||||||
GuPool *out_pool)
|
GuPool *out_pool)
|
||||||
{
|
{
|
||||||
if (strcmp("ann","s") != 0)
|
if (strcmp(ann,"s") != 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
GuPool* tmp_pool = gu_local_pool();
|
GuPool* tmp_pool = gu_local_pool();
|
||||||
|
|||||||
Reference in New Issue
Block a user