alloc_formnode ()
{
struct formnode *fnp;
-
fnp = (struct formnode *) xmalloc (sizeof (struct formnode));
(void) memset (fnp, 0, sizeof (struct formnode));
fnp -> sibling = formtree;
filename = tilde_expand (*argv);
make_cleanup (free, filename);
- if ((fp = fopen (filename, "r")) == NULL)
+ if ((fp = fopen (filename, FOPEN_RB)) == NULL)
{
perror_with_name (filename);
}
while (*++argv != NULL)
{
- if (strcmp (*argv, "symbols") == 0)
+ if (STREQ (*argv, "symbols"))
{
if (from_tty
&& !query ("load symbol table state from file \"%s\"? ",
/* Now attempt to create a fresh state file. */
- if ((asfd = sfd_fopen (filename, "w")) == NULL)
+ if ((asfd = sfd_fopen (filename, FOPEN_WB)) == NULL)
{
perror_with_name (filename);
}
fseek (asfd -> fp, sizeof (sf_hdr), SEEK_SET);
while (*++argv != NULL)
{
- if (strcmp (*argv, "objfile") == 0)
+ if (STREQ (*argv, "objfile"))
{
write_objfile_state (asfd);
}