Ejemplo n.º 1
0
Archivo: http.c Proyecto: sequenced/wsd
static int
tokenise_connection(chunk_t *s)
{
     chunk_t result;

     if (0 < http_field_value_tok(s, &result)) {
          if (has_upgrade(&result))
               return 1;
          
          while (0 < http_field_value_tok(NULL, &result))
               if (has_upgrade(&result))
                    return 1;
     }

     return 0;
}
void CSE_ALifeInventoryItem::add_upgrade( const shared_str& upgrade_id )
{
	if ( !has_upgrade( upgrade_id ) )
	{
		m_upgrades.push_back( upgrade_id );
		return;
	}
	FATAL( make_string( "Can`t add existent upgrade (%s)!", upgrade_id.c_str() ).c_str() );
}