Homesource Forums

Homeworld Source Editing Talk
It is currently Mon Apr 24, 2017 9:51 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: R437 && Windows
PostPosted: Fri Dec 22, 2006 10:12 am 
Offline
coder

Joined: Tue Nov 07, 2006 4:40 am
Posts: 236
Hi.

I made some changes to avi.c and Animatic.c in R437, and I exposed a lot of code that was previously hidden by #if 0. Hopefully I've not broken the win32 build but I cannot guarantee it. :(
If it breaks, then post here if you need me to look at it.

Aunxx.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 22, 2006 8:34 pm 
Offline
coder
User avatar

Joined: Wed Oct 04, 2006 8:13 pm
Posts: 94
Location: UTC -0500
thanks for the message. rev442 is fixed.

There's an error that I didn't properly fix (not sure why it happens, and cant spend more time on it)

nisheader* animLoadNISScript(char* scriptname)
// dbgMessage("animLoadNISScript: Entering");

I commented the dbgMessage line, to prevent this:
(i should've just ifndef'ed dbgMessage. my bad.)

note that the errors start and stop within the function.

Quote:
j:\src\hwexp\src\Game\Animatic.c(554) : error C2143: syntax error : missing ';' before 'type'
j:\src\hwexp\src\Game\Animatic.c(555) : error C2143: syntax error : missing ';' before 'type'
j:\src\hwexp\src\Game\Animatic.c(556) : error C2143: syntax error : missing ';' before 'type'
j:\src\hwexp\src\Game\Animatic.c(557) : error C2275: 'nisheader' : illegal use of this type as an expression
j:\src\hwexp\src\Game\NIS.h(292) : see declaration of 'nisheader'
j:\src\hwexp\src\Game\Animatic.c(557) : error C2065: 'newHeader' : undeclared identifier
j:\src\hwexp\src\Game\Animatic.c(561) : warning C4047: '=' : 'int' differs in levels of indirection from 'void *'
j:\src\hwexp\src\Game\Animatic.c(562) : warning C4022: 'memset' : pointer mismatch for actual parameter 1
j:\src\hwexp\src\Game\Animatic.c(564) : error C2223: left of '->iLookyObject' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(565) : error C2223: left of '->length' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(570) : error C2065: 'localisedPath' : undeclared identifier
j:\src\hwexp\src\Game\Animatic.c(570) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(573) : error C2065: 'pString' : undeclared identifier
j:\src\hwexp\src\Game\Animatic.c(573) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(576) : error C2100: illegal indirection
j:\src\hwexp\src\Game\Animatic.c(581) : error C2065: 'string' : undeclared identifier
j:\src\hwexp\src\Game\Animatic.c(581) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(581) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(582) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(583) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(583) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(589) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(592) : warning C4047: '=' : 'nisheader *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(593) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
j:\src\hwexp\src\Game\Animatic.c(596) : error C2223: left of '->nEvents' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(597) : error C2223: left of '->nEvents' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(599) : error C2223: left of '->events' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(600) : error C2223: left of '->events' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(600) : error C2223: left of '->nEvents' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(600) : warning C4022: 'qsort' : pointer mismatch for actual parameter 1
j:\src\hwexp\src\Game\Animatic.c(600) : warning C4047: 'function' : 'size_t' differs in levels of indirection from 'int (__cdecl *)(const void *,const void *)'
j:\src\hwexp\src\Game\Animatic.c(600) : error C2198: 'qsort' : too few arguments for call through pointer-to-function
j:\src\hwexp\src\Game\Animatic.c(605) : error C2223: left of '->events' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(611) : error C2223: left of '->nEvents' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(612) : error C2223: left of '->events' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(618) : error C2223: left of '->nEvents' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(619) : error C2223: left of '->events' must point to struct/union
j:\src\hwexp\src\Game\Animatic.c(621) : warning C4047: 'return' : 'nisheader *' differs in levels of indirection from 'int'

_________________
http://againsttcpa.com/what-is-tcpa.html
http://google.com/search?q=c+programming+faq
http://research.att.com/~bs
acronyms.ch, neworder.box.sk


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 4:43 am 
Offline
coder
User avatar

Joined: Tue Dec 14, 2004 3:24 pm
Posts: 324
Location: UK (UTC+0)
Try r443. I think it's moaning about the fact you have an executable statement before the function variables are declared which isn't allowed in C. I've moved the dbgMessage after them and wrapped in an appropriate #if block.

_________________
MacHomeworld | HomeworldSDL.org


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 12:20 pm 
Offline
coder
User avatar

Joined: Wed Oct 04, 2006 8:13 pm
Posts: 94
Location: UTC -0500
yeah, r443 fixes that.

_________________
http://againsttcpa.com/what-is-tcpa.html
http://google.com/search?q=c+programming+faq
http://research.att.com/~bs
acronyms.ch, neworder.box.sk


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 3:51 pm 
Offline
coder

Joined: Tue Nov 07, 2006 4:40 am
Posts: 236
Sorry, sloppy coding whilst trying to work out where the program was when it was crashing. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group