Lines Matching defs:EQ
29 #define EQ(a, b) ((strcmp(a, b) == 0))
52 if (EQ(argv[0], "[")) {
53 if (!EQ(argv[--ac], "]"))
87 if (EQ(p2, "-o"))
89 if (EQ(p2, "]"))
104 if ((p2 != 0) && EQ(p2, "-a"))
113 if (EQ(nxtarg(0), "!"))
128 if (EQ(a, "(")) {
130 if (!EQ(nxtarg(0), ")")) synbad(") expected", "");
135 if ((p2 == 0) || (!EQ(p2, "=") && !EQ(p2, "!="))) {
136 if (EQ(a, "-r"))
139 if (EQ(a, "-w"))
142 if (EQ(a, "-x"))
145 if (EQ(a, "-d"))
148 if (EQ(a, "-c"))
151 if (EQ(a, "-b"))
154 if (EQ(a, "-f")) {
161 if (EQ(a, "-h"))
164 if (EQ(a, "-u"))
167 if (EQ(a, "-g"))
170 if (EQ(a, "-k"))
173 if (EQ(a, "-p"))
180 if (EQ(a, "-s"))
183 if (EQ(a, "-t"))
186 else if (EQ((a = nxtarg(0)), "-a") || EQ(a, "-o")) {
192 if (EQ(a, "-n"))
193 return (!EQ(nxtarg(0), ""));
194 if (EQ(a, "-z"))
195 return (EQ(nxtarg(0), ""));
200 return (!EQ(a, ""));
201 if (EQ(p2, "-a") || EQ(p2, "-o")) {
203 return (!EQ(a, ""));
205 if (EQ(p2, "="))
206 return (EQ(nxtarg(0), a));
208 if (EQ(p2, "!="))
209 return (!EQ(nxtarg(0), a));
213 if (EQ(p2, "-eq"))
215 if (EQ(p2, "-ne"))
217 if (EQ(p2, "-gt"))
219 if (EQ(p2, "-lt"))
221 if (EQ(p2, "-ge"))
223 if (EQ(p2, "-le"))