Subject: Re: [libssh2] #165: size_t conversion

Re: [libssh2] #165: size_t conversion

From: libssh2 Trac <>
Date: Thu, 15 Apr 2010 18:42:51 -0000

#165: size_t conversion
 Reporter: roadrunn | Owner:
     Type: enhancement | Status: new
 Priority: normal | Milestone:
Component: API | Version: 1.2.4
 Keywords: | Blocking:
Blockedby: |

Comment(by bagder):

 I would like the patch to start with introducing something like a define
 that we can alter. Like where 'int' is used but 'size_t' is prefered we do

 #if 1 /* like today
 #define INT2SIZE_T int
 #define INT2SIZE_T size_t

 ... and then we update the public definitions and prototypes to use this
 define for all those ints. This then makes it very easy for us to do test-
 builds with the refined API vs the old API.

 Also, by using a unique define name, we can eventually just do a search &
 replace for it and get the new type properly once we've taken that step.

Ticket URL: <>
libssh2 <>
C library for writing portable SSH2 clients
Received on 2010-04-15