Lines Matching refs:psz

64 static const char *leftStrip(const char *psz)
66 while (isspace(*psz))
67 psz++;
68 return psz;
72 static char *leftStrip(char *psz)
74 while (isspace(*psz))
75 psz++;
76 return psz;
117 char *psz = leftStrip(szLine);
118 if (*psz == ';')
121 char *pszComment = strchr(psz, ';');
125 unsigned cch = (unsigned)strlen(psz);
126 while (cch > 0 && (isspace(psz[cch - 1]) || psz[cch - 1] == '\r' || psz[cch - 1] == '\n'))
127 psz[--cch] = '\0';
135 size_t cchWord0 = wordLength(psz);
138 if (WORD_CMP(psz, cchWord0, "EXPORTS"))
143 psz = leftStrip(psz + sizeof("EXPORTS") - 1);
144 if (!*psz)
149 else if ( WORD_CMP(psz, cchWord0, "NAME")
150 || WORD_CMP(psz, cchWord0, "LIBRARY")
151 || WORD_CMP(psz, cchWord0, "DESCRIPTION")
152 || WORD_CMP(psz, cchWord0, "STACKSIZE")
153 || WORD_CMP(psz, cchWord0, "SECTIONS")
154 || WORD_CMP(psz, cchWord0, "SEGMENTS")
155 || WORD_CMP(psz, cchWord0, "VERSION")
167 const char *pchName = psz;
168 unsigned cchName = wordLength(psz);
170 psz = leftStrip(psz + cchName);
171 if (*psz == '=')
173 psz = leftStrip(psz + 1);
174 psz = leftStrip(psz + wordLength(psz));
179 if (*psz == '@')
181 psz++;
182 if (!isdigit(*psz))
187 uOrdinal = *psz++ - '0';
188 while (isdigit(*psz))
191 uOrdinal += *psz++ - '0';
193 psz = leftStrip(psz);
194 cch = wordLength(psz);
195 if (WORD_CMP(psz, cch, "NONAME"))
199 psz = leftStrip(psz + cch);
207 while (*psz)
209 cch = wordLength(psz);
210 if (WORD_CMP(psz, cch, "DATA"))
219 else if (!WORD_CMP(psz, cch, "PRIVATE"))
225 psz = leftStrip(psz + cch);
811 const char *psz = argv[i];
812 if (*psz == '-')
814 if (!strcmp(psz, "--output") || !strcmp(psz, "-o"))
818 fprintf(stderr, "syntax error: File name expected after '%s'.\n", psz);
823 else if (!strcmp(psz, "--library") || !strcmp(psz, "-l"))
827 fprintf(stderr, "syntax error: Library name expected after '%s'.\n", psz);
832 else if (!strcmp(psz, "--explicit-load-function"))
834 else if (!strcmp(psz, "--no-explicit-load-function"))
838 else if ( !strcmp(psz, "--help")
839 || !strcmp(psz, "-help")
840 || !strcmp(psz, "-h")
841 || !strcmp(psz, "-?") )
843 else if ( !strcmp(psz, "--version")
844 || !strcmp(psz, "-V"))
851 fprintf(stderr, "syntax error: Unknown option '%s'.\n", psz);