[ create a new paste ] login | about

Link: http://codepad.org/HBshaN9L    [ raw code | output | fork ]

C, pasted on Jul 10:
1
2
3
4
5
6
7
8
9
10
function geoip_country_code() { return 'GB'; }
function geoip_country_name() { return 'United Kingdom'; }
function geoip_city()         { return 'London'; }
function geoip_region()       { return 'H9'; }
function geoip_region_name()  { return 'London, City of'; }
function geoip_latitude()     { return '51.5142'; }
function geoip_longitude()    { return '-0.0931'; }
function geoip_postal_code()  { return ''; }
function geoip_area_code()    { return ''; }
function geoip_metro_code()   { return ''; }


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Line 1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_country_code'
Line 39: warning: multi-character character constant
Line 2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_country_name'
Line 39: warning: character constant too long for its type
Line 3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_city'
Line 39: warning: character constant too long for its type
Line 4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_region'
Line 39: warning: multi-character character constant
Line 5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_region_name'
Line 39: warning: character constant too long for its type
Line 6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_latitude'
Line 39: warning: character constant too long for its type
Line 7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_longitude'
Line 39: warning: character constant too long for its type
Line 8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_postal_code'
Line 39: error: empty character constant
Line 9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_area_code'
Line 39: error: empty character constant
Line 10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_metro_code'
Line 39: error: empty character constant


Create a new paste based on this one


Comments: