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++));
310 reg int inp, shift, base, width; local
363 n_assign = n_input = 0; inp = -1;
383 { if(SFgetc(f,inp) < 0 || inp == fmt)
385 else if(!isspace(inp))
386 { SFungetc(f,inp);
407 if(SFgetc(f,inp) != fmt)
408 { if(inp < 0)
410 SFungetc(f,inp);
419 do SFgetc(f,inp); while(isspace(inp)); /* skip starting blanks */
420 SFungetc(f,inp);
780 SFgetc(f,inp);
782 { do { SFgetc(f,inp); }
783 while(isspace(inp)); /* skip starting blanks */
785 if(inp < 0)
789 { SFungetc(f,inp); SCinit(&scd,1);
794 { if(inp >= 0)
795 SFungetc(f, inp);
814 { if(inp == '-')
815 { SFungetc(f,inp);
822 if(inp == '-' || inp == '+')
823 { if(inp == '-')
825 while(--width > 0 && SFgetc(f,inp) >= 0)
826 if(!isspace(inp))
829 if(inp < 0)
836 else if(fmt == 'i' && inp == '0') /* self-described data */
839 { if(SFgetc(f,inp) >= 0)
840 { if(inp == 'x' || inp == 'X')
842 SFungetc(f,inp);
844 inp = '0';
853 if(sp[inp] >= 16)
854 { SFungetc(f,inp);
857 if(inp == '0' && --width > 0)
859 if(SFgetc(f,inp) >= 0 &&
860 (inp == 'x' || inp == 'X') && --width > 0)
861 SFgetc(f,inp);
863 if(inp >= 0 && sp[inp] < 16)
870 if (inp >= '0' && inp <= '9')
871 { argv.lu = TEN(argv.lu) + (inp-'0');
874 else if(inp == thousand)
880 if((width -= 1) <= 0 || SFgetc(f,inp) < 0)
884 { SFungetc(f,inp);
888 if(fmt == 'i' && inp == '#' && !(flags&SFFMT_ALTER) )
895 SFgetc(f,inp) >= 0 && sp[inp] < base)
902 if(base < 2 || base > SF_RADIX || sp[inp] >= base)
903 { SFungetc(f,inp);
916 { argv.lu = (argv.lu << shift) + sp[inp];
918 SFgetc(f,inp) >= 0 && sp[inp] < base);
922 { argv.lu = (argv.lu * base) + sp[inp];
924 SFgetc(f,inp) >= 0 && sp[inp] < base);
988 { SFungetc(f,inp);
995 { SFungetc(f,inp); SCinit(&scd,0); SFMBCLR(&mbs);
1009 { if(isspace(inp))
1012 *argv.s++ = inp;
1013 } while(--width > 0 && SFgetc(f,inp) >= 0);
1018 *argv.s++ = inp;
1019 } while(--width > 0 && SFgetc(f,inp) >= 0);
1023 { if(!acc.ok[inp])
1027 { SFungetc(f,inp);
1032 *argv.s++ = inp;
1033 } while(--width > 0 && SFgetc(f,inp) >= 0);
1050 if(width > 0 && inp >= 0)
1051 SFungetc(f,inp);
1096 if(n_assign == 0 && inp < 0)