Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

c snippet: no size_t

  • Loading branch information...
commit 115f97bd87f650b1941759ea07bc3c3b3b938ade 1 parent e05669b
Jun Wu authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  .vim/snippets/c.snippets
2  .vim/snippets/c.snippets
@@ -24,7 +24,7 @@ int main(int argc, char const *argv[]) {
24 24 endsnippet
25 25
26 26 snippet for "for int loop (fori)" !
27   -for (`!p snip.rv = 'int' if t[1].find('size()') < 0 else 'size_t'` ${2:i} = `!p snip.rv = '0' if t[2] != 'j' else 'i + 1'`; $2 < ${1:n}; ++$2) {
  27 +for (int ${2:i} = `!p snip.rv = '0' if t[2] != 'j' else 'i + 1'`; $2 <`!p snip.rv = ' ' if t[1].find('size()') < 0 else ' (int)'`${1:n}; ++$2) {
28 28 ${3}
29 29 }${0}
30 30 endsnippet

0 comments on commit 115f97b

Please sign in to comment.
Something went wrong with that request. Please try again.