lcc-win字符串库 [英] The lcc-win string library

查看:70
本文介绍了lcc-win字符串库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在lcc-win实验编译器的上下文中

a完整的str_ing库可用,使用运算符

重载和重载函数来呈现新类型

C中的字符串库,


o功能计数字符串,消除缓冲区溢出

o它的语法与旧函数非常相似

(Strcat vs strcat等)

o对于某些操作来说可能更快(正好)

Strcat因为没有必要搜索终止

零。


整个库的源代码可以在

正常分布的lcc-win中找到。


-

jacob navia

jacob at jacob point remcomp point fr

logiciels /信息
http://www.cs.virginia.edu/ ~lcc-win32

解决方案

2008年11月3日16:09,jacob navia写道:


整个图书馆的源代码可以在正常情况下找到

分配lcc-win。



有意思!


是否以与lcc-win编译器相同的许可证发布,或者

更宽容的东西?


jacob navia写道:


在上下文中lcc-win实验编译器

a完整的str_ing库可以使用运算符

重载和重载函数来呈现一个新类型

的字符串库在C中,



C没有运算符或函数重载。退出垃圾邮件

comp.lang.c,其中包含不是C的编译器功能的广告。

恕我直言,你可以更好地服务,只需添加少量剩余的

使lcc-win32成为C ++编译器所需的功能,而不是

试图说服人们你的扩展是或应该是
$ b $的一部分b C.有这样的原因,这些特征不会从C ++反向移植到C / b
,因为许多其他改进也是如此。已经过了。


S


Antoninus Twink写道:


2008年11月3日16:09,jacob navia写道:


>整个图书馆的源代码可以在正常的
发行版中找到lcc-win。



有意思!


是否以与lcc-win编译器相同的许可证发布,或者

更宽松的东西?



它是公共领域,字符串库没有附加字符串:-)


-

jacob navia

jacob at jacob point remcomp point fr

logiciels / informatique
http://www.cs.virginia.edu/~lcc-win32


Within the context of the lcc-win experimental compiler
a complete str_ing library is available that uses operator
overloading and overloaded functions to present a new type
of string library in C, that

o features counted strings, that eliminates buffer overflows
o It has a syntax very similar to the old functions
(Strcat vs strcat, etc)
o It could be faster for some operations like (precisely)
Strcat since there is no need to search for the terminating
zero.

The source code for the whole library can be found in the
normal distribution of lcc-win.

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32

解决方案

On 3 Nov 2008 at 16:09, jacob navia wrote:

The source code for the whole library can be found in the normal
distribution of lcc-win.

Interesting!

Is it released under the same license as the lcc-win compiler, or
something more permissive?


jacob navia wrote:

Within the context of the lcc-win experimental compiler
a complete str_ing library is available that uses operator
overloading and overloaded functions to present a new type
of string library in C, that

C does not have operator or function overloading. Quit spamming
comp.lang.c with advertisements for compiler features that are not C.

IMHO, you would be better served simply adding the few remaining
features that are required to make lcc-win32 a C++ compiler, rather than
trying to convince people that your extensions are or should be part of
C. There is a reason these features were _not_ backported from C++ to C
as many other "improvements" have been.

S


Antoninus Twink wrote:

On 3 Nov 2008 at 16:09, jacob navia wrote:

>The source code for the whole library can be found in the normal
distribution of lcc-win.


Interesting!

Is it released under the same license as the lcc-win compiler, or
something more permissive?

It is public domain, no strings attached to the string library :-)

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32


这篇关于lcc-win字符串库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆