{"payload":{"allShortcutsEnabled":false,"fileTree":{"Xcode-iOS/Demos/src":{"items":[{"name":"accelerometer.c","path":"Xcode-iOS/Demos/src/accelerometer.c","contentType":"file"},{"name":"common.c","path":"Xcode-iOS/Demos/src/common.c","contentType":"file"},{"name":"common.h","path":"Xcode-iOS/Demos/src/common.h","contentType":"file"},{"name":"fireworks.c","path":"Xcode-iOS/Demos/src/fireworks.c","contentType":"file"},{"name":"happy.c","path":"Xcode-iOS/Demos/src/happy.c","contentType":"file"},{"name":"keyboard.c","path":"Xcode-iOS/Demos/src/keyboard.c","contentType":"file"},{"name":"mixer.c","path":"Xcode-iOS/Demos/src/mixer.c","contentType":"file"},{"name":"rectangles.c","path":"Xcode-iOS/Demos/src/rectangles.c","contentType":"file"},{"name":"touch.c","path":"Xcode-iOS/Demos/src/touch.c","contentType":"file"}],"totalCount":9},"Xcode-iOS/Demos":{"items":[{"name":"Demos.xcodeproj","path":"Xcode-iOS/Demos/Demos.xcodeproj","contentType":"directory"},{"name":"data","path":"Xcode-iOS/Demos/data","contentType":"directory"},{"name":"src","path":"Xcode-iOS/Demos/src","contentType":"directory"},{"name":"Default.png","path":"Xcode-iOS/Demos/Default.png","contentType":"file"},{"name":"Icon.png","path":"Xcode-iOS/Demos/Icon.png","contentType":"file"},{"name":"Info.plist","path":"Xcode-iOS/Demos/Info.plist","contentType":"file"},{"name":"README","path":"Xcode-iOS/Demos/README","contentType":"file"},{"name":"iOS Launch Screen.storyboard","path":"Xcode-iOS/Demos/iOS Launch Screen.storyboard","contentType":"file"}],"totalCount":8},"Xcode-iOS":{"items":[{"name":"Demos","path":"Xcode-iOS/Demos","contentType":"directory"},{"name":"SDL","path":"Xcode-iOS/SDL","contentType":"directory"},{"name":"SDLtest","path":"Xcode-iOS/SDLtest","contentType":"directory"},{"name":"Template","path":"Xcode-iOS/Template","contentType":"directory"},{"name":"Test","path":"Xcode-iOS/Test","contentType":"directory"}],"totalCount":5},"":{"items":[{"name":"VisualC-WinRT","path":"VisualC-WinRT","contentType":"directory"},{"name":"VisualC","path":"VisualC","contentType":"directory"},{"name":"Xcode-iOS","path":"Xcode-iOS","contentType":"directory"},{"name":"Xcode","path":"Xcode","contentType":"directory"},{"name":"acinclude","path":"acinclude","contentType":"directory"},{"name":"android-project","path":"android-project","contentType":"directory"},{"name":"build-scripts","path":"build-scripts","contentType":"directory"},{"name":"cmake","path":"cmake","contentType":"directory"},{"name":"debian","path":"debian","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"include","path":"include","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"visualtest","path":"visualtest","contentType":"directory"},{"name":".hgignore","path":".hgignore","contentType":"file"},{"name":"Android.mk","path":"Android.mk","contentType":"file"},{"name":"BUGS.txt","path":"BUGS.txt","contentType":"file"},{"name":"CMakeLists.txt","path":"CMakeLists.txt","contentType":"file"},{"name":"COPYING.txt","path":"COPYING.txt","contentType":"file"},{"name":"CREDITS.txt","path":"CREDITS.txt","contentType":"file"},{"name":"INSTALL.txt","path":"INSTALL.txt","contentType":"file"},{"name":"Makefile.in","path":"Makefile.in","contentType":"file"},{"name":"Makefile.minimal","path":"Makefile.minimal","contentType":"file"},{"name":"Makefile.pandora","path":"Makefile.pandora","contentType":"file"},{"name":"Makefile.psp","path":"Makefile.psp","contentType":"file"},{"name":"Makefile.wiz","path":"Makefile.wiz","contentType":"file"},{"name":"README-SDL.txt","path":"README-SDL.txt","contentType":"file"},{"name":"README.txt","path":"README.txt","contentType":"file"},{"name":"SDL2.spec.in","path":"SDL2.spec.in","contentType":"file"},{"name":"TODO.txt","path":"TODO.txt","contentType":"file"},{"name":"VisualC.html","path":"VisualC.html","contentType":"file"},{"name":"WhatsNew.txt","path":"WhatsNew.txt","contentType":"file"},{"name":"autogen.sh","path":"autogen.sh","contentType":"file"},{"name":"cmake_uninstall.cmake.in","path":"cmake_uninstall.cmake.in","contentType":"file"},{"name":"configure","path":"configure","contentType":"file"},{"name":"configure.in","path":"configure.in","contentType":"file"},{"name":"sdl2-config.cmake.in","path":"sdl2-config.cmake.in","contentType":"file"},{"name":"sdl2-config.in","path":"sdl2-config.in","contentType":"file"},{"name":"sdl2.m4","path":"sdl2.m4","contentType":"file"},{"name":"sdl2.pc.in","path":"sdl2.pc.in","contentType":"file"}],"totalCount":40}},"fileTreeProcessingTime":18.780745000000003,"foldersToFetch":[],"repo":{"id":330008801,"defaultBranch":"main","name":"SDL","ownerLogin":"libsdl-org","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-01-15T19:55:54.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/77683370?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"00da0824f5a0a5ca2f8d08e4ab1d169477b973fe","listCacheKey":"v0:1709678518.0","canEdit":false,"refType":"tree","currentOid":"00da0824f5a0a5ca2f8d08e4ab1d169477b973fe"},"path":"Xcode-iOS/Demos/src/common.h","currentUser":null,"blob":{"rawLines":["/*"," * common.h"," * written by Holmes Futrell"," * use however you want"," */","","extern int randomInt(int min, int max);","extern float randomFloat(float min, float max);","extern void fatalError(const char *string);","extern double updateDeltaTime(void);"],"stylingDirectives":[[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":12,"cssClass":"pl-c"}],[{"start":0,"end":29,"cssClass":"pl-c"}],[{"start":0,"end":24,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-c"}],[],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":10,"cssClass":"pl-smi"},{"start":11,"end":20,"cssClass":"pl-en"},{"start":21,"end":24,"cssClass":"pl-smi"},{"start":25,"end":28,"cssClass":"pl-s1"},{"start":30,"end":33,"cssClass":"pl-smi"},{"start":34,"end":37,"cssClass":"pl-s1"}],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":12,"cssClass":"pl-smi"},{"start":13,"end":24,"cssClass":"pl-en"},{"start":25,"end":30,"cssClass":"pl-smi"},{"start":31,"end":34,"cssClass":"pl-s1"},{"start":36,"end":41,"cssClass":"pl-smi"},{"start":42,"end":45,"cssClass":"pl-s1"}],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":11,"cssClass":"pl-smi"},{"start":12,"end":22,"cssClass":"pl-en"},{"start":23,"end":28,"cssClass":"pl-k"},{"start":29,"end":33,"cssClass":"pl-smi"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":35,"end":41,"cssClass":"pl-s1"}],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":13,"cssClass":"pl-smi"},{"start":14,"end":29,"cssClass":"pl-en"},{"start":30,"end":34,"cssClass":"pl-smi"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/libsdl-org/SDL/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"common.h","displayUrl":"https://github.com/libsdl-org/SDL/blame/00da0824f5a0a5ca2f8d08e4ab1d169477b973fe/Xcode-iOS/Demos/src/common.h?raw=true","headerInfo":{"blobSize":"245 Bytes","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"6047508","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Flibsdl-org%2FSDL%2Fblame%2F00da0824f5a0a5ca2f8d08e4ab1d169477b973fe%2FXcode-iOS%2FDemos%2Fsrc%2Fcommon.h","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"10","truncatedSloc":"9"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"C","languageID":41,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/libsdl-org/SDL/blame/00da0824f5a0a5ca2f8d08e4ab1d169477b973fe/Xcode-iOS/Demos/src/common.h","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/libsdl-org/SDL/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/libsdl-org/SDL/raw/00da0824f5a0a5ca2f8d08e4ab1d169477b973fe/Xcode-iOS/Demos/src/common.h","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"randomInt","kind":"function","ident_start":87,"ident_end":96,"extent_start":87,"extent_end":114,"fully_qualified_name":"randomInt","ident_utf16":{"start":{"line_number":6,"utf16_col":11},"end":{"line_number":6,"utf16_col":20}},"extent_utf16":{"start":{"line_number":6,"utf16_col":11},"end":{"line_number":6,"utf16_col":38}}},{"name":"randomFloat","kind":"function","ident_start":129,"ident_end":140,"extent_start":129,"extent_end":162,"fully_qualified_name":"randomFloat","ident_utf16":{"start":{"line_number":7,"utf16_col":13},"end":{"line_number":7,"utf16_col":24}},"extent_utf16":{"start":{"line_number":7,"utf16_col":13},"end":{"line_number":7,"utf16_col":46}}},{"name":"fatalError","kind":"function","ident_start":176,"ident_end":186,"extent_start":176,"extent_end":206,"fully_qualified_name":"fatalError","ident_utf16":{"start":{"line_number":8,"utf16_col":12},"end":{"line_number":8,"utf16_col":22}},"extent_utf16":{"start":{"line_number":8,"utf16_col":12},"end":{"line_number":8,"utf16_col":42}}},{"name":"updateDeltaTime","kind":"function","ident_start":222,"ident_end":237,"extent_start":222,"extent_end":243,"fully_qualified_name":"updateDeltaTime","ident_utf16":{"start":{"line_number":9,"utf16_col":14},"end":{"line_number":9,"utf16_col":29}},"extent_utf16":{"start":{"line_number":9,"utf16_col":14},"end":{"line_number":9,"utf16_col":35}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"blame":{"ranges":{"1":{"start":1,"oldStart":1,"end":9,"oldEnd":12,"commitOid":"0e45984fa036fff1912c62fee3ed4f5481f3c324","reblamePath":null},"10":{"start":10,"oldStart":10,"end":10,"oldEnd":10,"commitOid":"b4e069e7f8561bb20e12d517d9ccd5223f8ea219","reblamePath":"Xcode-iOS/Demos/src/common.h"}},"commits":{"0e45984fa036fff1912c62fee3ed4f5481f3c324":{"oid":"0e45984fa036fff1912c62fee3ed4f5481f3c324","message":"Fixed crash if initialization of EGL failed but was tried again later.\n\nThe internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly\nuninitialized data structure if loading the library first failed. A later try to\nuse EGL then skipped initialization and assumed it was previously successful\nbecause the data structure now already existed. This led to at least one crash\nin the internal function SDL_EGL_ChooseConfig() because a NULL pointer was\ndereferenced to make a call to eglBindAPI().","shortMessageHtmlLink":"Fixed crash if initialization of EGL failed but was tried again later.","authorAvatarUrl":"https://avatars.githubusercontent.com/u/5358527?s=80&v=4","committerName":"Philipp Wiesemann","committerEmail":"philipp.wiesemann@arcor.de","committedDate":"2015-06-21T17:33:46.000+02:00","firstParentOid":null},"b4e069e7f8561bb20e12d517d9ccd5223f8ea219":{"oid":"b4e069e7f8561bb20e12d517d9ccd5223f8ea219","message":"Fixed bug 3517 - Compiler warnings with gcc -Wstrict-prototypes\n\nfelix\n\nCompiling even a simple SDL2 'hello world' program with gcc -Wstrict-prototypes (GCC 6.2.1) results in warnings like:\n\n/usr/include/SDL2/SDL_gamecontroller.h:143:1: attention : function declaration isn't a prototype [-Wstrict-prototypes]\n extern DECLSPEC int SDLCALL SDL_GameControllerNumMappings();\n ^~~~~~\n\nIt seems there is a missing 'void' between the parentheses.","shortMessageHtmlLink":"Fixed bug 3517 - Compiler warnings with gcc -Wstrict-prototypes","authorAvatarUrl":"https://avatars.githubusercontent.com/u/2100061?s=80&v=4","committerName":"Sam Lantinga","committerEmail":"slouken@libsdl.org","committedDate":"2016-12-26T02:12:21.000-08:00","firstParentOid":"9492492d5fc7aece2047756ff09ebf21c1af3c56"}},"ignoreRevs":{"path":".git-blame-ignore-revs","present":false,"timedOut":null}},"csrf_tokens":{"/libsdl-org/SDL/branches":{"post":"X8AHiypf55WYLSgBSKBD3vTXO8i10bXj9TTtFoV1edUr-8NCmLVRhNOrAPcP_sIaZMFc_hB0047XBEXEmtVI2g"},"/repos/preferences":{"post":"2F8T6ulGDH0GY9tzyOcZ4PXhywYcCV2WNxUJCbNn81jkon1FrKrXNBd0UcLyLQf9K_B-Hq3LHFx50boRRlchgQ"}}},"title":"Blaming SDL/Xcode-iOS/Demos/src/common.h at 00da0824f5a0a5ca2f8d08e4ab1d169477b973fe ยท libsdl-org/SDL"}