q3asm: max_line_length

Locked
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

q3asm: max_line_length

Post by Eraser »

q3asm gives me this error for g_client.c:
g_client:7484 MAX_LINE_LENGTH

It just fills up the screen with this error starting at line number 7484 and each error for a next line. It just keeps on going, had to CTRL-C it. Anyone got any idea what's wrong with the file? Line 7484 obviously doesn't exist in the c code file, maybe in an obj file or something, but that's binary shizzle.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: q3asm: max_line_length

Post by ^misantropia^ »

Try the ioquake3 q3asm, it contains a couple of bug fixes.

EDIT: Make that a lot of bug fixes.

Code: Select all

$ # number of changed lines compared to stock q3asm
$ git diff -w -U0 5406eab q3asm.c | wc -l
1185
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: q3asm: max_line_length

Post by Eraser »

I was going to try your hint of using the ioQuake q3asm after I had finished something up, but now the error has magically disappeared :shrug:
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: q3asm: max_line_length

Post by Eraser »

Happened to me once more. This time I fixed it by putting a blank line at the end of the file it was complaining about it. I'm not sure if that is actually what fixed it, but it worked.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: q3asm: max_line_length

Post by ^misantropia^ »

Next time save the file. If it happens with ioq3asm too, it's a bug that should be fixed.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: q3asm: max_line_length

Post by Eraser »

Haven't tried with ioq3asm. I'll see if I can reproduce it with q3asm and see if it happens with ioq3asm as well...
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: q3asm: max_line_length

Post by Eraser »

Here's a version of g_target.c that causes the error.
Haven't tried it with the ioQuake version of q3asm. Adding a blank line to the end of the file fixes the problem.
Locked