X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/82568fc97fa528e92f2de5e97717b542b921ccf3..HEAD:/src/engine/texture.gob
diff --git a/src/engine/texture.gob b/src/engine/texture.gob
index 981c898..cc6b271 100644
--- a/src/engine/texture.gob
+++ b/src/engine/texture.gob
@@ -1,23 +1,27 @@
%alltop{
/*
- * upkg: tool for manipulating Unreal Tournament packages.
- * Copyright © 2009-2012, 2020 Nick Bowler
+ * upkg: tool for manipulating Unreal Tournament packages.
+ * Copyright © 2009-2012, 2020, 2022 Nick Bowler
*
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*/
%}
+%ctop{
+#include
+%}
+
%{
#include
#include
@@ -25,8 +29,8 @@
#include
#include
#include
-#include "pack.h"
-#include "pcx.h"
+#include
+#include
%}
%h{
@@ -36,7 +40,7 @@ struct engine_texture_data {
unsigned long width, height;
unsigned long datalen;
- unsigned char data[];
+ unsigned char data[FLEXIBLE_ARRAY_MEMBER];
};
%}