Author: petdance
Date: Mon Jun 18 14:45:36 2007
New Revision: 19094
Modified:
trunk/include/parrot/interpreter.h
trunk/include/parrot/nci.h
trunk/include/parrot/string.h
trunk/src/encodings/fixed_8.c
trunk/src/encodings/ucs2.c
trunk/src/encodings/utf16.c
trunk/src/encodings/utf8.c
trunk/src/inter_misc.c
trunk/src/jit.h
trunk/src/jit/i386/jit_emit.h
trunk/src/stacks.c
trunk/src/string.c
Log:
Changed all String to STRING
Modified: trunk/include/parrot/interpreter.h
==============================================================================
--- trunk/include/parrot/interpreter.h (original)
+++ trunk/include/parrot/interpreter.h Mon Jun 18 14:45:36 2007
@@ -530,7 +530,7 @@
PARROT_API PMC *Parrot_compile_string(Parrot_Interp interp,
STRING *type, char *code, STRING **error);
PARROT_API void *Parrot_compile_file(Parrot_Interp interp,
- char *fullname, String **error);
+ char *fullname, STRING **error);
INTVAL sysinfo_i(Interp *interp, INTVAL info_wanted);
STRING *sysinfo_s(Interp *interp, INTVAL info_wanted);
Modified: trunk/include/parrot/nci.h
==============================================================================
--- trunk/include/parrot/nci.h (original)
+++ trunk/include/parrot/nci.h Mon Jun 18 14:45:36 2007
@@ -15,7 +15,7 @@
#include "parrot/parrot.h"
-void *build_call_func(Interp *, PMC *, String *);
+void *build_call_func(Interp *, PMC *, STRING *);
#endif /* PARROT_NCI_H_GUARD */
Modified: trunk/include/parrot/string.h
==============================================================================
--- trunk/include/parrot/string.h (original)
+++ trunk/include/parrot/string.h Mon Jun 18 14:45:36 2007
@@ -22,7 +22,7 @@
#include "parrot/parrot.h"
-typedef struct parrot_string_t String;
+typedef struct parrot_string_t STRING;
typedef enum Forward_flag {
Buffer_moved_FLAG = 1 << 0
@@ -30,7 +30,7 @@
/* String iterator */
typedef struct string_iterator_t {
- const String *str;
+ const STRING *str;
UINTVAL bytepos;
UINTVAL charpos;
UINTVAL (*get_and_advance)(Interp *, struct string_iterator_t *i);
@@ -38,7 +38,7 @@
void (*set_position)(Interp *, struct string_iterator_t *i, UINTVAL pos);
} String_iter;
-void string_iter_init(Interp *, const String *str, String_iter *);
+void string_iter_init(Interp *, const STRING *str, String_iter *);
/* stringinfo parameters */
@@ -52,7 +52,6 @@
#define STRINGINFO_STRLEN 6
/* &end_gen */
-typedef struct parrot_string_t STRING;
#endif /* PARROT_IN_CORE */
#endif /* PARROT_STRING_H_GUARD */
Modified: trunk/src/encodings/fixed_8.c
==============================================================================
--- trunk/src/encodings/fixed_8.c (original)
+++ trunk/src/encodings/fixed_8.c Mon Jun 18 14:45:36 2007
@@ -200,7 +200,7 @@
static void
-iter_init(Interp *interp, const String *src, String_iter *iter)
+iter_init(Interp *interp, const STRING *src, String_iter *iter)
{
iter->str = src;
iter->bytepos = iter->charpos = 0;
Modified: trunk/src/encodings/ucs2.c
==============================================================================
--- trunk/src/encodings/ucs2.c (original)
+++ trunk/src/encodings/ucs2.c Mon Jun 18 14:45:36 2007
@@ -28,7 +28,7 @@
#define UNIMPL internal_exception(UNIMPLEMENTED, "unimpl ucs2")
-static void iter_init(Interp *, const String *src, String_iter *iter);
+static void iter_init(Interp *, const STRING *src, String_iter *iter);
static STRING *
@@ -215,7 +215,7 @@
#endif
static void
-iter_init(Interp *interp, const String *src, String_iter *iter)
+iter_init(Interp *interp, const STRING *src, String_iter *iter)
{
iter->str = src;
iter->bytepos = iter->charpos = 0;
Modified: trunk/src/encodings/utf16.c
==============================================================================
--- trunk/src/encodings/utf16.c (original)
+++ trunk/src/encodings/utf16.c Mon Jun 18 14:45:36 2007
@@ -29,7 +29,7 @@
#define UNIMPL internal_exception(UNIMPLEMENTED, "unimpl utf16")
-static void iter_init(Interp *, const String *src, String_iter *iter);
+static void iter_init(Interp *, const STRING *src, String_iter *iter);
/*
@@ -322,7 +322,7 @@
#endif
static void
-iter_init(Interp *interp, const String *src, String_iter *iter)
+iter_init(Interp *interp, const STRING *src, String_iter *iter)
{
iter->str = src;
iter->bytepos = iter->charpos = 0;
Modified: trunk/src/encodings/utf8.c
==============================================================================
--- trunk/src/encodings/utf8.c (original)
+++ trunk/src/encodings/utf8.c Mon Jun 18 14:45:36 2007
@@ -45,7 +45,7 @@
typedef unsigned char utf8_t;
#endif
-static void iter_init(Interp *, const String *src, String_iter *iter);
+static void iter_init(Interp *, const STRING *src, String_iter *iter);
/*
@@ -499,7 +499,7 @@
}
static void
-iter_init(Interp *interp, const String *src, String_iter *iter)
+iter_init(Interp *interp, const STRING *src, String_iter *iter)
{
iter->str = src;
iter->bytepos = iter->charpos = 0;
Modified: trunk/src/inter_misc.c
==============================================================================
--- trunk/src/inter_misc.c (original)
+++ trunk/src/inter_misc.c Mon Jun 18 14:45:36 2007
@@ -149,7 +149,7 @@
=item C<PMC *
Parrot_compile_string(Parrot_Interp interp, STRING *type,
- char *code, String **error)>
+ char *code, STRING **error)>
Compile code string.
@@ -179,7 +179,7 @@
=item C<void
Parrot_compile_file(Parrot_Interp interp, const char *fullname,
- String **error)>
+ STRING **error)>
Compile code file.
@@ -189,7 +189,7 @@
void *
Parrot_compile_file(Parrot_Interp interp, char *fullname,
- String **error)
+ STRING **error)
{
return IMCC_compile_file_s(interp, fullname, error);
}
Modified: trunk/src/jit.h
==============================================================================
--- trunk/src/jit.h (original)
+++ trunk/src/jit.h Mon Jun 18 14:45:36 2007
@@ -318,7 +318,7 @@
/*
* NCI interface
*/
-void *Parrot_jit_build_call_func(Interp *, PMC *, String *);
+void *Parrot_jit_build_call_func(Interp *, PMC *, STRING *);
#endif /* PARROT_JIT_H_GUARD */
Modified: trunk/src/jit/i386/jit_emit.h
==============================================================================
--- trunk/src/jit/i386/jit_emit.h (original)
+++ trunk/src/jit/i386/jit_emit.h Mon Jun 18 14:45:36 2007
@@ -3705,7 +3705,7 @@
*/
void *
Parrot_jit_build_call_func(Interp *interp, PMC *pmc_nci,
- String *signature)
+ STRING *signature)
{
Parrot_jit_info_t jit_info;
char *sig, *pc;
Modified: trunk/src/stacks.c
==============================================================================
--- trunk/src/stacks.c (original)
+++ trunk/src/stacks.c Mon Jun 18 14:45:36 2007
@@ -248,7 +248,7 @@
UVal_pmc(entry->entry) = (PMC *)thing;
break;
case STACK_ENTRY_STRING:
- UVal_str(entry->entry) = (String *)thing;
+ UVal_str(entry->entry) = (STRING *)thing;
break;
case STACK_ENTRY_POINTER:
case STACK_ENTRY_DESTINATION:
@@ -305,7 +305,7 @@
*(PMC **)where = UVal_pmc(entry->entry);
break;
case STACK_ENTRY_STRING:
- *(String **)where = UVal_str(entry->entry);
+ *(STRING **)where = UVal_str(entry->entry);
break;
case STACK_ENTRY_POINTER:
case STACK_ENTRY_DESTINATION:
Modified: trunk/src/string.c
==============================================================================
--- trunk/src/string.c (original)
+++ trunk/src/string.c Mon Jun 18 14:45:36 2007
@@ -104,9 +104,9 @@
*/
static void
-copy_string_header(String *dest /*NN*/, const String *src /*NN*/)
+copy_string_header(STRING *dest /*NN*/, const STRING *src /*NN*/)
{
- memcpy(dest, src, sizeof (String));
+ memcpy(dest, src, sizeof (STRING));
}
/*