* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
-# include <stdlib.h>
- #include <string.h>
-# include <limits.h>
- # include "gmqcc.h"
-
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+#include "gmqcc.h"
int main(int argc, char **argv) {
argc--;
argv++;
return error(ERROR_COMPILER, "Source file: %s not found\n", ifile);
} else {
struct lex_file *lex = lex_open(fp);
+ lex->name = util_strdup(ifile);
if (!lex) {
fclose(fp);
return 0;
}
parse_tree(lex);
+ mem_d(lex->name);
lex_close (lex);
}