pygame / src / constants.c

Diff from to

src/constants.c

 */
 #define NO_PYGAME_C_API
 #include "pygame.h"
-
+#include "scrap.h"
 
 
 /* macros used to create each constant */
 void initconstants(void)
 {
 	PyObject* module;
-        int SCRAP_TEXT;
-        int SCRAP_BMP;
 
 	module = Py_InitModule3("constants", builtins,
 	           "Constants defined by SDL and needed in Pygame.\n");
 	DEC_CONSTN(AUDIO_U16SYS);
 	DEC_CONSTN(AUDIO_S16SYS);
 
-/* 
- * NOTE: this is from scrap.h
- */
-#define T(A, B, C, D)	(int)((A<<24)|(B<<16)|(C<<8)|(D<<0))
-
-        SCRAP_TEXT= T('T','E','X','T');
-        SCRAP_BMP= T('B','M','P', ' ');
-
+#define SCRAP_TEXT PYGAME_SCRAP_TEXT
+#define SCRAP_BMP PYGAME_SCRAP_BMP
 
 	DEC_CONSTN(SCRAP_TEXT);
 	DEC_CONSTN(SCRAP_BMP);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.