9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] pcc: new option to convert implicitly between char* and uchar*
@ 2021-05-25 20:57 Kyohei Kadota via 9fans
  0 siblings, 0 replies; only message in thread
From: Kyohei Kadota via 9fans @ 2021-05-25 20:57 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


I'm trying to add a new option for pcc as -u to convert implicitly
between char* and uchar*.

In sources of LibreSSL Portable (actually, a lot of the sources is a
copy of a part of OpenBSD), there are many many assignments that is
uchar* to char*, or char* to uchar* without type casting. Two years
ago, because I wanted to use Git, I created a patch[^1] to compile the
sources in native Plan 9 + APE. its patch was containing many type
castings like:

    pwri_tmp = (unsigned char*)strdup((char*)pwri_pass);

[^1]: The patch in that time here.

However I realized it was hard to update the patch continuously with
tracking changes of sources of LibreSSL. So I'm trying to add the -u
option to pcc.

Do you have any good ideas for this?

9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T457d94e5a0449e88-Md48e4d04ab2d959ac864eaf7
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-25 20:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 20:57 [9fans] pcc: new option to convert implicitly between char* and uchar* Kyohei Kadota via 9fans

9fans - fans of the OS Plan 9 from Bell Labs

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9fans

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9fans 9fans/ http://inbox.vuxu.org/9fans \
	public-inbox-index 9fans

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git