[svn:parrot] r43471 - trunk/src
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Sat Jan 16 17:34:35 UTC 2010
Author: plobsing
Date: Sat Jan 16 17:34:33 2010
New Revision: 43471
URL: https://trac.parrot.org/parrot/changeset/43471
Log:
fix src/nci_test.c wrt t/codingstd/c_function_docs.t
Modified:
trunk/src/nci_test.c
Modified: trunk/src/nci_test.c
==============================================================================
--- trunk/src/nci_test.c Sat Jan 16 00:22:36 2010 (r43470)
+++ trunk/src/nci_test.c Sat Jan 16 17:34:33 2010 (r43471)
@@ -150,8 +150,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT char
-nci_c(void)>
+=item C<PARROT_DYNEXT_EXPORT char nci_c(void)>
Returns the value of the variable C<nci_dlvar_char>, which is set to 22 by
default.
@@ -167,8 +166,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT char
-nci_csc(short l1, char l2)>
+=item C<PARROT_DYNEXT_EXPORT char nci_csc(short l1, char l2)>
Multiplies C<l1> and C<l2> together and returns the first byte of the result.
@@ -184,8 +182,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT double
-nci_d(void)>
+=item C<PARROT_DYNEXT_EXPORT double nci_d(void)>
Multiplies the current value of C<nci_dlvar_double> by 10.0, and returns
the new value.
@@ -204,8 +201,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT double
-nci_dd(double d)>
+=item C<PARROT_DYNEXT_EXPORT double nci_dd(double d)>
Returns the value C<d> multiplied by 2.0.
@@ -221,8 +217,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT float
-nci_f(void)>
+=item C<PARROT_DYNEXT_EXPORT float nci_f(void)>
Multiplies the value C<nci_dlvar_float> by 10.0 and returns the new
value.
@@ -241,8 +236,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT float
-nci_fff(float l1, float l2)>
+=item C<PARROT_DYNEXT_EXPORT float nci_fff(float l1, float l2)>
Returns the result of C<l1> / C<l2>.
@@ -258,8 +252,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-nci_i(void)>
+=item C<PARROT_DYNEXT_EXPORT int nci_i(void)>
Returns the current value of <nci_dlvar_int>.
@@ -275,8 +268,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-nci_isc(short l1, char l2)>
+=item C<PARROT_DYNEXT_EXPORT int nci_isc(short l1, char l2)>
Returns the int product of C<l1 * l2>.
@@ -292,8 +284,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-nci_ip(void *p)>
+=item C<PARROT_DYNEXT_EXPORT int nci_ip(void *p)>
Performs a series of operations on values stored at pointer C<p>.
@@ -319,8 +310,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-nci_it(void *p)>
+=item C<PARROT_DYNEXT_EXPORT int nci_it(void *p)>
test calls this with a string
@@ -339,8 +329,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT long
-nci_l(void)>
+=item C<PARROT_DYNEXT_EXPORT long nci_l(void)>
Returns the value of C<nci_dlvar_long>.
@@ -356,8 +345,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int *
-nci_p(void)>
+=item C<PARROT_DYNEXT_EXPORT int * nci_p(void)>
Returns the address of C<nci_dlvar_int>.
@@ -373,8 +361,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT char *
-nci_t(void)>
+=item C<PARROT_DYNEXT_EXPORT char * nci_t(void)>
Returns the value of C<nci_dlvar_cstring>.
@@ -390,8 +377,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT char *
-nci_tb(void *p)>
+=item C<PARROT_DYNEXT_EXPORT char * nci_tb(void *p)>
Prints "xx worked", where "xx" is replaced with the first two character values
of C<p>, in reverse order.
@@ -413,8 +399,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT char *
-nci_tt(void *p)>
+=item C<PARROT_DYNEXT_EXPORT char * nci_tt(void *p)>
Prints "xx worked", where "xx" is replaced with the first two character values
of C<p>, in reverse order.
@@ -436,8 +421,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT char *
-nci_tB(void **p)>
+=item C<PARROT_DYNEXT_EXPORT char * nci_tB(void **p)>
Prints "xx done", where "xx" is replaced with the first two character values
of C<p>, in reverse order.
@@ -459,8 +443,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void *
-nci_pp(void *p)>
+=item C<PARROT_DYNEXT_EXPORT void * nci_pp(void *p)>
Returns the value C<p> directly.
@@ -476,8 +459,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-nci_iiii(int i1, int i2, int i3)>
+=item C<PARROT_DYNEXT_EXPORT int nci_iiii(int i1, int i2, int i3)>
Prints three integers separated by whitespace to C<stderr>.
@@ -496,8 +478,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-nci_i4i(long * l, int i)>
+=item C<PARROT_DYNEXT_EXPORT int nci_i4i(long * l, int i)>
Returns the product of C<*l> and C<i>, as an int.
@@ -514,8 +495,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-nci_ii3(int a, int *bp)>
+=item C<PARROT_DYNEXT_EXPORT int nci_ii3(int a, int *bp)>
Multiplies C<a> and C<*bp> together and returns the result. Updates C<*bp>
to the value 4711.
@@ -535,8 +515,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-call_back(const char *str)>
+=item C<PARROT_DYNEXT_EXPORT int call_back(const char *str)>
writes the string C<str> to stdout and returns the value 4711.
@@ -555,8 +534,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void *
-nci_pi(int test)>
+=item C<PARROT_DYNEXT_EXPORT void * nci_pi(int test)>
Performs one from a series of tests, depending on the value given for C<test>.
@@ -704,8 +682,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT short
-nci_s(void)>
+=item C<PARROT_DYNEXT_EXPORT short nci_s(void)>
Returns the value of C<nci_dlvar_short>.
@@ -721,8 +698,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT short
-nci_ssc(short l1, char l2)>
+=item C<PARROT_DYNEXT_EXPORT short nci_ssc(short l1, char l2)>
Returns the product of C<l1 * l2>.
@@ -738,8 +714,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_vP(void *pmc)>
+=item C<PARROT_DYNEXT_EXPORT void nci_vP(void *pmc)>
Prints "ok" if C<PMC> is not null, prints "got null" otherwise.
@@ -774,8 +749,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_cb_C1(cb_C1_func cb, void* user_data)>
+=item C<PARROT_DYNEXT_EXPORT void nci_cb_C1(cb_C1_func cb, void* user_data)>
Calls C<cb> function with the string "result" and the given C<user_data>.
No return value.
@@ -796,8 +770,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_cb_C2(cb_C2_func cb, void* user_data)>
+=item C<PARROT_DYNEXT_EXPORT void nci_cb_C2(cb_C2_func cb, void* user_data)>
Calls the function C<cb> with the pointer C<user_data>. No return value.
@@ -816,8 +789,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_cb_C3(cb_C3_func cb, void* user_data)>
+=item C<PARROT_DYNEXT_EXPORT void nci_cb_C3(cb_C3_func cb, void* user_data)>
Calls function C<cb> with data C<user_data>. No return value.
@@ -838,8 +810,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_cb_D1(cb_D1_func cb, void* user_data)>
+=item C<PARROT_DYNEXT_EXPORT void nci_cb_D1(cb_D1_func cb, void* user_data)>
Calls function C<cb> with data C<user_data>. No return value.
@@ -859,8 +830,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_cb_D2(cb_D2_func cb, void* user_data)>
+=item C<PARROT_DYNEXT_EXPORT void nci_cb_D2(cb_D2_func cb, void* user_data)>
Calls function C<cb> with data C<user_data>.
@@ -879,8 +849,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_cb_D3(cb_D3_func cb, void* user_data)>
+=item C<PARROT_DYNEXT_EXPORT void nci_cb_D3(cb_D3_func cb, void* user_data)>
Calls function C<cb> with data C<user_data>.
@@ -901,8 +870,8 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_cb_D4(cb_D4_func times_ten, void* user_data)>
+=item C<PARROT_DYNEXT_EXPORT void nci_cb_D4(cb_D4_func times_ten, void*
+user_data)>
Calls function C<times_ten> with data C<user_data> 10 times in a loop.
@@ -925,8 +894,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_pip(int count, Rect_Like *rects)>
+=item C<PARROT_DYNEXT_EXPORT void nci_pip(int count, Rect_Like *rects)>
Prints a count integer and the coordinates of 4 rectangles.
@@ -946,8 +914,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-nci_i33(int *double_me, int *triple_me)>
+=item C<PARROT_DYNEXT_EXPORT int nci_i33(int *double_me, int *triple_me)>
Returns the result C<*double_me * 2 + *triple_me * 3>.
@@ -966,8 +933,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_vpii(Outer *my_data, int my_x, int my_y)>
+=item C<PARROT_DYNEXT_EXPORT void nci_vpii(Outer *my_data, int my_x, int my_y)>
Updates data in structure pointer C<my_data> with the given data C<my_x> and
C<my_y>.
@@ -985,8 +951,8 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void *
-nci_piiii(int alpha, int beta, int gamma, int delta)>
+=item C<PARROT_DYNEXT_EXPORT void * nci_piiii(int alpha, int beta, int gamma,
+int delta)>
Stores 4 integer values into an array structure, and returns the address
of that structure.
@@ -1019,8 +985,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void *
-nci_pii(int fac1, int fac2)>
+=item C<PARROT_DYNEXT_EXPORT void * nci_pii(int fac1, int fac2)>
Returns the address of global variable C<nci_dlvar_int> whose value is set
to the product of C<fac1 * fac2>.
@@ -1039,8 +1004,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_v(void)>
+=item C<PARROT_DYNEXT_EXPORT void nci_v(void)>
Multiplies the global variable C<nci_dlvar_int> times 10.
@@ -1056,8 +1020,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_vv(void)>
+=item C<PARROT_DYNEXT_EXPORT void nci_vv(void)>
Multiplies the global variable C<nci_dlvar_int> by 3.
@@ -1073,8 +1036,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT void
-nci_vVi(Opaque**, int)>
+=item C<PARROT_DYNEXT_EXPORT void nci_vVi(Opaque **outOpaque, int x)>
Test an NCI opaque struct out value.
@@ -1092,8 +1054,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT int
-nci_vp(Opaque*)>
+=item C<PARROT_DYNEXT_EXPORT void nci_vp(Opaque *inOpaque)>
Test that a previously generated opaque struct gets passed back
to an NCI function correctly.
@@ -1113,8 +1074,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT char *
-nci_ttt(void *p)>
+=item C<PARROT_DYNEXT_EXPORT char * nci_ttt(char *s1, char *s2)>
Prints "s2, s1, s1d"
@@ -1142,8 +1102,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT float
-nci_fff(float l1, float l2)>
+=item C<PARROT_DYNEXT_EXPORT void nci_vfff(float l1, float l2, float l3)>
Returns the result of C<l1> / C<l2>.
@@ -1162,8 +1121,7 @@
/*
-=item C<PARROT_DYNEXT_EXPORT float
-nci_fff(float l1, float l2)>
+=item C<PARROT_DYNEXT_EXPORT void nci_vV(const char **ptr)>
Returns the result of C<l1> / C<l2>.
@@ -1179,8 +1137,8 @@
/*
-=item C<PARROT_DYNEXT_EXPORT float
-nci_fff(float l1, float l2)>
+=item C<PARROT_DYNEXT_EXPORT void nci_vVVV(const char **ptr1, const char **ptr2,
+const char **ptr3)>
Returns the result of C<l1> / C<l2>.
@@ -1203,8 +1161,7 @@
/*
-=item C<int
-main(void)>
+=item C<int main(void)>
Calls test functions C<nci_ssc> and C<nci_fff> and prints their results.
More information about the parrot-commits
mailing list