Mercurial > vim
comparison src/regexp.c @ 8212:05b88224cea1 v7.4.1399
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 23 14:53:34 2016 +0100
patch 7.4.1399
Problem: The MS-DOS code does not build.
Solution: Remove the old MS-DOS code.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 23 Feb 2016 15:00:08 +0100 |
parents | b6b4f354df23 |
children | 318eaa6fa973 |
comparison
equal
deleted
inserted
replaced
8211:6116980b4cfa | 8212:05b88224cea1 |
---|---|
1336 regcode = JUST_CALC_SIZE; | 1336 regcode = JUST_CALC_SIZE; |
1337 regc(REGMAGIC); | 1337 regc(REGMAGIC); |
1338 if (reg(REG_NOPAREN, &flags) == NULL) | 1338 if (reg(REG_NOPAREN, &flags) == NULL) |
1339 return NULL; | 1339 return NULL; |
1340 | 1340 |
1341 /* Small enough for pointer-storage convention? */ | |
1342 #ifdef SMALL_MALLOC /* 16 bit storage allocation */ | |
1343 if (regsize >= 65536L - 256L) | |
1344 EMSG_RET_NULL(_("E339: Pattern too long")); | |
1345 #endif | |
1346 | |
1347 /* Allocate space. */ | 1341 /* Allocate space. */ |
1348 r = (bt_regprog_T *)lalloc(sizeof(bt_regprog_T) + regsize, TRUE); | 1342 r = (bt_regprog_T *)lalloc(sizeof(bt_regprog_T) + regsize, TRUE); |
1349 if (r == NULL) | 1343 if (r == NULL) |
1350 return NULL; | 1344 return NULL; |
1351 | 1345 |