// Copyright (c) 1987-2019 by the citadel.org team
//
-// This program is open source software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License version 3.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
+// This program is open source software. Use, duplication, or disclosure
+// is subject to the terms of the GNU General Public License, version 3.
#include "serv_extensions.h"
#include "context.h"
// Attempt to convert your database from 32-bit to 64-bit.
// Don't run this. It doesn't work and if you try to run it you will immediately die.
//
-// Copyright (c) 1987-2022 by the citadel.org team
+// Copyright (c) 2023 by the citadel.org team
//
// This program is open source software. Use, duplication, or disclosure
// is subject to the terms of the GNU General Public License, version 3.
#!/bin/bash
+# Copyright (c) 2023 by the citadel.org team
+# This program is open source software. Use, duplication, or disclosure
+# is subject to the terms of the GNU General Public License, version 3.
+# Source our data structures from the real live working code
SERVER_H=server/server.h
+# Generate the "32-bit" versions of these structures.
+# Note that this is specifically converting "32-bit to 64-bit" -- NOT "any-to-any"
convert_struct() {
start_line=$(cat ${SERVER_H} | egrep -n "^struct $1 {" | cut -d: -f1)
tail +${start_line} ${SERVER_H} | sed '/};/q' \
}
+# Here we go. Let's make this thing happen.
(
convert_struct "ctdluser"
convert_struct "ctdlroom"