git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: git on HP NonStop

From
Joachim Schmitz <jojo@schmitz-digital.de>
Date
Aug 20, 2012, 10:36 UTC
Message-ID
<000701cd7ebf$af552aa0$0dff7fe0$@schmitz-digital.de>
In-Reply-To
<alpine.LNX.2.01.1208191824100.29175@frira.zrqbmnf.qr>
Show 18 quoted lines
> From: Jan Engelhardt [mailto:jengelh@inai.de]
> Sent: Sunday, August 19, 2012 6:26 PM
> To: Joachim Schmitz
> Cc: 'Junio C Hamano'; git@vger.kernel.org
> Subject: RE: git on HP NonStop
> 
> 
> On Tuesday 2012-08-14 17:52, Joachim Schmitz wrote:
> > @@ -98,6 +99,11 @@
> > #include <stdlib.h>
> > #include <stdarg.h>
> > #include <string.h>
> >+#ifdef __TANDEM
> >+# include <strings.h> /* for strcasecmp() */
> >+  typedef int intptr_t; /* not "int *" ?!? */
> >+  typedef unsigned int uintptr_t; /* not "unsigned int *" ?!? */
> 
> Of course not. intptr_t is an integral value capable of holding a pointer;
it is not
> a pointer to int (because that would really be redundant to int*.)
OK, thanks for the clarification.

Another issue I stumbled across: There are numerous places (well, some 10) were something like the following is done

int var = var; char *othervar = othervar;

Here this leads to Compiler warnings 'variable "var" is used before its value is set' on NonStop. This self-initialization seems to be a GCC extension (?), but even gcc has a -Winit-self option to warn about this. Shouldn't that better be like the following?

int var = 0; char *othervar = NULL;

What is the reason for using that self-init stuff? I don't think it is really portable, is it?

Bye, Jojo
Previous: Jan EngelhardtNext: Johannes Sixt
Message 3 of 11 in “RE: git on HP NonStop”
  1. Joachim SchmitzAug 14, 2012
  2. Jan EngelhardtAug 19, 2012
  3. Joachim SchmitzAug 20, 2012
  4. Johannes SixtAug 20, 2012
  5. Joachim SchmitzAug 20, 2012
  6. Junio C HamanoAug 20, 2012
  7. Joachim SchmitzAug 20, 2012
  8. Junio C HamanoAug 21, 2012
  9. Joachim SchmitzAug 22, 2012
  10. Andreas EricssonAug 23, 2012
  11. Joachim SchmitzAug 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.