static void set_connector_list_length_limit(Connector *c, Connector_set *conset, int short_len, Parse_Options opts) { for (; c!=NULL; c=c->next) { if (parse_options_get_all_short_connectors(opts)) { c->length_limit = short_len; } else if (conset == NULL || match_in_connector_set(conset, c, '+')) { c->length_limit = UNLIMITED_LEN; } else { c->length_limit = short_len; } } }
void set_connector_length_limit(Connector* c) { int short_len = _opts->short_length; if (short_len > UNLIMITED_LEN) short_len = UNLIMITED_LEN; Connector_set *conset = _sent->dict->unlimited_connector_set; if (parse_options_get_all_short_connectors(_opts)) { c->length_limit = short_len; } else if (conset == NULL || match_in_connector_set(_sent, conset, c, '+')) { c->length_limit = UNLIMITED_LEN; } else { c->length_limit = short_len; } }