Permalink
Browse files

A few codestd fixes from the sprintf cleanup work

  • Loading branch information...
1 parent da52d96 commit 3d0c5f751f79070c6605897b4f4713b3dee17e99 @Whiteknight Whiteknight committed May 22, 2012
Showing with 14 additions and 4 deletions.
  1. +12 −3 src/string/spf_private.h
  2. +2 −1 src/string/spf_render.c
View
@@ -10,8 +10,8 @@ src/string/spf_private.h - private header file of the string/sprintf subsystem
This is the private header file for the sprintf implementation.
*/
-#ifndef PARROT_STRING_PRIVATE_H
-#define PARROT_STRING_PRIVATE_H
+#ifndef PARROT_SPF_PRIVATE_H_GUARD
+#define PARROT_SPF_PRIVATE_H_GUARD
/* The size of all our buffers (and the maximum width of a float
* field).
@@ -92,4 +92,13 @@ STRING * Parrot_sprintf_format(PARROT_INTERP,
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: src/string/spf_render.c */
-#endif /* PARROT_STRING_PRIVATE_H */
+#endif /* PARROT_SPF_PRIVATE_H_GUARD */
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * buffer-read-only: t
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
+
View
@@ -930,7 +930,8 @@ Parrot_sprintf_format(PARROT_INTERP, ARGIN(const STRING *pat), ARGMOD(SPRINTF_OB
*/
Parrot_ex_throw_from_c_args(interp, NULL,
EXCEPTION_INVALID_CHARACTER,
- "Catastrophic sprintf error. Your input is very bad. Please file a bug report.");
+ "Catastrophic sprintf error. Your input is very bad. "
+ "Please file a bug report.");
}
}

0 comments on commit 3d0c5f7

Please sign in to comment.