+#include "attrib.h"
+
+
+
/*****************************************************************************/
/* Code */
/*****************************************************************************/
-unsigned BitFind (unsigned long Val);
+unsigned BitFind (unsigned long Val) attribute ((const));
/* Find the first bit that is set in Val. Val must *not* be zero */
void BitSet (void* Data, unsigned Bit);
void BitReset (void* Data, unsigned Bit);
/* Reset a bit in a char array */
-int BitIsSet (void* Data, unsigned Bit);
+int BitIsSet (void* Data, unsigned Bit) attribute ((const));
/* Check if a bit is set in a char array */
-int BitIsReset (void* Data, unsigned Bit);
+int BitIsReset (void* Data, unsigned Bit) attribute ((const));
/* Check if a bit is reset in a char array */
void BitMerge (void* Target, const void* Source, unsigned Size);
void UnknownOption (const char* Opt)
-/* Print an error about an unknown option. */
+/* Print an error about an unknown option and die. */
{
AbEnd ("Unknown option: %s\n", Opt);
}
+#include "attrib.h"
+
+
+
/*****************************************************************************/
/* Data */
/*****************************************************************************/
* array. Both arguments are remembered in static storage.
*/
-void UnknownOption (const char* Opt);
-/* Print an error about an unknown option. */
+void UnknownOption (const char* Opt) attribute ((noreturn));
+/* Print an error about an unknown option and die. */
-void NeedArg (const char* Opt);
+void NeedArg (const char* Opt) attribute ((noreturn));
/* Print an error about a missing option argument and exit. */
-void InvDef (const char* Def);
+void InvDef (const char* Def) attribute ((noreturn));
/* Print an error about an invalid definition and die */
const char* GetArg (int* ArgNum, unsigned Len);
/* End of cmdline.h */
#endif
-
+
+#include "attrib.h"
+
+
+
/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
-unsigned HashStr (const char* S);
+unsigned HashStr (const char* S) attribute ((const));
/* Return a hash value for the given string */
bitops.o \
check.o \
cmdline.o \
+ coll.o \
exprdefs.o \
fname.o \
hashstr.o \
$(CC) -MM $^ > .depend
-
+
bitops.obj \
check.obj \
cmdline.obj \
+ coll.obj \
exprdefs.obj \
fname.obj \
hashstr.obj \