Changeset 1e121f4 for _old/app/src/gue


Ignore:
Timestamp:
10/26/10 10:57:54 (14 years ago)
Author:
Adam Kędziora <s301614@…>
Branches:
master
Children:
a6e708f
Parents:
f712e16
git-author:
Adam Kędziora <s301614@…> (10/26/10 10:57:54)
git-committer:
Adam Kędziora <s301614@…> (10/26/10 10:57:54)
Message:

Replacing old implementation with working implementation

Location:
_old/app/src/gue
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _old/app/src/gue/Makefile

    r57728c1 r1e121f4  
    1 PAR=-Wno-deprecated -O3 -fpermissive -m32 -static 
    2 PAR2=-c -Wno-deprecated -O3 -fpermissive -m32 
     1PAR=-Wno-deprecated -O2 -fpermissive -static 
     2PAR2=-c -Wno-deprecated -O2 -fpermissive 
    33LIB_PATH=../lib 
    44COMMON_PATH=../common 
     
    66 
    77 
    8 gue: main.cc guess.o $(LIB_PATH)/auttools.o $(LIB_PATH)/word.o \ 
    9       cmdline.c common_guess.o common.o 
     8gue: main.cc guess.o auttools.o word.o cmdline.c common_guess.o common.o 
    109        g++ $(PAR) main.cc guess.o \ 
    1110        $(LIB_PATH)/auttools.o $(LIB_PATH)/word.o cmdline.c common.o common_guess.o \ 
     
    1817        g++ $(PAR2) common_guess.cc 
    1918 
    20 common.o: $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \ 
    21          $(COMMON_PATH)/common.h 
     19common.o: $(COMMON_PATH)/cmdline_common.ggo cmdline_common 
    2220        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc 
    2321 
     
    4139        cp gue ${UTT_BIN_DIR} 
    4240endif 
     41 
     42include $(LIB_PATH)/lib.mk 
     43include $(COMMON_PATH)/common.mk 
  • _old/app/src/gue/guess.cc

    r57728c1 r1e121f4  
    22#include "guess.h" 
    33 
    4 #include <string.h> 
     4#include <cstring> 
    55#include <iostream> 
    6 #include <stdlib.h> 
    7 #include <assert.h> 
    8 #include <time.h> 
     6#include <cstdlib> 
     7#include <cassert> 
     8#include <ctime> 
    99 
    1010#define DICT 1 
     
    1818#define PREF_SIGN '_' 
    1919 
    20  
    2120using namespace std; 
    22  
    2321 
    2422Guess::Guess(const char* suf_file) 
Note: See TracChangeset for help on using the changeset viewer.