link-grammar-5.8.0/link-grammar/tokenize/wordgraph.c
/* === Gword utilities === */
/* Many more Gword utilities, that are used only in particular files,
 * are defined in these files statically. */
Gword utilities
Many more Gword utilities, that are used only in particular files,
are defined in these files statically.
Gword utilities Many more Gword utilities that are used only in particular files are defined in these files statically .
Gword *gword_new(Sentence sent, const char *s)
{
	Gword *gword = malloc(sizeof(*gword));
	memset(gword, 0, sizeof(*gword));
	assert(NULL != s, "Null-string subword");
	gword->subword = string_set_add(s, sent->string_set);
	if (NULL != sent->last_word) sent->last_word->chain_next = gword;
	sent->last_word = gword;
	gword->node_num = sent->gword_node_num++;
	gword->gword_set_head = (gword_set){0};
	gword->gword_set_head.o_gword = gword;
	return gword;
}
Gword * gword_new ( Sentence sent , const char * s ) { Gword * gword = malloc ( sizeof ( * gword ) ) ; memset ( gword , 0 , sizeof ( * gword ) ) ; assert ( NULL != s , " " ) ; gword -> subword = string_set_add ( s , sent -> string_set ) ; if ( NULL != sent -> last_word ) sent -> last_word -> chain_next = gword ; sent -> last_word = gword ; gword -> node_num = sent -> gword_node_num ++ ; gword -> gword_set_head = ( gword_set ) { 0 } ; gword -> gword_set_head . o_gword = gword ; return gword ; }
Gword utilities 
Many more Gword utilities, that are used only in particular files,
 are defined in these files statically.
Gword utilities Many more Gword utilities that are used only in particular files are defined in these files statically .