Mercurial > hg > CbC > old > device
changeset 60:aa779bcffef7
CwC converters
author | kono |
---|---|
date | Wed, 19 Feb 2003 21:22:49 +0900 |
parents | eeca07d1b1c2 |
children | 8ffb8ca3fe34 |
files | conv/c.c conv/c.h conv/c2cbc.c conv/c2cbc.h conv/cbc2c.c conv/cbc2c.h conv/null.c conv/null.h |
diffstat | 8 files changed, 78 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conv/c.c Wed Feb 19 21:22:49 2003 +0900 @@ -0,0 +1,17 @@ +#define EXTERN /**/ + +#include "mc.h" + +static void print(char *); + +Converter c_converter = { + &print +}; + +static FILE *vout; + +static void +print(char *s) +{ + fprintf(vout,"c: %s\n",s); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conv/c.h Wed Feb 19 21:22:49 2003 +0900 @@ -0,0 +1,3 @@ + + +extern Converter c_converter;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conv/c2cbc.c Wed Feb 19 21:22:49 2003 +0900 @@ -0,0 +1,18 @@ +#define EXTERN /**/ + +#include "mc.h" + +static void print(char *); + +Converter c2cbc_converter = { + &print +}; + +static +FILE *vout; + +static void +print(char *s) +{ + fprintf(vout,"c: %s\n",s); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conv/c2cbc.h Wed Feb 19 21:22:49 2003 +0900 @@ -0,0 +1,2 @@ + +extern Converter c2cbc_converter;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conv/cbc2c.c Wed Feb 19 21:22:49 2003 +0900 @@ -0,0 +1,17 @@ +#define EXTERN /**/ + +#include "mc.h" + +static void print(char *); + +Converter cbc2c_converter = { + &print +}; + +static FILE *vout; + +static void +print(char *s) +{ + fprintf(vout,"c: %s\n",s); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conv/cbc2c.h Wed Feb 19 21:22:49 2003 +0900 @@ -0,0 +1,2 @@ + +extern Converter cbc2c_converter;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conv/null.c Wed Feb 19 21:22:49 2003 +0900 @@ -0,0 +1,17 @@ +#define EXTERN /**/ + +#include "mc.h" + +static void print(char *); + +Converter null_converter = { + &print +}; + +static FILE *vout; + +static void +print(char *s) +{ + fprintf(vout,"null: %s\n",s); +}