From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mrf Newsgroups: gmane.emacs.help Subject: Re: Running makefiles from emacs Date: Fri, 02 Jul 2021 10:44:02 +0300 Message-ID: <875yxtf83n.fsf@cock.li> References: <87tulibyap.fsf@zoho.eu> <87pmw6oc1z.fsf@cock.li> <87k0md9cxb.fsf@zoho.eu> <87h7hggafy.fsf@cock.li> <874kdf6uo7.fsf@zoho.eu> <87bl7nf7tx.fsf@cock.li> <87sg0x50fm.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19595"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.8; emacs 27.2 Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 02 10:11:33 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1lzEGn-0004wx-UH for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 10:11:31 +0200 Original-Received: from localhost ([::1]:42842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzEGm-00027e-W1 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 04:11:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzEGN-00026q-4G for help-gnu-emacs@gnu.org; Fri, 02 Jul 2021 04:11:03 -0400 Original-Received: from mail.cock.li ([37.120.193.124]:38654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzEGL-0000Vs-4j for help-gnu-emacs@gnu.org; Fri, 02 Jul 2021 04:11:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1625213449; bh=RpWfkX7gZEK3XoPzX18mUMo7kfenAQdfFdIIIJzfwaI=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=FeJS389KzGAGeUbDRaA8b5iGEmV0WGvOowNXCYw7ckZa0jtmWisCDNFRK1LIRTYYe p9umVb3pJp6WEiDRFGsbine7gR0RRA5Fncyy6k0h9fkfH7RtxQjd6YX7SY+N0QyJ1x D/eWLMcGyA6dJdOHtHR7FYLAHarSF8tXgL3wSHVtWbOrbx5Ir2DIWDOnzj6+baD2/f PEAhcwqcSgDbV7AXtRHnRs5IMzA6LFdSs3S1QIsT/0xUlDXDUw0VQjUQymDpNGwcaF 55T6LH/+MRy2pp7V1WmpPQ2Fai7DnICwJb4MOq16L/6rhJ/Blcj45WPCOB4Hbv8y+D QdAMNXSQOPRLw== In-reply-to: <87sg0x50fm.fsf@zoho.eu> Received-SPF: pass client-ip=37.120.193.124; envelope-from=joinlaw@cock.li; helo=mail.cock.li X-Spam_score_int: 25 X-Spam_score: 2.5 X-Spam_bar: ++ X-Spam_report: (2.5 / 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, RCVD_IN_PBL=3.335, RCVD_IN_VALIDITY_RPBL=1.31, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131381 Archived-At: Emanuel Berg via Users list for the GNU Emacs text editor writes: > mrf wrote: > >>> What is a "single source code program"? >> >> That's when you share small programs without makefile or >> compile script (or any build system actullay) which is also >> useful for code snippets > > There is a name for that, really? I don't know this how I describe it (I'm not english native person) > And even so, isn't the idea they should be integrated as > building blocks into other, bigger projects? >> where code snippets include their own compile command in the >> top of file as local file variable: >> >> https://themrfantastic.gitlab.io/blending-modes.html > > Yes, I see ... but I still don't understand why one would do > that or what this is suppose to illustrate? This small pieces of code used to demo some features or techniques and In my post I illustrate the blending modes using Netpbm format which is easy and not compressed image format comes in both binary and ASCII variations and It's 8bit (1 byte per color channel). If you know blending modes in GIMP you can see the pictures and understand it. > > Heh, C with pointer arithmetic and explicit memory > management... Preprocessor functions aren't mandatory even in > C tho, or am I wrong ? yes : no. Will those are small examples and I'm libreal in writing them and I do that so I can declare them as global variables (Although I forget to make them static even that is not important) and not care about including them as parameters to functions also the memory are dynamically allocated so because I load pictures in the commandline. Stack arrays are limited and passing them to function will make lose it size information with sizeof (even tho I can store in other var). Preprocessor functions are awesome and they can improve performance (and sometimes make debugging harder). If you have any suggestion or comment about that send me private message or in comment section of the post.