From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Abysmal state of GTK build Date: Thu, 25 Aug 2022 12:18:42 +0800 Message-ID: <87h721ufa5.fsf@yahoo.com> References: <87ilmlluxq.fsf.ref@yahoo.com> <87ilmlluxq.fsf@yahoo.com> <83h725deo3.fsf@gnu.org> <87bksdltah.fsf@yahoo.com> <87r119bni8.fsf@gmail.com> <87v8ql4kwk.fsf@melete.silentflame.com> <87tu65ilq2.fsf@telefonica.net> <87fshpgjsg.fsf@yahoo.com> <87ilmja9ps.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7570"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 25 06:19:41 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oR4LF-0001sj-OD for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Aug 2022 06:19:41 +0200 Original-Received: from localhost ([::1]:38204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oR4LE-0000mG-Ik for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Aug 2022 00:19:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR4Ka-0008NQ-3C for emacs-devel@gnu.org; Thu, 25 Aug 2022 00:19:00 -0400 Original-Received: from sonic315-22.consmr.mail.ne1.yahoo.com ([66.163.190.148]:38176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oR4KX-00064H-Lh for emacs-devel@gnu.org; Thu, 25 Aug 2022 00:18:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661401133; bh=/BNXmmP3nAcXq5pJPO0rKM+iCmrfR8x0omwnwtNesk8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=hPXKTudNiRFrymtjA/46oopjT9L/nqQcMWsf18+zztJRf2K0x7tCzBQ524aEhPySleMwP02OsmBy0e/F7YlUjFAq7rWG6b8BFM7zH8FytCXpq615zjxJUwk2+y7RqiUPDVsU7PqkwlGoNnWuNiBLMNWV0kjMW/qUoBLwTPbgJzC9NmqF8X52moN4nBOV4kZLVTFYH7zA3A5Nazw0Xy4Ly4Sox9VEVWbNxzrhX+Se+vni+bLhfwrd3KEzpxIvjr8CF+OtNFAe74TfyIE71HpSX6MOcAHt4UJzNRkKTjU5y+xDUERVdWJdXrRI+r401o5AwoxQFYEIPYl9mH22iEqt/g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661401133; bh=ivek7sRXtP3TBX/lGCRu6Aqn8GMd532s3pOtVWyZ2C7=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=f18WQ4EUAk6s35XJiyQ2IVYZnTcN0gMDNCSE91yjnJhbQIQnwZCdgt6mfu0PJB2A3JFO46FGRr92L8elMsUXT6lVSY5yjwWvf0AInODa2v5GZH2TLpxq6bKOXGxKMJXGgJINvWjRCikngss3K9rUv//0xlaZntsEq8hys6HvoVb+I2b9LzjdJo4virCB8fVmNgRAWJYQCqTQKBje72zncMwBMFLDCW1aCstCmTGozBdFvTBMje6jymiIrIgrpVgnB1tsu7LfFbQVRCtt38iiH+kRbgw0BoojLAixbSDR86ooaNctC9cF5sBzPv2wwHY8TjRmGV9xnkSmNWrsD/WKPg== X-YMail-OSG: HMZL5awVM1nCUBeTFNYez.jHlendgl7MkT8hv5AEkhJDq_Ax7NgdrxCBTR.oM4l Z.T_HpSd.T.51_RmVegc64_lDlDqqnG0EQ7IkbJlsXyBp8IOoyBUnpa66hi9vNwdO3XF4qKuzFSn bB2oqDT7Enc5hpuVE4XCUzbJl85mFGEOeCZrJ_HuC7n.es_40UUV.cyB.oVLexLpDyCla8bKIcTH ijrIMDRHLiNhP5KblE4b7_U6T68gxKeE33odiYnIcY.Vztr0mlSRUlARr9bi7PzjgAlbNZXpcqYw 2lFBAn4_2U2mI9ZgP.daHgtC5rcbHpSi1zKl19zhk2qw_py06vE0i7722wQTfurlVbi1GJbgUlCG DMGsmf8d0F3oHNMipuuDMktVnxLhcZ9YTA2p74PPmkL9VM7OSBKyMNIp4hjjJ4ZjiemzYA22Uw0L YhmjVQqU02T29g1N8_dqEhDTzPfxZ6bNoLmREHjDF3tSIG6LyRjLqSqv41RNHFI.oRf1AVFhrMBf 7xpsPLfGCS4oTW_epITtjiIr9GWgAvpNiGPgwZjdy0UZty3GdtxcM81mtx4nx0I4kIgKIh5W.osu a6GFay5fhmLLSMTjfDWW6V_5dBvW020ZoVJliIDm_JiBZMWzg9NlkTcQxYkLwYSJwagqwLVmeFHq IVQKLe6fOJNjKv6vzhZmHHll5olJO2ifZMqji2I6GJj7r04wa2bQ87koAkRsi6ygv8K1OlprtLzT sEZvwxp.TXOP3WeDPwS.z3rPTu4pTxU3PfsRLT6xCo1t3irYkwi_2shZz6ZJrR9N_ALngqoIBnVG hsY5L48S.BIgtAF.tuaYyvo5EbC_rBSdheRvrY4GX7 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Thu, 25 Aug 2022 04:18:53 +0000 Original-Received: by hermes--canary-production-sg3-6f58cd9b5-pcmsn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a50ab87e5547f779d1bf69da0761c569; Thu, 25 Aug 2022 04:18:47 +0000 (UTC) In-Reply-To: (Richard Stallman's message of "Wed, 24 Aug 2022 23:32:20 -0400") X-Mailer: WebService/1.1.20560 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.148; envelope-from=luangruo@yahoo.com; helo=sonic315-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:294064 Archived-At: Richard Stallman writes: > I can understand that in a general conceptual sense, > but would you please show me how ONE function is handled, > in the various files, and explain the crucial things in it? > Including the C++ constructs that are used? I don't know C++. Take the example of the extern "C" function BAlert_new: /* Create a BAlert with TEXT. */ void * BAlert_new (const char *text, enum haiku_alert_type type) { return new BAlert (NULL, text, NULL, NULL, NULL, B_WIDTH_AS_USUAL, (enum alert_type) type); } it's a wrapper around the C++ constructor for the alert dialog class "BAlert", and returns the result of the constructor (the new instance of the C++ class) as a pointer to void. Conceptually, it would be the same as: pointer = malloc (sizeof BAlert); constructor_of_balert (pointer); return pointer; Then, this extern "C" function takes the resulting void pointer and deletes it, by calling the C++ destructor: void BAlert_delete (void *alert) { delete (BAlert *) alert; } > Are the C++ functions all external to Emacs? > Exported by the operating system? Yes.