rem: printf ("matched\n");
context: void association_automatique ( void ){  GtkWidget *dialog;  GtkWidget *label;  gint resultat;  gint i;  dialog = gnome_dialog_new ( _("Automatic association for the financial year"),			      GNOME_STOCK_BUTTON_APPLY,			      GNOME_STOCK_BUTTON_CANCEL,			      NULL );  gtk_window_set_transient_for ( GTK_WINDOW ( dialog ),				 GTK_WINDOW ( fenetre_preferences ));  label = gtk_label_new ( _("This function assigns each transaction without a financial year to the\none related to its transaction date.  If no financial year matches,\nthe transaction will not be changed.") );  gtk_box_pack_start ( GTK_BOX ( GNOME_DIALOG ( dialog ) -> vbox ),		       label,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( label );  resultat = gnome_dialog_run_and_close ( GNOME_DIALOG ( dialog ));  if ( resultat )    return;    p_tab_nom_de_compte_variable = p_tab_nom_de_compte;  for ( i=0 ; i<nb_comptes ; i++ )    {      GSList *pointeur_tmp;      pointeur_tmp = LISTE_OPERATIONS;      while ( pointeur_tmp )	{	  struct structure_operation *operation;	  operation = pointeur_tmp -> data;	  if ( !operation -> no_exercice )	    {	      GSList *pointeur_exo;	      pointeur_exo = liste_struct_exercices;	      while ( pointeur_exo )		{		  struct struct_exercice *exo;		  exo = pointeur_exo -> data;		  printf (">>> Verifying %02d/%02d/%04d for %s ... ",			  g_date_day ( operation -> date ),			  g_date_month ( operation -> date ),			  g_date_year ( operation -> date ),			  exo -> nom_exercice );		  if ( g_date_compare ( exo -> date_debut,					operation -> date ) <= 0		       &&		       g_date_compare ( exo -> date_fin,					operation -> date ) >= 0 )		    {		      printf ("matched\n");		      operation -> no_exercice = exo -> no_exercice;		    }		  else		    {		      printf ("not matched\n");		    }		  pointeur_exo = pointeur_exo -> next;		}	    }	  pointeur_tmp = pointeur_tmp -> next;	}      p_tab_nom_de_compte_variable++;    }  demande_mise_a_jour_tous_comptes ();  verification_mise_a_jour_liste();  modification_fichier ( TRUE );}