Skip to content

Commit

Permalink
Convirtiendo a estaticas funciones que deberían serlo
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioq committed Nov 29, 2013
1 parent 8e1f685 commit 8ede59a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/notacion.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
char notacion_default[] = { NOTACION_ORIGEN, NOTACION_MARCA_IFORIGEN, NOTACION_DESTINO, 0 };
char notacion_repetida[] = { NOTACION_ORIGEN, NOTACION_MARCA_IFORIGEN, NOTACION_DESTINO, 0 };

char* notacion_resolver_tmov( Notacion* nott, int tmov );
char* notacion_resolver_tpieza( Notacion* nott, int color, Tipopieza* tpieza );
char* notacion_resolver_mov( Notacion* nott, Movida* mov, char* def );
static char* notacion_resolver_tmov( Notacion* nott, int tmov );
static char* notacion_resolver_tpieza( Notacion* nott, int color, Tipopieza* tpieza );
static char* notacion_resolver_mov( Notacion* nott, Movida* mov, char* def );

/*
* Notacion:
Expand Down Expand Up @@ -112,7 +112,7 @@ void notacion_resolver_movidas( Tipojuego* tjuego, _list* movs, char* prefix



char* notacion_resolver_tmov( Notacion* nott, int tmov ){
static char* notacion_resolver_tmov( Notacion* nott, int tmov ){
if( nott->notacion_tmovs && tmov ){
int i;
for( i = 0; i < nott->notacion_tmovs->entradas; i ++ ){
Expand All @@ -123,7 +123,7 @@ char* notacion_resolver_tmov( Notacion* nott, int tmov ){
return NULL;
}

char* notacion_resolver_tpieza( Notacion* nott, int color, Tipopieza* tpieza){
static char* notacion_resolver_tpieza( Notacion* nott, int color, Tipopieza* tpieza){
if( nott && nott->notacion_tpiezas && tpieza ){
int i;
for( i = 0; i < nott->notacion_tpiezas->entradas; i ++ ){
Expand All @@ -147,7 +147,7 @@ char* notacion_resolver_tpieza( Notacion* nott, int color, Tipopieza* tpieza){
#define NOTACION_SPACE 's'
*/

char* notacion_resolver_mov( Notacion* nott, Movida* mov, char* def ){
static char* notacion_resolver_mov( Notacion* nott, Movida* mov, char* def ){
if( !def ) return NULL;
if( mov->tmov > 0 ){
char* tmov = notacion_resolver_tmov( nott, mov->tmov );
Expand Down

0 comments on commit 8ede59a

Please sign in to comment.