first and last commit
This commit is contained in:
commit
1bf4efd552
2612 files changed
+636500
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/* Copyright (c) 2005-2007 Apple Inc. All Rights Reserved. */
|
||||
|
||||
/* GIReturnString.c - convert a GIReturn to a string */
|
||||
|
||||
#include <libGiantsUtils/GIReturnString.h>
|
||||
#include <stdio.h>
|
||||
|
||||
const char *GIReturnString(GIReturn grtn)
|
||||
{
|
||||
static char unknown[100];
|
||||
|
||||
switch(grtn) {
|
||||
case GR_Success: return "GR_Success";
|
||||
case GR_IllegalArg: return "GR_IllegalArg";
|
||||
case GR_Unimplemented: return "GR_Unimplemented";
|
||||
case GR_Internal: return "GR_Internal";
|
||||
case GR_Overflow: return "GR_Overflow";
|
||||
default:
|
||||
sprintf(unknown, "Uknown Error (%d)", (int)grtn);
|
||||
return unknown;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Copyright (c) 2005-2007 Apple Inc. All Rights Reserved. */
|
||||
|
||||
/* GIReturnString.h - convert a GIReturn to a string */
|
||||
|
||||
#ifndef _GIANT_RETURN_STRING_H_
|
||||
#define _GIANT_RETURN_STRING_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <libGiants/giantTypes.h>
|
||||
|
||||
extern const char *GIReturnString(GIReturn grtn);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _GIANT_RETURN_STRING_H_ */
|
||||
Reference in new issue
Block a user