Changeset 1e121f4 for _old/app/src/tok.c


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/tok.c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _old/app/src/tok.c/Makefile

    r57728c1 r1e121f4  
    1 PAR=-Wno-deprecated -O3 
     1PAR=-Wno-deprecated -O3 -fpermissive 
    22PAR2=-c -Wno-deprecated -O3 
    33LIB_PATH=../lib 
     4COMMON_PATH=../common 
    45CMDLINE_FILE='"../tok.c/cmdline.h"' 
    56 
     
    1516        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_tok.cc 
    1617 
    17 common.o: $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \ 
    18         $(COMMON_PATH)/common.h 
     18common.o: cmdline_common 
    1919        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc 
    2020 
    21 cmdline.ggo: cmdline_tok.ggo ../common/cmdline_common.ggo 
    22         cat cmdline_tok.ggo ../common/cmdline_common.ggo > cmdline.ggo 
     21cmdline.ggo: cmdline_tok.ggo $(COMMON_PATH)/cmdline_common.ggo 
     22        cat cmdline_tok.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo 
    2323 
    2424cmdline.c cmdline.h: cmdline.ggo 
     
    3232 
    3333clean: clean.cmdline 
    34         rm *.o 
     34        rm *.o || true 
     35        rm tok || true 
    3536 
    3637clean.cmdline: 
    3738        rm cmdline.* 
     39 
     40include $(COMMON_PATH)/common.mk 
     41include $(LIB_PATH)/lib.mk 
  • _old/app/src/tok.c/cmdline_tok.ggo

    r57728c1 r1e121f4  
    22version "0.1" 
    33 
     4option "dictionary"             d       "Dictionary" string typestr="FILENAME" default="cor.bin" no 
    45 
  • _old/app/src/tok.c/common_tok.cc

    r57728c1 r1e121f4  
    1 #include <stdlib.h> 
    2 #include <string.h> 
     1#include <cstdlib> 
     2#include <cstring> 
    33#include "common_tok.h" 
     4 
     5using namespace std; 
    46 
    57char dictionary[255]; 
Note: See TracChangeset for help on using the changeset viewer.