Changeset 7584


Ignore:
Timestamp:
2004-06-10T17:07:43+12:00 (20 years ago)
Author:
kjdon
Message:

have to declare vars before calling functions!!

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/packages/mg/src/text/ivf.pass2.c

    r7582 r7584  
    2424/*
    2525   $Log$
     26   Revision 1.3  2004/06/10 05:07:43  kjdon
     27   have to declare vars before calling functions!!
     28
    2629   Revision 1.2  2004/06/10 03:02:05  kjdon
    2730   fixed the bug that was causing it not to be able to create a second index using jni - basically had to reset all the static variables at the start of each pass. the tricky thing to find was the static variables in occur_to_lexical in ivf.pass2
     
    406409init_ivf_2 (char *file_name)
    407410{
    408   ResetStaticI2Vars();
    409   occur_to_lexical(0, 1); /* clear the static vars in here*/
    410411  u_char prev[MAXSTEMLEN + 1];
    411412  int i;
     
    414415  double logN = 0.0;
    415416
    416  
     417  ResetStaticI2Vars(); /* clear the global statics */
     418  occur_to_lexical(0, 1); /* clear the statics in here*/
     419
    417420  if (open_files (file_name) == COMPERROR)
    418421    return COMPERROR;
  • trunk/gsdl3/src/packages/mg/src/text/ivf.pass2.c

    r7582 r7584  
    2424/*
    2525   $Log$
     26   Revision 1.3  2004/06/10 05:07:43  kjdon
     27   have to declare vars before calling functions!!
     28
    2629   Revision 1.2  2004/06/10 03:02:05  kjdon
    2730   fixed the bug that was causing it not to be able to create a second index using jni - basically had to reset all the static variables at the start of each pass. the tricky thing to find was the static variables in occur_to_lexical in ivf.pass2
     
    406409init_ivf_2 (char *file_name)
    407410{
    408   ResetStaticI2Vars();
    409   occur_to_lexical(0, 1); /* clear the static vars in here*/
    410411  u_char prev[MAXSTEMLEN + 1];
    411412  int i;
     
    414415  double logN = 0.0;
    415416
    416  
     417  ResetStaticI2Vars(); /* clear the global statics */
     418  occur_to_lexical(0, 1); /* clear the statics in here*/
     419
    417420  if (open_files (file_name) == COMPERROR)
    418421    return COMPERROR;
  • trunk/indexers/mg/src/text/ivf.pass2.c

    r7582 r7584  
    2424/*
    2525   $Log$
     26   Revision 1.3  2004/06/10 05:07:43  kjdon
     27   have to declare vars before calling functions!!
     28
    2629   Revision 1.2  2004/06/10 03:02:05  kjdon
    2730   fixed the bug that was causing it not to be able to create a second index using jni - basically had to reset all the static variables at the start of each pass. the tricky thing to find was the static variables in occur_to_lexical in ivf.pass2
     
    406409init_ivf_2 (char *file_name)
    407410{
    408   ResetStaticI2Vars();
    409   occur_to_lexical(0, 1); /* clear the static vars in here*/
    410411  u_char prev[MAXSTEMLEN + 1];
    411412  int i;
     
    414415  double logN = 0.0;
    415416
    416  
     417  ResetStaticI2Vars(); /* clear the global statics */
     418  occur_to_lexical(0, 1); /* clear the statics in here*/
     419
    417420  if (open_files (file_name) == COMPERROR)
    418421    return COMPERROR;
Note: See TracChangeset for help on using the changeset viewer.