Re: a few problems

From: Patrick Dughi (dughi@IMAXX.NET)
Date: 06/25/98


>
> oedit.c: In function 'oedit_save_to_disk':
> oedit.c:382: warning implicit direction of function 'GET_OBJ_INNATE'
> oedit.c: In function 'oedit_parse':
> oedit.c: Invalid lvalue in assignment
>
> here is the code.
>
> 380:   GET_OBJ_VAL(obj, 0),GET_OBJ_VAL(obj, 1),GET_OBJ_VAL(obj,2),
> 381:   GET_OBJ_VAL(obj, 3),GET_OBJ_WEIGHT(obj),GET_OBJ_COST(obj),
> 382:   GET_OBJ_RENT(obj),GET_OBJ_INNATE(obj)
>
>
> 1318: case OEDIT_INNATE:
> 1319:   number = atoi(arg);
> 1320:   GET_OBJ_INNATE(OLC_OBJ(d)) = number;
> 1321:   break;
> 1322: default:
>
>
>      any ideas?

        I know its already actually been said before, but it might help to
define the GET_OBJ_INNATE() macro.

If you don't know how to do it, just type
#define GET_OBJ_INNATE(obj)     (1)

        And it will compile, even if everything is wrong :)

                You'll figure out what it should be to be right, i'm sure.

                                                PjD


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST