Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
519 B

  1. // Copyright (c) 1993-1999 Microsoft Corporation
  2. #include "y2.h"
  3. #include <string.h>
  4. int
  5. chfind( int t, register char *s )
  6. {
  7. int i;
  8. if (s[0]==' ')t=0;
  9. TLOOP(i)
  10. {
  11. if(!strcmp(s,tokset[i].name))
  12. {
  13. return( i );
  14. }
  15. }
  16. NTLOOP(i)
  17. {
  18. if(!strcmp(s,nontrst[i].name))
  19. {
  20. return( i+NTBASE );
  21. }
  22. }
  23. /* cannot find name */
  24. if( t>1 )
  25. error( "%s should have been defined earlier", s );
  26. return( defin( t, s ) );
  27. }