summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eddbb44)
General invalid argument makes more sense to have.
/*
* 2ooM: The Master of Orion II Reverse Engineering Project
* Utilities for out-of-band error propagation.
/*
* 2ooM: The Master of Orion II Reverse Engineering Project
* Utilities for out-of-band error propagation.
- * Copyright © 2010, 2013 Nick Bowler
+ * Copyright © 2010, 2013-2014 Nick Bowler
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
case LBX_EFORMAT:
*msg = _("Invalid file format");
break;
case LBX_EFORMAT:
*msg = _("Invalid file format");
break;
- case LBX_ENOENT:
- *msg = _("Specified item does not exist");
+ case LBX_EINVAL:
+ *msg = _("Invalid argument");
break;
case LBX_ENOMEM:
*msg = _("Memory allocation failed");
break;
case LBX_ENOMEM:
*msg = _("Memory allocation failed");
LBX_EOK,
LBX_EMAGIC,
LBX_EFORMAT,
LBX_EOK,
LBX_EMAGIC,
LBX_EFORMAT,
LBX_ENOMEM,
LBX_EEOF,
LBX_EMAX,
LBX_ENOMEM,
LBX_EEOF,
LBX_EMAX,
unsigned char buf[4];
if (frame >= pub->frames || frame < 0) {
unsigned char buf[4];
if (frame >= pub->frames || frame < 0) {
- lbx_error_raise(LBX_ENOENT);
+ lbx_error_raise(LBX_EINVAL);
/*
* 2ooM: The Master of Orion II Reverse Engineering Project
* Library for working with LBX archive files.
/*
* 2ooM: The Master of Orion II Reverse Engineering Project
* Library for working with LBX archive files.
- * Copyright © 2006-2010, 2013 Nick Bowler
+ * Copyright © 2006-2010, 2013-2014 Nick Bowler
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
static char str[256]; /* FIXME */
if (fileno >= lbx->pub.nfiles) {
static char str[256]; /* FIXME */
if (fileno >= lbx->pub.nfiles) {
- lbx_error_raise(LBX_ENOENT);
+ lbx_error_raise(LBX_EINVAL);
buf->name = NULL;
return -1;
}
buf->name = NULL;
return -1;
}
struct lbx_file_state *state;
if (fileno >= lbx->pub.nfiles) {
struct lbx_file_state *state;
if (fileno >= lbx->pub.nfiles) {
- lbx_error_raise(LBX_ENOENT);
+ lbx_error_raise(LBX_EINVAL);