#ifndef __TOURH__
#define __TOURH__

#include <stdio.h>
#include <stdlib.h>

#define tour int*
#define city int

//initializes a new tour
tour create_tour(int ncities);

//returns true if the tour t is shorter than
//a distance indicated by dist 
int is_shtr(tour t, int dist);

//defines the starter point of a tour
void strt_point(tour t, city c);

//defines a new tour changing the order of two cities
void swap_cities(tour* t, city c1, city c2);

#endif
#ifndef __TOURH__
#define __TOURH__

#include <stdio.h>
#include <stdlib.h>

typedef int* tour;
typedef int city;

//inicializa um tour
tour create_tour(int ncities);

//popula um tour pre-definido com cidades
void populate_tour(tour t, int ncities);

//retorna true se a distancia total do
//tour t for menor que dist
int is_shoter(tour t, int dist);

//define a cidade inicial de um tour
void start_point(tour t, city c);

//inverte a posição de duas cidades no tour
void swap_cities(tour t, int c1, int c2);

#endif
Change type creation from define to typedef.
Change type creation from define to typedef.
