first and last commit

This commit is contained in:
Chris Nutter committed 2023-07-08 13:03:17 -07:00
commit 1bf4efd552
2612 files changed
+636500

No files matched your search

+25
View File
@@ -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;
}
}
+20
View File
@@ -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_ */