Mercurial > vim
comparison src/os_mswin.c @ 41:f529edb9bab3 v7.0025
updated for version 7.0025
author | vimboss |
---|---|
date | Mon, 27 Dec 2004 21:59:20 +0000 |
parents | 410fa1a31baf |
children | 19670b05ee32 |
comparison
equal
deleted
inserted
replaced
40:f1d2a58883b9 | 41:f529edb9bab3 |
---|---|
2906 | 2906 |
2907 static garray_T reply_list = {0, 0, sizeof(reply_T), 5, 0}; | 2907 static garray_T reply_list = {0, 0, sizeof(reply_T), 5, 0}; |
2908 | 2908 |
2909 #define REPLY_ITEM(i) ((reply_T *)(reply_list.ga_data) + (i)) | 2909 #define REPLY_ITEM(i) ((reply_T *)(reply_list.ga_data) + (i)) |
2910 #define REPLY_COUNT (reply_list.ga_len) | 2910 #define REPLY_COUNT (reply_list.ga_len) |
2911 #define REPLY_ROOM (reply_list.ga_room) | |
2912 | 2911 |
2913 /* Flag which is used to wait for a reply */ | 2912 /* Flag which is used to wait for a reply */ |
2914 static int reply_received = 0; | 2913 static int reply_received = 0; |
2915 | 2914 |
2916 /* | 2915 /* |
2930 rep->expr_result = expr; | 2929 rep->expr_result = expr; |
2931 if (rep->reply == NULL) | 2930 if (rep->reply == NULL) |
2932 return FAIL; | 2931 return FAIL; |
2933 | 2932 |
2934 ++REPLY_COUNT; | 2933 ++REPLY_COUNT; |
2935 --REPLY_ROOM; | |
2936 reply_received = 1; | 2934 reply_received = 1; |
2937 return OK; | 2935 return OK; |
2938 } | 2936 } |
2939 | 2937 |
2940 /* | 2938 /* |
2974 { | 2972 { |
2975 /* Move the rest of the list down to fill the gap */ | 2973 /* Move the rest of the list down to fill the gap */ |
2976 mch_memmove(rep, rep + 1, | 2974 mch_memmove(rep, rep + 1, |
2977 (REPLY_COUNT - i - 1) * sizeof(reply_T)); | 2975 (REPLY_COUNT - i - 1) * sizeof(reply_T)); |
2978 --REPLY_COUNT; | 2976 --REPLY_COUNT; |
2979 ++REPLY_ROOM; | |
2980 } | 2977 } |
2981 | 2978 |
2982 /* Return the reply to the caller, who takes on responsibility | 2979 /* Return the reply to the caller, who takes on responsibility |
2983 * for freeing it if "remove" is TRUE. */ | 2980 * for freeing it if "remove" is TRUE. */ |
2984 return reply; | 2981 return reply; |