|
|
Author: petdance
Date: Sat Dec 8 14:07:35 2007
New Revision: 23612
Modified:
trunk/src/encodings/fixed_8.c
trunk/src/encodings/ucs2.c
Log:
adding some headerization. Only 14 files left
Modified: trunk/src/encodings/fixed_8.c
==============================================================================
--- trunk/src/encodings/fixed_8.c (original)
+++ trunk/src/encodings/fixed_8.c Sat Dec 8 14:07:35 2007
@@ -56,6 +56,7 @@
__attribute__nonnull__(2);
PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING * get_bytes(PARROT_INTERP,
NOTNULL(STRING *source_string),
UINTVAL offset,
@@ -64,6 +65,7 @@
__attribute__nonnull__(2);
PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING * get_bytes_inplace(PARROT_INTERP,
NOTNULL(STRING *source_string),
UINTVAL offset,
@@ -81,6 +83,7 @@
__attribute__nonnull__(2);
PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING * get_codepoints(PARROT_INTERP,
NOTNULL(STRING *source_string),
UINTVAL offset,
@@ -89,6 +92,7 @@
__attribute__nonnull__(2);
PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING * get_codepoints_inplace(PARROT_INTERP,
NOTNULL(STRING *source_string),
UINTVAL offset,
@@ -137,6 +141,7 @@
__attribute__nonnull__(5);
PARROT_DOES_NOT_RETURN
+PARROT_CANNOT_RETURN_NULL
static STRING * to_encoding(PARROT_INTERP,
SHIM(STRING *src),
SHIM(STRING *dest))
@@ -159,6 +164,7 @@
*/
PARROT_DOES_NOT_RETURN
+PARROT_CANNOT_RETURN_NULL
static STRING *
to_encoding(PARROT_INTERP, SHIM(STRING *src), SHIM(STRING *dest))
{
@@ -270,6 +276,7 @@
*/
PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING *
get_codepoints(PARROT_INTERP, NOTNULL(STRING *source_string),
UINTVAL offset, UINTVAL count)
@@ -294,6 +301,7 @@
*/
PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING *
get_bytes(PARROT_INTERP, NOTNULL(STRING *source_string),
UINTVAL offset, UINTVAL count)
@@ -327,6 +335,7 @@
*/
PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING *
get_codepoints_inplace(PARROT_INTERP, NOTNULL(STRING *source_string),
UINTVAL offset, UINTVAL count, NOTNULL(STRING *dest_string))
@@ -350,6 +359,7 @@
*/
PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING *
get_bytes_inplace(PARROT_INTERP, NOTNULL(STRING *source_string),
UINTVAL offset, UINTVAL count, NOTNULL(STRING *return_string))
Modified: trunk/src/encodings/ucs2.c
==============================================================================
--- trunk/src/encodings/ucs2.c (original)
+++ trunk/src/encodings/ucs2.c Sat Dec 8 14:07:35 2007
@@ -28,10 +28,12 @@
static void become_encoding(PARROT_INTERP, SHIM(STRING *src))
__attribute__nonnull__(1);
+PARROT_WARN_UNUSED_RESULT
static UINTVAL bytes(PARROT_INTERP, NOTNULL(STRING *src))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
+PARROT_WARN_UNUSED_RESULT
static UINTVAL codepoints(PARROT_INTERP, NOTNULL(STRING *src))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
@@ -41,12 +43,16 @@
UINTVAL offset)
__attribute__nonnull__(1);
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING * get_bytes(PARROT_INTERP,
SHIM(STRING *src),
UINTVAL offset,
UINTVAL count)
__attribute__nonnull__(1);
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING * get_bytes_inplace(PARROT_INTERP,
SHIM(STRING *src),
UINTVAL offset,
@@ -60,6 +66,8 @@
__attribute__nonnull__(1)
__attribute__nonnull__(2);
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING * get_codepoints(PARROT_INTERP,
NOTNULL(STRING *src),
UINTVAL offset,
@@ -67,6 +75,8 @@
__attribute__nonnull__(1)
__attribute__nonnull__(2);
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING * get_codepoints_inplace(PARROT_INTERP,
SHIM(STRING *src),
UINTVAL offset,
@@ -108,6 +118,8 @@
SHIM(STRING *new_codepoints))
__attribute__nonnull__(1);
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING * to_encoding(PARROT_INTERP,
NOTNULL(STRING *src),
NOTNULL(STRING *dest))
@@ -154,6 +166,8 @@
*/
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING *
to_encoding(PARROT_INTERP, NOTNULL(STRING *src), NOTNULL(STRING *dest))
{
@@ -261,6 +275,8 @@
*/
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING *
get_codepoints(PARROT_INTERP, NOTNULL(STRING *src), UINTVAL offset, UINTVAL
count)
{
@@ -297,6 +313,8 @@
*/
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING *
get_bytes(PARROT_INTERP, SHIM(STRING *src), UINTVAL offset, UINTVAL count)
{
@@ -316,6 +334,8 @@
*/
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING *
get_codepoints_inplace(PARROT_INTERP, SHIM(STRING *src),
UINTVAL offset, UINTVAL count, SHIM(STRING *dest_string))
@@ -336,6 +356,8 @@
*/
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
static STRING *
get_bytes_inplace(PARROT_INTERP, SHIM(STRING *src),
UINTVAL offset, UINTVAL count, SHIM(STRING *return_string))
@@ -410,6 +432,7 @@
*/
+PARROT_WARN_UNUSED_RESULT
static UINTVAL
codepoints(PARROT_INTERP, NOTNULL(STRING *src))
{
@@ -432,6 +455,7 @@
*/
+PARROT_WARN_UNUSED_RESULT
static UINTVAL
bytes(PARROT_INTERP, NOTNULL(STRING *src))
{
|
|