Lines Matching refs:inp

63 	int	inp;	/* last input character read			*/  member
72 #define SCinit(sc,ds) ((sc)->inp = (sc)->error = -1, (sc)->f = f, \
76 #define SCend(sc,ds) (inp = (sc)->inp, f = (sc)->f, \
98 { sc->inp = -1;
113 { sc->inp = -1;
119 return (sc->inp = (int)(*sc->d++));
308 reg int inp, shift, base, width; local
361 n_assign = n_input = 0; inp = -1;
381 { if(SFgetc(f,inp) < 0 || inp == fmt)
383 else if(!isspace(inp))
384 { SFungetc(f,inp);
405 if(SFgetc(f,inp) != fmt)
406 { if(inp < 0)
408 SFungetc(f,inp);
417 do SFgetc(f,inp); while(isspace(inp)); /* skip starting blanks */
418 SFungetc(f,inp);
777 SFgetc(f,inp);
779 { do { SFgetc(f,inp); }
780 while(isspace(inp)); /* skip starting blanks */
782 if(inp < 0)
786 { SFungetc(f,inp); SCinit(&scd,1);
791 { if(inp >= 0)
792 SFungetc(f, inp);
811 { if(inp == '-')
812 { SFungetc(f,inp);
819 if(inp == '-' || inp == '+')
820 { if(inp == '-')
822 while(--width > 0 && SFgetc(f,inp) >= 0)
823 if(!isspace(inp))
826 if(inp < 0)
833 else if(fmt == 'i' && inp == '0') /* self-described data */
836 { if(SFgetc(f,inp) >= 0)
837 { if(inp == 'x' || inp == 'X')
839 SFungetc(f,inp);
841 inp = '0';
850 if(sp[inp] >= 16)
851 { SFungetc(f,inp);
854 if(inp == '0' && --width > 0)
856 if(SFgetc(f,inp) >= 0 &&
857 (inp == 'x' || inp == 'X') && --width > 0)
858 SFgetc(f,inp);
860 if(inp >= 0 && sp[inp] < 16)
867 if (inp >= '0' && inp <= '9')
868 { argv.lu = TEN(argv.lu) + (inp-'0');
871 else if(inp == thousand)
877 if((width -= 1) <= 0 || SFgetc(f,inp) < 0)
881 { SFungetc(f,inp);
885 if(fmt == 'i' && inp == '#' && !(flags&SFFMT_ALTER) )
892 SFgetc(f,inp) >= 0 && sp[inp] < base)
899 if(base < 2 || base > SF_RADIX || sp[inp] >= base)
900 { SFungetc(f,inp);
913 { argv.lu = (argv.lu << shift) + sp[inp];
915 SFgetc(f,inp) >= 0 && sp[inp] < base);
919 { argv.lu = (argv.lu * base) + sp[inp];
921 SFgetc(f,inp) >= 0 && sp[inp] < base);
985 { SFungetc(f,inp);
992 { SFungetc(f,inp); SCinit(&scd,0); SFMBCLR(&mbs);
1006 { if(isspace(inp))
1009 *argv.s++ = inp;
1010 } while(--width > 0 && SFgetc(f,inp) >= 0);
1015 *argv.s++ = inp;
1016 } while(--width > 0 && SFgetc(f,inp) >= 0);
1020 { if(!acc.ok[inp])
1024 { SFungetc(f,inp);
1029 *argv.s++ = inp;
1030 } while(--width > 0 && SFgetc(f,inp) >= 0);
1047 if(width > 0 && inp >= 0)
1048 SFungetc(f,inp);
1093 if(n_assign == 0 && inp < 0)