Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: native_client_sdk/src/examples/dlopen/eightball.cc

Issue 9234043: Support GLBIC example. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #include <stdlib.h>
2 #include <stdio.h>
3
4 #include "eightball.h"
5
6 const char *Magic8Ball(void) {
Brad Chen 2012/01/31 22:29:54 I'm so happy you dropped the __attribute__ stuff.
noelallen1 2012/02/01 17:46:10 Windows bots are passing, but we don't have all OS
7 const int NSIDES = 8;
8 const char* answer[NSIDES] = {
9 "YES",
10 "NO",
11 "MAYBE",
12 "MAYBE NOT",
13 "DEFINITELY",
14 "ASK ME TOMORROW",
15 "PARTLY CLOUDY",
16 "42",
17 };
18 return answer[rand() % NSIDES];
19 }
20
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698