Re: [dev] [sbase] 64-bit type for split

2013-06-15 Thread Szabolcs Nagy
* Galos, David [2013-06-14 22:39:12 -0500]: > > Or are you limiting this to pure ansi instead of posix? > I'm just trying to conform with the rest of sbase. The CFLAGS include > `-ansi -pedantic -Wall` and I don't want my code to compile with > warnings. > you can get rid of the warning in stric

Re: [dev] [sbase] 64-bit type for split

2013-06-14 Thread Galos, David
> Or are you limiting this to pure ansi instead of posix? I'm just trying to conform with the rest of sbase. The CFLAGS include `-ansi -pedantic -Wall` and I don't want my code to compile with warnings. > How exactly do you think you are going to be able to work with / create > files larger than w

Re: [dev] [sbase] 64-bit type for split

2013-06-14 Thread random832
On Tue, Jun 11, 2013, at 13:35, Galos, David wrote: > In my implementation of split, the ability to split files into rather > large chunks is important. However, c89 does not provide a 64-bit int > type by default. Although I could manually emulate 64-bit counting, a > uvlong would be far cleaner.

Re: [dev] [sbase] 64-bit type for split

2013-06-12 Thread Szabolcs Nagy
* Galos, David [2013-06-11 13:10:37 -0500]: > Right, but '-ansi -pedantic' is strictly C89. GCC doesn't complain, > but I could imagine there being trepidation around using a C99 header > in a C89 environment (where it is not required). > > 2013/6/11 Thorsten Glaser : > > Galos, David dixit: > >

Re: [dev] [sbase] 64-bit type for split

2013-06-11 Thread Rob
Interesting mix of top- and bottom-posting. I'll not disturb it. Anyway, 1999 was 14 years ago. I think uint64_t is the least of our worries if we're porting to some exotic architecture where gcc can't at least emulate a 64-bit integer. I mean even tcc has a runtime library for that. On Tue, Jun

Re: [dev] [sbase] 64-bit type for split

2013-06-11 Thread Galos, David
Right, but '-ansi -pedantic' is strictly C89. GCC doesn't complain, but I could imagine there being trepidation around using a C99 header in a C89 environment (where it is not required). 2013/6/11 Thorsten Glaser : > Galos, David dixit: > >>On GNU systems stdint.h still provides uint64_t, but I ha

Re: [dev] [sbase] 64-bit type for split

2013-06-11 Thread Thorsten Glaser
Galos, David dixit: >On GNU systems stdint.h still provides uint64_t, but I have no idea >how portable this is. is C99. bye, //mirabilos -- 17:08⎜«Vutral» früher gabs keine packenden smartphones und so 17:08⎜«Vutral» heute gibts frauen die sind facebooksüchtig 17:10⎜«Vutral» aber auch traurig;

[dev] [sbase] 64-bit type for split

2013-06-11 Thread Galos, David
In my implementation of split, the ability to split files into rather large chunks is important. However, c89 does not provide a 64-bit int type by default. Although I could manually emulate 64-bit counting, a uvlong would be far cleaner. Is there a suckless-approved way of using such an integer in