text
stringlengths 1
330k
|
|---|
SubjectRe: asm/unistd.h
|
On Thu, Apr 05, 2001 at 09:06:20AM -0400, Bart Trojanowski wrote:
|
> So you ask: "why not just use a { ... } to define a macro". I don't
|
> remember the case for this but I know it's there. It has to do with a
|
> complicated if/else structure where a simple {} breaks.
|
It's for eating the semi-colon after the macro invocation.
|
[unhandled content-type:application/pgp-signature]
|
\ /
|
©2003-2011 Jasper Spaans
|
Was anybody around on RE boards during 2000-2003?
|
#1Vegeta1000Posted 10/4/2012 1:40:32 PM
|
I remember there were lots of complaints about the series getting stale and needing to move into a new direction so why are fans complaining about the new direction the series has taken?
|
#2SamA7XPosted 10/4/2012 1:43:57 PM
|
Because some people are born in this world just to complain.
|
(the "I" in "VII" is a capital "i" not a undercase "L")
|
#3Skurv7Posted 10/4/2012 1:47:27 PM
|
I made a topic about this yesterday, and I'll tell you what I said then. The people complaining are the people who would still be complaining if it was the same and Wesker was the main antagonist with pre-rendered backgrounds...all i can say is don't ask for something you don't want ;)
|
If you know wut i mean.
|
#4orphanjohnPosted 10/4/2012 1:48:06 PM
|
2 huge complaints I remember from I believe RE4 and 5 was that people wanted zombies back, and new controls that don't handle like a tank. Well they get that and still cry about it. It's called being spoiled. No matter what comes along it will never be good enough, and they just cry for something new and better all over again.
|
PSN: orphanjohn/OrphanFromdabloc
|
Currently playing: Dark Souls, UMvC3, Transformers: FoC, NCAA 13, Resident Evil 6
|
#5JStewVGMPosted 10/4/2012 1:50:17 PM
|
I don't even read those crap comments. Cry moar is all I say
|
#6Orochi_LedePosted 10/4/2012 1:50:51 PM
|
SamA7X posted...
|
Because some people are born in this world just to complain.
|
#7Duffy12323Posted 10/4/2012 1:54:58 PM
|
Well they did away with tense atmospheric environments. There's no suspense anymore, just running and shooting with no exploration at all.
|
#8Vegeta1000(Topic Creator)Posted 10/4/2012 2:18:41 PM
|
You guys may think that the old-school RE games were constantly praised, but this was not the case. It got plenty of hate as well:
|
- Terrible camera angles (fixed with RECV but came back with RE0).
|
- Tank controls
|
- Poor aiming
|
- Backtracking (worst examples was RECV and RE0)
|
- Fetch puzzles
|
- Terrible save system
|
- Poor voice acting (subjective, but the original RE1 was known to have terrible VA)
|
Most of those problems was fixed with RE4, but then fans complained that the series was no longer survival horror and just a TPS. I disagree. Even though RE4 had more action it still had tense moments, creepy atmosphere, creepy looking enemies, fetch puzzles, and backtracking. RE5 I'd admit, wasn't much like the old ones as far as gameplay goes. It's like it's a lose-lose situation for Capcom because fans are going to complain either way.
|
#9edward18Posted 10/4/2012 2:22:41 PM
|
and as I said I NEVER complained
|
Before you die you see the Tails Doll---Backdrop Observer of the Metroid: Other M board
|
Apparently Edward: Wise Old Sage of Korodai
|
#10Vegeta1000(Topic Creator)Posted 10/4/2012 2:24:50 PM
|
and as I said I NEVER complained
|
Well, you're in the minority.
|
Take the 2-minute tour ×
|
When I put images on my blog and they get included in social sites like Google plus it seems Google just grabs the first image it finds to include in posts. However I want it to include a specific image on the page. Is there a specific attribute to set for this on the image tags?
|
share|improve this question
|
add comment
|
1 Answer
|
up vote 0 down vote accepted
|
First, make sure you set a "Featured Image" for your post. You don't even need to include it in the body of your post, just set the featured image via the "Add Media" button.
|
Then you can add the og:image meta property to the single post header to have other sites pick up this image automatically.
|
The easiest way to do this is to install an SEO plugin like WordPress SEO by Yoast, which will automatically create the "og:image" property along with a few others targeted at other social networks.
|
share|improve this answer
|
add comment
|
Your Answer
|
Take the 2-minute tour ×
|
I'm trying to extract specific hard coded variables from C source code. My remaining problem is that I'd like to parse array initialisation, for example:
|
#define SOMEVAR { {T_X, {1, 2}}, {T_Y, {3, 4}} }
|
It's enough to parse this example into "{T_X, {1, 2}}" and "{T_Y, {3, 4}}", since it's then possible to recurse to get the full structure. However, it needs to be sufficiently general so as to be able to parse any user defined types.
|
Even better would be a list of regular expressions that can be used to extra values from general C code constructs like #define, enums and global variables.
|
The C code is provided to me, so I have no control over it. I'd rather not write a function that parses it a character at a time. However, it'd be OK to have a sequence of regular expressions.
|
This is not a problem of getting files into MATLAB or basic regular expressions. I'm after a specific regular expression that preserves groupings by brackets.
|
EDIT: Looks like regular expressions don't do recursion or arbitrarily deep matches. According to here and here.
|
share|improve this question
|
add comment
|
7 Answers
|
up vote 0 down vote accepted
|
EDIT: Now that the question has been updated, it appears that my previous answer missed the point. I don't know if you've already searched the other regular-expression-related questions on Stack Overflow. On the chance that you haven't, I came across two that may help give you guidance for your problem (which appears to be a problem, at least partially, of trying to match and keep track of opening and closing curly braces): this one and this one. Good luck!
|
share|improve this answer
|
It's easy enough to write an expression that matches a specific case, but I'm after something general that preserves groupings while separating the list. Thanks anyway. – Nzbuu Feb 13 '09 at 15:36
|
Ah, I understand better now from your new edit of the question. The problem appears quite a bit more difficult than the example you gave. Unfortunately, no immediate solution springs to mind. – gnovice Feb 13 '09 at 15:50
|
add comment
|
Have you looked at the following site which provides extensive tutorials and examples on regular expressions :-
|
share|improve this answer
|
add comment
|
The formal language that defines brace matching is not a regular language. Therefore, you cannot use a regular expression to solve your problem.
|
The problem is that you need some way to count the number of opening braces you have already encountered. Some regular expression engines support extended features, such as peeking, which could be used to solve your problem, but these can be tough to deal with. You might be better off writing a simple parser for this task.
|
share|improve this answer
|
add comment
|
Maybe vim's syntax file would help in this matter. I'm not sure whether it has those elements you seek (I don't do C), but it's got a whole lot of elements, so it's definitely a starting point. Download vim (www.vim.org), and in vim/syntax/c.vim look around a little.
|
share|improve this answer
|
add comment
|
I don't think regexps will work on arbitrary C code. Clang allows you to build a syntax tree from C code and use it programatically.
|
That could be readily used for globals, but #defines are handled by the preprocessor so I'm not sure how they would work.
|
cristi:tmp diciu$ cat test.c
|
#define t 1
|
int m=5;
|
int fun(char * y)
|
float g;
|
return t;
|
int main()
|
int g=7;
|
return t;
|
cristi:tmp diciu$ ~/Downloads/checker-137/clang -ast-dump test.c
|
(CompoundStmt 0xc01ec0 <test.c:6:1, line:10:1>
|
(DeclStmt 0xc01e70 <line:7:2>
|
0xc01e30 "float g"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.