diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-04-02 11:03:01 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-04-02 11:03:01 +0000 |
commit | 5541273d8447e78f975927bd318724e8c3af00a0 (patch) | |
tree | aabee9daba47a59010666b5cd365eb59015a1652 /mtasim | |
parent | 8634b40148e722c492d526de6589ce2c5ce71781 (diff) | |
download | mailfromd-5541273d8447e78f975927bd318724e8c3af00a0.tar.gz mailfromd-5541273d8447e78f975927bd318724e8c3af00a0.tar.bz2 |
Add new MFL datatype `POINTER' and convert `body' handler to
take first argument of that type. Provide a function for
converting POINTER to STRING.
* mfd/Makefile.am (M4_FILES): Add bi_body.m4
* mfd/bi_body.m4: New file.
* mfd/engine.c (mlfi_body): Pass bodyp as a generic pointer.
* mfd/snarf.m4 (__mf_argtype, __mf_ctype, __mf_c_getarg)
(__mf_printf_type): Handle new data type POINTER.
* mfd/gram.y (state_parms): Change type of the first parameter
to body to dtype_pointer.
(cast_to): Handle dtype_pointer.
* mfd/mailfromd.h (data_type_t): New type dtype_pointer.
(env_push_pointer): New function.
* mfd/prog.c (env_push_pointer): New function.
* mfd/prog.h (get_pointer_arg): New macro.
* NEWS: Update.
Bugfixes:
* mtasim/mtasim.c (get_input_line): Make sure the return line
always terminates with a newline.
(smtp): Remove erroneous break.
* mfd/symtab.c (variable_replace): Maintain correct value of
newvar->owner.
* mfd/pp.c (push_source): Prevent coredump on the first call.
git-svn-id: file:///svnroot/mailfromd/trunk@1648 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'mtasim')
-rw-r--r-- | mtasim/mtasim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mtasim/mtasim.c b/mtasim/mtasim.c index f9e238a8..bdf060d0 100644 --- a/mtasim/mtasim.c +++ b/mtasim/mtasim.c @@ -1001,6 +1001,7 @@ get_input_line (char *buf, size_t bufsize) return -1; strncpy (buf, p, bufsize); buf[bufsize - 1] = 0; + strcat(buf, "\n"); free (p); add_history (buf); return strlen (buf); @@ -1917,7 +1918,6 @@ smtp (void) datareply = 0; } } - break; } } } |