X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Flink%2FC%2Fc_link.h;h=0e34644390a11e1ff52b9b618c9b3aea1d3d81a1;hb=5e6d63249d1251ca0838a257ff9671383edc15b1;hp=5953acbb64ff14bad5d66639b74470f78c8a8cfc;hpb=4f032479507641dacc772624c4a6b56a664fb249;p=progcomp10.git diff --git a/src/link/C/c_link.h b/src/link/C/c_link.h index 5953acb..0e34644 100755 --- a/src/link/C/c_link.h +++ b/src/link/C/c_link.h @@ -10,7 +10,7 @@ #include #define MAXCOMMANDLEN 15 -#define MAXFOENAMELEN 50 +#define MAXAGENTNAMELEN 42 /* 40 digits, 'L', and NULL */ #define MAXITEMLEN 10 #define MAXRESULTLEN 10 #define MAXBOOLLEN 6 @@ -36,15 +36,14 @@ typedef struct { /* prints a debug message. Same arguments as printf(). (you can't use printf because it is used to talk between - the agent and supervisor) + the agent and supervisor) + + Hint: store the name passed to you in Initalise and use it to uniquely + identify the agent sending the message. */ #define debugmsg(x...) fprintf(stderr, x) -/* A (hopefully) unique identifier for this particular instance of your agent, - to help with debugging */ -int me; - /* Returns a random item */