Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/mty-makai/mty.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 217 by notanpe, Sun Mar 1 15:01:43 2009 UTC revision 218 by notanpe, Wed Apr 22 13:31:47 2009 UTC
# Line 77  int    umeLen; Line 77  int    umeLen;
77    
78  FILE    *nfp;   /* 全数 */  FILE    *nfp;   /* 全数 */
79  FILE    *tfp;   /* ↑以外の特殊検索 */  FILE    *tfp;   /* ↑以外の特殊検索 */
80    #ifdef CHIN
81    FILE    *cfp;   /* ち */
82    #endif /* CHIN */
83  #ifdef REON  #ifdef REON
84  FILE    *rfp;   /* 正規表現 */  FILE    *rfp;   /* 正規表現 */
85  #endif /* REON */  #endif /* REON */
# Line 127  struct DT *dtidx[0x100 + 1]; Line 130  struct DT *dtidx[0x100 + 1];
130  #endif  #endif
131    
132  /* MAKAI start */  /* MAKAI start */
133    #ifdef CHIN
134    int     special = 1;    /* ウヒヒヒ */
135    #else /* CHIN */
136  int     special = 0;  int     special = 0;
137    #endif /* CHIN */
138  #define ST_ALLN 1      /* 全数 */  #define ST_ALLN 1      /* 全数 */
139  #define ST_NIKO 1<<0x1 /* 二構 */  #define ST_NIKO 1<<0x1 /* 二構 */
140  #define ST_BUOO 1<<0x8 /* ぶお */  #define ST_BUOO 1<<0x8 /* ぶお */
# Line 1429  checkSpecial( trip, kind ) Line 1436  checkSpecial( trip, kind )
1436  char    *trip;  char    *trip;
1437  unsigned char   *kind;  unsigned char   *kind;
1438  {  {
1439    #ifdef CHIN
1440      if ( trip[0] == 'C' && trip[1] == 'h' && trip[2] == 'i' &&
1441           trip[3] == 'n' && trip[4] == 'k' && trip[5] == 'o' ) {
1442       strcpy( kind, "ち" );
1443       return( cfp );
1444      }
1445    #endif /* CHIN */
1446    
1447    if ( special & ST_BUOO ) {    if ( special & ST_BUOO ) {
1448     /* ぶお [A-Za-z]aoo[A-Za-z]uoo$ */     /* ぶお [A-Za-z]aoo[A-Za-z]uoo$ */
1449     if ( trip[3] == 'a' && trip[4] == 'o' && trip[5] == 'o' &&     if ( trip[3] == 'a' && trip[4] == 'o' && trip[5] == 'o' &&
# Line 1653  main(int argc, char *argv[]) Line 1668  main(int argc, char *argv[])
1668  #ifdef REON  #ifdef REON
1669    regExpStr[0] = '\0';    regExpStr[0] = '\0';
1670  #endif /* REON */  #endif /* REON */
1671      fprintf(stderr, "魔キー空間バージョンにつき、シロウトにはおすすめできない。\n");
1672  /* MAKAI end */  /* MAKAI end */
1673    
1674    if (!cpuid_issupported())    if (!cpuid_issupported())
# Line 1886  main(int argc, char *argv[]) Line 1902  main(int argc, char *argv[])
1902     return errno;     return errno;
1903    }    }
1904    setvbuf( nfp, NULL, _IONBF, BUFSIZ );    setvbuf( nfp, NULL, _IONBF, BUFSIZ );
1905    #ifdef CHIN
1906      if ( (cfp = fopen("logchi.txt", "at")) == NULL ) {
1907       perror("logchi.txt");
1908       return errno;
1909      }
1910      setvbuf( cfp, NULL, _IONBF, BUFSIZ );
1911    #endif /* CHIN */
1912  #ifdef REON  #ifdef REON
1913    if ( (rfp = fopen("logreg.txt", "at")) == NULL ) {    if ( (rfp = fopen("logreg.txt", "at")) == NULL ) {
1914     perror("logreg.txt");     perror("logreg.txt");

Legend:
Removed from v.217  
changed lines
  Added in v.218

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26